@hyperjump/json-schema 0.23.1 → 0.23.3

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.
Files changed (40) hide show
  1. package/dist/json-schema-amd.js +495 -762
  2. package/dist/json-schema-amd.js.map +1 -1
  3. package/dist/json-schema-amd.min.js +1 -1
  4. package/dist/json-schema-amd.min.js.map +1 -1
  5. package/dist/json-schema-cjs.js +495 -762
  6. package/dist/json-schema-cjs.js.map +1 -1
  7. package/dist/json-schema-cjs.min.js +1 -1
  8. package/dist/json-schema-cjs.min.js.map +1 -1
  9. package/dist/json-schema-esm.js +495 -762
  10. package/dist/json-schema-esm.js.map +1 -1
  11. package/dist/json-schema-esm.min.js +1 -1
  12. package/dist/json-schema-esm.min.js.map +1 -1
  13. package/dist/json-schema-iife.js +495 -762
  14. package/dist/json-schema-iife.js.map +1 -1
  15. package/dist/json-schema-iife.min.js +1 -1
  16. package/dist/json-schema-iife.min.js.map +1 -1
  17. package/dist/json-schema-system.js +495 -762
  18. package/dist/json-schema-system.js.map +1 -1
  19. package/dist/json-schema-system.min.js +1 -1
  20. package/dist/json-schema-system.min.js.map +1 -1
  21. package/dist/json-schema-umd.js +495 -762
  22. package/dist/json-schema-umd.js.map +1 -1
  23. package/dist/json-schema-umd.min.js +1 -1
  24. package/dist/json-schema-umd.min.js.map +1 -1
  25. package/lib/common.d.ts +1 -0
  26. package/lib/draft-04.d.ts +3 -2
  27. package/lib/draft-06.d.ts +3 -2
  28. package/lib/draft-06.js +2 -2
  29. package/lib/draft-07.d.ts +3 -2
  30. package/lib/draft-07.js +2 -2
  31. package/lib/draft-2019-09.d.ts +3 -2
  32. package/lib/draft-2019-09.js +2 -2
  33. package/lib/draft-2020-12.d.ts +3 -2
  34. package/lib/draft-2020-12.js +2 -2
  35. package/lib/keywords/index.js +0 -2
  36. package/lib/keywords/maxLength.js +1 -1
  37. package/lib/keywords/minLength.js +1 -1
  38. package/package.json +1 -1
  39. package/lib/keywords/maxLength6.js +0 -7
  40. package/lib/keywords/minLength6.js +0 -7
