(()=>{var __webpack_modules__={8243:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(3031);const s=n(r(4694));const o=n(r(1142));const a=n(r(2759));const u=n(r(4207));const l=n(r(5659));async function main(){const e=(0,s.default)();const t=(0,i.getState)("is_post");if(t==="true")return(0,l.default)(e);(0,i.saveState)("is_post","true");await(0,o.default)(e);console.log("Installation Completed!");(0,a.default)(e);(0,u.default)(e)}main().catch((e=>{console.error(e);(0,i.setFailed)(e)}))},4694:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=void 0;const i=r(3031);const s=n(r(4790));const o=r(5400);const a={required:true};const parseInputPath=e=>(0,s.default)((0,i.getInput)(e,a));const getInputs=()=>({version:(0,i.getInput)("version"),dest:parseInputPath("dest"),runInstall:(0,o.parseRunInstall)("run_install")});t.getInputs=getInputs;t["default"]=t.getInputs},5400:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseRunInstall=void 0;const i=r(3031);const s=n(r(8438));const o=r(3639);const a=n(r(7282));const u=n(r(5379));const l={required:true};function parseRunInstall(e){const t=(0,o.load)((0,i.getInput)(e,l));const r=new s.default({allErrors:true});const n=r.compile(u.default);if(!n(t)){for(const e of n.errors){(0,i.error)(`with.run_install${e.dataPath}: ${e.message}`)}return a.default.exit(1)}if(!t)return[];if(t===true)return[{recursive:true}];if(Array.isArray(t))return t;return[t]}t.parseRunInstall=parseRunInstall},1142:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.install=t.runSelfInstaller=void 0;const i=r(3031);const s=n(r(9536));t.runSelfInstaller=s.default;async function install(e){(0,i.startGroup)("Running self-installer...");const t=await(0,s.default)(e);(0,i.endGroup)();if(t){return(0,i.setFailed)(`Something went wrong, self-installer exits with code ${t}`)}}t.install=install;t["default"]=install},9536:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.runSelfInstaller=void 0;const i=r(3031);const s=n(r(2043));const o=r(2081);const a=r(5176);const u=n(r(1017));const l=r(7282);async function runSelfInstaller(e){const{version:t,dest:r}=e;await(0,a.remove)(r);const n=u.default.join(r,"package.json");await(0,a.ensureFile)(n);await(0,a.writeFile)(n,JSON.stringify({private:true}));const c=await readTarget(t);const f=(0,o.spawn)(l.execPath,["-","install",c,"--no-lockfile"],{cwd:r,stdio:["pipe","inherit","inherit"]});const d=await(0,s.default)("https://get.pnpm.io/v6.16.js");if(!d.body)throw new Error("Did not receive response body");d.body.pipe(f.stdin);const p=await new Promise(((e,t)=>{f.on("error",t);f.on("close",e)}));if(p===0){const e=u.default.join(r,"node_modules/.bin");(0,i.addPath)(e);(0,i.exportVariable)("PNPM_HOME",e)}return p}t.runSelfInstaller=runSelfInstaller;async function readTarget(e){if(e)return`pnpm@${e}`;const{GITHUB_WORKSPACE:t}=process.env;if(!t){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:r}=JSON.parse(await(0,a.readFile)(u.default.join(t,"package.json"),"utf8"));if(typeof r!=="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(!r.startsWith("pnpm@")){throw new Error("Invalid packageManager field in package.json")}return r}t["default"]=runSelfInstaller},2759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setOutputs=void 0;const n=r(3031);const i=r(6392);function setOutputs(e){const t=(0,i.getBinDest)(e);(0,n.addPath)(t);(0,n.setOutput)("dest",e.dest);(0,n.setOutput)("bin_dest",t)}t.setOutputs=setOutputs;t["default"]=setOutputs},4207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPnpmInstall=void 0;const n=r(3031);const i=r(2081);const s=r(6392);function runPnpmInstall(e){const t=(0,s.patchPnpmEnv)(e);for(const r of e.runInstall){const e=["install"];if(r.recursive)e.unshift("recursive");if(r.args)e.push(...r.args);const s=["pnpm",...e].join(" ");(0,n.startGroup)(`Running ${s}...`);const{error:o,status:a}=(0,i.spawnSync)("pnpm",e,{stdio:"inherit",cwd:r.cwd,shell:true,env:t});(0,n.endGroup)();if(o){(0,n.setFailed)(o);continue}if(a){(0,n.setFailed)(`Command ${s} (cwd: ${r.cwd}) exits with status ${a}`);continue}}}t.runPnpmInstall=runPnpmInstall;t["default"]=runPnpmInstall},5659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pruneStore=void 0;const n=r(3031);const i=r(2081);const s=r(6392);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,n.startGroup)("Running pnpm store prune...");const{error:t,status:r}=(0,i.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:(0,s.patchPnpmEnv)(e)});(0,n.endGroup)();if(t){(0,n.warning)(t);return}if(r){(0,n.warning)(`command pnpm store prune exits with code ${r}`);return}}t.pruneStore=pruneStore;t["default"]=pruneStore},6392:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.patchPnpmEnv=t.getBinDest=void 0;const i=n(r(1017));const s=n(r(7282));const getBinDest=e=>i.default.join(e.dest,"node_modules",".bin");t.getBinDest=getBinDest;const patchPnpmEnv=e=>({...s.default.env,PATH:(0,t.getBinDest)(e)+i.default.delimiter+s.default.env.PATH});t.patchPnpmEnv=patchPnpmEnv},8302:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=s(r(2037));const a=r(8541);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const u="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},3031:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(8302);const u=r(1234);const l=r(8541);const c=s(r(2037));const f=s(r(1017));const d=r(9946);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=l.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;u.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){u.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.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\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(c.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},1234:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const o=s(r(7147));const a=s(r(2037));const u=r(8541);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},9946:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(9875);const s=r(2760);const o=r(3031);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],r)}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 t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.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=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);o.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},8541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.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)}t.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}}t.toCommandProperties=toCommandProperties},2760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3685);const i=r(5687);const s=r(6502);let o;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=s.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const c=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const f=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let s=this._prepareRequest(e,i,n);let o=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const o=l.message.headers["location"];if(!o){break}let a=new URL(o);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}s=this._prepareRequest(e,a,n);l=await this.requestRaw(s,r);t--}if(f.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let s=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));s.on("socket",(e=>{n=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));s.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const o=s.parsedUrl.protocol==="https:";s.httpModule=o?i:n;const a=o?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(s.options)}))}return s}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=s.getProxyUrl(e);let u=a&&a.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(u){if(!o){o=r(1353)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(l){n=i?o.httpsOverHttps:o.httpsOverHttp}else{n=i?o.httpOverHttps:o.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=l?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=l?i.globalAgent:n.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(s)}let o;let u;try{u=await e.readBody();if(u&&u.length>0){if(t&&t.deserializeDates){o=JSON.parse(u,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(u)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(u&&u.length>0){e=u}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=s.result;n(t)}else{r(s)}}))}}t.HttpClient=HttpClient},6502:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},5774:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});i(r(8348),t);i(r(1598),t);i(r(9844),t);i(r(899),t);i(r(9884),t);i(r(8289),t);i(r(6106),t);i(r(3551),t);i(r(2129),t);i(r(6499),t);i(r(6677),t);i(r(7792),t);i(r(3496),t);i(r(1589),t);i(r(6759),t);i(r(6688),t);i(r(1703),t);i(r(5743),t);i(r(1314),t);i(r(7644),t);i(r(2072),t)},8348:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.contextLogger=void 0;const i=n(r(2491));t.contextLogger=(0,i.default)("context")},1598:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.deprecationLogger=void 0;const i=n(r(2491));t.deprecationLogger=(0,i.default)("deprecation")},9844:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.fetchingProgressLogger=void 0;const i=n(r(2491));t.fetchingProgressLogger=(0,i.default)("fetching-progress")},899:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.hookLogger=void 0;const i=n(r(2491));t.hookLogger=(0,i.default)("hook")},6109:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});i(r(5774),t)},9884:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.installCheckLogger=void 0;const i=n(r(2491));t.installCheckLogger=(0,i.default)("install-check")},8289:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.lifecycleLogger=void 0;const i=n(r(2491));t.lifecycleLogger=(0,i.default)("lifecycle")},6106:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.linkLogger=void 0;const i=n(r(2491));t.linkLogger=(0,i.default)("link")},3551:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.packageImportMethodLogger=void 0;const i=n(r(2491));t.packageImportMethodLogger=(0,i.default)("package-import-method")},2129:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.packageManifestLogger=void 0;const i=n(r(2491));t.packageManifestLogger=(0,i.default)("package-manifest")},6499:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.peerDependencyIssuesLogger=void 0;const i=n(r(2491));t.peerDependencyIssuesLogger=(0,i.default)("peer-dependency-issues")},6677:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.progressLogger=void 0;const i=n(r(2491));t.progressLogger=(0,i.default)("progress")},7792:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},3496:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.removalLogger=void 0;const i=n(r(2491));t.removalLogger=(0,i.default)("removal")},1589:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.requestRetryLogger=void 0;const i=n(r(2491));t.requestRetryLogger=(0,i.default)("request-retry")},6759:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.rootLogger=void 0;const i=n(r(2491));t.rootLogger=(0,i.default)("root")},6688:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.scopeLogger=void 0;const i=n(r(2491));t.scopeLogger=(0,i.default)("scope")},1703:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.skippedOptionalDependencyLogger=void 0;const i=n(r(2491));t.skippedOptionalDependencyLogger=(0,i.default)("skipped-optional-dependency")},5743:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.stageLogger=void 0;const i=n(r(2491));t.stageLogger=(0,i.default)("stage")},1314:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.statsLogger=void 0;const i=n(r(2491));t.statsLogger=(0,i.default)("stats")},7644:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.summaryLogger=void 0;const i=n(r(2491));t.summaryLogger=(0,i.default)("summary")},2072:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.updateCheckLogger=void 0;const i=n(r(2491));t.updateCheckLogger=(0,i.default)("update-check")},239:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.ResponseError=t.isRedirect=t.Response=void 0;const o=r(6109);const a=r(461);const u=s(r(3793));Object.defineProperty(t,"Response",{enumerable:true,get:function(){return u.Response}});t.isRedirect=u.default.isRedirect;async function fetchRetry(e,t={}){var r,n,i,s,l;const c=(r=t.retry)!==null&&r!==void 0?r:{};const f=(n=c.retries)!==null&&n!==void 0?n:2;const d=(0,a.operation)({factor:(i=c.factor)!==null&&i!==void 0?i:10,maxTimeout:(s=c.maxTimeout)!==null&&s!==void 0?s:6e4,minTimeout:(l=c.minTimeout)!==null&&l!==void 0?l:1e4,randomize:false,retries:f});try{return await new Promise(((r,n)=>d.attempt((async i=>{var s;try{const n=await(0,u.default)(e,t);if(n.status>=500&&n.status<600||[408,409,420,429].includes(n.status)){throw new ResponseError(n)}else{r(n);return}}catch(r){const a=d.retry(r);if(a===false){n(d.mainError());return}o.requestRetryLogger.debug({attempt:i,error:r,maxRetries:f,method:(s=t.method)!==null&&s!==void 0?s:"GET",timeout:a,url:e.toString()})}}))))}catch(e){if(e instanceof ResponseError){return e.res}throw e}}t["default"]=fetchRetry;class ResponseError extends Error{constructor(e){super(e.statusText);if(Error.captureStackTrace){Error.captureStackTrace(this,ResponseError)}this.name=this.constructor.name;this.res=e;this.code=this.status=this.statusCode=e.status;this.url=e.url}}t.ResponseError=ResponseError},5239:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.fetchWithAgent=void 0;const a=r(7310);const u=o(r(5844));const l=s(r(239));const c="pnpm";const f="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*";const d="application/json";const p=20;function fetchWithAgent(e,t){var r,n;const i=(0,u.default)(e.toString(),{...t.agentOptions,strictSsl:(r=t.agentOptions.strictSsl)!==null&&r!==void 0?r:true});const s=(n=t.headers)!==null&&n!==void 0?n:{};s["connection"]=i?"keep-alive":"close";return(0,l.default)(e,{...t,agent:i})}t.fetchWithAgent=fetchWithAgent;function default_1(e){return async(t,r)=>{var n,i,s;const o={"user-agent":c,...getHeaders({auth:r===null||r===void 0?void 0:r.authHeaderValue,fullMetadata:e.fullMetadata,userAgent:e.userAgent})};let u=0;let f=new a.URL(t);const d=f.host;while(true){const t={...e,...r,strictSsl:(n=e.strictSsl)!==null&&n!==void 0?n:true};const c=await fetchWithAgent(f,{agentOptions:t,compress:(i=r===null||r===void 0?void 0:r.compress)!==null&&i!==void 0?i:false,headers:o,redirect:"manual",retry:r===null||r===void 0?void 0:r.retry,timeout:(s=r===null||r===void 0?void 0:r.timeout)!==null&&s!==void 0?s:6e4});if(!(0,l.isRedirect)(c.status)||u>=p){return c}u++;f=new a.URL(c.headers.get("location"));if(!o["authorization"]||d===f.host)continue;delete o.authorization}}}t["default"]=default_1;function getHeaders(e){const t={accept:e.fullMetadata===true?d:f};if(e.auth){t["authorization"]=e.auth}if(e.userAgent){t["user-agent"]=e.userAgent}return t}},2043:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.fetchWithAgent=t.createFetchFromRegistry=void 0;const a=o(r(239));const u=s(r(5239));t.createFetchFromRegistry=u.default;Object.defineProperty(t,"fetchWithAgent",{enumerable:true,get:function(){return u.fetchWithAgent}});t["default"]=a.default},2491:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeToConsole=t.createStreamParser=t.streamParser=t.globalWarn=t.globalInfo=void 0;const n=r(9344);Object.defineProperty(t,"globalInfo",{enumerable:true,get:function(){return n.globalInfo}});Object.defineProperty(t,"globalWarn",{enumerable:true,get:function(){return n.globalWarn}});const i=r(7234);t.streamParser=i.default;Object.defineProperty(t,"createStreamParser",{enumerable:true,get:function(){return i.createStreamParser}});const s=r(9815);t.writeToConsole=s.default;t["default"]=n.default},9344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.globalInfo=t.globalWarn=void 0;const n=r(5631);n.setFastTime();t["default"]=n("pnpm");const i=n("pnpm:global");function globalWarn(e){i.warn(e)}t.globalWarn=globalWarn;function globalInfo(e){i.info(e)}t.globalInfo=globalInfo},7234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createStreamParser=void 0;const n=r(5631);const i=r(9847);t["default"]=createStreamParser();function createStreamParser(){const e=i.parse();n.output([{level:"debug",stream:e}]);return e}t.createStreamParser=createStreamParser},9815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5631);function default_1(){n.output([{level:"debug",stream:process.stdout}])}t["default"]=default_1},5844:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(7310);const s=n(r(3194));const o=n(r(5283));const a=n(r(72));const u=n(r(1296));const l=n(r(329));const c=s.default.HttpsAgent;const f=50;const d=new u.default({max:50});function getAgent(e,t){var r,n,o;const a=new i.URL(e);const u=a.protocol==="https:";const l=getProxyUri(e,t);const p=[`https:${u.toString()}`,l?`proxy:${l.protocol}//${l.username}:${l.password}@${l.host}:${l.port}`:">no-proxy<",`local-address:${(r=t.localAddress)!==null&&r!==void 0?r:">no-local-address<"}`,`strict-ssl:${u?Boolean(t.strictSsl).toString():">no-strict-ssl<"}`,`ca:${u&&t.ca||">no-ca<"}`,`cert:${u&&t.cert||">no-cert<"}`,`key:${u&&t.key||">no-key<"}`].join(":");if(d.peek(p)){return d.get(p)}if(l){const e=getProxy(l,t,u);d.set(p,e);return e}const h=typeof t.timeout!=="number"||t.timeout===0?0:t.timeout+1;const m=u?new c({ca:t.ca,cert:t.cert,key:t.key,localAddress:t.localAddress,maxSockets:(n=t.maxSockets)!==null&&n!==void 0?n:f,rejectUnauthorized:t.strictSsl,timeout:h}):new s.default({localAddress:t.localAddress,maxSockets:(o=t.maxSockets)!==null&&o!==void 0?o:f,timeout:h});d.set(p,m);return m}t["default"]=getAgent;function checkNoProxy(e,t){const r=new i.URL(e).hostname.split(".").filter((e=>e)).reverse();if(typeof t.noProxy==="string"){const e=t.noProxy.split(/\s*,\s*/g);return e.some((e=>{const t=e.split(".").filter((e=>e)).reverse();if(t.length===0){return false}for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});function once(e,t,{signal:r}={}){return new Promise(((n,i)=>{function cleanup(){r===null||r===void 0?void 0:r.removeEventListener("abort",cleanup);e.removeListener(t,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();n(e)}function onError(e){cleanup();i(e)}r===null||r===void 0?void 0:r.addEventListener("abort",cleanup);e.on(t,onEvent);e.on("error",onError)}))}t["default"]=once},461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTimeout=t.createTimeouts=t.operation=void 0;const n=r(2798);function operation(e){var t=createTimeouts(e);return new n.default(t,{maxRetryTime:e&&e.maxRetryTime})}t.operation=operation;function createTimeouts(e){var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false,...e};if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var r=[];for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});class RetryOperation{constructor(e,t){var r;this._originalTimeouts=[...e];this._timeouts=e;this._maxRetryTime=(r=t===null||t===void 0?void 0:t.maxRetryTime)!==null&&r!==void 0?r:Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationStart=null;this._timer=null}reset(){this._attempts=1;this._timeouts=this._originalTimeouts}stop(){if(this._timer){clearTimeout(this._timer)}this._timeouts=[]}retry(e){if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){return false}this._timer=setTimeout((()=>this._fn(++this._attempts)),r);return r}attempt(e){this._fn=e;this._operationStart=(new Date).getTime();this._fn(this._attempts)}errors(){return this._errors}attempts(){return this._attempts}mainError(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n=r){t=i;r=o}}return t}}t["default"]=RetryOperation},5689:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=r(2361);const s=n(r(5598));const o=n(r(2135));const a=s.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends i.EventEmitter{constructor(e,t){super();let r=t;if(typeof e==="function"){this.callback=e}else if(e){r=e}this.timeout=null;if(r&&typeof r.timeout==="number"){this.timeout=r.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const r=Object.assign({},t);if(typeof r.secureEndpoint!=="boolean"){r.secureEndpoint=isSecureEndpoint()}if(r.host==null){r.host="localhost"}if(r.port==null){r.port=r.secureEndpoint?443:80}if(r.protocol==null){r.protocol=r.secureEndpoint?"https:":"http:"}if(r.host&&r.path){delete r.path}delete r.agent;delete r.hostname;delete r._defaultAgent;delete r.defaultPort;delete r.createConnection;e._last=true;e.shouldKeepAlive=false;let n=false;let i=null;const s=r.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{i=null;n=true;const e=new Error(`A "socket" was not created for HTTP request before ${s}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(n)return;if(i!==null){clearTimeout(i);i=null}onerror(e)};const onsocket=t=>{if(n)return;if(i!=null){clearTimeout(i);i=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,r);return}if(t){t.once("free",(()=>{this.freeSocket(t,r)}));e.onSocket(t);return}const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(s)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){a("Converting legacy callback function to promise");this.promisifiedCallback=o.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof s==="number"&&s>0){i=setTimeout(ontimeout,s)}if("port"in r&&typeof r.port!=="number"){r.port=Number(r.port)}try{a("Resolving socket for %o request: %o",r.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,r)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},2135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,r){return new Promise(((n,i)=>{e.call(this,t,r,((e,t)=>{if(e){i(e)}else{n(t)}}))}))}}t["default"]=promisify},3194:(e,t,r)=>{"use strict";e.exports=r(8238);e.exports.HttpsAgent=r(5862);e.exports.constants=r(5483)},8238:(e,t,r)=>{"use strict";const n=r(3685).Agent;const i=r(979);const s=r(5598)("agentkeepalive");const o=r(9386)("agentkeepalive");const{INIT_SOCKET:a,CURRENT_ID:u,CREATE_ID:l,SOCKET_CREATED_TIME:c,SOCKET_NAME:f,SOCKET_REQUEST_COUNT:d,SOCKET_REQUEST_FINISHED_COUNT:p}=r(5483);let h=1;const m=parseInt(process.version.split(".",1)[0].substring(1));if(m>=11&&m<=12){h=2}else if(m>=13){h=3}class Agent extends n{constructor(e){e=e||{};e.keepAlive=e.keepAlive!==false;if(e.freeSocketTimeout===undefined){e.freeSocketTimeout=4e3}if(e.keepAliveTimeout){o("options.keepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");e.freeSocketTimeout=e.keepAliveTimeout;delete e.keepAliveTimeout}if(e.freeSocketKeepAliveTimeout){o("options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");e.freeSocketTimeout=e.freeSocketKeepAliveTimeout;delete e.freeSocketKeepAliveTimeout}if(e.timeout===undefined){e.timeout=Math.max(e.freeSocketTimeout*2,8e3)}e.timeout=i(e.timeout);e.freeSocketTimeout=i(e.freeSocketTimeout);e.socketActiveTTL=e.socketActiveTTL?i(e.socketActiveTTL):0;super(e);this[u]=0;this.createSocketCount=0;this.createSocketCountLastCheck=0;this.createSocketErrorCount=0;this.createSocketErrorCountLastCheck=0;this.closeSocketCount=0;this.closeSocketCountLastCheck=0;this.errorSocketCount=0;this.errorSocketCountLastCheck=0;this.requestCount=0;this.requestCountLastCheck=0;this.timeoutSocketCount=0;this.timeoutSocketCountLastCheck=0;this.on("free",(e=>{const t=this.calcSocketTimeout(e);if(t>0&&e.timeout!==t){e.setTimeout(t)}}))}get freeSocketKeepAliveTimeout(){o("agent.freeSocketKeepAliveTimeout is deprecated, please use agent.options.freeSocketTimeout instead");return this.options.freeSocketTimeout}get timeout(){o("agent.timeout is deprecated, please use agent.options.timeout instead");return this.options.timeout}get socketActiveTTL(){o("agent.socketActiveTTL is deprecated, please use agent.options.socketActiveTTL instead");return this.options.socketActiveTTL}calcSocketTimeout(e){let t=this.options.freeSocketTimeout;const r=this.options.socketActiveTTL;if(r){const n=Date.now()-e[c];const i=r-n;if(i<=0){return i}if(t&&i{if(r)return;r=true;if(n){this.createSocketErrorCount++;return t(n)}this[a](i,e);t(n,i)};const n=super.createConnection(e,onNewCreate);if(n)onNewCreate(null,n)}get statusChanged(){const e=this.createSocketCount!==this.createSocketCountLastCheck||this.createSocketErrorCount!==this.createSocketErrorCountLastCheck||this.closeSocketCount!==this.closeSocketCountLastCheck||this.errorSocketCount!==this.errorSocketCountLastCheck||this.timeoutSocketCount!==this.timeoutSocketCountLastCheck||this.requestCount!==this.requestCountLastCheck;if(e){this.createSocketCountLastCheck=this.createSocketCount;this.createSocketErrorCountLastCheck=this.createSocketErrorCount;this.closeSocketCountLastCheck=this.closeSocketCount;this.errorSocketCountLastCheck=this.errorSocketCount;this.timeoutSocketCountLastCheck=this.timeoutSocketCount;this.requestCountLastCheck=this.requestCount}return e}getCurrentStatus(){return{createSocketCount:this.createSocketCount,createSocketErrorCount:this.createSocketErrorCount,closeSocketCount:this.closeSocketCount,errorSocketCount:this.errorSocketCount,timeoutSocketCount:this.timeoutSocketCount,requestCount:this.requestCount,freeSockets:inspect(this.freeSockets),sockets:inspect(this.sockets),requests:inspect(this.requests)}}}function getSocketTimeout(e){return e.timeout||e._idleTimeout}function installListeners(e,t,r){s("%s create, timeout %sms",t[f],getSocketTimeout(t));function onFree(){if(!t._httpMessage&&t[d]===1)return;t[p]++;e.requestCount++;s("%s(requests: %s, finished: %s) free",t[f],t[d],t[p]);const n=e.getName(r);if(t.writable&&e.requests[n]&&e.requests[n].length){t[d]++;s("%s(requests: %s, finished: %s) will be reuse on agent free event",t[f],t[d],t[p])}}t.on("free",onFree);function onClose(r){s("%s(requests: %s, finished: %s) close, isError: %s",t[f],t[d],t[p],r);e.closeSocketCount++}t.on("close",onClose);function onTimeout(){const n=t.listeners("timeout").length;const i=getSocketTimeout(t);const o=t._httpMessage;const a=o&&o.listeners("timeout").length||0;s("%s(requests: %s, finished: %s) timeout after %sms, listeners %s, defaultTimeoutListenerCount %s, hasHttpRequest %s, HttpRequest timeoutListenerCount %s",t[f],t[d],t[p],i,n,h,!!o,a);if(s.enabled){s("timeout listeners: %s",t.listeners("timeout").map((e=>e.name)).join(", "))}e.timeoutSocketCount++;const u=e.getName(r);if(e.freeSockets[u]&&e.freeSockets[u].indexOf(t)!==-1){t.destroy();e.removeSocket(t,r);s("%s is free, destroy quietly",t[f])}else{if(a===0){const n=new Error("Socket timeout");n.code="ERR_SOCKET_TIMEOUT";n.timeout=i;t.destroy(n);e.removeSocket(t,r);s("%s destroy with timeout error",t[f])}}}t.on("timeout",onTimeout);function onError(r){const n=t.listeners("error").length;s("%s(requests: %s, finished: %s) error: %s, listenerCount: %s",t[f],t[d],t[p],r,n);e.errorSocketCount++;if(n===1){s("%s emit uncaught error event",t[f]);t.removeListener("error",onError);t.emit("error",r)}}t.on("error",onError);function onRemove(){s("%s(requests: %s, finished: %s) agentRemove",t[f],t[d],t[p]);t.removeListener("close",onClose);t.removeListener("error",onError);t.removeListener("free",onFree);t.removeListener("timeout",onTimeout);t.removeListener("agentRemove",onRemove)}t.on("agentRemove",onRemove)}e.exports=Agent;function inspect(e){const t={};for(const r in e){t[r]=e[r].length}return t}},5483:e=>{"use strict";e.exports={CURRENT_ID:Symbol("agentkeepalive#currentId"),CREATE_ID:Symbol("agentkeepalive#createId"),INIT_SOCKET:Symbol("agentkeepalive#initSocket"),CREATE_HTTPS_CONNECTION:Symbol("agentkeepalive#createHttpsConnection"),SOCKET_CREATED_TIME:Symbol("agentkeepalive#socketCreatedTime"),SOCKET_NAME:Symbol("agentkeepalive#socketName"),SOCKET_REQUEST_COUNT:Symbol("agentkeepalive#socketRequestCount"),SOCKET_REQUEST_FINISHED_COUNT:Symbol("agentkeepalive#socketRequestFinishedCount")}},5862:(e,t,r)=>{"use strict";const n=r(5687).Agent;const i=r(8238);const{INIT_SOCKET:s,CREATE_HTTPS_CONNECTION:o}=r(5483);class HttpsAgent extends i{constructor(e){super(e);this.defaultPort=443;this.protocol="https:";this.maxCachedSessions=this.options.maxCachedSessions;if(this.maxCachedSessions===undefined){this.maxCachedSessions=100}this._sessionCache={map:{},list:[]}}createConnection(e){const t=this[o](e);this[s](t,e);return t}}HttpsAgent.prototype[o]=n.prototype.createConnection;["getName","_getSession","_cacheSession","_evictSession"].forEach((function(e){if(typeof n.prototype[e]==="function"){HttpsAgent.prototype[e]=n.prototype[e]}}));e.exports=HttpsAgent},8438:(e,t,r)=>{"use strict";var n=r(5391),i=r(6650),s=r(6281),o=r(5738),a=r(4486),u=r(229),l=r(6072),c=r(7178),f=r(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=r(5911);var d=r(7975);Ajv.prototype.addKeyword=d.add;Ajv.prototype.getKeyword=d.get;Ajv.prototype.removeKeyword=d.remove;Ajv.prototype.validateKeyword=d.validate;var p=r(2485);Ajv.ValidationError=p.Validation;Ajv.MissingRefError=p.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=u(e.format);this._cache=e.cache||new s;this._loadingSchemas={};this._compilations=[];this.RULES=l();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=a;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,t){var r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);if(r.$async!==true)this.errors=r.errors;return i}function compile(e,t){var r=this._addSchema(e,undefined,t);return r.validate||this._compile(r)}function addSchema(e,t,r,n){if(Array.isArray(e)){for(var s=0;s{"use strict";var t=e.exports=function Cache(){this._cache={}};t.prototype.put=function Cache_put(e,t){this._cache[e]=t};t.prototype.get=function Cache_get(e){return this._cache[e]};t.prototype.del=function Cache_del(e){delete this._cache[e]};t.prototype.clear=function Cache_clear(){this._cache={}}},5911:(e,t,r)=>{"use strict";var n=r(2485).MissingRef;e.exports=compileAsync;function compileAsync(e,t,r){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){r=t;t=undefined}var s=loadMetaSchemaOf(e).then((function(){var r=i._addSchema(e,undefined,t);return r.validate||_compileAsync(r)}));if(r){s.then((function(e){r(null,e)}),r)}return s;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!i.getSchema(t)?compileAsync.call(i,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof n)return loadMissingSchema(e);throw e}function loadMissingSchema(r){var n=r.missingSchema;if(added(n))throw new Error("Schema "+n+" is loaded but "+r.missingRef+" cannot be resolved");var s=i._loadingSchemas[n];if(!s){s=i._loadingSchemas[n]=i._opts.loadSchema(n);s.then(removePromise,removePromise)}return s.then((function(e){if(!added(n)){return loadMetaSchemaOf(e).then((function(){if(!added(n))i.addSchema(e,n,undefined,t)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete i._loadingSchemas[n]}function added(e){return i._refs[e]||i._schemas[e]}}}}},2485:(e,t,r)=>{"use strict";var n=r(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,t){return"can't resolve reference "+t+" from id "+e};function MissingRefError(e,t,r){this.message=r||MissingRefError.message(e,t);this.missingRef=n.url(e,t);this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},229:(e,t,r)=>{"use strict";var n=r(3162);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var s=[0,31,28,31,30,31,30,31,31,30,31,30,31];var o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var a=/^(?=.{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 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 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 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 d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var p=/^(?:\/(?:[^~/]|~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 n.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:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:d,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":l,"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:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:d,"json-pointer":p,"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 t=e.match(i);if(!t)return false;var r=+t[1];var n=+t[2];var o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n==2&&isLeapYear(r)?29:s[n])}function time(e,t){var r=e.match(o);if(!r)return false;var n=r[1];var i=r[2];var s=r[3];var a=r[5];return(n<=23&&i<=59&&s<=59||n==23&&i==59&&s==60)&&(!t||a)}var v=/t|\s/i;function date_time(e){var t=e.split(v);return t.length==2&&date(t[0])&&time(t[1],true)}var g=/\/|:/;function uri(e){return g.test(e)&&u.test(e)}var y=/[^\\]\\Z/;function regex(e){if(y.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5391:(e,t,r)=>{"use strict";var n=r(6650),i=r(3162),s=r(2485),o=r(4486);var a=r(734);var u=i.ucs2length;var l=r(3064);var c=s.Validation;e.exports=compile;function compile(e,t,r,f){var d=this,p=this._opts,h=[undefined],m={},v=[],g={},y=[],b={},S=[];t=t||{schema:e,refVal:h,refs:m};var w=checkCompiling.call(this,e,t,f);var _=this._compilations[w.index];if(w.compiling)return _.callValidate=callValidate;var E=this._formats;var k=this.RULES;try{var P=localCompile(e,t,r,f);_.validate=P;var C=_.callValidate;if(C){C.schema=P.schema;C.errors=null;C.refs=P.refs;C.refVal=P.refVal;C.root=P.root;C.$async=P.$async;if(p.sourceCode)C.source=P.source}return P}finally{endCompiling.call(this,e,t,f)}function callValidate(){var e=_.validate;var t=e.apply(this,arguments);callValidate.errors=e.errors;return t}function localCompile(e,r,o,f){var g=!r||r&&r.schema==e;if(r.schema!=t.schema)return compile.call(d,e,r,o,f);var b=e.$async===true;var w=a({isTop:true,schema:e,isRoot:g,baseId:f,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:s.MissingRef,RULES:k,validate:a,util:i,resolve:n,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:p,formats:E,logger:d.logger,self:d});w=vars(h,refValCode)+vars(v,patternCode)+vars(y,defaultCode)+vars(S,customRuleCode)+w;if(p.processCode)w=p.processCode(w,e);var _;try{var P=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",w);_=P(d,k,E,t,h,y,S,l,u,c);h[0]=_}catch(e){d.logger.error("Error compiling schema, function code:",w);throw e}_.schema=e;_.errors=null;_.refs=m;_.refVal=h;_.root=g?_:r;if(b)_.$async=true;if(p.sourceCode===true){_.source={code:w,patterns:v,defaults:y}}return _}function resolveRef(e,i,s){i=n.url(e,i);var o=m[i];var a,u;if(o!==undefined){a=h[o];u="refVal["+o+"]";return resolvedRef(a,u)}if(!s&&t.refs){var l=t.refs[i];if(l!==undefined){a=t.refVal[l];u=addLocalRef(i,a);return resolvedRef(a,u)}}u=addLocalRef(i);var c=n.call(d,localCompile,t,i);if(c===undefined){var f=r&&r[i];if(f){c=n.inlineRef(f,p.inlineRefs)?f:compile.call(d,f,t,r,e)}}if(c===undefined){removeLocalRef(i)}else{replaceLocalRef(i,c);return resolvedRef(c,u)}}function addLocalRef(e,t){var r=h.length;h[r]=t;m[e]=r;return"refVal"+r}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,t){var r=m[e];h[r]=t}function resolvedRef(e,t){return typeof e=="object"||typeof e=="boolean"?{code:t,schema:e,inline:true}:{code:t,$async:e&&!!e.$async}}function usePattern(e){var t=g[e];if(t===undefined){t=g[e]=v.length;v[t]=e}return"pattern"+t}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 t=o(e);var r=b[t];if(r===undefined){r=b[t]=y.length;y[r]=e}return"default"+r}}function useCustomRule(e,t,r,n){if(d._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s){var o=s(t);if(!o){var a="keyword schema is invalid: "+d.errorsText(s.errors);if(d._opts.validateSchema=="log")d.logger.error(a);else throw new Error(a)}}}var u=e.definition.compile,l=e.definition.inline,c=e.definition.macro;var f;if(u){f=u.call(d,t,r,n)}else if(c){f=c.call(d,t,r,n);if(p.validateSchema!==false)d.validateSchema(f,true)}else if(l){f=l.call(d,n,e.keyword,t,r)}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,t,r){var n=compIndex.call(this,e,t,r);if(n>=0)return{index:n,compiling:true};n=this._compilations.length;this._compilations[n]={schema:e,root:t,baseId:r};return{index:n,compiling:false}}function endCompiling(e,t,r){var n=compIndex.call(this,e,t,r);if(n>=0)this._compilations.splice(n,1)}function compIndex(e,t,r){for(var n=0;n{"use strict";var n=r(626),i=r(3064),s=r(3162),o=r(5738),a=r(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,t,r){var n=this._refs[r];if(typeof n=="string"){if(this._refs[n])n=this._refs[n];else return resolve.call(this,e,t,n)}n=n||this._schemas[r];if(n instanceof o){return inlineRef(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n)}var i=resolveSchema.call(this,t,r);var s,a,u;if(i){s=i.schema;t=i.root;u=i.baseId}if(s instanceof o){a=s.validate||e.call(this,s.schema,t,undefined,u)}else if(s!==undefined){a=inlineRef(s,this._opts.inlineRefs)?s:e.call(this,s,t,undefined,u)}return a}function resolveSchema(e,t){var r=n.parse(t),i=_getFullPath(r),s=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==s){var a=normalizeId(i);var u=this._refs[a];if(typeof u=="string"){return resolveRecursive.call(this,e,u,r)}else if(u instanceof o){if(!u.validate)this._compile(u);e=u}else{u=this._schemas[a];if(u instanceof o){if(!u.validate)this._compile(u);if(a==normalizeId(t))return{schema:u,root:e,baseId:s};e=u}else{return}}if(!e.schema)return;s=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,r,s,e.schema,e)}function resolveRecursive(e,t,r){var n=resolveSchema.call(this,e,t);if(n){var i=n.schema;var s=n.baseId;e=n.root;var o=this._getId(i);if(o)s=resolveUrl(s,o);return getJsonPointer.call(this,r,s,i,e)}}var u=s.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,t,r,n){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var o=1;o{"use strict";var n=r(1960),i=r(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 t=["type","$comment"];var r=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var s=["number","integer","string","array","object","boolean","null"];e.all=i(t);e.types=i(s);e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if(typeof r=="object"){var s=Object.keys(r)[0];i=r[s];r=s;i.forEach((function(r){t.push(r);e.all[r]=true}))}t.push(r);var o=e.all[r]={keyword:r,code:n[r],implements:i};return o}));e.all.$comment={keyword:"$comment",code:n.$comment};if(r.type)e.types[r.type]=r}));e.keywords=i(t.concat(r));e.custom={};return e}},5738:(e,t,r)=>{"use strict";var n=r(3162);e.exports=SchemaObject;function SchemaObject(e){n.copy(e,this)}},6103:e=>{"use strict";e.exports=function ucs2length(e){var t=0,r=e.length,n=0,i;while(n=55296&&i<=56319&&n{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:r(3064),ucs2length:r(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,t){t=t||{};for(var r in e)t[r]=e[r];return t}function checkDataType(e,t,r,n){var i=n?" !== ":" === ",s=n?" || ":" && ",o=n?"!":"",a=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+s+"typeof "+t+i+'"object"'+s+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+s+a+"("+t+" % 1)"+s+t+i+t+(r?s+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?s+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}function checkDataTypes(e,t,r){switch(e.length){case 1:return checkDataType(e[0],t,r,true);default:var n="";var i=toHash(e);if(i.array&&i.object){n=i.null?"(":"(!"+t+" || ";n+="typeof "+t+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var s in i)n+=(n?" && ":"")+checkDataType(s,t,r,true);return n}}var n=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){if(Array.isArray(t)){var r=[];for(var i=0;i=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);s="data"+(t-n||"");if(!i)return s}var l=s;var c=i.split("/");for(var f=0;f{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(8703);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.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,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var f="data"+(s||"");var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}var h=t=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[m],g=e.opts.$data&&v&&v.$data,y=h?"<":">",b=h?">":"<",c=undefined;if(!(d||typeof o=="number"||o===undefined)){throw new Error(t+" must be number")}if(!(g||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(m+" must be number or boolean")}if(g){var S=e.util.getData(v.$data,s,e.dataPathArr),w="exclusive"+i,_="exclType"+i,E="exclIsNumber"+i,k="op"+i,P="' + "+k+" + '";n+=" var schemaExcl"+i+" = "+S+"; ";S="schemaExcl"+i;n+=" var "+w+"; var "+_+" = typeof "+S+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var c=m;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var x=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+x+"]); "}else{n+=" validate.errors = ["+x+"]; return false; "}}else{n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}n+=" "+_+" == 'number' ? ( ("+w+" = "+p+" === undefined || "+S+" "+y+"= "+p+") ? "+f+" "+b+"= "+S+" : "+f+" "+b+" "+p+" ) : ( ("+w+" = "+S+" === true) ? "+f+" "+b+"= "+p+" : "+f+" "+b+" "+p+" ) || "+f+" !== "+f+") { var op"+i+" = "+w+" ? '"+y+"' : '"+y+"='; ";if(o===undefined){c=m;u=e.errSchemaPath+"/"+m;p=S;d=g}}else{var E=typeof v=="number",P=y;if(E&&d){var k="'"+P+"'";n+=" if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}n+=" ( "+p+" === undefined || "+v+" "+y+"= "+p+" ? "+f+" "+b+"= "+v+" : "+f+" "+b+" "+p+" ) || "+f+" !== "+f+") { "}else{if(E&&o===undefined){w=true;c=m;u=e.errSchemaPath+"/"+m;p=v;b+="="}else{if(E)p=Math[h?"min":"max"](v,o);if(v===(E?p:true)){w=true;c=m;u=e.errSchemaPath+"/"+m;b+="="}else{w=false;P+="="}}var k="'"+P+"'";n+=" if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}n+=" "+f+" "+b+" "+p+" || "+f+" !== "+f+") { "}}c=c||t;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+k+", limit: "+p+", exclusive: "+w+" } ";if(e.opts.messages!==false){n+=" , message: 'should be "+P+" ";if(d){n+="' + "+p}else{n+=""+p+"'"}}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var x=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+x+"]); "}else{n+=" validate.errors = ["+x+"]; return false; "}}else{n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},9809:e=>{"use strict";e.exports=function generate__limitItems(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var f="data"+(s||"");var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if(!(d||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxItems"?">":"<";n+="if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}n+=" "+f+".length "+h+" "+p+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+p+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxItems"){n+="more"}else{n+="fewer"}n+=" than ";if(d){n+="' + "+p+" + '"}else{n+=""+o}n+=" items' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var v=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},5356:e=>{"use strict";e.exports=function generate__limitLength(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var f="data"+(s||"");var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if(!(d||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxLength"?">":"<";n+="if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}if(e.opts.unicode===false){n+=" "+f+".length "}else{n+=" ucs2length("+f+") "}n+=" "+h+" "+p+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+p+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT be ";if(t=="maxLength"){n+="longer"}else{n+="shorter"}n+=" than ";if(d){n+="' + "+p+" + '"}else{n+=""+o}n+=" characters' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var v=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},7500:e=>{"use strict";e.exports=function generate__limitProperties(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var f="data"+(s||"");var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if(!(d||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxProperties"?">":"<";n+="if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "}n+=" Object.keys("+f+").length "+h+" "+p+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+p+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxProperties"){n+="more"}else{n+="fewer"}n+=" than ";if(d){n+="' + "+p+" + '"}else{n+=""+o}n+=" properties' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var v=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},6265:e=>{"use strict";e.exports=function generate_allOf(e,t,r){var n=" ";var i=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var o=e.errSchemaPath+"/"+t;var a=!e.opts.allErrors;var u=e.util.copy(e);var l="";u.level++;var c="valid"+u.level;var f=u.baseId,d=true;var p=i;if(p){var h,m=-1,v=p.length-1;while(m0||h===false:e.util.schemaHasRules(h,e.RULES.all)){d=false;u.schema=h;u.schemaPath=s+"["+m+"]";u.errSchemaPath=o+"/"+m;n+=" "+e.validate(u)+" ";u.baseId=f;if(a){n+=" if ("+c+") { ";l+="}"}}}}if(a){if(d){n+=" if (true) { "}else{n+=" "+l.slice(0,-1)+" "}}return n}},2816:e=>{"use strict";e.exports=function generate_anyOf(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d="errs__"+i;var p=e.util.copy(e);var h="";p.level++;var m="valid"+p.level;var v=o.every((function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:e.util.schemaHasRules(t,e.RULES.all)}));if(v){var g=p.baseId;n+=" var "+d+" = errors; var "+f+" = false; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=true;var b=o;if(b){var S,w=-1,_=b.length-1;while(w<_){S=b[w+=1];p.schema=S;p.schemaPath=a+"["+w+"]";p.errSchemaPath=u+"/"+w;n+=" "+e.validate(p)+" ";p.baseId=g;n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ";h+="}"}}e.compositeRule=p.compositeRule=y;n+=" "+h+" if (!"+f+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should match some schema in anyOf' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(e.opts.allErrors){n+=" } "}}else{if(l){n+=" if (true) { "}}return n}},4302:e=>{"use strict";e.exports=function generate_comment(e,t,r){var n=" ";var i=e.schema[t];var s=e.errSchemaPath+"/"+t;var o=!e.opts.allErrors;var a=e.util.toQuotedString(i);if(e.opts.$comment===true){n+=" console.log("+a+");"}else if(typeof e.opts.$comment=="function"){n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(s)+", validate.root.schema);"}return n}},3641:e=>{"use strict";e.exports=function generate_const(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if(!d){n+=" var schema"+i+" = validate.schema"+a+";"}n+="var "+f+" = equal("+c+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to constant' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},6665:e=>{"use strict";e.exports=function generate_contains(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d="errs__"+i;var p=e.util.copy(e);var h="";p.level++;var m="valid"+p.level;var v="i"+i,g=p.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId,S=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===false:e.util.schemaHasRules(o,e.RULES.all);n+="var "+d+" = errors;var "+f+";";if(S){var w=e.compositeRule;e.compositeRule=p.compositeRule=true;p.schema=o;p.schemaPath=a;p.errSchemaPath=u;n+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ";p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var _=c+"["+v+"]";p.dataPathArr[g]=v;var E=e.validate(p);p.baseId=b;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,_)+" "}else{n+=" var "+y+" = "+_+"; "+E+" "}n+=" if ("+m+") break; } ";e.compositeRule=p.compositeRule=w;n+=" "+h+" if (!"+m+") {"}else{n+=" if ("+c+".length == 0) {"}var k=k||[];k.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should contain a valid item' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var P=n;n=k.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+P+"]); "}else{n+=" validate.errors = ["+P+"]; return false; "}}else{n+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { ";if(S){n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "}if(e.opts.allErrors){n+=" } "}return n}},8343:e=>{"use strict";e.exports=function generate_custom(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var f="data"+(s||"");var d="valid"+i;var p="errs__"+i;var h=e.opts.$data&&o&&o.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";m="schema"+i}else{m=o}var v=this,g="definition"+i,y=v.definition,b="";var S,w,_,E,k;if(h&&y.$data){k="keywordValidate"+i;var P=y.validateSchema;n+=" var "+g+" = RULES.custom['"+t+"'].definition; var "+k+" = "+g+".validate;"}else{E=e.useCustomRule(v,o,e.schema,e);if(!E)return;m="validate.schema"+a;k=E.code;S=y.compile;w=y.inline;_=y.macro}var C=k+".errors",x="i"+i,O="ruleErr"+i,R=y.async;if(R&&!e.async)throw new Error("async keyword in sync schema");if(!(w||_)){n+=""+C+" = null;"}n+="var "+p+" = errors;var "+d+";";if(h&&y.$data){b+="}";n+=" if ("+m+" === undefined) { "+d+" = true; } else { ";if(P){b+="}";n+=" "+d+" = "+g+".validateSchema("+m+"); if ("+d+") { "}}if(w){if(y.statements){n+=" "+E.validate+" "}else{n+=" "+d+" = "+E.validate+"; "}}else if(_){var I=e.util.copy(e);var b="";I.level++;var A="valid"+I.level;I.schema=E.validate;I.schemaPath="";var T=e.compositeRule;e.compositeRule=I.compositeRule=true;var D=e.validate(I).replace(/validate\.schema/g,k);e.compositeRule=I.compositeRule=T;n+=" "+D}else{var F=F||[];F.push(n);n="";n+=" "+k+".call( ";if(e.opts.passContext){n+="this"}else{n+="self"}if(S||y.schema===false){n+=" , "+f+" "}else{n+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" "}n+=" , (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var L=s?"data"+(s-1||""):"parentData",N=s?e.dataPathArr[s]:"parentDataProperty";n+=" , "+L+" , "+N+" , rootData ) ";var j=n;n=F.pop();if(y.errors===false){n+=" "+d+" = ";if(R){n+="await "}n+=""+j+"; "}else{if(R){C="customErrors"+i;n+=" var "+C+" = null; try { "+d+" = await "+j+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "}else{n+=" "+C+" = null; "+d+" = "+j+"; "}}}if(y.modifying){n+=" if ("+L+") "+f+" = "+L+"["+N+"];"}n+=""+b;if(y.valid){if(l){n+=" if (true) { "}}else{n+=" if ( ";if(y.valid===undefined){n+=" !";if(_){n+=""+A}else{n+=""+d}}else{n+=" "+!y.valid+" "}n+=") { ";c=v.keyword;var F=F||[];F.push(n);n="";var F=F||[];F.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){n+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}n+=" } "}else{n+=" {} "}var B=n;n=F.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+B+"]); "}else{n+=" validate.errors = ["+B+"]; return false; "}}else{n+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var M=n;n=F.pop();if(w){if(y.errors){if(y.errors!="full"){n+=" for (var "+x+"="+p+"; "+x+"{"use strict";e.exports=function generate_dependencies(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="errs__"+i;var d=e.util.copy(e);var p="";d.level++;var h="valid"+d.level;var m={},v={},g=e.opts.ownProperties;for(w in o){if(w=="__proto__")continue;var y=o[w];var b=Array.isArray(y)?v:m;b[w]=y}n+="var "+f+" = errors;";var S=e.errorPath;n+="var missing"+i+";";for(var w in v){b=v[w];if(b.length){n+=" if ( "+c+e.util.getProperty(w)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(w)+"') "}if(l){n+=" && ( ";var _=b;if(_){var E,k=-1,P=_.length-1;while(k0||y===false:e.util.schemaHasRules(y,e.RULES.all)){n+=" "+h+" = true; if ( "+c+e.util.getProperty(w)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(w)+"') "}n+=") { ";d.schema=y;d.schemaPath=a+e.util.getProperty(w);d.errSchemaPath=u+"/"+e.util.escapeFragment(w);n+=" "+e.validate(d)+" ";d.baseId=L;n+=" } ";if(l){n+=" if ("+h+") { ";p+="}"}}}if(l){n+=" "+p+" if ("+f+" == errors) {"}return n}},5625:e=>{"use strict";e.exports=function generate_enum(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}var h="i"+i,m="schema"+i;if(!d){n+=" var "+m+" = validate.schema"+a+";"}n+="var "+f+";";if(d){n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}n+=""+f+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+f+" = true; break; }";if(d){n+=" } "}n+=" if (!"+f+") { ";var v=v||[];v.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=v.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},137:e=>{"use strict";e.exports=function generate_format(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");if(e.opts.format===false){if(l){n+=" if (true) { "}return n}var f=e.opts.$data&&o&&o.$data,d;if(f){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}var p=e.opts.unknownFormats,h=Array.isArray(p);if(f){var m="format"+i,v="isObject"+i,g="formatType"+i;n+=" var "+m+" = formats["+d+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+g+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ";if(e.async){n+=" var async"+i+" = "+m+".async; "}n+=" "+m+" = "+m+".validate; } if ( ";if(f){n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "}n+=" (";if(p!="ignore"){n+=" ("+d+" && !"+m+" ";if(h){n+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "}n+=") || "}n+=" ("+m+" && "+g+" == '"+r+"' && !(typeof "+m+" == 'function' ? ";if(e.async){n+=" (async"+i+" ? await "+m+"("+c+") : "+m+"("+c+")) "}else{n+=" "+m+"("+c+") "}n+=" : "+m+".test("+c+"))))) {"}else{var m=e.formats[o];if(!m){if(p=="ignore"){e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"');if(l){n+=" if (true) { "}return n}else if(h&&p.indexOf(o)>=0){if(l){n+=" if (true) { "}return n}else{throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var g=v&&m.type||"string";if(v){var y=m.async===true;m=m.validate}if(g!=r){if(l){n+=" if (true) { "}return n}if(y){if(!e.async)throw new Error("async format in sync schema");var b="formats"+e.util.getProperty(o)+".validate";n+=" if (!(await "+b+"("+c+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(o);if(v)b+=".validate";if(typeof m=="function"){n+=" "+b+"("+c+") "}else{n+=" "+b+".test("+c+") "}n+=") { "}}var S=S||[];S.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ";if(f){n+=""+d}else{n+=""+e.util.toQuotedString(o)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match format \"";if(f){n+="' + "+d+" + '"}else{n+=""+e.util.escapeQuotes(o)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(f){n+="validate.schema"+a}else{n+=""+e.util.toQuotedString(o)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var w=n;n=S.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+w+"]); "}else{n+=" validate.errors = ["+w+"]; return false; "}}else{n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},7137:e=>{"use strict";e.exports=function generate_if(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d="errs__"+i;var p=e.util.copy(e);p.level++;var h="valid"+p.level;var m=e.schema["then"],v=e.schema["else"],g=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===false:e.util.schemaHasRules(m,e.RULES.all)),y=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),b=p.baseId;if(g||y){var S;p.createErrors=false;p.schema=o;p.schemaPath=a;p.errSchemaPath=u;n+=" var "+d+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=true;n+=" "+e.validate(p)+" ";p.baseId=b;p.createErrors=true;n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";e.compositeRule=p.compositeRule=w;if(g){n+=" if ("+h+") { ";p.schema=e.schema["then"];p.schemaPath=e.schemaPath+".then";p.errSchemaPath=e.errSchemaPath+"/then";n+=" "+e.validate(p)+" ";p.baseId=b;n+=" "+f+" = "+h+"; ";if(g&&y){S="ifClause"+i;n+=" var "+S+" = 'then'; "}else{S="'then'"}n+=" } ";if(y){n+=" else { "}}else{n+=" if (!"+h+") { "}if(y){p.schema=e.schema["else"];p.schemaPath=e.schemaPath+".else";p.errSchemaPath=e.errSchemaPath+"/else";n+=" "+e.validate(p)+" ";p.baseId=b;n+=" "+f+" = "+h+"; ";if(g&&y){S="ifClause"+i;n+=" var "+S+" = 'else'; "}else{S="'else'"}n+=" } "}n+=" if (!"+f+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+S+" } ";if(e.opts.messages!==false){n+=" , message: 'should match \"' + "+S+" + '\" schema' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},1960:(e,t,r)=>{"use strict";e.exports={$ref:r(144),allOf:r(6265),anyOf:r(2816),$comment:r(4302),const:r(3641),contains:r(6665),dependencies:r(4352),enum:r(5625),format:r(137),if:r(7137),items:r(6301),maximum:r(2813),minimum:r(2813),maxItems:r(9809),minItems:r(9809),maxLength:r(5356),minLength:r(5356),maxProperties:r(7500),minProperties:r(7500),multipleOf:r(9180),not:r(911),oneOf:r(555),pattern:r(8557),properties:r(2847),propertyNames:r(5897),required:r(6775),uniqueItems:r(4313),validate:r(734)}},6301:e=>{"use strict";e.exports=function generate_items(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d="errs__"+i;var p=e.util.copy(e);var h="";p.level++;var m="valid"+p.level;var v="i"+i,g=p.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;n+="var "+d+" = errors;var "+f+";";if(Array.isArray(o)){var S=e.schema.additionalItems;if(S===false){n+=" "+f+" = "+c+".length <= "+o.length+"; ";var w=u;u=e.errSchemaPath+"/additionalItems";n+=" if (!"+f+") { ";var _=_||[];_.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+o.length+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have more than "+o.length+" items' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var E=n;n=_.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+E+"]); "}else{n+=" validate.errors = ["+E+"]; return false; "}}else{n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";u=w;if(l){h+="}";n+=" else { "}}var k=o;if(k){var P,C=-1,x=k.length-1;while(C0||P===false:e.util.schemaHasRules(P,e.RULES.all)){n+=" "+m+" = true; if ("+c+".length > "+C+") { ";var O=c+"["+C+"]";p.schema=P;p.schemaPath=a+"["+C+"]";p.errSchemaPath=u+"/"+C;p.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,true);p.dataPathArr[g]=C;var R=e.validate(p);p.baseId=b;if(e.util.varOccurences(R,y)<2){n+=" "+e.util.varReplace(R,y,O)+" "}else{n+=" var "+y+" = "+O+"; "+R+" "}n+=" } ";if(l){n+=" 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))){p.schema=S;p.schemaPath=e.schemaPath+".additionalItems";p.errSchemaPath=e.errSchemaPath+"/additionalItems";n+=" "+m+" = true; if ("+c+".length > "+o.length+") { for (var "+v+" = "+o.length+"; "+v+" < "+c+".length; "+v+"++) { ";p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var O=c+"["+v+"]";p.dataPathArr[g]=v;var R=e.validate(p);p.baseId=b;if(e.util.varOccurences(R,y)<2){n+=" "+e.util.varReplace(R,y,O)+" "}else{n+=" var "+y+" = "+O+"; "+R+" "}if(l){n+=" if (!"+m+") break; "}n+=" } } ";if(l){n+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===false:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o;p.schemaPath=a;p.errSchemaPath=u;n+=" for (var "+v+" = "+0+"; "+v+" < "+c+".length; "+v+"++) { ";p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var O=c+"["+v+"]";p.dataPathArr[g]=v;var R=e.validate(p);p.baseId=b;if(e.util.varOccurences(R,y)<2){n+=" "+e.util.varReplace(R,y,O)+" "}else{n+=" var "+y+" = "+O+"; "+R+" "}if(l){n+=" if (!"+m+") break; "}n+=" }"}if(l){n+=" "+h+" if ("+d+" == errors) {"}return n}},9180:e=>{"use strict";e.exports=function generate_multipleOf(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f=e.opts.$data&&o&&o.$data,d;if(f){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if(!(f||typeof o=="number")){throw new Error(t+" must be number")}n+="var division"+i+";if (";if(f){n+=" "+d+" !== undefined && ( typeof "+d+" != 'number' || "}n+=" (division"+i+" = "+c+" / "+d+", ";if(e.opts.multipleOfPrecision){n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{n+=" division"+i+" !== parseInt(division"+i+") "}n+=" ) ";if(f){n+=" ) "}n+=" ) { ";var p=p||[];p.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+d+" } ";if(e.opts.messages!==false){n+=" , message: 'should be multiple of ";if(f){n+="' + "+d}else{n+=""+d+"'"}}if(e.opts.verbose){n+=" , schema: ";if(f){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var h=n;n=p.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+h+"]); "}else{n+=" validate.errors = ["+h+"]; return false; "}}else{n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},911:e=>{"use strict";e.exports=function generate_not(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="errs__"+i;var d=e.util.copy(e);d.level++;var p="valid"+d.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===false:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o;d.schemaPath=a;d.errSchemaPath=u;n+=" var "+f+" = errors; ";var h=e.compositeRule;e.compositeRule=d.compositeRule=true;d.createErrors=false;var m;if(d.opts.allErrors){m=d.opts.allErrors;d.opts.allErrors=false}n+=" "+e.validate(d)+" ";d.createErrors=true;if(m)d.opts.allErrors=m;e.compositeRule=d.compositeRule=h;n+=" if ("+p+") { ";var v=v||[];v.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=v.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";if(e.opts.allErrors){n+=" } "}}else{n+=" var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(l){n+=" if (false) { "}}return n}},555:e=>{"use strict";e.exports=function generate_oneOf(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d="errs__"+i;var p=e.util.copy(e);var h="";p.level++;var m="valid"+p.level;var v=p.baseId,g="prevValid"+i,y="passingSchemas"+i;n+="var "+d+" = errors , "+g+" = false , "+f+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=true;var S=o;if(S){var w,_=-1,E=S.length-1;while(_0||w===false:e.util.schemaHasRules(w,e.RULES.all)){p.schema=w;p.schemaPath=a+"["+_+"]";p.errSchemaPath=u+"/"+_;n+=" "+e.validate(p)+" ";p.baseId=v}else{n+=" var "+m+" = true; "}if(_){n+=" if ("+m+" && "+g+") { "+f+" = false; "+y+" = ["+y+", "+_+"]; } else { ";h+="}"}n+=" if ("+m+") { "+f+" = "+g+" = true; "+y+" = "+_+"; }"}}e.compositeRule=p.compositeRule=b;n+=""+h+"if (!"+f+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+y+" } ";if(e.opts.messages!==false){n+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }";if(e.opts.allErrors){n+=" } "}return n}},8557:e=>{"use strict";e.exports=function generate_pattern(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f=e.opts.$data&&o&&o.$data,d;if(f){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}var p=f?"(new RegExp("+d+"))":e.usePattern(o);n+="if ( ";if(f){n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "}n+=" !"+p+".test("+c+") ) { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ";if(f){n+=""+d}else{n+=""+e.util.toQuotedString(o)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match pattern \"";if(f){n+="' + "+d+" + '"}else{n+=""+e.util.escapeQuotes(o)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(f){n+="validate.schema"+a}else{n+=""+e.util.toQuotedString(o)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},2847:e=>{"use strict";e.exports=function generate_properties(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="errs__"+i;var d=e.util.copy(e);var p="";d.level++;var h="valid"+d.level;var m="key"+i,v="idx"+i,g=d.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+i;var S=Object.keys(o||{}).filter(notProto),w=e.schema.patternProperties||{},_=Object.keys(w).filter(notProto),E=e.schema.additionalProperties,k=S.length||_.length,P=E===false,C=typeof E=="object"&&Object.keys(E).length,x=e.opts.removeAdditional,O=P||C||x,R=e.opts.ownProperties,I=e.baseId;var A=e.schema.required;if(A&&!(e.opts.$data&&A.$data)&&A.length8){n+=" || validate.schema"+a+".hasOwnProperty("+m+") "}else{var D=S;if(D){var F,L=-1,N=D.length-1;while(L0||X===false:e.util.schemaHasRules(X,e.RULES.all)){var ee=e.util.getProperty(F),K=c+ee,te=G&&X.default!==undefined;d.schema=X;d.schemaPath=a+ee;d.errSchemaPath=u+"/"+e.util.escapeFragment(F);d.errorPath=e.util.getPath(e.errorPath,F,e.opts.jsonPointers);d.dataPathArr[g]=e.util.toQuotedString(F);var Y=e.validate(d);d.baseId=I;if(e.util.varOccurences(Y,y)<2){Y=e.util.varReplace(Y,y,K);var re=K}else{var re=y;n+=" var "+y+" = "+K+"; "}if(te){n+=" "+Y+" "}else{if(T&&T[F]){n+=" if ( "+re+" === undefined ";if(R){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(F)+"') "}n+=") { "+h+" = false; ";var U=e.errorPath,q=u,ne=e.util.escapeQuotes(F);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,F,e.opts.jsonPointers)}u=e.errSchemaPath+"/required";var V=V||[];V.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ne+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+ne+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var z=n;n=V.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+z+"]); "}else{n+=" validate.errors = ["+z+"]; return false; "}}else{n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}u=q;e.errorPath=U;n+=" } else { "}else{if(l){n+=" if ( "+re+" === undefined ";if(R){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(F)+"') "}n+=") { "+h+" = true; } else { "}else{n+=" if ("+re+" !== undefined ";if(R){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(F)+"') "}n+=" ) { "}}n+=" "+Y+" } "}}if(l){n+=" if ("+h+") { ";p+="}"}}}}if(_.length){var ie=_;if(ie){var B,se=-1,oe=ie.length-1;while(se0||X===false:e.util.schemaHasRules(X,e.RULES.all)){d.schema=X;d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(B);d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(B);if(R){n+=" "+b+" = "+b+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" if ("+e.usePattern(B)+".test("+m+")) { ";d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=c+"["+m+"]";d.dataPathArr[g]=m;var Y=e.validate(d);d.baseId=I;if(e.util.varOccurences(Y,y)<2){n+=" "+e.util.varReplace(Y,y,K)+" "}else{n+=" var "+y+" = "+K+"; "+Y+" "}if(l){n+=" if (!"+h+") break; "}n+=" } ";if(l){n+=" else "+h+" = true; "}n+=" } ";if(l){n+=" if ("+h+") { ";p+="}"}}}}}if(l){n+=" "+p+" if ("+f+" == errors) {"}return n}},5897:e=>{"use strict";e.exports=function generate_propertyNames(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="errs__"+i;var d=e.util.copy(e);var p="";d.level++;var h="valid"+d.level;n+="var "+f+" = errors;";if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===false:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o;d.schemaPath=a;d.errSchemaPath=u;var m="key"+i,v="idx"+i,g="i"+i,y="' + "+m+" + '",b=d.dataLevel=e.dataLevel+1,S="data"+b,w="dataProperties"+i,_=e.opts.ownProperties,E=e.baseId;if(_){n+=" var "+w+" = undefined; "}if(_){n+=" "+w+" = "+w+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+m+" = "+w+"["+v+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" var startErrs"+i+" = errors; ";var k=m;var P=e.compositeRule;e.compositeRule=d.compositeRule=true;var C=e.validate(d);d.baseId=E;if(e.util.varOccurences(C,S)<2){n+=" "+e.util.varReplace(C,S,k)+" "}else{n+=" var "+S+" = "+k+"; "+C+" "}e.compositeRule=d.compositeRule=P;n+=" if (!"+h+") { for (var "+g+"=startErrs"+i+"; "+g+"{"use strict";e.exports=function generate_ref(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var c="valid"+i;var f,d;if(o=="#"||o=="#/"){if(e.isRoot){f=e.async;d="validate"}else{f=e.root.schema.$async===true;d="root.refVal[0]"}}else{var p=e.resolveRef(e.baseId,o,e.isRoot);if(p===undefined){var h=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(h);var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(a)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ";if(e.opts.messages!==false){n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "}if(e.opts.verbose){n+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var v=n;n=m.pop();if(!e.compositeRule&&u){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(u){n+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(u){n+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,o,h)}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema;g.schemaPath="";g.errSchemaPath=o;var b=e.validate(g).replace(/validate\.schema/g,p.code);n+=" "+b+" ";if(u){n+=" if ("+y+") { "}}else{f=p.$async===true||e.async&&p.$async!==false;d=p.code}}if(d){var m=m||[];m.push(n);n="";if(e.opts.passContext){n+=" "+d+".call(this, "}else{n+=" "+d+"( "}n+=" "+l+", (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var S=s?"data"+(s-1||""):"parentData",w=s?e.dataPathArr[s]:"parentDataProperty";n+=" , "+S+" , "+w+", rootData) ";var _=n;n=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(u){n+=" var "+c+"; "}n+=" try { await "+_+"; ";if(u){n+=" "+c+" = true; "}n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(u){n+=" "+c+" = false; "}n+=" } ";if(u){n+=" if ("+c+") { "}}else{n+=" if (!"+_+") { if (vErrors === null) vErrors = "+d+".errors; else vErrors = vErrors.concat("+d+".errors); errors = vErrors.length; } ";if(u){n+=" else { "}}}return n}},6775:e=>{"use strict";e.exports=function generate_required(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}var h="schema"+i;if(!d){if(o.length0||S===false:e.util.schemaHasRules(S,e.RULES.all)))){m[m.length]=g}}}}else{var m=o}}if(d||m.length){var w=e.errorPath,_=d||m.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(l){n+=" var missing"+i+"; ";if(_){if(!d){n+=" var "+h+" = validate.schema"+a+"; "}var k="i"+i,P="schema"+i+"["+k+"]",C="' + "+P+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(w,P,e.opts.jsonPointers)}n+=" var "+f+" = true; ";if(d){n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}n+=" for (var "+k+" = 0; "+k+" < "+h+".length; "+k+"++) { "+f+" = "+c+"["+h+"["+k+"]] !== undefined ";if(E){n+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+k+"]) "}n+="; if (!"+f+") break; } ";if(d){n+=" } "}n+=" if (!"+f+") { ";var x=x||[];x.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+C+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+C+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var O=n;n=x.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+O+"]); "}else{n+=" validate.errors = ["+O+"]; return false; "}}else{n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { "}else{n+=" if ( ";var R=m;if(R){var I,k=-1,A=R.length-1;while(k{"use strict";e.exports=function generate_uniqueItems(e,t,r){var n=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(s||"");var f="valid"+i;var d=e.opts.$data&&o&&o.$data,p;if(d){n+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if((o||d)&&e.opts.uniqueItems!==false){if(d){n+=" var "+f+"; if ("+p+" === false || "+p+" === undefined) "+f+" = true; else if (typeof "+p+" != 'boolean') "+f+" = false; else { "}n+=" 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)){n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } "}else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var v="checkDataType"+(m?"s":"");n+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){n+=" if (typeof item == 'string') item = '\"' + item; "}n+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ";if(d){n+=" } "}n+=" if (!"+f+") { ";var g=g||[];g.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+o}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var y=n;n=g.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+y+"]); "}else{n+=" validate.errors = ["+y+"]; return false; "}}else{n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},734:e=>{"use strict";e.exports=function generate_validate(e,t,r){var n="";var i=e.schema.$async===true,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var u="unknown keyword: "+a;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop){n+=" var validate = ";if(i){e.async=true;n+="async "}n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(o&&(e.opts.sourceCode||e.opts.processCode)){n+=" "+("/*# sourceURL="+o+" */")+" "}}if(typeof e.schema=="boolean"||!(s||e.schema.$ref)){var t="false schema";var l=e.level;var c=e.dataLevel;var f=e.schema[t];var d=e.schemaPath+e.util.getProperty(t);var p=e.errSchemaPath+"/"+t;var h=!e.opts.allErrors;var m;var v="data"+(c||"");var g="valid"+l;if(e.schema===false){if(e.isTop){h=true}else{n+=" var "+g+" = false; "}var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'boolean schema is false' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}n+=" } "}else{n+=" {} "}var b=n;n=y.pop();if(!e.compositeRule&&h){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){n+=" return data; "}else{n+=" validate.errors = null; return true; "}}else{n+=" var "+g+" = true; "}}if(e.isTop){n+=" }; return validate; "}return n}if(e.isTop){var S=e.isTop,l=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 w="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}n+=" var vErrors = null; ";n+=" var errors = 0; ";n+=" if (rootData === undefined) rootData = data; "}else{var l=e.level,c=e.dataLevel,v="data"+(c||"");if(o)e.baseId=e.resolve.url(e.baseId,o);if(i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}var g="valid"+l,h=!e.opts.allErrors,_="",E="";var m;var k=e.schema.type,P=Array.isArray(k);if(k&&e.opts.nullable&&e.schema.nullable===true){if(P){if(k.indexOf("null")==-1)k=k.concat("null")}else if(k!="null"){k=[k,"null"];P=true}}if(P&&k.length==1){k=k[0];P=false}if(e.schema.$ref&&s){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){s=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){n+=" "+e.RULES.all.$comment.code(e,"$comment")}if(k){if(e.opts.coerceTypes){var C=e.util.coerceToTypes(e.opts.coerceTypes,k)}var x=e.RULES.types[k];if(C||P||x===true||x&&!$shouldUseGroup(x)){var d=e.schemaPath+".type",p=e.errSchemaPath+"/type";var d=e.schemaPath+".type",p=e.errSchemaPath+"/type",O=P?"checkDataTypes":"checkDataType";n+=" if ("+e.util[O](k,v,e.opts.strictNumbers,true)+") { ";if(C){var R="dataType"+l,I="coerced"+l;n+=" var "+R+" = typeof "+v+"; var "+I+" = undefined; ";if(e.opts.coerceTypes=="array"){n+=" 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)+") "+I+" = "+v+"; } "}n+=" if ("+I+" !== undefined) ; ";var A=C;if(A){var T,D=-1,F=A.length-1;while(D{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i;var i=r(8343);var s=r(4540);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,true);var s=t.type;if(Array.isArray(s)){for(var o=0;o{"use strict";const n=r(4389);const i=r(1972)("$$bole",{fastTime:false});const s=r(357);const o="debug info warn error".split(" ");const a=r(2037).hostname();const u=n(a);const l=process.pid;let c=false;const f=[];for(const e of o){f[e]=',"hostname":'+u+',"pid":'+l+',"level":"'+e;Number(f[e]);if(!Array.isArray(i[e])){i[e]=[]}}function stackToString(e){let t=e.stack;let r;if(typeof e.cause==="function"&&(r=e.cause())){t+="\nCaused by: "+stackToString(r)}return t}function errorToOut(e,t){t.err={name:e.name,message:e.message,code:e.code,stack:stackToString(e)}}function requestToOut(e,t){t.req={method:e.method,url:e.url,headers:e.headers,remoteAddress:e.connection.remoteAddress,remotePort:e.connection.remotePort}}function objectToOut(e,t){for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==undefined){t[r]=e[r]}}}function objectMode(e){return e._writableState&&e._writableState.objectMode===true}function stringify(e,t,r,s){let o='{"time":'+(i.fastTime?Date.now():'"'+(new Date).toISOString()+'"')+f[e]+'","name":'+t+(r!==undefined?',"message":'+n(r):"");for(const e in s){o+=","+n(e)+":"+n(s[e])}o+="}";Number(o);return o}function extend(e,t,r,n){const s={time:i.fastTime?Date.now():(new Date).toISOString(),hostname:a,pid:l,level:e,name:t};if(r!==undefined){n.message=r}for(const e in n){s[e]=n[e]}return s}function levelLogger(e,t){const r=i[e];const o=n(t);return function namedLevelLogger(n,i,a,u,l,f,d,p,h,m,v,g,y,b,S,w){if(r.length===0){return}const _={};let E;let k=0;const P=r.length;let C;let x;if(typeof n==="string"||n==null){if(!(x=s(n,i,a,u,l,f,d,p,h,m,v,g,y,b,S,w))){x=undefined}}else{if(n instanceof Error){if(typeof i==="object"){objectToOut(i,_);errorToOut(n,_);if(!(x=s(a,u,l,f,d,p,h,m,v,g,y,b,S,w))){x=undefined}}else{errorToOut(n,_);if(!(x=s(i,a,u,l,f,d,p,h,m,v,g,y,b,S,w))){x=undefined}}}else{if(!(x=s(i,a,u,l,f,d,p,h,m,v,g,y,b,S,w))){x=undefined}}if(typeof n==="boolean"){x=String(n)}else if(typeof n==="object"&&!(n instanceof Error)){if(n.method&&n.url&&n.headers&&n.socket){requestToOut(n,_)}else{objectToOut(n,_)}}}if(P===1&&!c){r[0].write(Buffer.from(stringify(e,o,x,_)+"\n"));return}for(;k{var n=r(3837).format;function format(e,t,r,i,s,o,a,u,l,c,f,d,p,h,m,v){if(v!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f,d,p,h,m,v)}if(m!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f,d,p,h,m)}if(h!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f,d,p,h)}if(p!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f,d,p)}if(d!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f,d)}if(f!==undefined){return n(e,t,r,i,s,o,a,u,l,c,f)}if(c!==undefined){return n(e,t,r,i,s,o,a,u,l,c)}if(l!==undefined){return n(e,t,r,i,s,o,a,u,l)}if(u!==undefined){return n(e,t,r,i,s,o,a,u)}if(a!==undefined){return n(e,t,r,i,s,o,a)}if(o!==undefined){return n(e,t,r,i,s,o)}if(s!==undefined){return n(e,t,r,i,s)}if(i!==undefined){return n(e,t,r,i)}if(r!==undefined){return n(e,t,r)}if(t!==undefined){return n(e,t)}return e}e.exports=format},5708:e=>{"use strict";function dataUriToBuffer(e){if(!/^data:/i.test(e)){throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")')}e=e.replace(/\r?\n/g,"");const t=e.indexOf(",");if(t===-1||t<=4){throw new TypeError("malformed data: URI")}const r=e.substring(5,t).split(";");let n="";let i=false;const s=r[0]||"text/plain";let o=s;for(let e=1;e{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(7695)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7695:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(401);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}s++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[s];t=i.call(r,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(3167)}else{e.exports=r(8867)}},8867:(e,t,r)=>{const n=r(6224);const i=r(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(4226);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const s=` ${i};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},9386:(module,__unused_webpack_exports,__nccwpck_require__)=>{ /*! * depd * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ var callSiteToString=__nccwpck_require__(2775).callSiteToString;var eventListenerCount=__nccwpck_require__(2775).eventListenerCount;var relative=__nccwpck_require__(1017).relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(e,t){var r=e.split(/[ ,]+/);var n=String(t).toLowerCase();for(var i=0;i";var r=e.getLineNumber();var n=e.getColumnNumber();if(e.isEval()){t=e.getEvalOrigin()+", "+t}var i=[t,r,n];i.callSite=e;i.name=e.getFunctionName();return i}function defaultMessage(e){var t=e.callSite;var r=e.name;if(!r){r=""}var n=t.getThis();var i=n&&t.getTypeName();if(i==="Object"){i=undefined}if(i==="Function"){i=n.name||i}return i&&t.getMethodName()?i+"."+r:r}function formatPlain(e,t,r){var n=(new Date).toUTCString();var i=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var s=0;s{"use strict"; /*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */e.exports=callSiteToString;function callSiteFileLocation(e){var t;var r="";if(e.isNative()){r="native"}else if(e.isEval()){t=e.getScriptNameOrSourceURL();if(!t){r=e.getEvalOrigin()}}else{t=e.getFileName()}if(t){r+=t;var n=e.getLineNumber();if(n!=null){r+=":"+n;var i=e.getColumnNumber();if(i){r+=":"+i}}}return r||"unknown source"}function callSiteToString(e){var t=true;var r=callSiteFileLocation(e);var n=e.getFunctionName();var i=e.isConstructor();var s=!(e.isToplevel()||i);var o="";if(s){var a=e.getMethodName();var u=getConstructorName(e);if(n){if(u&&n.indexOf(u)!==0){o+=u+"."}o+=n;if(a&&n.lastIndexOf("."+a)!==n.length-a.length-1){o+=" [as "+a+"]"}}else{o+=u+"."+(a||"")}}else if(i){o+="new "+(n||"")}else if(n){o+=n}else{t=false;o+=r}if(t){o+=" ("+r+")"}return o}function getConstructorName(e){var t=e.receiver;return t.constructor&&t.constructor.name||null}},7723:e=>{"use strict"; /*! * depd * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */e.exports=eventListenerCount;function eventListenerCount(e,t){return e.listeners(t).length}},2775:(e,t,r)=>{"use strict"; /*! * depd * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */var n=r(2361).EventEmitter;lazyProperty(e.exports,"callSiteToString",(function callSiteToString(){var e=Error.stackTraceLimit;var t={};var n=Error.prepareStackTrace;function prepareObjectStackTrace(e,t){return t}Error.prepareStackTrace=prepareObjectStackTrace;Error.stackTraceLimit=2;Error.captureStackTrace(t);var i=t.stack.slice();Error.prepareStackTrace=n;Error.stackTraceLimit=e;return i[0].toString?toString:r(7264)}));lazyProperty(e.exports,"eventListenerCount",(function eventListenerCount(){return n.listenerCount||r(7723)}));function lazyProperty(e,t,r){function get(){var n=r();Object.defineProperty(e,t,{configurable:true,enumerable:true,value:n});return n}Object.defineProperty(e,t,{configurable:true,enumerable:true,get:get})}function toString(e){return e.toString()}},4790:(e,t,r)=>{ /*! * expand-tilde * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ var n=r(2157);var i=r(1017);e.exports=function expandTilde(e){var t=n();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return i.join(process.cwd(),e.slice(2))}return t?i.join(t,e.slice(1)):e}return e}},3064:e=>{"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var r,n,i;if(Array.isArray(e)){r=e.length;if(r!=t.length)return false;for(n=r;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();i=Object.keys(e);r=i.length;if(r!==Object.keys(t).length)return false;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return false;for(n=r;n--!==0;){var s=i[n];if(!equal(e[s],t[s]))return false}return true}return e!==e&&t!==t}},4486:e=>{"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var r=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]};var s={key:n,value:t[n]};return e(i,s)}}}(t.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 t,s;if(Array.isArray(e)){s="[";for(t=0;t{e.exports=stringify;stringify.default=stringify;stringify.stable=deterministicStringify;stringify.stableStringify=deterministicStringify;var t="[...]";var r="[Circular]";var n=[];var i=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(e,t,r,s){if(typeof s==="undefined"){s=defaultOptions()}decirc(e,"",0,[],undefined,0,s);var o;try{if(i.length===0){o=JSON.stringify(e,t,r)}else{o=JSON.stringify(e,replaceGetterValues(t),r)}}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(n.length!==0){var a=n.pop();if(a.length===4){Object.defineProperty(a[0],a[1],a[3])}else{a[0][a[1]]=a[2]}}}return o}function setReplace(e,t,r,s){var o=Object.getOwnPropertyDescriptor(s,r);if(o.get!==undefined){if(o.configurable){Object.defineProperty(s,r,{value:e});n.push([s,r,t,o])}else{i.push([t,r,e])}}else{s[r]=e;n.push([s,r,t])}}function decirc(e,n,i,s,o,a,u){a+=1;var l;if(typeof e==="object"&&e!==null){for(l=0;lu.depthLimit){setReplace(t,e,n,o);return}if(typeof u.edgesLimit!=="undefined"&&i+1>u.edgesLimit){setReplace(t,e,n,o);return}s.push(e);if(Array.isArray(e)){for(l=0;lt){return 1}return 0}function deterministicStringify(e,t,r,s){if(typeof s==="undefined"){s=defaultOptions()}var o=deterministicDecirc(e,"",0,[],undefined,0,s)||e;var a;try{if(i.length===0){a=JSON.stringify(o,t,r)}else{a=JSON.stringify(o,replaceGetterValues(t),r)}}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(n.length!==0){var u=n.pop();if(u.length===4){Object.defineProperty(u[0],u[1],u[3])}else{u[0][u[1]]=u[2]}}}return a}function deterministicDecirc(e,i,s,o,a,u,l){u+=1;var c;if(typeof e==="object"&&e!==null){for(c=0;cl.depthLimit){setReplace(t,e,i,a);return}if(typeof l.edgesLimit!=="undefined"&&s+1>l.edgesLimit){setReplace(t,e,i,a);return}o.push(e);if(Array.isArray(e)){for(c=0;c0){for(var n=0;n{const{Readable:n}=r(2781);const i=new WeakMap;async function*read(e){for(const t of e){if("stream"in t){yield*t.stream()}else{yield t}}}class Blob{constructor(e=[],t={}){let r=0;const n=e.map((e=>{let t;if(e instanceof Buffer){t=e}else if(ArrayBuffer.isView(e)){t=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof ArrayBuffer){t=Buffer.from(e)}else if(e instanceof Blob){t=e}else{t=Buffer.from(typeof e==="string"?e:String(e))}r+=t.length||t.size||0;return t}));const s=t.type===undefined?"":String(t.type).toLowerCase();i.set(this,{type:/[^\u0020-\u007E]/.test(s)?"":s,size:r,parts:n})}get size(){return i.get(this).size}get type(){return i.get(this).type}async text(){return Buffer.from(await this.arrayBuffer()).toString()}async arrayBuffer(){const e=new Uint8Array(this.size);let t=0;for await(const r of this.stream()){e.set(r,t);t+=r.length}return e.buffer}stream(){return n.from(read(i.get(this).parts))}slice(e=0,t=this.size,r=""){const{size:n}=this;let s=e<0?Math.max(n+e,0):Math.min(e,n);let o=t<0?Math.max(n+t,0):Math.min(t,n);const a=Math.max(o-s,0);const u=i.get(this).parts.values();const l=[];let c=0;for(const e of u){const t=ArrayBuffer.isView(e)?e.byteLength:e.size;if(s&&t<=s){s-=t;o-=t}else{const r=e.slice(s,Math.min(t,o));l.push(r);c+=ArrayBuffer.isView(r)?r.byteLength:r.size;s=0;if(c>=a){break}}}const f=new Blob([],{type:String(r).toLowerCase()});Object.assign(i.get(f),{size:a,parts:l});return f}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e==="object"&&typeof e.stream==="function"&&e.stream.length===0&&typeof e.constructor==="function"&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});e.exports=Blob},8593:(e,t,r)=>{"use strict";const n=r(7765);const i=r(1017);const s=r(5443).mkdirsSync;const o=r(7237).utimesMillisSync;const a=r(7169);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=a.checkPathsSync(e,t,"copy",r);a.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,o){if(o.filter&&!o.filter(t,r))return;const a=i.dirname(r);if(!n.existsSync(a))s(a);return getStats(e,t,r,o)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const s=i.dereference?n.statSync:n.lstatSync;const o=s(t);if(o.isDirectory())return onDir(o,e,t,r,i);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,i);else if(o.isSymbolicLink())return onLink(e,t,r,i);else if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);else if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return o(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const s=i.join(t,e);const o=i.join(r,e);const{destStat:u}=a.checkPathsSync(s,o,"copy",n);return startCopy(u,s,o,n)}function onLink(e,t,r,s){let o=n.readlinkSync(t);if(s.dereference){o=i.resolve(process.cwd(),o)}if(!e){return n.symlinkSync(o,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(o,r);throw e}if(s.dereference){e=i.resolve(process.cwd(),e)}if(a.isSrcSubdir(o,e)){throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&a.isSrcSubdir(e,o)){throw new Error(`Cannot overwrite '${e}' with '${o}'.`)}return copyLink(o,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},5390:(e,t,r)=>{"use strict";e.exports={copySync:r(8593)}},9226:(e,t,r)=>{"use strict";const n=r(7765);const i=r(1017);const s=r(5443).mkdirs;const o=r(6618).pathExists;const a=r(7237).utimesMillis;const u=r(7169);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}u.checkPaths(e,t,"copy",r,((i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;u.checkParentPaths(e,o,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,a,e,t,r,n);return checkParentDir(a,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,a){const u=i.dirname(r);o(u,((i,o)=>{if(i)return a(i);if(o)return getStats(e,t,r,n,a);s(u,(i=>{if(i)return a(i);return getStats(e,t,r,n,a)}))}))}function handleFilter(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then((o=>{if(o)return e(t,r,n,i,s);return s()}),(e=>s(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,s){const o=i.dereference?n.stat:n.lstat;o(t,((n,o)=>{if(n)return s(n);if(o.isDirectory())return onDir(o,e,t,r,i,s);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,i,s);else if(o.isSymbolicLink())return onLink(e,t,r,i,s);else if(o.isSocket())return s(new Error(`Cannot copy a socket file: ${t}`));else if(o.isFIFO())return s(new Error(`Cannot copy a FIFO pipe: ${t}`));return s(new Error(`Unknown file: ${t}`))}))}function onFile(e,t,r,n,i,s){if(!t)return copyFile(e,r,n,i,s);return mayCopyFile(e,r,n,i,s)}function mayCopyFile(e,t,r,i,s){if(i.overwrite){n.unlink(r,(n=>{if(n)return s(n);return copyFile(e,t,r,i,s)}))}else if(i.errorOnExist){return s(new Error(`'${r}' already exists`))}else return s()}function copyFile(e,t,r,i,s){n.copyFile(t,r,(n=>{if(n)return s(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,s);return setDestMode(r,e.mode,s)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return a(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,s){if(!t)return mkDirAndCopy(e.mode,r,n,i,s);return copyDir(r,n,i,s)}function mkDirAndCopy(e,t,r,i,s){n.mkdir(r,(n=>{if(n)return s(n);copyDir(t,r,i,(t=>{if(t)return s(t);return setDestMode(r,e,s)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,s)=>{if(n)return i(n);return copyDirItems(s,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const s=e.pop();if(!s)return i();return copyDirItem(e,s,t,r,n,i)}function copyDirItem(e,t,r,n,s,o){const a=i.join(r,t);const l=i.join(n,t);u.checkPaths(a,l,"copy",s,((t,i)=>{if(t)return o(t);const{destStat:u}=i;startCopy(u,a,l,s,(t=>{if(t)return o(t);return copyDirItems(e,r,n,s,o)}))}))}function onLink(e,t,r,s,o){n.readlink(t,((t,a)=>{if(t)return o(t);if(s.dereference){a=i.resolve(process.cwd(),a)}if(!e){return n.symlink(a,r,o)}else{n.readlink(r,((t,l)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(a,r,o);return o(t)}if(s.dereference){l=i.resolve(process.cwd(),l)}if(u.isSrcSubdir(a,l)){return o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`))}if(e.isDirectory()&&u.isSrcSubdir(l,a)){return o(new Error(`Cannot overwrite '${l}' with '${a}'.`))}return copyLink(a,r,o)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},7619:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;e.exports={copy:n(r(9226))}},4810:(e,t,r)=>{"use strict";const n=r(3706).fromPromise;const i=r(2003);const s=r(1017);const o=r(5443);const a=r(6875);const u=n((async function emptyDir(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(s.join(e,t)))))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t);a.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:u,emptydir:u}},3132:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;const i=r(1017);const s=r(7765);const o=r(5443);function createFile(e,t){function makeFile(){s.writeFile(e,"",(e=>{if(e)return t(e);t()}))}s.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const a=i.dirname(e);s.stat(a,((e,r)=>{if(e){if(e.code==="ENOENT"){return o.mkdirs(a,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{s.readdir(a,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!s.statSync(r).isDirectory()){s.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")o.mkdirsSync(r);else throw e}s.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},1393:(e,t,r)=>{"use strict";const n=r(3132);const i=r(9817);const s=r(9609);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}},9817:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;const i=r(1017);const s=r(7765);const o=r(5443);const a=r(6618).pathExists;const{areIdentical:u}=r(7169);function createLink(e,t,r){function makeLink(e,t){s.link(e,t,(e=>{if(e)return r(e);r(null)}))}s.lstat(t,((n,l)=>{s.lstat(e,((n,s)=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}if(l&&u(s,l))return r(null);const c=i.dirname(t);a(c,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);o.mkdirs(c,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){let r;try{r=s.lstatSync(t)}catch{}try{const t=s.lstatSync(e);if(r&&u(t,r))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const a=s.existsSync(n);if(a)return s.linkSync(e,t);o.mkdirsSync(n);return s.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},6927:(e,t,r)=>{"use strict";const n=r(1017);const i=r(7765);const s=r(6618).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const o=n.dirname(t);const a=n.join(o,e);return s(a,((t,s)=>{if(t)return r(t);if(s){return r(null,{toCwd:a,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(o,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const s=n.dirname(t);const o=n.join(s,e);r=i.existsSync(o);if(r){return{toCwd:o,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(s,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},3694:(e,t,r)=>{"use strict";const n=r(7765);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},9609:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;const i=r(1017);const s=r(2003);const o=r(5443);const a=o.mkdirs;const u=o.mkdirsSync;const l=r(6927);const c=l.symlinkPaths;const f=l.symlinkPathsSync;const d=r(3694);const p=d.symlinkType;const h=d.symlinkTypeSync;const m=r(6618).pathExists;const{areIdentical:v}=r(7169);function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;s.lstat(t,((i,o)=>{if(!i&&o.isSymbolicLink()){Promise.all([s.stat(e),s.stat(t)]).then((([i,s])=>{if(v(i,s))return n(null);_createSymlink(e,t,r,n)}))}else _createSymlink(e,t,r,n)}))}function _createSymlink(e,t,r,n){c(e,t,((o,u)=>{if(o)return n(o);e=u.toDst;p(u.toCwd,r,((r,o)=>{if(r)return n(r);const u=i.dirname(t);m(u,((r,i)=>{if(r)return n(r);if(i)return s.symlink(e,t,o,n);a(u,(r=>{if(r)return n(r);s.symlink(e,t,o,n)}))}))}))}))}function createSymlinkSync(e,t,r){let n;try{n=s.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(e);const n=s.statSync(t);if(v(r,n))return}const o=f(e,t);e=o.toDst;r=h(o.toCwd,r);const a=i.dirname(t);const l=s.existsSync(a);if(l)return s.symlinkSync(e,t,r);u(a);return s.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},2003:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;const i=r(7765);const s=["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(t,i);s.forEach((e=>{t[e]=n(i[e])}));t.realpath.native=n(i.realpath.native);t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,s,o){if(typeof o==="function"){return i.read(e,t,r,n,s,o)}return new Promise(((o,a)=>{i.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,s)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,s)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})}))}))}}},5176:(e,t,r)=>{"use strict";e.exports={...r(2003),...r(5390),...r(7619),...r(4810),...r(1393),...r(6287),...r(5443),...r(4155),...r(9453),...r(209),...r(6618),...r(6875)}},6287:(e,t,r)=>{"use strict";const n=r(3706).fromPromise;const i=r(1108);i.outputJson=n(r(447));i.outputJsonSync=r(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,t,r)=>{"use strict";const n=r(5533);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},466:(e,t,r)=>{"use strict";const{stringify:n}=r(8171);const{outputFileSync:i}=r(209);function outputJsonSync(e,t,r){const s=n(t,r);i(e,s,r)}e.exports=outputJsonSync},447:(e,t,r)=>{"use strict";const{stringify:n}=r(8171);const{outputFile:i}=r(209);async function outputJson(e,t,r={}){const s=n(t,r);await i(e,s,r)}e.exports=outputJson},5443:(e,t,r)=>{"use strict";const n=r(3706).fromPromise;const{makeDir:i,makeDirSync:s}=r(7113);const o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},7113:(e,t,r)=>{"use strict";const n=r(2003);const{checkPath:i}=r(4096);const getMode=e=>{const t={mode:511};if(typeof e==="number")return e;return{...t,...e}.mode};e.exports.makeDir=async(e,t)=>{i(e);return n.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{i(e);return n.mkdirSync(e,{mode:getMode(t),recursive:true})}},4096:(e,t,r)=>{"use strict";const n=r(1017);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},4155:(e,t,r)=>{"use strict";e.exports={moveSync:r(8450)}},8450:(e,t,r)=>{"use strict";const n=r(7765);const i=r(1017);const s=r(5390).copySync;const o=r(6875).removeSync;const a=r(5443).mkdirpSync;const u=r(7169);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:s,isChangingCase:o=false}=u.checkPathsSync(e,t,"move",r);u.checkParentPathsSync(e,s,t,"move");if(!isParentRoot(t))a(i.dirname(t));return doRename(e,t,n,o)}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,i){if(i)return rename(e,t,r);if(r){o(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};s(e,t,n);return o(e)}e.exports=moveSync},9453:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;e.exports={move:n(r(2826))}},2826:(e,t,r)=>{"use strict";const n=r(7765);const i=r(1017);const s=r(7619).copy;const o=r(6875).remove;const a=r(5443).mkdirp;const u=r(6618).pathExists;const l=r(7169);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const s=r.overwrite||r.clobber||false;l.checkPaths(e,t,"move",r,((r,o)=>{if(r)return n(r);const{srcStat:u,isChangingCase:c=false}=o;l.checkParentPaths(e,u,t,"move",(r=>{if(r)return n(r);if(isParentRoot(t))return doRename(e,t,s,c,n);a(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,s,c,n)}))}))}))}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,n,i){if(n)return rename(e,t,r,i);if(r){return o(t,(n=>{if(n)return i(n);return rename(e,t,r,i)}))}u(t,((n,s)=>{if(n)return i(n);if(s)return i(new Error("dest already exists."));return rename(e,t,r,i)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};s(e,t,i,(t=>{if(t)return n(t);return o(e,n)}))}e.exports=move},209:(e,t,r)=>{"use strict";const n=r(3706).fromCallback;const i=r(7765);const s=r(1017);const o=r(5443);const a=r(6618).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const u=s.dirname(e);a(u,((s,a)=>{if(s)return n(s);if(a)return i.writeFile(e,t,r,n);o.mkdirs(u,(s=>{if(s)return n(s);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=s.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}o.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},6618:(e,t,r)=>{"use strict";const n=r(3706).fromPromise;const i=r(2003);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},6875:(e,t,r)=>{"use strict";const n=r(7765);const i=r(3706).fromCallback;const s=r(7611);function remove(e,t){if(n.rm)return n.rm(e,{recursive:true,force:true},t);s(e,t)}function removeSync(e){if(n.rmSync)return n.rmSync(e,{recursive:true,force:true});s.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},7611:(e,t,r)=>{"use strict";const n=r(7765);const i=r(1017);const s=r(9491);const o=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s.strictEqual(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&nrimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){s(e);s(t);s(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&o){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return o?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){s(e);s(t);s(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,s)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(s.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;s(e);s(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){s(e);s(t);s(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){s(e);s(t);s(typeof r==="function");t.readdir(e,((n,s)=>{if(n)return r(n);let o=s.length;let a;if(o===0)return t.rmdir(e,r);s.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(a){return}if(n)return r(a=n);if(--o===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&o){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return o?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){s(e);s(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(o){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},7169:(e,t,r)=>{"use strict";const n=r(2003);const i=r(1017);const s=r(3837);function getStats(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:true}):e=>n.lstat(e,{bigint:true});return Promise.all([i(e),i(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t,r){let i;const s=r.dereference?e=>n.statSync(e,{bigint:true}):e=>n.lstatSync(e,{bigint:true});const o=s(e);try{i=s(t)}catch(e){if(e.code==="ENOENT")return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}function checkPaths(e,t,r,n,o){s.callbackify(getStats)(e,t,n,((n,s)=>{if(n)return o(n);const{srcStat:a,destStat:u}=s;if(u){if(areIdentical(a,u)){const n=i.basename(e);const s=i.basename(t);if(r==="move"&&n!==s&&n.toLowerCase()===s.toLowerCase()){return o(null,{srcStat:a,destStat:u,isChangingCase:true})}return o(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!u.isDirectory()){return o(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`))}if(!a.isDirectory()&&u.isDirectory()){return o(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}}if(a.isDirectory()&&isSrcSubdir(e,t)){return o(new Error(errMsg(e,t,r)))}return o(null,{srcStat:a,destStat:u})}))}function checkPathsSync(e,t,r,n){const{srcStat:s,destStat:o}=getStatsSync(e,t,n);if(o){if(areIdentical(s,o)){const n=i.basename(e);const a=i.basename(t);if(r==="move"&&n!==a&&n.toLowerCase()===a.toLowerCase()){return{srcStat:s,destStat:o,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!o.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!s.isDirectory()&&o.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(s.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:s,destStat:o}}function checkParentPaths(e,t,r,s,o){const a=i.resolve(i.dirname(e));const u=i.resolve(i.dirname(r));if(u===a||u===i.parse(u).root)return o();n.stat(u,{bigint:true},((n,i)=>{if(n){if(n.code==="ENOENT")return o();return o(n)}if(areIdentical(t,i)){return o(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,u,s,o)}))}function checkParentPathsSync(e,t,r,s){const o=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(r));if(a===o||a===i.parse(a).root)return;let u;try{u=n.statSync(a,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,u)){throw new Error(errMsg(e,r,s))}return checkParentPathsSync(e,t,a,s)}function areIdentical(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},7237:(e,t,r)=>{"use strict";const n=r(7765);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,s)=>{if(e)return i(e);n.futimes(s,t,r,(e=>{n.close(s,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},3236:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7765:(e,t,r)=>{var n=r(7147);var i=r(7457);var s=r(7681);var o=r(3236);var a=r(3837);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var c=noop;if(a.debuglog)c=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[u]){var f=global[u]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(n[u]);r(9491).equal(n[u].length,0)}))}}if(!global[u]){publishQueue(global,n[u])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,s){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,s){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return o(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.readdir;e.readdir=readdir;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;return go$readdir(e,t,r);function go$readdir(e,t,r,n){return a(e,t,(function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,t,r],i,n||Date.now(),Date.now()]);else{if(s&&s.sort)s.sort();if(typeof r==="function")r.call(this,i,s)}}))}}if(process.version.substr(0,4)==="v0.8"){var u=s(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.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 d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.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(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){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(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var p=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return p(e,t,r,(function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);n[u].push(e);retry()}var d;function resetQueue(){var e=Date.now();for(var t=0;t2){n[u][t][3]=e;n[u][t][4]=e}}retry()}function retry(){clearTimeout(d);d=undefined;if(n[u].length===0)return;var e=n[u].shift();var t=e[0];var r=e[1];var i=e[2];var s=e[3];var o=e[4];if(s===undefined){c("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){c("TIMEOUT",t.name,r);var a=r.pop();if(typeof a==="function")a.call(null,i)}else{var l=Date.now()-o;var f=Math.max(o-s,1);var p=Math.min(f*1.2,100);if(l>=p){c("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{n[u].push(e)}}if(d===undefined){d=setTimeout(retry,0)}}},7681:(e,t,r)=>{var n=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,a=s.length;othis.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,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var s=0,o=i.length;s= 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,t,r)=>{var n=r(2057);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(n.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,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(r,n,i){var s=Date.now();var o=0;t(r,n,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout((function(){e.stat(n,(function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else i(a)}))}),o);if(o<100)o+=10;return}if(i)i(a)}))}}(e.rename)}e.read=function(t){function read(r,n,i,s,o,a){var u;if(a&&typeof a==="function"){var l=0;u=function(c,f,d){if(c&&c.code==="EAGAIN"&&l<10){l++;return t.call(e,r,n,i,s,o,u)}a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=function(t){return function(r,n,i,s,o){var a=0;while(true){try{return t.call(e,r,n,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(i,r);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,r,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,s){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);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 t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},2157:(e,t,r)=>{"use strict";var n=r(2037);if(typeof n.homedir!=="undefined"){e.exports=n.homedir}else{e.exports=r(9975)}},9975:(e,t,r)=>{"use strict";var n=r(7147);var i=r(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 t=find(i(e),getuid());if(t){return t}var r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!r){return null}if(process.platform==="darwin"){return"/Users/"+r}return"/home/"+r}function find(e,t){var r=e.length;for(var n=0;n0){f("Patching connection write() output buffer with updated header");t=e.output[0];r=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(r);f("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){f("Patching connection write() output buffer with updated header");t=e.outputData[0].data;r=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(r);f("Output buffer: %o",e.outputData[0].data)}}yield(0,l.default)(u,"connect");return u}))}}t["default"]=HttpProxyAgent},5283:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(5724));function createHttpProxyAgent(e){return new i.default(e)}(function(e){e.HttpProxyAgent=i.default;e.prototype=i.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},7316:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(1808));const o=i(r(4404));const a=i(r(7310));const u=i(r(9491));const l=i(r(5598));const c=r(5689);const f=i(r(5335));const d=l.default("https-proxy-agent:agent");class HttpsProxyAgent extends c.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}d("creating new HttpsProxyAgent instance: %o",t);super(t);const r=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(r.protocol);r.host=r.hostname||r.host;if(typeof r.port==="string"){r.port=parseInt(r.port,10)}if(!r.port&&r.host){r.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in r)){r.ALPNProtocols=["http 1.1"]}if(r.host&&r.path){delete r.path;delete r.pathname}this.proxy=r}callback(e,t){return n(this,void 0,void 0,(function*(){const{proxy:r,secureProxy:n}=this;let i;if(n){d("Creating `tls.Socket`: %o",r);i=o.default.connect(r)}else{d("Creating `net.Socket`: %o",r);i=s.default.connect(r)}const a=Object.assign({},r.headers);const l=`${t.host}:${t.port}`;let c=`CONNECT ${l} HTTP/1.1\r\n`;if(r.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(r.auth).toString("base64")}`}let{host:p,port:h,secureEndpoint:m}=t;if(!isDefaultPort(h,m)){p+=`:${h}`}a.Host=p;a.Connection="close";for(const e of Object.keys(a)){c+=`${e}: ${a[e]}\r\n`}const v=f.default(i);i.write(`${c}\r\n`);const{statusCode:g,buffered:y}=yield v;if(g===200){e.once("socket",resume);if(t.secureEndpoint){const e=t.servername||t.host;if(!e){throw new Error('Could not determine "servername"')}d("Upgrading socket connection to TLS");return o.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:i,servername:e}))}return i}i.destroy();const b=new s.default.Socket;b.readable=true;e.once("socket",(e=>{d("replaying proxy buffer for failed request");u.default(e.listenerCount("data")>0);e.push(y);e.push(null)}));return b}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},72:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(7316));function createHttpsProxyAgent(e){return new i.default(e)}(function(e){e.HttpsProxyAgent=i.default;e.prototype=i.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},5335:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5598));const s=i.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,r)=>{let n=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){s("onclose had error %o",e)}function onend(){s("onend")}function onerror(e){cleanup();s("onerror %o",e);r(e)}function ondata(e){i.push(e);n+=e.length;const r=Buffer.concat(i,n);const o=r.indexOf("\r\n\r\n");if(o===-1){s("have not received end of HTTP headers yet...");read();return}const a=r.toString("ascii",0,r.indexOf("\r\n"));const u=+a.split(" ")[1];s("got proxy server response: %o",a);t({statusCode:u,buffered:r})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},979:(e,t,r)=>{"use strict"; /*! * humanize-ms - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */var n=r(3837);var i=r(8527);e.exports=function(e){if(typeof e==="number")return e;var t=i(e);if(t===undefined){var r=new Error(n.format("humanize-ms(%j) result undefined",e));console.warn(r.stack)}return t}},1972:e=>{"use strict";var t=typeof window!=="undefined"?window:typeof global!=="undefined"?global:{};e.exports=Individual;function Individual(e,r){if(e in t){return t[e]}t[e]=r;return r}},5651:(e,t,r)=>{try{var n=r(3837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(5940)}},5940:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},9316:(e,t,r)=>{"use strict";var n=t;var i=r(4300).Buffer;var s=r(2037);n.toBuffer=function(e,t,r){r=~~r;var n;if(this.isV4Format(e)){n=t||new i(r+4);e.split(/\./g).map((function(e){n[r++]=parseInt(e,10)&255}))}else if(this.isV6Format(e)){var s=e.split(":",8);var o;for(o=0;o0;o--){l.push("0")}s.splice.apply(s,l)}n=t||new i(r+16);for(o=0;o>8&255;n[r++]=c&255}}if(!n){throw Error("Invalid ip address: "+e)}return n};n.toString=function(e,t,r){t=~~t;r=r||e.length-t;var n=[];if(r===4){for(var i=0;i32){t="ipv6"}else{t=_normalizeFamily(t)}var r=4;if(t==="ipv6"){r=16}var s=new i(r);for(var o=0,a=s.length;o>u)&255}return n.toString(s)};n.mask=function(e,t){e=n.toBuffer(e);t=n.toBuffer(t);var r=new i(Math.max(e.length,t.length));var s=0;if(e.length===t.length){for(s=0;se.length){i=t;s=e}var o=i.length-s.length;for(var r=o;r>>0};n.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(e&255)}},3639:(e,t,r)=>{"use strict";var n=r(6344);var i=r(7902);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(4098);e.exports.Schema=r(5217);e.exports.FAILSAFE_SCHEMA=r(3183);e.exports.JSON_SCHEMA=r(9116);e.exports.CORE_SCHEMA=r(9043);e.exports.DEFAULT_SCHEMA=r(6672);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=r(876);e.exports.types={binary:r(1688),float:r(3250),map:r(723),null:r(2451),pairs:r(5671),set:r(3051),timestamp:r(8285),bool:r(8510),int:r(2682),merge:r(5831),omap:r(3602),seq:r(9130),str:r(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,t){var r,n,i,s;if(t){s=Object.keys(t);for(r=0,n=s.length;r{"use strict";var n=r(5929);var i=r(876);var s=r(6672);var o=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var u=65279;var l=9;var c=10;var f=13;var d=32;var p=33;var h=34;var m=35;var v=37;var g=38;var y=39;var b=42;var S=44;var w=45;var _=58;var E=61;var k=62;var P=63;var C=64;var x=91;var O=93;var R=96;var I=123;var A=124;var T=125;var D={};D[0]="\\0";D[7]="\\a";D[8]="\\b";D[9]="\\t";D[10]="\\n";D[11]="\\v";D[12]="\\f";D[13]="\\r";D[27]="\\e";D[34]='\\"';D[92]="\\\\";D[133]="\\N";D[160]="\\_";D[8232]="\\L";D[8233]="\\P";var F=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var L=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,i,s,o,u,l;if(t===null)return{};r={};n=Object.keys(t);for(i=0,s=n.length;i=55296&&r<=56319&&t+1=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var B=1,M=2,$=3,U=4,H=5;function chooseScalarStyle(e,t,r,n,i,s,o,a){var u;var l=0;var f=null;var d=false;var p=false;var h=n!==-1;var m=-1;var v=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||o){for(u=0;u=65536?u+=2:u++){l=codePointAt(e,u);if(!isPrintable(l)){return H}v=v&&isPlainSafe(l,f,a);f=l}}else{for(u=0;u=65536?u+=2:u++){l=codePointAt(e,u);if(l===c){d=true;if(h){p=p||u-m-1>n&&e[m+1]!==" ";m=u}}else if(!isPrintable(l)){return H}v=v&&isPlainSafe(l,f,a);f=l}p=p||h&&(u-m-1>n&&e[m+1]!==" ")}if(!d&&!p){if(v&&!o&&!i(e)){return B}return s===j?H:M}if(r>9&&needIndentIndicator(e)){return H}if(!o){return p?U:$}return s===j?H:M}function writeScalar(e,t,r,n,s){e.dump=function(){if(t.length===0){return e.quotingType===j?'""':"''"}if(!e.noCompatMode){if(F.indexOf(t)!==-1||L.test(t)){return e.quotingType===j?'"'+t+'"':"'"+t+"'"}}var o=e.indent*Math.max(1,r);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o);var u=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,u,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,s)){case B:return t;case M:return"'"+t.replace(/'/g,"''")+"'";case $:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case U:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),o));case H:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var i=n&&(e[e.length-2]==="\n"||e==="\n");var s=i?"+":n?"":"-";return r+s+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var i=e[0]==="\n"||e[0]===" ";var s;var o;while(o=r.exec(e)){var a=o[1],u=o[2];s=u[0]===" ";n+=a+(!i&&!s&&u!==""?"\n":"")+foldLine(u,t);i=s}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var i=0,s,o=0,a=0;var u="";while(n=r.exec(e)){a=n.index;if(a-i>t){s=o>i?o:a;u+="\n"+e.slice(i,s);i=s+1}o=a}u+="\n";if(e.length-i>t&&o>i){u+=e.slice(i,o)+"\n"+e.slice(o+1)}else{u+=e.slice(i)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var i=0;i=65536?i+=2:i++){r=codePointAt(e,i);n=D[r];if(!n&&isPrintable(r)){t+=e[i];if(r>=65536)t+=e[i+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=i;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var s="",o=e.tag,a=Object.keys(r),u,l,f,d,p,h;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(u=0,l=a.length;u1024;if(p){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(p){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,d,true,p)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;s+=h}e.tag=o;e.dump=s||"{}"}function detectType(e,t,r){var n,s,u,l,c,f;s=r?e.explicitTypes:e.implicitTypes;for(u=0,l=s.length;u tag resolver accepts not "'+f+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,s,a,u){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var l=o.call(e.dump);var c=n;var f;if(n){n=e.flowLevel<0||e.flowLevel>t}var d=l==="[object Object]"||l==="[object Array]",p,h;if(d){p=e.duplicates.indexOf(r);h=p!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){s=false}if(h&&e.usedDuplicates[p]){e.dump="*ref_"+p}else{if(d&&h&&!e.usedDuplicates[p]){e.usedDuplicates[p]=true}if(l==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,s);if(h){e.dump="&ref_"+p+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+p+" "+e.dump}}}else if(l==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!u&&t>0){writeBlockSequence(e,t-1,e.dump,s)}else{writeBlockSequence(e,t,e.dump,s)}if(h){e.dump="&ref_"+p+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+p+" "+e.dump}}}else if(l==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,c)}}else if(l==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+l)}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,t){var r=[],n=[],i,s;inspectNode(e,r,n);for(i=0,s=n.length;i{"use strict";function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;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,t,r)=>{"use strict";var n=r(5929);var i=r(876);var s=r(6589);var o=r(6672);var a=Object.prototype.hasOwnProperty;var u=1;var l=2;var c=3;var f=4;var d=1;var p=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 g=/[,\[\]\{\}]/;var y=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[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 t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-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 w=new Array(256);for(var _=0;_<256;_++){S[_]=simpleEscapeSequence(_)?1:0;w[_]=simpleEscapeSequence(_)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||o;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["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,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=s(r);return new i(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var E={YAML:function handleYamlDirective(e,t,r){var n,i,s;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(n[1],10);s=parseInt(n[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];i=r[1];if(!y.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!b.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function captureSegment(e,t,r,n){var i,s,o,a;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,i,s,o,a,u,l,c,f=e.kind,d=e.result,p;p=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(p)||is_FLOW_INDICATOR(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96){return false}if(p===63||p===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";s=o=e.position;a=false;while(p!==0){if(p===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(p===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(p)){break}else if(is_EOL(p)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;p=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(a){captureSegment(e,s,o,false);writeFoldedLines(e,e.line-u);s=o=e.position;a=false}if(!is_WHITE_SPACE(p)){o=e.position+1}p=e.input.charCodeAt(++e.position)}captureSegment(e,s,o,false);if(e.result){return true}e.kind=f;e.result=d;return false}function readSingleQuotedScalar(e,t){var r,n,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=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,t){var r,n,i,s,o,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&S[a]){e.result+=w[a];e.position++}else if((o=escapedHexLen(a))>0){i=o;s=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((o=fromHexCode(a))>=0){s=(s<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=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++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,i,s,o=e.tag,a,l=e.anchor,c,f,d,p,h,m=Object.create(null),v,g,y,b;b=e.input.charCodeAt(e.position);if(b===91){f=93;h=false;a=[]}else if(b===123){f=125;h=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===f){e.position++;e.tag=o;e.anchor=l;e.kind=h?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}g=v=y=null;d=p=false;if(b===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){d=p=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;i=e.lineStart;s=e.position;composeNode(e,t,u,false,true);g=e.tag;v=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((p||e.line===n)&&b===58){d=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,u,false,true);y=e.result}if(h){storeMappingPair(e,a,m,g,v,y,n,i,s)}else if(d){a.push(storeMappingPair(e,null,m,g,v,y,n,i,s))}else{a.push(v)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){r=true;b=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,i,s=d,o=false,a=false,u=t,l=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(d===s){s=m===43?h:p}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(!a){u=t+f-1;a=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((!a||e.lineIndentu){u=e.lineIndent}if(is_EOL(m)){l++;continue}if(e.lineIndentt)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(y){o=e.line;a=e.lineStart;u=e.position}if(composeNode(e,t,f,true,i)){if(y){v=e.result}else{g=e.result}}if(!y){storeMappingPair(e,p,h,m,v,g,o,a,u);m=v=g=null}skipSeparationSpace(e,true,-1);S=e.input.charCodeAt(e.position)}if((e.line===s||e.lineIndent>t)&&S!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){p=1}else if(e.lineIndent===t){p=0}else if(e.lineIndentt){p=1}else if(e.lineIndent===t){p=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,g=e.implicitTypes.length;v")}if(e.result!==null&&b.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.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 t=e.position,r,n,i,s=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}s=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);i=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}i.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(a.call(E,n)){E[n](e,n,i)}else{throwWarning(e,'unknown document directive "'+n+'"')}}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(s){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(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var n=r(876);var i=r(4098);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t{"use strict";e.exports=r(9116)},6672:(e,t,r)=>{"use strict";e.exports=r(9043).extend({implicit:[r(8285),r(5831)],explicit:[r(1688),r(3602),r(5671),r(3051)]})},3183:(e,t,r)=>{"use strict";var n=r(5217);e.exports=new n({explicit:[r(802),r(9130),r(723)]})},9116:(e,t,r)=>{"use strict";e.exports=r(3183).extend({implicit:[r(2451),r(8510),r(2682),r(3250)]})},6589:(e,t,r)=>{"use strict";var n=r(5929);function getLine(e,t,r,n,i){var s="";var o="";var a=Math.floor(i/2)-1;if(n-t>a){s=" ... ";t=n-a+s.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:s+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+s.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var i=[0];var s=[];var o;var a=-1;while(o=r.exec(e.buffer)){s.push(o.index);i.push(o.index+o[0].length);if(e.position<=o.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var u="",l,c;var f=Math.min(e.line+t.linesAfter,s.length).toString().length;var d=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore;l++){if(a-l<0)break;c=getLine(e.buffer,i[a-l],s[a-l],e.position-(i[a]-i[a-l]),d);u=n.repeat(" ",t.indent)+padStart((e.line-l+1).toString(),f)+" | "+c.str+"\n"+u}c=getLine(e.buffer,i[a],s[a],e.position,d);u+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";u+=n.repeat("-",t.indent+f+3+c.pos)+"^"+"\n";for(l=1;l<=t.linesAfter;l++){if(a+l>=s.length)break;c=getLine(e.buffer,i[a+l],s[a+l],e.position-(i[a]-i[a+l]),d);u+=n.repeat(" ",t.indent)+padStart((e.line+l+1).toString(),f)+" | "+c.str+"\n"}return u.replace(/\n$/,"")}e.exports=makeSnippet},4098:(e,t,r)=>{"use strict";var n=r(876);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var s=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(i.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(s.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},1688:(e,t,r)=>{"use strict";var n=r(4098);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,s=e.length,o=i;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,o=i,a=0,u=[];for(t=0;t>16&255);u.push(a>>8&255);u.push(a&255)}a=a<<6|o.indexOf(n.charAt(t))}r=s%4*6;if(r===0){u.push(a>>16&255);u.push(a>>8&255);u.push(a&255)}else if(r===18){u.push(a>>10&255);u.push(a>>2&255)}else if(r===12){u.push(a>>4&255)}return new Uint8Array(u)}function representYamlBinary(e){var t="",r=0,n,s,o=e.length,a=i;for(n=0;n>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}r=(r<<8)+e[n]}s=o%3;if(s===0){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}else if(s===2){t+=a[r>>10&63];t+=a[r>>4&63];t+=a[r<<2&63];t+=a[64]}else if(s===1){t+=a[r>>2&63];t+=a[r<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},8510:(e,t,r)=>{"use strict";var n=r(4098);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===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 n("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,t,r)=>{"use strict";var n=r(5929);var i=r(4098);var s=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(!s.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var o=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return o.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.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,t,r)=>{"use strict";var n=r(5929);var i=r(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 t=e.length,r=0,n=false,i;if(!t)return false;i=e[r];if(i==="-"||i==="+"){i=e[++r]}if(i==="0"){if(r+1===t)return true;i=e[++r];if(i==="b"){r++;for(;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},723:(e,t,r)=>{"use strict";var n=r(4098);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},5831:(e,t,r)=>{"use strict";var n=r(4098);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2451:(e,t,r)=>{"use strict";var n=r(4098);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("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,t,r)=>{"use strict";var n=r(4098);var i=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,o,a,u,l=e;for(r=0,n=l.length;r{"use strict";var n=r(4098);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,s,o,a=e;o=new Array(a.length);for(t=0,r=a.length;t{"use strict";var n=r(4098);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},3051:(e,t,r)=>{"use strict";var n=r(4098);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(i.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},802:(e,t,r)=>{"use strict";var n=r(4098);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},8285:(e,t,r)=>{"use strict";var n=r(4098);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var s=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(s.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,o,a,u,l,c=0,f=null,d,p,h;t=i.exec(e);if(t===null)t=s.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;o=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,o))}a=+t[4];u=+t[5];l=+t[6];if(t[7]){c=t[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(t[9]){d=+t[10];p=+(t[11]||0);f=(d*60+p)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(r,n,o,a,u,l,c));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},8154:e=>{"use strict";var t=e.exports=function(e,t,r){if(typeof t=="function"){r=t;t={}}r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){};var i=r.post||function(){};_traverse(t,n,i,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,n,i,s,o,a,u,l,c){if(i&&typeof i=="object"&&!Array.isArray(i)){r(i,s,o,a,u,l,c);for(var f in i){var d=i[f];if(Array.isArray(d)){if(f in t.arrayKeywords){for(var p=0;p{t=e.exports=stringify;t.getSerialize=serializer;function stringify(e,t,r,n){return JSON.stringify(e,serializer(t,n),r)}function serializer(e,t){var r=[],n=[];if(t==null)t=function(e,t){if(r[0]===t)return"[Circular ~]";return"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"};return function(i,s){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this);~o?n.splice(o,Infinity,i):n.push(i);if(~r.indexOf(s))s=t.call(this,i,s)}else r.push(s);return e==null?s:e.call(this,i,s)}}},5533:(e,t,r)=>{let n;try{n=r(7765)}catch(e){n=r(7147)}const i=r(3706);const{stringify:s,stripBom:o}=r(8171);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const s="throws"in t?t.throws:true;let a=await i.fromCallback(r.readFile)(e,t);a=o(a);let u;try{u=JSON.parse(a,t?t.reviver:null)}catch(t){if(s){t.message=`${e}: ${t.message}`;throw t}else{return null}}return u}const a=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=o(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const o=r.fs||n;const a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)}const u=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const o=s(t,r);return i.writeFileSync(e,o,r)}const l={readFile:a,readFileSync:readFileSync,writeFile:u,writeFileSync:writeFileSync};e.exports=l},8171:e=>{function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const s=r?t:"";const o=JSON.stringify(e,n,i);return o.replace(/\n/g,t)+s}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},1296:(e,t,r)=>{"use strict";const n=r(6368);const i=Symbol("max");const s=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const u=Symbol("maxAge");const l=Symbol("dispose");const c=Symbol("noDisposeOnSet");const f=Symbol("lruList");const d=Symbol("cache");const p=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[i]=e.max||Infinity;const r=e.length||naiveLength;this[o]=typeof r!=="function"?naiveLength:r;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[l]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||Infinity;trim(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;trim(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[s]=0;this[f].forEach((e=>{e.length=this[o](e.value,e.key);this[s]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;r!==null;){const n=r.prev;forEachStep(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;r!==null;){const n=r.next;forEachStep(this,e,r,t);r=n}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){if(this[l]&&this[f]&&this[f].length){this[f].forEach((e=>this[l](e.key,e.value)))}this[d]=new Map;this[f]=new n;this[s]=0}dump(){return this[f].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,r){r=r||this[u];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const n=r?Date.now():0;const a=this[o](t,e);if(this[d].has(e)){if(a>this[i]){del(this,this[d].get(e));return false}const o=this[d].get(e);const u=o.value;if(this[l]){if(!this[c])this[l](e,u.value)}u.now=n;u.maxAge=r;u.value=t;this[s]+=a-u.length;u.length=a;this.get(e);trim(this);return true}const p=new Entry(e,t,a,n,r);if(p.length>this[i]){if(this[l])this[l](e,t);return false}this[s]+=p.length;this[f].unshift(p);this[d].set(e,this[f].head);trim(this);return true}has(e){if(!this[d].has(e))return false;const t=this[d].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[f].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r];const i=n.e||0;if(i===0)this.set(n.k,n.v);else{const e=i-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[d].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const n=e[d].get(t);if(n){const t=n.value;if(isStale(e,t)){del(e,n);if(!e[a])return undefined}else{if(r){if(e[p])n.value.now=Date.now();e[f].unshiftNode(n)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]};const trim=e=>{if(e[s]>e[i]){for(let t=e[f].tail;e[s]>e[i]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[l])e[l](r.key,r.value);e[s]-=r.length;e[d].delete(r.key);e[f].removeNode(t)}};class Entry{constructor(e,t,r,n,i){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=i||0}}const forEachStep=(e,t,r,n)=>{let i=r.value;if(isStale(e,i)){del(e,r);if(!e[a])i=undefined}if(i)t.call(n,i.value,i.key,e)};e.exports=LRUCache},401:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=i){return Math.round(e/i)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=i){return plural(e,s,i,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},8527:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=i){return Math.round(e/i)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=i){return plural(e,s,i,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},9847:(e,t,r)=>{const n=r(1596);const i=r(5021);const{EOL:s}=r(2037);const o=r(5056);e.exports.stringify=e=>n.obj(e,((e,t,r)=>{r(null,o(e)+s)}));e.exports.parse=e=>{e=e||{};e.strict=e.strict!==false;function parseRow(t){try{if(t)return JSON.parse(t)}catch(r){if(e.strict){this.emit("error",new Error("Could not parse row "+t.slice(0,50)+"..."))}}}return i(parseRow,e)}},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,t){if(!e||!e.length||e.charAt(0)==="#"){return null}var r=e.split(":");return{username:r[0],password:r[1],uid:r[2],gid:r[3],gecos:r[4],homedir:r[5],shell:r[6]}}},614:e=>{"use strict";const t={};function createErrorType(e,r,n){if(!n){n=Error}function getMessage(e,t,n){if(typeof r==="string"){return r}else{return r(e,t,n)}}class NodeError extends n{constructor(e,t,r){super(getMessage(e,t,r))}}NodeError.prototype.name=n.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const r=e.length;e=e.map((e=>String(e)));if(r>2){return`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]}else if(r===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function endsWith(e,t,r){if(r===undefined||r>e.length){r=e.length}return e.substring(r-t.length,r)===t}function includes(e,t,r){if(typeof r!=="number"){r=0}if(r+t.length>e.length){return false}else{return e.indexOf(t,r)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,t,r){let n;if(typeof t==="string"&&startsWith(t,"not ")){n="must not be";t=t.replace(/^not /,"")}else{n="must be"}let i;if(endsWith(e," argument")){i=`The ${e} ${n} ${oneOf(t,"type")}`}else{const r=includes(e,".")?"property":"argument";i=`The "${e}" ${r} ${n} ${oneOf(t,"type")}`}i+=`. Received type ${typeof r}`;return i}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.q=t},3444:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var i=r(7253);var s=r(3399);r(5651)(Duplex,i);{var o=n(s.prototype);for(var a=0;a{"use strict";e.exports=PassThrough;var n=r(7291);r(5651)(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},7253:(e,t,r)=>{"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(2361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(7121);var a=r(4300).Buffer;var u=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof u}var l=r(3837);var c;if(l&&l.debuglog){c=l.debuglog("stream")}else{c=function debug(){}}var f=r(7275);var d=r(1317);var p=r(6125),h=p.getHighWaterMark;var m=r(614).q,v=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,y=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var S;var w;var _;r(5651)(Readable,o);var E=d.errorOrDestroy;var k=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t,i){n=n||r(3444);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=h(this,e,"readableHighWaterMark",i);this.buffer=new f;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!S)S=r(9488).s;this.decoder=new S(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(3444);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof n;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=d.destroy;Readable.prototype._undestroy=d.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=a.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){c("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){E(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==a.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)E(e,new b);else addChunk(e,s,t,true)}else if(s.ended){E(e,new g)}else if(s.destroyed){return false}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length=P){e=P}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){c("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){c("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var n=t.needReadable;c("need readable",n);if(t.length===0||t.length-e0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){c("onEofChunk");if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){c("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length1&&indexOf(n.pipes,e)!==-1)&&!u){c("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){c("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)E(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){c("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){c("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){c("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;c("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){process.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){c("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){c("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){c("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){c("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){c("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;c("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){c("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(i){c("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&(i===null||i===undefined))return;else if(!r.objectMode&&(!i||!i.length))return;var s=t.push(i);if(!s){n=true;e.pause()}}));for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(i)}}for(var s=0;s=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function endReadable(e){var t=e._readableState;c("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){c("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if(_===undefined){_=r(9144)}return _(Readable,e,t)}}function indexOf(e,t){for(var r=0,n=e.length;r{"use strict";e.exports=Transform;var n=r(614).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0;var u=r(3444);r(5651)(Transform,u);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length{"use strict";e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n;Writable.WritableState=WritableState;var i={deprecate:r(5372)};var s=r(7121);var o=r(4300).Buffer;var a=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof a}var u=r(1317);var l=r(6125),c=l.getHighWaterMark;var f=r(614).q,d=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,g=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING;var S=u.errorOrDestroy;r(5651)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(3444);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=c(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:i.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var w;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){w=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(w.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{w=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(3444);var t=this instanceof n;if(!t&&!w.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}s.call(this)}Writable.prototype.pipe=function(){S(this,new m)};function writeAfterEnd(e,t){var r=new y;S(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new g}else if(typeof r!=="string"&&!t.objectMode){i=new d("chunk",["string","Buffer"],r)}if(i){S(e,i);process.nextTick(n,i);return false}return true}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,e,t,r)}return i};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new b(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=o.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length{"use strict";var n;function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var i=r(5617);var s=Symbol("lastResolve");var o=Symbol("lastReject");var a=Symbol("error");var u=Symbol("ended");var l=Symbol("lastPromise");var c=Symbol("handlePromise");var f=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[f].read();if(r!==null){e[l]=null;e[s]=null;e[o]=null;t(createIterResult(r,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(r,n){e.then((function(){if(t[u]){r(createIterResult(undefined,true));return}t[c](r,n)}),n)}}var d=Object.getPrototypeOf((function(){}));var p=Object.setPrototypeOf((n={get stream(){return this[f]},next:function next(){var e=this;var t=this[a];if(t!==null){return Promise.reject(t)}if(this[u]){return Promise.resolve(createIterResult(undefined,true))}if(this[f].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[a]){r(e[a])}else{t(createIterResult(undefined,true))}}))}))}var r=this[l];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[f].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[c])}this[l]=n;return n}},_defineProperty(n,Symbol.asyncIterator,(function(){return this})),_defineProperty(n,"return",(function _return(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),d);var h=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(p,(t={},_defineProperty(t,f,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,a,{value:null,writable:true}),_defineProperty(t,u,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,c,{value:function value(e,t){var n=r[f].read();if(n){r[l]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[l]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[l]=null;r[s]=null;r[o]=null;t(e)}r[a]=e;return}var n=r[s];if(n!==null){r[l]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[u]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=h},7275:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r}},{key:"concat",value:function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t}},{key:"consume",value:function consume(e,t){var r;if(ei.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}break}++r}this.length-=r;return n}},{key:"_getBuffer",value:function _getBuffer(e){var t=i.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:a,value:function value(e,t){return o(this,_objectSpread({},t,{depth:0,customInspect:false}))}}]);return BufferList}()},1317:e=>{"use strict";function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(n||i){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){process.nextTick(emitErrorAndCloseNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,r,e)}else{process.nextTick(emitCloseNT,r)}}else if(t){process.nextTick(emitCloseNT,r);t(e)}else{process.nextTick(emitCloseNT,r)}}));return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var r=e._readableState;var n=e._writableState;if(r&&r.autoDestroy||n&&n.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},5617:(e,t,r)=>{"use strict";var n=r(614).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t{"use strict";var n;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var i=r(614).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,i,s){s=once(s);var a=false;e.on("close",(function(){a=true}));if(n===undefined)n=r(5617);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);a=true;s()}));var u=false;return function(t){if(a)return;if(u)return;u=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),r=0;r0;return destroyer(e,s,a,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},6125:(e,t,r)=>{"use strict";var n=r(614).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,i){var s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},7121:(e,t,r)=>{e.exports=r(2781)},3020:(e,t,r)=>{var n=r(2781);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n.Readable;Object.assign(e.exports,n);e.exports.Stream=n}else{t=e.exports=r(7253);t.Stream=n||t;t.Readable=t;t.Writable=r(3399);t.Duplex=r(3444);t.Transform=r(7291);t.PassThrough=r(7712);t.finished=r(5617);t.pipeline=r(6481)}},2683:(e,t,r)=>{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var n=r(4300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4105);const i=4096;const s="utf8";class SmartBuffer{constructor(e){this.length=0;this._encoding=s;this._writeOffset=0;this._readOffset=0;if(SmartBuffer.isSmartBufferOptions(e)){if(e.encoding){n.checkEncoding(e.encoding);this._encoding=e.encoding}if(e.size){if(n.isFiniteInteger(e.size)&&e.size>0){this._buff=Buffer.allocUnsafe(e.size)}else{throw new Error(n.ERRORS.INVALID_SMARTBUFFER_SIZE)}}else if(e.buff){if(Buffer.isBuffer(e.buff)){this._buff=e.buff;this.length=e.buff.length}else{throw new Error(n.ERRORS.INVALID_SMARTBUFFER_BUFFER)}}else{this._buff=Buffer.allocUnsafe(i)}}else{if(typeof e!=="undefined"){throw new Error(n.ERRORS.INVALID_SMARTBUFFER_OBJECT)}this._buff=Buffer.allocUnsafe(i)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(t.encoding!==undefined||t.size!==undefined||t.buff!==undefined)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){n.bigIntAndBufferInt64Check("readBigInt64BE");return this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){n.bigIntAndBufferInt64Check("readBigInt64LE");return this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t);return this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){n.bigIntAndBufferInt64Check("readBigUInt64BE");return this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){n.bigIntAndBufferInt64Check("readBigUInt64LE");return this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let r;if(typeof e==="number"){n.checkLengthValue(e);r=Math.min(e,this.length-this._readOffset)}else{t=e;r=this.length-this._readOffset}if(typeof t!=="undefined"){n.checkEncoding(t)}const i=this._buff.slice(this._readOffset,this._readOffset+r).toString(t||this._encoding);this._readOffset+=r;return i}insertString(e,t,r){n.checkOffsetValue(t);return this._handleString(e,true,t,r)}writeString(e,t,r){return this._handleString(e,false,t,r)}readStringNT(e){if(typeof e!=="undefined"){n.checkEncoding(e)}let t=this.length;for(let e=this._readOffset;ethis.length){throw new Error(n.ERRORS.INVALID_READ_BEYOND_BOUNDS)}}ensureInsertable(e,t){n.checkOffsetValue(t);this._ensureCapacity(this.length+e);if(tthis.length){this.length=t+e}else{this.length+=e}}_ensureWriteable(e,t){const r=typeof t==="number"?t:this._writeOffset;this._ensureCapacity(r+e);if(r+e>this.length){this.length=r+e}}_ensureCapacity(e){const t=this._buff.length;if(e>t){let r=this._buff;let n=t*3/2+1;if(n{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4300);const i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};t.ERRORS=i;function checkEncoding(e){if(!n.Buffer.isEncoding(e)){throw new Error(i.INVALID_ENCODING)}}t.checkEncoding=checkEncoding;function isFiniteInteger(e){return typeof e==="number"&&isFinite(e)&&isInteger(e)}t.isFiniteInteger=isFiniteInteger;function checkOffsetOrLengthValue(e,t){if(typeof e==="number"){if(!isFiniteInteger(e)||e<0){throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}}else{throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER)}}function checkLengthValue(e){checkOffsetOrLengthValue(e,false)}t.checkLengthValue=checkLengthValue;function checkOffsetValue(e){checkOffsetOrLengthValue(e,true)}t.checkOffsetValue=checkOffsetValue;function checkTargetOffset(e,t){if(e<0||e>t.length){throw new Error(i.INVALID_TARGET_OFFSET)}}t.checkTargetOffset=checkTargetOffset;function isInteger(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e}function bigIntAndBufferInt64Check(e){if(typeof BigInt==="undefined"){throw new Error("Platform does not support JS BigInt type.")}if(typeof n.Buffer.prototype[e]==="undefined"){throw new Error(`Platform does not support Buffer.prototype.${e}.`)}}t.bigIntAndBufferInt64Check=bigIntAndBufferInt64Check},8345:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(9523));const o=i(r(4404));const a=i(r(7310));const u=i(r(5598));const l=r(5689);const c=r(8003);const f=u.default("socks-proxy-agent");function dnsLookup(e){return new Promise(((t,r)=>{s.default.lookup(e,((e,n)=>{if(e){r(e)}else{t(n)}}))}))}function parseSocksProxy(e){let t=0;let r=false;let n=5;const i=e.hostname||e.host;if(!i){throw new TypeError('No "host"')}if(typeof e.port==="number"){t=e.port}else if(typeof e.port==="string"){t=parseInt(e.port,10)}if(!t){t=1080}if(e.protocol){switch(e.protocol.replace(":","")){case"socks4":r=true;case"socks4a":n=4;break;case"socks5":r=true;case"socks":case"socks5h":n=5;break;default:throw new TypeError(`A "socks" protocol must be specified! Got: ${e.protocol}`)}}if(typeof e.type!=="undefined"){if(e.type===4||e.type===5){n=e.type}else{throw new TypeError(`"type" must be 4 or 5, got: ${e.type}`)}}const s={host:i,port:t,type:n};let o=e.userId||e.username;let a=e.password;if(e.auth){const t=e.auth.split(":");o=t[0];a=t[1]}if(o){Object.defineProperty(s,"userId",{value:o,enumerable:false})}if(a){Object.defineProperty(s,"password",{value:a,enumerable:false})}return{lookup:r,proxy:s}}class SocksProxyAgent extends l.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new TypeError("a SOCKS proxy server `host` and `port` must be specified!")}super(t);const r=parseSocksProxy(t);this.lookup=r.lookup;this.proxy=r.proxy;this.tlsConnectionOptions=t.tls||{}}callback(e,t){return n(this,void 0,void 0,(function*(){const{lookup:e,proxy:r}=this;let{host:n,port:i,timeout:s}=t;if(!n){throw new Error("No `host` defined!")}if(e){n=yield dnsLookup(n)}const a={proxy:r,destination:{host:n,port:i},command:"connect",timeout:s};f("Creating socks proxy connection: %o",a);const{socket:u}=yield c.SocksClient.createConnection(a);f("Successfully created socks proxy connection");if(t.secureEndpoint){f("Upgrading socket connection to TLS");const e=t.servername||t.host;return o.default.connect(Object.assign(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:u,servername:e}),this.tlsConnectionOptions))}return u}))}}t["default"]=SocksProxyAgent;function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},329:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(8345));function createSocksProxyAgent(e){return new i.default(e)}(function(e){e.SocksProxyAgent=i.default;e.prototype=i.default.prototype})(createSocksProxyAgent||(createSocksProxyAgent={}));e.exports=createSocksProxyAgent},9054:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.SocksClientError=t.SocksClient=void 0;const i=r(2361);const s=r(1808);const o=r(9316);const a=r(8795);const u=r(2739);const l=r(6515);const c=r(7222);const f=r(5369);Object.defineProperty(t,"SocksClientError",{enumerable:true,get:function(){return f.SocksClientError}});class SocksClient extends i.EventEmitter{constructor(e){super();this.options=Object.assign({},e);(0,l.validateSocksClientOptions)(e);this.setState(u.SocksClientState.Created)}static createConnection(e,t){return new Promise(((r,n)=>{try{(0,l.validateSocksClientOptions)(e,["connect"])}catch(e){if(typeof t==="function"){t(e);return r(e)}else{return n(e)}}const i=new SocksClient(e);i.connect(e.existing_socket);i.once("established",(e=>{i.removeAllListeners();if(typeof t==="function"){t(null,e);r(e)}else{r(e)}}));i.once("error",(e=>{i.removeAllListeners();if(typeof t==="function"){t(e);r(e)}else{n(e)}}))}))}static createConnectionChain(e,t){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){try{(0,l.validateSocksClientChainOptions)(e)}catch(e){if(typeof t==="function"){t(e);return r(e)}else{return i(e)}}let n;if(e.randomizeChain){(0,f.shuffleArray)(e.proxies)}try{for(let t=0;tthis.onDataReceivedHandler(e);this.onClose=()=>this.onCloseHandler();this.onError=e=>this.onErrorHandler(e);this.onConnect=()=>this.onConnectHandler();const t=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||u.DEFAULT_TIMEOUT);if(t.unref&&typeof t.unref==="function"){t.unref()}if(e){this.socket=e}else{this.socket=new s.Socket}this.socket.once("close",this.onClose);this.socket.once("error",this.onError);this.socket.once("connect",this.onConnect);this.socket.on("data",this.onDataReceived);this.setState(u.SocksClientState.Connecting);this.receiveBuffer=new c.ReceiveBuffer;if(e){this.socket.emit("connect")}else{this.socket.connect(this.getSocketOptions());if(this.options.set_tcp_nodelay!==undefined&&this.options.set_tcp_nodelay!==null){this.socket.setNoDelay(!!this.options.set_tcp_nodelay)}}this.prependOnceListener("established",(e=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const t=this.receiveBuffer.get(this.receiveBuffer.length);e.socket.emit("data",t)}e.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.BoundWaitingForConnection){this.closeSocket(u.ERRORS.ProxyConnectionTimedOut)}}onConnectHandler(){this.setState(u.SocksClientState.Connected);if(this.options.proxy.type===4){this.sendSocks4InitialHandshake()}else{this.sendSocks5InitialHandshake()}this.setState(u.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e);this.processData()}processData(){while(this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize){if(this.state===u.SocksClientState.SentInitialHandshake){if(this.options.proxy.type===4){this.handleSocks4FinalHandshakeResponse()}else{this.handleInitialSocks5HandshakeResponse()}}else if(this.state===u.SocksClientState.SentAuthentication){this.handleInitialSocks5AuthenticationHandshakeResponse()}else if(this.state===u.SocksClientState.SentFinalHandshake){this.handleSocks5FinalHandshakeResponse()}else if(this.state===u.SocksClientState.BoundWaitingForConnection){if(this.options.proxy.type===4){this.handleSocks4IncomingConnectionResponse()}else{this.handleSocks5IncomingConnectionResponse()}}else{this.closeSocket(u.ERRORS.InternalError);break}}}onCloseHandler(){this.closeSocket(u.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause();this.socket.removeListener("data",this.onDataReceived);this.socket.removeListener("close",this.onClose);this.socket.removeListener("error",this.onError);this.socket.removeListener("connect",this.onConnect)}closeSocket(e){if(this.state!==u.SocksClientState.Error){this.setState(u.SocksClientState.Error);this.socket.destroy();this.removeInternalSocketHandlers();this.emit("error",new f.SocksClientError(e,this.options))}}sendSocks4InitialHandshake(){const e=this.options.proxy.userId||"";const t=new a.SmartBuffer;t.writeUInt8(4);t.writeUInt8(u.SocksCommand[this.options.command]);t.writeUInt16BE(this.options.destination.port);if(s.isIPv4(this.options.destination.host)){t.writeBuffer(o.toBuffer(this.options.destination.host));t.writeStringNT(e)}else{t.writeUInt8(0);t.writeUInt8(0);t.writeUInt8(0);t.writeUInt8(1);t.writeStringNT(e);t.writeStringNT(this.options.destination.host)}this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks4Response;this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted){this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedConnection} - (${u.Socks4Response[e[1]]})`)}else{if(u.SocksCommand[this.options.command]===u.SocksCommand.bind){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:o.fromLong(t.readUInt32BE())};if(r.host==="0.0.0.0"){r.host=this.options.proxy.ipaddress}this.setState(u.SocksClientState.BoundWaitingForConnection);this.emit("bound",{remoteHost:r,socket:this.socket})}else{this.setState(u.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{socket:this.socket})}}}handleSocks4IncomingConnectionResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted){this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${u.Socks4Response[e[1]]})`)}else{const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:o.fromLong(t.readUInt32BE())};this.setState(u.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{remoteHost:r,socket:this.socket})}}sendSocks5InitialHandshake(){const e=new a.SmartBuffer;const t=[u.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password){t.push(u.Socks5Auth.UserPass)}if(this.options.proxy.custom_auth_method!==undefined){t.push(this.options.proxy.custom_auth_method)}e.writeUInt8(5);e.writeUInt8(t.length);for(const r of t){e.writeUInt8(r)}this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse;this.socket.write(e.toBuffer());this.setState(u.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const e=this.receiveBuffer.get(2);if(e[0]!==5){this.closeSocket(u.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion)}else if(e[1]===u.SOCKS5_NO_ACCEPTABLE_AUTH){this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType)}else{if(e[1]===u.Socks5Auth.NoAuth){this.socks5ChosenAuthType=u.Socks5Auth.NoAuth;this.sendSocks5CommandRequest()}else if(e[1]===u.Socks5Auth.UserPass){this.socks5ChosenAuthType=u.Socks5Auth.UserPass;this.sendSocks5UserPassAuthentication()}else if(e[1]===this.options.proxy.custom_auth_method){this.socks5ChosenAuthType=this.options.proxy.custom_auth_method;this.sendSocks5CustomAuthentication()}else{this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}}}sendSocks5UserPassAuthentication(){const e=this.options.proxy.userId||"";const t=this.options.proxy.password||"";const r=new a.SmartBuffer;r.writeUInt8(1);r.writeUInt8(Buffer.byteLength(e));r.writeString(e);r.writeUInt8(Buffer.byteLength(t));r.writeString(t);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse;this.socket.write(r.toBuffer());this.setState(u.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return n(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size;this.socket.write(yield this.options.proxy.custom_auth_request_handler());this.setState(u.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(e)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return e[1]===0}))}handleSocks5AuthenticationUserPassHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return e[1]===0}))}handleInitialSocks5AuthenticationHandshakeResponse(){return n(this,void 0,void 0,(function*(){this.setState(u.SocksClientState.ReceivedAuthenticationResponse);let e=false;if(this.socks5ChosenAuthType===u.Socks5Auth.NoAuth){e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===u.Socks5Auth.UserPass){e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method){e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))}if(!e){this.closeSocket(u.ERRORS.Socks5AuthenticationFailed)}else{this.sendSocks5CommandRequest()}}))}sendSocks5CommandRequest(){const e=new a.SmartBuffer;e.writeUInt8(5);e.writeUInt8(u.SocksCommand[this.options.command]);e.writeUInt8(0);if(s.isIPv4(this.options.destination.host)){e.writeUInt8(u.Socks5HostType.IPv4);e.writeBuffer(o.toBuffer(this.options.destination.host))}else if(s.isIPv6(this.options.destination.host)){e.writeUInt8(u.Socks5HostType.IPv6);e.writeBuffer(o.toBuffer(this.options.destination.host))}else{e.writeUInt8(u.Socks5HostType.Hostname);e.writeUInt8(this.options.destination.host.length);e.writeString(this.options.destination.host)}e.writeUInt16BE(this.options.destination.port);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader;this.socket.write(e.toBuffer());this.setState(u.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const e=this.receiveBuffer.peek(5);if(e[0]!==5||e[1]!==u.Socks5Response.Granted){this.closeSocket(`${u.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${u.Socks5Response[e[1]]}`)}else{const t=e[3];let r;let n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SOCKS5_NO_ACCEPTABLE_AUTH=t.SOCKS5_CUSTOM_AUTH_END=t.SOCKS5_CUSTOM_AUTH_START=t.SOCKS_INCOMING_PACKET_SIZES=t.SocksClientState=t.Socks5Response=t.Socks5HostType=t.Socks5Auth=t.Socks4Response=t.SocksCommand=t.ERRORS=t.DEFAULT_TIMEOUT=void 0;const r=3e4;t.DEFAULT_TIMEOUT=r;const n={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};t.ERRORS=n;const i={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:e=>e+7,Socks4Response:8};t.SOCKS_INCOMING_PACKET_SIZES=i;var s;(function(e){e[e["connect"]=1]="connect";e[e["bind"]=2]="bind";e[e["associate"]=3]="associate"})(s||(s={}));t.SocksCommand=s;var o;(function(e){e[e["Granted"]=90]="Granted";e[e["Failed"]=91]="Failed";e[e["Rejected"]=92]="Rejected";e[e["RejectedIdent"]=93]="RejectedIdent"})(o||(o={}));t.Socks4Response=o;var a;(function(e){e[e["NoAuth"]=0]="NoAuth";e[e["GSSApi"]=1]="GSSApi";e[e["UserPass"]=2]="UserPass"})(a||(a={}));t.Socks5Auth=a;const u=128;t.SOCKS5_CUSTOM_AUTH_START=u;const l=254;t.SOCKS5_CUSTOM_AUTH_END=l;const c=255;t.SOCKS5_NO_ACCEPTABLE_AUTH=c;var f;(function(e){e[e["Granted"]=0]="Granted";e[e["Failure"]=1]="Failure";e[e["NotAllowed"]=2]="NotAllowed";e[e["NetworkUnreachable"]=3]="NetworkUnreachable";e[e["HostUnreachable"]=4]="HostUnreachable";e[e["ConnectionRefused"]=5]="ConnectionRefused";e[e["TTLExpired"]=6]="TTLExpired";e[e["CommandNotSupported"]=7]="CommandNotSupported";e[e["AddressNotSupported"]=8]="AddressNotSupported"})(f||(f={}));t.Socks5Response=f;var d;(function(e){e[e["IPv4"]=1]="IPv4";e[e["Hostname"]=3]="Hostname";e[e["IPv6"]=4]="IPv6"})(d||(d={}));t.Socks5HostType=d;var p;(function(e){e[e["Created"]=0]="Created";e[e["Connecting"]=1]="Connecting";e[e["Connected"]=2]="Connected";e[e["SentInitialHandshake"]=3]="SentInitialHandshake";e[e["ReceivedInitialHandshakeResponse"]=4]="ReceivedInitialHandshakeResponse";e[e["SentAuthentication"]=5]="SentAuthentication";e[e["ReceivedAuthenticationResponse"]=6]="ReceivedAuthenticationResponse";e[e["SentFinalHandshake"]=7]="SentFinalHandshake";e[e["ReceivedFinalResponse"]=8]="ReceivedFinalResponse";e[e["BoundWaitingForConnection"]=9]="BoundWaitingForConnection";e[e["Established"]=10]="Established";e[e["Disconnected"]=11]="Disconnected";e[e["Error"]=99]="Error"})(p||(p={}));t.SocksClientState=p},6515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSocksClientChainOptions=t.validateSocksClientOptions=void 0;const n=r(5369);const i=r(2739);const s=r(2781);function validateSocksClientOptions(e,t=["connect","bind","associate"]){if(!i.SocksCommand[e.command]){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommand,e)}if(t.indexOf(e.command)===-1){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandForOperation,e)}if(!isValidSocksRemoteHost(e.destination)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e)}if(!isValidSocksProxy(e.proxy)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e)}validateCustomProxyAuth(e.proxy,e);if(e.timeout&&!isValidTimeoutValue(e.timeout)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}if(e.existing_socket&&!(e.existing_socket instanceof s.Duplex)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsExistingSocket,e)}}t.validateSocksClientOptions=validateSocksClientOptions;function validateSocksClientChainOptions(e){if(e.command!=="connect"){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandChain,e)}if(!isValidSocksRemoteHost(e.destination)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e)}if(!(e.proxies&&Array.isArray(e.proxies)&&e.proxies.length>=2)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxiesLength,e)}e.proxies.forEach((t=>{if(!isValidSocksProxy(t)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e)}validateCustomProxyAuth(t,e)}));if(e.timeout&&!isValidTimeoutValue(e.timeout)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}}t.validateSocksClientChainOptions=validateSocksClientChainOptions;function validateCustomProxyAuth(e,t){if(e.custom_auth_method!==undefined){if(e.custom_auth_methodi.SOCKS5_CUSTOM_AUTH_END){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthRange,t)}if(e.custom_auth_request_handler===undefined||typeof e.custom_auth_request_handler!=="function"){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}if(e.custom_auth_response_size===undefined){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}if(e.custom_auth_response_handler===undefined||typeof e.custom_auth_response_handler!=="function"){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}}}function isValidSocksRemoteHost(e){return e&&typeof e.host==="string"&&typeof e.port==="number"&&e.port>=0&&e.port<=65535}function isValidSocksProxy(e){return e&&(typeof e.host==="string"||typeof e.ipaddress==="string")&&typeof e.port==="number"&&e.port>=0&&e.port<=65535&&(e.type===4||e.type===5)}function isValidTimeoutValue(e){return typeof e==="number"&&e>0}},7222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReceiveBuffer=void 0;class ReceiveBuffer{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e);this.offset=0;this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e)){throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.")}if(this.offset+e.length>=this.buffer.length){const t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length));t.copy(this.buffer)}e.copy(this.buffer,this.offset);return this.offset+=e.length}peek(e){if(e>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}return this.buffer.slice(0,e)}get(e){if(e>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}const t=Buffer.allocUnsafe(e);this.buffer.slice(0,e).copy(t);this.buffer.copyWithin(0,e,e+this.offset-e);this.offset-=e;return t}}t.ReceiveBuffer=ReceiveBuffer},5369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shuffleArray=t.SocksClientError=void 0;class SocksClientError extends Error{constructor(e,t){super(e);this.options=t}}t.SocksClientError=SocksClientError;function shuffleArray(e){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}}t.shuffleArray=shuffleArray},8003:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});i(r(9054),t)},5021:(e,t,r)=>{"use strict";const{Transform:n}=r(3020);const{StringDecoder:i}=r(1576);const s=Symbol("last");const o=Symbol("decoder");function transform(e,t,r){var n;if(this.overflow){var i=this[o].write(e);n=i.split(this.matcher);if(n.length===1)return r();n.shift();this.overflow=false}else{this[s]+=this[o].write(e);n=this[s].split(this.matcher)}this[s]=n.pop();for(var a=0;athis.maxLength;if(this.overflow&&!this.skipOverflow)return r(new Error("maximum buffer reached"));r()}function flush(e){this[s]+=this[o].end();if(this[s]){try{push(this,this.mapper(this[s]))}catch(t){return e(t)}}e()}function push(e,t){if(t!==undefined){e.push(t)}}function noop(e){return e}function split(e,t,r){e=e||/\r?\n/;t=t||noop;r=r||{};switch(arguments.length){case 1:if(typeof e==="function"){t=e;e=/\r?\n/}else if(typeof e==="object"&&!(e instanceof RegExp)){r=e;e=/\r?\n/}break;case 2:if(typeof e==="function"){r=t;t=e;e=/\r?\n/}else if(typeof t==="object"){r=t;t=noop}}r=Object.assign({},r);r.transform=transform;r.flush=flush;r.readableObjectMode=true;const a=new n(r);a[s]="";a[o]=new i("utf8");a.matcher=e;a.mapper=t;a.maxLength=r.maxLength;a.skipOverflow=r.skipOverflow;a.overflow=false;return a}e.exports=split},9488:(e,t,r)=>{"use strict";var n=r(2683).Buffer;var i=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var n=t.length-1;if(n=0){if(i>0)e.lastNeed=i-1;return i}if(--n=0){if(i>0)e.lastNeed=i-2;return i}if(--n=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},1596:(e,t,r)=>{const{Transform:n}=r(3020);function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function through2(e){return(t,r,n)=>{if(typeof t==="function"){n=r;r=t;t={}}if(typeof r!=="function"){r=(e,t,r)=>r(null,e)}if(typeof n!=="function"){n=null}return e(t,r,n)}}const i=through2(((e,t,r)=>{const i=new n(e);i._transform=t;if(r){i._flush=r}return i}));const s=through2(((e,t,r)=>{function Through2(i){if(!(this instanceof Through2)){return new Through2(i)}this.options=Object.assign({},e,i);n.call(this,this.options);this._transform=t;if(r){this._flush=r}}inherits(Through2,n);return Through2}));const o=through2((function(e,t,r){const i=new n(Object.assign({objectMode:true,highWaterMark:16},e));i._transform=t;if(r){i._flush=r}return i}));e.exports=i;e.exports.ctor=s;e.exports.obj=o},1353:(e,t,r)=>{e.exports=r(21)},21:(e,t,r)=>{"use strict";var n=r(1808);var i=r(4404);var s=r(3685);var o=r(5687);var a=r(2361);var u=r(9491);var l=r(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,i){var s=toOptions(r,n,i);for(var o=0,a=t.requests.length;o=this.maxSockets){i.requests.push(s);return}i.createSocket(s,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.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 s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>e!=null?n(e):r(t)))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},626:function(e,t){ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ (function(e,r){true?r(t):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var g=s-o;var y=Math.floor;var b=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(m,".");var i=e.split(".");var s=map(i,t).join(".");return n+s}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r=55296&&i<=56319&&r>1;e+=y(e/t);for(;e>g*a>>1;n+=s){e=y(e/g)}return y(n+(g+1)*e/(e+u))};var k=function decode(e){var t=[];var r=e.length;var n=0;var u=f;var l=c;var p=e.lastIndexOf(d);if(p<0){p=0}for(var h=0;h=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=p>0?p+1:0;m=r){error$1("invalid-input")}var S=w(e.charCodeAt(m++));if(S>=s||S>y((i-n)/g)){error$1("overflow")}n+=S*g;var _=b<=l?o:b>=l+a?a:b-l;if(S<_){break}var k=s-_;if(g>y(i/k)){error$1("overflow")}g*=k}var P=t.length+1;l=E(n-v,P,v==0);if(y(n/P)>i-u){error$1("overflow")}u+=y(n/P);n%=P;t.splice(n++,0,u)}return String.fromCodePoint.apply(String,t)};var P=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=f;var u=0;var l=c;var p=true;var h=false;var m=undefined;try{for(var v=e[Symbol.iterator](),g;!(p=(g=v.next()).done);p=true){var S=g.value;if(S<128){t.push(b(S))}}}catch(e){h=true;m=e}finally{try{if(!p&&v.return){v.return()}}finally{if(h){throw m}}}var w=t.length;var k=w;if(w){t.push(d)}while(k=n&&Ay((i-u)/T)){error$1("overflow")}u+=(P-n)*T;n=P;var D=true;var F=false;var L=undefined;try{for(var N=e[Symbol.iterator](),j;!(D=(j=N.next()).done);D=true){var B=j.value;if(Bi){error$1("overflow")}if(B==n){var M=u;for(var $=s;;$+=s){var U=$<=l?o:$>=l+a?a:$-l;if(M>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r=194&&i<224){if(n-r>=6){var s=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((i&31)<<6|s&63)}else{t+=e.substr(r,6)}r+=6}else if(i>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16);var a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var i=n(r,2),s=i[1];if(s){return s.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var i=n(r,3),s=i[1],o=i[2];if(s){var a=s.toLowerCase().split("::").reverse(),u=n(a,2),l=u[0],c=u[1];var f=c?c.split(":").map(_stripLeadingZeros):[];var d=l.split(":").map(_stripLeadingZeros);var p=t.IPV4ADDRESS.test(d[d.length-1]);var h=p?7:8;var m=d.length-h;var v=Array(h);for(var g=0;g1){var w=v.slice(0,b.index);var _=v.slice(b.index+b.length);S=w.join(":")+"::"+_.join(":")}else{S=v.join(":")}if(o){S+="%"+o}return S}else{return e}}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var A="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var s=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var o=e.match(I);if(o){if(A){i.scheme=o[1];i.userinfo=o[3];i.host=o[4];i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=o[7];i.fragment=o[8];if(isNaN(i.port)){i.port=o[5]}}else{i.scheme=o[1]||undefined;i.userinfo=e.indexOf("@")!==-1?o[3]:undefined;i.host=e.indexOf("//")!==-1?o[4]:undefined;i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=e.indexOf("?")!==-1?o[7]:undefined;i.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,s),s)}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(n.reference&&n.reference!=="suffix"&&n.reference!==i.reference){i.error=i.error||"URI is not a "+n.reference+" reference."}var a=R[(n.scheme||i.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!a||!a.unicodeSupport)){if(i.host&&(n.domainHost||a&&a.domainHost)){try{i.host=O.toASCII(i.host.replace(s.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,t)}else{_normalizeComponentEncoding(i,s)}if(a&&a.parse){a.parse(i,n)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,n){var i=n.iri!==false?r:t;var s=[];if(e.userinfo!==undefined){s.push(e.userinfo);s.push("@")}if(e.host!==undefined){s.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){s.push(":");s.push(String(e.port))}return s.length?s.join(""):undefined}var T=/^\.\.?\//;var D=/^\/\.(\/|$)/;var F=/^\/\.\.(\/|$)/;var L=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(T)){e=e.replace(T,"")}else if(e.match(D)){e=e.replace(D,"/")}else if(e.match(F)){e=e.replace(F,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(L);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=n.iri?r:t;var s=[];var o=R[(n.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,n);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||o&&o.domainHost){try{e.host=!n.iri?O.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):O.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,i);if(n.reference!=="suffix"&&e.scheme){s.push(e.scheme);s.push(":")}var a=_recomposeAuthority(e,n);if(a!==undefined){if(n.reference!=="suffix"){s.push("//")}s.push(a);if(e.path&&e.path.charAt(0)!=="/"){s.push("/")}}if(e.path!==undefined){var u=e.path;if(!n.absolutePath&&(!o||!o.absolutePath)){u=removeDotSegments(u)}if(a===undefined){u=u.replace(/^\/\//,"/%2F")}s.push(u)}if(e.query!==undefined){s.push("?");s.push(e.query)}if(e.fragment!==undefined){s.push("#");s.push(e.fragment)}return s.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var i={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){i.scheme=t.scheme;i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(!t.path){i.path=e.path;if(t.query!==undefined){i.query=t.query}else{i.query=e.query}}else{if(t.path.charAt(0)==="/"){i.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+t.path}else if(!e.path){i.path=t.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}i.path=removeDotSegments(i.path)}i.query=t.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=t.fragment;return i}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var N={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){var r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var j={scheme:"https",domainHost:N.domainHost,parse:N.parse,serialize:N.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var B={scheme:"ws",domainHost:true,parse:function parse(e,t){var r=e;r.secure=isSecure(r);r.resourceName=(r.path||"/")+(r.query?"?"+r.query:"");r.path=undefined;r.query=undefined;return r},serialize:function serialize(e,t){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 r=e.resourceName.split("?"),i=n(r,2),s=i[0],o=i[1];e.path=s&&s!=="/"?s:undefined;e.query=o;e.resourceName=undefined}e.fragment=undefined;return e}};var M={scheme:"wss",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};var $={};var U=true;var H="[A-Za-z0-9\\-\\.\\_\\~"+(U?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var q="[0-9A-Fa-f]";var V=subexp(subexp("%[EFef]"+q+"%"+q+q+"%"+q+q)+"|"+subexp("%[89A-Fa-f]"+q+"%"+q+q)+"|"+subexp("%"+q+q));var z="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var W="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var K=merge(W,'[\\"\\\\]');var Y="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var G=new RegExp(H,"g");var Q=new RegExp(V,"g");var J=new RegExp(merge("[^]",z,"[\\.]",'[\\"]',K),"g");var Z=new RegExp(merge("[^]",H,Y),"g");var X=Z;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(G)?e:t}var ee={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var i=false;var s={};var o=r.query.split("&");for(var a=0,u=o.length;a{e.exports=r(3837).deprecate},2531:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},6368:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(tthis.length){t=this.length}for(var n=0,i=this.head;i!==null&&nthis.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,i=this.head;i!==null&&n{module.exports=eval("require")("supports-color")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},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")},9523:e=>{"use strict";e.exports=require("dns")},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")},1576:e=>{"use strict";e.exports=require("string_decoder")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},3793:(e,t,r)=>{"use strict";t=e.exports=fetch;const n=r(3685);const i=r(5687);const s=r(9796);const o=r(2781);const a=r(5708);const u=r(3837);const l=r(5314);const c=r(6113);const f=r(7310);class FetchBaseError extends Error{constructor(e,t){super(e);Error.captureStackTrace(this,this.constructor);this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}class FetchError extends FetchBaseError{constructor(e,t,r){super(e,t);if(r){this.code=this.errno=r.code;this.erroredSysCall=r.syscall}}}const d=Symbol.toStringTag;const isURLSearchParameters=e=>typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&typeof e.sort==="function"&&e[d]==="URLSearchParams";const isBlob=e=>typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&/^(Blob|File)$/.test(e[d]);function isFormData(e){return typeof e==="object"&&typeof e.append==="function"&&typeof e.set==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.delete==="function"&&typeof e.keys==="function"&&typeof e.values==="function"&&typeof e.entries==="function"&&typeof e.constructor==="function"&&e[d]==="FormData"}const isAbortSignal=e=>typeof e==="object"&&e[d]==="AbortSignal";const p="\r\n";const h="-".repeat(2);const m=Buffer.byteLength(p);const getFooter=e=>`${h}${e}${h}${p.repeat(2)}`;function getHeader(e,t,r){let n="";n+=`${h}${e}${p}`;n+=`Content-Disposition: form-data; name="${t}"`;if(isBlob(r)){n+=`; filename="${r.name}"${p}`;n+=`Content-Type: ${r.type||"application/octet-stream"}`}return`${n}${p.repeat(2)}`}const getBoundary=()=>c.randomBytes(8).toString("hex");async function*formDataIterator(e,t){for(const[r,n]of e){yield getHeader(t,r,n);if(isBlob(n)){yield*n.stream()}else{yield n}yield p}yield getFooter(t)}function getFormDataLength(e,t){let r=0;for(const[n,i]of e){r+=Buffer.byteLength(getHeader(t,n,i));if(isBlob(i)){r+=i.size}else{r+=Buffer.byteLength(String(i))}r+=m}r+=Buffer.byteLength(getFooter(t));return r}const v=Symbol("Body internals");class Body{constructor(e,{size:t=0}={}){let r=null;if(e===null){e=null}else if(isURLSearchParameters(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(u.types.isAnyArrayBuffer(e)){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof o);else if(isFormData(e)){r=`NodeFetchFormDataBoundary${getBoundary()}`;e=o.Readable.from(formDataIterator(e,r))}else{e=Buffer.from(String(e))}this[v]={body:e,boundary:r,disturbed:false,error:null};this.size=t;if(e instanceof o){e.on("error",(e=>{const t=e instanceof FetchBaseError?e:new FetchError(`Invalid response body while trying to fetch ${this.url}: ${e.message}`,"system",e);this[v].error=t}))}}get body(){return this[v].body}get bodyUsed(){return this[v].disturbed}async arrayBuffer(){const{buffer:e,byteOffset:t,byteLength:r}=await consumeBody(this);return e.slice(t,t+r)}async blob(){const e=this.headers&&this.headers.get("content-type")||this[v].body&&this[v].body.type||"";const t=await this.buffer();return new l([t],{type:e})}async json(){const e=await consumeBody(this);return JSON.parse(e.toString())}async text(){const e=await consumeBody(this);return e.toString()}buffer(){return consumeBody(this)}}Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});async function consumeBody(e){if(e[v].disturbed){throw new TypeError(`body used already for: ${e.url}`)}e[v].disturbed=true;if(e[v].error){throw e[v].error}let{body:t}=e;if(t===null){return Buffer.alloc(0)}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return t}if(!(t instanceof o)){return Buffer.alloc(0)}const r=[];let n=0;try{for await(const i of t){if(e.size>0&&n+i.length>e.size){const r=new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size");t.destroy(r);throw r}n+=i.length;r.push(i)}}catch(t){if(t instanceof FetchBaseError){throw t}else{throw new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t)}}if(t.readableEnded===true||t._readableState.ended===true){try{if(r.every((e=>typeof e==="string"))){return Buffer.from(r.join(""))}return Buffer.concat(r,n)}catch(t){throw new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t)}}else{throw new FetchError(`Premature close of server response while trying to fetch ${e.url}`)}}const clone=(e,t)=>{let r;let n;let{body:i}=e;if(e.bodyUsed){throw new Error("cannot clone body after it is used")}if(i instanceof o&&typeof i.getBoundary!=="function"){r=new o.PassThrough({highWaterMark:t});n=new o.PassThrough({highWaterMark:t});i.pipe(r);i.pipe(n);e[v].body=r;i=n}return i};const extractContentType=(e,t)=>{if(e===null){return null}if(typeof e==="string"){return"text/plain;charset=UTF-8"}if(isURLSearchParameters(e)){return"application/x-www-form-urlencoded;charset=UTF-8"}if(isBlob(e)){return e.type||null}if(Buffer.isBuffer(e)||u.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)){return null}if(e&&typeof e.getBoundary==="function"){return`multipart/form-data;boundary=${e.getBoundary()}`}if(isFormData(e)){return`multipart/form-data; boundary=${t[v].boundary}`}if(e instanceof o){return null}return"text/plain;charset=UTF-8"};const getTotalBytes=e=>{const{body:t}=e;if(t===null){return 0}if(isBlob(t)){return t.size}if(Buffer.isBuffer(t)){return t.length}if(t&&typeof t.getLengthSync==="function"){return t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null}if(isFormData(t)){return getFormDataLength(e[v].boundary)}return null};const writeToStream=(e,{body:t})=>{if(t===null){e.end()}else if(isBlob(t)){t.stream().pipe(e)}else if(Buffer.isBuffer(t)){e.write(t);e.end()}else{t.pipe(e)}};const g=typeof n.validateHeaderName==="function"?n.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){const t=new TypeError(`Header name must be a valid HTTP token [${e}]`);Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"});throw t}};const y=typeof n.validateHeaderValue==="function"?n.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){const t=new TypeError(`Invalid character in header content ["${e}"]`);Object.defineProperty(t,"code",{value:"ERR_INVALID_CHAR"});throw t}};class Headers extends URLSearchParams{constructor(e){let t=[];if(e instanceof Headers){const r=e.raw();for(const[e,n]of Object.entries(r)){t.push(...n.map((t=>[e,t])))}}else if(e==null);else if(typeof e==="object"&&!u.types.isBoxedPrimitive(e)){const r=e[Symbol.iterator];if(r==null){t.push(...Object.entries(e))}else{if(typeof r!=="function"){throw new TypeError("Header pairs must be iterable")}t=[...e].map((e=>{if(typeof e!=="object"||u.types.isBoxedPrimitive(e)){throw new TypeError("Each header pair must be an iterable object")}return[...e]})).map((e=>{if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}return[...e]}))}}else{throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)")}t=t.length>0?t.map((([e,t])=>{g(e);y(e,String(t));return[String(e).toLowerCase(),String(t)]})):undefined;super(t);return new Proxy(this,{get(e,t,r){switch(t){case"append":case"set":return(e,n)=>{g(e);y(e,String(n));return URLSearchParams.prototype[t].call(r,String(e).toLowerCase(),String(n))};case"delete":case"has":case"getAll":return e=>{g(e);return URLSearchParams.prototype[t].call(r,String(e).toLowerCase())};case"keys":return()=>{e.sort();return new Set(URLSearchParams.prototype.keys.call(e)).keys()};default:return Reflect.get(e,t,r)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){const t=this.getAll(e);if(t.length===0){return null}let r=t.join(", ");if(/^content-encoding$/i.test(e)){r=r.toLowerCase()}return r}forEach(e){for(const t of this.keys()){e(this.get(t),t)}}*values(){for(const e of this.keys()){yield this.get(e)}}*entries(){for(const e of this.keys()){yield[e,this.get(e)]}}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce(((e,t)=>{e[t]=this.getAll(t);return e}),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce(((e,t)=>{const r=this.getAll(t);if(t==="host"){e[t]=r[0]}else{e[t]=r.length>1?r:r[0]}return e}),{})}}Object.defineProperties(Headers.prototype,["get","entries","forEach","values"].reduce(((e,t)=>{e[t]={enumerable:true};return e}),{}));function fromRawHeaders(e=[]){return new Headers(e.reduce(((e,t,r,n)=>{if(r%2===0){e.push(n.slice(r,r+2))}return e}),[]).filter((([e,t])=>{try{g(e);y(e,String(t));return true}catch{return false}})))}const b=new Set([301,302,303,307,308]);const isRedirect=e=>b.has(e);const S=Symbol("Response internals");class Response extends Body{constructor(e=null,t={}){super(e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!==null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[S]={url:t.url,status:r,statusText:t.statusText||"",headers:n,counter:t.counter,highWaterMark:t.highWaterMark}}get url(){return this[S].url||""}get status(){return this[S].status}get ok(){return this[S].status>=200&&this[S].status<300}get redirected(){return this[S].counter>0}get statusText(){return this[S].statusText}get headers(){return this[S].headers}get highWaterMark(){return this[S].highWaterMark}clone(){return new Response(clone(this,this.highWaterMark),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size})}static redirect(e,t=302){if(!isRedirect(t)){throw new RangeError('Failed to execute "redirect" on "response": Invalid status code')}return new Response(null,{headers:{location:new URL(e).toString()},status:t})}get[Symbol.toStringTag](){return"Response"}}Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});const getSearch=e=>{if(e.search){return e.search}const t=e.href.length-1;const r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""};const w=Symbol("Request internals");const isRequest=e=>typeof e==="object"&&typeof e[w]==="object";class Request extends Body{constructor(e,t={}){let r;if(isRequest(e)){r=new URL(e.url)}else{r=new URL(e);e={}}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e))&&e.body!==null&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}const i=t.body?t.body:isRequest(e)&&e.body!==null?clone(e):null;super(i,{size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){const e=extractContentType(i,this);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t){o=t.signal}if(o!==null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow===undefined?e.follow===undefined?20:e.follow:t.follow;this.compress=t.compress===undefined?e.compress===undefined?true:e.compress:t.compress;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent;this.highWaterMark=t.highWaterMark||e.highWaterMark||16384;this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||false}get method(){return this[w].method}get url(){return f.format(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}get[Symbol.toStringTag](){return"Request"}}Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});const getNodeRequestOptions=e=>{const{parsedURL:t}=e[w];const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}let n=null;if(e.body===null&&/^(post|put)$/i.test(e.method)){n="0"}if(e.body!==null){const t=getTotalBytes(e);if(typeof t==="number"&&!Number.isNaN(t)){n=String(t)}}if(n){r.set("Content-Length",n)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate,br")}let{agent:i}=e;if(typeof i==="function"){i=i(t)}if(!r.has("Connection")&&!i){r.set("Connection","close")}const s=getSearch(t);const o={path:t.pathname+s,pathname:t.pathname,hostname:t.hostname,protocol:t.protocol,port:t.port,hash:t.hash,search:t.search,query:t.query,href:t.href,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:i};return o};class AbortError extends FetchBaseError{constructor(e,t="aborted"){super(e,t)}}const _=new Set(["data:","http:","https:"]);async function fetch(e,t){return new Promise(((r,u)=>{const l=new Request(e,t);const c=getNodeRequestOptions(l);if(!_.has(c.protocol)){throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${c.protocol.replace(/:$/,"")}" is not supported.`)}if(c.protocol==="data:"){const e=a(l.url);const t=new Response(e,{headers:{"Content-Type":e.typeFull}});r(t);return}const f=(c.protocol==="https:"?i:n).request;const{signal:d}=l;let p=null;const abort=()=>{const e=new AbortError("The operation was aborted.");u(e);if(l.body&&l.body instanceof o.Readable){l.body.destroy(e)}if(!p||!p.body){return}p.body.emit("error",e)};if(d&&d.aborted){abort();return}const abortAndFinalize=()=>{abort();finalize()};const h=f(c);if(d){d.addEventListener("abort",abortAndFinalize)}const finalize=()=>{h.abort();if(d){d.removeEventListener("abort",abortAndFinalize)}};h.on("error",(e=>{u(new FetchError(`request to ${l.url} failed, reason: ${e.message}`,"system",e));finalize()}));h.on("response",(e=>{h.setTimeout(0);const n=fromRawHeaders(e.rawHeaders);if(isRedirect(e.statusCode)){const i=n.get("Location");const s=i===null?null:new URL(i,l.url);switch(l.redirect){case"error":u(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{n.set("Location",s)}catch(e){u(e)}}break;case"follow":{if(s===null){break}if(l.counter>=l.follow){u(new FetchError(`maximum redirect reached at: ${l.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(l.headers),follow:l.follow,counter:l.counter+1,agent:l.agent,compress:l.compress,method:l.method,body:l.body,signal:l.signal,size:l.size};if(e.statusCode!==303&&l.body&&t.body instanceof o.Readable){u(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&l.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(s,n)));finalize();return}}}e.once("end",(()=>{if(d){d.removeEventListener("abort",abortAndFinalize)}}));let i=o.pipeline(e,new o.PassThrough,(e=>{u(e)}));if(process.version<"v12.10"){e.on("aborted",abortAndFinalize)}const a={url:l.url,status:e.statusCode,statusText:e.statusMessage,headers:n,size:l.size,counter:l.counter,highWaterMark:l.highWaterMark};const c=n.get("Content-Encoding");if(!l.compress||l.method==="HEAD"||c===null||e.statusCode===204||e.statusCode===304){p=new Response(i,a);r(p);return}const f={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if(c==="gzip"||c==="x-gzip"){i=o.pipeline(i,s.createGunzip(f),(e=>{u(e)}));p=new Response(i,a);r(p);return}if(c==="deflate"||c==="x-deflate"){const t=o.pipeline(e,new o.PassThrough,(e=>{u(e)}));t.once("data",(e=>{if((e[0]&15)===8){i=o.pipeline(i,s.createInflate(),(e=>{u(e)}))}else{i=o.pipeline(i,s.createInflateRaw(),(e=>{u(e)}))}p=new Response(i,a);r(p)}));return}if(c==="br"){i=o.pipeline(i,s.createBrotliDecompress(),(e=>{u(e)}));p=new Response(i,a);r(p);return}p=new Response(i,a);r(p)}));writeToStream(h,l)}))}t.AbortError=AbortError;t.FetchError=FetchError;t.Headers=Headers;t.Request=Request;t.Response=Response;t["default"]=fetch;t.isRedirect=isRedirect},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 __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(8243);module.exports=__webpack_exports__})();