@hyperjump/json-schema 0.18.0 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json-schema-amd.js +19 -196
- package/dist/json-schema-amd.js.map +1 -1
- package/dist/json-schema-amd.min.js +1 -1
- package/dist/json-schema-amd.min.js.map +1 -1
- package/dist/json-schema-cjs.js +17 -194
- package/dist/json-schema-cjs.js.map +1 -1
- package/dist/json-schema-cjs.min.js +1 -1
- package/dist/json-schema-cjs.min.js.map +1 -1
- package/dist/json-schema-esm.js +16 -193
- package/dist/json-schema-esm.js.map +1 -1
- package/dist/json-schema-esm.min.js +1 -1
- package/dist/json-schema-esm.min.js.map +1 -1
- package/dist/json-schema-iife.js +18 -195
- package/dist/json-schema-iife.js.map +1 -1
- package/dist/json-schema-iife.min.js +1 -1
- package/dist/json-schema-iife.min.js.map +1 -1
- package/dist/json-schema-system.js +20 -197
- package/dist/json-schema-system.js.map +1 -1
- package/dist/json-schema-system.min.js +1 -1
- package/dist/json-schema-system.min.js.map +1 -1
- package/dist/json-schema-umd.js +19 -196
- package/dist/json-schema-umd.js.map +1 -1
- package/dist/json-schema-umd.min.js +1 -1
- package/dist/json-schema-umd.min.js.map +1 -1
- package/lib/draft-04.js +0 -48
- package/lib/draft-07.d.ts +1 -1
- package/lib/draft-2019-09.d.ts +2 -2
- package/lib/draft-2020-12.d.ts +4 -3
- package/lib/index.d.ts +12 -0
- package/package.json +5 -4
- package/meta/draft-04/hyper-schema.js +0 -136
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports"],(function(e){"use strict";var n=function(e,n){return function t(){null==n&&(n=e.length);var r=[].slice.call(arguments);return r.length>=n?e.apply(this,r):function(){return t.apply(this,r.concat([].slice.call(arguments)))}}};var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,n){var r,a;r="object"==typeof window&&window||t,a={},r.PubSub=a,function(e){var n={},t=-1;function r(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function a(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?a:r;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,r){var a=function(e,n,t){return function(){var r=String(e),a=r.lastIndexOf(".");for(i(e,e,n,t);-1!==a;)a=(r=r.substr(0,a)).lastIndexOf("."),i(e,r,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,r);return!!function(e){for(var n=String(e),t=o(n)||o("*"),r=n.lastIndexOf(".");!t&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?a():setTimeout(a,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var a="uid_"+String(++t);return n[e][a]=r,a},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var r=e.subscribe(n,(function(){e.unsubscribe(r),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,r,a=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(r in n[t])a++;break}return a},e.getSubscriptions=function(e){var t,r=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&r.push(t);return r},e.unsubscribe=function(t){var r,a,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a=n[r],s&&a[t]){delete a[t],m=t;break}if(c)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===t&&(delete a[i],m=!0)}return m}e.clearSubscriptions(t)}}(a),void 0!==e&&e.exports&&(n=e.exports=a),n.PubSub=a,e.exports=n=a}));r.PubSub;var a=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,r=e.indexOf("//");n.protocol=t.substring(0,r),r+=2;const a=e.indexOf("/",r),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==a){const e=t.substring(0,a);n.host=e,t=t.substring(a),n.path=t}else n.host=t;return n}(e),r=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(s.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const r=e.indexOf("?"),a=e.indexOf("#");if(-1!==a){const e=t.substring(a);n.hash=e,t=t.substring(0,a)}if(-1!==r){const e=t.substring(r);n.query=e,t=t.substring(0,r)}return n.path=t,n}(n);if(!t.protocol&&!r.netPath)throw new Error("Error, protocol is not specified");if(r.netPath)return r.href.startsWith("//")&&(r.href=t.protocol+r.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),r=!e.includes("?",n),a=!e.includes("#",n);return t&&r&&a}(r.href)?i(r.href):r.href;if(r.absolutePath){const{path:e,query:n,hash:a}=r;return t.host+o(e)+n+a}if(r.relativePath){const{path:e,query:n,hash:a}=r;let i,s=t.path,c=t.host;return 0===e.length?i=s:(s=s.substring(0,s.lastIndexOf("/")),i=o(s+"/"+e)),c+=""!==i||n||a?i+n+a:"/",c}{const{host:e,path:n,query:a}=t;return n||a?e+n+a+r.hash:i(e)}};function i(e){return e+("/"===e[e.length-1]?"":"/")}function o(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,r)=>{"."!==e&&(".."===e?t.pop():""===e&&r!==n.length-1||t.push(e))}),"/"+t.join("/")}const s=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const c={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},m=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]},p=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var l={jsonTypeOf:(e,n)=>c[n](e),splitUrl:m,safeResolveUrl:(e,n)=>{const t=a(e,n),r=m(e)[0];if(r&&"file"===p(t)&&"file"!==p(r))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t}};const d=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(b)},u=(e,n,t,r)=>{if(0===e.length)return t;if(e.length>1){const a=e.shift();return{...n,[a]:u(e,O(n,a,r),t,v(a,r))}}if(Array.isArray(n)){const r=[...n];return r[$(n,e[0])]=t,r}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:O(n,e[0],r)},f=(e,n,t,r)=>{if(0!==e.length)if(1!==e.length||I(n)){const a=e.shift();f(e,O(n,a,r),t,v(a,r))}else{n[$(n,e[0])]=t}},y=(e,n,t)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=O(n,r,t);return{...n,[r]:y(e,a,v(r,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...r}=n;return r}return O(n,e[0],t)}},h=(e,n,t)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=O(n,r,t);h(e,a,v(r,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:O(n,e[0],t)},v=n((e,n)=>n+"/"+g(e)),g=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),b=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),$=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,O=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(I(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[$(e,n)]},I=e=>null===e||"object"!=typeof e;var S={nil:"",append:v,get:(e,n)=>{const t=d(e),r=e=>t.reduce(([e,n],t)=>[O(e,t,n),v(t,n)],[e,""])[0];return void 0===n?r:r(n)},set:(e,t,r)=>{const a=d(e),i=n((e,n)=>u(a,e,n,""));return void 0===t?i:i(t,r)},assign:(e,t,r)=>{const a=d(e),i=n((e,n)=>f(a,e,n,""));return void 0===t?i:i(t,r)},unset:(e,n)=>{const t=d(e),r=e=>y(t,e,"");return void 0===n?r:r(n)},remove:(e,n)=>{const t=d(e),r=e=>h(t,e,"");return void 0===n?r:r(n)}};S.nil,S.append,S.get,S.set,S.assign,S.unset,S.remove;const j=Symbol("$__value"),x=Symbol("$__href");var w=(e,n)=>Object.freeze({[x]:e,[j]:n}),P=e=>e&&void 0!==e[x],E=e=>e[x],A=e=>e[j];const{jsonTypeOf:C}=l,N=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),R=e=>P(e.value)?A(e.value):e.value,T=n((e,n)=>C(R(e),n)),D=(e,n)=>Object.freeze({...n,pointer:S.append(e,n.pointer),value:R(n)[e]}),k=n((e,n)=>R(n).map((t,r,a,i)=>e(D(r,n),r,a,i))),q=n((e,n)=>R(n).map((e,t,r,a)=>D(t,n)).filter((n,t,r,a)=>e(n,t,r,a))),M=n((e,n,t)=>R(t).reduce((n,r,a)=>e(n,D(a,t),a),n)),L=n((e,n)=>R(n).every((t,r,a,i)=>e(D(r,n),r,a,i))),V=n((e,n)=>R(n).some((t,r,a,i)=>e(D(r,n),r,a,i)));var J={nil:N,cons:(e,n="")=>Object.freeze({...N,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:R,has:(e,n)=>e in R(n),typeOf:T,step:D,entries:e=>Object.keys(R(e)).map(n=>[n,D(n,e)]),keys:e=>Object.keys(R(e)),map:k,filter:q,reduce:M,every:L,some:V,length:e=>R(e).length},F=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,U=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,_=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,z=/\\([\u000b\u0020-\u00ff])/g,K=/([\\"])/g,B=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function Z(e){var n=String(e);if(_.test(n))return n;if(n.length>0&&!U.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(K,"\\$1")+'"'}function G(e){this.parameters=Object.create(null),this.type=e}var W={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!B.test(t))throw new TypeError("invalid type");var r=t;if(n&&"object"==typeof n)for(var a,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(a=i[o],!_.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+Z(n[a])}return r},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),r=-1!==t?n.substr(0,t).trim():n.trim();if(!B.test(r))throw new TypeError("invalid media type");var a=new G(r.toLowerCase());if(-1!==t){var i,o,s;for(F.lastIndex=t;o=F.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(z,"$1")),a.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return a}},H=async e=>Object.entries(await e),X=n(async(e,n)=>(await n).map(e)),Q=n(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),Y=n(async(e,n,t={})=>Q(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),ee=n(async(e,n)=>{const t=await X(e,n);return(await Promise.all(t)).some(e=>e)}),ne=n(async(e,n)=>{const t=await X(e,n);return(await Promise.all(t)).every(e=>e)}),te=n((e,n)=>e.reduce(async(e,n)=>n(await e),n)),re={entries:H,map:X,filter:Y,reduce:Q,some:ee,every:ne,pipeline:te,all:e=>Promise.all(e),allValues:e=>te([H,Q(async(e,[n,t])=>(e[n]=await t,e),{})],e)};re.entries,re.map,re.filter,re.reduce,re.some,re.every,re.pipeline,re.all,re.allValues;var ae=fetch;const{jsonTypeOf:ie,splitUrl:oe,safeResolveUrl:se}=l,ce={},me={},pe=(e,n)=>{const t=e in me?me[e]:e;if(t in ce)return ce[t][n]},le={},de={},ue=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const r=oe(e.$schema||t)[0];if(!r)throw Error("Couldn't determine schema version");delete e.$schema;const a=pe(r,"baseToken"),i=pe(r,"anchorToken"),o=oe(n)[0];if(!o&&!oe(e[a]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=se(o,e[a]||""),[c,m]=oe(s);delete e[a],m&&a===i&&(e[i]=i!==a?encodeURI(m):"#"+encodeURI(m)),o&&(de[o]=c);const p={},l=pe(r,"recursiveAnchorToken");let d;!0===e[l]&&(p[""]=c+"#",e[i]="",delete e[l]);const u=pe(r,"vocabularyToken");ie(e[u],"object")?(me[c]=r,d=e[u],delete e[u]):(me[c]=r,d={[r]:!0});const f={"":""};return le[c]={id:c,schemaVersion:r,schema:fe(e,c,r,S.nil,f,p),anchors:f,dynamicAnchors:p,vocabulary:d,validated:!1},le[c]},fe=(e,n,t,r,a,i)=>{if(ie(e,"object")){const o="string"==typeof e.$schema?oe(e.$schema)[0]:t,s=pe(o,"embeddedToken"),c=pe(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=se(n,e[s]);return e[s]=r,ue(e,r,t),w(e[s],e)}const m=pe(t,"anchorToken"),p=pe(t,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${n}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const l=pe(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==l?e[m]:e[m].slice(1);a[n]=r,delete e[m]}const d=pe(t,"jrefToken");if("string"==typeof e[d])return w(e[d],e);for(const o in e)e[o]=fe(e[o],n,t,S.append(o,r),a,i);return e}return Array.isArray(e)?e.map((e,o)=>fe(e,n,t,S.append(o,r),a,i)):e},ye=e=>le[de[e]]||le[e],he=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:S.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),ve=async(e,n=he)=>{const t=se($e(n),e),[r,a]=oe(t);if(!(e=>e in le||e in de)(r)){const e=await ae(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+r);if(e.headers.has("content-type")){const n=W.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${r} is not a schema. Found a document with media type: ${n}`)}ue(await e.json(),r)}const i=ye(r),o="/"!==a[0]?be(i,a):a,s=Object.freeze({...i,pointer:o,value:S.get(o,i.schema)});return ge(s)},ge=e=>P(e.value)?ve(E(e.value),e):e,be=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},$e=e=>`${e.id}#${encodeURI(e.pointer)}`,Oe=e=>P(e.value)?A(e.value):e.value,Ie=(e,n)=>{const t=ye(n.id),r=Object.freeze({...n,pointer:S.append(e,n.pointer),value:Oe(n)[e],validated:t.validated});return ge(r)},Se=n((e,n)=>re.pipeline([Oe,re.map(async(t,r)=>e(await Ie(r,n),r)),re.all],n));var je={setConfig:(e,n,t)=>{ce[e]||(ce[e]={}),ce[e][n]=t},getConfig:pe,add:ue,get:ve,markValidated:e=>{le[e].validated=!0},uri:$e,value:Oe,getAnchorPointer:be,typeOf:(e,n)=>ie(Oe(e),n),has:(e,n)=>e in Oe(n),step:Ie,keys:e=>Object.keys(Oe(e)),entries:e=>re.pipeline([Oe,Object.keys,re.map(async n=>[n,await Ie(n,e)]),re.all],e),map:Se,length:e=>Oe(e).length};je.setConfig,je.getConfig,je.add,je.get,je.markValidated,je.uri,je.value,je.getAnchorPointer,je.typeOf,je.has,je.step,je.keys,je.entries,je.map,je.length;class xe extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var we=xe;const{splitUrl:Pe}=l,Ee="FLAG",Ae="BASIC",Ce="DETAILED",Ne="VERBOSE";let Re=Ce,Te=!0;const De=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ue(e,n)}},ke=n(({ast:e,schemaUri:n},t,a=Ee)=>{if(![Ee,Ae,Ce,Ne].includes(a))throw Error(`The '${a}' error format is not supported`);const i=[],o=r.subscribe("result",qe(a,i));return ze(n,t,e,{}),r.unsubscribe(o),i[0]}),qe=(e,n)=>{const t=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i,errors:[]};t.push(o)}else if("result.start"===r)t.push(r);else if("result.end"===r){const r=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),a=[n];e===Ae&&(a.push(...n.errors),delete n.errors),(e===Ne||e!==Ee&&!n.valid)&&r.errors.unshift(...a)}t[t.length-1]=r,n[0]=r}}},Me={},Le=e=>Me[e],Ve=e=>e in Me,Je={},Fe={},Ue=async(e,n)=>{if(e=await _e(e),!Ve(e.schemaVersion+"#validate")){const n=await je.get(e.schemaVersion);(je.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in Je)Object.entries(Je[e]).forEach(([e,t])=>{((e,n)=>{Me[e]={collectEvaluatedItems:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&new Set,collectEvaluatedProperties:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Te&&!e.validated){if(je.markValidated(e.id),!(e.schemaVersion in Fe)){const n=await je.get(e.schemaVersion),t=await De(n);Fe[n.id]=ke(t)}const n=J.cons(e.schema,e.id),t=Fe[e.schemaVersion](n,Re);if(!t.valid)throw new we(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Le(e.schemaVersion+"#validate").compile(e,n)},_e=async e=>je.typeOf(e,"string")?_e(await je.get(je.value(e),e)):e,ze=(e,n,t,r)=>{const a=Ke(e,t),i=Pe(e)[0];return Le(a).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...r})},Ke=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var Be={validate:async(e,n,t)=>{const r=await De(e),a=(e,n)=>ke(r,J.cons(e),n);return void 0===n?a:a(n,t)},compile:De,interpret:ke,setMetaOutputFormat:e=>{Re=e},setShouldMetaValidate:e=>{Te=e},FLAG:Ee,BASIC:Ae,DETAILED:Ce,VERBOSE:Ne,add:(e,n="",t="")=>{const r=je.add(e,n,t);return delete Fe[r.id],r},getKeyword:Le,hasKeyword:Ve,defineVocabulary:(e,n)=>{Je[e]=n},compileSchema:Ue,interpretSchema:ze,collectEvaluatedProperties:(e,n,t,r,a)=>{const i=Ke(e,t);return Le(i).collectEvaluatedProperties(e,n,t,r,a)},collectEvaluatedItems:(e,n,t,r,a)=>{const i=Ke(e,t);return Le(i).collectEvaluatedItems(e,n,t,r,a)}};var Ze={compile:e=>je.value(e),interpret:()=>!0};var Ge={compile:async(e,n)=>{const t=je.uri(e);if(!(t in n)){n[t]=!1;const r=je.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${je.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",je.uri(e),"boolean"==typeof r?r:await re.pipeline([je.entries,re.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),re.filter(([n])=>Be.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),re.map(async([t,r])=>{const a=await Be.getKeyword(t).compile(r,n,e);return[t,je.uri(r),a]}),re.all],e)]}return t},interpret:(e,n,t,a)=>{const[i,o,s]=t[e];r.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{r.publishSync("result.start");const s=Be.getKeyword(e).interpret(o,n,t,a);return r.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:J.uri(n),valid:s,ast:o}),r.publishSync("result.end"),s});return r.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:J.uri(n),valid:c,ast:e}),r.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!a||!e.endsWith("#unevaluatedProperties")).reduce((e,[a,,i])=>{const o=e&&Be.getKeyword(a).collectEvaluatedProperties(i,n,t,r);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!a||!e.endsWith("#unevaluatedItems")).reduce((e,[a,,i])=>{const o=!1!==e&&Be.getKeyword(a).collectEvaluatedItems(i,n,t,r);return!1!==o&&new Set([...e,...o])},new Set)}},We={metaData:Ze,validate:Ge},He={Core:Be,Schema:je,Instance:J,Keywords:We};const{Core:Xe,Schema:Qe,Instance:Ye}=He;var en={compile:async(e,n,t)=>{const r=await Qe.step("items",t),a=Qe.typeOf(r,"array")?Qe.length(r):Number.MAX_SAFE_INTEGER;return Qe.typeOf(e,"boolean")?[a,Qe.value(e)]:[a,await Xe.compileSchema(e,n)]},interpret:([e,n],t,r,a)=>!Ye.typeOf(t,"array")||("string"==typeof n?Ye.every((t,i)=>i<e||Xe.interpretSchema(n,t,r,a),t):Ye.every((t,r)=>r<e||n,t))};const{Core:nn,Schema:tn,Instance:rn}=He,an=([e,n],t,r,a)=>!rn.typeOf(t,"array")||rn.every((t,i)=>i<e||nn.interpretSchema(n,t,r,a),t);var on={compile:async(e,n,t)=>{const r=await tn.step("items",t);return[tn.typeOf(r,"array")?tn.length(r):Number.MAX_SAFE_INTEGER,await nn.compileSchema(e,n)]},interpret:an,collectEvaluatedItems:(e,n,t,r)=>an(e,n,t,r)&&new Set(rn.map((e,n)=>n,n))};const{Core:sn,Schema:cn,Instance:mn}=He;var pn={compile:async(e,n,t)=>{const r=await cn.step("properties",t),a=cn.typeOf(r,"object")?cn.keys(r):[],i=await cn.step("patternProperties",t),o=cn.typeOf(i,"object")?cn.keys(i).map(e=>new RegExp(e)):[];return cn.typeOf(e,"boolean")?[a,o,cn.value(e)]:[a,o,await sn.compileSchema(e,n)]},interpret:([e,n,t],r,a,i)=>{if(!mn.typeOf(r,"object"))return!0;const o=mn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>sn.interpretSchema(t,e,a,i)):0===o.length||t}};const{Core:ln,Schema:dn,Instance:un}=He,fn=([e,n,t],r,a,i)=>!un.typeOf(r,"object")||un.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>ln.interpretSchema(t,e,a,i));var yn={compile:async(e,n,t)=>{const r=await dn.step("properties",t),a=dn.typeOf(r,"object")?dn.keys(r):[],i=await dn.step("patternProperties",t);return[a,dn.typeOf(i,"object")?dn.keys(i).map(e=>new RegExp(e)):[],await ln.compileSchema(e,n)]},interpret:fn,collectEvaluatedProperties:(e,n,t,r)=>fn(e,n,t,r)&&[new RegExp("")]};const{Core:hn,Schema:vn}=He;var gn={compile:(e,n)=>re.pipeline([vn.map(async e=>hn.compileSchema(await e,n)),re.all],e),interpret:(e,n,t,r)=>e.every(e=>hn.interpretSchema(e,n,t,r)),collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=e&&hn.collectEvaluatedProperties(a,n,t,r);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=!1!==e&&hn.collectEvaluatedItems(a,n,t,r);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:bn,Schema:$n}=He;var On={compile:(e,n)=>re.pipeline([$n.map(async e=>bn.compileSchema(await e,n)),re.all],e),interpret:(e,n,t,r)=>e.filter(e=>bn.interpretSchema(e,n,t,r)).length>0,collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=bn.collectEvaluatedProperties(a,n,t,r);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=bn.collectEvaluatedItems(a,n,t,r);return!1!==i?new Set([...e||[],...i]):e},!1)},In=Object.keys,Sn=JSON.stringify;var jn=function(e){return""+function e(n,t){var r,a,i,o,s,c,m;if("string"===(m=typeof n))return Sn(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",a=n.length-1,r=0;r<a;r++)i+=e(n[r],!1)+",";return a>-1&&(i+=e(n[r],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(a=(o=In(n).sort()).length,i="",r=0;r<a;)void 0!==(c=e(n[s=o[r]],!0))&&(r&&""!==i&&(i+=","),i+=Sn(s)+":"+c),r++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:xn,Instance:wn}=He;var Pn={compile:e=>jn(xn.value(e)),interpret:(e,n)=>jn(wn.value(n))===e};const{Core:En,Instance:An}=He;var Cn={compile:(e,n)=>En.compileSchema(e,n),interpret:(e,n,t,r)=>!An.typeOf(n,"array")||An.some(n=>En.interpretSchema(e,n,t,r),n)};const{Core:Nn,Schema:Rn,Instance:Tn}=He,Dn=({contains:e,minContains:n,maxContains:t},r,a,i)=>{if(!Tn.typeOf(r,"array"))return!0;const o=Tn.reduce((n,t)=>Nn.interpretSchema(e,t,a,i)?n+1:n,0,r);return o>=n&&o<=t};var kn={compile:async(e,n,t)=>{const r=await Nn.compileSchema(e,n),a=await Rn.step("minContains",t),i=Rn.typeOf(a,"number")?Rn.value(a):1,o=await Rn.step("maxContains",t);return{contains:r,minContains:i,maxContains:Rn.typeOf(o,"number")?Rn.value(o):Number.MAX_SAFE_INTEGER}},interpret:Dn,collectEvaluatedItems:(e,n,t,r)=>Dn(e,n,t,r)&&Tn.reduce((n,a,i)=>Nn.interpretSchema(e.contains,a,t,r)?n.add(i):n,new Set,n)};const{Core:qn,Schema:Mn}=He;var Ln={compile:async(e,n)=>{await re.pipeline([Mn.entries,re.map(([,e])=>qn.compileSchema(e,n)),re.all],e)},interpret:()=>!0};const{Core:Vn,Schema:Jn,Instance:Fn}=He;var Un={compile:(e,n)=>re.pipeline([Jn.entries,re.map(async([e,t])=>[e,Jn.typeOf(t,"array")?Jn.value(t):await Vn.compileSchema(t,n)]),re.all],e),interpret:(e,n,t,r)=>{const a=Fn.value(n);return!Fn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||(Array.isArray(i)?i.every(e=>e in a):Vn.interpretSchema(i,n,t,r)))}};const{Schema:_n,Instance:zn}=He;var Kn={compile:e=>re.pipeline([_n.entries,re.map(([e,n])=>[e,_n.value(n)]),re.all],e),interpret:(e,n)=>{const t=zn.value(n);return!zn.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:Bn,Schema:Zn,Instance:Gn}=He;var Wn={compile:(e,n)=>re.pipeline([Zn.entries,re.map(async([e,t])=>[e,await Bn.compileSchema(t,n)]),re.all],e),interpret:(e,n,t,r)=>{const a=Gn.value(n);return!Gn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||Bn.interpretSchema(i,n,t,r))},collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,[a,i])=>{if(!e||!Gn.has(a,n))return e;const o=Bn.collectEvaluatedProperties(i,n,t,r);return!1!==o&&e.concat(o)},[])};const{Schema:Hn,Instance:Xn}=He;var Qn={compile:e=>Hn.value(e).map(jn),interpret:(e,n)=>e.some(e=>jn(Xn.value(n))===e)};const{Schema:Yn,Instance:et}=He;var nt={compile:async e=>Yn.value(e),interpret:(e,n)=>!et.typeOf(n,"number")||et.value(n)<e};const{Schema:tt,Instance:rt}=He;var at={compile:async e=>tt.value(e),interpret:(e,n)=>!rt.typeOf(n,"number")||rt.value(n)>e};const{Core:it}=He;var ot={compile:(e,n)=>it.compileSchema(e,n),interpret:(e,n,t,r)=>(it.interpretSchema(e,n,t,r),!0),collectEvaluatedProperties:(e,n,t,r)=>it.collectEvaluatedProperties(e,n,t,r)||[],collectEvaluatedItems:(e,n,t,r)=>it.collectEvaluatedItems(e,n,t,r)||new Set};const{Core:st,Schema:ct}=He,mt=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>st.getKeyword(e).interpret(a,n,t,r))};var pt={compile:async(e,n,t)=>{if(ct.has("if",t)){const r=await ct.step("if",t);return[await st.compileSchema(r,n),await st.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||!mt(e,t,r,a)||st.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0!==e&&mt(e,t,r,a)?st.collectEvaluatedProperties(n,t,r,a):[],collectEvaluatedItems:([e,n],t,r,a)=>void 0!==e&&mt(e,t,r,a)?st.collectEvaluatedItems(n,t,r,a):new Set};const{Core:lt,Schema:dt}=He,ut=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>lt.getKeyword(e).interpret(a,n,t,r))};var ft={compile:async(e,n,t)=>{if(dt.has("if",t)){const r=await dt.step("if",t);return[await lt.compileSchema(r,n),await lt.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)||lt.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)?[]:lt.collectEvaluatedProperties(n,t,r,a),collectEvaluatedItems:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)?new Set:lt.collectEvaluatedItems(n,t,r,a)};const{Core:yt,Schema:ht,Instance:vt}=He,gt=(e,n,t,r)=>!vt.typeOf(n,"array")||("string"==typeof e?vt.every(n=>yt.interpretSchema(e,n,t,r),n):vt.every((n,a)=>!(a in e)||yt.interpretSchema(e[a],n,t,r),n));var bt={compile:async(e,n)=>{if(ht.typeOf(e,"array")){const t=await ht.map(e=>yt.compileSchema(e,n),e);return Promise.all(t)}return yt.compileSchema(e,n)},interpret:gt,collectEvaluatedItems:(e,n,t,r)=>gt(e,n,t,r)&&("string"==typeof e?new Set(vt.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:$t,Schema:Ot,Instance:It}=He,St=([e,n],t,r,a)=>!It.typeOf(t,"array")||It.every((t,i)=>i<e||$t.interpretSchema(n,t,r,a),t);var jt={compile:async(e,n,t)=>{const r=await Ot.step("prefixItems",t);return[Ot.typeOf(r,"array")?Ot.length(r):0,await $t.compileSchema(e,n)]},interpret:St,collectEvaluatedItems:(e,n,t,r)=>St(e,n,t,r)&&new Set(It.map((e,n)=>n,n))};const{Schema:xt,Instance:wt}=He;var Pt={compile:e=>xt.value(e),interpret:(e,n)=>!wt.typeOf(n,"array")||wt.length(n)<=e};const{Schema:Et,Instance:At}=He;var Ct={compile:e=>Et.value(e),interpret:(e,n)=>!At.typeOf(n,"string")||At.length(n)<=e};const{Schema:Nt,Instance:Rt}=He;var Tt={compile:e=>Nt.value(e),interpret:(e,n)=>!Rt.typeOf(n,"string")||[...Rt.value(n)].length<=e};const{Schema:Dt,Instance:kt}=He;var qt={compile:e=>Dt.value(e),interpret:(e,n)=>!kt.typeOf(n,"object")||kt.keys(n).length<=e};const{Schema:Mt,Instance:Lt}=He;var Vt={compile:async(e,n,t)=>{const r=await Mt.step("exclusiveMaximum",t),a=Mt.value(r);return[Mt.value(e),a]},interpret:([e,n],t)=>{if(!Lt.typeOf(t,"number"))return!0;const r=Lt.value(t);return n?r<e:r<=e}};const{Schema:Jt,Instance:Ft}=He;var Ut={compile:async e=>Jt.value(e),interpret:(e,n)=>!Ft.typeOf(n,"number")||Ft.value(n)<=e};const{Schema:_t,Instance:zt}=He;var Kt={compile:e=>_t.value(e),interpret:(e,n)=>!zt.typeOf(n,"array")||zt.length(n)>=e};const{Schema:Bt,Instance:Zt}=He;var Gt={compile:e=>Bt.value(e),interpret:(e,n)=>!Zt.typeOf(n,"string")||Zt.length(n)>=e};const{Schema:Wt,Instance:Ht}=He;var Xt={compile:e=>Wt.value(e),interpret:(e,n)=>!Ht.typeOf(n,"string")||[...Ht.value(n)].length>=e};const{Schema:Qt,Instance:Yt}=He;var er={compile:e=>Qt.value(e),interpret:(e,n)=>!Yt.typeOf(n,"object")||Yt.keys(n).length>=e};const{Schema:nr,Instance:tr}=He;var rr={compile:async(e,n,t)=>{const r=await nr.step("exclusiveMinimum",t),a=nr.value(r);return[nr.value(e),a]},interpret:([e,n],t)=>{if(!tr.typeOf(t,"number"))return!0;const r=tr.value(t);return n?r>e:r>=e}};const{Schema:ar,Instance:ir}=He;var or={compile:async e=>ar.value(e),interpret:(e,n)=>!ir.typeOf(n,"number")||ir.value(n)>=e};const{Schema:sr,Instance:cr}=He,mr=(e,n)=>Math.abs(e-n)<1.1920929e-7;var pr={compile:e=>sr.value(e),interpret:(e,n)=>{if(!cr.typeOf(n,"number"))return!0;const t=cr.value(n)%e;return mr(0,t)||mr(e,t)}};const{Core:lr}=He;var dr={compile:lr.compileSchema,interpret:(e,n,t,r)=>!lr.interpretSchema(e,n,t,r)};const{Core:ur,Schema:fr}=He;var yr={compile:async(e,n)=>{const t=await fr.map(e=>ur.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,r)=>{let a=0;for(const i of e)if(ur.interpretSchema(i,n,t,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=ur.collectEvaluatedProperties(i,n,t,r);return o?0==a++&&o:e},!1)},collectEvaluatedItems:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=ur.collectEvaluatedItems(i,n,t,r);return o?0==a++&&o:e},!1)}};const{Schema:hr,Instance:vr}=He;var gr={compile:e=>new RegExp(hr.value(e),"u"),interpret:(e,n)=>!vr.typeOf(n,"string")||e.test(vr.value(n))};const{Core:br,Schema:$r,Instance:Or}=He,Ir=(e,n,t,r)=>!Or.typeOf(n,"object")||e.every(([e,a])=>Or.entries(n).filter(([n])=>e.test(n)).every(([,e])=>br.interpretSchema(a,e,t,r)));var Sr={compile:(e,n)=>re.pipeline([$r.entries,re.map(async([e,t])=>[new RegExp(e,"u"),await br.compileSchema(t,n)]),re.all],e),interpret:Ir,collectEvaluatedProperties:(e,n,t,r)=>Ir(e,n,t,r)&&e.map(([e])=>e)};var jr={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]}};const{Core:xr,Schema:wr,Instance:Pr}=He,{escapeRegExp:Er}=jr,Ar=(e,n,t,r)=>!Pr.typeOf(n,"object")||Pr.entries(n).filter(([n])=>n in e).every(([n,a])=>xr.interpretSchema(e[n],a,t,r));var Cr={compile:(e,n)=>re.pipeline([wr.entries,re.reduce(async(e,[t,r])=>(e[t]=await xr.compileSchema(r,n),e),Object.create(null))],e),interpret:Ar,collectEvaluatedProperties:(e,n,t,r)=>Ar(e,n,t,r)&&Object.keys(e).map(e=>new RegExp(`^${Er(e)}$`))};const{Core:Nr,Instance:Rr}=He;var Tr={compile:(e,n)=>Nr.compileSchema(e,n),interpret:(e,n,t,r)=>!Rr.typeOf(n,"object")||Rr.keys(n).every(n=>Nr.interpretSchema(e,Rr.cons(n),t,r))};const{Core:Dr,Schema:kr}=He,{splitUrl:qr}=jr;var Mr={compile:async(e,n)=>{const[,t]=qr(kr.value(e)),r=await kr.get(kr.value(e),e);return await Dr.compileSchema(r,n),[r.id,t]},interpret:([e,n],t,r,a)=>{if(n in r.metaData[e].dynamicAnchors)return Dr.interpretSchema(a[n],t,r,a);{const i=kr.getAnchorPointer(r.metaData[e],n);return Dr.interpretSchema(`${e}#${encodeURI(i)}`,t,r,a)}},collectEvaluatedProperties:Dr.collectEvaluatedProperties,collectEvaluatedItems:Dr.collectEvaluatedItems};const{Core:Lr,Schema:Vr}=He;var Jr={compile:async(e,n)=>{const t=await Vr.get(Vr.value(e),e);return Lr.compileSchema(t,n)},interpret:Lr.interpretSchema,collectEvaluatedProperties:Lr.collectEvaluatedProperties,collectEvaluatedItems:Lr.collectEvaluatedItems};const{Schema:Fr,Instance:Ur}=He;var _r={compile:e=>Fr.value(e),interpret:(e,n)=>!Ur.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Ur.value(n),e))};const{Core:zr,Schema:Kr,Instance:Br}=He,Zr=(e,n,t,r)=>!Br.typeOf(n,"array")||Br.every((n,a)=>!(a in e)||zr.interpretSchema(e[a],n,t,r),n);var Gr={compile:(e,n)=>re.pipeline([Kr.map(e=>zr.compileSchema(e,n)),re.all],e),interpret:Zr,collectEvaluatedItems:(e,n,t,r)=>Zr(e,n,t,r)&&new Set(e.map((e,n)=>n))};const{Schema:Wr,Instance:Hr}=He;var Xr={compile:e=>Wr.value(e),interpret:(e,n)=>"string"==typeof e?Hr.typeOf(n,e):e.some(Hr.typeOf(n))};const{Core:Qr,Schema:Yr,Instance:ea}=He,na=([e,n],t,r,a)=>{if(!ea.typeOf(t,"array"))return!0;const i=Qr.collectEvaluatedItems(e,t,r,a,!0);return!1===i||ea.every((e,o)=>i.has(o)||Qr.interpretSchema(n,ea.step(o,t),r,a),t)};var ta={compile:async(e,n,t)=>[Yr.uri(t),await Qr.compileSchema(e,n)],interpret:na,collectEvaluatedItems:(e,n,t,r)=>na(e,n,t,r)&&new Set(ea.map((e,n)=>n,n))};const{Core:ra,Schema:aa,Instance:ia}=He,oa=([e,n],t,r,a)=>{if(!ia.typeOf(t,"object"))return!0;const i=ra.collectEvaluatedProperties(e,t,r,a,!0);return!i||ia.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>ra.interpretSchema(n,e,r,a))};var sa={compile:async(e,n,t)=>[aa.uri(t),await ra.compileSchema(e,n)],interpret:oa,collectEvaluatedProperties:(e,n,t,r)=>oa(e,n,t,r)&&[new RegExp("")]};const{Schema:ca,Instance:ma}=He;var pa={compile:e=>ca.value(e),interpret:(e,n)=>{if(!ma.typeOf(n,"array")||!1===e)return!0;const t=ma.map(e=>jn(ma.value(e)),n);return new Set(t).size===t.length}};const{Keywords:la}=He;var da={additionalItems:en,additionalItems6:on,additionalProperties:pn,additionalProperties6:yn,allOf:gn,anyOf:On,const:Pn,contains:Cn,containsMinContainsMaxContains:kn,definitions:Ln,dependencies:Un,dependentRequired:Kn,dependentSchemas:Wn,enum:Qn,exclusiveMaximum:nt,exclusiveMinimum:at,if:ot,then:pt,else:ft,items:bt,items202012:jt,maxItems:Pt,maxLength:Ct,maxLength6:Tt,maxProperties:qt,maximumExclusiveMaximum:Vt,maximum:Ut,metaData:la.metaData,minItems:Kt,minLength:Gt,minLength6:Xt,minProperties:er,minimumExclusiveMinimum:rr,minimum:or,multipleOf:pr,not:dr,oneOf:yr,pattern:gr,patternProperties:Sr,properties:Cr,propertyNames:Tr,dynamicRef:Mr,ref:Jr,required:_r,tupleItems:Gr,type:Xr,unevaluatedItems:ta,unevaluatedProperties:sa,uniqueItems:pa,validate:la.validate};const{Core:ua,Schema:fa}=He,ya="http://json-schema.org/draft-04/schema";fa.setConfig(ya,"baseToken","id"),fa.setConfig(ya,"embeddedToken","id"),fa.setConfig(ya,"anchorToken","id"),fa.setConfig(ya,"jrefToken","$ref"),fa.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),ua.defineVocabulary(ya,{validate:da.validate,additionalItems:da.additionalItems,additionalProperties:da.additionalProperties,allOf:da.allOf,anyOf:da.anyOf,default:da.metaData,definitions:da.definitions,dependencies:da.dependencies,description:da.metaData,enum:da.enum,format:da.metaData,items:da.items,maxItems:da.maxItems,maxLength:da.maxLength,maxProperties:da.maxProperties,maximum:da.maximumExclusiveMaximum,minItems:da.minItems,minLength:da.minLength,minProperties:da.minProperties,minimum:da.minimumExclusiveMinimum,multipleOf:da.multipleOf,not:da.not,oneOf:da.oneOf,pattern:da.pattern,patternProperties:da.patternProperties,properties:da.properties,required:da.required,title:da.metaData,type:da.type,uniqueItems:da.uniqueItems});const ha="http://json-schema.org/draft-04/hyper-schema";fa.setConfig(ha,"baseToken","id"),fa.setConfig(ha,"embeddedToken","id"),fa.setConfig(ha,"anchorToken","id"),fa.setConfig(ha,"jrefToken","$ref"),fa.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-04/hyper-schema#",\n "id": "http://json-schema.org/draft-04/hyper-schema#",\n "title": "JSON Hyper-Schema",\n "allOf": [\n {"$ref": "http://json-schema.org/draft-04/schema#"}\n ],\n "properties": {\n "additionalItems": {\n "anyOf": [\n {"type": "boolean"},\n {"$ref": "#"}\n ]\n },\n "additionalProperties": {\n "anyOf": [\n {"type": "boolean"},\n {"$ref": "#"}\n ]\n },\n "dependencies": {\n "additionalProperties": {\n "anyOf": [\n {"$ref": "#"},\n {"type": "array"}\n ]\n }\n },\n "items": {\n "anyOf": [\n {"$ref": "#"},\n {"$ref": "#/definitions/schemaArray"}\n ]\n },\n "definitions": {\n "additionalProperties": {"$ref": "#"}\n },\n "patternProperties": {\n "additionalProperties": {"$ref": "#"}\n },\n "properties": {\n "additionalProperties": {"$ref": "#"}\n },\n "allOf": {"$ref": "#/definitions/schemaArray"},\n "anyOf": {"$ref": "#/definitions/schemaArray"},\n "oneOf": {"$ref": "#/definitions/schemaArray"},\n "not": { "$ref": "#" },\n\n "links": {\n "type": "array",\n "items": {"$ref": "#/definitions/linkDescription"}\n },\n "fragmentResolution": {\n "type": "string"\n },\n "media": {\n "type": "object",\n "properties": {\n "type": {\n "description": "A media type, as described in RFC 2046",\n "type": "string"\n },\n "binaryEncoding": {\n "description": "A content encoding scheme, as described in RFC 2045",\n "type": "string"\n }\n }\n },\n "pathStart": {\n "description": "Instances\' URIs must start with this value for this schema to apply to them",\n "type": "string",\n "format": "uri"\n }\n },\n "definitions": {\n "schemaArray": {\n "type": "array",\n "items": {"$ref": "#"}\n },\n "linkDescription": {\n "title": "Link Description Object",\n "type": "object",\n "required": ["href", "rel"],\n "properties": {\n "href": {\n "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",\n "type": "string"\n },\n "rel": {\n "description": "relation to the target resource of the link",\n "type": "string"\n },\n "title": {\n "description": "a title for the link",\n "type": "string"\n },\n "targetSchema": {\n "description": "JSON Schema describing the link target",\n "$ref": "#"\n },\n "mediaType": {\n "description": "media type (as defined by RFC 2046) describing the link target",\n "type": "string"\n },\n "method": {\n "description": "method for requesting the target of the link (e.g. for HTTP this might be \\"GET\\" or \\"DELETE\\")",\n "type": "string"\n },\n "encType": {\n "description": "The media type in which to submit data along with the request",\n "type": "string",\n "default": "application/json"\n },\n "schema": {\n "description": "Schema describing the data to submit along with the request",\n "$ref": "#"\n }\n }\n },\n "readOnly": {\n "description": "If true, indicates that the value of this property is controlled by the server.",\n "type": "boolean",\n "default": false\n }\n },\n "links": [\n {\n "rel": "self",\n "href": "{+id}"\n },\n {\n "rel": "full",\n "href": "{+($ref)}"\n }\n ]\n}')),ua.defineVocabulary(ha,{validate:da.validate,additionalItems:da.additionalItems,additionalProperties:da.additionalProperties,allOf:da.allOf,anyOf:da.anyOf,default:da.metaData,definitions:da.definitions,dependencies:da.dependencies,description:da.metaData,enum:da.enum,format:da.metaData,fragmentResolution:da.metaData,items:da.items,maxItems:da.maxItems,minProperties:da.minProperties,maxProperties:da.maxProperties,maximum:da.maximumExclusiveMaximum,media:da.metaData,minItems:da.minItems,minLength:da.minLength,maxLength:da.maxLength,minimum:da.minimumExclusiveMinimum,multipleOf:da.multipleOf,links:da.metaData,not:da.not,oneOf:da.oneOf,pathStart:da.metaData,pattern:da.pattern,patternProperties:da.patternProperties,properties:da.properties,readOnly:da.metaData,required:da.required,title:da.metaData,type:da.type,uniqueItems:da.uniqueItems});const{Core:va,Schema:ga}=He,ba="http://json-schema.org/draft-06/schema";ga.setConfig(ba,"baseToken","$id"),ga.setConfig(ba,"embeddedToken","$id"),ga.setConfig(ba,"anchorToken","$id"),ga.setConfig(ba,"jrefToken","$ref"),ga.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),va.defineVocabulary(ba,{validate:da.validate,additionalItems:da.additionalItems6,additionalProperties:da.additionalProperties6,allOf:da.allOf,anyOf:da.anyOf,const:da.const,contains:da.contains,default:da.metaData,definitions:da.definitions,dependencies:da.dependencies,description:da.metaData,enum:da.enum,examples:da.metaData,exclusiveMaximum:da.exclusiveMaximum,exclusiveMinimum:da.exclusiveMinimum,format:da.metaData,items:da.items,maxItems:da.maxItems,maxLength:da.maxLength6,maxProperties:da.maxProperties,maximum:da.maximum,minItems:da.minItems,minLength:da.minLength6,minProperties:da.minProperties,minimum:da.minimum,multipleOf:da.multipleOf,not:da.not,oneOf:da.oneOf,pattern:da.pattern,patternProperties:da.patternProperties,properties:da.properties,propertyNames:da.propertyNames,required:da.required,title:da.metaData,type:da.type,uniqueItems:da.uniqueItems});const{Core:$a,Schema:Oa}=He,Ia="http://json-schema.org/draft-07/schema";Oa.setConfig(Ia,"baseToken","$id"),Oa.setConfig(Ia,"embeddedToken","$id"),Oa.setConfig(Ia,"anchorToken","$id"),Oa.setConfig(Ia,"jrefToken","$ref"),Oa.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),$a.defineVocabulary(Ia,{validate:da.validate,additionalItems:da.additionalItems6,additionalProperties:da.additionalProperties6,allOf:da.allOf,anyOf:da.anyOf,const:da.const,contains:da.contains,default:da.metaData,definitions:da.definitions,dependencies:da.dependencies,description:da.metaData,enum:da.enum,exclusiveMaximum:da.exclusiveMaximum,exclusiveMinimum:da.exclusiveMinimum,format:da.metaData,if:da.if,then:da.then,else:da.else,items:da.items,maxItems:da.maxItems,maxLength:da.maxLength6,maxProperties:da.maxProperties,maximum:da.maximum,minItems:da.minItems,minLength:da.minLength6,minProperties:da.minProperties,minimum:da.minimum,multipleOf:da.multipleOf,not:da.not,oneOf:da.oneOf,pattern:da.pattern,patternProperties:da.patternProperties,properties:da.properties,propertyNames:da.propertyNames,readOnly:da.metaData,required:da.required,title:da.metaData,type:da.type,uniqueItems:da.uniqueItems,writeOnly:da.metaData});const{Core:Sa,Schema:ja}=He,xa="https://json-schema.org/draft/2019-09/schema";ja.setConfig(xa,"baseToken","$id"),ja.setConfig(xa,"embeddedToken","$id"),ja.setConfig(xa,"anchorToken","$anchor"),ja.setConfig(xa,"recursiveAnchorToken","$recursiveAnchor"),ja.setConfig(xa,"vocabularyToken","$vocabulary"),ja.setConfig(xa,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),ja.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),Sa.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:da.validate,$defs:da.definitions,$recursiveRef:da.dynamicRef,$ref:da.ref}),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),Sa.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:da.additionalItems6,additionalProperties:da.additionalProperties6,allOf:da.allOf,anyOf:da.anyOf,contains:da.containsMinContainsMaxContains,dependentSchemas:da.dependentSchemas,if:da.if,then:da.then,else:da.else,items:da.items,not:da.not,oneOf:da.oneOf,patternProperties:da.patternProperties,properties:da.properties,propertyNames:da.propertyNames,unevaluatedItems:da.unevaluatedItems,unevaluatedProperties:da.unevaluatedProperties}),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Sa.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:da.const,dependentRequired:da.dependentRequired,enum:da.enum,exclusiveMaximum:da.exclusiveMaximum,exclusiveMinimum:da.exclusiveMinimum,maxItems:da.maxItems,maxLength:da.maxLength6,maxProperties:da.maxProperties,maximum:da.maximum,minItems:da.minItems,minLength:da.minLength6,minProperties:da.minProperties,minimum:da.minimum,multipleOf:da.multipleOf,pattern:da.pattern,required:da.required,type:da.type,uniqueItems:da.uniqueItems}),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Sa.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:da.metaData,deprecated:da.metaData,description:da.metaData,examples:da.metaData,readOnly:da.metaData,title:da.metaData,writeOnly:da.metaData}),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),ja.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),Sa.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:da.metaData,contentMediaType:da.metaData,contentSchema:da.metaData});const{Core:wa,Schema:Pa}=He,Ea="https://json-schema.org/draft/2020-12/schema";Pa.setConfig(Ea,"baseToken","$id"),Pa.setConfig(Ea,"embeddedToken","$id"),Pa.setConfig(Ea,"anchorToken","$anchor"),Pa.setConfig(Ea,"dynamicAnchorToken","$dynamicAnchor"),Pa.setConfig(Ea,"vocabularyToken","$vocabulary"),Pa.setConfig(Ea,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Pa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:da.validate,$defs:da.definitions,$dynamicRef:da.dynamicRef,$ref:da.ref}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:da.additionalProperties6,allOf:da.allOf,anyOf:da.anyOf,contains:da.containsMinContainsMaxContains,dependentSchemas:da.dependentSchemas,if:da.if,then:da.then,else:da.else,items:da.items202012,not:da.not,oneOf:da.oneOf,patternProperties:da.patternProperties,prefixItems:da.tupleItems,properties:da.properties,propertyNames:da.propertyNames}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:da.const,dependentRequired:da.dependentRequired,enum:da.enum,exclusiveMaximum:da.exclusiveMaximum,exclusiveMinimum:da.exclusiveMinimum,maxItems:da.maxItems,maxLength:da.maxLength6,maxProperties:da.maxProperties,maximum:da.maximum,minItems:da.minItems,minLength:da.minLength6,minProperties:da.minProperties,minimum:da.minimum,multipleOf:da.multipleOf,pattern:da.pattern,required:da.required,type:da.type,uniqueItems:da.uniqueItems}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:da.metaData,deprecated:da.metaData,description:da.metaData,examples:da.metaData,readOnly:da.metaData,title:da.metaData,writeOnly:da.metaData}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:da.metaData}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:da.metaData,contentMediaType:da.metaData,contentSchema:da.metaData}),Pa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),wa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:da.unevaluatedItems,unevaluatedProperties:da.unevaluatedProperties});const{Core:Aa,Schema:Ca,InvalidSchemaError:Na}=He;var Ra={add:Aa.add,get:Ca.get,validate:Aa.validate,compile:Aa.compile,interpret:Aa.interpret,setMetaOutputFormat:Aa.setMetaOutputFormat,setShouldMetaValidate:Aa.setShouldMetaValidate,FLAG:Aa.FLAG,BASIC:Aa.BASIC,DETAILED:Aa.DETAILED,VERBOSE:Aa.VERBOSE,Keywords:da,InvalidSchemaError:Na},Ta=Ra.add,Da=Ra.get,ka=Ra.validate,qa=Ra.compile,Ma=Ra.interpret,La=Ra.setMetaOutputFormat,Va=Ra.setShouldMetaValidate,Ja=Ra.FLAG,Fa=Ra.BASIC,Ua=Ra.DETAILED,_a=Ra.VERBOSE,za=Ra.Keywords,Ka=Ra.InvalidSchemaError;e.BASIC=Fa,e.DETAILED=Ua,e.FLAG=Ja,e.InvalidSchemaError=Ka,e.Keywords=za,e.VERBOSE=_a,e.add=Ta,e.compile=qa,e.default=Ra,e.get=Da,e.interpret=Ma,e.setMetaOutputFormat=La,e.setShouldMetaValidate=Va,e.validate=ka,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
define(["exports"],(function(e){"use strict";var n=function(e,n){return function t(){null==n&&(n=e.length);var r=[].slice.call(arguments);return r.length>=n?e.apply(this,r):function(){return t.apply(this,r.concat([].slice.call(arguments)))}}};var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,n){var r,a;r="object"==typeof window&&window||t,a={},r.PubSub?(a=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=a,function(e){var n={},t=-1;function r(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function a(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?a:r;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,r){var a=function(e,n,t){return function(){var r=String(e),a=r.lastIndexOf(".");for(i(e,e,n,t);-1!==a;)a=(r=r.substr(0,a)).lastIndexOf("."),i(e,r,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,r);return!!function(e){for(var n=String(e),t=o(n)||o("*"),r=n.lastIndexOf(".");!t&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?a():setTimeout(a,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var a="uid_"+String(++t);return n[e][a]=r,a},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var r=e.subscribe(n,(function(){e.unsubscribe(r),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,r,a=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(r in n[t])a++;break}return a},e.getSubscriptions=function(e){var t,r=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&r.push(t);return r},e.unsubscribe=function(t){var r,a,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a=n[r],s&&a[t]){delete a[t],m=t;break}if(c)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===t&&(delete a[i],m=!0)}return m}e.clearSubscriptions(t)}}(a)),void 0!==e&&e.exports&&(n=e.exports=a),n.PubSub=a,e.exports=n=a}));r.PubSub;var a=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,r=e.indexOf("//");n.protocol=t.substring(0,r),r+=2;const a=e.indexOf("/",r),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==a){const e=t.substring(0,a);n.host=e,t=t.substring(a),n.path=t}else n.host=t;return n}(e),r=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(s.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const r=e.indexOf("?"),a=e.indexOf("#");if(-1!==a){const e=t.substring(a);n.hash=e,t=t.substring(0,a)}if(-1!==r){const e=t.substring(r);n.query=e,t=t.substring(0,r)}return n.path=t,n}(n);if(!t.protocol&&!r.netPath)throw new Error("Error, protocol is not specified");if(r.netPath)return r.href.startsWith("//")&&(r.href=t.protocol+r.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),r=!e.includes("?",n),a=!e.includes("#",n);return t&&r&&a}(r.href)?i(r.href):r.href;if(r.absolutePath){const{path:e,query:n,hash:a}=r;return t.host+o(e)+n+a}if(r.relativePath){const{path:e,query:n,hash:a}=r;let i,s=t.path,c=t.host;return 0===e.length?i=s:(s=s.substring(0,s.lastIndexOf("/")),i=o(s+"/"+e)),c+=""!==i||n||a?i+n+a:"/",c}{const{host:e,path:n,query:a}=t;return n||a?e+n+a+r.hash:i(e)}};function i(e){return e+("/"===e[e.length-1]?"":"/")}function o(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,r)=>{"."!==e&&(".."===e?t.pop():""===e&&r!==n.length-1||t.push(e))}),"/"+t.join("/")}const s=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const c={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},m=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]},p=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var l={jsonTypeOf:(e,n)=>c[n](e),splitUrl:m,safeResolveUrl:(e,n)=>{const t=a(e,n),r=m(e)[0];if(r&&"file"===p(t)&&"file"!==p(r))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t}};const u=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(b)},d=(e,n,t,r)=>{if(0===e.length)return t;if(e.length>1){const a=e.shift();return{...n,[a]:d(e,I(n,a,r),t,v(a,r))}}if(Array.isArray(n)){const r=[...n];return r[$(n,e[0])]=t,r}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:I(n,e[0],r)},f=(e,n,t,r)=>{if(0!==e.length)if(1!==e.length||O(n)){const a=e.shift();f(e,I(n,a,r),t,v(a,r))}else{n[$(n,e[0])]=t}},y=(e,n,t)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=I(n,r,t);return{...n,[r]:y(e,a,v(r,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...r}=n;return r}return I(n,e[0],t)}},h=(e,n,t)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=I(n,r,t);h(e,a,v(r,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:I(n,e[0],t)},v=n((e,n)=>n+"/"+g(e)),g=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),b=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),$=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,I=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(O(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[$(e,n)]},O=e=>null===e||"object"!=typeof e;var S={nil:"",append:v,get:(e,n)=>{const t=u(e),r=e=>t.reduce(([e,n],t)=>[I(e,t,n),v(t,n)],[e,""])[0];return void 0===n?r:r(n)},set:(e,t,r)=>{const a=u(e),i=n((e,n)=>d(a,e,n,""));return void 0===t?i:i(t,r)},assign:(e,t,r)=>{const a=u(e),i=n((e,n)=>f(a,e,n,""));return void 0===t?i:i(t,r)},unset:(e,n)=>{const t=u(e),r=e=>y(t,e,"");return void 0===n?r:r(n)},remove:(e,n)=>{const t=u(e),r=e=>h(t,e,"");return void 0===n?r:r(n)}};S.nil,S.append,S.get,S.set,S.assign,S.unset,S.remove;const j=Symbol("$__value"),x=Symbol("$__href");var w={cons:(e,n)=>Object.freeze({[x]:e,[j]:n}),isReference:e=>e&&void 0!==e[x],href:e=>e[x],value:e=>e[j]};const{jsonTypeOf:P}=l,E=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),A=e=>w.isReference(e.value)?w.value(e.value):e.value,C=n((e,n)=>P(A(e),n)),N=(e,n)=>Object.freeze({...n,pointer:S.append(e,n.pointer),value:A(n)[e]}),R=n((e,n)=>A(n).map((t,r,a,i)=>e(N(r,n),r,a,i))),T=n((e,n)=>A(n).map((e,t,r,a)=>N(t,n)).filter((n,t,r,a)=>e(n,t,r,a))),D=n((e,n,t)=>A(t).reduce((n,r,a)=>e(n,N(a,t),a),n)),M=n((e,n)=>A(n).every((t,r,a,i)=>e(N(r,n),r,a,i))),k=n((e,n)=>A(n).some((t,r,a,i)=>e(N(r,n),r,a,i)));var q={nil:E,cons:(e,n="")=>Object.freeze({...E,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:A,has:(e,n)=>e in A(n),typeOf:C,step:N,entries:e=>Object.keys(A(e)).map(n=>[n,N(n,e)]),keys:e=>Object.keys(A(e)),map:R,filter:T,reduce:D,every:M,some:k,length:e=>A(e).length},L=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,V=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,J=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_=/\\([\u000b\u0020-\u00ff])/g,U=/([\\"])/g,z=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function F(e){var n=String(e);if(J.test(n))return n;if(n.length>0&&!V.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(U,"\\$1")+'"'}function K(e){this.parameters=Object.create(null),this.type=e}var B={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!z.test(t))throw new TypeError("invalid type");var r=t;if(n&&"object"==typeof n)for(var a,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(a=i[o],!J.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+F(n[a])}return r},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),r=-1!==t?n.substr(0,t).trim():n.trim();if(!z.test(r))throw new TypeError("invalid media type");var a=new K(r.toLowerCase());if(-1!==t){var i,o,s;for(L.lastIndex=t;o=L.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(_,"$1")),a.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return a}},Z=async e=>Object.entries(await e),G=n(async(e,n)=>(await n).map(e)),W=n(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),X=n(async(e,n,t={})=>W(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),H=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).some(e=>e)}),Q=n(async(e,n)=>{const t=await G(e,n);return(await Promise.all(t)).every(e=>e)}),Y=n((e,n)=>e.reduce(async(e,n)=>n(await e),n)),ee={entries:Z,map:G,filter:X,reduce:W,some:H,every:Q,pipeline:Y,all:e=>Promise.all(e),allValues:e=>Y([Z,W(async(e,[n,t])=>(e[n]=await t,e),{})],e)};ee.entries,ee.map,ee.filter,ee.reduce,ee.some,ee.every,ee.pipeline,ee.all,ee.allValues;var ne=fetch;const{jsonTypeOf:te,splitUrl:re,safeResolveUrl:ae}=l,ie={},oe={},se=(e,n)=>{const t=e in oe?oe[e]:e;if(t in ie)return ie[t][n]},ce={},me={},pe=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const r=re(e.$schema||t)[0];if(!r)throw Error("Couldn't determine schema version");delete e.$schema;const a=se(r,"baseToken"),i=se(r,"anchorToken"),o=re(n)[0];if(!o&&!re(e[a]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=ae(o,e[a]||""),[c,m]=re(s);delete e[a],m&&a===i&&(e[i]=i!==a?encodeURI(m):"#"+encodeURI(m)),o&&(me[o]=c);const p={},l=se(r,"recursiveAnchorToken");let u;!0===e[l]&&(p[""]=c+"#",e[i]="",delete e[l]);const d=se(r,"vocabularyToken");te(e[d],"object")?(oe[c]=r,u=e[d],delete e[d]):(oe[c]=r,u={[r]:!0});const f={"":""};return ce[c]={id:c,schemaVersion:r,schema:le(e,c,r,S.nil,f,p),anchors:f,dynamicAnchors:p,vocabulary:u,validated:!1},c},le=(e,n,t,r,a,i)=>{if(te(e,"object")){const o="string"==typeof e.$schema?re(e.$schema)[0]:t,s=se(o,"embeddedToken"),c=se(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=ae(n,e[s]);return e[s]=r,pe(e,r,t),w.cons(e[s],e)}const m=se(t,"anchorToken"),p=se(t,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${n}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const l=se(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==l?e[m]:e[m].slice(1);a[n]=r,delete e[m]}const u=se(t,"jrefToken");if("string"==typeof e[u])return w.cons(e[u],e);for(const o in e)e[o]=le(e[o],n,t,S.append(o,r),a,i);return e}return Array.isArray(e)?e.map((e,o)=>le(e,n,t,S.append(o,r),a,i)):e},ue=e=>ce[me[e]]||ce[e],de=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:S.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),fe=async(e,n=de)=>{const t=ae(ve(n),e),[r,a]=re(t);if(!(e=>e in ce||e in me)(r)){const e=await ne(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+r);if(e.headers.has("content-type")){const n=B.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${r} is not a schema. Found a document with media type: ${n}`)}pe(await e.json(),r)}const i=ue(r),o="/"!==a[0]?he(i,a):a,s=Object.freeze({...i,pointer:o,value:S.get(o,i.schema)});return ye(s)},ye=e=>w.isReference(e.value)?fe(w.href(e.value),e):e,he=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},ve=e=>`${e.id}#${encodeURI(e.pointer)}`,ge=e=>w.isReference(e.value)?w.value(e.value):e.value,be=(e,n)=>{const t=ue(n.id),r=Object.freeze({...n,pointer:S.append(e,n.pointer),value:ge(n)[e],validated:t.validated});return ye(r)},$e=n((e,n)=>ee.pipeline([ge,ee.map(async(t,r)=>e(await be(r,n),r)),ee.all],n));var Ie={setConfig:(e,n,t)=>{ie[e]||(ie[e]={}),ie[e][n]=t},getConfig:se,add:pe,get:fe,markValidated:e=>{ce[e].validated=!0},uri:ve,value:ge,getAnchorPointer:he,typeOf:(e,n)=>te(ge(e),n),has:(e,n)=>e in ge(n),step:be,keys:e=>Object.keys(ge(e)),entries:e=>ee.pipeline([ge,Object.keys,ee.map(async n=>[n,await be(n,e)]),ee.all],e),map:$e,length:e=>ge(e).length};Ie.setConfig,Ie.getConfig,Ie.add,Ie.get,Ie.markValidated,Ie.uri,Ie.value,Ie.getAnchorPointer,Ie.typeOf,Ie.has,Ie.step,Ie.keys,Ie.entries,Ie.map,Ie.length;class Oe extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var Se=Oe;const{splitUrl:je}=l,xe="FLAG",we="BASIC",Pe="DETAILED",Ee="VERBOSE";let Ae=Pe,Ce=!0;const Ne=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ve(e,n)}},Re=n(({ast:e,schemaUri:n},t,a=xe)=>{if(![xe,we,Pe,Ee].includes(a))throw Error(`The '${a}' error format is not supported`);const i=[],o=r.subscribe("result",Te(a,i));return _e(n,t,e,{}),r.unsubscribe(o),i[0]}),Te=(e,n)=>{const t=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i,errors:[]};t.push(o)}else if("result.start"===r)t.push(r);else if("result.end"===r){const r=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),a=[n];e===we&&(a.push(...n.errors),delete n.errors),(e===Ee||e!==xe&&!n.valid)&&r.errors.unshift(...a)}t[t.length-1]=r,n[0]=r}}},De={},Me=e=>De[e],ke=e=>e in De,qe={},Le={},Ve=async(e,n)=>{if(e=await Je(e),!ke(e.schemaVersion+"#validate")){const n=await Ie.get(e.schemaVersion);(Ie.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in qe)Object.entries(qe[e]).forEach(([e,t])=>{((e,n)=>{De[e]={collectEvaluatedItems:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&new Set,collectEvaluatedProperties:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Ce&&!e.validated){if(Ie.markValidated(e.id),!(e.schemaVersion in Le)){const n=await Ie.get(e.schemaVersion),t=await Ne(n);Le[n.id]=Re(t)}const n=q.cons(e.schema,e.id),t=Le[e.schemaVersion](n,Ae);if(!t.valid)throw new Se(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Me(e.schemaVersion+"#validate").compile(e,n)},Je=async e=>Ie.typeOf(e,"string")?Je(await Ie.get(Ie.value(e),e)):e,_e=(e,n,t,r)=>{const a=Ue(e,t),i=je(e)[0];return Me(a).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...r})},Ue=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var ze={validate:async(e,n,t)=>{const r=await Ne(e),a=(e,n)=>Re(r,q.cons(e),n);return void 0===n?a:a(n,t)},compile:Ne,interpret:Re,setMetaOutputFormat:e=>{Ae=e},setShouldMetaValidate:e=>{Ce=e},FLAG:xe,BASIC:we,DETAILED:Pe,VERBOSE:Ee,add:(e,n="",t="")=>{const r=Ie.add(e,n,t);delete Le[r]},getKeyword:Me,hasKeyword:ke,defineVocabulary:(e,n)=>{qe[e]=n},compileSchema:Ve,interpretSchema:_e,collectEvaluatedProperties:(e,n,t,r,a)=>{const i=Ue(e,t);return Me(i).collectEvaluatedProperties(e,n,t,r,a)},collectEvaluatedItems:(e,n,t,r,a)=>{const i=Ue(e,t);return Me(i).collectEvaluatedItems(e,n,t,r,a)}};var Fe={compile:e=>Ie.value(e),interpret:()=>!0};var Ke={compile:async(e,n)=>{const t=Ie.uri(e);if(!(t in n)){n[t]=!1;const r=Ie.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${Ie.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",Ie.uri(e),"boolean"==typeof r?r:await ee.pipeline([Ie.entries,ee.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),ee.filter(([n])=>ze.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),ee.map(async([t,r])=>{const a=await ze.getKeyword(t).compile(r,n,e);return[t,Ie.uri(r),a]}),ee.all],e)]}return t},interpret:(e,n,t,a)=>{const[i,o,s]=t[e];r.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{r.publishSync("result.start");const s=ze.getKeyword(e).interpret(o,n,t,a);return r.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:q.uri(n),valid:s,ast:o}),r.publishSync("result.end"),s});return r.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:q.uri(n),valid:c,ast:e}),r.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!a||!e.endsWith("#unevaluatedProperties")).reduce((e,[a,,i])=>{const o=e&&ze.getKeyword(a).collectEvaluatedProperties(i,n,t,r);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!a||!e.endsWith("#unevaluatedItems")).reduce((e,[a,,i])=>{const o=!1!==e&&ze.getKeyword(a).collectEvaluatedItems(i,n,t,r);return!1!==o&&new Set([...e,...o])},new Set)}},Be={metaData:Fe,validate:Ke},Ze={Core:ze,Schema:Ie,Instance:q,Reference:w,Keywords:Be,InvalidSchemaError:Se};const{Core:Ge,Schema:We,Instance:Xe}=Ze;var He={compile:async(e,n,t)=>{const r=await We.step("items",t),a=We.typeOf(r,"array")?We.length(r):Number.MAX_SAFE_INTEGER;return We.typeOf(e,"boolean")?[a,We.value(e)]:[a,await Ge.compileSchema(e,n)]},interpret:([e,n],t,r,a)=>!Xe.typeOf(t,"array")||("string"==typeof n?Xe.every((t,i)=>i<e||Ge.interpretSchema(n,t,r,a),t):Xe.every((t,r)=>r<e||n,t))};const{Core:Qe,Schema:Ye,Instance:en}=Ze,nn=([e,n],t,r,a)=>!en.typeOf(t,"array")||en.every((t,i)=>i<e||Qe.interpretSchema(n,t,r,a),t);var tn={compile:async(e,n,t)=>{const r=await Ye.step("items",t);return[Ye.typeOf(r,"array")?Ye.length(r):Number.MAX_SAFE_INTEGER,await Qe.compileSchema(e,n)]},interpret:nn,collectEvaluatedItems:(e,n,t,r)=>nn(e,n,t,r)&&new Set(en.map((e,n)=>n,n))};const{Core:rn,Schema:an,Instance:on}=Ze;var sn={compile:async(e,n,t)=>{const r=await an.step("properties",t),a=an.typeOf(r,"object")?an.keys(r):[],i=await an.step("patternProperties",t),o=an.typeOf(i,"object")?an.keys(i).map(e=>new RegExp(e)):[];return an.typeOf(e,"boolean")?[a,o,an.value(e)]:[a,o,await rn.compileSchema(e,n)]},interpret:([e,n,t],r,a,i)=>{if(!on.typeOf(r,"object"))return!0;const o=on.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>rn.interpretSchema(t,e,a,i)):0===o.length||t}};const{Core:cn,Schema:mn,Instance:pn}=Ze,ln=([e,n,t],r,a,i)=>!pn.typeOf(r,"object")||pn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>cn.interpretSchema(t,e,a,i));var un={compile:async(e,n,t)=>{const r=await mn.step("properties",t),a=mn.typeOf(r,"object")?mn.keys(r):[],i=await mn.step("patternProperties",t);return[a,mn.typeOf(i,"object")?mn.keys(i).map(e=>new RegExp(e)):[],await cn.compileSchema(e,n)]},interpret:ln,collectEvaluatedProperties:(e,n,t,r)=>ln(e,n,t,r)&&[new RegExp("")]};const{Core:dn,Schema:fn}=Ze;var yn={compile:(e,n)=>ee.pipeline([fn.map(async e=>dn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.every(e=>dn.interpretSchema(e,n,t,r)),collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=e&&dn.collectEvaluatedProperties(a,n,t,r);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=!1!==e&&dn.collectEvaluatedItems(a,n,t,r);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:hn,Schema:vn}=Ze;var gn={compile:(e,n)=>ee.pipeline([vn.map(async e=>hn.compileSchema(await e,n)),ee.all],e),interpret:(e,n,t,r)=>e.filter(e=>hn.interpretSchema(e,n,t,r)).length>0,collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=hn.collectEvaluatedProperties(a,n,t,r);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=hn.collectEvaluatedItems(a,n,t,r);return!1!==i?new Set([...e||[],...i]):e},!1)},bn=Object.keys,$n=JSON.stringify;var In=function(e){return""+function e(n,t){var r,a,i,o,s,c,m;if("string"===(m=typeof n))return $n(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",a=n.length-1,r=0;r<a;r++)i+=e(n[r],!1)+",";return a>-1&&(i+=e(n[r],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(a=(o=bn(n).sort()).length,i="",r=0;r<a;)void 0!==(c=e(n[s=o[r]],!0))&&(r&&""!==i&&(i+=","),i+=$n(s)+":"+c),r++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:On,Instance:Sn}=Ze;var jn={compile:e=>In(On.value(e)),interpret:(e,n)=>In(Sn.value(n))===e};const{Core:xn,Instance:wn}=Ze;var Pn={compile:(e,n)=>xn.compileSchema(e,n),interpret:(e,n,t,r)=>!wn.typeOf(n,"array")||wn.some(n=>xn.interpretSchema(e,n,t,r),n)};const{Core:En,Schema:An,Instance:Cn}=Ze,Nn=({contains:e,minContains:n,maxContains:t},r,a,i)=>{if(!Cn.typeOf(r,"array"))return!0;const o=Cn.reduce((n,t)=>En.interpretSchema(e,t,a,i)?n+1:n,0,r);return o>=n&&o<=t};var Rn={compile:async(e,n,t)=>{const r=await En.compileSchema(e,n),a=await An.step("minContains",t),i=An.typeOf(a,"number")?An.value(a):1,o=await An.step("maxContains",t);return{contains:r,minContains:i,maxContains:An.typeOf(o,"number")?An.value(o):Number.MAX_SAFE_INTEGER}},interpret:Nn,collectEvaluatedItems:(e,n,t,r)=>Nn(e,n,t,r)&&Cn.reduce((n,a,i)=>En.interpretSchema(e.contains,a,t,r)?n.add(i):n,new Set,n)};const{Core:Tn,Schema:Dn}=Ze;var Mn={compile:async(e,n)=>{await ee.pipeline([Dn.entries,ee.map(([,e])=>Tn.compileSchema(e,n)),ee.all],e)},interpret:()=>!0};const{Core:kn,Schema:qn,Instance:Ln}=Ze;var Vn={compile:(e,n)=>ee.pipeline([qn.entries,ee.map(async([e,t])=>[e,qn.typeOf(t,"array")?qn.value(t):await kn.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=Ln.value(n);return!Ln.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||(Array.isArray(i)?i.every(e=>e in a):kn.interpretSchema(i,n,t,r)))}};const{Schema:Jn,Instance:_n}=Ze;var Un={compile:e=>ee.pipeline([Jn.entries,ee.map(([e,n])=>[e,Jn.value(n)]),ee.all],e),interpret:(e,n)=>{const t=_n.value(n);return!_n.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:zn,Schema:Fn,Instance:Kn}=Ze;var Bn={compile:(e,n)=>ee.pipeline([Fn.entries,ee.map(async([e,t])=>[e,await zn.compileSchema(t,n)]),ee.all],e),interpret:(e,n,t,r)=>{const a=Kn.value(n);return!Kn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||zn.interpretSchema(i,n,t,r))},collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,[a,i])=>{if(!e||!Kn.has(a,n))return e;const o=zn.collectEvaluatedProperties(i,n,t,r);return!1!==o&&e.concat(o)},[])};const{Schema:Zn,Instance:Gn}=Ze;var Wn={compile:e=>Zn.value(e).map(In),interpret:(e,n)=>e.some(e=>In(Gn.value(n))===e)};const{Schema:Xn,Instance:Hn}=Ze;var Qn={compile:async e=>Xn.value(e),interpret:(e,n)=>!Hn.typeOf(n,"number")||Hn.value(n)<e};const{Schema:Yn,Instance:et}=Ze;var nt={compile:async e=>Yn.value(e),interpret:(e,n)=>!et.typeOf(n,"number")||et.value(n)>e};const{Core:tt}=Ze;var rt={compile:(e,n)=>tt.compileSchema(e,n),interpret:(e,n,t,r)=>(tt.interpretSchema(e,n,t,r),!0),collectEvaluatedProperties:(e,n,t,r)=>tt.collectEvaluatedProperties(e,n,t,r)||[],collectEvaluatedItems:(e,n,t,r)=>tt.collectEvaluatedItems(e,n,t,r)||new Set};const{Core:at,Schema:it}=Ze,ot=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>at.getKeyword(e).interpret(a,n,t,r))};var st={compile:async(e,n,t)=>{if(it.has("if",t)){const r=await it.step("if",t);return[await at.compileSchema(r,n),await at.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||!ot(e,t,r,a)||at.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0!==e&&ot(e,t,r,a)?at.collectEvaluatedProperties(n,t,r,a):[],collectEvaluatedItems:([e,n],t,r,a)=>void 0!==e&&ot(e,t,r,a)?at.collectEvaluatedItems(n,t,r,a):new Set};const{Core:ct,Schema:mt}=Ze,pt=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>ct.getKeyword(e).interpret(a,n,t,r))};var lt={compile:async(e,n,t)=>{if(mt.has("if",t)){const r=await mt.step("if",t);return[await ct.compileSchema(r,n),await ct.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)||ct.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)?[]:ct.collectEvaluatedProperties(n,t,r,a),collectEvaluatedItems:([e,n],t,r,a)=>void 0===e||pt(e,t,r,a)?new Set:ct.collectEvaluatedItems(n,t,r,a)};const{Core:ut,Schema:dt,Instance:ft}=Ze,yt=(e,n,t,r)=>!ft.typeOf(n,"array")||("string"==typeof e?ft.every(n=>ut.interpretSchema(e,n,t,r),n):ft.every((n,a)=>!(a in e)||ut.interpretSchema(e[a],n,t,r),n));var ht={compile:async(e,n)=>{if(dt.typeOf(e,"array")){const t=await dt.map(e=>ut.compileSchema(e,n),e);return Promise.all(t)}return ut.compileSchema(e,n)},interpret:yt,collectEvaluatedItems:(e,n,t,r)=>yt(e,n,t,r)&&("string"==typeof e?new Set(ft.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:vt,Schema:gt,Instance:bt}=Ze,$t=([e,n],t,r,a)=>!bt.typeOf(t,"array")||bt.every((t,i)=>i<e||vt.interpretSchema(n,t,r,a),t);var It={compile:async(e,n,t)=>{const r=await gt.step("prefixItems",t);return[gt.typeOf(r,"array")?gt.length(r):0,await vt.compileSchema(e,n)]},interpret:$t,collectEvaluatedItems:(e,n,t,r)=>$t(e,n,t,r)&&new Set(bt.map((e,n)=>n,n))};const{Schema:Ot,Instance:St}=Ze;var jt={compile:e=>Ot.value(e),interpret:(e,n)=>!St.typeOf(n,"array")||St.length(n)<=e};const{Schema:xt,Instance:wt}=Ze;var Pt={compile:e=>xt.value(e),interpret:(e,n)=>!wt.typeOf(n,"string")||wt.length(n)<=e};const{Schema:Et,Instance:At}=Ze;var Ct={compile:e=>Et.value(e),interpret:(e,n)=>!At.typeOf(n,"string")||[...At.value(n)].length<=e};const{Schema:Nt,Instance:Rt}=Ze;var Tt={compile:e=>Nt.value(e),interpret:(e,n)=>!Rt.typeOf(n,"object")||Rt.keys(n).length<=e};const{Schema:Dt,Instance:Mt}=Ze;var kt={compile:async(e,n,t)=>{const r=await Dt.step("exclusiveMaximum",t),a=Dt.value(r);return[Dt.value(e),a]},interpret:([e,n],t)=>{if(!Mt.typeOf(t,"number"))return!0;const r=Mt.value(t);return n?r<e:r<=e}};const{Schema:qt,Instance:Lt}=Ze;var Vt={compile:async e=>qt.value(e),interpret:(e,n)=>!Lt.typeOf(n,"number")||Lt.value(n)<=e};const{Schema:Jt,Instance:_t}=Ze;var Ut={compile:e=>Jt.value(e),interpret:(e,n)=>!_t.typeOf(n,"array")||_t.length(n)>=e};const{Schema:zt,Instance:Ft}=Ze;var Kt={compile:e=>zt.value(e),interpret:(e,n)=>!Ft.typeOf(n,"string")||Ft.length(n)>=e};const{Schema:Bt,Instance:Zt}=Ze;var Gt={compile:e=>Bt.value(e),interpret:(e,n)=>!Zt.typeOf(n,"string")||[...Zt.value(n)].length>=e};const{Schema:Wt,Instance:Xt}=Ze;var Ht={compile:e=>Wt.value(e),interpret:(e,n)=>!Xt.typeOf(n,"object")||Xt.keys(n).length>=e};const{Schema:Qt,Instance:Yt}=Ze;var er={compile:async(e,n,t)=>{const r=await Qt.step("exclusiveMinimum",t),a=Qt.value(r);return[Qt.value(e),a]},interpret:([e,n],t)=>{if(!Yt.typeOf(t,"number"))return!0;const r=Yt.value(t);return n?r>e:r>=e}};const{Schema:nr,Instance:tr}=Ze;var rr={compile:async e=>nr.value(e),interpret:(e,n)=>!tr.typeOf(n,"number")||tr.value(n)>=e};const{Schema:ar,Instance:ir}=Ze,or=(e,n)=>Math.abs(e-n)<1.1920929e-7;var sr={compile:e=>ar.value(e),interpret:(e,n)=>{if(!ir.typeOf(n,"number"))return!0;const t=ir.value(n)%e;return or(0,t)||or(e,t)}};const{Core:cr}=Ze;var mr={compile:cr.compileSchema,interpret:(e,n,t,r)=>!cr.interpretSchema(e,n,t,r)};const{Core:pr,Schema:lr}=Ze;var ur={compile:async(e,n)=>{const t=await lr.map(e=>pr.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,r)=>{let a=0;for(const i of e)if(pr.interpretSchema(i,n,t,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=pr.collectEvaluatedProperties(i,n,t,r);return o?0==a++&&o:e},!1)},collectEvaluatedItems:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=pr.collectEvaluatedItems(i,n,t,r);return o?0==a++&&o:e},!1)}};const{Schema:dr,Instance:fr}=Ze;var yr={compile:e=>new RegExp(dr.value(e),"u"),interpret:(e,n)=>!fr.typeOf(n,"string")||e.test(fr.value(n))};const{Core:hr,Schema:vr,Instance:gr}=Ze,br=(e,n,t,r)=>!gr.typeOf(n,"object")||e.every(([e,a])=>gr.entries(n).filter(([n])=>e.test(n)).every(([,e])=>hr.interpretSchema(a,e,t,r)));var $r={compile:(e,n)=>ee.pipeline([vr.entries,ee.map(async([e,t])=>[new RegExp(e,"u"),await hr.compileSchema(t,n)]),ee.all],e),interpret:br,collectEvaluatedProperties:(e,n,t,r)=>br(e,n,t,r)&&e.map(([e])=>e)};var Ir={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]}};const{Core:Or,Schema:Sr,Instance:jr}=Ze,{escapeRegExp:xr}=Ir,wr=(e,n,t,r)=>!jr.typeOf(n,"object")||jr.entries(n).filter(([n])=>n in e).every(([n,a])=>Or.interpretSchema(e[n],a,t,r));var Pr={compile:(e,n)=>ee.pipeline([Sr.entries,ee.reduce(async(e,[t,r])=>(e[t]=await Or.compileSchema(r,n),e),Object.create(null))],e),interpret:wr,collectEvaluatedProperties:(e,n,t,r)=>wr(e,n,t,r)&&Object.keys(e).map(e=>new RegExp(`^${xr(e)}$`))};const{Core:Er,Instance:Ar}=Ze;var Cr={compile:(e,n)=>Er.compileSchema(e,n),interpret:(e,n,t,r)=>!Ar.typeOf(n,"object")||Ar.keys(n).every(n=>Er.interpretSchema(e,Ar.cons(n),t,r))};const{Core:Nr,Schema:Rr}=Ze,{splitUrl:Tr}=Ir;var Dr={compile:async(e,n)=>{const[,t]=Tr(Rr.value(e)),r=await Rr.get(Rr.value(e),e);return await Nr.compileSchema(r,n),[r.id,t]},interpret:([e,n],t,r,a)=>{if(n in r.metaData[e].dynamicAnchors)return Nr.interpretSchema(a[n],t,r,a);{const i=Rr.getAnchorPointer(r.metaData[e],n);return Nr.interpretSchema(`${e}#${encodeURI(i)}`,t,r,a)}},collectEvaluatedProperties:Nr.collectEvaluatedProperties,collectEvaluatedItems:Nr.collectEvaluatedItems};const{Core:Mr,Schema:kr}=Ze;var qr={compile:async(e,n)=>{const t=await kr.get(kr.value(e),e);return Mr.compileSchema(t,n)},interpret:Mr.interpretSchema,collectEvaluatedProperties:Mr.collectEvaluatedProperties,collectEvaluatedItems:Mr.collectEvaluatedItems};const{Schema:Lr,Instance:Vr}=Ze;var Jr={compile:e=>Lr.value(e),interpret:(e,n)=>!Vr.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Vr.value(n),e))};const{Core:_r,Schema:Ur,Instance:zr}=Ze,Fr=(e,n,t,r)=>!zr.typeOf(n,"array")||zr.every((n,a)=>!(a in e)||_r.interpretSchema(e[a],n,t,r),n);var Kr={compile:(e,n)=>ee.pipeline([Ur.map(e=>_r.compileSchema(e,n)),ee.all],e),interpret:Fr,collectEvaluatedItems:(e,n,t,r)=>Fr(e,n,t,r)&&new Set(e.map((e,n)=>n))};const{Schema:Br,Instance:Zr}=Ze;var Gr={compile:e=>Br.value(e),interpret:(e,n)=>"string"==typeof e?Zr.typeOf(n,e):e.some(Zr.typeOf(n))};const{Core:Wr,Schema:Xr,Instance:Hr}=Ze,Qr=([e,n],t,r,a)=>{if(!Hr.typeOf(t,"array"))return!0;const i=Wr.collectEvaluatedItems(e,t,r,a,!0);return!1===i||Hr.every((e,o)=>i.has(o)||Wr.interpretSchema(n,Hr.step(o,t),r,a),t)};var Yr={compile:async(e,n,t)=>[Xr.uri(t),await Wr.compileSchema(e,n)],interpret:Qr,collectEvaluatedItems:(e,n,t,r)=>Qr(e,n,t,r)&&new Set(Hr.map((e,n)=>n,n))};const{Core:ea,Schema:na,Instance:ta}=Ze,ra=([e,n],t,r,a)=>{if(!ta.typeOf(t,"object"))return!0;const i=ea.collectEvaluatedProperties(e,t,r,a,!0);return!i||ta.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>ea.interpretSchema(n,e,r,a))};var aa={compile:async(e,n,t)=>[na.uri(t),await ea.compileSchema(e,n)],interpret:ra,collectEvaluatedProperties:(e,n,t,r)=>ra(e,n,t,r)&&[new RegExp("")]};const{Schema:ia,Instance:oa}=Ze;var sa={compile:e=>ia.value(e),interpret:(e,n)=>{if(!oa.typeOf(n,"array")||!1===e)return!0;const t=oa.map(e=>In(oa.value(e)),n);return new Set(t).size===t.length}};const{Keywords:ca}=Ze;var ma={additionalItems:He,additionalItems6:tn,additionalProperties:sn,additionalProperties6:un,allOf:yn,anyOf:gn,const:jn,contains:Pn,containsMinContainsMaxContains:Rn,definitions:Mn,dependencies:Vn,dependentRequired:Un,dependentSchemas:Bn,enum:Wn,exclusiveMaximum:Qn,exclusiveMinimum:nt,if:rt,then:st,else:lt,items:ht,items202012:It,maxItems:jt,maxLength:Pt,maxLength6:Ct,maxProperties:Tt,maximumExclusiveMaximum:kt,maximum:Vt,metaData:ca.metaData,minItems:Ut,minLength:Kt,minLength6:Gt,minProperties:Ht,minimumExclusiveMinimum:er,minimum:rr,multipleOf:sr,not:mr,oneOf:ur,pattern:yr,patternProperties:$r,properties:Pr,propertyNames:Cr,dynamicRef:Dr,ref:qr,required:Jr,tupleItems:Kr,type:Gr,unevaluatedItems:Yr,unevaluatedProperties:aa,uniqueItems:sa,validate:ca.validate};const{Core:pa,Schema:la}=Ze,ua="http://json-schema.org/draft-04/schema";la.setConfig(ua,"baseToken","id"),la.setConfig(ua,"embeddedToken","id"),la.setConfig(ua,"anchorToken","id"),la.setConfig(ua,"jrefToken","$ref"),la.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),pa.defineVocabulary(ua,{validate:ma.validate,additionalItems:ma.additionalItems,additionalProperties:ma.additionalProperties,allOf:ma.allOf,anyOf:ma.anyOf,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,format:ma.metaData,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength,maxProperties:ma.maxProperties,maximum:ma.maximumExclusiveMaximum,minItems:ma.minItems,minLength:ma.minLength,minProperties:ma.minProperties,minimum:ma.minimumExclusiveMinimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems});const{Core:da,Schema:fa}=Ze,ya="http://json-schema.org/draft-06/schema";fa.setConfig(ya,"baseToken","$id"),fa.setConfig(ya,"embeddedToken","$id"),fa.setConfig(ya,"anchorToken","$id"),fa.setConfig(ya,"jrefToken","$ref"),fa.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),da.defineVocabulary(ya,{validate:ma.validate,additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,const:ma.const,contains:ma.contains,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,examples:ma.metaData,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,format:ma.metaData,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems});const{Core:ha,Schema:va}=Ze,ga="http://json-schema.org/draft-07/schema";va.setConfig(ga,"baseToken","$id"),va.setConfig(ga,"embeddedToken","$id"),va.setConfig(ga,"anchorToken","$id"),va.setConfig(ga,"jrefToken","$ref"),va.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),ha.defineVocabulary(ga,{validate:ma.validate,additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,const:ma.const,contains:ma.contains,default:ma.metaData,definitions:ma.definitions,dependencies:ma.dependencies,description:ma.metaData,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,format:ma.metaData,if:ma.if,then:ma.then,else:ma.else,items:ma.items,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,not:ma.not,oneOf:ma.oneOf,pattern:ma.pattern,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,readOnly:ma.metaData,required:ma.required,title:ma.metaData,type:ma.type,uniqueItems:ma.uniqueItems,writeOnly:ma.metaData});const{Core:ba,Schema:$a}=Ze,Ia="https://json-schema.org/draft/2019-09/schema";$a.setConfig(Ia,"baseToken","$id"),$a.setConfig(Ia,"embeddedToken","$id"),$a.setConfig(Ia,"anchorToken","$anchor"),$a.setConfig(Ia,"recursiveAnchorToken","$recursiveAnchor"),$a.setConfig(Ia,"vocabularyToken","$vocabulary"),$a.setConfig(Ia,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),$a.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:ma.validate,$defs:ma.definitions,$recursiveRef:ma.dynamicRef,$ref:ma.ref}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:ma.additionalItems6,additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,contains:ma.containsMinContainsMaxContains,dependentSchemas:ma.dependentSchemas,if:ma.if,then:ma.then,else:ma.else,items:ma.items,not:ma.not,oneOf:ma.oneOf,patternProperties:ma.patternProperties,properties:ma.properties,propertyNames:ma.propertyNames,unevaluatedItems:ma.unevaluatedItems,unevaluatedProperties:ma.unevaluatedProperties}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:ma.const,dependentRequired:ma.dependentRequired,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,pattern:ma.pattern,required:ma.required,type:ma.type,uniqueItems:ma.uniqueItems}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:ma.metaData,deprecated:ma.metaData,description:ma.metaData,examples:ma.metaData,readOnly:ma.metaData,title:ma.metaData,writeOnly:ma.metaData}),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),$a.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),ba.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:ma.metaData,contentMediaType:ma.metaData,contentSchema:ma.metaData});const{Core:Oa,Schema:Sa}=Ze,ja="https://json-schema.org/draft/2020-12/schema";Sa.setConfig(ja,"baseToken","$id"),Sa.setConfig(ja,"embeddedToken","$id"),Sa.setConfig(ja,"anchorToken","$anchor"),Sa.setConfig(ja,"dynamicAnchorToken","$dynamicAnchor"),Sa.setConfig(ja,"vocabularyToken","$vocabulary"),Sa.setConfig(ja,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Sa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:ma.validate,$defs:ma.definitions,$dynamicRef:ma.dynamicRef,$ref:ma.ref}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:ma.additionalProperties6,allOf:ma.allOf,anyOf:ma.anyOf,contains:ma.containsMinContainsMaxContains,dependentSchemas:ma.dependentSchemas,if:ma.if,then:ma.then,else:ma.else,items:ma.items202012,not:ma.not,oneOf:ma.oneOf,patternProperties:ma.patternProperties,prefixItems:ma.tupleItems,properties:ma.properties,propertyNames:ma.propertyNames}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:ma.const,dependentRequired:ma.dependentRequired,enum:ma.enum,exclusiveMaximum:ma.exclusiveMaximum,exclusiveMinimum:ma.exclusiveMinimum,maxItems:ma.maxItems,maxLength:ma.maxLength6,maxProperties:ma.maxProperties,maximum:ma.maximum,minItems:ma.minItems,minLength:ma.minLength6,minProperties:ma.minProperties,minimum:ma.minimum,multipleOf:ma.multipleOf,pattern:ma.pattern,required:ma.required,type:ma.type,uniqueItems:ma.uniqueItems}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:ma.metaData,deprecated:ma.metaData,description:ma.metaData,examples:ma.metaData,readOnly:ma.metaData,title:ma.metaData,writeOnly:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:ma.metaData,contentMediaType:ma.metaData,contentSchema:ma.metaData}),Sa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),Oa.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:ma.unevaluatedItems,unevaluatedProperties:ma.unevaluatedProperties});const{Core:xa,Schema:wa,InvalidSchemaError:Pa}=Ze;var Ea={add:xa.add,get:wa.get,validate:xa.validate,compile:xa.compile,interpret:xa.interpret,setMetaOutputFormat:xa.setMetaOutputFormat,setShouldMetaValidate:xa.setShouldMetaValidate,FLAG:xa.FLAG,BASIC:xa.BASIC,DETAILED:xa.DETAILED,VERBOSE:xa.VERBOSE,Keywords:ma,InvalidSchemaError:Pa},Aa=Ea.add,Ca=Ea.get,Na=Ea.validate,Ra=Ea.compile,Ta=Ea.interpret,Da=Ea.setMetaOutputFormat,Ma=Ea.setShouldMetaValidate,ka=Ea.FLAG,qa=Ea.BASIC,La=Ea.DETAILED,Va=Ea.VERBOSE,Ja=Ea.Keywords,_a=Ea.InvalidSchemaError;e.BASIC=qa,e.DETAILED=La,e.FLAG=ka,e.InvalidSchemaError=_a,e.Keywords=Ja,e.VERBOSE=Va,e.add=Aa,e.compile=Ra,e.default=Ea,e.get=Ca,e.interpret=Ta,e.setMetaOutputFormat=Da,e.setShouldMetaValidate=Ma,e.validate=Na,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=json-schema-amd.min.js.map
|