text: /*! For license information please see index.js.LICENSE.txt */
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.frameworkInfo=t():e.frameworkInfo=t()}(globalThis,(function(){return e={1581:(e,t,r)=>{"use strict";r(2227).default,r(3487);const s=r(7159),n=r(3924),o=r(278),a=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends s.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e)))}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;if(!t)return;const r=e?this.$dataMetaSchema(o,a):o;this.addMetaSchema(r,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.ZP=c},7023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let s=0;for(;s<t.length;)c(r,t[s]),r.push(e[++s]);return new n(r)}t._Code=n,t.nil=new n(""),t._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let s=0;for(;s<t.length;)r.push(a),c(r,t[s]),r.push(a,u(e[++s]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function c(e,t){var r;t instanceof n?e.push(...t._items):t instanceof s?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof s||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof s?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=i,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},t.stringify=function(e){return new n(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new n(`.${e}`):o`[${e}]`}},3487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(7023),n=r(8490);var o=r(7023);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=r(8490);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,s=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=k(this.rhs,e,t)),this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class l extends i{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof s.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=k(this.rhs,e,t),this}get names(){return R(this.lhs instanceof s.Name?{}:{...this.lhs.names},this.rhs)}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class f extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;for(;s--;){const n=r[s];n.optimizeNames(e,t)||(I(e,n.names),r.splice(s,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class m extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends f{}class g extends m{}g.kind="else";class v extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(C(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){const e=super.names;return R(e,this.condition),this.else&&O(e,this.else.names),e}}v.kind="if";class $ extends m{}$.kind="for";class E extends ${constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class w extends ${constructor(e,t,r,s){super(),this.varKind=e,this.name=t,this.from=r,this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:s,to:o}=this;return`for(${t} ${r}=${s}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=R(super.names,this.from);return R(e,this.to)}}class _ extends ${constructor(e,t,r,s){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class b extends m{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}b.kind="func";class S extends f{render(e){return"return "+super.render(e)}}S.kind="return";class N extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,s;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class x extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}x.kind="catch";class P extends m{render(e){return"finally"+super.render(e)}}function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function R(e,t){return t instanceof s._CodeOrName?O(e,t.names):e}function k(e,t,r){return e instanceof s.Name?o(e):(n=e)instanceof s._Code&&n._items.some((e=>e instanceof s.Name&&1===t[e.str]&&void 0!==r[e.str]))?new s._Code(e._items.reduce(((e,t)=>(t instanceof s.Name&&(t=o(t)),t instanceof s._Code?e.push(...t._items):e.push(t),e)),[])):e;var n;function o(e){const s=r[e.str];return void 0===s||1!==t[e.str]?e:(delete t[e.str],s)}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function C(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:s._`!${D(e)}`}P.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);return void 0!==r&&s&&(this._constants[n.str]=r),this._leafNode(new c(e,n,r)),n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new l(e,t,r))}code(e){return"function"==typeof e?e():e!==s.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[r,n]of e)t.length>1&&t.push(","),t.push(r),(r!==n||this.opts.es5)&&(t.push(":"),s.addCodeArg(t,n));return t.push("}"),new s._Code(t)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(v,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new E(e),t)}forRange(e,t,r,s,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(o,a,t,r),(()=>s(a)))}forOf(e,t,r,o=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,s._`${e}.length`,(t=>{this.var(a,s._`${e}[${t}]`),r(a)}))}return this._for(new _("of",o,a,t),(()=>r(a)))}forIn(e,t,r,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,s._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new _("in",o,a,t),(()=>r(a)))}endFor(){return this._endBlockNode($)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new N;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new x(e),t(e)}return r&&(this._currNode=s.finally=new P,this.code(r)),this._endBlockNode(x,P)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=s.nil,r,n){return this._blockNode(new b(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(b)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=C;const T=j(t.operators.AND);t.and=function(...e){return e.reduce(T)};const A=j(t.operators.OR);function j(e){return(t,r)=>t===s.nil?r:r===s.nil?t:s._`${D(t)} ${e} ${D(r)}`}function D(e){return e instanceof s.Name?e:s._`(${e})`}t.or=function(...e){return e.reduce(A)}},8490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(7023);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends s.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=s._`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=s._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:n}=s,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[n];if(a){const e=a.get(o);if(e)return e}else a=this._values[n]=new Map;a.set(o,s);const i=this._scope[n]||(this._scope[n]=[]),c=i.length;return i[c]=t.ref,s.setValue(t,{property:n,itemIndex:c}),s}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return s._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=s.nil;for(const l in e){const u=e[l];if(!u)continue;const d=a[l]=a[l]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=s._`${c}${r} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==i?void 0:i(e)))throw new n(e);c=s._`${c}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return c}}},2227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=void 0;const s=r(453),n=r(6776),o=r(4181),a=r(3487),i=r(2141),c=r(4069);t.default=class{constructor(e,t,r){if(function({schema:e,opts:t,self:r},s,n){if(Array.isArray(s.keyword)?!s.keyword.includes(n):s.keyword!==n)throw new Error("ajv implementation error");const o=s.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${n}: ${o.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[n])){const e="keyword value is invalid: "+r.errorsText(s.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=n.schemaRefOrVal(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",d(this.$data,e));else if(this.schemaCode=this.schemaValue,!function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))}(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",i.default.errors))}result(e,t,r){this.gen.if(a.not(e)),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(e,void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(a._`${t} !== undefined && (${a.or(this.invalid$data(),e)})`)}error(e){(e?o.reportExtraError:o.reportError)(this,this.def.error||o.keywordError)}$dataError(){o.reportError(this,this.def.$dataError||o.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');o.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=a.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=a.nil,t=a.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if(a.or(a._`${s} === undefined`,t)),e!==a.nil&&r.assign(e,!0),(n.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==a.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return a.or(function(){if(r.length){if(!(t instanceof a.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return a._`${s.checkDataTypes(e,t,o.opts.strict,s.DataType.Wrong)}`}return a.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return a._`!${r}(${t})`}return a.nil}())}subschema(e,t){return c.applySubschema(this.it,e,t)}mergeEvaluated(e,t){const{it:r,gen:s}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=n.mergeEvaluated.props(s,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=n.mergeEvaluated.items(s,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return s.if(t,(()=>this.mergeEvaluated(e,a.Name))),!0}};const l=/^\/(?:[^~]|~0|~1)*$/,u=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function d(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let o,c;if(""===e)return i.default.rootData;if("/"===e[0]){if(!l.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,c=i.default.rootData}else{const n=u.exec(e);if(!n)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+n[1];if(o=n[2],"#"===o){if(a>=t)throw new Error(h("property/index",a));return s[t-a]}if(a>t)throw new Error(h("data",a));if(c=r[t-a],!o)return c}let d=c;const p=o.split("/");for(const e of p)e&&(c=a._`${c}${a.getProperty(n.unescapeJsonPointer(e))}`,d=a._`${d} && ${c}`);return d;function h(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=d},8727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=void 0;const s=r(2531);class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.ValidationError=n;class o extends Error{constructor(e,t){super(`can't resolve reference ${t} from id ${e}`),this.missingRef=s.resolveUrl(e,t),this.missingSchema=s.normalizeId(s.getFullPath(this.missingRef))}}t.MissingRefError=o,e.exports={ValidationError:n,MissingRefError:o}},4181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(3487),n=r(2141);function o(e,t){const r=e.const("err",t);e.if(s._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,s._`[${r}]`)),s._`${n.default.vErrors}.push(${r})`),e.code(s._`${n.default.errors}++`)}function a(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw(s._`new ${e.ValidationError}(${t})`):(r.assign(s._`${n}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>s.str`should pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?s.str`"${e}" keyword must be ${t} ($data)`:s.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,t,r){const{it:n}=e,{gen:i,compositeRule:l,allErrors:u}=n,d=c(e,t);(null!=r?r:l||u)?o(i,d):a(n,s._`[${d}]`)},t.reportExtraError=function(e,t){const{it:r}=e,{gen:s,compositeRule:i,allErrors:l}=r;o(s,c(e,t)),i||l||a(r,n.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(n.default.errors,t),e.if(s._`${n.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(s._`${n.default.vErrors}.length`,t)),(()=>e.assign(n.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:o,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,n.default.errors,(a=>{e.const(c,s._`${n.default.vErrors}[${a}]`),e.if(s._`${c}.dataPath === undefined`,(()=>e.assign(s._`${c}.dataPath`,s.strConcat(n.default.dataPath,i.errorPath)))),e.assign(s._`${c}.schemaPath`,s.str`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign(s._`${c}.schema`,r),e.assign(s._`${c}.data`,o))}))};const i={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function c(e,t){const{keyword:r,data:o,schemaValue:a,it:{gen:c,createErrors:l,topSchemaRef:u,schemaPath:d,errorPath:p,errSchemaPath:h,propertyName:f,opts:m}}=e;if(!1===l)return s._`{}`;const{params:y,message:g}=t,v=[[i.keyword,r],[n.default.dataPath,s.strConcat(n.default.dataPath,p)],[i.schemaPath,s.str`${h}/${r}`],[i.params,"function"==typeof y?y(e):y||s._`{}`]];if(f&&v.push([i.propertyName,f]),!1!==m.messages){const t="function"==typeof g?g(e):g;v.push([i.message,t])}return m.verbose&&v.push([i.schema,a],[i.parentSchema,s._`${u}${d}`],[n.default.data,o]),c.object(...v)}},5173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(3487),n=r(8727),o=r(2141),a=r(2531),i=r(6776),c=r(4815),l=r(540);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:a.normalizeId(null==r?void 0:r.$id),this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function d(e){const t=h.call(this,e);if(t)return t;const r=a.getFullPath(e.root.baseId),{es5:i,lines:l}=this.opts.code,{ownProperties:u}=this.opts,d=new s.CodeGen(this.scope,{es5:i,lines:l,ownProperties:u});let p;e.$async&&(p=d.scopeValue("Error",{ref:n.ValidationError,code:s._`require("ajv/dist/compile/error_classes").ValidationError`}));const f=d.scopeName("validate");e.validateName=f;const m={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:s.stringify(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:p,schema:e.schema,schemaEnv:e,strictSchema:!0,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:"#",errorPath:s._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),c.validateFunctionCode(m),d.optimize(this.opts.code.optimize);const t=d.toString();y=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(f,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:f,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof s.Name?void 0:e,items:t instanceof s.Name?void 0:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name},r.source&&(r.source.evaluated=s.stringify(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function p(e){return a.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:d.call(this,e)}function h(e){for(const s of this._compilations)if(r=e,(t=s).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return s;var t,r}function f(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=l.parse(t),s=a._getFullPath(r);let n=a.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&s===n)return g.call(this,r,e);const o=a.normalizeId(s),i=this.refs[o]||this.schemas[o];if("string"==typeof i){const t=m.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||d.call(this,i),o===a.normalizeId(t)){const{schema:t}=i;return t.$id&&(n=a.resolveUrl(n,t.$id)),new u({schema:t,root:e,baseId:n})}return g.call(this,r,i)}}t.SchemaEnv=u,t.compileSchema=d,t.resolveRef=function(e,t,r){var s;r=a.resolveUrl(t,r);const n=e.refs[r];if(n)return n;let o=f.call(this,e,r);if(void 0===o){const n=null===(s=e.localRefs)||void 0===s?void 0:s[r];n&&(o=new u({schema:n,root:e,baseId:t}))}return void 0!==o?e.refs[r]=p.call(this,o):void 0},t.resolveSchema=m;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:r,root:s}){var n;if("/"!==(null===(n=e.fragment)||void 0===n?void 0:n[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;if(void 0===(r=r[i.unescapeFragment(s)]))return;!y.has(s)&&"object"==typeof r&&r.$id&&(t=a.resolveUrl(t,r.$id))}let o;if("boolean"!=typeof r&&r.$ref&&!i.schemaHasRulesButRef(r,this.RULES)){const e=a.resolveUrl(t,r.$ref);o=m.call(this,s,e)}return o=o||new u({schema:r,root:s,baseId:t}),o.schema!==o.root.schema?o:void 0}},2141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),dataPath:new s.Name("dataPath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope")};t.default=n},2531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(6776),n=r(4063),o=r(9461),a=r(540),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&u(e)<=t)};const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(c.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(l))return!0;if("object"==typeof r&&l(r))return!0}return!1}function u(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&s.eachItem(e[r],(e=>t+=u(e))),t===1/0))return 1/0}return t}function d(e="",t){return!1!==t&&(e=f(e)),p(a.parse(e))}function p(e){return a.serialize(e).split("#")[0]+"#"}t.getFullPath=d,t._getFullPath=p;const h=/#\/?$/;function f(e){return e?e.replace(h,""):""}t.normalizeId=f,t.resolveUrl=function(e,t){return t=f(t),a.resolve(e,t)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const t=f(e.$id),r={"":t},s=d(t,!1),i={},c=new Set;return o(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=s+t;let p=r[o];function h(t){if(t=f(p?a.resolve(p,t):t),c.has(t))throw u(t);c.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?l(e,r.schema,t):t!==f(d)&&("#"===t[0]?(l(e,i[t],t),i[t]=e):this.refs[t]=d),t}function y(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);h.call(this,`#${e}`)}}"string"==typeof e.$id&&(p=h.call(this,e.$id)),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),r[t]=p})),i;function l(e,t,r){if(void 0!==t&&!n(e,t))throw u(r)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{type:!0,$comment:!0},keywords:{type:!0,$comment:!0}}}},4069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applySubschema=t.Type=void 0;const s=r(4815),n=r(6776),o=r(3487);var a;!function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(a=t.Type||(t.Type={})),t.applySubschema=function(e,t,r){const i=function(e,{keyword:t,schemaProp:r,schema:s,strictSchema:a,schemaPath:i,errSchemaPath:c,topSchemaRef:l}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===r?{schema:s,schemaPath:o._`${e.schemaPath}${o.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:o._`${e.schemaPath}${o.getProperty(t)}${o.getProperty(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${n.escapeFragment(r)}`}}if(void 0!==s){if(void 0===i||void 0===c||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,strictSchema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}(e,t);!function(e,t,{dataProp:r,dataPropType:s,data:i,dataTypes:c,propertyName:l}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:i,dataPathArr:c,opts:l}=t;d(u.let("data",o._`${t.data}${o.getProperty(r)}`,!0)),e.errorPath=o.str`${i}${function(e,t,r){if(e instanceof o.Name){const s=t===a.Num;return r?s?o._`"[" + ${e} + "]"`:o._`"['" + ${e} + "']"`:s?o._`"/" + ${e}`:o._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?o.getProperty(e).toString():"/"+n.escapeJsonPointer(e)}(r,s,l.jsPropertySyntax)}`,e.parentDataProperty=o._`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}function d(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==i&&(d(i instanceof o.Name?i:u.let("data",i,!0)),void 0!==l&&(e.propertyName=l)),c&&(e.dataTypes=c)}(i,e,t),function(e,{compositeRule:t,createErrors:r,allErrors:s,strictSchema:n}){void 0!==t&&(e.compositeRule=t),void 0!==r&&(e.createErrors=r),void 0!==s&&(e.allErrors=s),e.strictSchema=n}(i,t);const c={...e,...i,items:void 0,props:void 0};return s.subschemaCode(c,r),c}},4776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.length;let r,s=0,n=0;for(;n<t;)s++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return s}},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(3487),n=r(4815);function o(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strict)return;if("boolean"==typeof t)return;const o=s.RULES.keywords;for(const r in t)o[r]||n.checkStrictMode(e,`unknown keyword: "${r}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,a,i,c)=>{const l=void 0===i?a:i instanceof s.Name?(a instanceof s.Name?e(o,a,i):t(o,a,i),i):a instanceof s.Name?(t(o,i,a),a):r(a,i);return c!==s.Name||l instanceof s.Name?l:n(o,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",s._`{}`);return void 0!==t&&d(e,r,t),r}function d(e,t,r){Object.keys(r).forEach((r=>e.assign(s._`${t}${s.getProperty(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return s._`${r}`}return s._`${e}${t}${s.getProperty(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(i(e))},t.escapeJsonPointer=i,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,(()=>{e.if(s._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.code(s._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,s._`${r} || {}`),d(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,s._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,(()=>e.assign(r,!0===t||s._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d},8876:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>s(e,t)))}function s(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},s){const n=t.RULES.types[s];return n&&!0!==n&&r(e,n)},t.shouldUseGroup=r,t.shouldUseRule=s},5667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(4181),n=r(3487),o=r(2141),a={message:"boolean schema is false"};function i(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};s.reportError(o,a,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:s}=e;!1===r?i(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(n._`${s}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:s}=e;!1===s?(r.var(t,!1),i(e)):r.var(t,!0)}},453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const s=r(3141),n=r(8876),o=r(4181),a=r(3487),i=r(6776);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(s.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:s,opts:o}=e,i=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),l=t.length>0&&!(0===i.length&&1===t.length&&n.schemaHasRulesForType(e,t[0]));if(l){const n=p(t,s,o.strict,c.Wrong);r.if(n,(()=>{i.length?function(e,t,r){const{gen:s,data:n,opts:o}=e,i=s.let("dataType",a._`typeof ${n}`),c=s.let("coerced",a._`undefined`);"array"===o.coerceTypes&&s.if(a._`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>s.assign(n,a._`${n}[0]`).assign(i,a._`typeof ${n}`).if(p(t,n,o.strict),(()=>s.assign(c,n))))),s.if(a._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void s.elseIf(a._`${i} == "number" || ${i} == "boolean"`).assign(c,a._`"" + ${n}`).elseIf(a._`${n} === null`).assign(c,a._`""`);case"number":return void s.elseIf(a._`${i} == "boolean" || ${n} === null
                || (${i} == "string" && ${n} && ${n} == +${n})`).assign(c,a._`+${n}`);case"integer":return void s.elseIf(a._`${i} === "boolean" || ${n} === null
                || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,a._`+${n}`);case"boolean":return void s.elseIf(a._`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf(a._`${n} === "true" || ${n} === 1`).assign(c,!0);case"null":return s.elseIf(a._`${n} === "" || ${n} === 0 || ${n} === false`),void s.assign(c,null);case"array":s.elseIf(a._`${i} === "string" || ${i} === "number"
                || ${i} === "boolean" || ${n} === null`).assign(c,a._`[${n}]`)}}s.else(),f(e),s.endIf(),s.if(a._`${c} !== undefined`,(()=>{s.assign(n,c),function({gen:e,parentData:t,parentDataProperty:r},s){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${r}]`,s)))}(e,c)}))}(e,t,i):f(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,s=c.Correct){const n=s===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${n} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=i(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=i();break;default:return a._`typeof ${t} ${n} ${e}`}return s===c.Correct?o:a.not(o);function i(e=a.nil){return a.and(a._`typeof ${t} == "number"`,e,r?a._`isFinite(${t})`:a.nil)}}function p(e,t,r,s){if(1===e.length)return d(e[0],t,r,s);let n;const o=i.toHash(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;n=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else n=a.nil;o.number&&delete o.integer;for(const e in o)n=a.and(n,d(e,t,r,s));return n}t.checkDataType=d,t.checkDataTypes=p;const h={message:({schema:e})=>a.str`should be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:s}=e,n=i.schemaRefOrVal(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}(e);o.reportError(t,h)}t.reportTypeError=f},313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const s=r(3487),n=r(4815);function o(e,t,r){const{gen:o,compositeRule:a,data:i,opts:c}=e;if(void 0===r)return;const l=s._`${i}${s.getProperty(t)}`;if(a)return void n.checkStrictMode(e,`default is ignored for: ${l}`);let u=s._`${l} === undefined`;"empty"===c.useDefaults&&(u=s._`${u} || ${l} === null || ${l} === ""`),o.if(u,s._`${l} = ${s.stringify(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:s}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(s)&&s.forEach(((t,r)=>o(e,r,t.default)))}},4815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.schemaCxtHasRules=t.subschemaCode=t.validateFunctionCode=void 0;const s=r(5667),n=r(453),o=r(7449),a=r(3487),i=r(2141),c=r(2531),l=r(6776);function u({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){n.code.es5?e.func(t,a._`${i.default.data}, ${i.default.valCxt}`,s.$async,(()=>{e.code(a._`"use strict"; ${d(r,n)}`),function(e,t){e.if(i.default.valCxt,(()=>{e.var(i.default.dataPath,a._`${i.default.valCxt}.${i.default.dataPath}`),e.var(i.default.parentData,a._`${i.default.valCxt}.${i.default.parentData}`),e.var(i.default.parentDataProperty,a._`${i.default.valCxt}.${i.default.parentDataProperty}`),e.var(i.default.rootData,a._`${i.default.valCxt}.${i.default.rootData}`),t.dynamicRef&&e.var(i.default.dynamicAnchors,a._`${i.default.valCxt}.${i.default.dynamicAnchors}`)}),(()=>{e.var(i.default.dataPath,a._`""`),e.var(i.default.parentData,a._`undefined`),e.var(i.default.parentDataProperty,a._`undefined`),e.var(i.default.rootData,i.default.data),t.dynamicRef&&e.var(i.default.dynamicAnchors,a._`{}`)}))}(e,n),e.code(o)})):e.func(t,a._`${i.default.data}, ${function(e){return a._`{${i.default.dataPath}="", ${i.default.parentData}, ${i.default.parentDataProperty}, ${i.default.rootData}=${i.default.data}${e.dynamicRef?a._`, ${i.default.dynamicAnchors}={}`:a.nil}}={}`}(n)}`,s.$async,(()=>e.code(d(r,n)).code(o)))}function d(e,t){return"object"==typeof e&&e.$id&&(t.code.source||t.code.process)?a._`/*# sourceURL=${e.$id} */`:a.nil}function p({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function h(e){return"boolean"!=typeof e.schema}function f(e){l.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;t.$ref&&s.ignoreKeywordsWithRef&&l.schemaHasRulesButRef(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function m(e,t){const r=n.getSchemaTypes(e.schema),s=n.coerceAndCheckDataType(e,r);o.schemaKeywords(e,r,!s,t)}function y({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(!0===n.$comment)e.code(a._`${i.default.self}.logger.log(${o})`);else if("function"==typeof n.$comment){const r=a.str`${s}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(a._`${i.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function g(e,t,r=e.opts.strict){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.validateFunctionCode=function(e){h(e)&&(f(e),p(e))?function(e){const{schema:t,opts:r,gen:s}=e;u(e,(()=>{r.$comment&&t.$comment&&y(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strict&&g(e,"default is ignored in the schema root")}(e),s.let(i.default.vErrors,null),s.let(i.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",a._`${r}.evaluated`),t.if(a._`${e.evaluated}.dynamicProps`,(()=>t.assign(a._`${e.evaluated}.props`,a._`undefined`))),t.if(a._`${e.evaluated}.dynamicItems`,(()=>t.assign(a._`${e.evaluated}.items`,a._`undefined`)))}(e),m(e),function(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;r.$async?t.if(a._`${i.default.errors} === 0`,(()=>t.return(i.default.data)),(()=>t.throw(a._`new ${n}(${i.default.vErrors})`))):(t.assign(a._`${s}.errors`,i.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:s}){r instanceof a.Name&&e.assign(a._`${t}.props`,r),s instanceof a.Name&&e.assign(a._`${t}.items`,s)}(e),t.return(a._`${i.default.errors} === 0`))}(e)}))}(e):u(e,(()=>s.topBoolOrEmptySchema(e)))},t.subschemaCode=function(e,t){h(e)&&(f(e),p(e))?function(e,t){const{schema:r,gen:s,opts:n}=e;n.$comment&&r.$comment&&y(e),function(e){e.schema.$id&&(e.baseId=c.resolveUrl(e.baseId,e.schema.$id))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=s.const("_errs",i.default.errors);m(e,o),s.var(t,a._`${o} === ${i.default.errors}`)}(e,t):s.boolOrEmptySchema(e,t)},t.schemaCxtHasRules=p,t.checkStrictMode=g},7449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaKeywords=void 0;const s=r(8876),n=r(453),o=r(313),a=r(5005),i=r(6776),c=r(4815),l=r(3487),u=r(2141);function d(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&o.assignDefaults(e,t.type),r.block((()=>{for(const r of t.rules)s.shouldUseRule(n,r)&&a.keywordCode(e,r.keyword,r.definition,t.type)}))}function p(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function h(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,c.checkStrictMode(e,t,e.opts.strictTypes)}t.schemaKeywords=function(e,t,r,o){const{gen:c,schema:f,data:m,allErrors:y,opts:g,self:v}=e,{RULES:$}=v;function E(a){s.shouldUseGroup(f,a)&&(a.type?(c.if(n.checkDataType(a.type,m,g.strict)),d(e,a),1===t.length&&t[0]===a.type&&r&&(c.else(),n.reportTypeError(e)),c.endIf()):d(e,a),y||c.if(l._`${u.default.errors} === ${o||0}`))}!f.$ref||!g.ignoreKeywordsWithRef&&i.schemaHasRulesButRef(f,$)?(function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{p(e.dataTypes,t)||h(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>p(t,e)))):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&h(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&s.shouldUseRule(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>{return s=e,(r=t).includes(s)||"number"===s&&r.includes("integer");var r,s}))&&h(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),c.block((()=>{for(const e of $.rules)E(e);E($.post)}))):c.block((()=>a.keywordCode(e,"$ref",$.all.$ref.definition)))}},5005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keywordCode=void 0;const s=r(2227),n=r(4181),o=r(412),a=r(3487),i=r(2141);function c(e,t){var r;const{gen:s,keyword:c,schema:d,parentSchema:p,$data:h,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const m=!h&&t.compile?t.compile.call(f.self,d,p,f):t.validate,y=u(s,c,m),g=s.let("valid");function v(r=(t.async?a._`await `:a.nil)){const n=f.opts.passContext?i.default.this:i.default.self,c=!("compile"in t&&!h||!1===t.schema);s.assign(g,a._`${r}${o.callValidateCode(e,y,n,c)}`,t.modifying)}function $(e){var r;s.if(a.not(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&l(e),$((()=>e.error()));else{const r=t.async?function(){const e=s.let("ruleErrs",null);return s.try((()=>v(a._`await `)),(t=>s.assign(g,!1).if(a._`${t} instanceof ${f.ValidationError}`,(()=>s.assign(e,a._`${t}.errors`)),(()=>s.throw(t))))),e}():function(){const e=a._`${y}.errors`;return s.assign(e,null),v(a.nil),e}();t.modifying&&l(e),$((()=>function(e,t){const{gen:r}=e;r.if(a._`Array.isArray(${t})`,(()=>{r.assign(i.default.vErrors,a._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,a._`${i.default.vErrors}.length`),n.extendErrors(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)}function l(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,a._`${s.parentData}[${s.parentDataProperty}]`)))}function u(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:a.stringify(r)})}t.keywordCode=function(e,t,r,n){const o=new s.default(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?c(o,r):"macro"in r?function(e,t){const{gen:r,keyword:s,schema:n,parentSchema:o,it:i}=e,c=t.macro.call(i.self,n,o,i),l=u(r,s,c);!1!==i.opts.validateSchema&&i.self.validateSchema(c,!0);const d=r.name("valid");e.subschema({schema:c,schemaPath:a.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))}(o,r):(r.compile||r.validate)&&c(o,r)}},7159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const s=r(2227);t.KeywordCxt=s.default;var n=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=r(8727),a=r(3141),i=r(5173),c=r(3487),l=r(2531),u=r(453),d=r(6776),p=r(2228),h=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",strictNumbers:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function g(e){var t,r,s,n,o,a,i,c,l,u,d,p;const h=null===(t=e.strict)||void 0===t||t,f=!!h&&"log",m=null===(r=e.code)||void 0===r?void 0:r.optimize,y=!0===m||void 0===m?1:m||0;return{strict:h,strictTypes:null!==(s=e.strictTypes)&&void 0!==s?s:f,strictTuples:null!==(n=e.strictTuples)&&void 0!==n?n:f,code:e.code?{...e.code,optimize:y}:{optimize:y},loopRequired:null!==(o=e.loopRequired)&&void 0!==o?o:1/0,loopEnum:null!==(a=e.loopEnum)&&void 0!==a?a:1/0,meta:null===(i=e.meta)||void 0===i||i,messages:null===(c=e.messages)||void 0===c||c,inlineRefs:null===(l=e.inlineRefs)||void 0===l||l,addUsedSchema:null===(u=e.addUsedSchema)||void 0===u||u,validateSchema:null===(d=e.validateSchema)||void 0===d||d,validateFormats:null===(p=e.validateFormats)||void 0===p||p}}class v{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...g(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:f,es5:t,lines:r}),this.logger=function(e){if(!1===e)return N;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=a.getRules(),$.call(this,m,e,"NOT SUPPORTED"),$.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&b.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t}=this.opts;t&&e&&this.addMetaSchema(p,p.$id,!1)}defaultMeta(){const{meta:e}=this.opts;return this.opts.defaultMeta="object"==typeof e?e.$id||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const s=r(t);return"$async"in r||(this.errors=r.errors),s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function n(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.MissingRefError))throw t;return i.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await n.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,s);return this}let n;if("object"==typeof e&&(n=e.$id,void 0!==n&&"string"!=typeof n))throw new Error("schema id must be string");return t=l.normalizeId(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,s,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=E.call(this,e));)e=t;if(void 0===t){const r=new i.SchemaEnv({schema:{}});if(t=i.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=E.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e.$id;return r&&(r=l.normalizeId(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return d.eachItem(r,(e=>O.call(this,e))),this;k.call(this,t);const s={...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)};return d.eachItem(r,0===s.type.length?e=>O.call(this,e,s):e=>s.type.forEach((t=>O.call(this,e,s,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.dataPath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,o=n[e];s&&o&&(n[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];t&&!t.test(r)||("string"==typeof s?delete e[r]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[r]))}}_addSchema(e,t,r=this.opts.validateSchema,s=this.opts.addUsedSchema){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema must be object or boolean");let n=this._cache.get(e);if(void 0!==n)return n;const o=l.getSchemaRefs.call(this,e);n=new i.SchemaEnv({schema:e,meta:t,localRefs:o}),this._cache.set(n.schema,n);const a=n.baseId;return s&&!a.startsWith("#")&&(a&&this._checkUnique(a),this.refs[a]=n),r&&this.validateSchema(e,!0),n}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function $(e,t,r,s="error"){for(const n in e){const o=n;o in t&&this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function E(e){return e=l.normalizeId(e),this.schemas[e]||this.refs[e]}function w(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function b(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function S(){const e={...this.opts};for(const t of h)delete e[t];return e}t.default=v,v.ValidationError=o.ValidationError,v.MissingRefError=o.MissingRefError;const N={log(){},warn(){},error(){}},x=/^[a-z_$][a-z0-9_$-]*$/i;function P(e,t){const{RULES:r}=this;if(d.eachItem(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!x.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var s;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=n?o.post:o.rules.find((({type:e})=>e===r));if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)}};t.before?R.call(this,a,i,t.before):a.rules.push(i),o.all[e]=i,null===(s=t.implements)||void 0===s||s.forEach((e=>this.addKeyword(e)))}function R(e,t,r){const s=e.rules.findIndex((e=>e.keyword===r));s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function k(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,I]}}},2228:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},278: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}')},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4069),o=r(6776),a=r(4815),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>s.str`should NOT have more than ${e} items`,params:({params:{len:e}})=>s._`{limit: ${e}}`},code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e,{items:u}=i;if(!Array.isArray(u))return void a.checkStrictMode(l,'"additionalItems" is ignored when "items" is not an array of schemas');l.items=!0;const d=t.const("len",s._`${c}.length`);if(!1===r)e.setParams({len:u.length}),e.pass(s._`${d} <= ${u.length}`);else if("object"==typeof r&&!o.alwaysValidSchema(l,r)){const r=t.var("valid",s._`${d} <= ${u.length}`);t.if(s.not(r),(()=>function(r){t.forRange("i",u.length,d,(o=>{e.subschema({keyword:"additionalItems",dataProp:o,dataPropType:n.Type.Num},r),l.allErrors||t.if(s.not(r),(()=>t.break()))}))}(r))),e.ok(r)}}};t.default=i},9351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(412),n=r(3487),o=r(2141),a=r(4069),i=r(6776),c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"should NOT have additional properties",params:({params:e})=>n._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:c,data:l,errsCount:u,it:d}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:p,opts:h}=d;if(d.props=!0,"all"!==h.removeAdditional&&i.alwaysValidSchema(d,r))return;const f=s.allSchemaProperties(c.properties),m=s.allSchemaProperties(c.patternProperties);function y(e){t.code(n._`delete ${l}[${e}]`)}function g(s){if("all"===h.removeAdditional||h.removeAdditional&&!1===r)y(s);else{if(!1===r)return e.setParams({additionalProperty:s}),e.error(),void(p||t.break());if("object"==typeof r&&!i.alwaysValidSchema(d,r)){const r=t.name("valid");"failing"===h.removeAdditional?(v(s,r,!1),t.if(n.not(r),(()=>{e.reset(),y(s)}))):(v(s,r),p||t.if(n.not(r),(()=>t.break())))}}}function v(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str,strictSchema:d.strictSchema};!1===s&&Object.assign(n,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(n,r)}t.forIn("key",l,(e=>{f.length||m.length?t.if(function(e){let r;if(f.length>8){const t=i.schemaRefOrVal(d,c.properties,"properties");r=n._`${t}.hasOwnProperty(${e})`}else r=f.length?n.or(...f.map((t=>n._`${e} === ${t}`))):n.nil;return m.length&&(r=n.or(r,...m.map((r=>n._`${s.usePattern(t,r)}.test(${e})`)))),n._`!(${r})`}(e),(()=>g(e))):g(e)})),e.ok(n._`${u} === ${o.default.errors}`)}};t.default=c},1125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(6776),n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if(s.alwaysValidSchema(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=n},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(6776),o={keyword:"anyOf",schemaType:"array",trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>n.alwaysValidSchema(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),i=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const o=e.subschema({keyword:"anyOf",schemaProp:n,compositeRule:!0},i);t.assign(a,s._`${a} || ${i}`),e.mergeValidEvaluated(o,i)||t.if(s.not(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))},error:{message:"should match some schema in anyOf"}};t.default=o},9864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4069),o=r(6776),a=r(4815),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?s.str`should contain at least ${e} valid item(s)`:s.str`should contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?s._`{minContains: ${e}}`:s._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e;let u,d;const{minContains:p,maxContains:h}=i;l.opts.next?(u=void 0===p?1:p,d=h):u=1;const f=t.const("len",s._`${c}.length`);if(e.setParams({min:u,max:d}),void 0===d&&0===u)return void a.checkStrictMode(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==d&&u>d)return a.checkStrictMode(l,'"minContains" > "maxContains" is always invalid'),void e.fail();if(o.alwaysValidSchema(l,r)){let t=s._`${f} >= ${u}`;return void 0!==d&&(t=s._`${t} && ${f} <= ${d}`),void e.pass(t)}l.items=!0;const m=t.name("valid");if(void 0===d&&1===u)y(m,(()=>t.if(m,(()=>t.break()))));else{t.let(m,!1);const e=t.name("_valid"),r=t.let("count",0);y(e,(()=>t.if(e,(()=>function(e){t.code(s._`${e}++`),void 0===d?t.if(s._`${e} >= ${u}`,(()=>t.assign(m,!0).break())):(t.if(s._`${e} > ${d}`,(()=>t.assign(m,!1).break())),1===u?t.assign(m,!0):t.if(s._`${e} >= ${u}`,(()=>t.assign(m,!0))))}(r)))))}function y(r,s){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:!0},r),s()}))}e.result(m,(()=>e.reset()))}};t.default=i},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(3487),n=r(6776),o=r(412);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=1===t?"property":"properties";return s.str`should have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>s._`{property: ${e},
      missingProperty: ${n},
      depsCount: ${t},
      deps: ${r}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const s in e)"__proto__"!==s&&((Array.isArray(e[s])?t:r)[s]=e[s]);return[t,r]}(e);i(e,t),c(e,r)}};function i(e,t=e.schema){const{gen:r,data:n,it:a}=e;if(0===Object.keys(t).length)return;const i=r.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=o.propertyInData(n,c,a.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),a.allErrors?r.if(u,(()=>{for(const t of l)o.checkReportMissingProp(e,t)})):(r.if(s._`${u} && (${o.checkMissingProp(e,l,i)})`),o.reportMissingProp(e,i),r.else())}}function c(e,t=e.schema){const{gen:r,data:s,keyword:a,it:i}=e,c=r.name("valid");for(const l in t)n.alwaysValidSchema(i,t[l])||(r.if(o.propertyInData(s,l,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=i,t.validateSchemaDeps=c,t.default=a},9434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(6776),o=r(4815),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>s.str`should match "${e.ifClause}" schema`,params:({params:e})=>s._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&o.checkStrictMode(n,'"if" without "then" and "else" is ignored');const a=i(n,"then"),c=i(n,"else");if(!a&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,d("then",r),d("else",r))}else a?t.if(u,d("then")):t.if(s.not(u),d("else"));function d(r,n){return()=>{const o=e.subschema({keyword:r},u);t.assign(l,u),e.mergeValidEvaluated(o,l),n?t.assign(n,s._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!n.alwaysValidSchema(e,r)}t.default=a},8200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4783),n=r(4665),o=r(9864),a=r(7772),i=r(3708),c=r(9351),l=r(6239),u=r(2296),d=r(5697),p=r(19),h=r(4200),f=r(1125),m=r(9434),y=r(6552),g=[d.default,p.default,h.default,f.default,m.default,y.default,s.default,n.default,o.default,i.default,c.default,a.default,l.default,u.default];t.default=g},4665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4069),o=r(6776),a=r(4815),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e,u=t.const("len",s._`${c}.length`);Array.isArray(r)?(l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(t,r.length,l.items)),function(n){if(l.opts.strictTuples&&!function(e,t){return e===t.minItems&&(e===t.maxItems||!1===t.additionalItems)}(r.length,i)){const e=`"items" is ${n.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;a.checkStrictMode(l,e,l.opts.strictTuples)}const c=t.name("valid");n.forEach(((r,n)=>{o.alwaysValidSchema(l,r)||(t.if(s._`${u} > ${n}`,(()=>e.subschema({keyword:"items",schemaProp:n,dataProp:n,strictSchema:l.strictSchema},c))),e.ok(c))}))}(r)):(l.items=!0,o.alwaysValidSchema(l,r)||function(){const r=t.name("valid");t.forRange("i",0,u,(o=>{e.subschema({keyword:"items",dataProp:o,dataPropType:n.Type.Num,strictSchema:l.strictSchema},r),l.allErrors||t.if(s.not(r),(()=>t.break()))})),e.ok(r)}())}};t.default=i},5697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(6776),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if(s.alwaysValidSchema(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.result(o,(()=>e.error()),(()=>e.reset()))},error:{message:"should NOT be valid"}};t.default=n},4200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(6776),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"should match exactly one schema in oneOf",params:({params:e})=>s._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=r,i=t.let("valid",!1),c=t.let("passing",null),l=t.name("_valid");e.setParams({passing:c}),t.block((function(){a.forEach(((r,a)=>{let u;n.alwaysValidSchema(o,r)?t.var(l,!0):u=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},l),a>0&&t.if(s._`${l} && ${i}`).assign(i,!1).assign(c,s._`[${c}, ${a}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(c,a),u&&e.mergeEvaluated(u,s.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},2296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(412),n=r(3487),o=r(4069),a=r(4815),i=r(6776),c={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:c,parentSchema:l,it:u}=e,{opts:d}=u,p=s.schemaProperties(u,r);if(0===p.length)return;const h=d.strict&&!d.allowMatchingProperties&&l.properties,f=t.name("valid");!0===u.props||u.props instanceof n.Name||(u.props=i.evaluatedPropsToName(t,u.props));const{props:m}=u;function y(e){for(const t in h)new RegExp(e).test(t)&&a.checkStrictMode(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",c,(a=>{t.if(n._`${s.usePattern(t,r)}.test(${a})`,(()=>{e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:o.Type.Str,strictSchema:u.strictSchema},f),u.opts.unevaluated&&!0!==m?t.assign(n._`${m}[${a}]`,!0):u.allErrors||t.if(n.not(f),(()=>t.break()))}))}))}!function(){for(const e of p)h&&y(e),u.allErrors?g(e):(t.var(f,!0),g(e),t.if(f))}()}};t.default=c},6239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2227),n=r(412),o=r(6776),a=r(9351),i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===i.additionalProperties&&a.default.code(new s.default(l,a.default,"additionalProperties"));const u=n.allSchemaProperties(r);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=o.mergeEvaluated.props(t,o.toHash(u),l.props));const d=u.filter((e=>!o.alwaysValidSchema(l,r[e])));if(0===d.length)return;const p=t.name("valid");for(const r of d)h(r)?f(r):(t.if(n.propertyInData(c,r,l.opts.ownProperties)),f(r),l.allErrors||t.else().var(p,!0),t.endIf()),e.ok(p);function h(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t,strictSchema:l.strictSchema},p)}}};t.default=i},3708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(6776),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:({params:e})=>s.str`property name '${e.propertyName}' is invalid`,params:({params:e})=>s._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:a}=e;if(n.alwaysValidSchema(a,r))return;const i=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0,strictSchema:a.strictSchema},i),t.if(s.not(i),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(i)}};t.default=o},6552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4815),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&s.checkStrictMode(r,`"${e}" without "if" is ignored`)}};t.default=n},412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(3487),n=r(6776),o=r(2141);function a(e,t){return s._`Object.prototype.hasOwnProperty.call(${e}, ${t})`}function i(e,t,r){const n=s._`${e}${s.getProperty(t)} === undefined`;return r?s._`${n} || !${a(e,t)}`:n}function c(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:o}=e;r.if(i(n,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:s._`${t}`},!0),e.error()}))},t.checkMissingProp=function({data:e,it:{opts:t}},r,n){return s.or(...r.map((r=>s._`${i(e,r,t.ownProperties)} && (${n} = ${r})`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.propertyInData=function(e,t,r){const n=s._`${e}${s.getProperty(t)} !== undefined`;return r?s._`${n} && ${a(e,t)}`:n},t.noPropertyInData=i,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter((r=>!n.alwaysValidSchema(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:i},it:c},l,u,d){const p=d?s._`${e}, ${t}, ${n}${a}`:t,h=[[o.default.dataPath,s.strConcat(o.default.dataPath,i)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=s._`${p}, ${r.object(...h)}`;return u!==s.nil?s._`${l}.call(${u}, ${f})`:s._`${l}(${f})`},t.usePattern=function(e,t){return e.scopeValue("pattern",{key:t,ref:new RegExp(t,"u"),code:s._`new RegExp(${t}, "u")`})}},8386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},5684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(8386),n=r(8280),o=["$schema","$id","$defs","$vocabulary","definitions",s.default,n.default];t.default=o},8280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const s=r(8727),n=r(412),o=r(3487),a=r(2141),i=r(5173),c=r(6776),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:a,schemaEnv:c,validateName:l,opts:p,self:h}=n;if("#"===r||"#/"===r)return function(){if(c===c.root)return d(e,l,c,c.$async);const r=t.scopeValue("root",{ref:c.root});return d(e,o._`${r}.validate`,c.root,c.root.$async)}();const f=i.resolveRef.call(h,c.root,a,r);if(void 0===f)throw new s.MissingRefError(a,r);return f instanceof i.SchemaEnv?function(t){const r=u(e,t);d(e,r,t,t.$async)}(f):function(s){const n=t.scopeValue("schema",!0===p.code.source?{ref:s,code:o.stringify(s)}:{ref:s}),a=t.name("valid"),i=e.subschema({schema:s,strictSchema:!0,dataTypes:[],schemaPath:o.nil,topSchemaRef:n,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(f)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,r,s){const{gen:i,it:l}=e,{allErrors:u,schemaEnv:d,opts:p}=l,h=p.passContext?a.default.this:o.nil;function f(e){const t=o._`${e}.errors`;i.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),i.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const s=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(s&&!s.dynamicProps)void 0!==s.props&&(l.props=c.mergeEvaluated.props(i,s.props,l.props));else{const t=i.var("props",o._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(i,t,l.props,o.Name)}if(!0!==l.items)if(s&&!s.dynamicItems)void 0!==s.items&&(l.items=c.mergeEvaluated.items(i,s.items,l.items));else{const t=i.var("items",o._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(i,t,l.items,o.Name)}}s?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(o._`await ${n.callValidateCode(e,t,h)}`),m(t),u||i.assign(r,!0)}),(e=>{i.if(o._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),f(e),u||i.assign(r,!1)})),e.ok(r)}():e.result(n.callValidateCode(e,t,h),(()=>m(t)),(()=>f(t)))}t.getValidate=u,t.callRef=d,t.default=l},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5684),n=r(2649),o=r(8200),a=r(9502),i=r(6167),c=[s.default,n.default,o.default,a.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},9651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>s.str`should match format "${e}"`,params:({schemaCode:e})=>s._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:p}=c;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:p.formats,code:l.code.formats}),a=r.const("fDef",s._`${o}[${i}]`),c=r.let("fType"),u=r.let("format");r.if(s._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(c,s._`${a}.type || "string"`).assign(u,s._`${a}.validate`)),(()=>r.assign(c,s._`"string"`).assign(u,a))),e.fail$data(s.or(!1===l.strict?s.nil:s._`${i} && !${u}`,function(){const e=d.$async?s._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:s._`${u}(${n})`,r=s._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return s._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const o=p.formats[a];if(!o)return void function(){if(!1!==l.strict)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}p.logger.warn(e())}();if(!0===o)return;const[i,c,h]=function(e){const t=r.scopeValue("formats",{key:a,ref:e,code:l.code.formats?s._`${l.code.formats}${s.getProperty(a)}`:void 0});return"object"!=typeof e||e instanceof RegExp?["string",e,t]:[e.type||"string",e.validate,s._`${t}.validate`]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return s._`await ${h}(${n})`}return"function"==typeof c?s._`${h}(${n})`:s._`${h}.test(${n})`}())}())}};t.default=n},9502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=[r(9651).default];t.default=s},6167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},4693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4063),o={keyword:"const",$data:!0,error:{message:"should be equal to constant",params:({schemaCode:e})=>s._`{allowedValue: ${e}}`},code(e){const t=e.gen.scopeValue("func",{ref:n,code:s._`require("ajv/dist/compile/equal")`});e.fail$data(s._`!${t}(${e.data}, ${e.schemaCode})`)}};t.default=o},966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4063),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"should be equal to one of the allowed values",params:({schemaCode:e})=>s._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:o,schema:a,schemaCode:i,it:c}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=c.opts.loopEnum,u=e.gen.scopeValue("func",{ref:n,code:s._`require("ajv/dist/compile/equal")`});let d;if(l||o)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",i,(e=>t.if(s._`${u}(${r}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",i);d=s.or(...a.map(((t,n)=>function(e,t){const n=a[t];return n&&"object"==typeof n?s._`${u}(${r}, ${e}[${t}])`:s._`${r} === ${n}`}(e,n))))}e.pass(d)}};t.default=o},2649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3983),n=r(430),o=r(3229),a=r(4336),i=r(498),c=r(3301),l=r(1687),u=r(2958),d=r(4693),p=r(966),h=[s.default,n.default,o.default,a.default,i.default,c.default,l.default,u.default,{keyword:"nullable",schemaType:"boolean"},d.default,p.default];t.default=h},1687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return s.str`should NOT have ${r} than ${t} items`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`${r}.length ${o} ${n}`)}};t.default=n},3229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=r(4776),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return s.str`should NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o,it:a}=e,i="maxLength"===t?s.operators.GT:s.operators.LT;let c;if(!1===a.opts.unicode)c=s._`${r}.length`;else{const t=e.gen.scopeValue("func",{ref:n.default,code:s._`require("ajv/dist/compile/ucs2length").default`});c=s._`${t}(${r})`}e.fail$data(s._`${c} ${i} ${o}`)}};t.default=o},3983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n=s.operators,o={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:e,schemaCode:t})=>s.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`},i={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(s._`${r} ${o[t].fail} ${n} || isNaN(${r})`)}};t.default=i},498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return s.str`should NOT have ${r} than ${t} items`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`Object.keys(${r}).length ${o} ${n}`)}};t.default=n},430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3487),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>s.str`should be multiple of ${e}`,params:({schemaCode:e})=>s._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),c=a?s._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:s._`${i} !== parseInt(${i})`;e.fail$data(s._`(${n} === 0 || (${i} = ${r}/${n}, ${c}))`)}};t.default=n},4336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(412),n=r(3487),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`should match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(e){const{gen:t,data:r,$data:o,schema:a,schemaCode:i}=e,c=o?n._`(new RegExp(${i}, "u"))`:s.usePattern(t,a);e.fail$data(n._`!${c}.test(${r})`)}};t.default=o},3301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(412),n=r(3487),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>n.str`should have required property '${e}'`,params:({params:{missingProperty:e}})=>n._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:o,data:a,$data:i,it:c}=e,{opts:l}=c;if(!i&&0===r.length)return;const u=r.length>=l.loopRequired;function d(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r}),t.if(s.noPropertyInData(a,r,l.ownProperties),(()=>e.error()))}))}c.allErrors?function(){if(u||i)e.block$data(n.nil,d);else for(const t of r)s.checkReportMissingProp(e,t)}():function(){const c=t.let("missing");if(u||i){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,i){e.setParams({missingProperty:r}),t.forOf(r,o,(()=>{t.assign(i,s.propertyInData(a,r,l.ownProperties)),t.if(n.not(i),(()=>{e.error(),t.break()}))}),n.nil)}(c,r))),e.ok(r)}else t.if(s.checkMissingProp(e,r,c)),s.reportMissingProp(e,c),t.else()}()}};t.default=o},2958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(453),n=r(3487),o=r(4063),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>n.str`should NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>n._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:i,parentSchema:c,schemaCode:l,it:u}=e;if(!a&&!i)return;const d=t.let("valid"),p=c.items?s.getSchemaTypes(c.items):[];function h(o,a){const i=t.name("item"),c=s.checkDataTypes(p,i,u.opts.strict,s.DataType.Wrong),l=t.const("indices",n._`{}`);t.for(n._`;${o}--;`,(()=>{t.let(i,n._`${r}[${o}]`),t.if(c,n._`continue`),p.length>1&&t.if(n._`typeof ${i} == "string"`,n._`${i} += "_"`),t.if(n._`typeof ${l}[${i}] == "number"`,(()=>{t.assign(a,n._`${l}[${i}]`),e.error(),t.assign(d,!1).break()})).code(n._`${l}[${i}] = ${o}`)}))}function f(s,a){const i=e.gen.scopeValue("func",{ref:o,code:n._`require("ajv/dist/compile/equal")`}),c=t.name("outer");t.label(c).for(n._`;${s}--;`,(()=>t.for(n._`${a} = ${s}; ${a}--;`,(()=>t.if(n._`${i}(${r}[${s}], ${r}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(c)}))))))}e.block$data(d,(function(){const s=t.let("i",n._`${r}.length`),o=t.let("j");e.setParams({i:s,j:o}),t.assign(d,!0),t.if(n._`${s} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?h:f)(s,o)))}),n._`${l} === false`),e.ok(d)}};t.default=a},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(n=s;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=s;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;0!=n--;){var a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},2806:e=>{"use strict";e.exports=(e,t)=>{const r={},s=Array.isArray(t);for(const[n,o]of Object.entries(e))(s?t.includes(n):t(n,o,e))&&(r[n]=o);return r}},3310:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},9461:e=>{"use strict";var t=e.exports=function(e,t,s){"function"==typeof t&&(s=t,t={}),r(t,"function"==typeof(s=t.cb||s)?s:s.pre||function(){},s.post||function(){},e,"",e)};function r(e,s,n,o,a,i,c,l,u,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var p in s(o,a,i,c,l,u,d),o){var h=o[p];if(Array.isArray(h)){if(p in t.arrayKeywords)for(var f=0;f<h.length;f++)r(e,s,n,h[f],a+"/"+p+"/"+f,i,a,p,o,f)}else if(p in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,s,n,h[m],a+"/"+p+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),i,a,p,o,m)}else(p in t.keywords||e.allKeys&&!(p in t.skipKeywords))&&r(e,s,n,h,a+"/"+p,i,a,p,o)}n(o,a,i,c,l,u,d)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},9593:(e,t,r)=>{"use strict";const s=r(4411),n=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),i=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1,m=(e,t,r)=>{const s=e[p].get(t);if(s){const t=s.value;if(y(e,t)){if(v(e,s),!e[i])return}else r&&(e[h]&&(s.value.now=Date.now()),e[d].unshiftNode(s));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},g=e=>{if(e[o]>e[n])for(let t=e[d].tail;e[o]>e[n]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[o]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}};class ${constructor(e,t,r,s,n){this.key=e,this.value=t,this.length=r,this.now=s,this.maxAge=n||0}}const E=(e,t,r,s)=>{let n=r.value;y(e,n)&&(v(e,r),e[i]||(n=void 0)),n&&t.call(s,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,g(this)}get max(){return this[n]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,g(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const s=r.prev;E(this,e,r,t),r=s}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const s=r.next;E(this,e,r,t),r=s}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[p]=new Map,this[d]=new s,this[o]=0}dump(){return this[d].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const s=r?Date.now():0,i=this[a](t,e);if(this[p].has(e)){if(i>this[n])return v(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=s,a.maxAge=r,a.value=t,this[o]+=i-a.length,a.length=i,this.get(e),g(this),!0}const h=new $(e,t,i,s,r);return h.length>this[n]?(this[l]&&this[l](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[p].set(e,this[d].head),g(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!y(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r],n=s.e||0;if(0===n)this.set(s.k,s.v);else{const e=n-t;e>0&&this.set(s.k,s.v,e)}}}prune(){this[p].forEach(((e,t)=>m(this,t,!1)))}}},7115:(e,t,r)=>{"use strict";const s=r(6819),n=async(e,t,r)=>(await s(e,((e,r)=>Promise.all([t(e,r),e])),r)).filter((e=>Boolean(e[0]))).map((e=>e[1]));e.exports=n,e.exports.default=n},6819:e=>{"use strict";const t=(e,t,r)=>new Promise(((s,n)=>{if(r=Object.assign({concurrency:1/0},r),"function"!=typeof t)throw new TypeError("Mapper function is required");const{concurrency:o}=r;if(!("number"==typeof o&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);const a=[],i=e[Symbol.iterator]();let c=!1,l=!1,u=0,d=0;const p=()=>{if(c)return;const e=i.next(),r=d;if(d++,e.done)return l=!0,void(0===u&&s(a));u++,Promise.resolve(e.value).then((e=>t(e,r))).then((e=>{a[r]=e,u--,p()}),(e=>{c=!0,n(e)}))};for(let e=0;e<o&&(p(),!l);e++);}));e.exports=t,e.exports.default=t},406:(e,t,r)=>{"use strict";const s=r(9161),n=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},o=(e,t,...o)=>{r++;const a=s(e,...o);t(a),a.then(n,n)},a=(s,...n)=>new Promise((a=>((s,n,...a)=>{r<e?o(s,n,...a):t.push(o.bind(null,s,n,...a))})(s,a,...n)));return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),a};e.exports=n,e.exports.default=n},1885:(e,t,r)=>{"use strict";const s=r(406);class n extends Error{constructor(e){super(),this.value=e}}const o=async(e,t)=>t(await e),a=async e=>{const t=await Promise.all(e);if(!0===t[1])throw new n(t[0]);return!1},i=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};const i=s(r.concurrency),c=[...e].map((e=>[e,i(o,e,t)])),l=s(r.preserveOrder?1:1/0);try{await Promise.all(c.map((e=>l(a,e))))}catch(e){if(e instanceof n)return e.value;throw e}};e.exports=i,e.exports.default=i},9161:e=>{"use strict";const t=(e,...t)=>new Promise((r=>{r(e(...t))}));e.exports=t,e.exports.default=t},6470:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,s="",n=0,o=-1,a=0,i=0;i<=e.length;++i){if(i<e.length)r=e.charCodeAt(i);else{if(47===r)break;r=47}if(47===r){if(o===i-1||1===a);else if(o!==i-1&&2===a){if(s.length<2||2!==n||46!==s.charCodeAt(s.length-1)||46!==s.charCodeAt(s.length-2))if(s.length>2){var c=s.lastIndexOf("/");if(c!==s.length-1){-1===c?(s="",n=0):n=(s=s.slice(0,c)).length-1-s.lastIndexOf("/"),o=i,a=0;continue}}else if(2===s.length||1===s.length){s="",n=0,o=i,a=0;continue}t&&(s.length>0?s+="/..":s="..",n=2)}else s.length>0?s+="/"+e.slice(o+1,i):s=e.slice(o+1,i),n=i-o-1;o=i,a=0}else 46===r&&-1!==a?++a:a=-1}return s}var s={resolve:function(){for(var e,s="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(s=a+"/"+s,n=47===a.charCodeAt(0))}return s=r(s,!n),n?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(e){if(t(e),0===e.length)return".";var s=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!s)).length||s||(e="."),e.length>0&&n&&(e+="/"),s?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=s.resolve(e))===(r=s.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,a=o-n,i=1;i<r.length&&47===r.charCodeAt(i);++i);for(var c=r.length-i,l=a<c?a:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===r.charCodeAt(i+d))return r.slice(i+d+1);if(0===d)return r.slice(i+d)}else a>l&&(47===e.charCodeAt(n+d)?u=d:0===d&&(u=0));break}var p=e.charCodeAt(n+d);if(p!==r.charCodeAt(i+d))break;47===p&&(u=d)}var h="";for(d=n+u+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(i+u):(i+=u,47===r.charCodeAt(i)&&++i,r.slice(i))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),s=47===r,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?s?"/":".":s&&1===n?"//":e.slice(0,n)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var s,n=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var i=r.length-1,c=-1;for(s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!a){n=s+1;break}}else-1===c&&(a=!1,c=s+1),i>=0&&(l===r.charCodeAt(i)?-1==--i&&(o=s):(i=-1,o=c))}return n===o?o=c:-1===o&&(o=e.length),e.slice(n,o)}for(s=e.length-1;s>=0;--s)if(47===e.charCodeAt(s)){if(!a){n=s+1;break}}else-1===o&&(a=!1,o=s+1);return-1===o?"":e.slice(n,o)},extname:function(e){t(e);for(var r=-1,s=0,n=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47!==c)-1===n&&(o=!1,n=i+1),46===c?-1===r?r=i:1!==a&&(a=1):-1!==r&&(a=-1);else if(!o){s=i+1;break}}return-1===r||-1===n||0===a||1===a&&r===n-1&&r===s+1?"":e.slice(r,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+"/"+s:s}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var s,n=e.charCodeAt(0),o=47===n;o?(r.root="/",s=1):s=0;for(var a=-1,i=0,c=-1,l=!0,u=e.length-1,d=0;u>=s;--u)if(47!==(n=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===n?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1);else if(!l){i=u+1;break}return-1===a||-1===c||0===d||1===d&&a===c-1&&a===i+1?-1!==c&&(r.base=r.name=0===i&&o?e.slice(1,c):e.slice(i,c)):(0===i&&o?(r.name=e.slice(1,a),r.base=e.slice(1,c)):(r.name=e.slice(i,a),r.base=e.slice(i,c)),r.ext=e.slice(a,c)),i>0?r.dir=e.slice(0,i-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},2257:(e,t,r)=>{const s=Symbol("SemVer ANY");class n{static get ANY(){return s}constructor(e,t){if(t=o(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),i=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||o&&a||i||l}}e.exports=n;const o=r(2893),{re:a,t:i}=r(5765),c=r(7539),l=r(4225),u=r(6376),d=r(6902)},6902:(e,t,r)=>{class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const s=this.options.loose,o=s?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,P(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),i("comparator trim",e,l[u.COMPARATORTRIM]),e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ");const c=s?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],m=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options))).filter(this.options.loose?e=>!!e.match(c):()=>!0).map((e=>new a(e,this.options))),y=(m.length,new Map);for(const e of m){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const n=new(r(9593))({max:1e3}),o=r(2893),a=r(2257),i=r(4225),c=r(6376),{re:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:h}=r(5765),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let r=!0;const s=e.slice();let n=s.pop();for(;r&&s.length;)r=s.every((e=>n.intersects(e,t))),n=s.pop();return r},g=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=$(e,t),i("tildes",e),e=b(e,t),i("xrange",e),e=N(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,$=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,s,n,o)=>{let a;return i("tilde",e,t,r,s,n,o),v(r)?a="":v(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(n)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:o?(i("replaceTilde pr",o),a=`>=${r}.${s}.${n}-${o} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`,i("tilde return",a),a}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{i("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,o,a)=>{let c;return i("caret",e,t,r,n,o,a),v(r)?c="":v(n)?c=`>=${r}.0.0${s} <${+r+1}.0.0-0`:v(o)?c="0"===r?`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${s} <${+r+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===r?"0"===n?`>=${r}.${n}.${o}-${a} <${r}.${n}.${+o+1}-0`:`>=${r}.${n}.${o}-${a} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${o}-${a} <${+r+1}.0.0-0`):(i("no pr"),c="0"===r?"0"===n?`>=${r}.${n}.${o}${s} <${r}.${n}.${+o+1}-0`:`>=${r}.${n}.${o}${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${o} <${+r+1}.0.0-0`),i("caret return",c),c}))},b=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,s,n,o,a,c)=>{i("xRange",e,r,s,n,o,a,c);const l=v(n),u=l||v(o),d=u||v(a),p=d;return"="===s&&p&&(s=""),c=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(u&&(o=0),a=0,">"===s?(s=">=",u?(n=+n+1,o=0,a=0):(o=+o+1,a=0)):"<="===s&&(s="<",u?n=+n+1:o=+o+1),"<"===s&&(c="-0"),r=`${s+n}.${o}.${a}${c}`):u?r=`>=${n}.0.0${c} <${+n+1}.0.0-0`:d&&(r=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`),i("xRange return",r),r}))},N=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),x=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),P=e=>(t,r,s,n,o,a,i,c,l,u,d,p,h)=>`${r=v(s)?"":v(n)?`>=${s}.0.0${e?"-0":""}`:v(o)?`>=${s}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),O=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(i(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},6376:(e,t,r)=>{const s=r(4225),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=r(3295),{re:a,t:i}=r(5765),c=r(2893),{compareIdentifiers:l}=r(6742);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[i.LOOSE]:a[i.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},3507:(e,t,r)=>{const s=r(3959);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:(e,t,r)=>{const s=r(8718),n=r(1194),o=r(1312),a=r(5903),i=r(1544),c=r(2056);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,l);case"!=":return n(e,r,l);case">":return o(e,r,l);case">=":return a(e,r,l);case"<":return i(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},9038:(e,t,r)=>{const s=r(6376),n=r(3959),{re:o,t:a}=r(5765);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},8880:(e,t,r)=>{const s=r(6376);e.exports=(e,t,r)=>{const n=new s(e,r),o=new s(t,r);return n.compare(o)||n.compareBuild(o)}},7880:(e,t,r)=>{const s=r(6269);e.exports=(e,t)=>s(e,t,!0)},6269:(e,t,r)=>{const s=r(6376);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},2378:(e,t,r)=>{const s=r(3959),n=r(8718);e.exports=(e,t)=>{if(n(e,t))return null;{const r=s(e),n=s(t),o=r.prerelease.length||n.prerelease.length,a=o?"pre":"",i=o?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return a+e;return i}}},8718:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>0===s(e,t,r)},1312:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>s(e,t,r)>0},5903:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>s(e,t,r)>=0},253:(e,t,r)=>{const s=r(6376);e.exports=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new s(e,r).inc(t,n).version}catch(e){return null}}},1544:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>s(e,t,r)<0},2056:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>s(e,t,r)<=0},8679:(e,t,r)=>{const s=r(6376);e.exports=(e,t)=>new s(e,t).major},7789:(e,t,r)=>{const s=r(6376);e.exports=(e,t)=>new s(e,t).minor},1194:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>0!==s(e,t,r)},3959:(e,t,r)=>{const{MAX_LENGTH:s}=r(3295),{re:n,t:o}=r(5765),a=r(6376),i=r(2893);e.exports=(e,t)=>{if(t=i(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>s)return null;if(!(t.loose?n[o.LOOSE]:n[o.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},2358:(e,t,r)=>{const s=r(6376);e.exports=(e,t)=>new s(e,t).patch},7559:(e,t,r)=>{const s=r(3959);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},9795:(e,t,r)=>{const s=r(6269);e.exports=(e,t,r)=>s(t,e,r)},3657:(e,t,r)=>{const s=r(8880);e.exports=(e,t)=>e.sort(((e,r)=>s(r,e,t)))},5712:(e,t,r)=>{const s=r(6902);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},1100:(e,t,r)=>{const s=r(8880);e.exports=(e,t)=>e.sort(((e,r)=>s(e,r,t)))},6397:(e,t,r)=>{const s=r(3959);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},1249:(e,t,r)=>{const s=r(5765);e.exports={re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r(3295).SEMVER_SPEC_VERSION,SemVer:r(6376),compareIdentifiers:r(6742).compareIdentifiers,rcompareIdentifiers:r(6742).rcompareIdentifiers,parse:r(3959),valid:r(6397),clean:r(3507),inc:r(253),diff:r(2378),major:r(8679),minor:r(7789),patch:r(2358),prerelease:r(7559),compare:r(6269),rcompare:r(9795),compareLoose:r(7880),compareBuild:r(8880),sort:r(1100),rsort:r(3657),gt:r(1312),lt:r(1544),eq:r(8718),neq:r(1194),gte:r(5903),lte:r(2056),cmp:r(7539),coerce:r(9038),Comparator:r(2257),Range:r(6902),satisfies:r(5712),toComparators:r(1042),maxSatisfying:r(5775),minSatisfying:r(1657),minVersion:r(5316),validRange:r(9042),outside:r(6826),gtr:r(7606),ltr:r(32),intersects:r(2937),simplifyRange:r(7908),subset:r(799)}},3295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},4225:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},6742:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const s=t.test(e),n=t.test(r);return s&&n&&(e=+e,r=+r),e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},2893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},5765:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s}=r(3295),n=r(4225),o=(t=e.exports={}).re=[],a=t.src=[],i=t.t={};let c=0;const l=(e,t,r)=>{const s=c++;n(s,t),i[e]=s,a[s]=t,o[s]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[i.NUMERICIDENTIFIER]}|${a[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[i.NUMERICIDENTIFIERLOOSE]}|${a[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${a[i.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[i.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?`),l("FULL",`^${a[i.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${a[i.BUILD]}?`),l("LOOSE",`^${a[i.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${a[i.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${a[i.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${a[i.PRERELEASELOOSE]})?${a[i.BUILD]}?)?)?`),l("XRANGE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),l("COERCERTL",a[i.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[i.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},7606:(e,t,r)=>{const s=r(6826);e.exports=(e,t,r)=>s(e,t,">",r)},2937:(e,t,r)=>{const s=r(6902);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t))},32:(e,t,r)=>{const s=r(6826);e.exports=(e,t,r)=>s(e,t,"<",r)},5775:(e,t,r)=>{const s=r(6376),n=r(6902);e.exports=(e,t,r)=>{let o=null,a=null,i=null;try{i=new n(t,r)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new s(o,r)))})),o}},1657:(e,t,r)=>{const s=r(6376),n=r(6902);e.exports=(e,t,r)=>{let o=null,a=null,i=null;try{i=new n(t,r)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new s(o,r)))})),o}},5316:(e,t,r)=>{const s=r(6376),n=r(6902),o=r(1312);e.exports=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let a=null;n.forEach((e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},6826:(e,t,r)=>{const s=r(6376),n=r(2257),{ANY:o}=n,a=r(6902),i=r(5712),c=r(1312),l=r(1544),u=r(2056),d=r(5903);e.exports=(e,t,r,p)=>{let h,f,m,y,g;switch(e=new s(e,p),t=new a(t,p),r){case">":h=c,f=u,m=l,y=">",g=">=";break;case"<":h=l,f=d,m=c,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let a=null,i=null;if(s.forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),a=a||e,i=i||e,h(e.semver,a.semver,p)?a=e:m(e.semver,i.semver,p)&&(i=e)})),a.operator===y||a.operator===g)return!1;if((!i.operator||i.operator===y)&&f(e,i.semver))return!1;if(i.operator===g&&m(e,i.semver))return!1}return!0}},7908:(e,t,r)=>{const s=r(5712),n=r(6269);e.exports=(e,t,r)=>{const o=[];let a=null,i=null;const c=e.sort(((e,t)=>n(e,t,r)));for(const e of c)s(e,t,r)?(i=e,a||(a=e)):(i&&o.push([a,i]),i=null,a=null);a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},799:(e,t,r)=>{const s=r(6902),{ANY:n}=r(2257),o=r(5712),a=r(6269),i=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n)return 1===t.length&&t[0].semver===n;const s=new Set;let i,u,d,p,h,f,m;for(const t of e)">"===t.operator||">="===t.operator?i=c(i,t,r):"<"===t.operator||"<="===t.operator?u=l(u,t,r):s.add(t.semver);if(s.size>1)return null;if(i&&u){if(d=a(i.semver,u.semver,r),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==u.operator))return null}for(const e of s){if(i&&!o(e,String(i),r))return null;if(u&&!o(e,String(u),r))return null;for(const s of t)if(!o(e,String(s),r))return!1;return!0}for(const e of t){if(m=m||">"===e.operator||">="===e.operator,f=f||"<"===e.operator||"<="===e.operator,i)if(">"===e.operator||">="===e.operator){if(p=c(i,e,r),p===e&&p!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(e),r))return!1;if(u)if("<"===e.operator||"<="===e.operator){if(h=l(u,e,r),h===e&&h!==u)return!1}else if("<="===u.operator&&!o(u.semver,String(e),r))return!1;if(!e.operator&&(u||i)&&0!==d)return!1}return!(i&&f&&!u&&0!==d||u&&m&&!i&&0!==d)},c=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=i(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},1042:(e,t,r)=>{const s=r(6902);e.exports=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},9042:(e,t,r)=>{const s=r(6902);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var s=t.length-1,n=1;n<s;++n)t[n]=t[n].slice(1,-1);return t[s]=t[s].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function s(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function n(e){return e.toUpperCase()}function o(e){var s="[A-Za-z]",n="[0-9]",o=t(n,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",i),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(s,n,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),d=r(s+t(s,n,"[\\+\\-\\.]")+"*"),p=r(r(a+"|"+t(u,i,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4][0-9]")+"|"+r("1[0-9][0-9]")+"|"+r("[1-9][0-9]")+"|"+n),r(r("25[0-5]")+"|"+r("2[0-4][0-9]")+"|"+r("1[0-9][0-9]")+"|"+r("0?[1-9][0-9]")+"|0?0?"+n)),f=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(o+"{1,4}"),y=r(r(m+"\\:"+m)+"|"+f),g=r(r(m+"\\:")+"{6}"+y),v=r("\\:\\:"+r(m+"\\:")+"{5}"+y),$=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+y),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+y),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+y),_=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+y),b=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+y),S=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),N=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),x=r([g,v,$,E,w,_,b,S,N].join("|")),P=r(r(u+"|"+a)+"+"),O=(r(x+"\\%25"+P),r(x+r("\\%25|\\%(?!"+o+"{2})")+P)),R=r("[vV]"+o+"+\\."+t(u,i,"[\\:]")+"+"),k=r("\\["+r(O+"|"+x+"|"+R)+"\\]"),I=r(r(a+"|"+t(u,i))+"*"),C=r(k+"|"+f+"(?!"+I+")|"+I),T=r("[0-9]*"),A=r(r(p+"@")+"?"+C+r("\\:"+T)+"?"),j=r(a+"|"+t(u,i,"[\\:\\@]")),D=r(j+"*"),M=r(j+"+"),L=r(r(a+"|"+t(u,i,"[\\@]"))+"+"),F=r(r("\\/"+D)+"*"),V=r("\\/"+r(M+F)+"?"),U=r(L+F),G=r(M+F),J="(?!"+j+")",q=(r(F+"|"+V+"|"+U+"|"+G+"|"+J),r(r(j+"|"+t("[\\/\\?]",l))+"*")),z=r(r(j+"|[\\/\\?]")+"*"),K=r(r("\\/\\/"+A+F)+"|"+V+"|"+G+"|"+J),H=r(d+"\\:"+K+r("\\?"+q)+"?"+r("\\#"+z)+"?"),X=r(r("\\/\\/"+A+F)+"|"+V+"|"+U+"|"+J),B=r(X+r("\\?"+q)+"?"+r("\\#"+z)+"?");return r(H+"|"+B),r(d+"\\:"+K+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+p+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+F+"|"+V+"|"+G+"|"+J+")"),r("\\?("+q+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+F+"|"+V+"|"+U+"|"+J+")"),r("\\?("+q+")"),r("\\#("+z+")"),r(r("\\/\\/("+r("("+p+")@")+"?("+C+")"+r("\\:("+T+")")+"?)")+"?("+F+"|"+V+"|"+G+"|"+J+")"),r("\\?("+q+")"),r("\\#("+z+")"),r("("+p+")@"),r("\\:("+T+")"),{NOT_SCHEME:new RegExp(t("[^]",s,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,i),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,i),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,i),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,i),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,i,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,i),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+x+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+P+")")+"?\\]?$")}}var a=o(!1),i=o(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],s=!0,n=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(s=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);s=!0);}catch(e){n=!0,o=e}finally{try{!s&&i.return&&i.return()}finally{if(n)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,u=36,d=/^xn--/,p=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(f[e])}function v(e,t){var r=e.split("@"),s="";return r.length>1&&(s=r[0]+"@",e=r[1]),s+function(e,t){for(var r=[],s=e.length;s--;)r[s]=t(e[s]);return r}((e=e.replace(h,".")).split("."),t).join(".")}function $(e){for(var t=[],r=0,s=e.length;r<s;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<s){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),r--)}else t.push(n)}return t}var E=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,r){var s=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;s+=u)e=m(e/35);return m(s+36*e/(e+38))},_=function(e){var t,r=[],s=e.length,n=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(var c=0;c<i;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var d=i>0?i+1:0;d<s;){for(var p=n,h=1,f=u;;f+=u){d>=s&&g("invalid-input");var y=(t=e.charCodeAt(d++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(y>=u||y>m((l-n)/h))&&g("overflow"),n+=y*h;var v=f<=a?1:f>=a+26?26:f-a;if(y<v)break;var $=u-v;h>m(l/$)&&g("overflow"),h*=$}var E=r.length+1;a=w(n-p,E,0==p),m(n/E)>l-o&&g("overflow"),o+=m(n/E),n%=E,r.splice(n++,0,o)}return String.fromCodePoint.apply(String,r)},b=function(e){var t=[],r=(e=$(e)).length,s=128,n=0,o=72,a=!0,i=!1,c=void 0;try{for(var d,p=e[Symbol.iterator]();!(a=(d=p.next()).done);a=!0){var h=d.value;h<128&&t.push(y(h))}}catch(e){i=!0,c=e}finally{try{!a&&p.return&&p.return()}finally{if(i)throw c}}var f=t.length,v=f;for(f&&t.push("-");v<r;){var _=l,b=!0,S=!1,N=void 0;try{for(var x,P=e[Symbol.iterator]();!(b=(x=P.next()).done);b=!0){var O=x.value;O>=s&&O<_&&(_=O)}}catch(e){S=!0,N=e}finally{try{!b&&P.return&&P.return()}finally{if(S)throw N}}var R=v+1;_-s>m((l-n)/R)&&g("overflow"),n+=(_-s)*R,s=_;var k=!0,I=!1,C=void 0;try{for(var T,A=e[Symbol.iterator]();!(k=(T=A.next()).done);k=!0){var j=T.value;if(j<s&&++n>l&&g("overflow"),j==s){for(var D=n,M=u;;M+=u){var L=M<=o?1:M>=o+26?26:M-o;if(D<L)break;var F=D-L,V=u-L;t.push(y(E(L+F%V,0))),D=m(F/V)}t.push(y(E(D,0))),o=w(n,R,v==f),n=0,++v}}}catch(e){I=!0,C=e}finally{try{!k&&A.return&&A.return()}finally{if(I)throw C}}++n,++s}return t.join("")},S=function(e){return v(e,(function(e){return p.test(e)?"xn--"+b(e):e}))},N=function(e){return v(e,(function(e){return d.test(e)?_(e.slice(4).toLowerCase()):e}))},x={};function P(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function O(e){for(var t="",r=0,s=e.length;r<s;){var n=parseInt(e.substr(r+1,2),16);if(n<128)t+=String.fromCharCode(n),r+=3;else if(n>=194&&n<224){if(s-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&n)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(n>=224){if(s-r>=9){var a=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function R(e,t){function r(e){var r=O(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,P).replace(t.PCT_ENCODED,n)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,P).replace(t.PCT_ENCODED,n)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,P).replace(t.PCT_ENCODED,n)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,P).replace(t.PCT_ENCODED,n)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,P).replace(t.PCT_ENCODED,n)),e}function k(e){return e.replace(/^0*(.*)/,"$1")||"0"}function I(e,t){var r=e.match(t.IPV4ADDRESS)||[],s=c(r,2)[1];return s?s.split(".").map(k).join("."):e}function C(e,t){var r=e.match(t.IPV6ADDRESS)||[],s=c(r,3),n=s[1],o=s[2];if(n){for(var a=n.toLowerCase().split("::").reverse(),i=c(a,2),l=i[0],u=i[1],d=u?u.split(":").map(k):[],p=l.split(":").map(k),h=t.IPV4ADDRESS.test(p[p.length-1]),f=h?7:8,m=p.length-f,y=Array(f),g=0;g<f;++g)y[g]=d[g]||p[m+g]||"";h&&(y[f-1]=I(y[f-1],t));var v=y.reduce((function(e,t,r){if(!t||"0"===t){var s=e[e.length-1];s&&s.index+s.length===r?s.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],$=void 0;if(v&&v.length>1){var E=y.slice(0,v.index),w=y.slice(v.index+v.length);$=E.join(":")+"::"+w.join(":")}else $=y.join(":");return o&&($+="%"+o),$}return e}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,A=void 0==="".match(/(){0}/)[1];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},s=!1!==t.iri?i:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var n=e.match(T);if(n){A?(r.scheme=n[1],r.userinfo=n[3],r.host=n[4],r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=n[7],r.fragment=n[8],isNaN(r.port)&&(r.port=n[5])):(r.scheme=n[1]||void 0,r.userinfo=-1!==e.indexOf("@")?n[3]:void 0,r.host=-1!==e.indexOf("//")?n[4]:void 0,r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=-1!==e.indexOf("?")?n[7]:void 0,r.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),r.host&&(r.host=C(I(r.host,s),s)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=x[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)R(r,s);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=S(r.host.replace(s.PCT_ENCODED,O).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}R(r,a)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function D(e,t){var r=!1!==t.iri?i:a,s=[];return void 0!==e.userinfo&&(s.push(e.userinfo),s.push("@")),void 0!==e.host&&s.push(C(I(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(s.push(":"),s.push(String(e.port))),s.length?s.join(""):void 0}var M=/^\.\.?\//,L=/^\/\.(\/|$)/,F=/^\/\.\.(\/|$)/,V=/^\/?(?:.|\n)*?(?=\/|$)/;function U(e){for(var t=[];e.length;)if(e.match(M))e=e.replace(M,"");else if(e.match(L))e=e.replace(L,"/");else if(e.match(F))e=e.replace(F,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(V);if(!r)throw new Error("Unexpected dot segment condition");var s=r[0];e=e.slice(s.length),t.push(s)}return t.join("")}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?i:a,s=[],n=x[(t.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||n&&n.domainHost)try{e.host=t.iri?N(e.host):S(e.host.replace(r.PCT_ENCODED,O).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}R(e,r),"suffix"!==t.reference&&e.scheme&&(s.push(e.scheme),s.push(":"));var o=D(e,t);if(void 0!==o&&("suffix"!==t.reference&&s.push("//"),s.push(o),e.path&&"/"!==e.path.charAt(0)&&s.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||n&&n.absolutePath||(c=U(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),s.push(c)}return void 0!==e.query&&(s.push("?"),s.push(e.query)),void 0!==e.fragment&&(s.push("#"),s.push(e.fragment)),s.join("")}function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={};return arguments[3]||(e=j(G(e,r),r),t=j(G(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(s.scheme=t.scheme,s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=U(t.path||""),s.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=U(t.path||""),s.query=t.query):(t.path?("/"===t.path.charAt(0)?s.path=U(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:s.path=t.path:s.path="/"+t.path,s.path=U(s.path)),s.query=t.query):(s.path=e.path,void 0!==t.query?s.query=t.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=t.fragment,s}function q(e,t){return e&&e.toString().replace(t&&t.iri?i.PCT_ENCODED:a.PCT_ENCODED,O)}var z={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},K={scheme:"https",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize};function H(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var X={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=H(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(H(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),s=c(r,2),n=s[0],o=s[1];e.path=n&&"/"!==n?n:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},B={scheme:"wss",domainHost:X.domainHost,parse:X.parse,serialize:X.serialize},W={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Z="[0-9A-Fa-f]",Q=r(r("%[EFef][0-9A-Fa-f]%"+Z+Z+"%"+Z+Z)+"|"+r("%[89A-Fa-f][0-9A-Fa-f]%"+Z+Z)+"|"+r("%"+Z+Z)),ee=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(Y,"g"),re=new RegExp(Q,"g"),se=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ee),"g"),ne=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),oe=ne;function ae(e){var t=O(e);return t.match(te)?t:e}var ie={scheme:"mailto",parse:function(e,t){var r=e,s=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var n=!1,o={},a=r.query.split("&"),i=0,c=a.length;i<c;++i){var l=a[i].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),d=0,p=u.length;d<p;++d)s.push(u[d]);break;case"subject":r.subject=q(l[1],t);break;case"body":r.body=q(l[1],t);break;default:n=!0,o[q(l[0],t)]=q(l[1],t)}}n&&(r.headers=o)}r.query=void 0;for(var h=0,f=s.length;h<f;++h){var m=s[h].split("@");if(m[0]=q(m[0]),t.unicodeSupport)m[1]=q(m[1],t).toLowerCase();else try{m[1]=S(q(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}s[h]=m.join("@")}return r},serialize:function(e,t){var r,s=e,o=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(o){for(var a=0,i=o.length;a<i;++a){var c=String(o[a]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(re,ae).replace(re,n).replace(se,P),d=c.slice(l+1);try{d=t.iri?N(d):S(q(d,t).toLowerCase())}catch(e){s.error=s.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[a]=u+"@"+d}s.path=o.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var h=[];for(var f in p)p[f]!==W[f]&&h.push(f.replace(re,ae).replace(re,n).replace(ne,P)+"="+p[f].replace(re,ae).replace(re,n).replace(oe,P));return h.length&&(s.query=h.join("&")),s}},ce=/^([^\:]+)\:(.*)/,le={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ce),s=e;if(r){var n=t.scheme||s.scheme||"urn",o=r[1].toLowerCase(),a=r[2],i=n+":"+(t.nid||o),c=x[i];s.nid=o,s.nss=a,s.path=void 0,c&&(s=c.parse(s,t))}else s.error=s.error||"URN can not be parsed.";return s},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",s=e.nid,n=r+":"+(t.nid||s),o=x[n];o&&(e=o.serialize(e,t));var a=e,i=e.nss;return a.path=(s||t.nid)+":"+i,a}},ue=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,de={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(ue)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};x[z.scheme]=z,x[K.scheme]=K,x[X.scheme]=X,x[B.scheme]=B,x[ie.scheme]=ie,x[le.scheme]=le,x[de.scheme]=de,e.SCHEMES=x,e.pctEncChar=P,e.pctDecChars=O,e.parse=j,e.removeDotSegments=U,e.serialize=G,e.resolveComponents=J,e.resolve=function(e,t,r){var s=function(e,t){var r=e;if(t)for(var s in t)r[s]=t[s];return r}({scheme:"null"},r);return G(J(j(e,s),j(t,s),s,!0),s)},e.normalize=function(e,t){return"string"==typeof e?e=G(j(e,t),t):"object"===s(e)&&(e=j(G(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=G(j(e,r),r):"object"===s(e)&&(e=G(e,r)),"string"==typeof t?t=G(j(t,r),r):"object"===s(t)&&(t=G(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?i.ESCAPE:a.ESCAPE,P)},e.unescapeComponent=q,Object.defineProperty(e,"__esModule",{value:!0})}(t)},9602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:(e,t,r)=>{"use strict";function s(e){var t=this;if(t instanceof s||(t=new s),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function n(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,s){if(!(this instanceof a))return new a(e,t,r,s);this.list=s,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=s,s.Node=a,s.create=s,s.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},s.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},s.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},s.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},s.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},s.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},s.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},s.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,s=0;null!==r;s++)e.call(t,r.value,s,this),r=r.next},s.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,s=this.length-1;null!==r;s--)e.call(t,r.value,s,this),r=r.prev},s.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},s.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},s.prototype.map=function(e,t){t=t||this;for(var r=new s,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},s.prototype.mapReverse=function(e,t){t=t||this;for(var r=new s,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},s.prototype.reduce=function(e,t){var r,s=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");s=this.head.next,r=this.head.value}for(var n=0;null!==s;n++)r=e(r,s.value,n),s=s.next;return r},s.prototype.reduceReverse=function(e,t){var r,s=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");s=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==s;n--)r=e(r,s.value,n),s=s.prev;return r},s.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},s.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},s.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new s;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(;null!==o&&n<t;n++,o=o.next)r.push(o.value);return r},s.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new s;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,o=this.tail;null!==o&&n>t;n--)o=o.prev;for(;null!==o&&n>e;n--,o=o.prev)r.push(o.value);return r},s.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var s=0,n=this.head;null!==n&&s<e;s++)n=n.next;var o,i,c,l,u=[];for(s=0;n&&s<t;s++)u.push(n.value),n=this.removeNode(n);for(null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev),s=0;s<r.length;s++)o=this,i=n,c=r[s],void 0,null===(l=i===o.head?new a(c,null,i,o):new a(c,i,i.next,o)).next&&(o.tail=l),null===l.prev&&(o.head=l),o.length++,n=l;return u},s.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var s=r.prev;r.prev=r.next,r.next=s}return this.head=t,this.tail=e,this};try{r(9602)(s)}catch(e){}},895:(e,t,r)=>{const s=r(7115),{usesFramework:n}=r(567),{getDevCommands:o}=r(1881),{FRAMEWORKS:a}=r(1198),{getPackageJsonContent:i}=r(1304),{getPlugins:c}=r(34),{getRunScriptCommand:l}=r(3887),u=e=>{const{pathExists:t,packageJson:r,packageJsonPath:s=".",nodeVersion:n}=e;return{pathExists:t,packageJson:r,packageJsonPath:s,nodeVersion:n}},d=function(e){const t=a.find((({name:t})=>t===e));if(void 0===t){const t=a.map((e=>p(e))).join(", ");throw new Error(`Invalid framework "${e}". It should be one of: ${t}`)}return t},p=function({name:e}){return e},h=async function({pathExists:e,packageJson:t,packageJsonPath:r}){const{npmDependencies:s,scripts:n}=await i({packageJson:t});return{npmDependencies:s,scripts:n,runScriptCommand:await l({pathExists:e,packageJsonPath:r})}},f=function({name:e,category:t,dev:{command:r,port:s},build:{command:n,directory:a},env:i,plugins:l},{scripts:u,runScriptCommand:d,nodeVersion:p}){return{name:e,category:t,dev:{commands:o({frameworkDevCommand:r,scripts:u,runScriptCommand:d}),port:s},build:{commands:[n],directory:a},env:i,plugins:c(l,{nodeVersion:p})}};e.exports={listFrameworks:async function(e){const{pathExists:t,packageJson:r,packageJsonPath:o,nodeVersion:i}=u(e),{npmDependencies:c,scripts:l,runScriptCommand:d}=await h({pathExists:t,packageJson:r,packageJsonPath:o});return(await s(a,(e=>n(e,{pathExists:t,npmDependencies:c})))).map((e=>f(e,{scripts:l,runScriptCommand:d,nodeVersion:i})))},hasFramework:async function(e,t){const r=d(e),{pathExists:s,packageJson:o,packageJsonPath:a}=u(t),{npmDependencies:i}=await h({pathExists:s,packageJson:o,packageJsonPath:a});return await n(r,{pathExists:s,npmDependencies:i})},getFramework:async function(e,t){const r=d(e),{pathExists:s,packageJson:n,packageJsonPath:o,nodeVersion:a}=u(t),{scripts:i,runScriptCommand:c}=await h({pathExists:s,packageJson:n,packageJsonPath:o});return f(r,{scripts:i,runScriptCommand:c,nodeVersion:a})}}},567:(e,t,r)=>{const s=r(1885);e.exports={usesFramework:async function({detect:{npmDependencies:e,excludedNpmDependencies:t,configFiles:r}},{pathExists:n,npmDependencies:o}){return function(e,t){return 0===e.length||e.some((e=>t.includes(e)))}(e,o)&&function(e,t){return 0===e.length||e.every((e=>!t.includes(e)))}(t,o)&&await async function(e,t){return 0===e.length||await(async(e,t)=>await s(e,(e=>t(e))))(e,t)}(r,n)}}},1881:e=>{const t=e=>-1===e?Number.MAX_SAFE_INTEGER:e,r=(e,r)=>{const s=i.findIndex((t=>a(e,t))),n=i.findIndex((e=>a(r,e)));return t(s)-t(n)},s=function(e,t){return Object.entries(e).filter((([,e])=>e.includes(t))).map((e=>n(e))).sort(r)},n=function([e]){return e},o=function(e){return i.some((t=>a(e,t)))},a=function(e,t){return e===t||e.endsWith(`:${t}`)},i=["serve","dev","develop","start","run","build","web"];e.exports={getDevCommands:function({frameworkDevCommand:e,scripts:t,runScriptCommand:n}){if(void 0===e)return[];const a=function(e,t){const n=s(e,t);return 0!==n.length?n:Object.keys(e).filter((e=>o(e))).sort(r)}(t,e).map((e=>`${n} ${e}`));return 0!==a.length?a:[e]}}},1743:e=>{"use strict";e.exports=JSON.parse('{"name":"angular","category":"frontend_framework","detect":{"npmDependencies":["@angular/cli"],"excludedNpmDependencies":[],"configFiles":["angular.json"]},"dev":{"command":"ng serve","port":4200},"build":{"command":"ng build","directory":"dist"},"env":{},"plugins":[]}')},4808:e=>{"use strict";e.exports=JSON.parse('{"name":"assemble","category":"static_site_generator","detect":{"npmDependencies":["assemble"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{},"build":{"command":"grunt build","directory":"dist"},"env":{},"plugins":[]}')},5777:e=>{"use strict";e.exports=JSON.parse('{"name":"brunch","category":"build_tool","detect":{"npmDependencies":["brunch"],"excludedNpmDependencies":[],"configFiles":["brunch-config.js"]},"dev":{"command":"brunch watch --server","port":3333},"build":{"command":"brunch build","directory":"public"},"env":{},"plugins":[]}')},6764:e=>{"use strict";e.exports=JSON.parse('{"name":"create-react-app","category":"frontend_framework","detect":{"npmDependencies":["react-scripts"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"react-scripts start","port":3000},"build":{"command":"react-scripts build","directory":"build"},"env":{"BROWSER":"none","PORT":"3000"},"plugins":[]}')},6289:e=>{"use strict";e.exports=JSON.parse('{"name":"docpad","category":"static_site_generator","detect":{"npmDependencies":["docpad"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"docpad run","port":9778},"build":{"command":"docpad generate","directory":"out"},"env":{},"plugins":[]}')},3496:e=>{"use strict";e.exports=JSON.parse('{"name":"docusaurus-v2","category":"static_site_generator","detect":{"npmDependencies":["@docusaurus/core"],"excludedNpmDependencies":[],"configFiles":["docusaurus.config.js"]},"dev":{"command":"docusaurus start","port":3000},"build":{"command":"docusaurus build","directory":"build"},"env":{"BROWSER":"none"},"plugins":[]}')},7044:e=>{"use strict";e.exports=JSON.parse('{"name":"docusaurus","category":"static_site_generator","detect":{"npmDependencies":["docusaurus"],"excludedNpmDependencies":[],"configFiles":["siteConfig.js"]},"dev":{"command":"docusaurus-start","port":3000},"build":{"command":"docusaurus-build","directory":"build/<project-name>"},"env":{"BROWSER":"none"},"plugins":[]}')},4333:e=>{"use strict";e.exports=JSON.parse('{"name":"eleventy","category":"static_site_generator","detect":{"npmDependencies":["@11ty/eleventy"],"excludedNpmDependencies":[],"configFiles":[".eleventy.js"]},"dev":{"command":"eleventy --serve","port":8080},"build":{"command":"eleventy","directory":"_site"},"env":{},"plugins":[]}')},5789:e=>{"use strict";e.exports=JSON.parse('{"name":"ember","category":"frontend_framework","detect":{"npmDependencies":["ember-cli"],"excludedNpmDependencies":[],"configFiles":["ember-cli-build.js"]},"dev":{"command":"ember serve","port":4200},"build":{"command":"ember build","directory":"dist"},"env":{},"plugins":[]}')},4575:e=>{"use strict";e.exports=JSON.parse('{"name":"expo","category":"frontend_framework","detect":{"npmDependencies":["expo"],"excludedNpmDependencies":[],"configFiles":["app.json"]},"dev":{"command":"expo start --web","port":19006},"build":{"command":"expo build:web","directory":"web-build"},"env":{},"plugins":[]}')},5473:e=>{"use strict";e.exports=JSON.parse('{"name":"gatsby","category":"static_site_generator","detect":{"npmDependencies":["gatsby"],"excludedNpmDependencies":[],"configFiles":["gatsby-config.js"]},"dev":{"command":"gatsby develop","port":8000},"build":{"command":"gatsby build","directory":"public"},"env":{"GATSBY_LOGGER":"yurnalist"},"plugins":[]}')},1595:e=>{"use strict";e.exports=JSON.parse('{"name":"gridsome","category":"static_site_generator","detect":{"npmDependencies":["gridsome"],"excludedNpmDependencies":[],"configFiles":["gridsome.config.js"]},"dev":{"command":"gridsome develop","port":8080},"build":{"command":"gridsome build","directory":"dist"},"env":{},"plugins":[]}')},7919:e=>{"use strict";e.exports=JSON.parse('{"name":"grunt","category":"build_tool","detect":{"npmDependencies":["grunt"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{},"build":{"command":"grunt build","directory":"dist"},"env":{},"plugins":[]}')},4025:e=>{"use strict";e.exports=JSON.parse('{"name":"gulp","category":"build_tool","detect":{"npmDependencies":["gulp"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{},"build":{"command":"gulp build","directory":"dist"},"env":{},"plugins":[]}')},4380:e=>{"use strict";e.exports=JSON.parse('{"name":"harp","category":"static_site_generator","detect":{"npmDependencies":["harp"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"harp server","port":9000},"build":{"command":"harp compile","directory":"www"},"env":{},"plugins":[]}')},3173:e=>{"use strict";e.exports=JSON.parse('{"name":"hexo","category":"static_site_generator","detect":{"npmDependencies":["hexo"],"excludedNpmDependencies":[],"configFiles":["_config.yml"]},"dev":{"command":"hexo server","port":4000},"build":{"command":"hexo generate","directory":"public"},"env":{},"plugins":[]}')},8527:e=>{"use strict";e.exports=JSON.parse('{"name":"hugo","category":"static_site_generator","detect":{"npmDependencies":[],"excludedNpmDependencies":[],"configFiles":["config.toml","config.yaml"]},"dev":{"command":"hugo server -w","port":1313},"build":{"command":"hugo","directory":"public"},"env":{},"plugins":[]}')},7755:e=>{"use strict";e.exports=JSON.parse('{"name":"jekyll","category":"static_site_generator","detect":{"npmDependencies":[],"excludedNpmDependencies":[],"configFiles":["_config.yml"]},"dev":{"command":"bundle exec jekyll serve -w","port":4000},"build":{"command":"bundle exec jekyll build","directory":"_site"},"env":{},"plugins":[]}')},1198:(e,t,r)=>{const s=[r(7044),r(3496),r(4333),r(5473),r(1595),r(3173),r(8527),r(7755),r(436),r(2587),r(853),r(7481),r(2323),r(5331),r(1454),r(4808),r(6289),r(4380),r(8016),r(1147),r(3529),r(1743),r(6764),r(5789),r(4575),r(8354),r(7025),r(4648),r(3823),r(7920),r(5777),r(2863),r(7919),r(4025)];e.exports={FRAMEWORKS:s}},8016:e=>{"use strict";e.exports=JSON.parse('{"name":"metalsmith","category":"static_site_generator","detect":{"npmDependencies":["metalsmith"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{},"build":{"command":"metalsmith","directory":"build"},"env":{},"plugins":[]}')},436:e=>{"use strict";e.exports=JSON.parse('{"name":"middleman","category":"static_site_generator","detect":{"npmDependencies":[],"excludedNpmDependencies":[],"configFiles":["config.rb"]},"dev":{"command":"bundle exec middleman server","port":4567},"build":{"command":"bundle exec middleman build","directory":"build"},"env":{},"plugins":[]}')},2587:e=>{"use strict";e.exports=JSON.parse('{"name":"next","category":"static_site_generator","detect":{"npmDependencies":["next"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"next","port":3000},"build":{"command":"next build","directory":"out"},"env":{},"plugins":[{"packageName":"@netlify/plugin-nextjs","condition":{"minNodeVersion":"10.13.0"}}]}')},853:e=>{"use strict";e.exports=JSON.parse('{"name":"nuxt","category":"static_site_generator","detect":{"npmDependencies":["nuxt"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"nuxt","port":3000},"build":{"command":"nuxt generate","directory":"dist"},"env":{},"plugins":[]}')},2863:e=>{"use strict";e.exports=JSON.parse('{"name":"parcel","category":"build_tool","detect":{"npmDependencies":["parcel-bundler","parcel"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"parcel","port":1234},"build":{"command":"parcel build","directory":"dist"},"env":{},"plugins":[]}')},7481:e=>{"use strict";e.exports=JSON.parse('{"name":"phenomic","category":"static_site_generator","detect":{"npmDependencies":["@phenomic/core"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"phenomic start","port":3333},"build":{"command":"phenomic build","directory":"public"},"env":{},"plugins":[]}')},7025:e=>{"use strict";e.exports=JSON.parse('{"name":"quasar-v0.17","category":"frontend_framework","detect":{"npmDependencies":["quasar-cli"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"quasar dev -p 8080","port":8080},"build":{"command":"quasar build","directory":".quasar"},"env":{},"plugins":[]}')},8354:e=>{"use strict";e.exports=JSON.parse('{"name":"quasar","category":"frontend_framework","detect":{"npmDependencies":["@quasar/app"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"quasar dev -p 8081","port":8081},"build":{"command":"quasar build","directory":"dist/spa"},"env":{},"plugins":[]}')},2323:e=>{"use strict";e.exports=JSON.parse('{"name":"react-static","category":"static_site_generator","detect":{"npmDependencies":["react-static"],"excludedNpmDependencies":[],"configFiles":["static.config.js"]},"dev":{"command":"react-static start","port":3000},"build":{"command":"react-static build","directory":"dist"},"env":{},"plugins":[]}')},1147:e=>{"use strict";e.exports=JSON.parse('{"name":"roots","category":"static_site_generator","detect":{"npmDependencies":["roots"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"roots watch","port":1111},"build":{"command":"roots compile","directory":"public"},"env":{},"plugins":[]}')},4648:e=>{"use strict";e.exports=JSON.parse('{"name":"sapper","category":"frontend_framework","detect":{"npmDependencies":["sapper"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"sapper dev","port":3000},"build":{"command":"sapper export","directory":"__sapper__/export"},"env":{},"plugins":[]}')},5331:e=>{"use strict";e.exports=JSON.parse('{"name":"stencil","category":"static_site_generator","detect":{"npmDependencies":["@stencil/core"],"excludedNpmDependencies":[],"configFiles":["stencil.config.ts"]},"dev":{"command":"stencil build --dev --watch --serve","port":3333},"build":{"command":"stencil build","directory":"www"},"env":{"BROWSER":"none","PORT":"3000"},"plugins":[]}')},3823:e=>{"use strict";e.exports=JSON.parse('{"name":"svelte","category":"frontend_framework","detect":{"npmDependencies":["svelte"],"excludedNpmDependencies":["sapper"],"configFiles":[]},"dev":{"command":"npm run dev","port":5000},"build":{"command":"npm run build","directory":"public"},"env":{},"plugins":[]}')},7920:e=>{"use strict";e.exports=JSON.parse('{"name":"vue","category":"frontend_framework","detect":{"npmDependencies":["@vue/cli-service"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"vue-cli-service serve","port":8080},"build":{"command":"vue-cli-service build","directory":"dist"},"env":{},"plugins":[]}')},1454:e=>{"use strict";e.exports=JSON.parse('{"name":"vuepress","category":"static_site_generator","detect":{"npmDependencies":["vuepress"],"excludedNpmDependencies":[],"configFiles":[]},"dev":{"command":"vuepress dev","port":8080},"build":{"command":"vuepress build","directory":".vuepress/dist"},"env":{},"plugins":[]}')},3529:e=>{"use strict";e.exports=JSON.parse('{"name":"wintersmith","category":"static_site_generator","detect":{"npmDependencies":["wintersmith"],"excludedNpmDependencies":[],"configFiles":["config.json"]},"dev":{"command":"wintersmith preview","port":8080},"build":{"command":"wintersmith build","directory":"build"},"env":{},"plugins":[]}')},1304:(e,t,r)=>{const s=r(2806),n=r(3310),o=function({dependencies:e,devDependencies:t}){return[...a(e),...a(t)]},a=function(e){return n(e)?Object.keys(e):[]},i=function({scripts:e}){return n(e)?s(e,c):{}},c=function(e,t){return"string"==typeof t};e.exports={getPackageJsonContent:function({packageJson:e}){return void 0===e?{npmDependencies:[],scripts:{}}:{npmDependencies:o(e),scripts:i(e)}}}},34:(e,t,r)=>{const s=r(1581).ZP,n=r(1249),o={keyword:"minNodeVersion",validate:(e,{nodeVersion:t})=>n.valid(e)&&n.valid(t)&&n.gte(t,e)},a=new s({});a.addKeyword(o),e.exports={getPlugins:function(e,{nodeVersion:t}){return e.filter((({condition:e})=>a.validate(e,{nodeVersion:t}))).map((({packageName:e})=>e))}}},3887:(e,t,r)=>{const{dirname:s}=r(6470);e.exports={getRunScriptCommand:async function({pathExists:e,packageJsonPath:t}){return await e(`${s(t)}/yarn.lock`)?"yarn":"npm run"}}}},t={},function r(s){if(t[s])return t[s].exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,r),n.exports}(895);var e,t}));
  //# sourceMappingURL=index.js.map