next
Version:
The React Framework
1 lines • 177 kB
JavaScript
(()=>{var e={6544:(e,r,t)=>{"use strict";var a=t(9562);e.exports=defineKeywords;function defineKeywords(e,r){if(Array.isArray(r)){for(var t=0;t<r.length;t++)get(r[t])(e);return e}if(r){get(r)(e);return e}for(r in a)get(r)(e);return e}defineKeywords.get=get;function get(e){var r=a[e];if(!r)throw new Error("Unknown keyword "+e);return r}},720:(e,r,t)=>{"use strict";var a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i;var s=/t|\s/i;var i={date:compareDate,time:compareTime,"date-time":compareDateTime};var o={type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false};e.exports=function(e){var r="format"+e;return function defFunc(a){defFunc.definition={type:"string",inline:t(6549),statements:true,errors:"full",dependencies:["format"],metaSchema:{anyOf:[{type:"string"},o]}};a.addKeyword(r,defFunc.definition);a.addKeyword("formatExclusive"+e,{dependencies:["format"+e],metaSchema:{anyOf:[{type:"boolean"},o]}});extendFormats(a);return a}};function extendFormats(e){var r=e._formats;for(var t in i){var a=r[t];if(typeof a!="object"||a instanceof RegExp||!a.validate)a=r[t]={validate:a};if(!a.compare)a.compare=i[t]}}function compareDate(e,r){if(!(e&&r))return;if(e>r)return 1;if(e<r)return-1;if(e===r)return 0}function compareTime(e,r){if(!(e&&r))return;e=e.match(a);r=r.match(a);if(!(e&&r))return;e=e[1]+e[2]+e[3]+(e[4]||"");r=r[1]+r[2]+r[3]+(r[4]||"");if(e>r)return 1;if(e<r)return-1;if(e===r)return 0}function compareDateTime(e,r){if(!(e&&r))return;e=e.split(s);r=r.split(s);var t=compareDate(e[0],r[0]);if(t===undefined)return;return t||compareTime(e[1],r[1])}},3990:e=>{"use strict";e.exports={metaSchemaRef:metaSchemaRef};var r="http://json-schema.org/draft-07/schema";function metaSchemaRef(e){var t=e._opts.defaultMeta;if(typeof t=="string")return{$ref:t};if(e.getSchema(r))return{$ref:r};console.warn("meta schema not defined");return{}}},5095:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e,r){if(!e)return true;var t=Object.keys(r.properties);if(t.length==0)return true;return{required:t}},metaSchema:{type:"boolean"},dependencies:["properties"]};e.addKeyword("allRequired",defFunc.definition);return e}},3870:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{required:e};var r=e.map((function(e){return{required:[e]}}));return{anyOf:r}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("anyRequired",defFunc.definition);return e}},796:(e,r,t)=>{"use strict";var a=t(3990);e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){var r=[];for(var t in e)r.push(getSchema(t,e[t]));return{allOf:r}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:a.metaSchemaRef(e)}};e.addKeyword("deepProperties",defFunc.definition);return e};function getSchema(e,r){var t=e.split("/");var a={};var s=a;for(var i=1;i<t.length;i++){var o=t[i];var n=i==t.length-1;o=unescapeJsonPointer(o);var l=s.properties={};var u=undefined;if(/[0-9]+/.test(o)){var f=+o;u=s.items=[];while(f--)u.push({})}s=n?r:{};l[o]=s;if(u)u.push(s)}return a}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},1988:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",inline:function(e,r,t){var a="";for(var s=0;s<t.length;s++){if(s)a+=" && ";a+="("+getData(t[s],e.dataLevel)+" !== undefined)"}return a},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}};e.addKeyword("deepRequired",defFunc.definition);return e};function getData(e,r){var t="data"+(r||"");if(!e)return t;var a=t;var s=e.split("/");for(var i=1;i<s.length;i++){var o=s[i];t+=getProperty(unescapeJsonPointer(o));a+=" && "+t}return a}var r=/^[a-z$_][a-z$_0-9]*$/i;var t=/^[0-9]+$/;var a=/'|\\/g;function getProperty(e){return t.test(e)?"["+e+"]":r.test(e)?"."+e:"['"+e.replace(a,"\\$&")+"']"}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},6549:e=>{"use strict";e.exports=function generate__formatLimit(e,r,t){var a=" ";var s=e.level;var i=e.dataLevel;var o=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var f;var c="data"+(i||"");var h="valid"+s;a+="var "+h+" = undefined;";if(e.opts.format===false){a+=" "+h+" = true; ";return a}var d=e.schema.format,p=e.opts.$data&&d.$data,m="";if(p){var g=e.util.getData(d.$data,i,e.dataPathArr),y="format"+s,P="compare"+s;a+=" var "+y+" = formats["+g+"] , "+P+" = "+y+" && "+y+".compare;"}else{var y=e.formats[d];if(!(y&&y.compare)){a+=" "+h+" = true; ";return a}var P="formats"+e.util.getProperty(d)+".compare"}var b=r=="formatMaximum",E="formatExclusive"+(b?"Maximum":"Minimum"),S=e.schema[E],w=e.opts.$data&&S&&S.$data,x=b?"<":">",$="result"+s;var _=e.opts.$data&&o&&o.$data,R;if(_){a+=" var schema"+s+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ";R="schema"+s}else{R=o}if(w){var F=e.util.getData(S.$data,i,e.dataPathArr),O="exclusive"+s,D="op"+s,j="' + "+D+" + '";a+=" var schemaExcl"+s+" = "+F+"; ";F="schemaExcl"+s;a+=" if (typeof "+F+" != 'boolean' && "+F+" !== undefined) { "+h+" = false; ";var f=E;var I=I||[];I.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(f||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: '"+E+" should be boolean' "}if(e.opts.verbose){a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var k=a;a=I.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){m+="}";a+=" else { "}if(_){a+=" if ("+R+" === undefined) "+h+" = true; else if (typeof "+R+" != 'string') "+h+" = false; else { ";m+="}"}if(p){a+=" if (!"+P+") "+h+" = true; else { ";m+="}"}a+=" var "+$+" = "+P+"("+c+", ";if(_){a+=""+R}else{a+=""+e.util.toQuotedString(o)}a+=" ); if ("+$+" === undefined) "+h+" = false; var "+O+" = "+F+" === true; if ("+h+" === undefined) { "+h+" = "+O+" ? "+$+" "+x+" 0 : "+$+" "+x+"= 0; } if (!"+h+") var op"+s+" = "+O+" ? '"+x+"' : '"+x+"=';"}else{var O=S===true,j=x;if(!O)j+="=";var D="'"+j+"'";if(_){a+=" if ("+R+" === undefined) "+h+" = true; else if (typeof "+R+" != 'string') "+h+" = false; else { ";m+="}"}if(p){a+=" if (!"+P+") "+h+" = true; else { ";m+="}"}a+=" var "+$+" = "+P+"("+c+", ";if(_){a+=""+R}else{a+=""+e.util.toQuotedString(o)}a+=" ); if ("+$+" === undefined) "+h+" = false; if ("+h+" === undefined) "+h+" = "+$+" "+x;if(!O){a+="="}a+=" 0;"}a+=""+m+"if (!"+h+") { ";var f=r;var I=I||[];I.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(f||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+D+", limit: ";if(_){a+=""+R}else{a+=""+e.util.toQuotedString(o)}a+=" , exclusive: "+O+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+j+' "';if(_){a+="' + "+R+" + '"}else{a+=""+e.util.escapeQuotes(o)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(_){a+="validate.schema"+n}else{a+=""+e.util.toQuotedString(o)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var k=a;a=I.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="}";return a}},2600:e=>{"use strict";e.exports=function generate_patternRequired(e,r,t){var a=" ";var s=e.level;var i=e.dataLevel;var o=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var f="data"+(i||"");var c="valid"+s;var h="key"+s,d="idx"+s,p="patternMatched"+s,m="dataProperties"+s,g="",y=e.opts.ownProperties;a+="var "+c+" = true;";if(y){a+=" var "+m+" = undefined;"}var P=o;if(P){var b,E=-1,S=P.length-1;while(E<S){b=P[E+=1];a+=" var "+p+" = false; ";if(y){a+=" "+m+" = "+m+" || Object.keys("+f+"); for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) { var "+h+" = "+m+"["+d+"]; "}else{a+=" for (var "+h+" in "+f+") { "}a+=" "+p+" = "+e.usePattern(b)+".test("+h+"); if ("+p+") break; } ";var w=e.util.escapeQuotes(b);a+=" if (!"+p+") { "+c+" = false; var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"patternRequired"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingPattern: '"+w+"' } ";if(e.opts.messages!==false){a+=" , message: 'should have property matching pattern \\'"+w+"\\'' "}if(e.opts.verbose){a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ";if(u){g+="}";a+=" else { "}}}a+=""+g;return a}},8368:e=>{"use strict";e.exports=function generate_switch(e,r,t){var a=" ";var s=e.level;var i=e.dataLevel;var o=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var f="data"+(i||"");var c="valid"+s;var h="errs__"+s;var d=e.util.copy(e);var p="";d.level++;var m="valid"+d.level;var g="ifPassed"+e.level,y=d.baseId,P;a+="var "+g+";";var b=o;if(b){var E,S=-1,w=b.length-1;while(S<w){E=b[S+=1];if(S&&!P){a+=" if (!"+g+") { ";p+="}"}if(E.if&&(e.opts.strictKeywords?typeof E.if=="object"&&Object.keys(E.if).length>0:e.util.schemaHasRules(E.if,e.RULES.all))){a+=" var "+h+" = errors; ";var x=e.compositeRule;e.compositeRule=d.compositeRule=true;d.createErrors=false;d.schema=E.if;d.schemaPath=n+"["+S+"].if";d.errSchemaPath=l+"/"+S+"/if";a+=" "+e.validate(d)+" ";d.baseId=y;d.createErrors=true;e.compositeRule=d.compositeRule=x;a+=" "+g+" = "+m+"; if ("+g+") { ";if(typeof E.then=="boolean"){if(E.then===false){var $=$||[];$.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { caseIndex: "+S+" } ";if(e.opts.messages!==false){a+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var _=a;a=$.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+_+"]); "}else{a+=" validate.errors = ["+_+"]; return false; "}}else{a+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}a+=" var "+m+" = "+E.then+"; "}else{d.schema=E.then;d.schemaPath=n+"["+S+"].then";d.errSchemaPath=l+"/"+S+"/then";a+=" "+e.validate(d)+" ";d.baseId=y}a+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } } "}else{a+=" "+g+" = true; ";if(typeof E.then=="boolean"){if(E.then===false){var $=$||[];$.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { caseIndex: "+S+" } ";if(e.opts.messages!==false){a+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var _=a;a=$.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+_+"]); "}else{a+=" validate.errors = ["+_+"]; return false; "}}else{a+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}a+=" var "+m+" = "+E.then+"; "}else{d.schema=E.then;d.schemaPath=n+"["+S+"].then";d.errSchemaPath=l+"/"+S+"/then";a+=" "+e.validate(d)+" ";d.baseId=y}}P=E.continue}}a+=""+p+"var "+c+" = "+m+";";return a}},9740:e=>{"use strict";var r={};var t={timestamp:function(){return Date.now()},datetime:function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().slice(0,10)},time:function(){return(new Date).toISOString().slice(11)},random:function(){return Math.random()},randomint:function(e){var r=e&&e.max||2;return function(){return Math.floor(Math.random()*r)}},seq:function(e){var t=e&&e.name||"";r[t]=r[t]||0;return function(){return r[t]++}}};e.exports=function defFunc(e){defFunc.definition={compile:function(e,r,t){var a={};for(var s in e){var i=e[s];var o=getDefault(typeof i=="string"?i:i.func);a[s]=o.length?o(i.args):o}return t.opts.useDefaults&&!t.compositeRule?assignDefaults:noop;function assignDefaults(r){for(var s in e){if(r[s]===undefined||t.opts.useDefaults=="empty"&&(r[s]===null||r[s]===""))r[s]=a[s]()}return true}function noop(){return true}},DEFAULTS:t,metaSchema:{type:"object",additionalProperties:{type:["string","object"],additionalProperties:false,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}}};e.addKeyword("dynamicDefaults",defFunc.definition);return e;function getDefault(e){var r=t[e];if(r)return r;throw new Error('invalid "dynamicDefaults" keyword property value: '+e)}}},4344:(e,r,t)=>{"use strict";e.exports=t(720)("Maximum")},5064:(e,r,t)=>{"use strict";e.exports=t(720)("Minimum")},9562:(e,r,t)=>{"use strict";e.exports={instanceof:t(3714),range:t(4751),regexp:t(3463),typeof:t(690),dynamicDefaults:t(9740),allRequired:t(5095),anyRequired:t(3870),oneRequired:t(7925),prohibited:t(4301),uniqueItemProperties:t(6893),deepProperties:t(796),deepRequired:t(1988),formatMinimum:t(5064),formatMaximum:t(4344),patternRequired:t(6363),switch:t(6369),select:t(2507),transform:t(3684)}},3714:e=>{"use strict";var r={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};e.exports=function defFunc(e){if(typeof Buffer!="undefined")r.Buffer=Buffer;if(typeof Promise!="undefined")r.Promise=Promise;defFunc.definition={compile:function(e){if(typeof e=="string"){var r=getConstructor(e);return function(e){return e instanceof r}}var t=e.map(getConstructor);return function(e){for(var r=0;r<t.length;r++)if(e instanceof t[r])return true;return false}},CONSTRUCTORS:r,metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}};e.addKeyword("instanceof",defFunc.definition);return e;function getConstructor(e){var t=r[e];if(t)return t;throw new Error('invalid "instanceof" keyword value '+e)}}},7925:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{required:e};var r=e.map((function(e){return{required:[e]}}));return{oneOf:r}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("oneRequired",defFunc.definition);return e}},6363:(e,r,t)=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",inline:t(2600),statements:true,errors:"full",metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:true}};e.addKeyword("patternRequired",defFunc.definition);return e}},4301:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{not:{required:e}};var r=e.map((function(e){return{required:[e]}}));return{not:{anyOf:r}}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("prohibited",defFunc.definition);return e}},4751:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"number",macro:function(e,r){var t=e[0],a=e[1],s=r.exclusiveRange;validateRangeSchema(t,a,s);return s===true?{exclusiveMinimum:t,exclusiveMaximum:a}:{minimum:t,maximum:a}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}};e.addKeyword("range",defFunc.definition);e.addKeyword("exclusiveRange");return e;function validateRangeSchema(e,r,t){if(t!==undefined&&typeof t!="boolean")throw new Error("Invalid schema for exclusiveRange keyword, should be boolean");if(e>r||t&&e==r)throw new Error("There are no numbers in range")}}},3463:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"string",inline:function(e,r,t){return getRegExp()+".test(data"+(e.dataLevel||"")+")";function getRegExp(){try{if(typeof t=="object")return new RegExp(t.pattern,t.flags);var e=t.match(/^\/(.*)\/([gimuy]*)$/);if(e)return new RegExp(e[1],e[2]);throw new Error("cannot parse string into RegExp")}catch(e){console.error("regular expression",t,"is invalid");throw e}}},metaSchema:{type:["string","object"],properties:{pattern:{type:"string"},flags:{type:"string"}},required:["pattern"],additionalProperties:false}};e.addKeyword("regexp",defFunc.definition);return e}},2507:(e,r,t)=>{"use strict";var a=t(3990);e.exports=function defFunc(e){if(!e._opts.$data){console.warn("keyword select requires $data option");return e}var r=a.metaSchemaRef(e);var t=[];defFunc.definition={validate:function v(e,r,t){if(t.selectCases===undefined)throw new Error('keyword "selectCases" is absent');var a=getCompiledSchemas(t,false);var s=a.cases[e];if(s===undefined)s=a.default;if(typeof s=="boolean")return s;var i=s(r);if(!i)v.errors=s.errors;return i},$data:true,metaSchema:{type:["string","number","boolean","null"]}};e.addKeyword("select",defFunc.definition);e.addKeyword("selectCases",{compile:function(e,r){var t=getCompiledSchemas(r);for(var a in e)t.cases[a]=compileOrBoolean(e[a]);return function(){return true}},valid:true,metaSchema:{type:"object",additionalProperties:r}});e.addKeyword("selectDefault",{compile:function(e,r){var t=getCompiledSchemas(r);t.default=compileOrBoolean(e);return function(){return true}},valid:true,metaSchema:r});return e;function getCompiledSchemas(e,r){var a;t.some((function(r){if(r.parentSchema===e){a=r;return true}}));if(!a&&r!==false){a={parentSchema:e,cases:{},default:true};t.push(a)}return a}function compileOrBoolean(r){return typeof r=="boolean"?r:e.compile(r)}}},6369:(e,r,t)=>{"use strict";var a=t(3990);e.exports=function defFunc(e){if(e.RULES.keywords.switch&&e.RULES.keywords.if)return;var r=a.metaSchemaRef(e);defFunc.definition={inline:t(8368),statements:true,errors:"full",metaSchema:{type:"array",items:{required:["then"],properties:{if:r,then:{anyOf:[{type:"boolean"},r]},continue:{type:"boolean"}},additionalProperties:false,dependencies:{continue:["if"]}}}};e.addKeyword("switch",defFunc.definition);return e}},3684:e=>{"use strict";e.exports=function defFunc(e){var r={trimLeft:function(e){return e.replace(/^[\s]+/,"")},trimRight:function(e){return e.replace(/[\s]+$/,"")},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,r){return r.hash[makeHashTableKey(e)]||e}};defFunc.definition={type:"string",errors:false,modifying:true,valid:true,compile:function(e,t){var a;if(e.indexOf("toEnumCase")!==-1){a={hash:{}};if(!t.enum)throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.');for(var s=t.enum.length;s--;s){var i=t.enum[s];if(typeof i!=="string")continue;var o=makeHashTableKey(i);if(a.hash[o])throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.');a.hash[o]=i}}return function(t,s,i,o){if(!i)return;for(var n=0,l=e.length;n<l;n++)t=r[e[n]](t,a);i[o]=t}},metaSchema:{type:"array",items:{type:"string",enum:["trimLeft","trimRight","trim","toLowerCase","toUpperCase","toEnumCase"]}}};e.addKeyword("transform",defFunc.definition);return e;function makeHashTableKey(e){return e.toLowerCase()}}},690:e=>{"use strict";var r=["undefined","string","number","object","function","boolean","symbol"];e.exports=function defFunc(e){defFunc.definition={inline:function(e,r,t){var a="data"+(e.dataLevel||"");if(typeof t=="string")return"typeof "+a+' == "'+t+'"';t="validate.schema"+e.schemaPath+"."+r;return t+".indexOf(typeof "+a+") >= 0"},metaSchema:{anyOf:[{type:"string",enum:r},{type:"array",items:{type:"string",enum:r}}]}};e.addKeyword("typeof",defFunc.definition);return e}},6893:e=>{"use strict";var r=["number","integer","string","boolean","null"];e.exports=function defFunc(e){defFunc.definition={type:"array",compile:function(e,r,t){var a=t.util.equal;var s=getScalarKeys(e,r);return function(r){if(r.length>1){for(var t=0;t<e.length;t++){var i,o=e[t];if(s[t]){var n={};for(i=r.length;i--;){if(!r[i]||typeof r[i]!="object")continue;var l=r[i][o];if(l&&typeof l=="object")continue;if(typeof l=="string")l='"'+l;if(n[l])return false;n[l]=true}}else{for(i=r.length;i--;){if(!r[i]||typeof r[i]!="object")continue;for(var u=i;u--;){if(r[u]&&typeof r[u]=="object"&&a(r[i][o],r[u][o]))return false}}}}}return true}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("uniqueItemProperties",defFunc.definition);return e};function getScalarKeys(e,t){return e.map((function(e){var a=t.items&&t.items.properties;var s=a&&a[e]&&a[e].type;return Array.isArray(s)?s.indexOf("object")<0&&s.indexOf("array")<0:r.indexOf(s)>=0}))}},6474:(e,r,t)=>{"use strict";var a=t(9258),s=t(2603),i=t(7731),o=t(2961),n=t(6424),l=t(2015),u=t(9233),f=t(1966),c=t(8716);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=t(2694);var h=t(6765);Ajv.prototype.addKeyword=h.add;Ajv.prototype.getKeyword=h.get;Ajv.prototype.removeKeyword=h.remove;Ajv.prototype.validateKeyword=h.validate;var d=t(6343);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=f;var p="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var g=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=c.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=l(e.format);this._cache=e.cache||new i;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=n;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,r){var t;if(typeof e=="string"){t=this.getSchema(e);if(!t)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var s=t(r);if(t.$async!==true)this.errors=t.errors;return s}function compile(e,r){var t=this._addSchema(e,undefined,r);return t.validate||this._compile(t)}function addSchema(e,r,t,a){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],undefined,t,a);return this}var o=this._getId(e);if(o!==undefined&&typeof o!="string")throw new Error("schema id must be string");r=s.normalizeId(r||o);checkUnique(this,r);this._schemas[r]=this._addSchema(e,t,a,true);return this}function addMetaSchema(e,r,t){this.addSchema(e,r,t,true);return this}function validateSchema(e,r){var t=e.$schema;if(t!==undefined&&typeof t!="string")throw new Error("$schema must be a string");t=t||this._opts.defaultMeta||defaultMeta(this);if(!t){this.logger.warn("meta-schema not available");this.errors=null;return true}var a=this.validate(t,e);if(!a&&r){var s="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(s);else throw new Error(s)}return a}function defaultMeta(e){var r=e._opts.meta;e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(p)?p:undefined;return e._opts.defaultMeta}function getSchema(e){var r=_getSchemaObj(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,r){var t=s.schema.call(e,{schema:{}},r);if(t){var i=t.schema,n=t.root,l=t.baseId;var u=a.call(e,i,n,undefined,l);e._fragments[r]=new o({ref:r,fragment:true,schema:i,root:n,baseId:l,validate:u});return u}}function _getSchemaObj(e,r){r=s.normalizeId(r);return e._schemas[r]||e._refs[r]||e._fragments[r]}function removeSchema(e){if(e instanceof RegExp){_removeAllSchemas(this,this._schemas,e);_removeAllSchemas(this,this._refs,e);return this}switch(typeof e){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var r=_getSchemaObj(this,e);if(r)this._cache.del(r.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var t=this._opts.serialize;var a=t?t(e):e;this._cache.del(a);var i=this._getId(e);if(i){i=s.normalizeId(i);delete this._schemas[i];delete this._refs[i]}}return this}function _removeAllSchemas(e,r,t){for(var a in r){var s=r[a];if(!s.meta&&(!t||t.test(a))){e._cache.del(s.cacheKey);delete r[a]}}}function _addSchema(e,r,t,a){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize;var n=i?i(e):e;var l=this._cache.get(n);if(l)return l;a=a||this._opts.addUsedSchema!==false;var u=s.normalizeId(this._getId(e));if(u&&a)checkUnique(this,u);var f=this._opts.validateSchema!==false&&!r;var c;if(f&&!(c=u&&u==s.normalizeId(e.$schema)))this.validateSchema(e,true);var h=s.ids.call(this,e);var d=new o({id:u,schema:e,localRefs:h,cacheKey:n,meta:t});if(u[0]!="#"&&a)this._refs[u]=d;this._cache.put(n,d);if(f&&c)this.validateSchema(e,true);return d}function _compile(e,r){if(e.compiling){e.validate=callValidate;callValidate.schema=e.schema;callValidate.errors=null;callValidate.root=r?r:callValidate;if(e.schema.$async===true)callValidate.$async=true;return callValidate}e.compiling=true;var t;if(e.meta){t=this._opts;this._opts=this._metaOpts}var s;try{s=a.call(this,e.schema,r,e.localRefs)}catch(r){delete e.validate;throw r}finally{e.compiling=false;if(e.meta)this._opts=t}e.validate=s;e.refs=s.refs;e.refVal=s.refVal;e.root=s.root;return s;function callValidate(){var r=e.validate;var t=r.apply(this,arguments);callValidate.errors=r.errors;return t}}function chooseGetId(e){switch(e.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}function _getId(e){if(e.$id)this.logger.warn("schema $id ignored",e.$id);return e.id}function _get$Id(e){if(e.id)this.logger.warn("schema id ignored",e.id);return e.$id}function _get$IdOrId(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function errorsText(e,r){e=e||this.errors;if(!e)return"No errors";r=r||{};var t=r.separator===undefined?", ":r.separator;var a=r.dataVar===undefined?"data":r.dataVar;var s="";for(var i=0;i<e.length;i++){var o=e[i];if(o)s+=a+o.dataPath+" "+o.message+t}return s.slice(0,-t.length)}function addFormat(e,r){if(typeof r=="string")r=new RegExp(r);this._formats[e]=r;return this}function addDefaultMetaSchema(e){var r;if(e._opts.$data){r=t(7664);e.addMetaSchema(r,r.$id,true)}if(e._opts.meta===false)return;var a=t(7136);if(e._opts.$data)a=f(a,g);e.addMetaSchema(a,p,true);e._refs["http://json-schema.org/schema"]=p}function addInitialSchemas(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}function addInitialFormats(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}function addInitialKeywords(e){for(var r in e._opts.keywords){var t=e._opts.keywords[r];e.addKeyword(r,t)}}function checkUnique(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function getMetaSchemaOptions(e){var r=c.copy(e._opts);for(var t=0;t<m.length;t++)delete r[m[t]];return r}function setLogger(e){var r=e._opts.logger;if(r===false){e.logger={log:noop,warn:noop,error:noop}}else{if(r===undefined)r=console;if(!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function noop(){}},7731:e=>{"use strict";var r=e.exports=function Cache(){this._cache={}};r.prototype.put=function Cache_put(e,r){this._cache[e]=r};r.prototype.get=function Cache_get(e){return this._cache[e]};r.prototype.del=function Cache_del(e){delete this._cache[e]};r.prototype.clear=function Cache_clear(){this._cache={}}},2694:(e,r,t)=>{"use strict";var a=t(6343).MissingRef;e.exports=compileAsync;function compileAsync(e,r,t){var s=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof r=="function"){t=r;r=undefined}var i=loadMetaSchemaOf(e).then((function(){var t=s._addSchema(e,undefined,r);return t.validate||_compileAsync(t)}));if(t){i.then((function(e){t(null,e)}),t)}return i;function loadMetaSchemaOf(e){var r=e.$schema;return r&&!s.getSchema(r)?compileAsync.call(s,{$ref:r},true):Promise.resolve()}function _compileAsync(e){try{return s._compile(e)}catch(e){if(e instanceof a)return loadMissingSchema(e);throw e}function loadMissingSchema(t){var a=t.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+t.missingRef+" cannot be resolved");var i=s._loadingSchemas[a];if(!i){i=s._loadingSchemas[a]=s._opts.loadSchema(a);i.then(removePromise,removePromise)}return i.then((function(e){if(!added(a)){return loadMetaSchemaOf(e).then((function(){if(!added(a))s.addSchema(e,a,undefined,r)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete s._loadingSchemas[a]}function added(e){return s._refs[e]||s._schemas[e]}}}}},6343:(e,r,t)=>{"use strict";var a=t(2603);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,t){this.message=t||MissingRefError.message(e,r);this.missingRef=a.url(e,r);this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},2015:(e,r,t)=>{"use strict";var a=t(8716);var s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var i=[0,31,28,31,30,31,30,31,31,30,31,30,31];var o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var n=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-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\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var d=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return a.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":f,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0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4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":p,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":f,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":p,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(s);if(!r)return false;var t=+r[1];var a=+r[2];var o=+r[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&isLeapYear(t)?29:i[a])}function time(e,r){var t=e.match(o);if(!t)return false;var a=t[1];var s=t[2];var i=t[3];var n=t[5];return(a<=23&&s<=59&&i<=59||a==23&&s==59&&i==60)&&(!r||n)}var g=/t|\s/i;function date_time(e){var r=e.split(g);return r.length==2&&date(r[0])&&time(r[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&l.test(e)}var P=/[^\\]\\Z/;function regex(e){if(P.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},9258:(e,r,t)=>{"use strict";var a=t(2603),s=t(8716),i=t(6343),o=t(6424);var n=t(7003);var l=s.ucs2length;var u=t(1230);var f=i.Validation;e.exports=compile;function compile(e,r,t,c){var h=this,d=this._opts,p=[undefined],m={},g=[],y={},P=[],b={},E=[];r=r||{schema:e,refVal:p,refs:m};var S=checkCompiling.call(this,e,r,c);var w=this._compilations[S.index];if(S.compiling)return w.callValidate=callValidate;var x=this._formats;var $=this.RULES;try{var _=localCompile(e,r,t,c);w.validate=_;var R=w.callValidate;if(R){R.schema=_.schema;R.errors=null;R.refs=_.refs;R.refVal=_.refVal;R.root=_.root;R.$async=_.$async;if(d.sourceCode)R.source=_.source}return _}finally{endCompiling.call(this,e,r,c)}function callValidate(){var e=w.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,t,o,c){var y=!t||t&&t.schema==e;if(t.schema!=r.schema)return compile.call(h,e,t,o,c);var b=e.$async===true;var S=n({isTop:true,schema:e,isRoot:y,baseId:c,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:$,validate:n,util:s,resolve:a,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:x,logger:h.logger,self:h});S=vars(p,refValCode)+vars(g,patternCode)+vars(P,defaultCode)+vars(E,customRuleCode)+S;if(d.processCode)S=d.processCode(S,e);var w;try{var _=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",S);w=_(h,$,x,r,p,P,E,u,l,f);p[0]=w}catch(e){h.logger.error("Error compiling schema, function code:",S);throw e}w.schema=e;w.errors=null;w.refs=m;w.refVal=p;w.root=y?w:t;if(b)w.$async=true;if(d.sourceCode===true){w.source={code:S,patterns:g,defaults:P}}return w}function resolveRef(e,s,i){s=a.url(e,s);var o=m[s];var n,l;if(o!==undefined){n=p[o];l="refVal["+o+"]";return resolvedRef(n,l)}if(!i&&r.refs){var u=r.refs[s];if(u!==undefined){n=r.refVal[u];l=addLocalRef(s,n);return resolvedRef(n,l)}}l=addLocalRef(s);var f=a.call(h,localCompile,r,s);if(f===undefined){var c=t&&t[s];if(c){f=a.inlineRef(c,d.inlineRefs)?c:compile.call(h,c,r,t,e)}}if(f===undefined){removeLocalRef(s)}else{replaceLocalRef(s,f);return resolvedRef(f,l)}}function addLocalRef(e,r){var t=p.length;p[t]=r;m[e]=t;return"refVal"+t}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,r){var t=m[e];p[t]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=y[e];if(r===undefined){r=y[e]=g.length;g[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return s.toQuotedString(e);case"object":if(e===null)return"null";var r=o(e);var t=b[r];if(t===undefined){t=b[r]=P.length;P[t]=e}return"default"+t}}function useCustomRule(e,r,t,a){if(h._opts.validateSchema!==false){var s=e.definition.dependencies;if(s&&!s.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+s.join(","));var i=e.definition.validateSchema;if(i){var o=i(r);if(!o){var n="keyword schema is invalid: "+h.errorsText(i.errors);if(h._opts.validateSchema=="log")h.logger.error(n);else throw new Error(n)}}}var l=e.definition.compile,u=e.definition.inline,f=e.definition.macro;var c;if(l){c=l.call(h,r,t,a)}else if(f){c=f.call(h,r,t,a);if(d.validateSchema!==false)h.validateSchema(c,true)}else if(u){c=u.call(h,a,e.keyword,r,t)}else{c=e.definition.validate;if(!c)return}if(c===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=E.length;E[p]=c;return{code:"customRule"+p,validate:c}}}function checkCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)return{index:a,compiling:true};a=this._compilations.length;this._compilations[a]={schema:e,root:r,baseId:t};return{index:a,compiling:false}}function endCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)this._compilations.splice(a,1)}function compIndex(e,r,t){for(var a=0;a<this._compilations.length;a++){var s=this._compilations[a];if(s.schema==e&&s.root==r&&s.baseId==t)return a}return-1}function patternCode(e,r){return"var pattern"+e+" = new RegExp("+s.toQuotedString(r[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,r){return r[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,r){if(!e.length)return"";var t="";for(var a=0;a<e.length;a++)t+=r(a,e);return t}},2603:(e,r,t)=>{"use strict";var a=t(4856),s=t(1230),i=t(8716),o=t(2961),n=t(6042);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,r,t){var a=this._refs[t];if(typeof a=="string"){if(this._refs[a])a=this._refs[a];else return resolve.call(this,e,r,a)}a=a||this._schemas[t];if(a instanceof o){return inlineRef(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a)}var s=resolveSchema.call(this,r,t);var i,n,l;if(s){i=s.schema;r=s.root;l=s.baseId}if(i instanceof o){n=i.validate||e.call(this,i.schema,r,undefined,l)}else if(i!==undefined){n=inlineRef(i,this._opts.inlineRefs)?i:e.call(this,i,r,undefined,l)}return n}function resolveSchema(e,r){var t=a.parse(r),s=_getFullPath(t),i=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||s!==i){var n=normalizeId(s);var l=this._refs[n];if(typeof l=="string"){return resolveRecursive.call(this,e,l,t)}else if(l instanceof o){if(!l.validate)this._compile(l);e=l}else{l=this._schemas[n];if(l instanceof o){if(!l.validate)this._compile(l);if(n==normalizeId(r))return{schema:l,root:e,baseId:i};e=l}else{return}}if(!e.schema)return;i=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,t,i,e.schema,e)}function resolveRecursive(e,r,t){var a=resolveSchema.call(this,e,r);if(a){var s=a.schema;var i=a.baseId;e=a.root;var o=this._getId(s);if(o)i=resolveUrl(i,o);return getJsonPointer.call(this,t,i,s,e)}}var l=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,t,a){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var s=e.fragment.split("/");for(var o=1;o<s.length;o++){var n=s[o];if(n){n=i.unescapeFragment(n);t=t[n];if(t===undefined)break;var u;if(!l[n]){u=this._getId(t);if(u)r=resolveUrl(r,u);if(t.$ref){var f=resolveUrl(r,t.$ref);var c=resolveSchema.call(this,a,f);if(c){t=c.schema;a=c.root;r=c.baseId}}}}}if(t!==undefined&&t!==a.schema)return{schema:t,root:a,baseId:r}}var u=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,r){if(r===false)return false;if(r===undefined||r===true)return checkNoRef(e);else if(r)return countKeys(e)<=r}function checkNoRef(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++){r=e[t];if(typeof r=="object"&&!checkNoRef(r))return false}}else{for(var a in e){if(a=="$ref")return false;r=e[a];if(typeof r=="object"&&!checkNoRef(r))return false}}return true}function countKeys(e){var r=0,t;if(Array.isArray(e)){for(var a=0;a<e.length;a++){t=e[a];if(typeof t=="object")r+=countKeys(t);if(r==Infinity)return Infinity}}else{for(var s in e){if(s=="$ref")return Infinity;if(u[s]){r++}else{t=e[s];if(typeof t=="object")r+=countKeys(t)+1;if(r==Infinity)return Infinity}}}return r}function getFullPath(e,r){if(r!==false)e=normalizeId(e);var t=a.parse(e);return _getFullPath(t)}function _getFullPath(e){return a.serialize(e).split("#")[0]+"#"}var f=/#\/?$/;function normalizeId(e){return e?e.replace(f,""):""}function resolveUrl(e,r){r=normalizeId(r);return a.resolve(e,r)}function resolveIds(e){var r=normalizeId(this._getId(e));var t={"":r};var o={"":getFullPath(r,false)};var l={};var u=this;n(e,{allKeys:true},(function(e,r,n,f,c,h,d){if(r==="")return;var p=u._getId(e);var m=t[f];var g=o[f]+"/"+c;if(d!==undefined)g+="/"+(typeof d=="number"?d:i.escapeFragment(d));if(typeof p=="string"){p=m=normalizeId(m?a.resolve(m,p):p);var y=u._refs[p];if(typeof y=="string")y=u._refs[y];if(y&&y.schema){if(!s(e,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=normalizeId(g)){if(p[0]=="#"){if(l[p]&&!s(e,l[p]))throw new Error('id "'+p+'" resolves to more than one schema');l[p]=e}else{u._refs[p]=g}}}t[r]=m;o[r]=g}));return l}},9233:(e,r,t)=>{"use strict";var a=t(6964),s=t(8716).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var t=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var i=["number","integer","string","array","object","boolean","null"];e.all=s(r);e.types=s(i);e.forEach((function(t){t.rules=t.rules.map((function(t){var s;if(typeof t=="object"){var i=Object.keys(t)[0];s=t[i];t=i;s.forEach((function(t){r.push(t);e.all[t]=true}))}r.push(t);var o=e.all[t]={keyword:t,code:a[t],implements:s};return o}));e.all.$comment={keyword:"$comment",code:a.$comment};if(t.type)e.types[t.type]=t}));e.keywords=s(r.concat(t));e.custom={};return e}},2961:(e,r,t)=>{"use strict";var a=t(8716);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},2:e=>{"use strict";e.exports=function ucs2length(e){var r=0,t=e.length,a=0,s;while(a<t){r++;s=e.charCodeAt(a++);if(s>=55296&&s<=56319&&a<t){s=e.charCodeAt(a);if((s&64512)==56320)a++}}return r}},8716:(e,r,t)=>{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:t(1230),ucs2length:t(2)