Commit 863460fb authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! test_result: proto of parameter editor gadget

parent 2ab6b84a
......@@ -7,6 +7,7 @@
<script src="./react.production.min.js" type="text/javascript"></script>
<script src="./react-dom.production.min.js" type="text/javascript"></script>
<script src="./react-jsonschema-form-workaround-2503.js" type="text/javascript"></script>
<script src="./react-jsonschema-form.js" type="text/javascript"></script>
<script src="./ref-parser.min.js" type="text/javascript"></script>
......
......@@ -3,7 +3,7 @@
(function (window, rJS, RSVP, document) {
'use strict';
/**
/**
* Prepare a ui-schema from the conventions of SlapOS instance parameters schema.
* This does the following:
* - remove `default` from schema. In SlapOS schemas we use `default` as a documentation
......@@ -27,16 +27,9 @@ function makeUiSchema(schema, uiSchema, visited) {
if (schema.properties) {
for (const [key, value] of Object.entries(schema.properties)) {
uiSchema[key] = {};
if (value.default) {
if (key == 'tcpv4-port') {
console.log(key, value);
}
/** XXX value.const ... isn't it a bug in ERP5 SR schema ? */
if (value.default && !(value.default instanceof Object)) {
if (value?.type === 'string' && value.const === undefined) {
uiSchema[key]['ui:placeholder'] = value.default;
} else {
// XXX seems ugly
// uiSchema[key]['ui:help'] = `Default value: ${value.default}`
}
if (value.const === undefined) {
delete value.default;
......@@ -79,10 +72,6 @@ function makeUiSchema(schema, uiSchema, visited) {
.dereference(modification_dict.schema_url)
.then(function (schema) {
let uiSchema = {};
// TODO: wouldn't using mergeAllOf here solve the problem of
// ERP5's kumofs default port
schema = JSONSchemaForm.utils.retrieveSchema(schema);
makeUiSchema(schema, uiSchema, new Set())
console.log('after simplification', schema, uiSchema);
......
// XXX (jerome) workaround https://github.com/rjsf-team/react-jsonschema-form/issues/2503
window.react = React;
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>react-jsonschema-form-workaround-2503.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/javascript</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
window.react = React; // TODO(jerome): this should not be necessary ...
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.JSONSchemaForm=r(require("react")):e.JSONSchemaForm=r(e.react)}(window,(function(e){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="/dist/",t(t.s=315)}([function(r,t){r.exports=e},function(e,r,t){e.exports=t(140)()},function(e,r){var t=Array.isArray;e.exports=t},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var r=t(e);return null!=e&&("object"==r||"function"==r)}},function(e,r,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(70),a="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==t(e)}},function(e,r){e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o}},function(e,r,t){var n=t(18),o=t(78),a=t(80);e.exports=function(e,r){return a(o(e,r,n),e+"")}},function(e,r,t){var n=t(12),o=t(144),a=t(145),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,r,t){var n=t(151),o=t(154);e.exports=function(e,r){var t=o(e,r);return n(t)?t:void 0}},function(e,r,t){var n=t(43),o=t(47);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},function(e,r){e.exports=function(e){return function(r){return e(r)}}},function(e,r,t){var n=t(4).Symbol;e.exports=n},function(e,r){e.exports=function(e,r){return e===r||e!=e&&r!=r}},function(e,r,t){var n=t(16);e.exports=function(e){if("string"==typeof e||n(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(e,r,t){"use strict";function n(e,r,t){var n=t?" !== ":" === ",o=t?" || ":" && ",a=t?"!":"",i=t?"":"!";switch(e){case"null":return r+n+"null";case"array":return a+"Array.isArray("+r+")";case"object":return"("+a+r+o+"typeof "+r+n+'"object"'+o+i+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+n+'"number"'+o+i+"("+r+" % 1)"+o+r+n+r+")";default:return"typeof "+r+n+'"'+e+'"'}}e.exports={copy:function(e,r){for(var t in r=r||{},e)r[t]=e[t];return r},checkDataType:n,checkDataTypes:function(e,r){switch(e.length){case 1:return n(e[0],r,!0);default:var t="",o=a(e);for(var i in o.array&&o.object&&(t=o.null?"(":"(!"+r+" || ",t+="typeof "+r+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)t+=(t?" && ":"")+n(i,r,!0);return t}},coerceToTypes:function(e,r){if(Array.isArray(r)){for(var t=[],n=0;n<r.length;n++){var a=r[n];(o[a]||"array"===e&&"array"===a)&&(t[t.length]=a)}if(t.length)return t}else{if(o[r])return[r];if("array"===e&&"array"===r)return["array"]}},toHash:a,getProperty:u,escapeQuotes:c,equal:t(66),ucs2length:t(284),varOccurences:function(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0},varReplace:function(e,r,t){return r+="([^0-9])",t=t.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),t+"$1")},cleanUpCode:function(e){return e.replace(l,"").replace(f,"").replace(p,"if (!($1))")},finalCleanUpCode:function(e,r){var t=e.match(d);t&&2==t.length&&(e=r?e.replace(m,"").replace(v,"return data;"):e.replace(h,"").replace("return errors === 0;","validate.errors = null; return true;"));return(t=e.match(y))&&3===t.length?e.replace(g,""):e},schemaHasRules:function(e,r){if("boolean"==typeof e)return!e;for(var t in e)if(r[t])return!0},schemaHasRulesExcept:function(e,r,t){if("boolean"==typeof e)return!e&&"not"!=t;for(var n in e)if(n!=t&&r[n])return!0},toQuotedString:b,getPathExpr:function(e,r,t,n){return w(e,t?"'/' + "+r+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")},getPath:function(e,r,t){var n=b(t?"/"+E(r):u(r));return w(e,n)},getData:function(e,r,t){var n,o,a,i;if(""===e)return"rootData";if("/"==e[0]){if(!S.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,a="rootData"}else{if(!(i=e.match(P)))throw new Error("Invalid JSON-pointer: "+e);if(n=+i[1],"#"==(o=i[2])){if(n>=r)throw new Error("Cannot access property/index "+n+" levels up, current level is "+r);return t[r-n]}if(n>r)throw new Error("Cannot access data "+n+" levels up, current level is "+r);if(a="data"+(r-n||""),!o)return a}for(var s=a,c=o.split("/"),l=0;l<c.length;l++){var f=c[l];f&&(a+=u(O(f)),s+=" && "+a)}return s},unescapeFragment:function(e){return O(decodeURIComponent(e))},unescapeJsonPointer:O,escapeFragment:function(e){return encodeURIComponent(E(e))},escapeJsonPointer:E};var o=a(["string","number","integer","boolean","null"]);function a(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!0;return r}var i=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":i.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}var l=/else\s*{\s*}/g,f=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,p=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;var d=/[^v.]errors/g,h=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,m=/var errors = 0;|var vErrors = null;/g,v=/if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/,y=/[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g,g=/if \(rootData === undefined\) rootData = data;/;function b(e){return"'"+c(e)+"'"}var S=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function w(e,r){return'""'==e?r:(e+" + "+r).replace(/' \+ '/g,"")}function E(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function O(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},function(e,r,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(8),a=t(5);e.exports=function(e){return"symbol"==n(e)||a(e)&&"[object Symbol]"==o(e)}},function(e,r,t){var n=t(173),o=t(5),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,r){e.exports=function(e){return e}},function(e,r,t){var n=t(180),o=t(44),a=t(181),i=t(83),s=t(182),u=t(8),c=t(73),l=c(n),f=c(o),p=c(a),d=c(i),h=c(s),m=u;(n&&"[object DataView]"!=m(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||a&&"[object Promise]"!=m(a.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var r=u(e),t="[object Object]"==r?e.constructor:void 0,n=t?c(t):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return r}),e.exports=m},function(e,r,t){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(4),a=t(183),i="object"==n(r)&&r&&!r.nodeType&&r,s=i&&"object"==n(e)&&e&&!e.nodeType&&e,u=s&&s.exports===i?o.Buffer:void 0,c=(u?u.isBuffer:void 0)||a;e.exports=c}).call(this,t(49)(e))},function(e,r,t){var n=t(45),o=t(46);e.exports=function(e,r,t,a){var i=!t;t||(t={});for(var s=-1,u=r.length;++s<u;){var c=r[s],l=a?a(t[c],e[c],c,t,e):void 0;void 0===l&&(l=e[c]),i?o(t,c,l):n(t,c,l)}return t}},function(e,r,t){var n=t(85),o=t(81),a=t(10);e.exports=function(e){return a(e)?n(e):o(e)}},function(e,r,t){var n=t(85),o=t(196),a=t(10);e.exports=function(e){return a(e)?n(e,!0):o(e)}},function(e,r,t){var n=t(25);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,r){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,r,t){var n=t(2),o=t(41),a=t(72),i=t(74);e.exports=function(e,r){return n(e)?e:o(e,r)?[e]:a(i(e))}},function(e,r,t){var n=t(9)(Object,"create");e.exports=n},function(e,r,t){var n=t(159),o=t(160),a=t(161),i=t(162),s=t(163);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,r,t){var n=t(13);e.exports=function(e,r){for(var t=e.length;t--;)if(n(e[t][0],r))return t;return-1}},function(e,r,t){var n=t(165);e.exports=function(e,r){var t=e.__data__;return n(r)?t["string"==typeof r?"string":"hash"]:t.map}},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var o=t(e);return!!(r=null==r?9007199254740991:r)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<r}},function(e,r,t){var n=t(48),o=t(175);e.exports=function e(r,t,a,i,s){var u=-1,c=r.length;for(a||(a=o),s||(s=[]);++u<c;){var l=r[u];t>0&&a(l)?t>1?e(l,t-1,a,i,s):n(s,l):i||(s[s.length]=l)}return s}},function(e,r){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},function(e,r,t){var n=t(184),o=t(11),a=t(50),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},function(e,r,t){var n=t(28),o=t(188),a=t(189),i=t(190),s=t(191),u=t(192);function c(e){var r=this.__data__=new n(e);this.size=r.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,r){e.exports=function(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}},function(e,r,t){var n=t(42),o=t(214),a=t(215);function i(e){var r=-1,t=null==e?0:e.length;for(this.__data__=new n;++r<t;)this.add(e[r])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,r){e.exports=function(e,r){return e.has(r)}},function(e,r,t){var n=t(10),o=t(5);e.exports=function(e){return o(e)&&n(e)}},function(e,r,t){var n=t(26),o=t(14);e.exports=function(e,r){for(var t=0,a=(r=n(r,e)).length;null!=e&&t<a;)e=e[o(r[t++])];return t&&t==a?e:void 0}},function(e,r,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(2),a=t(16),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,r){if(o(e))return!1;var t=n(e);return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!a(e))||(s.test(e)||!i.test(e)||null!=r&&e in Object(r))}},function(e,r,t){var n=t(148),o=t(164),a=t(166),i=t(167),s=t(168);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,r,t){var n=t(8),o=t(3);e.exports=function(e){if(!o(e))return!1;var r=n(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},function(e,r,t){var n=t(9)(t(4),"Map");e.exports=n},function(e,r,t){var n=t(46),o=t(13),a=Object.prototype.hasOwnProperty;e.exports=function(e,r,t){var i=e[r];a.call(e,r)&&o(i,t)&&(void 0!==t||r in e)||n(e,r,t)}},function(e,r,t){var n=t(75);e.exports=function(e,r,t){"__proto__"==r&&n?n(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}},function(e,r){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,r){e.exports=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e}},function(e,r){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,r,t){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(70),a="object"==n(r)&&r&&!r.nodeType&&r,i=a&&"object"==n(e)&&e&&!e.nodeType&&e,s=i&&i.exports===a&&o.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,t(49)(e))},function(e,r,t){var n=t(199),o=t(87),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(r){return a.call(e,r)})))}:o;e.exports=s},function(e,r,t){var n=t(82)(Object.getPrototypeOf,Object);e.exports=n},function(e,r,t){var n=t(91);e.exports=function(e){var r=new e.constructor(e.byteLength);return new n(r).set(new n(e)),r}},function(e,r,t){var n=t(213),o=t(5);e.exports=function e(r,t,a,i,s){return r===t||(null==r||null==t||!o(r)&&!o(t)?r!=r&&t!=t:n(r,t,a,i,e,s))}},function(e,r){e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e){t[++r]=e})),t}},function(e,r,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(13),a=t(10),i=t(31),s=t(3);e.exports=function(e,r,t){if(!s(t))return!1;var u=n(r);return!!("number"==u?a(t)&&i(r,t.length):"string"==u&&r in t)&&o(t[r],e)}},function(e,r,t){var n=t(37),o=t(58),a=t(59),i=t(38),s=t(239),u=t(55);e.exports=function(e,r,t){var c=-1,l=o,f=e.length,p=!0,d=[],h=d;if(t)p=!1,l=a;else if(f>=200){var m=r?null:s(e);if(m)return u(m);p=!1,l=i,h=new n}else h=r?[]:d;e:for(;++c<f;){var v=e[c],y=r?r(v):v;if(v=t||0!==v?v:0,p&&y==y){for(var g=h.length;g--;)if(h[g]===y)continue e;r&&h.push(y),d.push(v)}else l(h,y,t)||(h!==d&&h.push(y),d.push(v))}return d}},function(e,r,t){var n=t(102);e.exports=function(e,r){return!!(null==e?0:e.length)&&n(e,r,0)>-1}},function(e,r){e.exports=function(e,r,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(r,e[n]))return!0;return!1}},function(e,r,t){var n=t(8),o=t(52),a=t(5),i=Function.prototype,s=Object.prototype,u=i.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var r=o(e);if(null===r)return!0;var t=c.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&u.call(t)==l}},function(e,r,t){"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,r,t){(function(r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis)||n("object"==("undefined"==typeof window?"undefined":t(window))&&window)||n("object"==("undefined"==typeof self?"undefined":t(self))&&self)||n("object"==(void 0===r?"undefined":t(r))&&r)||Function("return this")()}).call(this,t(71))},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===t(e)?null!==e:"function"==typeof e}},function(e,r){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},function(e,r,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(283),a=t(66),i=t(15),s=t(124),u=t(285);function c(e,r,t){var n=this._refs[t];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,r,n);n=this._refs[n]}if((n=n||this._schemas[t])instanceof s)return m(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,a,i,u=l.call(this,r,t);return u&&(o=u.schema,r=u.root,i=u.baseId),o instanceof s?a=o.validate||e.call(this,o.schema,r,void 0,i):void 0!==o&&(a=m(o,this._opts.inlineRefs)?o:e.call(this,o,r,void 0,i)),a}function l(e,r){var t=o.parse(r),n=y(t),a=v(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==a){var i=b(n),u=this._refs[i];if("string"==typeof u)return f.call(this,e,u,t);if(u instanceof s)u.validate||this._compile(u),e=u;else{if(!((u=this._schemas[i])instanceof s))return;if(u.validate||this._compile(u),i==b(r))return{schema:u,root:e,baseId:a};e=u}if(!e.schema)return;a=v(this._getId(e.schema))}return d.call(this,t,a,e.schema,e)}function f(e,r,t){var n=l.call(this,e,r);if(n){var o=n.schema,a=n.baseId;e=n.root;var i=this._getId(o);return i&&(a=S(a,i)),d.call(this,t,a,o,e)}}e.exports=c,c.normalizeId=b,c.fullPath=v,c.url=S,c.ids=function(e){var r=b(this._getId(e)),t={"":r},n={"":v(r,!1)},s={},c=this;return u(e,{allKeys:!0},(function(e,r,u,l,f,p,d){if(""!==r){var h=c._getId(e),m=t[l],v=n[l]+"/"+f;if(void 0!==d&&(v+="/"+("number"==typeof d?d:i.escapeFragment(d))),"string"==typeof h){h=m=b(m?o.resolve(m,h):h);var y=c._refs[h];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!a(e,y.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=b(v))if("#"==h[0]){if(s[h]&&!a(e,s[h]))throw new Error('id "'+h+'" resolves to more than one schema');s[h]=e}else c._refs[h]=v}t[r]=m,n[r]=v}})),s},c.inlineRef=m,c.schema=l;var p=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,r,t,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(t=t[s=i.unescapeFragment(s)]))break;var u;if(!p[s]&&((u=this._getId(t))&&(r=S(r,u)),t.$ref)){var c=S(r,t.$ref),f=l.call(this,n,c);f&&(t=f.schema,n=f.root,r=f.baseId)}}}return void 0!==t&&t!==n.schema?{schema:t,root:n,baseId:r}:void 0}}var h=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function m(e,r){return!1!==r&&(void 0===r||!0===r?function e(r){var t;if(Array.isArray(r)){for(var o=0;o<r.length;o++)if("object"==n(t=r[o])&&!e(t))return!1}else for(var a in r){if("$ref"==a)return!1;if("object"==n(t=r[a])&&!e(t))return!1}return!0}(e):r?function e(r){var t,o=0;if(Array.isArray(r)){for(var a=0;a<r.length;a++)if("object"==n(t=r[a])&&(o+=e(t)),o==1/0)return 1/0}else for(var i in r){if("$ref"==i)return 1/0;if(h[i])o++;else if("object"==n(t=r[i])&&(o+=e(t)+1),o==1/0)return 1/0}return o}(e)<=r:void 0)}function v(e,r){return!1!==r&&(e=b(e)),y(o.parse(e))}function y(e){return o.serialize(e).split("#")[0]+"#"}var g=/#\/?$/;function b(e){return e?e.replace(g,""):""}function S(e,r){return r=b(r),o.resolve(e,r)}},function(e,r,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==n(r)&&"object"==n(t)){var s,u,c,l=o(r),f=o(t);if(l&&f){if((u=r.length)!=t.length)return!1;for(s=u;0!=s--;)if(!e(r[s],t[s]))return!1;return!0}if(l!=f)return!1;var p=r instanceof Date,d=t instanceof Date;if(p!=d)return!1;if(p&&d)return r.getTime()==t.getTime();var h=r instanceof RegExp,m=t instanceof RegExp;if(h!=m)return!1;if(h&&m)return r.toString()==t.toString();var v=a(r);if((u=v.length)!==a(t).length)return!1;for(s=u;0!=s--;)if(!i.call(t,v[s]))return!1;for(s=u;0!=s--;)if(!e(r[c=v[s]],t[c]))return!1;return!0}return r!=r&&t!=t}},function(e,r,t){"use strict";var n=t(65);function o(e,r,t){this.message=t||o.message(e,r),this.missingRef=n.url(e,r),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:a((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:a(o)},o.message=function(e,r){return"can't resolve reference "+r+" from id "+e}},function(e,r,t){var n=t(40);e.exports=function(e,r,t){var o=null==e?void 0:n(e,r);return void 0===o?t:o}},function(e,r,t){"use strict";e.exports=t(185)},function(e,r,t){(function(r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="object"==(void 0===r?"undefined":t(r))&&r&&r.Object===Object&&r;e.exports=n}).call(this,t(71))},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":t(window))&&(n=window)}e.exports=n},function(e,r,t){var n=t(146),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(o,(function(e,t,n,o){r.push(n?o.replace(a,"$1"):t||e)})),r}));e.exports=i},function(e,r){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,r,t){var n=t(169);e.exports=function(e){return null==e?"":n(e)}},function(e,r,t){var n=t(9),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,r,t){var n=t(171),o=t(172);e.exports=function(e,r){return null!=e&&o(e,r,n)}},function(e,r,t){var n=t(32);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},function(e,r,t){var n=t(79),o=Math.max;e.exports=function(e,r,t){return r=o(void 0===r?e.length-1:r,0),function(){for(var a=arguments,i=-1,s=o(a.length-r,0),u=Array(s);++i<s;)u[i]=a[r+i];i=-1;for(var c=Array(r+1);++i<r;)c[i]=a[i];return c[r]=t(u),n(e,this,c)}}},function(e,r){e.exports=function(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}},function(e,r,t){var n=t(176),o=t(178)(n);e.exports=o},function(e,r,t){var n=t(33),o=t(179),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var r=[];for(var t in Object(e))a.call(e,t)&&"constructor"!=t&&r.push(t);return r}},function(e,r){e.exports=function(e,r){return function(t){return e(r(t))}}},function(e,r,t){var n=t(9)(t(4),"Set");e.exports=n},function(e,r){e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n&&!1!==r(e[t],t,e););return e}},function(e,r,t){var n=t(194),o=t(17),a=t(2),i=t(20),s=t(31),u=t(34),c=Object.prototype.hasOwnProperty;e.exports=function(e,r){var t=a(e),l=!t&&o(e),f=!t&&!l&&i(e),p=!t&&!l&&!f&&u(e),d=t||l||f||p,h=d?n(e.length,String):[],m=h.length;for(var v in e)!r&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,r,t){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(4),a="object"==n(r)&&r&&!r.nodeType&&r,i=a&&"object"==n(e)&&e&&!e.nodeType&&e,s=i&&i.exports===a?o.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=function(e,r){if(r)return e.slice();var t=e.length,n=u?u(t):new e.constructor(t);return e.copy(n),n}}).call(this,t(49)(e))},function(e,r){e.exports=function(){return[]}},function(e,r,t){var n=t(48),o=t(52),a=t(51),i=t(87),s=Object.getOwnPropertySymbols?function(e){for(var r=[];e;)n(r,a(e)),e=o(e);return r}:i;e.exports=s},function(e,r,t){var n=t(90),o=t(51),a=t(22);e.exports=function(e){return n(e,a,o)}},function(e,r,t){var n=t(48),o=t(2);e.exports=function(e,r,t){var a=r(e);return o(e)?a:n(a,t(e))}},function(e,r,t){var n=t(4).Uint8Array;e.exports=n},function(e,r,t){var n=t(53);e.exports=function(e,r){var t=r?n(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}},function(e,r,t){var n=t(207),o=t(52),a=t(33);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},function(e,r,t){var n=t(54);e.exports=function(e,r){return n(e,r)}},function(e,r,t){var n=t(37),o=t(216),a=t(38);e.exports=function(e,r,t,i,s,u){var c=1&t,l=e.length,f=r.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e);if(p&&u.get(r))return p==r;var d=-1,h=!0,m=2&t?new n:void 0;for(u.set(e,r),u.set(r,e);++d<l;){var v=e[d],y=r[d];if(i)var g=c?i(y,v,d,r,e,u):i(v,y,d,e,r,u);if(void 0!==g){if(g)continue;h=!1;break}if(m){if(!o(r,(function(e,r){if(!a(m,r)&&(v===e||s(v,e,t,i,u)))return m.push(r)}))){h=!1;break}}else if(v!==y&&!s(v,y,t,i,u)){h=!1;break}}return u.delete(e),u.delete(r),h}},function(e,r,t){var n=t(32),o=t(220),a=t(7),i=t(56),s=a((function(e,r){if(null==e)return[];var t=r.length;return t>1&&i(e,r[0],r[1])?r=[]:t>2&&i(r[0],r[1],r[2])&&(r=[r[0]]),o(e,n(r,1),[])}));e.exports=s},function(e,r,t){var n=t(3);e.exports=function(e){return e==e&&!n(e)}},function(e,r){e.exports=function(e,r){return function(t){return null!=t&&(t[e]===r&&(void 0!==r||e in Object(t)))}}},function(e,r,t){var n=t(230),o=t(232)(n);e.exports=o},function(e,r,t){var n=t(231)();e.exports=n},function(e,r,t){var n=t(57);e.exports=function(e){return e&&e.length?n(e):[]}},function(e,r,t){var n=t(236),o=t(237),a=t(238);e.exports=function(e,r,t){return r==r?a(e,r,t):n(e,o,t)}},function(e,r,t){var n=t(57);e.exports=function(e,r){return r="function"==typeof r?r:void 0,e&&e.length?n(e,void 0,r):[]}},function(e,r,t){var n=t(6),o=t(105),a=t(7),i=t(106),s=t(242),u=a((function(e){var r=s(e),t=n(e,i);return(r="function"==typeof r?r:void 0)&&t.pop(),t.length&&t[0]===e[0]?o(t,void 0,r):[]}));e.exports=u},function(e,r,t){var n=t(37),o=t(58),a=t(59),i=t(6),s=t(11),u=t(38),c=Math.min;e.exports=function(e,r,t){for(var l=t?a:o,f=e[0].length,p=e.length,d=p,h=Array(p),m=1/0,v=[];d--;){var y=e[d];d&&r&&(y=i(y,s(r))),m=c(y.length,m),h[d]=!t&&(r||f>=120&&y.length>=120)?new n(d&&y):void 0}y=e[0];var g=-1,b=h[0];e:for(;++g<f&&v.length<m;){var S=y[g],P=r?r(S):S;if(S=t||0!==S?S:0,!(b?u(b,P):l(v,P,t))){for(d=p;--d;){var w=h[d];if(!(w?u(w,P):l(e[d],P,t)))continue e}b&&b.push(P),v.push(S)}}return v}},function(e,r,t){var n=t(39);e.exports=function(e){return n(e)?e:[]}},function(e,r,t){"use strict";var n=t(61),o=t(246);e.exports=function(e){var r;if(!n(e))return!1;if(!(r=e.length))return!1;for(var t=0;t<r;t++)if(!o(e[t]))return!1;return!0}},function(e,r,t){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,r,t){var n=t(35),o=t(110),a=t(100),i=t(250),s=t(3),u=t(23),c=t(111);e.exports=function e(r,t,l,f,p){r!==t&&a(t,(function(a,u){if(p||(p=new n),s(a))i(r,t,u,l,e,f,p);else{var d=f?f(c(r,u),a,u+"",r,t,p):void 0;void 0===d&&(d=a),o(r,u,d)}}),u)}},function(e,r,t){var n=t(46),o=t(13);e.exports=function(e,r,t){(void 0!==t&&!o(e[r],t)||void 0===t&&!(r in e))&&n(e,r,t)}},function(e,r){e.exports=function(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}},function(e,r,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(62),a=t(265).f,i=t(270),s=t(118),u=t(271),c=t(273),l=t(64),f=function(e){var r=function(r,t,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,t)}return new e(r,t,n)}return e.apply(this,arguments)};return r.prototype=e.prototype,r};e.exports=function(e,r){var t,p,d,h,m,v,y,g,b=e.target,S=e.global,P=e.stat,w=e.proto,E=S?o:P?o[b]:(o[b]||{}).prototype,O=S?s:s[b]||(s[b]={}),x=O.prototype;for(d in r)t=!i(S?d:b+(P?".":"#")+d,e.forced)&&E&&l(E,d),m=O[d],t&&(v=e.noTargetGet?(g=a(E,d))&&g.value:E[d]),h=t&&v?v:r[d],t&&n(m)===n(h)||(y=e.bind&&t?u(h,o):e.wrap&&t?f(h):w&&"function"==typeof h?u(Function.call,h):h,(e.sham||h&&h.sham||m&&m.sham)&&c(y,"sham",!0),O[d]=y,w&&(l(s,p=b+"Prototype")||c(s,p,{}),s[p][d]=h,e.real&&x&&!x[d]&&c(x,d,h)))}},function(e,r){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(e,r,t){var n=t(267),o=t(115);e.exports=function(e){return n(o(e))}},function(e,r){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,r,t){var n=t(63);e.exports=function(e,r){if(!n(e))return e;var t,o;if(r&&"function"==typeof(t=e.toString)&&!n(o=t.call(e)))return o;if("function"==typeof(t=e.valueOf)&&!n(o=t.call(e)))return o;if(!r&&"function"==typeof(t=e.toString)&&!n(o=t.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,r,t){var n=t(24),o=t(25),a=t(269);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,r){e.exports={}},function(e,r,t){var n=t(120),o=Math.max,a=Math.min;e.exports=function(e,r){var t=n(e);return t<0?o(t+r,0):a(t,r)}},function(e,r){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e,r,t){var n=t(120),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,r){e.exports=function(){}},function(e,r,t){var n=t(278);e.exports=n},function(e,r,t){"use strict";var n=t(15);e.exports=function(e){n.copy(e,this)}},function(e,r,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var t,o="boolean"==typeof r.cycles&&r.cycles,a=r.cmp&&(t=r.cmp,function(e){return function(r,n){var o={key:r,value:e[r]},a={key:n,value:e[n]};return t(o,a)}}),i=[];return function e(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!==n(r))return JSON.stringify(r);var t,s;if(Array.isArray(r)){for(s="[",t=0;t<r.length;t++)t&&(s+=","),s+=e(r[t])||"null";return s+"]"}if(null===r)return"null";if(-1!==i.indexOf(r)){if(o)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(r)-1,c=Object.keys(r).sort(a&&a(r));for(s="",t=0;t<c.length;t++){var l=c[t],f=e(r[l]);f&&(s&&(s+=","),s+=JSON.stringify(l)+":"+f)}return i.splice(u,1),"{"+s+"}"}}(e)}},function(e,r,t){"use strict";e.exports=function(e,r,t){var n="",o=!0===e.schema.$async,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!a&&!e.schema.$ref){var s=e.level,u=e.dataLevel,c=e.schema["false schema"],l=e.schemaPath+e.util.getProperty("false schema"),f=e.errSchemaPath+"/false schema",p=!e.opts.allErrors,d="data"+(u||""),h="valid"+s;if(!1===e.schema){e.isTop?p=!0:n+=" var "+h+" = false; ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ";var m=n;n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+h+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;s=e.level=0,u=e.dataLevel=0,d="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{s=e.level,d="data"+((u=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+s+" = errors;"}h="valid"+s,p=!e.opts.allErrors;var y="",g="",b=e.schema.type,S=Array.isArray(b);if(b&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],S=!0)),S&&1==b.length&&(b=b[0],S=!1),e.schema.$ref&&a){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(a=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),b){if(e.opts.coerceTypes)var P=e.util.coerceToTypes(e.opts.coerceTypes,b);var w=e.RULES.types[b];if(P||S||!0===w||w&&!J(w)){l=e.schemaPath+".type",f=e.errSchemaPath+"/type",l=e.schemaPath+".type",f=e.errSchemaPath+"/type";var E=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[E](b,d,!0)+") { ",P){var O="dataType"+s,x="coerced"+s;n+=" var "+O+" = typeof "+d+"; ","array"==e.opts.coerceTypes&&(n+=" if ("+O+" == 'object' && Array.isArray("+d+")) "+O+" = 'array'; "),n+=" var "+x+" = undefined; ";var j="",_=P;if(_)for(var F,A=-1,D=_.length-1;A<D;)F=_[A+=1],A&&(n+=" if ("+x+" === undefined) { ",j+="}"),"array"==e.opts.coerceTypes&&"array"!=F&&(n+=" if ("+O+" == 'array' && "+d+".length == 1) { "+x+" = "+d+" = "+d+"[0]; "+O+" = typeof "+d+"; } "),"string"==F?n+=" if ("+O+" == 'number' || "+O+" == 'boolean') "+x+" = '' + "+d+"; else if ("+d+" === null) "+x+" = ''; ":"number"==F||"integer"==F?(n+=" if ("+O+" == 'boolean' || "+d+" === null || ("+O+" == 'string' && "+d+" && "+d+" == +"+d+" ","integer"==F&&(n+=" && !("+d+" % 1)"),n+=")) "+x+" = +"+d+"; "):"boolean"==F?n+=" if ("+d+" === 'false' || "+d+" === 0 || "+d+" === null) "+x+" = false; else if ("+d+" === 'true' || "+d+" === 1) "+x+" = true; ":"null"==F?n+=" if ("+d+" === '' || "+d+" === 0 || "+d+" === false) "+x+" = null; ":"array"==e.opts.coerceTypes&&"array"==F&&(n+=" if ("+O+" == 'string' || "+O+" == 'number' || "+O+" == 'boolean' || "+d+" == null) "+x+" = ["+d+"]; ");n+=" "+j+" if ("+x+" === undefined) { ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ";m=n;n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ";var C=u?"data"+(u-1||""):"parentData";n+=" "+d+" = "+x+"; ",u||(n+="if ("+C+" !== undefined)"),n+=" "+C+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+x+"; } "}else{(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ";m=n;n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!a)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",p&&(n+=" } if (errors === ",n+=v?"0":"errs_"+s,n+=") { ",g+="}");else{var k=e.RULES;if(k)for(var $=-1,R=k.length-1;$<R;)if(J(w=k[$+=1])){if(w.type&&(n+=" if ("+e.util.checkDataType(w.type,d)+") { "),e.opts.useDefaults&&!e.compositeRule)if("object"==w.type&&e.schema.properties){c=e.schema.properties;var I=Object.keys(c);if(I)for(var N,T=-1,q=I.length-1;T<q;){if(void 0!==(z=c[N=I[T+=1]]).default)n+=" if ("+(L=d+e.util.getProperty(N))+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+L+" === null || "+L+" === '' "),n+=" ) "+L+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}else if("array"==w.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){A=-1;for(var z,M=U.length-1;A<M;){var L;if(void 0!==(z=U[A+=1]).default)n+=" if ("+(L=d+"["+A+"]")+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+L+" === null || "+L+" === '' "),n+=" ) "+L+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}var V=w.rules;if(V)for(var B,W=-1,Q=V.length-1;W<Q;)if(Y(B=V[W+=1])){var H=B.code(e,B.keyword,w.type);H&&(n+=" "+H+" ",p&&(y+="}"))}if(p&&(n+=" "+y+" ",y=""),w.type&&(n+=" } ",b&&b===w.type&&!P)){n+=" else { ";var K;l=e.schemaPath+".type",f=e.errSchemaPath+"/type";(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ";m=n;n=K.pop(),!e.compositeRule&&p?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}p&&(n+=" if (errors === ",n+=v?"0":"errs_"+s,n+=") { ",g+="}")}}function J(e){for(var r=e.rules,t=0;t<r.length;t++)if(Y(r[t]))return!0}function Y(r){return void 0!==e.schema[r.keyword]||r.implements&&function(r){for(var t=r.implements,n=0;n<t.length;n++)if(void 0!==e.schema[t[n]])return!0}(r)}return p&&(n+=" "+g+" "),v?(o?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+h+" = errors === errs_"+s+";",n=e.util.cleanUpCode(n),v&&(n=e.util.finalCleanUpCode(n,o)),n}},function(e,r,t){"use strict";e.exports=function(e,r,t){var n,o=" ",a=e.level,i=e.dataLevel,s=e.schema[r],u=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,f="data"+(i||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+a):n=s;var d="maximum"==r,h=d?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],v=e.opts.$data&&m&&m.$data,y=d?"<":">",g=d?">":"<",b=void 0;if(v){var S=e.util.getData(m.$data,i,e.dataPathArr),P="exclusive"+a,w="exclType"+a,E="exclIsNumber"+a,O="' + "+(_="op"+a)+" + '";o+=" var schemaExcl"+a+" = "+S+"; ",o+=" var "+P+"; var "+w+" = typeof "+(S="schemaExcl"+a)+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var x;b=h;(x=x||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var j=o;o=x.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+j+"]); ":o+=" validate.errors = ["+j+"]; return false; ":o+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+w+" == 'number' ? ( ("+P+" = "+n+" === undefined || "+S+" "+y+"= "+n+") ? "+f+" "+g+"= "+S+" : "+f+" "+g+" "+n+" ) : ( ("+P+" = "+S+" === true) ? "+f+" "+g+"= "+n+" : "+f+" "+g+" "+n+" ) || "+f+" !== "+f+") { var op"+a+" = "+P+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=h,c=e.errSchemaPath+"/"+h,n=S,p=v)}else{O=y;if((E="number"==typeof m)&&p){var _="'"+O+"'";o+=" if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+g+"= "+m+" : "+f+" "+g+" "+n+" ) || "+f+" !== "+f+") { "}else{E&&void 0===s?(P=!0,b=h,c=e.errSchemaPath+"/"+h,n=m,g+="="):(E&&(n=Math[d?"min":"max"](m,s)),m===(!E||n)?(P=!0,b=h,c=e.errSchemaPath+"/"+h,g+="="):(P=!1,O+="="));_="'"+O+"'";o+=" if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+g+" "+n+" || "+f+" !== "+f+") { "}}b=b||r,(x=x||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+n+", exclusive: "+P+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+O+" ",o+=p?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+u:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";j=o;return o=x.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+j+"]); ":o+=" validate.errors = ["+j+"]; return false; ":o+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},function(e,r,t){"use strict";e.exports=function(e,r,t){var n,o=" ",a=e.level,i=e.dataLevel,s=e.schema[r],u=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,f="data"+(i||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+a):n=s,o+="if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".length "+("maxItems"==r?">":"<")+" "+n+") { ";var d=r,h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==r?"more":"fewer",o+=" than ",o+=p?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+u:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=h.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},function(e,r,t){"use strict";e.exports=function(e,r,t){var n,o=" ",a=e.level,i=e.dataLevel,s=e.schema[r],u=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,f="data"+(i||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+a):n=s;var d="maxLength"==r?">":"<";o+="if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",o+=" "+d+" "+n+") { ";var h=r,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==r?"longer":"shorter",o+=" than ",o+=p?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+u:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},function(e,r,t){"use strict";e.exports=function(e,r,t){var n,o=" ",a=e.level,i=e.dataLevel,s=e.schema[r],u=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,f="data"+(i||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+a):n=s,o+="if ( ",p&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").length "+("maxProperties"==r?">":"<")+" "+n+") { ";var d=r,h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==r?"more":"fewer",o+=" than ",o+=p?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+u:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=h.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},function(e,r,t){var n=t(142),o=t(174)((function(e,r){return null==e?{}:n(e,r)}));e.exports=o},function(e,r,t){var n=t(81),o=t(19),a=t(17),i=t(2),s=t(10),u=t(20),c=t(33),l=t(34),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||a(e)))return!e.length;var r=o(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if(c(e))return!n(e).length;for(var t in e)if(f.call(e,t))return!1;return!0}},function(e,r,t){function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=t(186),a=t(212),i=t(244),s=t(248),u=t(77),c=t(254),l=t(255),f=t(104),p=t(94),d=t(60),h=t(256),m=t(96),v=t(259),y=t(101),g=t(103),b=t(261),S=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return b.apply(null,[e].concat(u(t)))},P=function(e){return E(V,e)},w=function(e){return E(B,e)},E=function(e,r){return-1!==e.indexOf(r)},O=function(e){return d(e)||!0===e||!1===e},x=function(e){return!1===e},j=function(e){return!0===e},_=function(e,r,t){return t(e)},F=function(e){return m(y(c(e)))},A=function(e){return void 0!==e},D=function(e){return y(c(e.map(N)))},C=function(e){return e[0]},k=function(e){return Math.max.apply(Math,e)},$=function(e){return Math.min.apply(Math,e)};function R(e,r){return e.map((function(e){return e&&e[r]}))}function I(e,r){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;var t=e.items[r];return O(t)?t:e.hasOwnProperty("additionalItems")?e.additionalItems:void 0}}))}function N(e){return d(e)||Array.isArray(e)?Object.keys(e):[]}function T(e,r){var t;try{t=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(r){t=e.join(", ")}throw new Error('Could not resolve values for path:"'+r.join(".")+'". They are probably incompatible. Values: \n'+t)}function q(e){for(var r in e)e.hasOwnProperty(r)&&(!N(t=e[r]).length&&!1!==t&&!0!==t)&&delete e[r];var t;return e}function U(e,r,t){return function(n,o){if(void 0===o)throw new Error("You need to call merger with a key for the property name or index if array.");return o=String(o),e(n,null,t.concat(r,o))}}function z(e,r,t,n,o,i){if(e.length){var s=o.resolvers[r];if(!s)throw new Error("No resolver found for "+r);var u=g(t.map((function(r){return e.reduce((function(e,t){return void 0!==r[t]&&(e[t]=r[t]),e}),{})})).filter(A),a),c=("properties"===r?V:B).reduce((function(e,r){return E(W,r)?e[r]=U(n,r,i):e[r]=function(e){return n(e,null,i.concat(r))},e}),{});"items"===r&&(c.itemsArray=U(n,"items",i),c.items=function(e){return n(e,null,i.concat("items"))});var l=s(u,i.concat(r),c,o);return d(l)||T(u,i.concat(r)),q(l)}}function M(e,r,t){var n=D(t||e),o=t?I:R;return n.reduce((function(t,n){var i=o(e,n),s=g(i.filter(A),a);return t[n]=r(s,n),t}),t?[]:{})}function L(e){return{required:e}}var V=["properties","patternProperties","additionalProperties"],B=["items","additionalItems"],W=["properties","patternProperties","definitions","dependencies"],Q=["anyOf","oneOf"],H=["additionalProperties","additionalItems","contains","propertyNames","not","items"],K={type:function(e){if(e.some(Array.isArray)){var r=e.map((function(e){return Array.isArray(e)?e:[e]})),t=l.apply(null,r);if(1===t.length)return t[0];if(t.length>1)return y(t)}},properties:function(e,r,t,n){n.ignoreAdditionalProperties||(e.forEach((function(r){var n=e.filter((function(e){return e!==r})),o=N(r.properties),a=N(r.patternProperties).map((function(e){return new RegExp(e)}));n.forEach((function(e){var n=N(e.properties),i=n.filter((function(e){return a.some((function(r){return r.test(e)}))}));S(n,o,i).forEach((function(n){e.properties[n]=t.properties([e.properties[n],r.additionalProperties],n)}))}))})),e.forEach((function(r){var t=e.filter((function(e){return e!==r})),n=N(r.patternProperties);!1===r.additionalProperties&&t.forEach((function(e){var r=N(e.patternProperties);S(r,n).forEach((function(r){return delete e.patternProperties[r]}))}))})));var o,a={additionalProperties:t.additionalProperties(e.map((function(e){return e.additionalProperties}))),patternProperties:M(e.map((function(e){return e.patternProperties})),t.patternProperties),properties:M(e.map((function(e){return e.properties})),t.properties)};return!1===a.additionalProperties&&v(o=a.properties,(function(e,r){!1===e&&delete o[r]})),a},dependencies:function(e,r,t){return D(e).reduce((function(r,n){var o=R(e,n),i=g(o.filter(A),p),s=i.filter(Array.isArray);if(s.length){if(s.length===i.length)r[n]=F(i);else{var u=i.filter(O),c=s.map(L);r[n]=t(u.concat(c),n)}return r}return i=g(i,a),r[n]=t(i,n),r}),{})},items:function(e,r,t){var n,o,a=e.map((function(e){return e.items})),i=a.filter(A),s={};return i.every(O)?s.items=t.items(a):s.items=M(e,t.itemsArray,a),i.every(Array.isArray)?n=e.map((function(e){return e.additionalItems})):i.some(Array.isArray)&&(n=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),n&&(s.additionalItems=t.additionalItems(n)),!1===s.additionalItems&&Array.isArray(s.items)&&(o=s.items,v(o,(function(e,r){!1===e&&o.splice(r,1)}))),s},oneOf:function(e,r,t){var n=function(e,r){return e.map((function(e,t){try{return r(e,t)}catch(e){return}})).filter(A)}(function e(r,t){if(t=t||[],!r.length)return t;var n=r.slice(0).shift(),o=r.slice(1);return t.length?e(o,u(t.map((function(e){return n.map((function(r){return[r].concat(e)}))})))):e(o,n.map((function(e){return e})))}(o(e)),t),i=g(n,a);if(i.length)return i},not:function(e){return{anyOf:e}},pattern:function(e,r,t,o,a){var i=r.pop();a(e.map((function(e){return n({},i,e)})))},multipleOf:function(e){for(var r=e.slice(0),t=1;r.some((function(e){return!Number.isInteger(e)}));)r=r.map((function(e){return 10*e})),t*=10;return i(r)/t},enum:function(e){var r=f.apply(null,e.concat(p));if(r.length)return m(r)}};function J(e,r,t){return t=t||[],r=s(r,{ignoreAdditionalProperties:!1,resolvers:K}),function e(i,s,u){i=o(i.filter(A)),u=u||[];var c=d(s)?s:{};if(i.length){if(i.some(x))return!1;if(i.every(j))return!0;i=i.filter(d);var l=D(i);if(E(l,"allOf"))return J({allOf:i},r,t);var f=l.filter(P);h(l,f);var p=l.filter(w);return h(l,p),l.forEach((function(t){var o=R(i,t),s=g(o.filter(A),function(e){return function(r,t){return a(n({},e,r),n({},e,t))}}(t));if(1===s.length&&E(Q,t))c[t]=s[0].map((function(r){return e([r],r)}));else if(1!==s.length||E(W,t)||E(H,t)){var l,f=r.resolvers[t]||r.resolvers.defaultResolver;if(!f)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");l=E(W,t)||E(Q,t)?U(e,t,u):function(r){return e(r,null,u.concat(t))};var p=!1;c[t]=f(s,u.concat(t),l,r,(function(e){return p=Array.isArray(e),function(e){c.allOf=function(e,r){return Array.isArray(e)?(e.splice.apply(e,[0,0].concat(r)),e):r}(c.allOf,e)}(e)})),void 0!==c[t]||p?void 0===c[t]&&delete c[t]:T(s,u.concat(t))}else c[t]=s[0]})),Object.assign(c,z(f,"properties",i,e,r,u)),Object.assign(c,z(p,"items",i,e,r,u)),c}}(c(function e(r){if(Array.isArray(r.allOf)){var t=r.allOf;return delete r.allOf,[r].concat(t.map((function(r){return e(r)})))}return[r]}(e)),e)}K.$id=C,K.$ref=C,K.$schema=C,K.additionalItems=_,K.additionalProperties=_,K.anyOf=K.oneOf,K.contains=_,K.default=C,K.definitions=K.dependencies,K.description=C,K.examples=function(e){return g(u(e),p)},K.exclusiveMaximum=$,K.exclusiveMinimum=k,K.maximum=$,K.maxItems=$,K.maxLength=$,K.maxProperties=$,K.minimum=k,K.minItems=k,K.minLength=k,K.minProperties=k,K.propertyNames=_,K.required=function(e){return F(e)},K.title=C,K.uniqueItems=function(e){return e.some(j)},J.options={resolvers:K},e.exports=J},function(e,r,t){var n=t(263);e.exports=n},function(e,r,t){var n=t(32),o=t(7),a=t(57),i=t(39),s=o((function(e){return a(n(e,1,i,!0))}));e.exports=s},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=/~/,o=/~[01]/g;function a(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function i(e){return n.test(e)?e.replace(o,a):e}function s(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e))return e;throw new Error("Invalid JSON pointer.")}function u(e,r){if("object"!==t(e))throw new Error("Invalid input object.");var n=(r=s(r)).length;if(1===n)return e;for(var o=1;o<n;){if(e=e[i(r[o++])],n===o)return e;if("object"!==t(e))return}}function c(e,r,n){if("object"!==t(e))throw new Error("Invalid input object.");if(0===(r=s(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){for(var n,o,a=1,s=r.length;a<s&&(n=i(r[a++]),o=s>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==r[a]&&r[a]<1/0||"-"===r[a]?e[n]=[]:e[n]={})),o);)e=e[n];var u=e[n];return void 0===t?delete e[n]:e[n]=t,u}(e,r,n)}r.get=u,r.set=c,r.compile=function(e){var r=s(e);return{get:function(e){return u(e,r)},set:function(e,t){return c(e,r,t)}}}},function(e,r,t){t(279);var n=t(123);e.exports=n("Array","includes")},function(e,r,t){var n=t(6),o=t(36),a=t(2),i=t(16),s=t(72),u=t(14),c=t(74);e.exports=function(e){return a(e)?n(e,u):i(e)?[e]:o(s(c(e)))}},function(e,r,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(282),a=t(65),i=t(286),s=t(124),u=t(125),c=t(287),l=t(288),f=t(309),p=t(15);e.exports=g,g.prototype.validate=function(e,r){var t;if("string"==typeof e){if(!(t=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);t=n.validate||this._compile(n)}var o=t(r);!0!==t.$async&&(this.errors=t.errors);return o},g.prototype.compile=function(e,r){var t=this._addSchema(e,void 0,r);return t.validate||this._compile(t)},g.prototype.addSchema=function(e,r,t,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,t,n);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return O(this,r=a.normalizeId(r||i)),this._schemas[r]=this._addSchema(e,t,n,!0),this},g.prototype.addMetaSchema=function(e,r,t){return this.addSchema(e,r,t,!0),this},g.prototype.validateSchema=function(e,r){var t=e.$schema;if(void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(!(t=t||this._opts.defaultMeta||function(e){var r=e._opts.meta;return e._opts.defaultMeta="object"==n(r)?e._getId(r)||r:e.getSchema(m)?m:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(t,e);if(!o&&r){var a="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(a);this.logger.error(a)}return o},g.prototype.getSchema=function(e){var r=b(this,e);switch(n(r)){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return function(e,r){var t=a.schema.call(e,{schema:{}},r);if(t){var n=t.schema,i=t.root,u=t.baseId,c=o.call(e,n,i,void 0,u);return e._fragments[r]=new s({ref:r,fragment:!0,schema:n,root:i,baseId:u,validate:c}),c}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return S(this,this._schemas,e),S(this,this._refs,e),this;switch(n(e)){case"undefined":return S(this,this._schemas),S(this,this._refs),this._cache.clear(),this;case"string":var r=b(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var t=this._opts.serialize,o=t?t(e):e;this._cache.del(o);var i=this._getId(e);i&&(i=a.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},g.prototype.addFormat=function(e,r){"string"==typeof r&&(r=new RegExp(r));return this._formats[e]=r,this},g.prototype.errorsText=function(e,r){if(!(e=e||this.errors))return"No errors";for(var t=void 0===(r=r||{}).separator?", ":r.separator,n=void 0===r.dataVar?"data":r.dataVar,o="",a=0;a<e.length;a++){var i=e[a];i&&(o+=n+i.dataPath+" "+i.message+t)}return o.slice(0,-t.length)},g.prototype._addSchema=function(e,r,t,o){if("object"!=n(e)&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,u=i?i(e):e,c=this._cache.get(u);if(c)return c;o=o||!1!==this._opts.addUsedSchema;var l=a.normalizeId(this._getId(e));l&&o&&O(this,l);var f,p=!1!==this._opts.validateSchema&&!r;p&&!(f=l&&l==a.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=a.ids.call(this,e),h=new s({id:l,schema:e,localRefs:d,cacheKey:u,meta:t});"#"!=l[0]&&o&&(this._refs[l]=h);this._cache.put(u,h),p&&f&&this.validateSchema(e,!0);return h},g.prototype._compile=function(e,r){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=r||a,!0===e.schema.$async&&(a.$async=!0),a;var t,n;e.compiling=!0,e.meta&&(t=this._opts,this._opts=this._metaOpts);try{n=o.call(this,e.schema,r,e.localRefs)}catch(r){throw delete e.validate,r}finally{e.compiling=!1,e.meta&&(this._opts=t)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function a(){var r=e.validate,t=r.apply(this,arguments);return a.errors=r.errors,t}},g.prototype.compileAsync=t(310);var d=t(311);g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove;var h=t(67);g.ValidationError=h.Validation,g.MissingRefError=h.MissingRef,g.$dataMetaSchema=f;var m="http://json-schema.org/draft-07/schema",v=["removeAdditional","useDefaults","coerceTypes"],y=["/properties"];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=p.copy(e)||{},function(e){var r=e._opts.logger;if(!1===r)e.logger={log:x,warn:x,error:x};else{if(void 0===r&&(r=console),!("object"==n(r)&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return E;case"id":return P;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=u),this._metaOpts=function(e){for(var r=p.copy(e._opts),t=0;t<v.length;t++)delete r[v[t]];return r}(this),e.formats&&function(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}(this),function(e){var r;e._opts.$data&&(r=t(313),e.addMetaSchema(r,r.$id,!0));if(!1===e._opts.meta)return;var n=t(314);e._opts.$data&&(n=f(n,y));e.addMetaSchema(n,m,!0),e._refs["http://json-schema.org/schema"]=m}(this),"object"==n(e.meta)&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{const:!0}}),function(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}(this)}function b(e,r){return r=a.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function S(e,r,t){for(var n in r){var o=r[n];o.meta||t&&!t.test(n)||(e._cache.del(o.cacheKey),delete r[n])}}function P(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function E(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function O(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function x(){}},function(e,r,t){"use strict";var n=t(141);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},function(e,r,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,r,t){var n=t(143),o=t(76);e.exports=function(e,r){return n(e,r,(function(r,t){return o(e,t)}))}},function(e,r,t){var n=t(40),o=t(170),a=t(26);e.exports=function(e,r,t){for(var i=-1,s=r.length,u={};++i<s;){var c=r[i],l=n(e,c);t(l,c)&&o(u,a(c,e),l)}return u}},function(e,r,t){var n=t(12),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var r=a.call(e,s),t=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(r?e[s]=t:delete e[s]),o}},function(e,r){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,r,t){var n=t(147);e.exports=function(e){var r=n(e,(function(e){return 500===t.size&&t.clear(),e})),t=r.cache;return r}},function(e,r,t){var n=t(42);function o(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var t=function t(){var n=arguments,o=r?r.apply(this,n):n[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return t.cache=a.set(o,i)||a,i};return t.cache=new(o.Cache||n),t}o.Cache=n,e.exports=o},function(e,r,t){var n=t(149),o=t(28),a=t(44);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},function(e,r,t){var n=t(150),o=t(155),a=t(156),i=t(157),s=t(158);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,r,t){var n=t(27);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,r,t){var n=t(43),o=t(152),a=t(3),i=t(73),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(i(e))}},function(e,r,t){var n,o=t(153),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},function(e,r,t){var n=t(4)["__core-js_shared__"];e.exports=n},function(e,r){e.exports=function(e,r){return null==e?void 0:e[r]}},function(e,r){e.exports=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}},function(e,r,t){var n=t(27),o=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;if(n){var t=r[e];return"__lodash_hash_undefined__"===t?void 0:t}return o.call(r,e)?r[e]:void 0}},function(e,r,t){var n=t(27),o=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;return n?void 0!==r[e]:o.call(r,e)}},function(e,r,t){var n=t(27);e.exports=function(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},function(e,r){e.exports=function(){this.__data__=[],this.size=0}},function(e,r,t){var n=t(29),o=Array.prototype.splice;e.exports=function(e){var r=this.__data__,t=n(r,e);return!(t<0)&&(t==r.length-1?r.pop():o.call(r,t,1),--this.size,!0)}},function(e,r,t){var n=t(29);e.exports=function(e){var r=this.__data__,t=n(r,e);return t<0?void 0:r[t][1]}},function(e,r,t){var n=t(29);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,r,t){var n=t(29);e.exports=function(e,r){var t=this.__data__,o=n(t,e);return o<0?(++this.size,t.push([e,r])):t[o][1]=r,this}},function(e,r,t){var n=t(30);e.exports=function(e){var r=n(this,e).delete(e);return this.size-=r?1:0,r}},function(e,r){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var r=t(e);return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}},function(e,r,t){var n=t(30);e.exports=function(e){return n(this,e).get(e)}},function(e,r,t){var n=t(30);e.exports=function(e){return n(this,e).has(e)}},function(e,r,t){var n=t(30);e.exports=function(e,r){var t=n(this,e),o=t.size;return t.set(e,r),this.size+=t.size==o?0:1,this}},function(e,r,t){var n=t(12),o=t(6),a=t(2),i=t(16),s=n?n.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(r){if("string"==typeof r)return r;if(a(r))return o(r,e)+"";if(i(r))return u?u.call(r):"";var t=r+"";return"0"==t&&1/r==-1/0?"-0":t}},function(e,r,t){var n=t(45),o=t(26),a=t(31),i=t(3),s=t(14);e.exports=function(e,r,t,u){if(!i(e))return e;for(var c=-1,l=(r=o(r,e)).length,f=l-1,p=e;null!=p&&++c<l;){var d=s(r[c]),h=t;if(c!=f){var m=p[d];void 0===(h=u?u(m,d,p):void 0)&&(h=i(m)?m:a(r[c+1])?[]:{})}n(p,d,h),p=p[d]}return e}},function(e,r){e.exports=function(e,r){return null!=e&&r in Object(e)}},function(e,r,t){var n=t(26),o=t(17),a=t(2),i=t(31),s=t(47),u=t(14);e.exports=function(e,r,t){for(var c=-1,l=(r=n(r,e)).length,f=!1;++c<l;){var p=u(r[c]);if(!(f=null!=e&&t(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&i(p,l)&&(a(e)||o(e))}},function(e,r,t){var n=t(8),o=t(5);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},function(e,r,t){var n=t(77),o=t(78),a=t(80);e.exports=function(e){return a(o(e,void 0,n),e+"")}},function(e,r,t){var n=t(12),o=t(17),a=t(2),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,r,t){var n=t(177),o=t(75),a=t(18),i=o?function(e,r){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:a;e.exports=i},function(e,r){e.exports=function(e){return function(){return e}}},function(e,r){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},function(e,r,t){var n=t(82)(Object.keys,Object);e.exports=n},function(e,r,t){var n=t(9)(t(4),"DataView");e.exports=n},function(e,r,t){var n=t(9)(t(4),"Promise");e.exports=n},function(e,r,t){var n=t(9)(t(4),"WeakMap");e.exports=n},function(e,r){e.exports=function(){return!1}},function(e,r,t){var n=t(8),o=t(47),a=t(5),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},function(e,r,t){"use strict";
/** @license React v16.9.0
* react-is.production.min.js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment