UNPKG

drip-table

Version:

A tiny and powerful enterprise-class solution for building tables.

1 lines 1.67 MB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){var e,t,n={580:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},1591:function(e,t,n){"use strict";var r=n(3100).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){return{keyword:e,type:"number",schemaType:"array",macro:function(t){var n=r(t,2),a=n[0],o=n[1];return function(t,n){if(t>n||"exclusiveRange"===e&&t===n)throw new Error("There are no numbers in range")}(a,o),"range"===e?{minimum:a,maximum:o}:{exclusiveMinimum:a,exclusiveMaximum:o}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}}}}},9140:function(e,t,n){"use strict";var r=n(9057).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){return{keyword:e,type:"object",schemaType:"array",macro:function(t){return 0===t.length||(1===t.length?{required:t}:r({},"anyRequired"===e?"anyOf":"oneOf",t.map((function(e){return{required:[e]}}))))},metaSchema:{type:"array",items:{type:"string"}}}}}},8862:function(e,t,n){"use strict";var r,a=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0}),t.usePattern=t.metaSchemaRef=void 0;var o=n(6363),i="http://json-schema.org/schema";t.metaSchemaRef=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultMeta;return!1===t?{}:{$ref:t||i}},t.usePattern=function(e,t){var n=e.gen,i=e.it.opts,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.unicodeRegExp?"u":"",u=new RegExp(t,s);return n.scopeValue("pattern",{key:u.toString(),ref:u,code:(0,o._)(r||(r=a(["new RegExp(",", ",")"])),t,s)})}},4432:function(e,t){"use strict";function n(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro:function(e,t){if(!e)return!0;var n=Object.keys(t.properties);return 0===n.length||{required:n}},dependencies:["properties"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},4038:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=(0,r(n(9140)).default)("anyRequired");t.default=a,e.exports=a},7433:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8862);function a(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){var t=[];for(var n in e)t.push(o(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(e)}}}function o(e,t){for(var n=e.split("/"),r={},a=r,o=1;o<n.length;o++){var i=n[o],s=o===n.length-1;i=i.replace(/~1/g,"/").replace(/~0/g,"~");var u=a.properties={},l=void 0;if(/[0-9]+/.test(i)){var c=+i;for(l=a.items=[],a.type=["object","array"];c--;)l.push({})}else a.type="object";a=s?t:{},u[i]=a,l&&l.push(a)}return r}t.default=a,e.exports=a},1196:function(e,t,n){"use strict";var r,a,o=n(4479).default,i=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(6363);function u(){return{keyword:"deepRequired",type:"object",schemaType:"array",code:function(e){var t=e.schema,n=e.data,u=t.map((function(e){return(0,s._)(r||(r=i(["(",") === undefined"])),function(e){if(""===e)throw new Error("empty JSON pointer not allowed");var t=e.split("/"),r=n,u=t.map((function(e,t){return t?r=(0,s._)(a||(a=i(["","",""])),r,(0,s.getProperty)(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}(e))):r}));return s.and.apply(void 0,o(u))}(e))}));e.fail(s.or.apply(void 0,o(u)))},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=u,e.exports=u},6680:function(e,t,n){"use strict";var r=n(5570).default;Object.defineProperty(t,"__esModule",{value:!0});var a={},o={timestamp:function(){return function(){return Date.now()}},datetime:function(){return function(){return(new Date).toISOString()}},date:function(){return function(){return(new Date).toISOString().slice(0,10)}},time:function(){return function(){return(new Date).toISOString().slice(11)}},random:function(){return function(){return Math.random()}},randomint:function(e){var t,n=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return function(){return Math.floor(Math.random()*n)}},seq:function(e){var t,n=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return a[n]||(a[n]=0),function(){return a[n]++}}},i=Object.assign((function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile:function(e,t,n){if(!n.opts.useDefaults||n.compositeRule)return function(){return!0};var a,i,u,l,c,d={};for(var f in e)d[f]=(c=e[f],"object"==r(c)?(i=void 0,u=void 0,l=void 0,i=(a=c).func,u=a.args,s(i,l=o[i]),l(u)):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=o[e];return s(e,t),t()}(c));var p="empty"===n.opts.useDefaults;return function(t){for(var n in e)(void 0===t[n]||p&&(null===t[n]||""===t[n]))&&(t[n]=d[n]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}),{DEFAULTS:o});function s(e,t){if(!t)throw new Error('invalid "dynamicDefaults" keyword property value: '.concat(e))}t.default=i,e.exports=i},3933:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=(0,r(n(1591)).default)("exclusiveRange");t.default=a,e.exports=a},6714:function(e,t,n){"use strict";var r=n(3768).lW,a=n(6970).default;Object.defineProperty(t,"__esModule",{value:!0});var o={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};void 0!==r&&(o.Buffer=r),"undefined"!=typeof Promise&&(o.Promise=Promise);var i=Object.assign((function(){return{keyword:"instanceof",schemaType:["string","array"],compile:function(e){if("string"==typeof e){var t=s(e);return function(e){return e instanceof t}}if(Array.isArray(e)){var n=e.map(s);return function(e){var t,r=a(n);try{for(r.s();!(t=r.n()).done;){if(e instanceof t.value)return!0}}catch(e){r.e(e)}finally{r.f()}return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}),{CONSTRUCTORS:o});function s(e){var t=o[e];if(t)return t;throw new Error('invalid "instanceof" keyword value '.concat(e))}t.default=i,e.exports=i},5557:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=(0,r(n(9140)).default)("oneRequired");t.default=a,e.exports=a},2389:function(e,t,n){"use strict";var r,a,o,i=n(6970).default,s=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var u=n(6363),l=n(8862),c={message:function(e){var t=e.params.missingPattern;return(0,u.str)(r||(r=s(["should have property matching pattern '","'"])),t)},params:function(e){var t=e.params.missingPattern;return(0,u._)(a||(a=s(["{missingPattern: ","}"])),t)}};function d(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:c,code:function(e){var t=e.gen,n=e.schema,r=e.data;if(0!==n.length){var a,c=t.let("valid",!0),d=i(n);try{for(d.s();!(a=d.n()).done;){f(a.value)}}catch(e){d.e(e)}finally{d.f()}}function f(n){var a=t.let("matched",!1);t.forIn("key",r,(function(r){t.assign(a,(0,u._)(o||(o=s(["",".test(",")"])),(0,l.usePattern)(e,n),r)),t.if(a,(function(){return t.break()}))})),e.setParams({missingPattern:n}),t.assign(c,(0,u.and)(c,a)),e.pass(c)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=d,e.exports=d},1711:function(e,t){"use strict";function n(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return 0===e.length||(1===e.length?{not:{required:e}}:{not:{anyOf:e.map((function(e){return{required:[e]}}))}})},metaSchema:{type:"array",items:{type:"string"}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},7647:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=(0,r(n(1591)).default)("range");t.default=a,e.exports=a},6608:function(e,t,n){"use strict";var r,a=n(5570).default,o=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var i=n(6363),s=n(8862),u={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},l=/^\/(.*)\/([gimuy]*)$/;function c(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code:function(e){var t=e.data,n=function(t){if("object"==a(t))return(0,s.usePattern)(e,t.pattern,t.flags);var n=l.exec(t);if(n)return(0,s.usePattern)(e,n[1],n[2]);throw new Error("cannot parse string into RegExp")}(e.schema);e.pass((0,i._)(r||(r=o(["",".test(",")"])),n,t))},metaSchema:{anyOf:[{type:"string"},u]}}}t.default=c,e.exports=c},132:function(e,t,n){"use strict";var r,a,o,i,s,u,l=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(6363),d=n(8862),f={message:function(e){var t=e.params.schemaProp;return t?(0,c.str)(r||(r=l(['should match case "','" schema'])),t):(0,c.str)(a||(a=l(["should match default case schema"])))},params:function(e){var t=e.params.schemaProp;return t?(0,c._)(o||(o=l(["{failingCase: ","}"])),t):(0,c._)(i||(i=l(["{failingDefault: true}"])))}};function p(e){var t=(0,d.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:f,dependencies:["selectCases"],code:function(e){var t=e.gen,n=e.schemaCode,r=e.parentSchema;e.block$data(c.nil,(function(){var a=t.let("valid",!0),o=t.name("_valid"),i=t.const("value",(0,c._)(s||(s=l(["",' === null ? "null" : ',""])),n,n));for(var d in t.if(!1),r.selectCases){e.setParams({schemaProp:d}),t.elseIf((0,c._)(u||(u=l(['"" + '," == ",""])),i,d));var f=e.subschema({keyword:"selectCases",schemaProp:d},o);e.mergeEvaluated(f,c.Name),t.assign(a,o)}if(t.else(),void 0!==r.selectDefault){e.setParams({schemaProp:void 0});var p=e.subschema({keyword:"selectDefault"},o);e.mergeEvaluated(p,c.Name),t.assign(a,o)}t.endIf(),e.pass(a)}))}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t.default=p,e.exports=p},9764:function(e,t,n){"use strict";var r,a,o,i,s,u=n(6970).default,l=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(6363),d={trimStart:function(e){return e.trimStart()},trimEnd:function(e){return e.trimEnd()},trimLeft:function(e){return e.trimStart()},trimRight:function(e){return e.trimEnd()},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,t){return(null==t?void 0:t.hash[p(e)])||e}},f=Object.assign((function(){return{keyword:"transform",schemaType:"array",before:"enum",code:function(e){var t=e.gen,n=e.data,f=e.schema,m=e.parentSchema,h=e.it,v=h.parentData,y=h.parentDataProperty,_=f;if(_.length){var g;if(_.includes("toEnumCase")){var b=function(e){var t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');var n,r=u(e.enum);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("string"==typeof a){var o=p(a);if(t.hash[o])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');t.hash[o]=a}}}catch(e){r.e(e)}finally{r.f()}return t}(m);g=t.scopeValue("obj",{ref:b,code:(0,c.stringify)(b)})}t.if((0,c._)(r||(r=l(["typeof ",' == "string" && '," !== undefined"])),n,v),(function(){t.assign(n,E(_.slice())),t.assign((0,c._)(a||(a=l(["","[","]"])),v,y),n)}))}function E(e){if(!e.length)return n;var r=e.pop();if(!(r in d))throw new Error("transform: unknown transformation ".concat(r));var a=t.scopeValue("func",{ref:d[r],code:(0,c._)(o||(o=l(['require("ajv-keywords/dist/definitions/transform").transform',""])),(0,c.getProperty)(r))}),u=E(e);return g&&"toEnumCase"===r?(0,c._)(i||(i=l(["","(",", ",")"])),a,u,g):(0,c._)(s||(s=l(["","(",")"])),a,u)}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(d)}}}}),{transform:d});function p(e){return e.toLowerCase()}t.default=f,e.exports=f},2334:function(e,t,n){"use strict";var r,a,o=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0});var i=n(6363),s=["undefined","string","number","object","function","boolean","symbol"];function u(){return{keyword:"typeof",schemaType:["string","array"],code:function(e){var t=e.data,n=e.schema,s=e.schemaValue;e.fail("string"==typeof n?(0,i._)(r||(r=o(["typeof "," != ",""])),t,n):(0,i._)(a||(a=o(["",".indexOf(typeof ",") < 0"])),s,t))},metaSchema:{anyOf:[{type:"string",enum:s},{type:"array",items:{type:"string",enum:s}}]}}}t.default=u,e.exports=u},5739:function(e,t,n){"use strict";var r=n(5570).default,a=n(6970).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(1704),i=["number","integer","string","boolean","null"];function s(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile:function(e,t){var n=function(e,t){return e.map((function(e){var n,r,a,o=null===(a=null===(r=null===(n=t.items)||void 0===n?void 0:n.properties)||void 0===r?void 0:r[e])||void 0===a?void 0:a.type;return Array.isArray(o)?!o.includes("object")&&!o.includes("array"):i.includes(o)}))}(e,t);return function(t){if(t.length<=1)return!0;for(var i=0;i<e.length;i++){var s=e[i];if(n[i]){var u,l={},c=a(t);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(d&&"object"==r(d)){var f=d[s];if(!f||"object"!=r(f)){if("string"==typeof f&&(f='"'+f),l[f])return!1;l[f]=!0}}}}catch(e){c.e(e)}finally{c.f()}}else for(var p=t.length;p--;){var m=t[p];if(m&&"object"==r(m))for(var h=p;h--;){var v=t[h];if(v&&"object"==r(v)&&o(m[s],v[s]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=s,e.exports=s},603:function(e,t,n){"use strict";var r=n(6970).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(9446)),i=function(e,t){if(Array.isArray(t)){var n,a=r(t);try{for(a.s();!(n=a.n()).done;){s(n.value)(e)}}catch(e){a.e(e)}finally{a.f()}return e}if(t)return s(t)(e),e;for(t in o.default)s(t)(e);return e};function s(e){var t=o.default[e];if(!t)throw new Error("Unknown keyword "+e);return t}i.get=s,t.default=i,e.exports=i,e.exports.default=i},6082:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(4432)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},4186:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(4038)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},1421:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(7433)),o=function(e,t){return e.addKeyword((0,a.default)(t))};t.default=o,e.exports=o},9032:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1196)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},3743:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(6680)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},9560:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(3933)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},9446:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(7061)),o=r(n(4861)),i=r(n(3504)),s=r(n(9560)),u=r(n(7273)),l=r(n(5197)),c=r(n(7961)),d=r(n(6082)),f=r(n(4186)),p=r(n(3858)),m=r(n(1839)),h=r(n(4703)),v=r(n(1421)),y=r(n(9032)),_=r(n(3743)),g=r(n(9152)),b={typeof:a.default,instanceof:o.default,range:i.default,exclusiveRange:s.default,regexp:u.default,transform:l.default,uniqueItemProperties:c.default,allRequired:d.default,anyRequired:f.default,oneRequired:p.default,patternRequired:m.default,prohibited:h.default,deepProperties:v.default,deepRequired:y.default,dynamicDefaults:_.default,select:g.default};t.default=b,e.exports=b},4861:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(6714)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},3858:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(5557)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},1839:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2389)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},4703:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1711)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},3504:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(7647)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},7273:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(6608)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},9152:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(132)),o=function(e,t){return(0,a.default)(t).forEach((function(t){return e.addKeyword(t)})),e};t.default=o,e.exports=o},5197:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(9764)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},7061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(2334)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},7961:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(5739)),o=function(e){return e.addKeyword((0,a.default)())};t.default=o,e.exports=o},8815:function(e,t,n){"use strict";var r=n(4528).default,a=n(8798).default,o=n(746).default,i=n(378).default,s=n(7267).default,u=n(9913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var l=n(7232),c=n(6317),d=n(7687),f=n(360),p=["/properties"],m="http://json-schema.org/draft-07/schema",h=function(e){s(n,e);var t=u(n);function n(){return r(this,n),t.apply(this,arguments)}return a(n,[{key:"_addVocabularies",value:function(){var e=this;o(i(n.prototype),"_addVocabularies",this).call(this),c.default.forEach((function(t){return e.addVocabulary(t)})),this.opts.discriminator&&this.addKeyword(d.default)}},{key:"_addDefaultMetaSchema",value:function(){if(o(i(n.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var e=this.opts.$data?this.$dataMetaSchema(f,p):f;this.addMetaSchema(e,m,!1),this.refs["http://json-schema.org/schema"]=m}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=o(i(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(m)?m:void 0)}}]),n}(l.default);e.exports=t=h,Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var v=n(5667);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return v.KeywordCxt}});var y=n(6363);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var _=n(1186);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return _.default}});var g=n(9025);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})},4420:function(e,t,n){"use strict";var r,a,o=n(7208).default,i=n(4479).default,s=n(9057).default,u=n(7267).default,l=n(9913).default,c=n(8798).default,d=n(4528).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;var f=c((function e(){d(this,e)}));t._CodeOrName=f,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var p=function(e){u(r,e);var n=l(r);function r(e){var a;if(d(this,r),a=n.call(this),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");return a.str=e,a}return c(r,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return s({},this.str,1)}}]),r}(f);t.Name=p;var m=function(e){u(n,e);var t=l(n);function n(e){var r;return d(this,n),(r=t.call(this))._items="string"==typeof e?[e]:e,r}return c(n,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var e=this._items[0];return""===e||'""'===e}},{key:"str",get:function(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((function(e,t){return"".concat(e).concat(t)}),"")}},{key:"names",get:function(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((function(e,t){return t instanceof p&&(e[t.str]=(e[t.str]||0)+1),e}),{})}}]),n}(f);function h(e){for(var t=[e[0]],n=0,r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];for(;n<a.length;)_(t,a[n]),t.push(e[++n]);return new m(t)}t._Code=m,t.nil=new m(""),t._=h;var v=new m("+");function y(e){for(var t=[E(e[0])],n=0,r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];for(;n<a.length;)t.push(v),_(t,a[n]),t.push(v,E(e[++n]));return g(t),new m(t)}function _(e,t){var n;t instanceof m?e.push.apply(e,i(t._items)):t instanceof p?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:E(Array.isArray(n)?n.join(","):n))}function g(e){for(var t=1;t<e.length-1;){if(e[t]===v){var n=b(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}function b(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof p||'"'!==e[e.length-1])return;return"string"!=typeof t?"".concat(e.slice(0,-1)).concat(t,'"'):'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof p?void 0:'"'.concat(e).concat(t.slice(1))}function E(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=y,t.addCodeArg=_,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:y(r||(r=o(["","",""])),e,t)},t.stringify=function(e){return new m(E(e))},t.safeStringify=E,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new m(".".concat(e)):h(a||(a=o(["[","]"])),e)},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new m("".concat(e));throw new Error("CodeGen: invalid export name: ".concat(e,", use explicit $id name mapping"))},t.regexpCode=function(e){return new m(e.toString())}},6363:function(e,t,n){"use strict";var r,a,o,i,s,u,l=n(7208).default,c=n(3100).default,d=n(746).default,f=n(378).default,p=n(4479).default,m=n(1448).default,h=n(7267).default,v=n(9913).default,y=n(4528).default,_=n(8798).default;Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var g=n(4420),b=n(325),E=n(4420);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return E._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return E.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return E.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return E.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return E.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return E.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return E.Name}});var T=n(325);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return T.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return T.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return T.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return T.varKinds}}),t.operators={GT:new g._Code(">"),GTE:new g._Code(">="),LT:new g._Code("<"),LTE:new g._Code("<="),EQ:new g._Code("==="),NEQ:new g._Code("!=="),NOT:new g._Code("!"),OR:new g._Code("||"),AND:new g._Code("&&"),ADD:new g._Code("+")};var w=function(){function e(){y(this,e)}return _(e,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}]),e}(),M=function(e){h(n,e);var t=v(n);function n(e,r,a){var o;return y(this,n),(o=t.call(this)).varKind=e,o.name=r,o.rhs=a,o}return _(n,[{key:"render",value:function(e){var t=e.es5,n=e._n,r=t?b.varKinds.var:this.varKind,a=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(r," ").concat(this.name).concat(a,";")+n}},{key:"optimizeNames",value:function(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=q(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof g._CodeOrName?this.rhs.names:{}}}]),n}(w),S=function(e){h(n,e);var t=v(n);function n(e,r,a){var o;return y(this,n),(o=t.call(this)).lhs=e,o.rhs=r,o.sideEffects=a,o}return _(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}},{key:"optimizeNames",value:function(e,t){if(!(this.lhs instanceof g.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=q(this.rhs,e,t),this}},{key:"names",get:function(){return K(this.lhs instanceof g.Name?{}:m({},this.lhs.names),this.rhs)}}]),n}(w),k=function(e){h(n,e);var t=v(n);function n(e,r,a,o){var i;return y(this,n),(i=t.call(this,e,a,o)).op=r,i}return _(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}]),n}(S),L=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).label=e,r.names={},r}return _(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.label,":")+t}}]),n}(w),C=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).label=e,r.names={},r}return _(n,[{key:"render",value:function(e){var t=e._n,n=this.label?" ".concat(this.label):"";return"break".concat(n,";")+t}}]),n}(w),A=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).error=e,r}return _(n,[{key:"render",value:function(e){var t=e._n;return"throw ".concat(this.error,";")+t}},{key:"names",get:function(){return this.error.names}}]),n}(w),D=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).code=e,r}return _(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.code,";")+t}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(e,t){return this.code=q(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof g._CodeOrName?this.code.names:{}}}]),n}(w),x=function(e){h(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(this,n),(e=t.call(this)).nodes=r,e}return _(n,[{key:"render",value:function(e){return this.nodes.reduce((function(t,n){return t+n.render(e)}),"")}},{key:"optimizeNodes",value:function(){for(var e=this.nodes,t=e.length;t--;){var n=e[t].optimizeNodes();Array.isArray(n)?e.splice.apply(e,[t,1].concat(p(n))):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}},{key:"optimizeNames",value:function(e,t){for(var n=this.nodes,r=n.length;r--;){var a=n[r];a.optimizeNames(e,t)||(Q(e,a.names),n.splice(r,1))}return n.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce((function(e,t){return G(e,t.names)}),{})}}]),n}(w),N=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(e){return"{"+e._n+d(f(n.prototype),"render",this).call(this,e)+"}"+e._n}}]),n}(x),O=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n)}(x),I=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n)}(N);I.kind="else";var R=function(e){h(n,e);var t=v(n);function n(e,r){var a;return y(this,n),(a=t.call(this,r)).condition=e,a}return _(n,[{key:"render",value:function(e){var t="if(".concat(this.condition,")")+d(f(n.prototype),"render",this).call(this,e);return this.else&&(t+="else "+this.else.render(e)),t}},{key:"optimizeNodes",value:function(){d(f(n.prototype),"optimizeNodes",this).call(this);var e=this.condition;if(!0===e)return this.nodes;var t=this.else;if(t){var r=t.optimizeNodes();t=this.else=Array.isArray(r)?new I(r):r}return t?!1===e?t instanceof n?t:t.nodes:this.nodes.length?this:new n($(e),t instanceof n?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),d(f(n.prototype),"optimizeNames",this).call(this,e,t)||this.else)return this.condition=q(this.condition,e,t),this}},{key:"names",get:function(){var e=d(f(n.prototype),"names",this);return K(e,this.condition),this.else&&G(e,this.else.names),e}}]),n}(N);R.kind="if";var P=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n)}(N);P.kind="for";var Y=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).iteration=e,r}return _(n,[{key:"render",value:function(e){return"for(".concat(this.iteration,")")+d(f(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(f(n.prototype),"optimizeNames",this).call(this,e,t))return this.iteration=q(this.iteration,e,t),this}},{key:"names",get:function(){return G(d(f(n.prototype),"names",this),this.iteration.names)}}]),n}(P),j=function(e){h(n,e);var t=v(n);function n(e,r,a,o){var i;return y(this,n),(i=t.call(this)).varKind=e,i.name=r,i.from=a,i.to=o,i}return _(n,[{key:"render",value:function(e){var t=e.es5?b.varKinds.var:this.varKind,r=this.name,a=this.from,o=this.to;return"for(".concat(t," ").concat(r,"=").concat(a,"; ").concat(r,"<").concat(o,"; ").concat(r,"++)")+d(f(n.prototype),"render",this).call(this,e)}},{key:"names",get:function(){var e=K(d(f(n.prototype),"names",this),this.from);return K(e,this.to)}}]),n}(P),H=function(e){h(n,e);var t=v(n);function n(e,r,a,o){var i;return y(this,n),(i=t.call(this)).loop=e,i.varKind=r,i.name=a,i.iterable=o,i}return _(n,[{key:"render",value:function(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+d(f(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(f(n.prototype),"optimizeNames",this).call(this,e,t))return this.iterable=q(this.iterable,e,t),this}},{key:"names",get:function(){return G(d(f(n.prototype),"names",this),this.iterable.names)}}]),n}(P),F=function(e){h(n,e);var t=v(n);function n(e,r,a){var o;return y(this,n),(o=t.call(this)).name=e,o.args=r,o.async=a,o}return _(n,[{key:"render",value:function(e){var t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);F.kind="func";var U=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(e){return"return "+d(f(n.prototype),"render",this).call(this,e)}}]),n}(x);U.kind="return";var B=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(e){var t="try"+d(f(n.prototype),"render",this).call(this,e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}},{key:"optimizeNodes",value:function(){var e,t;return d(f(n.prototype),"optimizeNodes",this).call(this),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}},{key:"optimizeNames",value:function(e,t){var r,a;return d(f(n.prototype),"optimizeNames",this).call(this,e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(a=this.finally)||void 0===a||a.optimizeNames(e,t),this}},{key:"names",get:function(){var e=d(f(n.prototype),"names",this);return this.catch&&G(e,this.catch.names),this.finally&&G(e,this.finally.names),e}}]),n}(N),z=function(e){h(n,e);var t=v(n);function n(e){var r;return y(this,n),(r=t.call(this)).error=e,r}return _(n,[{key:"render",value:function(e){return"catch(".concat(this.error,")")+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);z.kind="catch";var W=function(e){h(n,e);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(e){return"finally"+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);W.kind="finally";var V=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this._values={},this._blockStarts=[],this._constants={},this.opts=m(m({},n),{},{_n:n.lines?"\n":""}),this._extScope=t,this._scope=new b.Scope({parent:t}),this._nodes=[new O]}return _(e,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(e){return this._scope.name(e)}},{key:"scopeName",value:function(e){return this._extScope.name(e)}},{key:"scopeValue",value:function(e,t){var n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}},{key:"getScopeValue",value:function(e,t){return this._extScope.getValue(e,t)}},{key:"scopeRefs",value:function(e){return this._extScope.scopeRefs(e,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(e,t,n,r){var a=this._scope.toName(t);return void 0!==n&&r&&(this._constants[a.str]=n),this._leafNode(new M(e,a,n)),a}},{key:"const",value:function(e,t,n){return this._def(b.varKinds.const,e,t,n)}},{key:"let",value:function(e,t,n){return this._def(b.varKinds.let,e,t,n)}},{key:"var",value:function(e,t,n){return this._def(b.varKinds.var,e,t,n)}},{key:"assign",value:function(e,t,n){return this._leafNode(new S(e,t,n))}},{key:"add",value:function(e,n){return this._leafNode(new k(e,t.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==g.nil&&this._leafNode(new D(e)),this}},{key:"object",value:function(){for(var e=["{"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var a=0,o=n;a<o.length;a++){var i=c(o[a],2),s=i[0],u=i[1];e.length>1&&e.push(","),e.push(s),(s!==u||this.opts.es5)&&(e.push(":"),(0,g.addCodeArg)(e,u))}return e.push("}"),new g._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new R(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(e){return this._elseNode(new R(e))}},{key:"else",value:function(){return this._elseNode(new I)}},{key:"endIf",value:function(){return this._endBlockNode(R,I)}},{key:"_for",value:function(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}},{key:"for",value:function(e,t){return this._for(new Y(e),t)}},{key:"forRange",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?b.varKinds.var:b.varKinds.let,o=this._scope.toName(e);return this._for(new j(a,o,t,n),(function(){return r(o)}))}},{key:"forOf",value:function(e,t,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b.varKinds.const,s=this._scope.toName(e);if(this.opts.es5){var u=t instanceof g.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,g._)(r||(r=l(["",".length"])),u),(function(e){o.var(s,(0,g._)(a||(a=l(["","[","]"])),u,e)),n(s)}))}return this._for(new H("of",i,s,t),(function(){return n(s)}))}},{key:"forIn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?b.varKinds.var:b.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,g._)(o||(o=l(["Object.keys(",")"])),t),n);var a=this._scope.toName(e);return this._for(new H("in",r,a,t),(function(){return n(a)}))}},{key:"endFor",value:function(){return this._endBlockNode(P)}},{key:"label",value:function(e){return this._leafNode(new L(e))}},{key:"break",value:function(e){return this._leafNode(new C(e))}},{key:"return",value:function(e){var t=new U;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(U)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new B;if(this._blockNode(r),this.code(e),t){var a=this.name("e");this._currNode=r.catch=new z(a),t(a)}return n&&(this._currNode=r.finally=new W,this.code(n)),this._endBlockNode(z,W)}},{key:"throw",value:function(e){return this._leafNode(new A(e))}},{key:"block",value:function(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}},{key:"endBlock",value:function(e){var t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");var n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(n," vs ").concat(e," expected"));return this._nodes.length=t,this}},{key:"func",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.nil,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return this._blockNode(new F(e,t,n)),r&&this.code(r).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(F)}},{key:"optimize",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(e){return this._currNode.nodes.push(e),this}},{key:"_blockNode",value:function(e){this._currNode.nodes.push(e),this._nodes.push(e)}},{key:"_endBlockNode",value:function(e,t){var n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}},{key:"_elseNode",value:function(e){var t=this._currNode;if(!(t instanceof R))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var e=this._nodes;return e[e.length-1]},set:function(e){var t=this._nodes;t[t.length-1]=e}}]),e}();function G(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function K(e,t){return t instanceof g._CodeOrName?G(e,t.names):e}function q(e,t,n){return e instanceof g.Name?a(e):(r=e)instanceof g._Code&&r._items.some((function(e){return e instanceof g.Name&&1===t[e.str]&&void 0!==n[e.str]}))?new g._Code(e._items.reduce((function(e,t){return t instanceof g.Name&&(t=a(t)),t instanceof g._Code?e.push.apply(e,p(t._items)):e.push(t),e}),[])):e;var r;function a(e){var r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function Q(e,t){for(var n in t)e[n]=(e[n]||0)-(t[n]||0)}function $(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,g._)(i||(i=l(["!",""])),ee(e))}t.CodeGen=V,t.not=$;var X=Z(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(X)};var J=Z(t.operators.OR);function Z(e){return function(t,n){return t===g.nil?n:n===g.nil?t:(0,g._)(s||(s=l([""," "," ",""])),ee(t),e,ee(n))}}function ee(e){return e instanceof g.Name?e:(0,g._)(u||(u=l(["(",")"])),e)}t.or=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(J)}},325:function(e,t,n){"use strict";var r,a,o,i,s,u=n(1448).default,l=n(7208).default,c=n(8798).default,d=n(4528).default,f=n(7267).default,p=n(9913).default,m=n(9845).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;var h,v=n(4420),y=function(e){f(n,e);var t=p(n);function n(e){var r;return d(this,n),(r=t.call(this,'CodeGen: "code" for '.concat(e," not defined"))).value=e.value,r}return c(n)}(m(Error));!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(h=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new v.Name("const"),let:new v.Name("let"),var:new v.Name("var")};var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefixes,r=t.parent;d(this,e),this._names={},this._prefixes=n,this._parent=r}return c(e,[{key:"toName",value:function(e){return e instanceof v.Name?e:this.name(e)}},{key:"name",value:function(e){return new v.Name(this._newName(e))}},{key:"_newName",value:function(e){var t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}},{key:"_nameGroup",value:function(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}]),e}();t.Scope=_;var g=function(e){f(n,e);var t=p(n);function n(e,r){var a;return d(this,n),(a=t.call(this,r)).prefix=e,a}return c(n,[{key:"setValue",value:function(e,t){var n=t.property,a=t.itemIndex;this.value=e,this.scopePath=(0,v._)(r||(r=l([".","[","]"])),new v.Name(n),a)}}]),n}(v.Name);t.ValueScopeName=g;var b=(0,v._)(a||(a=l(["\n"],["\\n"]))),E=function(e){f(r,e);var n=p(r);function r(e){var t;return d(this,r),(t=n.call(this,e))._values={},t._scope=e.scope,t.opts=u(u({},e),{},{_n:e.lines?b:v.nil}),t}return c(r,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(e){return new g(e,this._newName(e))}},{key:"value",value:function(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");var r=this.toName(e),a=r.prefix,o=null!==(n=t.key)&&void 0!==n?n:t.ref,i=this._values[a];if(i){var s=i.get(o);if(s)return s}else i=this._values[a]=new Map;i.set(o,r);var u=this._scope[a]||(this._scope[a]=[]),l=u.length;return u[l]=t.ref,r.setValue(t,{property:a,itemIndex:l}),r}},{key:"getValue",value:function(e,t){var n=this._values[e];if(n)return n.get(t)}},{key:"scopeRefs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(function(t){if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,v._)(o||(o=l(["","",""])),e,t.scopePath)}))}},{key:"scopeCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(function(e){if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,n)}},{key:"_reduceValues",value:function(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,u=v.nil,c=function(c){var d=e[c];if(!d)return"continue";var f=a[c]=a[c]||new Map;d.forEach((function(e){if(!f.has(e)){f.set(e,h.Started);var a=n(e);if(a){var c=r.opts.es5?t.varKinds.var:t.varKinds.const;u=(0,v._)(i||(i=l(["",""," "," = ",";",""])),u,c,e,a,r.opts._n)}else{if(!(a=null==o?void 0:o(e)))throw new y(e);u=(0,v._)(s||(s=l(["","","",""])),u,a,r.opts._n)}f.set(e,h.Completed)}}))};for(var d in e)c(d);return u}}]),r}(_);t.ValueScope=E},8715:function(e,t,n){"use strict";var r,a,o,i,s,u,l,c,d,f,p,m,h,v,y,_,g,b,E,T,w,M,S,k,L,C=n(7208).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var A=n(6363),D=n(9563),x=n(3599);function N(e,t){var n=e.const("err",t);e.if((0,A._)(v||(v=C([""," === null"])),x.default.vErrors),(function(){return e.assign(x.default.vErrors,(0,A._)(y||(y=C(["[","]"])),n))}),(0,A._)(_||(_=C(["",".push(",")"])),x.default.vErrors,n)),e.code((0,A._)(g||(g=C(["","++"])),x.default.errors))}function O(e,t){var n=e.gen,r=e.validateName;e.schemaEnv.$async?n.throw((0,A._)(b||(b=C(["new ","(",")"])),e.ValidationError,t)):(n.assign((0,A._)(E||(E=C(["",".errors"])),r),t),n.return(!1))}t.keywordError={message:function(e){var t=e.keyword;return(0,A.str)(r||(r=C(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:function(e){var t=e.keyword,n=e.schemaType;return n?(0,A.str)(a||(a=C(['"','" keyword must be '," ($data)"])),t,n):(0,A.str)(o||(o=C(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=e.it,s=o.gen,u=o.compositeRule,l=o.allErrors,c=R(e,n,r);(null!=a?a:u||l)?N(s,c):O(o,(0,A._)(i||(i=C(["[","]"])),c))},t.reportExtraError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,a=e.it,o=a.gen,i=a.compositeRule,s=a.allErrors,u=R(e,n,r);N(o,u),i||s||O(a,x.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(x.default.errors,t),e.if((0,A._)(s||(s=C([""," !== null"])),x.default.vErrors),(function(){return e.if(t,(function(){return e.assign((0,A._)(u||(u=C(["",".length"])),x.default.vErrors),t)}),(function(){return e.assign(x.default.vErrors,null)}))}))},t.extendErrors=function(e){var t=e.gen,n=e.keyword,r=e.schemaValue,a=e.data,o=e.errsCount,i=e.it;if(void 0===o)throw new Error("ajv implementation error");var s=t.name("err");t.forRange("i",o,x.default.errors,(function(e){t.const(s,(0,A._)(l||(l=C(["","[","]"])),x.default.vErrors,e)),t.if((0,A._)(c||(c=C(["",".instancePath === undefined"])),s),(function(){return t.assign((0,A._)(d||(d=C(["",".instancePath"])),s),(0,A.strConcat)(x.default.instancePath,i.errorPath))})),t.assign((0,A._)(f||(f=C(["",".schemaPath"])),s),(0,A.str)(p||(p=C(["","/",""])),i.errSchemaPath,n)),i.opts.verbose&&(t.assign((0,A._)(m||(m=C(["",".schema"])),s),r),t.assign((0,A._)(h||(h=C(["",".data"])),s),a))}))};var I={keyword:new A.Name("keyword"),schemaPath:new A.Name("schemaPath"),params:new A.Name("params"),propertyName:new A.Name("propertyName"),message:new A.Name("message"),schema:new A.Name("schema"),parentSchema:new A.Name("parentSchema")};function R(e,t,n){return!1===e.it.createErrors?(0,A._)(T||(T=C(["{}"]))):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.gen,a=[P(e.it,n),Y(e,n)];return j(e,t,a),r.object.apply(r,a)}(e,t,n)}function P(e,t){var n=e.errorPath,r=t.instancePath,a=r?(0,A.str)(w||(w=C(["","",""])),n,(0,D.getErrorPath)(r,D.Type.Str)):n;return[x.default.instancePath,(0,A.strConcat)(x.default.instancePath,a)]}function Y(e,t){var n=e.keyword,r=e.it.errSchemaPath,a=t.schemaPath,o=t.parentSchema?r:(0,A.str)(M||(M=C(["","/",""])),r,n);return a&&(o=(0,A.str)(S||(S=C(["","",""])),o,(0,D.getErrorPath)(a,D.Type.Str))),[I.schemaPath,o]}function j(e,t,n){var r=t.params,a=t.message,o=e.keyword,i=e.data,s=e.schemaValue,u=e.it,l=u.opts,c=u.propertyName,d=u.topSchemaRef,f=u.schemaPath;n.push([I.keyword,o],[I.params,"function"==typeof r?r(e):r||(0,A._)(k||(k=C(["{}"])))]),l.messages&&n.push([I.message,"function"==typeof a?a(e):a]),l.verbose&&n.push([I.schema,s],[I.parentSchema,(0,A._)(L||(L=C(["","",""])),d,f)],[x.default.data,i]),c&&n.push([I.propertyName,c])}},651:function(e,t,n){"use strict";var r,a,o=n(6970).default,i=n(7208).default,s=n(5570).default,u=n(8798).default,l=n(4528).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;var c=n(6363