@@ -1,3 +1,3 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var n={exports:{}};!function(t,n){!function(e,r){var a={};e.PubSub?(a=e.PubSub,console.warn("PubSub already loaded, using existing version")):(e.PubSub=a,function(e){var t={},n=-1,r="*";function a(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function o(e,t,n){try{e(t,n)}catch(e){setTimeout(i(e),0)}}function s(e,t,n){e(t,n)}function c(e,n,r,a){var i,c=t[n],l=a?s:o;if(Object.prototype.hasOwnProperty.call(t,n))for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&l(c[i],e,r)}function l(e,t,n){return function(){var a=String(e),i=a.lastIndexOf(".");for(c(e,e,t,n);-1!==i;)i=(a=a.substr(0,i)).lastIndexOf("."),c(e,a,t,n);c(e,r,t,n)}}function p(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&a(t[n]))}function u(e){for(var t=String(e),n=p(t)||p(r),a=t.lastIndexOf(".");!n&&-1!==a;)a=(t=t.substr(0,a)).lastIndexOf("."),n=p(t);return n}function m(e,t,n,r){var a=l(e="symbol"==typeof e?e.toString():e,t,r);return!!u(e)&&(!0===n?a():setTimeout(a,0),!0)}e.publish=function(t,n){return m(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return m(t,n,!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(t,e)||(t[e]={});var a="uid_"+String(++n);return t[e][a]=r,a},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,a=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])a++;break}return a},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,a,i,o=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||o(n)),c=!s&&"string"==typeof n,l="function"==typeof n,p=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(a=t[r],c&&a[n]){delete a[n],p=n;break}if(l)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===n&&(delete a[i],p=!0)}return p}e.clearSubscriptions(n)}}(a)),void 0!==t&&t.exports&&(n=t.exports=a),n.PubSub=a,t.exports=n=a}("object"==typeof window&&window||e)}(n,n.exports);var r={exports:{}};
2
- /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,a=1;a<r;++a)t[a]=t[a].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",a="[0-9]",i=t(a,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",p=t(r,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(r+t(r,a,"[\\+\\-\\.]")+"*"),n(n(o+"|"+t(p,s,"[\\:]"))+"*");var u=n(n("25[0-5]")+"|"+n("2[0-4]"+a)+"|"+n("1"+a+a)+"|"+n("0?[1-9]"+a)+"|0?0?"+a),m=n(u+"\\."+u+"\\."+u+"\\."+u),f=n(i+"{1,4}"),d=n(n(f+"\\:"+f)+"|"+m),h=n(n(f+"\\:")+"{6}"+d),y=n("\\:\\:"+n(f+"\\:")+"{5}"+d),v=n(n(f)+"?\\:\\:"+n(f+"\\:")+"{4}"+d),g=n(n(n(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+n(f+"\\:")+"{3}"+d),b=n(n(n(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+n(f+"\\:")+"{2}"+d),$=n(n(n(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),w=n(n(n(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),x=n(n(n(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),O=n(n(n(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),S=n([h,y,v,g,b,$,w,x,O].join("|")),I=n(n(p+"|"+o)+"+");n("[vV]"+i+"+\\."+t(p,s,"[\\:]")+"+"),n(n(o+"|"+t(p,s))+"*");var E=n(o+"|"+t(p,s,"[\\:\\@]"));return n(n(o+"|"+t(p,s,"[\\@]"))+"+"),n(n(E+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",p,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",p,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",p,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",p,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",p,s),"g"),UNRESERVED:new RegExp(p,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",p,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),p=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},m=2147483647,f=36,d=1,h=26,y=38,v=700,g=72,b=128,$="-",w=/^xn--/,x=/[^\0-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=f-d,E=Math.floor,j=String.fromCharCode;function A(e){throw new RangeError(S[e])}function P(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+P((e=e.replace(O,".")).split("."),t).join(".")}function N(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},k=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,n){var r=0;for(e=n?E(e/v):e>>1,e+=E(e/t);e>I*h>>1;r+=f)e=E(e/I);return E(r+(I+1)*e/(e+y))},D=function(e){var t=[],n=e.length,r=0,a=b,i=g,o=e.lastIndexOf($);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&A("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,p=1,u=f;;u+=f){c>=n&&A("invalid-input");var y=T(e.charCodeAt(c++));(y>=f||y>E((m-r)/p))&&A("overflow"),r+=y*p;var v=u<=i?d:u>=i+h?h:u-i;if(y<v)break;var w=f-v;p>E(m/w)&&A("overflow"),p*=w}var x=t.length+1;i=R(r-l,x,0==l),E(r/x)>m-a&&A("overflow"),a+=E(r/x),r%=x,t.splice(r++,0,a)}return String.fromCodePoint.apply(String,t)},q=function(e){var t=[],n=(e=N(e)).length,r=b,a=0,i=g,o=!0,s=!1,c=void 0;try{for(var l,p=e[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var u=l.value;u<128&&t.push(j(u))}}catch(e){s=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(s)throw c}}var y=t.length,v=y;for(y&&t.push($);v<n;){var w=m,x=!0,O=!1,S=void 0;try{for(var I,P=e[Symbol.iterator]();!(x=(I=P.next()).done);x=!0){var C=I.value;C>=r&&C<w&&(w=C)}}catch(e){O=!0,S=e}finally{try{!x&&P.return&&P.return()}finally{if(O)throw S}}var T=v+1;w-r>E((m-a)/T)&&A("overflow"),a+=(w-r)*T,r=w;var D=!0,q=!1,M=void 0;try{for(var _,L=e[Symbol.iterator]();!(D=(_=L.next()).done);D=!0){var F=_.value;if(F<r&&++a>m&&A("overflow"),F==r){for(var V=a,U=f;;U+=f){var z=U<=i?d:U>=i+h?h:U-i;if(V<z)break;var J=V-z,H=f-z;t.push(j(k(z+J%H,0))),V=E(J/H)}t.push(j(k(V,0))),i=R(a,T,v==y),a=0,++v}}}catch(e){q=!0,M=e}finally{try{!D&&L.return&&L.return()}finally{if(q)throw M}}++a,++r}return t.join("")},M=function(e){return C(e,(function(e){return w.test(e)?D(e.slice(4).toLowerCase()):e}))},_=function(e){return C(e,(function(e){return x.test(e)?"xn--"+q(e):e}))},L={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,u(e))}},decode:D,encode:q,toASCII:_,toUnicode:M},F={};function V(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function U(e){for(var t="",n=0,r=e.length;n<r;){var a=parseInt(e.substr(n+1,2),16);if(a<128)t+=String.fromCharCode(a),n+=3;else if(a>=194&&a<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&a)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(a>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function z(e,t){function n(e){var n=U(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,V).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,V).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,V).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,V).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,V).replace(t.PCT_ENCODED,a)),e}function J(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=p(n,2)[1];return r?r.split(".").map(J).join("."):e}function B(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=p(n,3),a=r[1],i=r[2];if(a){for(var o=a.toLowerCase().split("::").reverse(),s=p(o,2),c=s[0],l=s[1],u=l?l.split(":").map(J):[],m=c.split(":").map(J),f=t.IPV4ADDRESS.test(m[m.length-1]),d=f?7:8,h=m.length-d,y=Array(d),v=0;v<d;++v)y[v]=u[v]||m[h+v]||"";f&&(y[d-1]=H(y[d-1],t));var g=y.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(g&&g.length>1){var $=y.slice(0,g.index),w=y.slice(g.index+g.length);b=$.join(":")+"::"+w.join(":")}else b=y.join(":");return i&&(b+="%"+i),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(G);if(a){K?(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5])):(n.scheme=a[1]||void 0,n.userinfo=-1!==e.indexOf("@")?a[3]:void 0,n.host=-1!==e.indexOf("//")?a[4]:void 0,n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=-1!==e.indexOf("?")?a[7]:void 0,n.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),n.host&&(n.host=B(H(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)z(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(n,c)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function W(e,t){var n=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(B(H(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Q=/^\/\.(\/|$)/,Y=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(Y))e=e.replace(Y,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?l:c,r=[],a=F[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}z(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||a&&a.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=Z(ne(e,n),n),t=Z(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ae(e,t,n){var r=o({scheme:"null"},n);return ne(re(Z(e,r),Z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ne(Z(e,t),t):"object"===r(e)&&(e=Z(ne(e,t),t)),e}function oe(e,t,n){return"string"==typeof e?e=ne(Z(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"==typeof t?t=ne(Z(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,V)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,U)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function ue(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var me={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=ue(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(ue(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=p(n,2),a=r[0],i=r[1];e.path=a&&"/"!==a?a:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize},de={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ye="[0-9A-Fa-f]",ve=n(n("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+n("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+n("%"+ye+ye)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),$e="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(he,"g"),xe=new RegExp(ve,"g"),Oe=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",he,$e),"g"),Ie=Se;function Ee(e){var t=U(e);return t.match(we)?t:e}var je={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var a=!1,i={},o=n.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var p=l[1].split(","),u=0,m=p.length;u<m;++u)r.push(p[u]);break;case"subject":n.subject=ce(l[1],t);break;case"body":n.body=ce(l[1],t);break;default:a=!0,i[ce(l[0],t)]=ce(l[1],t)}}a&&(n.headers=i)}n.query=void 0;for(var f=0,d=r.length;f<d;++f){var h=r[f].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=L.toASCII(ce(h[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[f]=h.join("@")}return n},serialize:function(e,t){var n=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),p=c.slice(0,l).replace(xe,Ee).replace(xe,a).replace(Oe,V),u=c.slice(l+1);try{u=t.iri?L.toUnicode(u):L.toASCII(ce(u,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=p+"@"+u}n.path=r.join(",")}var m=e.headers=e.headers||{};e.subject&&(m.subject=e.subject),e.body&&(m.body=e.body);var f=[];for(var d in m)m[d]!==de[d]&&f.push(d.replace(xe,Ee).replace(xe,a).replace(Se,V)+"="+m[d].replace(xe,Ee).replace(xe,a).replace(Ie,V));return f.length&&(n.query=f.join("&")),n}},Ae=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Ae),r=e;if(n){var a=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],s=a+":"+(t.nid||i),c=F[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,a=n+":"+(t.nid||r),i=F[a];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Ce)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[le.scheme]=le,F[pe.scheme]=pe,F[me.scheme]=me,F[fe.scheme]=fe,F[je.scheme]=je,F[Pe.scheme]=Pe,F[Ne.scheme]=Ne,e.SCHEMES=F,e.pctEncChar=V,e.pctDecChars=U,e.parse=Z,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=ae,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(r.exports);const a=r.exports,i={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};var o={jsonTypeOf:(e,t)=>i[t](e),resolveUrl:(e,t)=>{const n=a.resolve(e,t,{iri:!0});if(a.resolve(e,"",{iri:!0})&&"file"===a.parse(n).scheme&&"file"!==a.parse(e).scheme)throw Error(`Can't access file '${n}' resource from network context '${e}'`);return n},urlFragment:e=>a.unescapeComponent(a.parse(e).fragment)||"",pathRelative:(e,t)=>{if(e===t)return"";let n=1;const r=e.length-1,a=t.length-n,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==t.charCodeAt(n+s))break;47===r&&(o=s)}if(a>i){if(47===t.charCodeAt(n+s))return t.slice(n+s+1);if(0===s)return t.slice(n+s)}r>i&&(47===e.charCodeAt(s+1)?o=s:0===i&&(o=0));let c="";for(s=o+2;s<=e.length;++s)s!==e.length&&47!==e.charCodeAt(s)||(c+=0===c.length?"..":"/..");return n+=o,c.length>0?`${c}${t.slice(n,t.length)}`:(47===t.charCodeAt(n)&&++n,t.slice(n,t.length))}};const s=t,c=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(h)},l=(e,t,n,r)=>{if(0===e.length)return n;if(e.length>1){const a=e.shift();return{...t,[a]:l(e,v(t,a,r),n,f(a,r))}}if(Array.isArray(t)){const r=[...t];return r[y(t,e[0])]=n,r}return"object"==typeof t&&null!==t?{...t,[e[0]]:n}:v(t,e[0],r)},p=(e,t,n,r)=>{if(0!==e.length)if(1!==e.length||g(t)){const a=e.shift();p(e,v(t,a,r),n,f(a,r))}else{t[y(t,e[0])]=n}},u=(e,t,n)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=v(t,r,n);return{...t,[r]:u(e,a,f(r,n))}}if(Array.isArray(t))return t.filter(((t,n)=>n!=e[0]));if("object"==typeof t&&null!==t){const{[e[0]]:n,...r}=t;return r}return v(t,e[0],n)}},m=(e,t,n)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=v(t,r,n);m(e,a,f(r,n))}else Array.isArray(t)?t.splice(e[0],1):"object"==typeof t&&null!==t?delete t[e[0]]:v(t,e[0],n)},f=s(((e,t)=>t+"/"+d(e))),d=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),h=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),y=(e,t)=>Array.isArray(e)&&"-"===t?e.length:t,v=(e,t,n="")=>{if(void 0===e)throw TypeError(`Value at '${n}' is undefined and does not have property '${t}'`);if(null===e)throw TypeError(`Value at '${n}' is null and does not have property '${t}'`);if(g(e))throw TypeError(`Value at '${n}' is a ${typeof e} and does not have property '${t}'`);return e[y(e,t)]},g=e=>null===e||"object"!=typeof e;var b={nil:"",append:f,get:(e,t)=>{const n=c(e),r=e=>n.reduce((([e,t],n)=>[v(e,n,t),f(n,t)]),[e,""])[0];return void 0===t?r:r(t)},set:(e,t,n)=>{const r=c(e),a=s(((e,t)=>l(r,e,t,"")));return void 0===t?a:a(t,n)},assign:(e,t,n)=>{const r=c(e),a=s(((e,t)=>p(r,e,t,"")));return void 0===t?a:a(t,n)},unset:(e,t)=>{const n=c(e),r=e=>u(n,e,"");return void 0===t?r:r(t)},remove:(e,t)=>{const n=c(e),r=e=>m(n,e,"");return void 0===t?r:r(t)}};const $=Symbol("$__value"),w=Symbol("$__href");var x={cons:(e,t)=>Object.freeze({[w]:e,[$]:t}),isReference:e=>e&&void 0!==e[w],href:e=>e[w],value:e=>e[$]};const O=b,S=t,{resolveUrl:I,jsonTypeOf:E}=o,j=x,A=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),P=e=>j.isReference(e.value)?j.value(e.value):e.value,C=S(((e,t)=>E(P(e),t))),N=(e,t)=>Object.freeze({...t,pointer:O.append(e,t.pointer),value:P(t)[e]}),T=S(((e,t)=>P(t).map(((n,r,a,i)=>e(N(r,t),r,a,i))))),k=S(((e,t)=>P(t).forEach(((n,r,a,i)=>e(N(r,t),r,a,i))))),R=S(((e,t)=>P(t).map(((e,n,r,a)=>N(n,t))).filter(((t,n,r,a)=>e(t,n,r,a))))),D=S(((e,t,n)=>P(n).reduce(((t,r,a)=>e(t,N(a,n),a)),t))),q=S(((e,t)=>P(t).every(((n,r,a,i)=>e(N(r,t),r,a,i))))),M=S(((e,t)=>P(t).some(((n,r,a,i)=>e(N(r,t),r,a,i)))));var _={nil:A,cons:(e,t="")=>Object.freeze({...A,id:I(t,""),instance:e,value:e}),get:(e,t=A)=>{if(!e.startsWith("#"))throw Error(`No JSON document found at '${e.split("#")[0]}'`);return Object.freeze({...t,pointer:e.substr(1)})},uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:P,has:(e,t)=>e in P(t),typeOf:C,length:e=>P(e).length,step:N,entries:e=>Object.keys(P(e)).map((t=>[t,N(t,e)])),keys:e=>Object.keys(P(e)),map:T,forEach:k,filter:R,reduce:D,every:q,some:M},L=async e=>Object.entries(await e);var F=t((async(e,t)=>(await t).map(e)));var V=t((async(e,t,n)=>(await n).reduce((async(t,n)=>e(await t,n)),t)));const U=V;var z=t((async(e,t,n={})=>U((async(t,n)=>await e(n)?t.concat([n]):t),[],t,n)));const J=F;var H=t((async(e,t)=>{const n=await J(e,t);return(await Promise.all(n)).some((e=>e))}));const B=F;var G=t((async(e,t)=>{const n=await B(e,t);return(await Promise.all(n)).every((e=>e))}));var K=t(((e,t)=>e.reduce((async(e,t)=>t(await e)),t)));const Z=K,W=L,X=V;var Q={entries:L,map:F,filter:z,reduce:V,some:H,every:G,pipeline:K,all:e=>Promise.all(e),allValues:e=>Z([W,X((async(e,[t,n])=>(e[t]=await n,e)),{})],e)};const Y=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}},ee=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(se)},te=(e,t,n,r)=>{if(0===e.length)return n;if(e.length>1){if(Array.isArray(t)){const a=e.shift(),i=[...t];return i[a]=te(e,le(t,a,r),n,ie(a,r)),i}{const a=e.shift();return{...t,[a]:te(e,le(t,a,r),n,ie(a,r))}}}if(Array.isArray(t)){const r=[...t];return r[ce(t,e[0])]=n,r}return"object"==typeof t&&null!==t?{...t,[e[0]]:n}:le(t,e[0],r)},ne=(e,t,n,r)=>{if(0!==e.length)if(1!==e.length||pe(t)){const a=e.shift();ne(e,le(t,a,r),n,ie(a,r))}else{t[ce(t,e[0])]=n}},re=(e,t,n)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=le(t,r,n);return{...t,[r]:re(e,a,ie(r,n))}}if(Array.isArray(t))return t.filter(((t,n)=>n!=e[0]));if("object"==typeof t&&null!==t){const{[e[0]]:n,...r}=t;return r}return le(t,e[0],n)}},ae=(e,t,n)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=le(t,r,n);ae(e,a,ie(r,n))}else Array.isArray(t)?t.splice(e[0],1):"object"==typeof t&&null!==t?delete t[e[0]]:le(t,e[0],n)},ie=Y(((e,t)=>t+"/"+oe(e))),oe=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),se=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),ce=(e,t)=>Array.isArray(e)&&"-"===t?e.length:t,le=(e,t,n="")=>{if(void 0===e)throw TypeError(`Value at '${n}' is undefined and does not have property '${t}'`);if(null===e)throw TypeError(`Value at '${n}' is null and does not have property '${t}'`);if(pe(e))throw TypeError(`Value at '${n}' is a ${typeof e} and does not have property '${t}'`);return e[ce(e,t)]},pe=e=>null===e||"object"!=typeof e;var ue,me,fe,de={nil:"",append:ie,get:(e,t)=>{const n=ee(e),r=e=>n.reduce((([e,t],n)=>[le(e,n,t),ie(n,t)]),[e,""])[0];return void 0===t?r:r(t)},set:(e,t,n)=>{const r=ee(e),a=Y(((e,t)=>te(r,e,t,"")));return void 0===t?a:a(t,n)},assign:(e,t,n)=>{const r=ee(e),a=Y(((e,t)=>ne(r,e,t,"")));return void 0===t?a:a(t,n)},unset:(e,t)=>{const n=ee(e),r=e=>re(n,e,"");return void 0===t?r:r(t)},remove:(e,t)=>{const n=ee(e),r=e=>ae(n,e,"");return void 0===t?r:r(t)}},he={exports:{}};me=e,fe=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function a(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(t,n){if(a(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(i[o]=n[o]);if("string"==typeof i.type&&t!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var s=i.match;return i.match=Array.isArray(s)?s:s?[s]:[],i.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),i}function l(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include)for(var a=[].concat(r.include),i=0;i<a.length;i++)t.push({include:a[i]});else{if(!r.type)throw new Error("Rule has no type: "+JSON.stringify(r));t.push(c(r.type,r))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var i=t[r],o=e[i],s=[].concat(o);if("include"!==i){var l=[];s.forEach((function(e){a(e)?(l.length&&n.push(c(i,l)),n.push(c(i,e)),l=[]):l.push(e)})),l.length&&n.push(c(i,l))}else for(var p=0;p<s.length;p++)n.push({include:s[p]})}return n}(e)}var p=c("error",{lineBreaks:!0,shouldThrow:!0});function u(e,t){for(var a=null,c=Object.create(null),l=!0,u=null,m=[],f=[],d=0;d<e.length;d++)e[d].fallback&&(l=!1);for(d=0;d<e.length;d++){var h=e[d];if(h.include)throw new Error("Inheritance is not allowed in stateless lexers");if(h.error||h.fallback){if(a)throw!h.fallback==!a.fallback?new Error("Multiple "+(h.fallback?"fallback":"error")+" rules not allowed (for token '"+h.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+h.defaultType+"')");a=h}var y=h.match.slice();if(l)for(;y.length&&"string"==typeof y[0]&&1===y[0].length;)c[y.shift().charCodeAt(0)]=h;if(h.pop||h.push||h.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+h.defaultType+"')");if(h.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+h.defaultType+"')")}if(0!==y.length){l=!1,m.push(h);for(var v=0;v<y.length;v++){var g=y[v];if(r(g))if(null===u)u=g.unicode;else if(u!==g.unicode&&!1===h.fallback)throw new Error("If one rule is /u then all must be")}var b=o(y.map(s)),$=new RegExp(b);if($.test(""))throw new Error("RegExp matches empty string: "+$);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+$+"\nUse (?: … ) instead");if(!h.lineBreaks&&$.test("\n"))throw new Error("Rule should declare lineBreaks: "+$);f.push(i(b))}}var w=a&&a.fallback,x=n&&!w?"ym":"gm",O=n||w?"":"|";return!0===u&&(x+="u"),{regexp:new RegExp(o(f)+O,x),groups:m,fast:c,error:a||p}}function m(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var f=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};f.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},f.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},f.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},f.prototype.popState=function(){this.setState(this.stack.pop())},f.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var d=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function h(){return this.value}if(f.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw new Error("Cannot find token type for matched text")},f.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){if(o=this.fast[n.charCodeAt(e)])return this._token(o,n.charAt(e),e);var r=this.re;r.lastIndex=e;var a=d(r,n),i=this.error;if(null==a)return this._token(i,n.slice(e,n.length),e);var o=this._getGroup(a),s=a[0];return i.fallback&&a.index!==e?(this.queuedGroup=o,this.queuedText=s,this._token(i,n.slice(e,a.index),e)):this._token(o,s,e)}},f.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var a=/\n/g,i=1;if("\n"===t)r=1;else for(;a.exec(t);)r++,i=a.lastIndex}var o={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:h,offset:n,lineBreaks:r,line:this.line,col:this.col},s=t.length;if(this.index+=s,this.line+=r,0!==r?this.col=s-i+1:this.col+=s,e.shouldThrow)throw new Error(this.formatError(o,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),o},"undefined"!=typeof Symbol&&Symbol.iterator){var y=function(e){this.lexer=e};y.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},y.prototype[Symbol.iterator]=function(){return this},f.prototype[Symbol.iterator]=function(){return new y(this)}}return f.prototype.formatError=function(e,t){if(null==e){var n=this.buffer.slice(this.index);e={text:n,offset:this.index,lineBreaks:-1===n.indexOf("\n")?0:1,line:this.line,col:this.col}}var r=Math.max(0,e.offset-e.col+1),a=e.lineBreaks?e.text.indexOf("\n"):e.text.length,i=this.buffer.substring(r,e.offset+a);return t+=" at line "+e.line+" col "+e.col+":\n\n",t+=" "+i+"\n",t+=" "+Array(e.col).join(" ")+"^"},f.prototype.clone=function(){return new f(this.states,this.state)},f.prototype.has=function(e){return!0},{compile:function(e){var t=u(l(e));return new f({start:t},"start")},states:function(e,t){var n=e.$all?l(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var a=Object.create(null),i=0;i<r.length;i++)a[b=r[i]]=l(e[b]).concat(n);for(i=0;i<r.length;i++)for(var o=a[b=r[i]],s=Object.create(null),c=0;c<o.length;c++){var p=o[c];if(p.include){var d=[c,1];if(p.include!==b&&!s[p.include]){s[p.include]=!0;var h=a[p.include];if(!h)throw new Error("Cannot include nonexistent state '"+p.include+"' (in state '"+b+"')");for(var y=0;y<h.length;y++){var v=h[y];-1===o.indexOf(v)&&d.push(v)}}o.splice.apply(o,d),c--}}var g=Object.create(null);for(i=0;i<r.length;i++){var b;g[b=r[i]]=u(a[b],!0)}for(i=0;i<r.length;i++){var $=r[i],w=g[$],x=w.groups;for(c=0;c<x.length;c++)m(x[c],$,g);var O=Object.getOwnPropertyNames(w.fast);for(c=0;c<O.length;c++)m(w.fast[O[c]],$,g)}return new f(g,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t=Object.create(null),n=Object.create(null),r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a],o=e[i];(Array.isArray(o)?o:[o]).forEach((function(e){if((n[e.length]=n[e.length]||[]).push(e),"string"!=typeof e)throw new Error("keyword must be string (in keyword '"+i+"')");t[e]=i}))}function s(e){return JSON.stringify(e)}var c="";for(var l in c+="switch (value.length) {\n",n){var p=n[l];c+="case "+l+":\n",c+="switch (value) {\n",p.forEach((function(e){var n=t[e];c+="case "+s(e)+": return "+s(n)+"\n"})),c+="}\n"}return c+="}\n",Function("value",c)}}},(ue=he).exports?ue.exports=fe():me.moo=fe();const ye=he.exports;const ve=de,ge=e=>{const t=ye.states({main:{WS:{match:new RegExp("(?:(?:\\r?\\n)|[ \\t])+","u"),lineBreaks:!0},true:{match:"true",value:()=>!0},false:{match:"false",value:()=>!1},null:{match:"null",value:()=>null},number:{match:new RegExp("-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][-+]?[0-9]+)?","u"),value:parseFloat},string:{match:new RegExp('"(?:[\\x20-\\x21\\x23-\\x5b\\x5d-\\u{10ffff}]|\\\\(?:["\\/\\\\brfnt]|u[0-9a-fA-F]{4}))*"',"u"),value:JSON.parse},"{":"{","}":"}","[":"[","]":"]",":":":",",":",",error:ye.error}});t.reset(e);const n=()=>{let e;do{if(e=t.next(),"error"===e?.type)throw SyntaxError(t.formatError(e,"Unrecognized token"))}while("WS"===e?.type);return e};let r,a=n();const i={offset:0,line:1,col:0,text:""};return{next:e=>{if(r=a,a=n(),e&&r?.type!==e)throw SyntaxError(t.formatError(r,`Expected a '${e}'`));return r},peek:()=>a,syntaxError:e=>{const n=r||i,a={...n,offset:n.offset+n.text.length,col:n.col+n.text.length};throw new SyntaxError(t.formatError(a,e))}}},be=(e,t)=>t,$e=(e,t,n,r)=>{let a;const i=e.next();switch(i?.type){case"true":case"false":case"null":case"number":case"string":a=i.value;break;case"{":a=we(e,t,n,r);break;case"[":a=Oe(e,t,n,r);break;default:e.syntaxError("Expected a JSON value")}return r(t,a,n)},we=(e,t,n,r)=>{const a={};return"}"!==e.peek()?.type&&xe(e,t,n,r,a),e.next("}"),a},xe=(e,t,n,r,a)=>{const i=e.next("string").value;e.next(":"),Ee(e.peek())||e.syntaxError("Expected a JSON value"),a[i]=$e(e,i,ve.append(i,n),r),","===e.peek()?.type?(e.next(),xe(e,i,n,r,a)):Ee(e.peek())&&e.next(",")},Oe=(e,t,n,r)=>{const a=[];return"]"!==e.peek()?.type&&Se(e,0,n,r,a),e.next("]"),a},Se=(e,t,n,r,a)=>{Ee(e.peek())||e.syntaxError("Expected a JSON value"),a[t]=$e(e,t,ve.append(t,n),r),","===e.peek()?.type?(e.next(),Se(e,t+1,n,r,a)):Ee(e.peek())&&e.next(",")},Ie=new Set(["string","number","true","false","null","[","{"]),Ee=e=>Ie.has(e?.type);var je=(e,t=be)=>{const n=ge(e),r=$e(n,"",ve.nil,t);return n.peek()&&n.syntaxError("A value has been parsed, but more tokens were found"),r};const Ae=de,Pe=(e,t)=>t,Ce=(e,t,n,r,a,i)=>{let o;return e=t(r,e,a),o=Array.isArray(e)?Ne(e,t,n,a,i):"object"==typeof e&&null!==e?Te(e,t,n,a,i):JSON.stringify(e),o},Ne=(e,t,n,r,a)=>{0===e.length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"";return"["+i+n+e.map(((e,i)=>{const o=Ae.append(i,r);return Ce(e,t,n,i,o,a+1)})).join(`,${i}${n}`)+i+"]"},Te=(e,t,n,r,a)=>{0===Object.keys(e).length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"",o=n?" ":"";return"{"+i+n+Object.entries(e).map((([e,i])=>{const s=Ae.append(e,r);return JSON.stringify(e)+":"+o+Ce(i,t,n,e,s,a+1)})).join(`,${i}${n}`)+i+"}"};var ke=(e,t=Pe,n="")=>Ce(e,t,n,"",Ae.nil,1);var Re={parse:je,stringify:ke},De=fetch,qe={},Me=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,_e=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,Le=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Fe=/\\([\u000b\u0020-\u00ff])/g,Ve=/([\\"])/g,Ue=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function ze(e){var t=String(e);if(Le.test(t))return t;if(t.length>0&&!_e.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(Ve,"\\$1")+'"'}function Je(e){this.parameters=Object.create(null),this.type=e}qe.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!Ue.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var a,i=Object.keys(t).sort(),o=0;o<i.length;o++){if(a=i[o],!Le.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+ze(t[a])}return r},qe.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.substr(0,n).trim():t.trim();if(!Ue.test(r))throw new TypeError("invalid media type");var a=new Je(r.toLowerCase());if(-1!==n){var i,o,s;for(Me.lastIndex=n;o=Me.exec(t);){if(o.index!==n)throw new TypeError("invalid parameter format");n+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(Fe,"$1")),a.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return a};const He=qe,Be={};var Ge={addPlugin:(e,t)=>{Be[e]=t},parse:e=>{const t=He.parse(e.headers.get("content-type"));if(!(t.type in Be))throw Error(`${e.url} is not a schema. Found a document with media type: ${t.type}`);return Be[t.type].parse(e,t.parameters)},getContentType:e=>{for(const t in Be)if(Be[t].matcher(e))return t;return"application/octet-stream"}};const Ke=t,Ze=Q,We=Re,Xe=b,{jsonTypeOf:Qe,resolveUrl:Ye,urlFragment:et,pathRelative:tt}=o,nt=De,rt=x,at=Ge,it="https://json-schema.org/draft/2019-09/vocab/core",ot="https://json-schema.org/draft/2020-12/vocab/core",st={},ct={},lt=(e,t)=>{const n=ct[e];return st[n]?.[t]},pt={},ut={},mt=(e,t="",n="")=>{const r=ft(e,t,n),a=dt(e,t,ct[r]),i=lt(r,"embeddedToken"),o=lt(r,"baseToken"),s=lt(r,"anchorToken"),c=lt(r,"dynamicAnchorToken"),l=lt(r,"jrefToken"),p={},u={"":""};e=We.parse(JSON.stringify(e),((e,t,n)=>{if(Qe(t,"object")){const e="string"==typeof t.$schema?Ye(t.$schema,""):r,o=lt(e,"embeddedToken"),m=lt(e,"anchorToken");if("string"==typeof t[o]&&(o!==m||"#"!==t[o][0])&&""!==n){const e=Ye(a,t[o]);return mt(t,e,r),rt.cons(t[o],t)}if("string"==typeof t[l])return rt.cons(t[l],t);if("string"==typeof t[s]&&n!==Xe.nil){const e=s!==i?t[s]:t[s].slice(1);u[e]=n,delete t[s]}"string"==typeof t[c]&&(p[t[c]]=`${a}#${n}`,u[t[c]]=n,delete t[c])}return t})),console.log(embeddedIds),delete e.$schema,delete e[o];const m=lt(r,"recursiveAnchorToken");let f;!0===e[m]&&(p[""]=`${a}#`,delete e[m]);const d=lt(r,"vocabularyToken");Qe(e[d],"object")?(f=e[d],delete e[d]):f={[ct[r]]:!0},pt[a]={id:a,dialectId:r,schema:e,anchors:u,dynamicAnchors:p,vocabulary:f,validated:!1},"https://example.com/schema/root"===a&&console.log(Object.keys(pt).filter((e=>!/json-schema\.org/.test(e)))),t&&(ut[Ye(t,"")]=a)},ft=(e,t,n)=>{const r=Ye(e.$schema||n,"");if(!r)throw Error("Couldn't determine schema dialect");if(!(r in ct))if(!0===e?.$vocabulary?.[it]&&r===dt(e,t,it))ct[r]=it;else if(!0===e?.$vocabulary?.[ot]&&r===dt(e,t,ot))ct[r]=ot;else{const e=pt[r];if(!e)throw Error(`Couldn't determine JSON Schema version for dialect: '${r}'`);!0===e.vocabulary[it]?ct[r]=it:!0===e.vocabulary[ot]?ct[r]=ot:ct[r]=ct[e.dialectId]}return r},dt=(e,t,n)=>{const r=st[n]?.baseToken,a="string"==typeof e[r]?e[r]:"",i=Ye(Ye(t,a),"");if(!i)throw Error("Couldn't determine an identifier for the schema");return i},ht=e=>pt[ut[e]]||pt[e],yt=Object.freeze({id:"",dialectId:void 0,vocabulary:{},pointer:Xe.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),vt=async(e,t=yt)=>{const n=Ye($t(t),e),r=Ye(n,""),a=et(n);if(!(e=>e in pt||e in ut)(r)){const e=await nt(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error(`Failed to retrieve schema with id: ${r}`);const[t,n]=await at.parse(e);let a;a=t.$schema?Ye(t.$schema,""):n?Ye(r,n):"",a&&r!==a&&!(a in ct)&&await vt(a),mt(t,r,a)}const i=ht(r),o="/"!==a[0]?bt(i,a):a,s=Object.freeze({...i,pointer:o,value:Xe.get(o,i.schema)});return gt(s)},gt=e=>rt.isReference(e.value)?vt(rt.href(e.value),e):e,bt=(e,t)=>{if(!(t in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(t)}'`);return e.anchors[t]},$t=e=>`${e.id}#${encodeURI(e.pointer)}`,wt=e=>rt.isReference(e.value)?rt.value(e.value):e.value,xt=(e,t)=>{const n=ht(t.id),r=Object.freeze({...t,pointer:Xe.append(e,t.pointer),value:wt(t)[e],validated:n.validated});return gt(r)},Ot=Ke(((e,t)=>Ze.pipeline([wt,Ze.map((async(n,r)=>e(await xt(r,t),r))),Ze.all],t))),St={parentId:"",parentDialect:"",includeEmbedded:!0},It=(e,t)=>{if(t.startsWith("file://")){const n=e.slice(7,e.lastIndexOf("/"));return""===e?"":tt(n,t.slice(7))}return t};var Et={setConfig:(e,t,n)=>{ct[e]=e,st[e]||(st[e]={}),st[e][t]=n},getConfig:lt,add:mt,get:vt,markValidated:e=>{pt[e].validated=!0},uri:$t,value:wt,getAnchorPointer:bt,typeOf:(e,t)=>Qe(wt(e),t),has:(e,t)=>e in wt(t),step:xt,keys:e=>Object.keys(wt(e)),entries:e=>Ze.pipeline([wt,Object.keys,Ze.map((async t=>[t,await xt(t,e)])),Ze.all],e),map:Ot,length:e=>wt(e).length,toSchema:(e,t={})=>{const n={...St,...t},r=lt(e.dialectId,"anchorToken"),a=lt(e.dialectId,"dynamicAnchorToken"),i={};for(const t in e.anchors)""===t||e.dynamicAnchors[t]||(i[e.anchors[t]]=t);const o={};for(const t in e.dynamicAnchors){const n=et(e.dynamicAnchors[t]);o[n]=t}const s=JSON.parse(We.stringify(e.schema,((t,s,c)=>{if(rt.isReference(s)){const t=rt.value(s),r="string"==typeof t.$schema?Ye(t.$schema,""):e.dialectId,a=lt(r,"embeddedToken");return!n.includeEmbedded&&a in t?void 0:rt.value(s)}return c in i&&(s={[r]:i[c],...s}),c in o&&(s={[a]:o[c],...s}),s}))),c=lt(e.dialectId,"baseToken"),l=It(n.parentId,e.id),p=n.parentDialect===e.dialectId?"":e.dialectId;return{...l&&{[c]:l},...p&&{$schema:p},...s}}};class jt extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var At=jt;const Pt=Et;var Ct={compile:e=>Pt.value(e),interpret:()=>!0};const Nt=t,Tt=n.exports,{resolveUrl:kt}=o,Rt=_,Dt=Et,qt=At,Mt=Ge,_t=Ct,Lt="FLAG",Ft="BASIC",Vt="DETAILED",Ut="VERBOSE";let zt=Vt,Jt=!0;Mt.addPlugin("application/schema+json",{parse:async(e,t)=>[await e.json(),t.schema||t.profile],matcher:e=>e.endsWith(".schema.json")});const Ht=async e=>{const t={metaData:{}};return{ast:t,schemaUri:await Yt(e,t)}},Bt=Nt((({ast:e,schemaUri:t},n,r=Lt)=>{if(![Lt,Ft,Vt,Ut].includes(r))throw Error(`The '${r}' error format is not supported`);const a=[],i=Tt.subscribe("result",Gt(r,a));return tn(t,n,e,{}),Tt.unsubscribe(i),a[0]})),Gt=(e,t)=>{const n=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i,errors:[]};n.push(o)}else if("result.start"===r)n.push(r);else if("result.end"===r){const r=n.pop();for(;"result.start"!==n[n.length-1];){const t=n.pop(),a=[t];e===Ft&&(a.push(...t.errors),delete t.errors),(e===Ut||e!==Lt&&!t.valid)&&r.errors.unshift(...a)}n[n.length-1]=r,t[0]=r}}},Kt={},Zt=e=>Kt[e]||_t,Wt=e=>e in Kt,Xt={},Qt={},Yt=async(e,t)=>{if(e=await en(e),!Wt(`${e.dialectId}#validate`)){const t=await Dt.get(e.dialectId);(Dt.getConfig(t.id,"mandatoryVocabularies")||[]).forEach((e=>{if(!t.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)})),Object.entries(t.vocabulary).forEach((([e,n])=>{if(e in Xt)Object.entries(Xt[e]).forEach((([e,n])=>{((e,t)=>{Kt[e]={collectEvaluatedItems:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&new Set,collectEvaluatedProperties:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&[],...t}})(`${t.id}#${e}`,n)}));else if(n)throw Error(`Missing required vocabulary: ${e}`)}))}if(Jt&&!e.validated){if(Dt.markValidated(e.id),!(e.dialectId in Qt)){const t=await Dt.get(e.dialectId),n=await Ht(t);Qt[t.id]=Bt(n)}const t=Rt.cons(e.schema,e.id),n=Qt[e.dialectId](t,zt);if(!n.valid)throw new qt(n)}return e.id in t.metaData||(t.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Zt(`${e.dialectId}#validate`).compile(e,t)},en=async e=>Dt.typeOf(e,"string")?en(await Dt.get(Dt.value(e),e)):e,tn=(e,t,n,r)=>{const a=nn(e,n),i=kt(e,"");return Zt(a).interpret(e,t,n,{...n.metaData[i].dynamicAnchors,...r})},nn=(e,t)=>{if(!(e in t))throw Error(`No schema found at ${e}`);return t[e][0]};var rn={validate:async(e,t,n)=>{const r=await Ht(e),a=(e,t)=>Bt(r,Rt.cons(e),t);return void 0===t?a:a(t,n)},compile:Ht,interpret:Bt,setMetaOutputFormat:e=>{zt=e},setShouldMetaValidate:e=>{Jt=e},FLAG:Lt,BASIC:Ft,DETAILED:Vt,VERBOSE:Ut,add:(e,t="",n="")=>{const r=Dt.add(e,t,n);delete Qt[r]},getKeyword:Zt,hasKeyword:Wt,defineVocabulary:(e,t)=>{Xt[e]=t},compileSchema:Yt,interpretSchema:tn,collectEvaluatedProperties:(e,t,n,r,a)=>{const i=nn(e,n);return Zt(i).collectEvaluatedProperties(e,t,n,r,a)},collectEvaluatedItems:(e,t,n,r,a)=>{const i=nn(e,n);return Zt(i).collectEvaluatedItems(e,t,n,r,a)},addMediaTypePlugin:Mt.addPlugin};const an=Q,on=n.exports,sn=rn,cn=_,ln=Et;var pn={compile:async(e,t)=>{const n=ln.uri(e);if(!(n in t)){t[n]=!1;const r=ln.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${ln.uri(e)}'`);t[n]=[`${e.dialectId}#validate`,ln.uri(e),"boolean"==typeof r?r:await an.pipeline([ln.entries,an.map((([t,n])=>[`${e.dialectId}#${t}`,n])),an.filter((([t])=>t!==`${e.dialectId}#validate`)),an.map((async([n,r])=>{const a=await sn.getKeyword(n).compile(r,t,e);return[n,ln.uri(r),a]})),an.all],e)]}return n},interpret:(e,t,n,r)=>{const[a,i,o]=n[e];on.publishSync("result.start");const s="boolean"==typeof o?o:o.every((([e,a,i])=>{on.publishSync("result.start");const o=sn.getKeyword(e).interpret(i,t,n,r);return on.publishSync("result",{keyword:e,absoluteKeywordLocation:a,instanceLocation:cn.uri(t),valid:o,ast:i}),on.publishSync("result.end"),o}));return on.publishSync("result",{keyword:a,absoluteKeywordLocation:i,instanceLocation:cn.uri(t),valid:s,ast:e}),on.publishSync("result.end"),s},collectEvaluatedProperties:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&[]:i.filter((([e])=>!a||!e.endsWith("#unevaluatedProperties"))).reduce(((e,[a,,i])=>{const o=e&&sn.getKeyword(a).collectEvaluatedProperties(i,t,n,r);return!1!==o&&[...e,...o]}),[])},collectEvaluatedItems:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter((([e])=>!a||!e.endsWith("#unevaluatedItems"))).reduce(((e,[a,,i])=>{const o=!1!==e&&sn.getKeyword(a).collectEvaluatedItems(i,t,n,r);return!1!==o&&new Set([...e,...o])}),new Set)}};var un={Core:rn,Schema:Et,Instance:_,Reference:x,Keywords:{metaData:Ct,validate:pn},InvalidSchemaError:At};const{Core:mn,Schema:fn,Instance:dn}=un;var hn={compile:async(e,t,n)=>{const r=await fn.step("items",n),a=fn.typeOf(r,"array")?fn.length(r):Number.MAX_SAFE_INTEGER;return fn.typeOf(e,"boolean")?[a,fn.value(e)]:[a,await mn.compileSchema(e,t)]},interpret:([e,t],n,r,a)=>!dn.typeOf(n,"array")||("string"==typeof t?dn.every(((n,i)=>i<e||mn.interpretSchema(t,n,r,a)),n):dn.every(((n,r)=>r<e||t),n))};const{Core:yn,Schema:vn,Instance:gn}=un,bn=([e,t],n,r,a)=>!gn.typeOf(n,"array")||gn.every(((n,i)=>i<e||yn.interpretSchema(t,n,r,a)),n);var $n={compile:async(e,t,n)=>{const r=await vn.step("items",n);return[vn.typeOf(r,"array")?vn.length(r):Number.MAX_SAFE_INTEGER,await yn.compileSchema(e,t)]},interpret:bn,collectEvaluatedItems:(e,t,n,r)=>bn(e,t,n,r)&&new Set(gn.map(((e,t)=>t),t))};const{Core:wn,Schema:xn,Instance:On}=un;var Sn={compile:async(e,t,n)=>{const r=await xn.step("properties",n),a=xn.typeOf(r,"object")?xn.keys(r):[],i=await xn.step("patternProperties",n),o=xn.typeOf(i,"object")?xn.keys(i).map((e=>new RegExp(e))):[];return xn.typeOf(e,"boolean")?[a,o,xn.value(e)]:[a,o,await wn.compileSchema(e,t)]},interpret:([e,t,n],r,a,i)=>{if(!On.typeOf(r,"object"))return!0;const o=On.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n)))));return"string"==typeof n?o.every((([,e])=>wn.interpretSchema(n,e,a,i))):0===o.length||n}};const{Core:In,Schema:En,Instance:jn}=un,An=([e,t,n],r,a,i)=>!jn.typeOf(r,"object")||jn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n))))).every((([,e])=>In.interpretSchema(n,e,a,i)));var Pn={compile:async(e,t,n)=>{const r=await En.step("properties",n),a=En.typeOf(r,"object")?En.keys(r):[],i=await En.step("patternProperties",n),o=En.typeOf(i,"object")?En.keys(i).map((e=>new RegExp(e))):[];return[a,o,await In.compileSchema(e,t)]},interpret:An,collectEvaluatedProperties:(e,t,n,r)=>An(e,t,n,r)&&[new RegExp("")]},Cn=async e=>Object.entries(await e),Nn=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var Tn=Nn((async(e,t)=>(await t).map(e)));var kn=Nn((async(e,t,n)=>(await n).reduce((async(t,n)=>e(await t,n)),t)));const Rn=kn;var Dn=Nn((async(e,t,n={})=>Rn((async(t,n)=>await e(n)?t.concat([n]):t),[],t,n)));const qn=Tn;var Mn=Nn((async(e,t)=>{const n=await qn(e,t);return(await Promise.all(n)).some((e=>e))}));const _n=Tn;var Ln=Nn((async(e,t)=>{const n=await _n(e,t);return(await Promise.all(n)).every((e=>e))}));var Fn=Nn(((e,t)=>e.reduce((async(e,t)=>t(await e)),t)));const Vn=Fn,Un=Cn,zn=kn;var Jn={entries:Cn,map:Tn,filter:Dn,reduce:kn,some:Mn,every:Ln,pipeline:Fn,all:e=>Promise.all(e),allValues:e=>Vn([Un,zn((async(e,[t,n])=>(e[t]=await n,e)),{})],e)};const{Core:Hn,Schema:Bn}=un,Gn=Jn;var Kn={compile:(e,t)=>Gn.pipeline([Bn.map((async e=>Hn.compileSchema(await e,t))),Gn.all],e),interpret:(e,t,n,r)=>e.every((e=>Hn.interpretSchema(e,t,n,r))),collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=e&&Hn.collectEvaluatedProperties(a,t,n,r);return!1!==i&&[...e,...i]}),[]),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=!1!==e&&Hn.collectEvaluatedItems(a,t,n,r);return!1!==i&&new Set([...e,...i])}),new Set)};const{Core:Zn,Schema:Wn}=un,Xn=Jn;var Qn={compile:(e,t)=>Xn.pipeline([Wn.map((async e=>Zn.compileSchema(await e,t))),Xn.all],e),interpret:(e,t,n,r)=>e.filter((e=>Zn.interpretSchema(e,t,n,r))).length>0,collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=Zn.collectEvaluatedProperties(a,t,n,r);return!1!==i?[...e||[],...i]:e}),!1),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=Zn.collectEvaluatedItems(a,t,n,r);return!1!==i?new Set([...e||[],...i]):e}),!1)},Yn=Object.keys,er=JSON.stringify;function tr(e,t){var n,r,a,i,o,s,c;if("string"===(c=typeof e))return er(e);if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(e instanceof Array){for(a="[",r=e.length-1,n=0;n<r;n++)a+=tr(e[n],!1)+",";return r>-1&&(a+=tr(e[n],!1)),a+"]"}if(e instanceof Object){if("function"==typeof e.toJSON)return tr(e.toJSON(),t);for(r=(i=Yn(e).sort()).length,a="",n=0;n<r;)void 0!==(s=tr(e[o=i[n]],!0))&&(n&&""!==a&&(a+=","),a+=er(o)+":"+s),n++;return"{"+a+"}"}switch(c){case"function":case"undefined":return t?void 0:null;default:return isFinite(e)?e:null}}var nr=function(e){return""+tr(e,!1)};const{Schema:rr,Instance:ar}=un,ir=nr;var or={compile:e=>ir(rr.value(e)),interpret:(e,t)=>ir(ar.value(t))===e};const{Core:sr,Instance:cr}=un;var lr={compile:(e,t)=>sr.compileSchema(e,t),interpret:(e,t,n,r)=>!cr.typeOf(t,"array")||cr.some((t=>sr.interpretSchema(e,t,n,r)),t)};const{Core:pr,Schema:ur,Instance:mr}=un,fr=({contains:e,minContains:t,maxContains:n},r,a,i)=>{if(!mr.typeOf(r,"array"))return!0;const o=mr.reduce(((t,n)=>pr.interpretSchema(e,n,a,i)?t+1:t),0,r);return o>=t&&o<=n};var dr={compile:async(e,t,n)=>{const r=await pr.compileSchema(e,t),a=await ur.step("minContains",n),i=ur.typeOf(a,"number")?ur.value(a):1,o=await ur.step("maxContains",n);return{contains:r,minContains:i,maxContains:ur.typeOf(o,"number")?ur.value(o):Number.MAX_SAFE_INTEGER}},interpret:fr,collectEvaluatedItems:(e,t,n,r)=>fr(e,t,n,r)&&mr.reduce(((t,a,i)=>pr.interpretSchema(e.contains,a,n,r)?t.add(i):t),new Set,t)};const{Core:hr,Schema:yr}=un,vr=Jn;var gr={compile:async(e,t)=>{await vr.pipeline([yr.entries,vr.map((([,e])=>hr.compileSchema(e,t))),vr.all],e)},interpret:()=>!0};const{Core:br,Schema:$r,Instance:wr}=un,xr=Jn;var Or={compile:(e,t)=>xr.pipeline([$r.entries,xr.map((async([e,n])=>[e,$r.typeOf(n,"array")?$r.value(n):await br.compileSchema(n,t)])),xr.all],e),interpret:(e,t,n,r)=>{const a=wr.value(t);return!wr.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||(Array.isArray(i)?i.every((e=>e in a)):br.interpretSchema(i,t,n,r))))}};const{Schema:Sr,Instance:Ir}=un,Er=Jn;var jr={compile:e=>Er.pipeline([Sr.entries,Er.map((([e,t])=>[e,Sr.value(t)])),Er.all],e),interpret:(e,t)=>{const n=Ir.value(t);return!Ir.typeOf(t,"object")||e.every((([e,t])=>!(e in n)||t.every((e=>e in n))))}};const{Core:Ar,Schema:Pr,Instance:Cr}=un,Nr=Jn;var Tr={compile:(e,t)=>Nr.pipeline([Pr.entries,Nr.map((async([e,n])=>[e,await Ar.compileSchema(n,t)])),Nr.all],e),interpret:(e,t,n,r)=>{const a=Cr.value(t);return!Cr.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||Ar.interpretSchema(i,t,n,r)))},collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,[a,i])=>{if(!e||!Cr.has(a,t))return e;const o=Ar.collectEvaluatedProperties(i,t,n,r);return!1!==o&&e.concat(o)}),[])};const{Schema:kr,Instance:Rr}=un,Dr=nr;var qr={compile:e=>kr.value(e).map(Dr),interpret:(e,t)=>e.some((e=>Dr(Rr.value(t))===e))};const{Schema:Mr,Instance:_r}=un;var Lr={compile:async e=>Mr.value(e),interpret:(e,t)=>!_r.typeOf(t,"number")||_r.value(t)<e};const{Schema:Fr,Instance:Vr}=un;var Ur={compile:async e=>Fr.value(e),interpret:(e,t)=>!Vr.typeOf(t,"number")||Vr.value(t)>e};const{Core:zr}=un;var Jr={compile:(e,t)=>zr.compileSchema(e,t),interpret:(e,t,n,r)=>(zr.interpretSchema(e,t,n,r),!0),collectEvaluatedProperties:(e,t,n,r)=>zr.collectEvaluatedProperties(e,t,n,r)||[],collectEvaluatedItems:(e,t,n,r)=>zr.collectEvaluatedItems(e,t,n,r)||new Set};const{Core:Hr,Schema:Br}=un,Gr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>Hr.getKeyword(e).interpret(a,t,n,r)))};var Kr={compile:async(e,t,n)=>{if(Br.has("if",n)){const r=await Br.step("if",n);return[await Hr.compileSchema(r,t),await Hr.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||!Gr(e,n,r,a)||Hr.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0!==e&&Gr(e,n,r,a)?Hr.collectEvaluatedProperties(t,n,r,a):[],collectEvaluatedItems:([e,t],n,r,a)=>void 0!==e&&Gr(e,n,r,a)?Hr.collectEvaluatedItems(t,n,r,a):new Set};const{Core:Zr,Schema:Wr}=un,Xr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>Zr.getKeyword(e).interpret(a,t,n,r)))};var Qr={compile:async(e,t,n)=>{if(Wr.has("if",n)){const r=await Wr.step("if",n);return[await Zr.compileSchema(r,t),await Zr.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||Xr(e,n,r,a)||Zr.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0===e||Xr(e,n,r,a)?[]:Zr.collectEvaluatedProperties(t,n,r,a),collectEvaluatedItems:([e,t],n,r,a)=>void 0===e||Xr(e,n,r,a)?new Set:Zr.collectEvaluatedItems(t,n,r,a)};const{Core:Yr,Schema:ea,Instance:ta}=un,na=(e,t,n,r)=>!ta.typeOf(t,"array")||("string"==typeof e?ta.every((t=>Yr.interpretSchema(e,t,n,r)),t):ta.every(((t,a)=>!(a in e)||Yr.interpretSchema(e[a],t,n,r)),t));var ra={compile:async(e,t)=>{if(ea.typeOf(e,"array")){const n=await ea.map((e=>Yr.compileSchema(e,t)),e);return Promise.all(n)}return Yr.compileSchema(e,t)},interpret:na,collectEvaluatedItems:(e,t,n,r)=>na(e,t,n,r)&&("string"==typeof e?new Set(ta.map(((e,t)=>t),t)):new Set(e.map(((e,t)=>t))))};const{Core:aa,Schema:ia,Instance:oa}=un,sa=([e,t],n,r,a)=>!oa.typeOf(n,"array")||oa.every(((n,i)=>i<e||aa.interpretSchema(t,n,r,a)),n);var ca={compile:async(e,t,n)=>{const r=await ia.step("prefixItems",n);return[ia.typeOf(r,"array")?ia.length(r):0,await aa.compileSchema(e,t)]},interpret:sa,collectEvaluatedItems:(e,t,n,r)=>sa(e,t,n,r)&&new Set(oa.map(((e,t)=>t),t))};const{Schema:la,Instance:pa}=un;var ua={compile:e=>la.value(e),interpret:(e,t)=>!pa.typeOf(t,"array")||pa.length(t)<=e};const{Schema:ma,Instance:fa}=un;var da={compile:e=>ma.value(e),interpret:(e,t)=>!fa.typeOf(t,"string")||fa.length(t)<=e};const{Schema:ha,Instance:ya}=un;var va={compile:e=>ha.value(e),interpret:(e,t)=>!ya.typeOf(t,"string")||[...ya.value(t)].length<=e};const{Schema:ga,Instance:ba}=un;var $a={compile:e=>ga.value(e),interpret:(e,t)=>!ba.typeOf(t,"object")||ba.keys(t).length<=e};const{Schema:wa,Instance:xa}=un;var Oa={compile:async(e,t,n)=>{const r=await wa.step("exclusiveMaximum",n),a=wa.value(r);return[wa.value(e),a]},interpret:([e,t],n)=>{if(!xa.typeOf(n,"number"))return!0;const r=xa.value(n);return t?r<e:r<=e}};const{Schema:Sa,Instance:Ia}=un;var Ea={compile:async e=>Sa.value(e),interpret:(e,t)=>!Ia.typeOf(t,"number")||Ia.value(t)<=e};const{Schema:ja,Instance:Aa}=un;var Pa={compile:e=>ja.value(e),interpret:(e,t)=>!Aa.typeOf(t,"array")||Aa.length(t)>=e};const{Schema:Ca,Instance:Na}=un;var Ta={compile:e=>Ca.value(e),interpret:(e,t)=>!Na.typeOf(t,"string")||Na.length(t)>=e};const{Schema:ka,Instance:Ra}=un;var Da={compile:e=>ka.value(e),interpret:(e,t)=>!Ra.typeOf(t,"string")||[...Ra.value(t)].length>=e};const{Schema:qa,Instance:Ma}=un;var _a={compile:e=>qa.value(e),interpret:(e,t)=>!Ma.typeOf(t,"object")||Ma.keys(t).length>=e};const{Schema:La,Instance:Fa}=un;var Va={compile:async(e,t,n)=>{const r=await La.step("exclusiveMinimum",n),a=La.value(r);return[La.value(e),a]},interpret:([e,t],n)=>{if(!Fa.typeOf(n,"number"))return!0;const r=Fa.value(n);return t?r>e:r>=e}};const{Schema:Ua,Instance:za}=un;var Ja={compile:async e=>Ua.value(e),interpret:(e,t)=>!za.typeOf(t,"number")||za.value(t)>=e};const{Schema:Ha,Instance:Ba}=un,Ga=(e,t)=>Math.abs(e-t)<1.1920929e-7;var Ka={compile:e=>Ha.value(e),interpret:(e,t)=>{if(!Ba.typeOf(t,"number"))return!0;const n=Ba.value(t)%e;return Ga(0,n)||Ga(e,n)}};const{Core:Za}=un;var Wa={compile:Za.compileSchema,interpret:(e,t,n,r)=>!Za.interpretSchema(e,t,n,r)};const{Core:Xa,Schema:Qa}=un;var Ya={compile:async(e,t)=>{const n=await Qa.map((e=>Xa.compileSchema(e,t)),e);return Promise.all(n)},interpret:(e,t,n,r)=>{let a=0;for(const i of e)if(Xa.interpretSchema(i,t,n,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=Xa.collectEvaluatedProperties(i,t,n,r);return o?0==a++&&o:e}),!1)},collectEvaluatedItems:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=Xa.collectEvaluatedItems(i,t,n,r);return o?0==a++&&o:e}),!1)}};const{Schema:ei,Instance:ti}=un;var ni={compile:e=>new RegExp(ei.value(e),"u"),interpret:(e,t)=>!ti.typeOf(t,"string")||e.test(ti.value(t))};const{Core:ri,Schema:ai,Instance:ii}=un,oi=Jn,si=(e,t,n,r)=>!ii.typeOf(t,"object")||e.every((([e,a])=>ii.entries(t).filter((([t])=>e.test(t))).every((([,e])=>ri.interpretSchema(a,e,n,r)))));var ci={compile:(e,t)=>oi.pipeline([ai.entries,oi.map((async([e,n])=>[new RegExp(e,"u"),await ri.compileSchema(n,t)])),oi.all],e),interpret:si,collectEvaluatedProperties:(e,t,n,r)=>si(e,t,n,r)&&e.map((([e])=>e))};var li={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const t=e.indexOf("#"),n=-1===t?e.length:t,r=e.slice(0,n),a=e.slice(n+1);return[decodeURI(r),decodeURI(a)]}};const{Core:pi,Schema:ui,Instance:mi}=un,fi=Jn,{escapeRegExp:di}=li,hi=(e,t,n,r)=>!mi.typeOf(t,"object")||mi.entries(t).filter((([t])=>t in e)).every((([t,a])=>pi.interpretSchema(e[t],a,n,r)));var yi={compile:(e,t)=>fi.pipeline([ui.entries,fi.reduce((async(e,[n,r])=>(e[n]=await pi.compileSchema(r,t),e)),Object.create(null))],e),interpret:hi,collectEvaluatedProperties:(e,t,n,r)=>hi(e,t,n,r)&&Object.keys(e).map((e=>new RegExp(`^${di(e)}$`)))};const{Core:vi,Instance:gi}=un;var bi={compile:(e,t)=>vi.compileSchema(e,t),interpret:(e,t,n,r)=>!gi.typeOf(t,"object")||gi.keys(t).every((t=>vi.interpretSchema(e,gi.cons(t),n,r)))};const{Core:$i,Schema:wi}=un,{splitUrl:xi}=li;var Oi={compile:async(e,t)=>{const[,n]=xi(wi.value(e)),r=await wi.get(wi.value(e),e);return await $i.compileSchema(r,t),[r.id,n]},interpret:([e,t],n,r,a)=>{if(t in r.metaData[e].dynamicAnchors)return $i.interpretSchema(a[t],n,r,a);{const i=wi.getAnchorPointer(r.metaData[e],t);return $i.interpretSchema(`${e}#${encodeURI(i)}`,n,r,a)}},collectEvaluatedProperties:$i.collectEvaluatedProperties,collectEvaluatedItems:$i.collectEvaluatedItems};const{Core:Si,Schema:Ii}=un;var Ei={compile:async(e,t)=>{const n=await Ii.get(Ii.value(e),e);return Si.compileSchema(n,t)},interpret:Si.interpretSchema,collectEvaluatedProperties:Si.collectEvaluatedProperties,collectEvaluatedItems:Si.collectEvaluatedItems};const{Schema:ji,Instance:Ai}=un;var Pi={compile:e=>ji.value(e),interpret:(e,t)=>!Ai.typeOf(t,"object")||e.every((e=>Object.prototype.hasOwnProperty.call(Ai.value(t),e)))};const{Core:Ci,Schema:Ni,Instance:Ti}=un,ki=Jn,Ri=(e,t,n,r)=>!Ti.typeOf(t,"array")||Ti.every(((t,a)=>!(a in e)||Ci.interpretSchema(e[a],t,n,r)),t);var Di={compile:(e,t)=>ki.pipeline([Ni.map((e=>Ci.compileSchema(e,t))),ki.all],e),interpret:Ri,collectEvaluatedItems:(e,t,n,r)=>Ri(e,t,n,r)&&new Set(e.map(((e,t)=>t)))};const{Schema:qi,Instance:Mi}=un;var _i={compile:e=>qi.value(e),interpret:(e,t)=>"string"==typeof e?Mi.typeOf(t,e):e.some(Mi.typeOf(t))};const{Core:Li,Schema:Fi,Instance:Vi}=un,Ui=([e,t],n,r,a)=>{if(!Vi.typeOf(n,"array"))return!0;const i=Li.collectEvaluatedItems(e,n,r,a,!0);return!1===i||Vi.every(((e,o)=>i.has(o)||Li.interpretSchema(t,Vi.step(o,n),r,a)),n)};var zi={compile:async(e,t,n)=>[Fi.uri(n),await Li.compileSchema(e,t)],interpret:Ui,collectEvaluatedItems:(e,t,n,r)=>Ui(e,t,n,r)&&new Set(Vi.map(((e,t)=>t),t))};const{Core:Ji,Schema:Hi,Instance:Bi}=un,Gi=([e,t],n,r,a)=>{if(!Bi.typeOf(n,"object"))return!0;const i=Ji.collectEvaluatedProperties(e,n,r,a,!0);return!i||Bi.entries(n).filter((([e])=>!i.some((t=>e.match(t))))).every((([,e])=>Ji.interpretSchema(t,e,r,a)))};var Ki={compile:async(e,t,n)=>[Hi.uri(n),await Ji.compileSchema(e,t)],interpret:Gi,collectEvaluatedProperties:(e,t,n,r)=>Gi(e,t,n,r)&&[new RegExp("")]};const{Schema:Zi,Instance:Wi}=un,Xi=nr;var Qi={compile:e=>Zi.value(e),interpret:(e,t)=>{if(!Wi.typeOf(t,"array")||!1===e)return!0;const n=Wi.map((e=>Xi(Wi.value(e))),t);return new Set(n).size===n.length}};const{Keywords:Yi}=un;var eo={additionalItems:hn,additionalItems6:$n,additionalProperties:Sn,additionalProperties6:Pn,allOf:Kn,anyOf:Qn,const:or,contains:lr,containsMinContainsMaxContains:dr,definitions:gr,dependencies:Or,dependentRequired:jr,dependentSchemas:Tr,enum:qr,exclusiveMaximum:Lr,exclusiveMinimum:Ur,if:Jr,then:Kr,else:Qr,items:ra,items202012:ca,maxItems:ua,maxLength:da,maxLength6:va,maxProperties:$a,maximumExclusiveMaximum:Oa,maximum:Ea,metaData:Yi.metaData,minItems:Pa,minLength:Ta,minLength6:Da,minProperties:_a,minimumExclusiveMinimum:Va,minimum:Ja,multipleOf:Ka,not:Wa,oneOf:Ya,pattern:ni,patternProperties:ci,properties:yi,propertyNames:bi,dynamicRef:Oi,ref:Ei,required:Pi,tupleItems:Di,type:_i,unevaluatedItems:zi,unevaluatedProperties:Ki,uniqueItems:Qi,validate:Yi.validate};const{Core:to,Schema:no}=un,ro=eo,ao="http://json-schema.org/draft-04/schema";no.setConfig(ao,"baseToken","id"),no.setConfig(ao,"embeddedToken","id"),no.setConfig(ao,"anchorToken","id"),no.setConfig(ao,"jrefToken","$ref"),no.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}')),to.defineVocabulary(ao,{validate:ro.validate,additionalItems:ro.additionalItems,additionalProperties:ro.additionalProperties,allOf:ro.allOf,anyOf:ro.anyOf,default:ro.metaData,definitions:ro.definitions,dependencies:ro.dependencies,description:ro.metaData,enum:ro.enum,format:ro.metaData,items:ro.items,maxItems:ro.maxItems,maxLength:ro.maxLength,maxProperties:ro.maxProperties,maximum:ro.maximumExclusiveMaximum,minItems:ro.minItems,minLength:ro.minLength,minProperties:ro.minProperties,minimum:ro.minimumExclusiveMinimum,multipleOf:ro.multipleOf,not:ro.not,oneOf:ro.oneOf,pattern:ro.pattern,patternProperties:ro.patternProperties,properties:ro.properties,required:ro.required,title:ro.metaData,type:ro.type,uniqueItems:ro.uniqueItems});const{Core:io,Schema:oo}=un,so=eo,co="http://json-schema.org/draft-06/schema";oo.setConfig(co,"baseToken","$id"),oo.setConfig(co,"embeddedToken","$id"),oo.setConfig(co,"anchorToken","$id"),oo.setConfig(co,"jrefToken","$ref"),oo.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}')),io.defineVocabulary(co,{validate:so.validate,additionalItems:so.additionalItems6,additionalProperties:so.additionalProperties6,allOf:so.allOf,anyOf:so.anyOf,const:so.const,contains:so.contains,default:so.metaData,definitions:so.definitions,dependencies:so.dependencies,description:so.metaData,enum:so.enum,examples:so.metaData,exclusiveMaximum:so.exclusiveMaximum,exclusiveMinimum:so.exclusiveMinimum,format:so.metaData,items:so.items,maxItems:so.maxItems,maxLength:so.maxLength6,maxProperties:so.maxProperties,maximum:so.maximum,minItems:so.minItems,minLength:so.minLength6,minProperties:so.minProperties,minimum:so.minimum,multipleOf:so.multipleOf,not:so.not,oneOf:so.oneOf,pattern:so.pattern,patternProperties:so.patternProperties,properties:so.properties,propertyNames:so.propertyNames,required:so.required,title:so.metaData,type:so.type,uniqueItems:so.uniqueItems});const{Core:lo,Schema:po}=un,uo=eo,mo="http://json-schema.org/draft-07/schema";po.setConfig(mo,"baseToken","$id"),po.setConfig(mo,"embeddedToken","$id"),po.setConfig(mo,"anchorToken","$id"),po.setConfig(mo,"jrefToken","$ref"),po.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}')),lo.defineVocabulary(mo,{validate:uo.validate,additionalItems:uo.additionalItems6,additionalProperties:uo.additionalProperties6,allOf:uo.allOf,anyOf:uo.anyOf,const:uo.const,contains:uo.contains,default:uo.metaData,definitions:uo.definitions,dependencies:uo.dependencies,description:uo.metaData,enum:uo.enum,exclusiveMaximum:uo.exclusiveMaximum,exclusiveMinimum:uo.exclusiveMinimum,format:uo.metaData,if:uo.if,then:uo.then,else:uo.else,items:uo.items,maxItems:uo.maxItems,maxLength:uo.maxLength6,maxProperties:uo.maxProperties,maximum:uo.maximum,minItems:uo.minItems,minLength:uo.minLength6,minProperties:uo.minProperties,minimum:uo.minimum,multipleOf:uo.multipleOf,not:uo.not,oneOf:uo.oneOf,pattern:uo.pattern,patternProperties:uo.patternProperties,properties:uo.properties,propertyNames:uo.propertyNames,readOnly:uo.metaData,required:uo.required,title:uo.metaData,type:uo.type,uniqueItems:uo.uniqueItems,writeOnly:uo.metaData});const{Core:fo,Schema:ho}=un,yo=eo,vo="https://json-schema.org/draft/2019-09/vocab/core";ho.setConfig(vo,"baseToken","$id"),ho.setConfig(vo,"embeddedToken","$id"),ho.setConfig(vo,"anchorToken","$anchor"),ho.setConfig(vo,"recursiveAnchorToken","$recursiveAnchor"),ho.setConfig(vo,"vocabularyToken","$vocabulary"),ho.setConfig(vo,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),ho.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}')),ho.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}')),fo.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:yo.validate,$defs:yo.definitions,$recursiveRef:yo.dynamicRef,$ref:yo.ref}),ho.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}')),fo.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:yo.additionalItems6,additionalProperties:yo.additionalProperties6,allOf:yo.allOf,anyOf:yo.anyOf,contains:yo.containsMinContainsMaxContains,dependentSchemas:yo.dependentSchemas,if:yo.if,then:yo.then,else:yo.else,items:yo.items,not:yo.not,oneOf:yo.oneOf,patternProperties:yo.patternProperties,properties:yo.properties,propertyNames:yo.propertyNames,unevaluatedItems:yo.unevaluatedItems,unevaluatedProperties:yo.unevaluatedProperties}),ho.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}')),fo.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:yo.const,dependentRequired:yo.dependentRequired,enum:yo.enum,exclusiveMaximum:yo.exclusiveMaximum,exclusiveMinimum:yo.exclusiveMinimum,maxItems:yo.maxItems,maxLength:yo.maxLength6,maxProperties:yo.maxProperties,maximum:yo.maximum,minItems:yo.minItems,minLength:yo.minLength6,minProperties:yo.minProperties,minimum:yo.minimum,multipleOf:yo.multipleOf,pattern:yo.pattern,required:yo.required,type:yo.type,uniqueItems:yo.uniqueItems}),ho.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}')),fo.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:yo.metaData,deprecated:yo.metaData,description:yo.metaData,examples:yo.metaData,readOnly:yo.metaData,title:yo.metaData,writeOnly:yo.metaData}),ho.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}')),ho.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}')),fo.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:yo.metaData,contentMediaType:yo.metaData,contentSchema:yo.metaData});const{Core:go,Schema:bo}=un,$o=eo,wo="https://json-schema.org/draft/2020-12/vocab/core";bo.setConfig(wo,"baseToken","$id"),bo.setConfig(wo,"embeddedToken","$id"),bo.setConfig(wo,"anchorToken","$anchor"),bo.setConfig(wo,"dynamicAnchorToken","$dynamicAnchor"),bo.setConfig(wo,"vocabularyToken","$vocabulary"),bo.setConfig(wo,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),bo.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}')),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:$o.validate,$defs:$o.definitions,$dynamicRef:$o.dynamicRef,$ref:$o.ref}),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:$o.additionalProperties6,allOf:$o.allOf,anyOf:$o.anyOf,contains:$o.containsMinContainsMaxContains,dependentSchemas:$o.dependentSchemas,if:$o.if,then:$o.then,else:$o.else,items:$o.items202012,not:$o.not,oneOf:$o.oneOf,patternProperties:$o.patternProperties,prefixItems:$o.tupleItems,properties:$o.properties,propertyNames:$o.propertyNames}),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:$o.const,dependentRequired:$o.dependentRequired,enum:$o.enum,exclusiveMaximum:$o.exclusiveMaximum,exclusiveMinimum:$o.exclusiveMinimum,maxItems:$o.maxItems,maxLength:$o.maxLength6,maxProperties:$o.maxProperties,maximum:$o.maximum,minItems:$o.minItems,minLength:$o.minLength6,minProperties:$o.minProperties,minimum:$o.minimum,multipleOf:$o.multipleOf,pattern:$o.pattern,required:$o.required,type:$o.type,uniqueItems:$o.uniqueItems}),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:$o.metaData,deprecated:$o.metaData,description:$o.metaData,examples:$o.metaData,readOnly:$o.metaData,title:$o.metaData,writeOnly:$o.metaData}),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:$o.metaData}),bo.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}')),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:$o.metaData,contentMediaType:$o.metaData,contentSchema:$o.metaData}),bo.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}')),go.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:$o.unevaluatedItems,unevaluatedProperties:$o.unevaluatedProperties});const{Core:xo,Schema:Oo,InvalidSchemaError:So}=un,Io=eo;var Eo={add:xo.add,get:Oo.get,validate:xo.validate,compile:xo.compile,interpret:xo.interpret,setMetaOutputFormat:xo.setMetaOutputFormat,setShouldMetaValidate:xo.setShouldMetaValidate,addMediaTypePlugin:xo.addMediaTypePlugin,FLAG:xo.FLAG,BASIC:xo.BASIC,DETAILED:xo.DETAILED,VERBOSE:xo.VERBOSE,Keywords:Io,InvalidSchemaError:So};exports.default=Eo;
2
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,a=1;a<r;++a)t[a]=t[a].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",a="[0-9]",i=t(a,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",p=t(r,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(r+t(r,a,"[\\+\\-\\.]")+"*"),n(n(o+"|"+t(p,s,"[\\:]"))+"*");var u=n(n("25[0-5]")+"|"+n("2[0-4]"+a)+"|"+n("1"+a+a)+"|"+n("0?[1-9]"+a)+"|0?0?"+a),m=n(u+"\\."+u+"\\."+u+"\\."+u),f=n(i+"{1,4}"),d=n(n(f+"\\:"+f)+"|"+m),h=n(n(f+"\\:")+"{6}"+d),y=n("\\:\\:"+n(f+"\\:")+"{5}"+d),v=n(n(f)+"?\\:\\:"+n(f+"\\:")+"{4}"+d),g=n(n(n(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+n(f+"\\:")+"{3}"+d),b=n(n(n(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+n(f+"\\:")+"{2}"+d),$=n(n(n(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),w=n(n(n(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),x=n(n(n(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),O=n(n(n(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),S=n([h,y,v,g,b,$,w,x,O].join("|")),I=n(n(p+"|"+o)+"+");n("[vV]"+i+"+\\."+t(p,s,"[\\:]")+"+"),n(n(o+"|"+t(p,s))+"*");var E=n(o+"|"+t(p,s,"[\\:\\@]"));return n(n(o+"|"+t(p,s,"[\\@]"))+"+"),n(n(E+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",p,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",p,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",p,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",p,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",p,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",p,s),"g"),UNRESERVED:new RegExp(p,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",p,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),p=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},m=2147483647,f=36,d=1,h=26,y=38,v=700,g=72,b=128,$="-",w=/^xn--/,x=/[^\0-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=f-d,E=Math.floor,j=String.fromCharCode;function A(e){throw new RangeError(S[e])}function C(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function P(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(O,".")).split("."),t).join(".")}function N(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},k=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},R=function(e,t,n){var r=0;for(e=n?E(e/v):e>>1,e+=E(e/t);e>I*h>>1;r+=f)e=E(e/I);return E(r+(I+1)*e/(e+y))},D=function(e){var t=[],n=e.length,r=0,a=b,i=g,o=e.lastIndexOf($);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&A("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,p=1,u=f;;u+=f){c>=n&&A("invalid-input");var y=T(e.charCodeAt(c++));(y>=f||y>E((m-r)/p))&&A("overflow"),r+=y*p;var v=u<=i?d:u>=i+h?h:u-i;if(y<v)break;var w=f-v;p>E(m/w)&&A("overflow"),p*=w}var x=t.length+1;i=R(r-l,x,0==l),E(r/x)>m-a&&A("overflow"),a+=E(r/x),r%=x,t.splice(r++,0,a)}return String.fromCodePoint.apply(String,t)},q=function(e){var t=[],n=(e=N(e)).length,r=b,a=0,i=g,o=!0,s=!1,c=void 0;try{for(var l,p=e[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var u=l.value;u<128&&t.push(j(u))}}catch(e){s=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(s)throw c}}var y=t.length,v=y;for(y&&t.push($);v<n;){var w=m,x=!0,O=!1,S=void 0;try{for(var I,C=e[Symbol.iterator]();!(x=(I=C.next()).done);x=!0){var P=I.value;P>=r&&P<w&&(w=P)}}catch(e){O=!0,S=e}finally{try{!x&&C.return&&C.return()}finally{if(O)throw S}}var T=v+1;w-r>E((m-a)/T)&&A("overflow"),a+=(w-r)*T,r=w;var D=!0,q=!1,M=void 0;try{for(var _,L=e[Symbol.iterator]();!(D=(_=L.next()).done);D=!0){var F=_.value;if(F<r&&++a>m&&A("overflow"),F==r){for(var U=a,V=f;;V+=f){var z=V<=i?d:V>=i+h?h:V-i;if(U<z)break;var J=U-z,H=f-z;t.push(j(k(z+J%H,0))),U=E(J/H)}t.push(j(k(U,0))),i=R(a,T,v==y),a=0,++v}}}catch(e){q=!0,M=e}finally{try{!D&&L.return&&L.return()}finally{if(q)throw M}}++a,++r}return t.join("")},M=function(e){return P(e,(function(e){return w.test(e)?D(e.slice(4).toLowerCase()):e}))},_=function(e){return P(e,(function(e){return x.test(e)?"xn--"+q(e):e}))},L={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,u(e))}},decode:D,encode:q,toASCII:_,toUnicode:M},F={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",n=0,r=e.length;n<r;){var a=parseInt(e.substr(n+1,2),16);if(a<128)t+=String.fromCharCode(a),n+=3;else if(a>=194&&a<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&a)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(a>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function z(e,t){function n(e){var n=V(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,a)),e}function J(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=p(n,2)[1];return r?r.split(".").map(J).join("."):e}function B(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=p(n,3),a=r[1],i=r[2];if(a){for(var o=a.toLowerCase().split("::").reverse(),s=p(o,2),c=s[0],l=s[1],u=l?l.split(":").map(J):[],m=c.split(":").map(J),f=t.IPV4ADDRESS.test(m[m.length-1]),d=f?7:8,h=m.length-d,y=Array(d),v=0;v<d;++v)y[v]=u[v]||m[h+v]||"";f&&(y[d-1]=H(y[d-1],t));var g=y.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(g&&g.length>1){var $=y.slice(0,g.index),w=y.slice(g.index+g.length);b=$.join(":")+"::"+w.join(":")}else b=y.join(":");return i&&(b+="%"+i),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(G);if(a){K?(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5])):(n.scheme=a[1]||void 0,n.userinfo=-1!==e.indexOf("@")?a[3]:void 0,n.host=-1!==e.indexOf("//")?a[4]:void 0,n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=-1!==e.indexOf("?")?a[7]:void 0,n.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),n.host&&(n.host=B(H(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)z(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(n,c)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function W(e,t){var n=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(B(H(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Q=/^\/\.(\/|$)/,Y=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(Y))e=e.replace(Y,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?l:c,r=[],a=F[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}z(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||a&&a.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=Z(ne(e,n),n),t=Z(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ae(e,t,n){var r=o({scheme:"null"},n);return ne(re(Z(e,r),Z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ne(Z(e,t),t):"object"===r(e)&&(e=Z(ne(e,t),t)),e}function oe(e,t,n){return"string"==typeof e?e=ne(Z(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"==typeof t?t=ne(Z(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,U)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,V)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function ue(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var me={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=ue(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(ue(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=p(n,2),a=r[0],i=r[1];e.path=a&&"/"!==a?a:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize},de={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ye="[0-9A-Fa-f]",ve=n(n("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+n("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+n("%"+ye+ye)),ge="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),$e="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(he,"g"),xe=new RegExp(ve,"g"),Oe=new RegExp(t("[^]",ge,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",he,$e),"g"),Ie=Se;function Ee(e){var t=V(e);return t.match(we)?t:e}var je={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var a=!1,i={},o=n.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var p=l[1].split(","),u=0,m=p.length;u<m;++u)r.push(p[u]);break;case"subject":n.subject=ce(l[1],t);break;case"body":n.body=ce(l[1],t);break;default:a=!0,i[ce(l[0],t)]=ce(l[1],t)}}a&&(n.headers=i)}n.query=void 0;for(var f=0,d=r.length;f<d;++f){var h=r[f].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=L.toASCII(ce(h[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[f]=h.join("@")}return n},serialize:function(e,t){var n=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),p=c.slice(0,l).replace(xe,Ee).replace(xe,a).replace(Oe,U),u=c.slice(l+1);try{u=t.iri?L.toUnicode(u):L.toASCII(ce(u,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=p+"@"+u}n.path=r.join(",")}var m=e.headers=e.headers||{};e.subject&&(m.subject=e.subject),e.body&&(m.body=e.body);var f=[];for(var d in m)m[d]!==de[d]&&f.push(d.replace(xe,Ee).replace(xe,a).replace(Se,U)+"="+m[d].replace(xe,Ee).replace(xe,a).replace(Ie,U));return f.length&&(n.query=f.join("&")),n}},Ae=/^([^\:]+)\:(.*)/,Ce={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Ae),r=e;if(n){var a=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],s=a+":"+(t.nid||i),c=F[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,a=n+":"+(t.nid||r),i=F[a];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Pe)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[le.scheme]=le,F[pe.scheme]=pe,F[me.scheme]=me,F[fe.scheme]=fe,F[je.scheme]=je,F[Ce.scheme]=Ce,F[Ne.scheme]=Ne,e.SCHEMES=F,e.pctEncChar=U,e.pctDecChars=V,e.parse=Z,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=ae,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(r.exports);const a=r.exports,i={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};var o={jsonTypeOf:(e,t)=>i[t](e),resolveUrl:(e,t)=>{const n=a.resolve(e,t,{iri:!0});if(a.resolve(e,"",{iri:!0})&&"file"===a.parse(n).scheme&&"file"!==a.parse(e).scheme)throw Error(`Can't access file '${n}' resource from network context '${e}'`);return n},urlFragment:e=>a.unescapeComponent(a.parse(e).fragment)||"",pathRelative:(e,t)=>{if(e===t)return"";let n=1;const r=e.length-1,a=t.length-n,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==t.charCodeAt(n+s))break;47===r&&(o=s)}if(a>i){if(47===t.charCodeAt(n+s))return t.slice(n+s+1);if(0===s)return t.slice(n+s)}r>i&&(47===e.charCodeAt(s+1)?o=s:0===i&&(o=0));let c="";for(s=o+2;s<=e.length;++s)s!==e.length&&47!==e.charCodeAt(s)||(c+=0===c.length?"..":"/..");return n+=o,c.length>0?`${c}${t.slice(n,t.length)}`:(47===t.charCodeAt(n)&&++n,t.slice(n,t.length))}};const s=t,c=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(h)},l=(e,t,n,r)=>{if(0===e.length)return n;if(e.length>1){if(Array.isArray(t)){const a=e.shift(),i=[...t];return i[a]=l(e,v(t,a,r),n,f(a,r)),i}{const a=e.shift();return{...t,[a]:l(e,v(t,a,r),n,f(a,r))}}}if(Array.isArray(t)){const r=[...t];return r[y(t,e[0])]=n,r}return"object"==typeof t&&null!==t?{...t,[e[0]]:n}:v(t,e[0],r)},p=(e,t,n,r)=>{if(0!==e.length)if(1!==e.length||g(t)){const a=e.shift();p(e,v(t,a,r),n,f(a,r))}else{t[y(t,e[0])]=n}},u=(e,t,n)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=v(t,r,n);return{...t,[r]:u(e,a,f(r,n))}}if(Array.isArray(t))return t.filter(((t,n)=>n!=e[0]));if("object"==typeof t&&null!==t){const{[e[0]]:n,...r}=t;return r}return v(t,e[0],n)}},m=(e,t,n)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=v(t,r,n);m(e,a,f(r,n))}else Array.isArray(t)?t.splice(e[0],1):"object"==typeof t&&null!==t?delete t[e[0]]:v(t,e[0],n)},f=s(((e,t)=>t+"/"+d(e))),d=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),h=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),y=(e,t)=>Array.isArray(e)&&"-"===t?e.length:t,v=(e,t,n="")=>{if(void 0===e)throw TypeError(`Value at '${n}' is undefined and does not have property '${t}'`);if(null===e)throw TypeError(`Value at '${n}' is null and does not have property '${t}'`);if(g(e))throw TypeError(`Value at '${n}' is a ${typeof e} and does not have property '${t}'`);return e[y(e,t)]},g=e=>null===e||"object"!=typeof e;var b={nil:"",append:f,get:(e,t)=>{const n=c(e),r=e=>n.reduce((([e,t],n)=>[v(e,n,t),f(n,t)]),[e,""])[0];return void 0===t?r:r(t)},set:(e,t,n)=>{const r=c(e),a=s(((e,t)=>l(r,e,t,"")));return void 0===t?a:a(t,n)},assign:(e,t,n)=>{const r=c(e),a=s(((e,t)=>p(r,e,t,"")));return void 0===t?a:a(t,n)},unset:(e,t)=>{const n=c(e),r=e=>u(n,e,"");return void 0===t?r:r(t)},remove:(e,t)=>{const n=c(e),r=e=>m(n,e,"");return void 0===t?r:r(t)}};const $=Symbol("$__value"),w=Symbol("$__href");var x={cons:(e,t)=>Object.freeze({[w]:e,[$]:t}),isReference:e=>e&&void 0!==e[w],href:e=>e[w],value:e=>e[$]};const O=b,S=t,{resolveUrl:I,jsonTypeOf:E}=o,j=x,A=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),C=e=>j.isReference(e.value)?j.value(e.value):e.value,P=S(((e,t)=>E(C(e),t))),N=(e,t)=>Object.freeze({...t,pointer:O.append(e,t.pointer),value:C(t)[e]}),T=S(((e,t)=>C(t).map(((n,r,a,i)=>e(N(r,t),r,a,i))))),k=S(((e,t)=>C(t).forEach(((n,r,a,i)=>e(N(r,t),r,a,i))))),R=S(((e,t)=>C(t).map(((e,n,r,a)=>N(n,t))).filter(((t,n,r,a)=>e(t,n,r,a))))),D=S(((e,t,n)=>C(n).reduce(((t,r,a)=>e(t,N(a,n),a)),t))),q=S(((e,t)=>C(t).every(((n,r,a,i)=>e(N(r,t),r,a,i))))),M=S(((e,t)=>C(t).some(((n,r,a,i)=>e(N(r,t),r,a,i)))));var _={nil:A,cons:(e,t="")=>Object.freeze({...A,id:I(t,""),instance:e,value:e}),get:(e,t=A)=>{if(!e.startsWith("#"))throw Error(`No JSON document found at '${e.split("#")[0]}'`);return Object.freeze({...t,pointer:e.substr(1)})},uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:C,has:(e,t)=>e in C(t),typeOf:P,length:e=>C(e).length,step:N,entries:e=>Object.keys(C(e)).map((t=>[t,N(t,e)])),keys:e=>Object.keys(C(e)),map:T,forEach:k,filter:R,reduce:D,every:q,some:M},L=async e=>Object.entries(await e),F=function(e,t){return function n(){null==t&&(t=e.length);var r=[].slice.call(arguments);return r.length>=t?e.apply(this,r):function(){return n.apply(this,r.concat([].slice.call(arguments)))}}};var U=F((async(e,t)=>(await t).map(e)));var V=F((async(e,t,n)=>(await n).reduce((async(t,n)=>e(await t,n)),t)));const z=V;var J=F((async(e,t,n={})=>z((async(t,n)=>await e(n)?t.concat([n]):t),[],t,n)));const H=U;var B=F((async(e,t)=>{const n=await H(e,t);return(await Promise.all(n)).some((e=>e))}));const G=U;var K=F((async(e,t)=>{const n=await G(e,t);return(await Promise.all(n)).every((e=>e))}));var Z=F(((e,t)=>e.reduce((async(e,t)=>t(await e)),t)));const W=Z,X=L,Q=V;var Y,ee,te,ne={entries:L,map:U,filter:J,reduce:V,some:B,every:K,pipeline:Z,all:e=>Promise.all(e),allValues:e=>W([X,Q((async(e,[t,n])=>(e[t]=await n,e)),{})],e)},re={exports:{}};ee=e,te=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function a(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(t,n){if(a(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(i[o]=n[o]);if("string"==typeof i.type&&t!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var s=i.match;return i.match=Array.isArray(s)?s:s?[s]:[],i.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),i}function l(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include)for(var a=[].concat(r.include),i=0;i<a.length;i++)t.push({include:a[i]});else{if(!r.type)throw new Error("Rule has no type: "+JSON.stringify(r));t.push(c(r.type,r))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var i=t[r],o=e[i],s=[].concat(o);if("include"!==i){var l=[];s.forEach((function(e){a(e)?(l.length&&n.push(c(i,l)),n.push(c(i,e)),l=[]):l.push(e)})),l.length&&n.push(c(i,l))}else for(var p=0;p<s.length;p++)n.push({include:s[p]})}return n}(e)}var p=c("error",{lineBreaks:!0,shouldThrow:!0});function u(e,t){for(var a=null,c=Object.create(null),l=!0,u=null,m=[],f=[],d=0;d<e.length;d++)e[d].fallback&&(l=!1);for(d=0;d<e.length;d++){var h=e[d];if(h.include)throw new Error("Inheritance is not allowed in stateless lexers");if(h.error||h.fallback){if(a)throw!h.fallback==!a.fallback?new Error("Multiple "+(h.fallback?"fallback":"error")+" rules not allowed (for token '"+h.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+h.defaultType+"')");a=h}var y=h.match.slice();if(l)for(;y.length&&"string"==typeof y[0]&&1===y[0].length;)c[y.shift().charCodeAt(0)]=h;if(h.pop||h.push||h.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+h.defaultType+"')");if(h.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+h.defaultType+"')")}if(0!==y.length){l=!1,m.push(h);for(var v=0;v<y.length;v++){var g=y[v];if(r(g))if(null===u)u=g.unicode;else if(u!==g.unicode&&!1===h.fallback)throw new Error("If one rule is /u then all must be")}var b=o(y.map(s)),$=new RegExp(b);if($.test(""))throw new Error("RegExp matches empty string: "+$);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+$+"\nUse (?: … ) instead");if(!h.lineBreaks&&$.test("\n"))throw new Error("Rule should declare lineBreaks: "+$);f.push(i(b))}}var w=a&&a.fallback,x=n&&!w?"ym":"gm",O=n||w?"":"|";return!0===u&&(x+="u"),{regexp:new RegExp(o(f)+O,x),groups:m,fast:c,error:a||p}}function m(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var f=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};f.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},f.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},f.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},f.prototype.popState=function(){this.setState(this.stack.pop())},f.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var d=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function h(){return this.value}if(f.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw new Error("Cannot find token type for matched text")},f.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){if(o=this.fast[n.charCodeAt(e)])return this._token(o,n.charAt(e),e);var r=this.re;r.lastIndex=e;var a=d(r,n),i=this.error;if(null==a)return this._token(i,n.slice(e,n.length),e);var o=this._getGroup(a),s=a[0];return i.fallback&&a.index!==e?(this.queuedGroup=o,this.queuedText=s,this._token(i,n.slice(e,a.index),e)):this._token(o,s,e)}},f.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var a=/\n/g,i=1;if("\n"===t)r=1;else for(;a.exec(t);)r++,i=a.lastIndex}var o={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:h,offset:n,lineBreaks:r,line:this.line,col:this.col},s=t.length;if(this.index+=s,this.line+=r,0!==r?this.col=s-i+1:this.col+=s,e.shouldThrow)throw new Error(this.formatError(o,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),o},"undefined"!=typeof Symbol&&Symbol.iterator){var y=function(e){this.lexer=e};y.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},y.prototype[Symbol.iterator]=function(){return this},f.prototype[Symbol.iterator]=function(){return new y(this)}}return f.prototype.formatError=function(e,t){if(null==e){var n=this.buffer.slice(this.index);e={text:n,offset:this.index,lineBreaks:-1===n.indexOf("\n")?0:1,line:this.line,col:this.col}}var r=Math.max(0,e.offset-e.col+1),a=e.lineBreaks?e.text.indexOf("\n"):e.text.length,i=this.buffer.substring(r,e.offset+a);return t+=" at line "+e.line+" col "+e.col+":\n\n",t+=" "+i+"\n",t+=" "+Array(e.col).join(" ")+"^"},f.prototype.clone=function(){return new f(this.states,this.state)},f.prototype.has=function(e){return!0},{compile:function(e){var t=u(l(e));return new f({start:t},"start")},states:function(e,t){var n=e.$all?l(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var a=Object.create(null),i=0;i<r.length;i++)a[b=r[i]]=l(e[b]).concat(n);for(i=0;i<r.length;i++)for(var o=a[b=r[i]],s=Object.create(null),c=0;c<o.length;c++){var p=o[c];if(p.include){var d=[c,1];if(p.include!==b&&!s[p.include]){s[p.include]=!0;var h=a[p.include];if(!h)throw new Error("Cannot include nonexistent state '"+p.include+"' (in state '"+b+"')");for(var y=0;y<h.length;y++){var v=h[y];-1===o.indexOf(v)&&d.push(v)}}o.splice.apply(o,d),c--}}var g=Object.create(null);for(i=0;i<r.length;i++){var b;g[b=r[i]]=u(a[b],!0)}for(i=0;i<r.length;i++){var $=r[i],w=g[$],x=w.groups;for(c=0;c<x.length;c++)m(x[c],$,g);var O=Object.getOwnPropertyNames(w.fast);for(c=0;c<O.length;c++)m(w.fast[O[c]],$,g)}return new f(g,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t=Object.create(null),n=Object.create(null),r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a],o=e[i];(Array.isArray(o)?o:[o]).forEach((function(e){if((n[e.length]=n[e.length]||[]).push(e),"string"!=typeof e)throw new Error("keyword must be string (in keyword '"+i+"')");t[e]=i}))}function s(e){return JSON.stringify(e)}var c="";for(var l in c+="switch (value.length) {\n",n){var p=n[l];c+="case "+l+":\n",c+="switch (value) {\n",p.forEach((function(e){var n=t[e];c+="case "+s(e)+": return "+s(n)+"\n"})),c+="}\n"}return c+="}\n",Function("value",c)}}},(Y=re).exports?Y.exports=te():ee.moo=te();const ae=re.exports;const ie=b,oe=e=>{const t=ae.states({main:{WS:{match:new RegExp("(?:(?:\\r?\\n)|[ \\t])+","u"),lineBreaks:!0},true:{match:"true",value:()=>!0},false:{match:"false",value:()=>!1},null:{match:"null",value:()=>null},number:{match:new RegExp("-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][-+]?[0-9]+)?","u"),value:parseFloat},string:{match:new RegExp('"(?:[\\x20-\\x21\\x23-\\x5b\\x5d-\\u{10ffff}]|\\\\(?:["\\/\\\\brfnt]|u[0-9a-fA-F]{4}))*"',"u"),value:JSON.parse},"{":"{","}":"}","[":"[","]":"]",":":":",",":",",error:ae.error}});t.reset(e);const n=()=>{let e;do{if(e=t.next(),"error"===e?.type)throw SyntaxError(t.formatError(e,"Unrecognized token"))}while("WS"===e?.type);return e};let r,a=n();const i={offset:0,line:1,col:0,text:""};return{next:e=>{if(r=a,a=n(),e&&r?.type!==e)throw SyntaxError(t.formatError(r,`Expected a '${e}'`));return r},peek:()=>a,syntaxError:e=>{const n=r||i,a={...n,offset:n.offset+n.text.length,col:n.col+n.text.length};throw new SyntaxError(t.formatError(a,e))}}},se=(e,t)=>t,ce=(e,t,n,r)=>{let a;const i=e.next();switch(i?.type){case"true":case"false":case"null":case"number":case"string":a=i.value;break;case"{":a=le(e,t,n,r);break;case"[":a=ue(e,t,n,r);break;default:e.syntaxError("Expected a JSON value")}return r(t,a,n)},le=(e,t,n,r)=>{const a={};return"}"!==e.peek()?.type&&pe(e,t,n,r,a),e.next("}"),a},pe=(e,t,n,r,a)=>{const i=e.next("string").value;e.next(":"),de(e.peek())||e.syntaxError("Expected a JSON value"),a[i]=ce(e,i,ie.append(i,n),r),","===e.peek()?.type?(e.next(),pe(e,i,n,r,a)):de(e.peek())&&e.next(",")},ue=(e,t,n,r)=>{const a=[];return"]"!==e.peek()?.type&&me(e,0,n,r,a),e.next("]"),a},me=(e,t,n,r,a)=>{de(e.peek())||e.syntaxError("Expected a JSON value"),a[t]=ce(e,t,ie.append(t,n),r),","===e.peek()?.type?(e.next(),me(e,t+1,n,r,a)):de(e.peek())&&e.next(",")},fe=new Set(["string","number","true","false","null","[","{"]),de=e=>fe.has(e?.type);var he=(e,t=se)=>{const n=oe(e),r=ce(n,"",ie.nil,t);return n.peek()&&n.syntaxError("A value has been parsed, but more tokens were found"),r};const ye=b,ve=(e,t)=>t,ge=(e,t,n,r,a,i)=>{let o;return e=t(r,e,a),o=Array.isArray(e)?be(e,t,n,a,i):"object"==typeof e&&null!==e?$e(e,t,n,a,i):JSON.stringify(e),o},be=(e,t,n,r,a)=>{0===e.length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"";return"["+i+n+e.map(((e,i)=>{const o=ye.append(i,r);return ge(e,t,n,i,o,a+1)})).join(`,${i}${n}`)+i+"]"},$e=(e,t,n,r,a)=>{0===Object.keys(e).length&&(n="");const i=n?`\n${n.repeat(a-1)}`:"",o=n?" ":"";return"{"+i+n+Object.entries(e).map((([e,i])=>{const s=ye.append(e,r);return JSON.stringify(e)+":"+o+ge(i,t,n,e,s,a+1)})).join(`,${i}${n}`)+i+"}"};var we=(e,t=ve,n="")=>ge(e,t,n,"",ye.nil,1);var xe={parse:he,stringify:we},Oe=fetch,Se={},Ie=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ee=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,je=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ae=/\\([\u000b\u0020-\u00ff])/g,Ce=/([\\"])/g,Pe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function Ne(e){var t=String(e);if(je.test(t))return t;if(t.length>0&&!Ee.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(Ce,"\\$1")+'"'}function Te(e){this.parameters=Object.create(null),this.type=e}Se.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!Pe.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var a,i=Object.keys(t).sort(),o=0;o<i.length;o++){if(a=i[o],!je.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+Ne(t[a])}return r},Se.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.substr(0,n).trim():t.trim();if(!Pe.test(r))throw new TypeError("invalid media type");var a=new Te(r.toLowerCase());if(-1!==n){var i,o,s;for(Ie.lastIndex=n;o=Ie.exec(t);){if(o.index!==n)throw new TypeError("invalid parameter format");n+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(Ae,"$1")),a.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return a};const ke=Se,Re={};var De={addPlugin:(e,t)=>{Re[e]=t},parse:e=>{const t=ke.parse(e.headers.get("content-type"));if(!(t.type in Re))throw Error(`${e.url} is not a schema. Found a document with media type: ${t.type}`);return Re[t.type].parse(e,t.parameters)},getContentType:e=>{for(const t in Re)if(Re[t].matcher(e))return t;return"application/octet-stream"}};const qe=t,Me=ne,_e=xe,Le=b,{jsonTypeOf:Fe,resolveUrl:Ue,urlFragment:Ve,pathRelative:ze}=o,Je=Oe,He=x,Be=De,Ge="https://json-schema.org/draft/2019-09/vocab/core",Ke="https://json-schema.org/draft/2020-12/vocab/core",Ze={},We={},Xe=(e,t)=>{const n=We[e];return Ze[n]?.[t]},Qe={},Ye={},et=(e,t="",n="")=>{e=JSON.parse(JSON.stringify(e));const r=Ue(t,""),a=Ue(e.$schema||n,"");if(!a)throw Error("Couldn't determine schema dialect");if(delete e.$schema,!(a in We))if(!0===e?.$vocabulary?.[Ge]&&a===tt(e,r,Ge)[0])We[a]=Ge;else if(!0===e?.$vocabulary?.[Ke]&&a===tt(e,r,Ke)[0])We[a]=Ke;else{const e=Qe[a];if(!e)throw Error(`Couldn't determine JSON Schema version for dialect: '${a}'`);!0===e.vocabulary[Ge]?We[a]=Ge:!0===e.vocabulary[Ke]?We[a]=Ke:We[a]=We[e.dialectId]}const[i,o]=tt(e,r,We[a]);if(!i)throw Error("Couldn't determine an identifier for the schema");const s=Xe(a,"baseToken");delete e[s],r&&(Ye[r]=i);const c=Xe(a,"anchorToken");o&&s===c&&(e[c]=c!==s?encodeURI(o):`#${encodeURI(o)}`);const l={},p=Xe(a,"recursiveAnchorToken");let u;!0===e[p]&&(l[""]=`${i}#`,e[c]="",delete e[p]);const m=Xe(a,"vocabularyToken");Fe(e[m],"object")?(u=e[m],delete e[m]):u={[We[a]]:!0};const f={"":""};return Qe[i]={id:i,dialectId:a,schema:nt(e,i,a,Le.nil,f,l),anchors:f,dynamicAnchors:l,vocabulary:u,validated:!1},i},tt=(e,t,n)=>{const r=Ze[n]?.baseToken,a=Ue(t,e[r]||"");return[Ue(a,""),Ve(a)]},nt=(e,t,n,r,a,i)=>{if(Fe(e,"object")){const o="string"==typeof e.$schema?Ue(e.$schema,""):n,s=Xe(o,"embeddedToken"),c=Xe(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=Ue(t,e[s]);return e[Xe(o,"baseToken")]=r,et(e,r,n),He.cons(e[s],e)}const l=Xe(n,"anchorToken"),p=Xe(n,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${t}#${encodeURI(r)}`,a[e[p]]=r,delete e[p]);const u=Xe(n,"embeddedToken");if("string"==typeof e[l]){const t=l!==u?e[l]:e[l].slice(1);a[t]=r,delete e[l]}const m=Xe(n,"jrefToken");if("string"==typeof e[m])return He.cons(e[m],e);for(const o in e)e[o]=nt(e[o],t,n,Le.append(o,r),a,i);return e}return Array.isArray(e)?e.map(((e,o)=>nt(e,t,n,Le.append(o,r),a,i))):e},rt=e=>Qe[Ye[e]]||Qe[e],at=Object.freeze({id:"",dialectId:void 0,vocabulary:{},pointer:Le.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),it=async(e,t=at)=>{const n=Ue(ct(t),e),r=Ue(n,""),a=Ve(n);if(!(e=>e in Qe||e in Ye)(r)){const e=await Je(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error(`Failed to retrieve schema with id: ${r}`);const[t,n]=await Be.parse(e);let a;a=t.$schema?Ue(t.$schema,""):n?Ue(r,n):"",a&&r!==a&&!(a in We)&&await it(a),et(t,r,a)}const i=rt(r),o="/"!==a[0]?st(i,a):a,s=Object.freeze({...i,pointer:o,value:Le.get(o,i.schema)});return ot(s)},ot=e=>He.isReference(e.value)?it(He.href(e.value),e):e,st=(e,t)=>{if(!(t in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(t)}'`);return e.anchors[t]},ct=e=>`${e.id}#${encodeURI(e.pointer)}`,lt=e=>He.isReference(e.value)?He.value(e.value):e.value,pt=(e,t)=>{const n=rt(t.id),r=Object.freeze({...t,pointer:Le.append(e,t.pointer),value:lt(t)[e],validated:n.validated});return ot(r)},ut=qe(((e,t)=>Me.pipeline([lt,Me.map((async(n,r)=>e(await pt(r,t),r))),Me.all],t))),mt={parentId:"",parentDialect:"",includeEmbedded:!0},ft=(e,t)=>{if(t.startsWith("file://")){const n=e.slice(7,e.lastIndexOf("/"));return""===e?"":ze(n,t.slice(7))}return t};var dt={setConfig:(e,t,n)=>{We[e]=e,Ze[e]||(Ze[e]={}),Ze[e][t]=n},getConfig:Xe,add:et,get:it,markValidated:e=>{Qe[e].validated=!0},uri:ct,value:lt,getAnchorPointer:st,typeOf:(e,t)=>Fe(lt(e),t),has:(e,t)=>e in lt(t),step:pt,keys:e=>Object.keys(lt(e)),entries:e=>Me.pipeline([lt,Object.keys,Me.map((async t=>[t,await pt(t,e)])),Me.all],e),map:ut,length:e=>lt(e).length,toSchema:(e,t={})=>{const n={...mt,...t},r=Xe(e.dialectId,"anchorToken"),a=Xe(e.dialectId,"dynamicAnchorToken"),i={};for(const t in e.anchors)""===t||e.dynamicAnchors[t]||(i[e.anchors[t]]=t);const o={};for(const t in e.dynamicAnchors){const n=Ve(e.dynamicAnchors[t]);o[n]=t}const s=JSON.parse(_e.stringify(e.schema,((t,s,c)=>{if(He.isReference(s)){const t=He.value(s),r="string"==typeof t.$schema?Ue(t.$schema,""):e.dialectId,a=Xe(r,"embeddedToken");return!n.includeEmbedded&&a in t?void 0:He.value(s)}return c in i&&(s={[r]:i[c],...s}),c in o&&(s={[a]:o[c],...s}),s}))),c=Xe(e.dialectId,"baseToken"),l=ft(n.parentId,e.id),p=n.parentDialect===e.dialectId?"":e.dialectId;return{...l&&{[c]:l},...p&&{$schema:p},...s}}};class ht extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var yt=ht;const vt=dt;var gt={compile:e=>vt.value(e),interpret:()=>!0};const bt=t,$t=n.exports,{resolveUrl:wt}=o,xt=_,Ot=dt,St=yt,It=De,Et=gt,jt="FLAG",At="BASIC",Ct="DETAILED",Pt="VERBOSE";let Nt=Ct,Tt=!0;It.addPlugin("application/schema+json",{parse:async(e,t)=>[await e.json(),t.schema||t.profile],matcher:e=>e.endsWith(".schema.json")});const kt=async e=>{const t={metaData:{}};return{ast:t,schemaUri:await Ut(e,t)}},Rt=bt((({ast:e,schemaUri:t},n,r=jt)=>{if(![jt,At,Ct,Pt].includes(r))throw Error(`The '${r}' error format is not supported`);const a=[],i=$t.subscribe("result",Dt(r,a));return zt(t,n,e,{}),$t.unsubscribe(i),a[0]})),Dt=(e,t)=>{const n=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:t,instanceLocation:r,valid:i,errors:[]};n.push(o)}else if("result.start"===r)n.push(r);else if("result.end"===r){const r=n.pop();for(;"result.start"!==n[n.length-1];){const t=n.pop(),a=[t];e===At&&(a.push(...t.errors),delete t.errors),(e===Pt||e!==jt&&!t.valid)&&r.errors.unshift(...a)}n[n.length-1]=r,t[0]=r}}},qt={},Mt=e=>qt[e]||Et,_t=e=>e in qt,Lt={},Ft={},Ut=async(e,t)=>{if(e=await Vt(e),!_t(`${e.dialectId}#validate`)){const t=await Ot.get(e.dialectId);(Ot.getConfig(t.id,"mandatoryVocabularies")||[]).forEach((e=>{if(!t.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)})),Object.entries(t.vocabulary).forEach((([e,n])=>{if(e in Lt)Object.entries(Lt[e]).forEach((([e,n])=>{((e,t)=>{qt[e]={collectEvaluatedItems:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&new Set,collectEvaluatedProperties:(e,n,r,a,i)=>t.interpret(e,n,r,a,i)&&[],...t}})(`${t.id}#${e}`,n)}));else if(n)throw Error(`Missing required vocabulary: ${e}`)}))}if(Tt&&!e.validated){if(Ot.markValidated(e.id),!(e.dialectId in Ft)){const t=await Ot.get(e.dialectId),n=await kt(t);Ft[t.id]=Rt(n)}const t=xt.cons(e.schema,e.id),n=Ft[e.dialectId](t,Nt);if(!n.valid)throw new St(n)}return e.id in t.metaData||(t.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),Mt(`${e.dialectId}#validate`).compile(e,t)},Vt=async e=>Ot.typeOf(e,"string")?Vt(await Ot.get(Ot.value(e),e)):e,zt=(e,t,n,r)=>{const a=Jt(e,n),i=wt(e,"");return Mt(a).interpret(e,t,n,{...n.metaData[i].dynamicAnchors,...r})},Jt=(e,t)=>{if(!(e in t))throw Error(`No schema found at ${e}`);return t[e][0]};var Ht={validate:async(e,t,n)=>{const r=await kt(e),a=(e,t)=>Rt(r,xt.cons(e),t);return void 0===t?a:a(t,n)},compile:kt,interpret:Rt,setMetaOutputFormat:e=>{Nt=e},setShouldMetaValidate:e=>{Tt=e},FLAG:jt,BASIC:At,DETAILED:Ct,VERBOSE:Pt,add:(e,t="",n="")=>{const r=Ot.add(e,t,n);delete Ft[r]},getKeyword:Mt,hasKeyword:_t,defineVocabulary:(e,t)=>{Lt[e]=t},compileSchema:Ut,interpretSchema:zt,collectEvaluatedProperties:(e,t,n,r,a)=>{const i=Jt(e,n);return Mt(i).collectEvaluatedProperties(e,t,n,r,a)},collectEvaluatedItems:(e,t,n,r,a)=>{const i=Jt(e,n);return Mt(i).collectEvaluatedItems(e,t,n,r,a)},addMediaTypePlugin:It.addPlugin};const Bt=ne,Gt=n.exports,Kt=Ht,Zt=_,Wt=dt;var Xt={compile:async(e,t)=>{const n=Wt.uri(e);if(!(n in t)){t[n]=!1;const r=Wt.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${Wt.uri(e)}'`);t[n]=[`${e.dialectId}#validate`,Wt.uri(e),"boolean"==typeof r?r:await Bt.pipeline([Wt.entries,Bt.map((([t,n])=>[`${e.dialectId}#${t}`,n])),Bt.filter((([t])=>t!==`${e.dialectId}#validate`)),Bt.map((async([n,r])=>{const a=await Kt.getKeyword(n).compile(r,t,e);return[n,Wt.uri(r),a]})),Bt.all],e)]}return n},interpret:(e,t,n,r)=>{const[a,i,o]=n[e];Gt.publishSync("result.start");const s="boolean"==typeof o?o:o.every((([e,a,i])=>{Gt.publishSync("result.start");const o=Kt.getKeyword(e).interpret(i,t,n,r);return Gt.publishSync("result",{keyword:e,absoluteKeywordLocation:a,instanceLocation:Zt.uri(t),valid:o,ast:i}),Gt.publishSync("result.end"),o}));return Gt.publishSync("result",{keyword:a,absoluteKeywordLocation:i,instanceLocation:Zt.uri(t),valid:s,ast:e}),Gt.publishSync("result.end"),s},collectEvaluatedProperties:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&[]:i.filter((([e])=>!a||!e.endsWith("#unevaluatedProperties"))).reduce(((e,[a,,i])=>{const o=e&&Kt.getKeyword(a).collectEvaluatedProperties(i,t,n,r);return!1!==o&&[...e,...o]}),[])},collectEvaluatedItems:(e,t,n,r,a=!1)=>{const i=n[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter((([e])=>!a||!e.endsWith("#unevaluatedItems"))).reduce(((e,[a,,i])=>{const o=!1!==e&&Kt.getKeyword(a).collectEvaluatedItems(i,t,n,r);return!1!==o&&new Set([...e,...o])}),new Set)}};var Qt={Core:Ht,Schema:dt,Instance:_,Reference:x,Keywords:{metaData:gt,validate:Xt},InvalidSchemaError:yt};const{Core:Yt,Schema:en,Instance:tn}=Qt;var nn={compile:async(e,t,n)=>{const r=await en.step("items",n),a=en.typeOf(r,"array")?en.length(r):Number.MAX_SAFE_INTEGER;return en.typeOf(e,"boolean")?[a,en.value(e)]:[a,await Yt.compileSchema(e,t)]},interpret:([e,t],n,r,a)=>!tn.typeOf(n,"array")||("string"==typeof t?tn.every(((n,i)=>i<e||Yt.interpretSchema(t,n,r,a)),n):tn.every(((n,r)=>r<e||t),n))};const{Core:rn,Schema:an,Instance:on}=Qt,sn=([e,t],n,r,a)=>!on.typeOf(n,"array")||on.every(((n,i)=>i<e||rn.interpretSchema(t,n,r,a)),n);var cn={compile:async(e,t,n)=>{const r=await an.step("items",n);return[an.typeOf(r,"array")?an.length(r):Number.MAX_SAFE_INTEGER,await rn.compileSchema(e,t)]},interpret:sn,collectEvaluatedItems:(e,t,n,r)=>sn(e,t,n,r)&&new Set(on.map(((e,t)=>t),t))};const{Core:ln,Schema:pn,Instance:un}=Qt;var mn={compile:async(e,t,n)=>{const r=await pn.step("properties",n),a=pn.typeOf(r,"object")?pn.keys(r):[],i=await pn.step("patternProperties",n),o=pn.typeOf(i,"object")?pn.keys(i).map((e=>new RegExp(e))):[];return pn.typeOf(e,"boolean")?[a,o,pn.value(e)]:[a,o,await ln.compileSchema(e,t)]},interpret:([e,t,n],r,a,i)=>{if(!un.typeOf(r,"object"))return!0;const o=un.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n)))));return"string"==typeof n?o.every((([,e])=>ln.interpretSchema(n,e,a,i))):0===o.length||n}};const{Core:fn,Schema:dn,Instance:hn}=Qt,yn=([e,t,n],r,a,i)=>!hn.typeOf(r,"object")||hn.entries(r).filter((([n])=>!e.includes(n)&&!t.some((e=>e.test(n))))).every((([,e])=>fn.interpretSchema(n,e,a,i)));var vn={compile:async(e,t,n)=>{const r=await dn.step("properties",n),a=dn.typeOf(r,"object")?dn.keys(r):[],i=await dn.step("patternProperties",n),o=dn.typeOf(i,"object")?dn.keys(i).map((e=>new RegExp(e))):[];return[a,o,await fn.compileSchema(e,t)]},interpret:yn,collectEvaluatedProperties:(e,t,n,r)=>yn(e,t,n,r)&&[new RegExp("")]};const{Core:gn,Schema:bn}=Qt,$n=ne;var wn={compile:(e,t)=>$n.pipeline([bn.map((async e=>gn.compileSchema(await e,t))),$n.all],e),interpret:(e,t,n,r)=>e.every((e=>gn.interpretSchema(e,t,n,r))),collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=e&&gn.collectEvaluatedProperties(a,t,n,r);return!1!==i&&[...e,...i]}),[]),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=!1!==e&&gn.collectEvaluatedItems(a,t,n,r);return!1!==i&&new Set([...e,...i])}),new Set)};const{Core:xn,Schema:On}=Qt,Sn=ne;var In={compile:(e,t)=>Sn.pipeline([On.map((async e=>xn.compileSchema(await e,t))),Sn.all],e),interpret:(e,t,n,r)=>e.filter((e=>xn.interpretSchema(e,t,n,r))).length>0,collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,a)=>{const i=xn.collectEvaluatedProperties(a,t,n,r);return!1!==i?[...e||[],...i]:e}),!1),collectEvaluatedItems:(e,t,n,r)=>e.reduce(((e,a)=>{const i=xn.collectEvaluatedItems(a,t,n,r);return!1!==i?new Set([...e||[],...i]):e}),!1)},En=Object.keys,jn=JSON.stringify;function An(e,t){var n,r,a,i,o,s,c;if("string"===(c=typeof e))return jn(e);if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(e instanceof Array){for(a="[",r=e.length-1,n=0;n<r;n++)a+=An(e[n],!1)+",";return r>-1&&(a+=An(e[n],!1)),a+"]"}if(e instanceof Object){if("function"==typeof e.toJSON)return An(e.toJSON(),t);for(r=(i=En(e).sort()).length,a="",n=0;n<r;)void 0!==(s=An(e[o=i[n]],!0))&&(n&&""!==a&&(a+=","),a+=jn(o)+":"+s),n++;return"{"+a+"}"}switch(c){case"function":case"undefined":return t?void 0:null;default:return isFinite(e)?e:null}}var Cn=function(e){return""+An(e,!1)};const{Schema:Pn,Instance:Nn}=Qt,Tn=Cn;var kn={compile:e=>Tn(Pn.value(e)),interpret:(e,t)=>Tn(Nn.value(t))===e};const{Core:Rn,Instance:Dn}=Qt;var qn={compile:(e,t)=>Rn.compileSchema(e,t),interpret:(e,t,n,r)=>!Dn.typeOf(t,"array")||Dn.some((t=>Rn.interpretSchema(e,t,n,r)),t)};const{Core:Mn,Schema:_n,Instance:Ln}=Qt,Fn=({contains:e,minContains:t,maxContains:n},r,a,i)=>{if(!Ln.typeOf(r,"array"))return!0;const o=Ln.reduce(((t,n)=>Mn.interpretSchema(e,n,a,i)?t+1:t),0,r);return o>=t&&o<=n};var Un={compile:async(e,t,n)=>{const r=await Mn.compileSchema(e,t),a=await _n.step("minContains",n),i=_n.typeOf(a,"number")?_n.value(a):1,o=await _n.step("maxContains",n);return{contains:r,minContains:i,maxContains:_n.typeOf(o,"number")?_n.value(o):Number.MAX_SAFE_INTEGER}},interpret:Fn,collectEvaluatedItems:(e,t,n,r)=>Fn(e,t,n,r)&&Ln.reduce(((t,a,i)=>Mn.interpretSchema(e.contains,a,n,r)?t.add(i):t),new Set,t)};const{Core:Vn,Schema:zn}=Qt,Jn=ne;var Hn={compile:async(e,t)=>{await Jn.pipeline([zn.entries,Jn.map((([,e])=>Vn.compileSchema(e,t))),Jn.all],e)},interpret:()=>!0};const{Core:Bn,Schema:Gn,Instance:Kn}=Qt,Zn=ne;var Wn={compile:(e,t)=>Zn.pipeline([Gn.entries,Zn.map((async([e,n])=>[e,Gn.typeOf(n,"array")?Gn.value(n):await Bn.compileSchema(n,t)])),Zn.all],e),interpret:(e,t,n,r)=>{const a=Kn.value(t);return!Kn.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||(Array.isArray(i)?i.every((e=>e in a)):Bn.interpretSchema(i,t,n,r))))}};const{Schema:Xn,Instance:Qn}=Qt,Yn=ne;var er={compile:e=>Yn.pipeline([Xn.entries,Yn.map((([e,t])=>[e,Xn.value(t)])),Yn.all],e),interpret:(e,t)=>{const n=Qn.value(t);return!Qn.typeOf(t,"object")||e.every((([e,t])=>!(e in n)||t.every((e=>e in n))))}};const{Core:tr,Schema:nr,Instance:rr}=Qt,ar=ne;var ir={compile:(e,t)=>ar.pipeline([nr.entries,ar.map((async([e,n])=>[e,await tr.compileSchema(n,t)])),ar.all],e),interpret:(e,t,n,r)=>{const a=rr.value(t);return!rr.typeOf(t,"object")||e.every((([e,i])=>!(e in a)||tr.interpretSchema(i,t,n,r)))},collectEvaluatedProperties:(e,t,n,r)=>e.reduce(((e,[a,i])=>{if(!e||!rr.has(a,t))return e;const o=tr.collectEvaluatedProperties(i,t,n,r);return!1!==o&&e.concat(o)}),[])};const{Schema:or,Instance:sr}=Qt,cr=Cn;var lr={compile:e=>or.value(e).map(cr),interpret:(e,t)=>e.some((e=>cr(sr.value(t))===e))};const{Schema:pr,Instance:ur}=Qt;var mr={compile:async e=>pr.value(e),interpret:(e,t)=>!ur.typeOf(t,"number")||ur.value(t)<e};const{Schema:fr,Instance:dr}=Qt;var hr={compile:async e=>fr.value(e),interpret:(e,t)=>!dr.typeOf(t,"number")||dr.value(t)>e};const{Core:yr}=Qt;var vr={compile:(e,t)=>yr.compileSchema(e,t),interpret:(e,t,n,r)=>(yr.interpretSchema(e,t,n,r),!0),collectEvaluatedProperties:(e,t,n,r)=>yr.collectEvaluatedProperties(e,t,n,r)||[],collectEvaluatedItems:(e,t,n,r)=>yr.collectEvaluatedItems(e,t,n,r)||new Set};const{Core:gr,Schema:br}=Qt,$r=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>gr.getKeyword(e).interpret(a,t,n,r)))};var wr={compile:async(e,t,n)=>{if(br.has("if",n)){const r=await br.step("if",n);return[await gr.compileSchema(r,t),await gr.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||!$r(e,n,r,a)||gr.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0!==e&&$r(e,n,r,a)?gr.collectEvaluatedProperties(t,n,r,a):[],collectEvaluatedItems:([e,t],n,r,a)=>void 0!==e&&$r(e,n,r,a)?gr.collectEvaluatedItems(t,n,r,a):new Set};const{Core:xr,Schema:Or}=Qt,Sr=(e,t,n,r)=>{const a=n[e][2];return"boolean"==typeof a?a:a.every((([e,,a])=>xr.getKeyword(e).interpret(a,t,n,r)))};var Ir={compile:async(e,t,n)=>{if(Or.has("if",n)){const r=await Or.step("if",n);return[await xr.compileSchema(r,t),await xr.compileSchema(e,t)]}return[]},interpret:([e,t],n,r,a)=>void 0===e||Sr(e,n,r,a)||xr.interpretSchema(t,n,r,a),collectEvaluatedProperties:([e,t],n,r,a)=>void 0===e||Sr(e,n,r,a)?[]:xr.collectEvaluatedProperties(t,n,r,a),collectEvaluatedItems:([e,t],n,r,a)=>void 0===e||Sr(e,n,r,a)?new Set:xr.collectEvaluatedItems(t,n,r,a)};const{Core:Er,Schema:jr,Instance:Ar}=Qt,Cr=(e,t,n,r)=>!Ar.typeOf(t,"array")||("string"==typeof e?Ar.every((t=>Er.interpretSchema(e,t,n,r)),t):Ar.every(((t,a)=>!(a in e)||Er.interpretSchema(e[a],t,n,r)),t));var Pr={compile:async(e,t)=>{if(jr.typeOf(e,"array")){const n=await jr.map((e=>Er.compileSchema(e,t)),e);return Promise.all(n)}return Er.compileSchema(e,t)},interpret:Cr,collectEvaluatedItems:(e,t,n,r)=>Cr(e,t,n,r)&&("string"==typeof e?new Set(Ar.map(((e,t)=>t),t)):new Set(e.map(((e,t)=>t))))};const{Core:Nr,Schema:Tr,Instance:kr}=Qt,Rr=([e,t],n,r,a)=>!kr.typeOf(n,"array")||kr.every(((n,i)=>i<e||Nr.interpretSchema(t,n,r,a)),n);var Dr={compile:async(e,t,n)=>{const r=await Tr.step("prefixItems",n);return[Tr.typeOf(r,"array")?Tr.length(r):0,await Nr.compileSchema(e,t)]},interpret:Rr,collectEvaluatedItems:(e,t,n,r)=>Rr(e,t,n,r)&&new Set(kr.map(((e,t)=>t),t))};const{Schema:qr,Instance:Mr}=Qt;var _r={compile:e=>qr.value(e),interpret:(e,t)=>!Mr.typeOf(t,"array")||Mr.length(t)<=e};const{Schema:Lr,Instance:Fr}=Qt;var Ur={compile:e=>Lr.value(e),interpret:(e,t)=>!Fr.typeOf(t,"string")||[...Fr.value(t)].length<=e};const{Schema:Vr,Instance:zr}=Qt;var Jr={compile:e=>Vr.value(e),interpret:(e,t)=>!zr.typeOf(t,"object")||zr.keys(t).length<=e};const{Schema:Hr,Instance:Br}=Qt;var Gr={compile:async(e,t,n)=>{const r=await Hr.step("exclusiveMaximum",n),a=Hr.value(r);return[Hr.value(e),a]},interpret:([e,t],n)=>{if(!Br.typeOf(n,"number"))return!0;const r=Br.value(n);return t?r<e:r<=e}};const{Schema:Kr,Instance:Zr}=Qt;var Wr={compile:async e=>Kr.value(e),interpret:(e,t)=>!Zr.typeOf(t,"number")||Zr.value(t)<=e};const{Schema:Xr,Instance:Qr}=Qt;var Yr={compile:e=>Xr.value(e),interpret:(e,t)=>!Qr.typeOf(t,"array")||Qr.length(t)>=e};const{Schema:ea,Instance:ta}=Qt;var na={compile:e=>ea.value(e),interpret:(e,t)=>!ta.typeOf(t,"string")||[...ta.value(t)].length>=e};const{Schema:ra,Instance:aa}=Qt;var ia={compile:e=>ra.value(e),interpret:(e,t)=>!aa.typeOf(t,"object")||aa.keys(t).length>=e};const{Schema:oa,Instance:sa}=Qt;var ca={compile:async(e,t,n)=>{const r=await oa.step("exclusiveMinimum",n),a=oa.value(r);return[oa.value(e),a]},interpret:([e,t],n)=>{if(!sa.typeOf(n,"number"))return!0;const r=sa.value(n);return t?r>e:r>=e}};const{Schema:la,Instance:pa}=Qt;var ua={compile:async e=>la.value(e),interpret:(e,t)=>!pa.typeOf(t,"number")||pa.value(t)>=e};const{Schema:ma,Instance:fa}=Qt,da=(e,t)=>Math.abs(e-t)<1.1920929e-7;var ha={compile:e=>ma.value(e),interpret:(e,t)=>{if(!fa.typeOf(t,"number"))return!0;const n=fa.value(t)%e;return da(0,n)||da(e,n)}};const{Core:ya}=Qt;var va={compile:ya.compileSchema,interpret:(e,t,n,r)=>!ya.interpretSchema(e,t,n,r)};const{Core:ga,Schema:ba}=Qt;var $a={compile:async(e,t)=>{const n=await ba.map((e=>ga.compileSchema(e,t)),e);return Promise.all(n)},interpret:(e,t,n,r)=>{let a=0;for(const i of e)if(ga.interpretSchema(i,t,n,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=ga.collectEvaluatedProperties(i,t,n,r);return o?0==a++&&o:e}),!1)},collectEvaluatedItems:(e,t,n,r)=>{let a=0;return e.reduce(((e,i)=>{if(a>1)return!1;const o=ga.collectEvaluatedItems(i,t,n,r);return o?0==a++&&o:e}),!1)}};const{Schema:wa,Instance:xa}=Qt;var Oa={compile:e=>new RegExp(wa.value(e),"u"),interpret:(e,t)=>!xa.typeOf(t,"string")||e.test(xa.value(t))};const{Core:Sa,Schema:Ia,Instance:Ea}=Qt,ja=ne,Aa=(e,t,n,r)=>!Ea.typeOf(t,"object")||e.every((([e,a])=>Ea.entries(t).filter((([t])=>e.test(t))).every((([,e])=>Sa.interpretSchema(a,e,n,r)))));var Ca={compile:(e,t)=>ja.pipeline([Ia.entries,ja.map((async([e,n])=>[new RegExp(e,"u"),await Sa.compileSchema(n,t)])),ja.all],e),interpret:Aa,collectEvaluatedProperties:(e,t,n,r)=>Aa(e,t,n,r)&&e.map((([e])=>e))};var Pa={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const t=e.indexOf("#"),n=-1===t?e.length:t,r=e.slice(0,n),a=e.slice(n+1);return[decodeURI(r),decodeURI(a)]}};const{Core:Na,Schema:Ta,Instance:ka}=Qt,Ra=ne,{escapeRegExp:Da}=Pa,qa=(e,t,n,r)=>!ka.typeOf(t,"object")||ka.entries(t).filter((([t])=>t in e)).every((([t,a])=>Na.interpretSchema(e[t],a,n,r)));var Ma={compile:(e,t)=>Ra.pipeline([Ta.entries,Ra.reduce((async(e,[n,r])=>(e[n]=await Na.compileSchema(r,t),e)),Object.create(null))],e),interpret:qa,collectEvaluatedProperties:(e,t,n,r)=>qa(e,t,n,r)&&Object.keys(e).map((e=>new RegExp(`^${Da(e)}$`)))};const{Core:_a,Instance:La}=Qt;var Fa={compile:(e,t)=>_a.compileSchema(e,t),interpret:(e,t,n,r)=>!La.typeOf(t,"object")||La.keys(t).every((t=>_a.interpretSchema(e,La.cons(t),n,r)))};const{Core:Ua,Schema:Va}=Qt,{splitUrl:za}=Pa;var Ja={compile:async(e,t)=>{const[,n]=za(Va.value(e)),r=await Va.get(Va.value(e),e);return await Ua.compileSchema(r,t),[r.id,n]},interpret:([e,t],n,r,a)=>{if(t in r.metaData[e].dynamicAnchors)return Ua.interpretSchema(a[t],n,r,a);{const i=Va.getAnchorPointer(r.metaData[e],t);return Ua.interpretSchema(`${e}#${encodeURI(i)}`,n,r,a)}},collectEvaluatedProperties:Ua.collectEvaluatedProperties,collectEvaluatedItems:Ua.collectEvaluatedItems};const{Core:Ha,Schema:Ba}=Qt;var Ga={compile:async(e,t)=>{const n=await Ba.get(Ba.value(e),e);return Ha.compileSchema(n,t)},interpret:Ha.interpretSchema,collectEvaluatedProperties:Ha.collectEvaluatedProperties,collectEvaluatedItems:Ha.collectEvaluatedItems};const{Schema:Ka,Instance:Za}=Qt;var Wa={compile:e=>Ka.value(e),interpret:(e,t)=>!Za.typeOf(t,"object")||e.every((e=>Object.prototype.hasOwnProperty.call(Za.value(t),e)))};const{Core:Xa,Schema:Qa,Instance:Ya}=Qt,ei=ne,ti=(e,t,n,r)=>!Ya.typeOf(t,"array")||Ya.every(((t,a)=>!(a in e)||Xa.interpretSchema(e[a],t,n,r)),t);var ni={compile:(e,t)=>ei.pipeline([Qa.map((e=>Xa.compileSchema(e,t))),ei.all],e),interpret:ti,collectEvaluatedItems:(e,t,n,r)=>ti(e,t,n,r)&&new Set(e.map(((e,t)=>t)))};const{Schema:ri,Instance:ai}=Qt;var ii={compile:e=>ri.value(e),interpret:(e,t)=>"string"==typeof e?ai.typeOf(t,e):e.some(ai.typeOf(t))};const{Core:oi,Schema:si,Instance:ci}=Qt,li=([e,t],n,r,a)=>{if(!ci.typeOf(n,"array"))return!0;const i=oi.collectEvaluatedItems(e,n,r,a,!0);return!1===i||ci.every(((e,o)=>i.has(o)||oi.interpretSchema(t,ci.step(o,n),r,a)),n)};var pi={compile:async(e,t,n)=>[si.uri(n),await oi.compileSchema(e,t)],interpret:li,collectEvaluatedItems:(e,t,n,r)=>li(e,t,n,r)&&new Set(ci.map(((e,t)=>t),t))};const{Core:ui,Schema:mi,Instance:fi}=Qt,di=([e,t],n,r,a)=>{if(!fi.typeOf(n,"object"))return!0;const i=ui.collectEvaluatedProperties(e,n,r,a,!0);return!i||fi.entries(n).filter((([e])=>!i.some((t=>e.match(t))))).every((([,e])=>ui.interpretSchema(t,e,r,a)))};var hi={compile:async(e,t,n)=>[mi.uri(n),await ui.compileSchema(e,t)],interpret:di,collectEvaluatedProperties:(e,t,n,r)=>di(e,t,n,r)&&[new RegExp("")]};const{Schema:yi,Instance:vi}=Qt,gi=Cn;var bi={compile:e=>yi.value(e),interpret:(e,t)=>{if(!vi.typeOf(t,"array")||!1===e)return!0;const n=vi.map((e=>gi(vi.value(e))),t);return new Set(n).size===n.length}};const{Keywords:$i}=Qt;var wi={additionalItems:nn,additionalItems6:cn,additionalProperties:mn,additionalProperties6:vn,allOf:wn,anyOf:In,const:kn,contains:qn,containsMinContainsMaxContains:Un,definitions:Hn,dependencies:Wn,dependentRequired:er,dependentSchemas:ir,enum:lr,exclusiveMaximum:mr,exclusiveMinimum:hr,if:vr,then:wr,else:Ir,items:Pr,items202012:Dr,maxItems:_r,maxLength:Ur,maxProperties:Jr,maximumExclusiveMaximum:Gr,maximum:Wr,metaData:$i.metaData,minItems:Yr,minLength:na,minProperties:ia,minimumExclusiveMinimum:ca,minimum:ua,multipleOf:ha,not:va,oneOf:$a,pattern:Oa,patternProperties:Ca,properties:Ma,propertyNames:Fa,dynamicRef:Ja,ref:Ga,required:Wa,tupleItems:ni,type:ii,unevaluatedItems:pi,unevaluatedProperties:hi,uniqueItems:bi,validate:$i.validate};const{Core:xi,Schema:Oi}=Qt,Si=wi,Ii="http://json-schema.org/draft-04/schema";Oi.setConfig(Ii,"baseToken","id"),Oi.setConfig(Ii,"embeddedToken","id"),Oi.setConfig(Ii,"anchorToken","id"),Oi.setConfig(Ii,"jrefToken","$ref"),Oi.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}')),xi.defineVocabulary(Ii,{validate:Si.validate,additionalItems:Si.additionalItems,additionalProperties:Si.additionalProperties,allOf:Si.allOf,anyOf:Si.anyOf,default:Si.metaData,definitions:Si.definitions,dependencies:Si.dependencies,description:Si.metaData,enum:Si.enum,format:Si.metaData,items:Si.items,maxItems:Si.maxItems,maxLength:Si.maxLength,maxProperties:Si.maxProperties,maximum:Si.maximumExclusiveMaximum,minItems:Si.minItems,minLength:Si.minLength,minProperties:Si.minProperties,minimum:Si.minimumExclusiveMinimum,multipleOf:Si.multipleOf,not:Si.not,oneOf:Si.oneOf,pattern:Si.pattern,patternProperties:Si.patternProperties,properties:Si.properties,required:Si.required,title:Si.metaData,type:Si.type,uniqueItems:Si.uniqueItems});const{Core:Ei,Schema:ji}=Qt,Ai=wi,Ci="http://json-schema.org/draft-06/schema";ji.setConfig(Ci,"baseToken","$id"),ji.setConfig(Ci,"embeddedToken","$id"),ji.setConfig(Ci,"anchorToken","$id"),ji.setConfig(Ci,"jrefToken","$ref"),ji.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}')),Ei.defineVocabulary(Ci,{validate:Ai.validate,additionalItems:Ai.additionalItems6,additionalProperties:Ai.additionalProperties6,allOf:Ai.allOf,anyOf:Ai.anyOf,const:Ai.const,contains:Ai.contains,default:Ai.metaData,definitions:Ai.definitions,dependencies:Ai.dependencies,description:Ai.metaData,enum:Ai.enum,examples:Ai.metaData,exclusiveMaximum:Ai.exclusiveMaximum,exclusiveMinimum:Ai.exclusiveMinimum,format:Ai.metaData,items:Ai.items,maxItems:Ai.maxItems,maxLength:Ai.maxLength,maxProperties:Ai.maxProperties,maximum:Ai.maximum,minItems:Ai.minItems,minLength:Ai.minLength,minProperties:Ai.minProperties,minimum:Ai.minimum,multipleOf:Ai.multipleOf,not:Ai.not,oneOf:Ai.oneOf,pattern:Ai.pattern,patternProperties:Ai.patternProperties,properties:Ai.properties,propertyNames:Ai.propertyNames,required:Ai.required,title:Ai.metaData,type:Ai.type,uniqueItems:Ai.uniqueItems});const{Core:Pi,Schema:Ni}=Qt,Ti=wi,ki="http://json-schema.org/draft-07/schema";Ni.setConfig(ki,"baseToken","$id"),Ni.setConfig(ki,"embeddedToken","$id"),Ni.setConfig(ki,"anchorToken","$id"),Ni.setConfig(ki,"jrefToken","$ref"),Ni.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}')),Pi.defineVocabulary(ki,{validate:Ti.validate,additionalItems:Ti.additionalItems6,additionalProperties:Ti.additionalProperties6,allOf:Ti.allOf,anyOf:Ti.anyOf,const:Ti.const,contains:Ti.contains,default:Ti.metaData,definitions:Ti.definitions,dependencies:Ti.dependencies,description:Ti.metaData,enum:Ti.enum,exclusiveMaximum:Ti.exclusiveMaximum,exclusiveMinimum:Ti.exclusiveMinimum,format:Ti.metaData,if:Ti.if,then:Ti.then,else:Ti.else,items:Ti.items,maxItems:Ti.maxItems,maxLength:Ti.maxLength,maxProperties:Ti.maxProperties,maximum:Ti.maximum,minItems:Ti.minItems,minLength:Ti.minLength,minProperties:Ti.minProperties,minimum:Ti.minimum,multipleOf:Ti.multipleOf,not:Ti.not,oneOf:Ti.oneOf,pattern:Ti.pattern,patternProperties:Ti.patternProperties,properties:Ti.properties,propertyNames:Ti.propertyNames,readOnly:Ti.metaData,required:Ti.required,title:Ti.metaData,type:Ti.type,uniqueItems:Ti.uniqueItems,writeOnly:Ti.metaData});const{Core:Ri,Schema:Di}=Qt,qi=wi,Mi="https://json-schema.org/draft/2019-09/vocab/core";Di.setConfig(Mi,"baseToken","$id"),Di.setConfig(Mi,"embeddedToken","$id"),Di.setConfig(Mi,"anchorToken","$anchor"),Di.setConfig(Mi,"recursiveAnchorToken","$recursiveAnchor"),Di.setConfig(Mi,"vocabularyToken","$vocabulary"),Di.setConfig(Mi,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),Di.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}')),Di.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}')),Ri.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:qi.validate,$defs:qi.definitions,$recursiveRef:qi.dynamicRef,$ref:qi.ref}),Di.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}')),Ri.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:qi.additionalItems6,additionalProperties:qi.additionalProperties6,allOf:qi.allOf,anyOf:qi.anyOf,contains:qi.containsMinContainsMaxContains,dependentSchemas:qi.dependentSchemas,if:qi.if,then:qi.then,else:qi.else,items:qi.items,not:qi.not,oneOf:qi.oneOf,patternProperties:qi.patternProperties,properties:qi.properties,propertyNames:qi.propertyNames,unevaluatedItems:qi.unevaluatedItems,unevaluatedProperties:qi.unevaluatedProperties}),Di.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}')),Ri.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:qi.const,dependentRequired:qi.dependentRequired,enum:qi.enum,exclusiveMaximum:qi.exclusiveMaximum,exclusiveMinimum:qi.exclusiveMinimum,maxItems:qi.maxItems,maxLength:qi.maxLength,maxProperties:qi.maxProperties,maximum:qi.maximum,minItems:qi.minItems,minLength:qi.minLength,minProperties:qi.minProperties,minimum:qi.minimum,multipleOf:qi.multipleOf,pattern:qi.pattern,required:qi.required,type:qi.type,uniqueItems:qi.uniqueItems}),Di.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}')),Ri.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:qi.metaData,deprecated:qi.metaData,description:qi.metaData,examples:qi.metaData,readOnly:qi.metaData,title:qi.metaData,writeOnly:qi.metaData}),Di.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}')),Di.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}')),Ri.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:qi.metaData,contentMediaType:qi.metaData,contentSchema:qi.metaData});const{Core:_i,Schema:Li}=Qt,Fi=wi,Ui="https://json-schema.org/draft/2020-12/vocab/core";Li.setConfig(Ui,"baseToken","$id"),Li.setConfig(Ui,"embeddedToken","$id"),Li.setConfig(Ui,"anchorToken","$anchor"),Li.setConfig(Ui,"dynamicAnchorToken","$dynamicAnchor"),Li.setConfig(Ui,"vocabularyToken","$vocabulary"),Li.setConfig(Ui,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),Li.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}')),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:Fi.validate,$defs:Fi.definitions,$dynamicRef:Fi.dynamicRef,$ref:Fi.ref}),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:Fi.additionalProperties6,allOf:Fi.allOf,anyOf:Fi.anyOf,contains:Fi.containsMinContainsMaxContains,dependentSchemas:Fi.dependentSchemas,if:Fi.if,then:Fi.then,else:Fi.else,items:Fi.items202012,not:Fi.not,oneOf:Fi.oneOf,patternProperties:Fi.patternProperties,prefixItems:Fi.tupleItems,properties:Fi.properties,propertyNames:Fi.propertyNames}),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:Fi.const,dependentRequired:Fi.dependentRequired,enum:Fi.enum,exclusiveMaximum:Fi.exclusiveMaximum,exclusiveMinimum:Fi.exclusiveMinimum,maxItems:Fi.maxItems,maxLength:Fi.maxLength,maxProperties:Fi.maxProperties,maximum:Fi.maximum,minItems:Fi.minItems,minLength:Fi.minLength,minProperties:Fi.minProperties,minimum:Fi.minimum,multipleOf:Fi.multipleOf,pattern:Fi.pattern,required:Fi.required,type:Fi.type,uniqueItems:Fi.uniqueItems}),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:Fi.metaData,deprecated:Fi.metaData,description:Fi.metaData,examples:Fi.metaData,readOnly:Fi.metaData,title:Fi.metaData,writeOnly:Fi.metaData}),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:Fi.metaData}),Li.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}')),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:Fi.metaData,contentMediaType:Fi.metaData,contentSchema:Fi.metaData}),Li.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}')),_i.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:Fi.unevaluatedItems,unevaluatedProperties:Fi.unevaluatedProperties});const{Core:Vi,Schema:zi,InvalidSchemaError:Ji}=Qt,Hi=wi;var Bi={add:Vi.add,get:zi.get,validate:Vi.validate,compile:Vi.compile,interpret:Vi.interpret,setMetaOutputFormat:Vi.setMetaOutputFormat,setShouldMetaValidate:Vi.setShouldMetaValidate,addMediaTypePlugin:Vi.addMediaTypePlugin,FLAG:Vi.FLAG,BASIC:Vi.BASIC,DETAILED:Vi.DETAILED,VERBOSE:Vi.VERBOSE,Keywords:Hi,InvalidSchemaError:Ji};exports.default=Bi;
3
3
  //# sourceMappingURL=json-schema-cjs.min.js.map