@ansible/ansible-ui-framework 2.4.70 → 2.4.71

Sign up to get free protection for your applications and to get access to all the features.
package/index.umd.cjs CHANGED
@@ -204,7 +204,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
204
204
  || ${M} === "boolean" || ${S} === null`).assign(j,g._`[${S}]`)}}x.else(),l($),x.endIf(),x.if(g._`${j} !== undefined`,()=>{x.assign(S,j),function({gen:C,parentData:D,parentDataProperty:V},B){C.if(g._`${D} !== undefined`,()=>C.assign(g._`${D}[${V}]`,B))}($,j)})}(c,f,p):l(c)})}return y};const s=new Set(["string","number","integer","boolean","null"]);function i(c,f,h,d=r.Correct){const m=d===r.Correct?g.operators.EQ:g.operators.NEQ;let p;switch(c){case"null":return g._`${f} ${m} null`;case"array":p=g._`Array.isArray(${f})`;break;case"object":p=g._`${f} && typeof ${f} == "object" && !Array.isArray(${f})`;break;case"integer":p=y(g._`!(${f} % 1) && !isNaN(${f})`);break;case"number":p=y();break;default:return g._`typeof ${f} ${m} ${c}`}return d===r.Correct?p:(0,g.not)(p);function y(b=g.nil){return(0,g.and)(g._`typeof ${f} == "number"`,b,h?g._`isFinite(${f})`:g.nil)}}function o(c,f,h,d){if(c.length===1)return i(c[0],f,h,d);let m;const p=(0,ge.toHash)(c);if(p.array&&p.object){const y=g._`typeof ${f} != "object"`;m=p.null?y:g._`!${f} || ${y}`,delete p.null,delete p.array,delete p.object}else m=g.nil;p.number&&delete p.integer;for(const y in p)m=(0,g.and)(m,i(y,f,h,d));return m}e.checkDataType=i,e.checkDataTypes=o;const a={message:({schema:c})=>`must be ${c}`,params:({schema:c,schemaValue:f})=>typeof c=="string"?g._`{type: ${c}}`:g._`{type: ${f}}`};function l(c){const f=function(h){const{gen:d,data:m,schema:p}=h,y=(0,ge.schemaRefOrVal)(h,p,"type");return{gen:d,keyword:"type",data:m,schema:p.type,schemaCode:y,schemaValue:y,parentSchema:p,params:{},it:h}}(c);(0,Pt.reportError)(f,a)}e.reportTypeError=l}),Gy=Xe(function(t,e){function r(n,s,i){const{gen:o,compositeRule:a,data:l,opts:c}=n;if(i===void 0)return;const f=g._`${l}${(0,g.getProperty)(s)}`;if(a)return void(0,ge.checkStrictMode)(n,`default is ignored for: ${f}`);let h=g._`${f} === undefined`;c.useDefaults==="empty"&&(h=g._`${h} || ${f} === null || ${f} === ""`),o.if(h,g._`${f} = ${(0,g.stringify)(i)}`)}Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0,e.assignDefaults=function(n,s){const{properties:i,items:o}=n.schema;if(s==="object"&&i)for(const a in i)r(n,a,i[a].default);else s==="array"&&Array.isArray(o)&&o.forEach((a,l)=>r(n,l,a.default))}}),rt=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const r=ge;function n(l){return l.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:g._`Object.prototype.hasOwnProperty`})}function s(l,c,f){return g._`${n(l)}.call(${c}, ${f})`}function i(l,c,f,h){const d=g._`${c}${(0,g.getProperty)(f)} === undefined`;return h?(0,g.or)(d,(0,g.not)(s(l,c,f))):d}function o(l){return l?Object.keys(l).filter(c=>c!=="__proto__"):[]}e.checkReportMissingProp=function(l,c){const{gen:f,data:h,it:d}=l;f.if(i(f,h,c,d.opts.ownProperties),()=>{l.setParams({missingProperty:g._`${c}`},!0),l.error()})},e.checkMissingProp=function({gen:l,data:c,it:{opts:f}},h,d){return(0,g.or)(...h.map(m=>(0,g.and)(i(l,c,m,f.ownProperties),g._`${d} = ${m}`)))},e.reportMissingProp=function(l,c){l.setParams({missingProperty:c},!0),l.error()},e.hasPropFunc=n,e.isOwnProperty=s,e.propertyInData=function(l,c,f,h){const d=g._`${c}${(0,g.getProperty)(f)} !== undefined`;return h?g._`${d} && ${s(l,c,f)}`:d},e.noPropertyInData=i,e.allSchemaProperties=o,e.schemaProperties=function(l,c){return o(c).filter(f=>!(0,ge.alwaysValidSchema)(l,c[f]))},e.callValidateCode=function({schemaCode:l,data:c,it:{gen:f,topSchemaRef:h,schemaPath:d,errorPath:m},it:p},y,b,$){const T=$?g._`${l}, ${c}, ${h}${d}`:c,_=[[ee.default.instancePath,(0,g.strConcat)(ee.default.instancePath,m)],[ee.default.parentData,p.parentData],[ee.default.parentDataProperty,p.parentDataProperty],[ee.default.rootData,ee.default.rootData]];p.opts.dynamicRef&&_.push([ee.default.dynamicAnchors,ee.default.dynamicAnchors]);const x=g._`${T}, ${f.object(..._)}`;return b!==g.nil?g._`${y}.call(${b}, ${x})`:g._`${y}(${x})`};const a=g._`new RegExp`;e.usePattern=function({gen:l,it:{opts:c}},f){const h=c.unicodeRegExp?"u":"",{regExp:d}=c.code,m=d(f,h);return l.scopeValue("pattern",{key:m.toString(),ref:m,code:g._`${d.code==="new RegExp"?a:(0,r.useFunc)(l,d)}(${f}, ${h})`})},e.validateArray=function(l){const{gen:c,data:f,keyword:h,it:d}=l,m=c.name("valid");if(d.allErrors){const y=c.let("valid",!0);return p(()=>c.assign(y,!1)),y}return c.var(m,!0),p(()=>c.break()),m;function p(y){const b=c.const("len",g._`${f}.length`);c.forRange("i",0,b,$=>{l.subschema({keyword:h,dataProp:$,dataPropType:ge.Type.Num},m),c.if((0,g.not)(m),y)})}},e.validateUnion=function(l){const{gen:c,schema:f,keyword:h,it:d}=l;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(y=>(0,ge.alwaysValidSchema)(d,y))&&!d.opts.unevaluated)return;const m=c.let("valid",!1),p=c.name("_valid");c.block(()=>f.forEach((y,b)=>{const $=l.subschema({keyword:h,schemaProp:b,compositeRule:!0},p);c.assign(m,g._`${m} || ${p}`),l.mergeValidEvaluated($,p)||c.if((0,g.not)(m))})),l.result(m,()=>l.reset(),()=>l.error(!0))}}),On=Xe(function(t,e){function r(s){const{gen:i,data:o,it:a}=s;i.if(a.parentData,()=>i.assign(o,g._`${a.parentData}[${a.parentDataProperty}]`))}function n(s,i,o){if(o===void 0)throw new Error(`keyword "${i}" failed to compile`);return s.scopeValue("keyword",typeof o=="function"?{ref:o}:{ref:o,code:(0,g.stringify)(o)})}Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0,e.macroKeywordCode=function(s,i){const{gen:o,keyword:a,schema:l,parentSchema:c,it:f}=s,h=i.macro.call(f.self,l,c,f),d=n(o,a,h);f.opts.validateSchema!==!1&&f.self.validateSchema(h,!0);const m=o.name("valid");s.subschema({schema:h,schemaPath:g.nil,errSchemaPath:`${f.errSchemaPath}/${a}`,topSchemaRef:d,compositeRule:!0},m),s.pass(m,()=>s.error(!0))},e.funcKeywordCode=function(s,i){var o;const{gen:a,keyword:l,schema:c,parentSchema:f,$data:h,it:d}=s;(function({schemaEnv:T},_){if(_.async&&!T.$async)throw new Error("async keyword in sync schema")})(d,i);const m=!h&&i.compile?i.compile.call(d.self,c,f,d):i.validate,p=n(a,l,m),y=a.let("valid");function b(T=i.async?g._`await `:g.nil){a.assign(y,g._`${T}${(0,rt.callValidateCode)(s,p,d.opts.passContext?ee.default.this:ee.default.self,!("compile"in i&&!h||i.schema===!1))}`,i.modifying)}function $(T){var _;a.if((0,g.not)((_=i.valid)!==null&&_!==void 0?_:y),T)}s.block$data(y,function(){if(i.errors===!1)b(),i.modifying&&r(s),$(()=>s.error());else{const T=i.async?function(){const _=a.let("ruleErrs",null);return a.try(()=>b(g._`await `),x=>a.assign(y,!1).if(g._`${x} instanceof ${d.ValidationError}`,()=>a.assign(_,g._`${x}.errors`),()=>a.throw(x))),_}():function(){const _=g._`${p}.errors`;return a.assign(_,null),b(g.nil),_}();i.modifying&&r(s),$(()=>function(_,x){const{gen:S}=_;S.if(g._`Array.isArray(${x})`,()=>{S.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${x} : ${ee.default.vErrors}.concat(${x})`).assign(ee.default.errors,g._`${ee.default.vErrors}.length`),(0,Pt.extendErrors)(_)},()=>_.error())}(s,T))}}),s.ok((o=i.valid)!==null&&o!==void 0?o:y)},e.validSchemaType=function(s,i,o=!1){return!i.length||i.some(a=>a==="array"?Array.isArray(s):a==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==a||o&&s===void 0)},e.validateKeywordUsage=function({schema:s,opts:i,self:o,errSchemaPath:a},l,c){if(Array.isArray(l.keyword)?!l.keyword.includes(c):l.keyword!==c)throw new Error("ajv implementation error");const f=l.dependencies;if(f!=null&&f.some(h=>!Object.prototype.hasOwnProperty.call(s,h)))throw new Error(`parent schema must have dependencies of ${c}: ${f.join(",")}`);if(l.validateSchema&&!l.validateSchema(s[c])){const h=`keyword "${c}" value is invalid at path "${a}": `+o.errorsText(l.validateSchema.errors);if(i.validateSchema!=="log")throw new Error(h);o.logger.error(h)}}}),Xi=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0,e.getSubschema=function(r,{keyword:n,schemaProp:s,schema:i,schemaPath:o,errSchemaPath:a,topSchemaRef:l}){if(n!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){const c=r.schema[n];return s===void 0?{schema:c,schemaPath:g._`${r.schemaPath}${(0,g.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:c[s],schemaPath:g._`${r.schemaPath}${(0,g.getProperty)(n)}${(0,g.getProperty)(s)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,ge.escapeFragment)(s)}`}}if(i!==void 0){if(o===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:o,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(r,n,{dataProp:s,dataPropType:i,data:o,dataTypes:a,propertyName:l}){if(o!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(s!==void 0){const{errorPath:h,dataPathArr:d,opts:m}=n;f(c.let("data",g._`${n.data}${(0,g.getProperty)(s)}`,!0)),r.errorPath=g.str`${h}${(0,ge.getErrorPath)(s,i,m.jsPropertySyntax)}`,r.parentDataProperty=g._`${s}`,r.dataPathArr=[...d,r.parentDataProperty]}function f(h){r.data=h,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,h]}o!==void 0&&(f(o instanceof g.Name?o:c.let("data",o,!0)),l!==void 0&&(r.propertyName=l)),a&&(r.dataTypes=a)},e.extendSubschemaMode=function(r,{jtdDiscriminator:n,jtdMetadata:s,compositeRule:i,createErrors:o,allErrors:a}){i!==void 0&&(r.compositeRule=i),o!==void 0&&(r.createErrors=o),a!==void 0&&(r.allErrors=a),r.jtdDiscriminator=n,r.jtdMetadata=s}}),Qi=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(s=n;s--!=0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(s=n;s--!=0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!=0;){var o=i[s];if(!t(e[o],r[o]))return!1}return!0}return e!=e&&r!=r},Yy=Xe(function(t){var e=t.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),r(s,typeof(i=s.cb||i)=="function"?i:i.pre||function(){},i.post||function(){},n,"",n)};function r(n,s,i,o,a,l,c,f,h,d){if(o&&typeof o=="object"&&!Array.isArray(o)){for(var m in s(o,a,l,c,f,h,d),o){var p=o[m];if(Array.isArray(p)){if(m in e.arrayKeywords)for(var y=0;y<p.length;y++)r(n,s,i,p[y],a+"/"+m+"/"+y,l,a,m,o,y)}else if(m in e.propsKeywords){if(p&&typeof p=="object")for(var b in p)r(n,s,i,p[b],a+"/"+m+"/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),l,a,m,o,b)}else(m in e.keywords||n.allKeys&&!(m in e.skipKeywords))&&r(n,s,i,p,a+"/"+m,l,a,m,o)}i(o,a,l,c,f,h,d)}}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}}),ft=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(h,d=!0){return typeof h=="boolean"||(d===!0?!s(h):!!d&&i(h)<=d)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(h){for(const d in h){if(n.has(d))return!0;const m=h[d];if(Array.isArray(m)&&m.some(s)||typeof m=="object"&&s(m))return!0}return!1}function i(h){let d=0;for(const m in h)if(m==="$ref"||(d++,!r.has(m)&&(typeof h[m]=="object"&&(0,ge.eachItem)(h[m],p=>d+=i(p)),d===1/0)))return 1/0;return d}function o(h,d="",m){m!==!1&&(d=c(d));const p=h.parse(d);return a(h,p)}function a(h,d){return h.serialize(d).split("#")[0]+"#"}e.getFullPath=o,e._getFullPath=a;const l=/#\/?$/;function c(h){return h?h.replace(l,""):""}e.normalizeId=c,e.resolveUrl=function(h,d,m){return m=c(m),h.resolve(d,m)};const f=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(h,d){if(typeof h=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,y=c(h[m]||d),b={"":y},$=o(p,y,!1),T={},_=new Set;return Yy(h,{allKeys:!0},(R,M,j,E)=>{if(E===void 0)return;const C=$+M;let D=b[E];function V(Y){if(Y=c(D?(0,this.opts.uriResolver.resolve)(D,Y):Y),_.has(Y))throw S(Y);_.add(Y);let K=this.refs[Y];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?x(R,K.schema,Y):Y!==c(C)&&(Y[0]==="#"?(x(R,T[Y],Y),T[Y]=R):this.refs[Y]=C),Y}function B(Y){if(typeof Y=="string"){if(!f.test(Y))throw new Error(`invalid anchor "${Y}"`);V.call(this,`#${Y}`)}}typeof R[m]=="string"&&(D=V.call(this,R[m])),B.call(this,R.$anchor),B.call(this,R.$dynamicAnchor),b[M]=D}),T;function x(R,M,j){if(M!==void 0&&!Qi(R,M))throw S(j)}function S(R){return new Error(`reference "${R}" resolves to more than one schema`)}}}),Pn=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const r=Kt;function n({gen:_,validateName:x,schema:S,schemaEnv:R,opts:M},j){M.code.es5?_.func(x,g._`${ee.default.data}, ${ee.default.valCxt}`,R.$async,()=>{_.code(g._`"use strict"; ${s(S,M)}`),function(E,C){E.if(ee.default.valCxt,()=>{E.var(ee.default.instancePath,g._`${ee.default.valCxt}.${ee.default.instancePath}`),E.var(ee.default.parentData,g._`${ee.default.valCxt}.${ee.default.parentData}`),E.var(ee.default.parentDataProperty,g._`${ee.default.valCxt}.${ee.default.parentDataProperty}`),E.var(ee.default.rootData,g._`${ee.default.valCxt}.${ee.default.rootData}`),C.dynamicRef&&E.var(ee.default.dynamicAnchors,g._`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{E.var(ee.default.instancePath,g._`""`),E.var(ee.default.parentData,g._`undefined`),E.var(ee.default.parentDataProperty,g._`undefined`),E.var(ee.default.rootData,ee.default.data),C.dynamicRef&&E.var(ee.default.dynamicAnchors,g._`{}`)})}(_,M),_.code(j)}):_.func(x,g._`${ee.default.data}, ${function(E){return g._`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${E.dynamicRef?g._`, ${ee.default.dynamicAnchors}={}`:g.nil}}={}`}(M)}`,R.$async,()=>_.code(s(S,M)).code(j))}function s(_,x){const S=typeof _=="object"&&_[x.schemaId];return S&&(x.code.source||x.code.process)?g._`/*# sourceURL=${S} */`:g.nil}function i({schema:_,self:x}){if(typeof _=="boolean")return!_;for(const S in _)if(x.RULES.all[S])return!0;return!1}function o(_){return typeof _.schema!="boolean"}function a(_){(0,ge.checkUnknownRules)(_),function(x){const{schema:S,errSchemaPath:R,opts:M,self:j}=x;S.$ref&&M.ignoreKeywordsWithRef&&(0,ge.schemaHasRulesButRef)(S,j.RULES)&&j.logger.warn(`$ref: keywords ignored in schema at path "${R}"`)}(_)}function l(_,x){if(_.opts.jtd)return f(_,[],!1,x);const S=(0,Kt.getSchemaTypes)(_.schema);f(_,S,!(0,Kt.coerceAndCheckDataType)(_,S),x)}function c({gen:_,schemaEnv:x,schema:S,errSchemaPath:R,opts:M}){const j=S.$comment;if(M.$comment===!0)_.code(g._`${ee.default.self}.logger.log(${j})`);else if(typeof M.$comment=="function"){const E=g.str`${R}/$comment`,C=_.scopeValue("root",{ref:x.root});_.code(g._`${ee.default.self}.opts.$comment(${j}, ${E}, ${C}.schema)`)}}function f(_,x,S,R){const{gen:M,schema:j,data:E,allErrors:C,opts:D,self:V}=_,{RULES:B}=V;function Y(K){(0,$s.shouldUseGroup)(j,K)&&(K.type?(M.if((0,r.checkDataType)(K.type,E,D.strictNumbers)),h(_,K),x.length===1&&x[0]===K.type&&S&&(M.else(),(0,r.reportTypeError)(_)),M.endIf()):h(_,K),C||M.if(g._`${ee.default.errors} === ${R||0}`))}!j.$ref||!D.ignoreKeywordsWithRef&&(0,ge.schemaHasRulesButRef)(j,B)?(D.jtd||function(K,X){!K.schemaEnv.meta&&K.opts.strictTypes&&(function(re,ne){ne.length&&(re.dataTypes.length?(ne.forEach(I=>{d(re.dataTypes,I)||m(re,`type "${I}" not allowed by context "${re.dataTypes.join(",")}"`)}),re.dataTypes=re.dataTypes.filter(I=>d(ne,I))):re.dataTypes=ne)}(K,X),K.opts.allowUnionTypes||function(re,ne){ne.length>1&&(ne.length!==2||!ne.includes("null"))&&m(re,"use allowUnionTypes to allow union type keyword")}(K,X),function(re,ne){const I=re.self.RULES.all;for(const k in I){const L=I[k];if(typeof L=="object"&&(0,$s.shouldUseRule)(re.schema,L)){const{type:q}=L.definition;q.length&&!q.some(Z=>{return(Q=ne).includes(le=Z)||le==="number"&&Q.includes("integer");var Q,le})&&m(re,`missing type "${q.join(",")}" for keyword "${k}"`)}}}(K,K.dataTypes))}(_,x),M.block(()=>{for(const K of B.rules)Y(K);Y(B.post)})):M.block(()=>y(_,"$ref",B.all.$ref.definition))}function h(_,x){const{gen:S,schema:R,opts:{useDefaults:M}}=_;M&&(0,Gy.assignDefaults)(_,x.type),S.block(()=>{for(const j of x.rules)(0,$s.shouldUseRule)(R,j)&&y(_,j.keyword,j.definition,x.type)})}function d(_,x){return _.includes(x)||x==="integer"&&_.includes("number")}function m(_,x){(0,ge.checkStrictMode)(_,x+=` at "${_.schemaEnv.baseId+_.errSchemaPath}" (strictTypes)`,_.opts.strictTypes)}e.validateFunctionCode=function(_){o(_)&&(a(_),i(_))?function(x){const{schema:S,opts:R,gen:M}=x;n(x,()=>{R.$comment&&S.$comment&&c(x),function(j){const{schema:E,opts:C}=j;E.default!==void 0&&C.useDefaults&&C.strictSchema&&(0,ge.checkStrictMode)(j,"default is ignored in the schema root")}(x),M.let(ee.default.vErrors,null),M.let(ee.default.errors,0),R.unevaluated&&function(j){const{gen:E,validateName:C}=j;j.evaluated=E.const("evaluated",g._`${C}.evaluated`),E.if(g._`${j.evaluated}.dynamicProps`,()=>E.assign(g._`${j.evaluated}.props`,g._`undefined`)),E.if(g._`${j.evaluated}.dynamicItems`,()=>E.assign(g._`${j.evaluated}.items`,g._`undefined`))}(x),l(x),function(j){const{gen:E,schemaEnv:C,validateName:D,ValidationError:V,opts:B}=j;C.$async?E.if(g._`${ee.default.errors} === 0`,()=>E.return(ee.default.data),()=>E.throw(g._`new ${V}(${ee.default.vErrors})`)):(E.assign(g._`${D}.errors`,ee.default.vErrors),B.unevaluated&&function({gen:Y,evaluated:K,props:X,items:re}){X instanceof g.Name&&Y.assign(g._`${K}.props`,X),re instanceof g.Name&&Y.assign(g._`${K}.items`,re)}(j),E.return(g._`${ee.default.errors} === 0`))}(x)})}(_):n(_,()=>(0,Su.topBoolOrEmptySchema)(_))};class p{constructor(x,S,R){if((0,On.validateKeywordUsage)(x,S,R),this.gen=x.gen,this.allErrors=x.allErrors,this.keyword=R,this.data=x.data,this.schema=x.schema[R],this.$data=S.$data&&x.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ge.schemaRefOrVal)(x,this.schema,R,this.$data),this.schemaType=S.schemaType,this.parentSchema=x.schema,this.params={},this.it=x,this.def=S,this.$data)this.schemaCode=x.gen.const("vSchema",T(this.$data,x));else if(this.schemaCode=this.schemaValue,!(0,On.validSchemaType)(this.schema,S.schemaType,S.allowUndefined))throw new Error(`${R} value must be ${JSON.stringify(S.schemaType)}`);("code"in S?S.trackErrors:S.errors!==!1)&&(this.errsCount=x.gen.const("_errs",ee.default.errors))}result(x,S,R){this.failResult((0,g.not)(x),S,R)}failResult(x,S,R){this.gen.if(x),R?R():this.error(),S?(this.gen.else(),S(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(x,S){this.failResult((0,g.not)(x),void 0,S)}fail(x){if(x===void 0)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(x),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(x){if(!this.$data)return this.fail(x);const{schemaCode:S}=this;this.fail(g._`${S} !== undefined && (${(0,g.or)(this.invalid$data(),x)})`)}error(x,S,R){if(S)return this.setParams(S),this._error(x,R),void this.setParams({});this._error(x,R)}_error(x,S){(x?Pt.reportExtraError:Pt.reportError)(this,this.def.error,S)}$dataError(){(0,Pt.reportError)(this,this.def.$dataError||Pt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Pt.resetErrorsCount)(this.gen,this.errsCount)}ok(x){this.allErrors||this.gen.if(x)}setParams(x,S){S?Object.assign(this.params,x):this.params=x}block$data(x,S,R=g.nil){this.gen.block(()=>{this.check$data(x,R),S()})}check$data(x=g.nil,S=g.nil){if(!this.$data)return;const{gen:R,schemaCode:M,schemaType:j,def:E}=this;R.if((0,g.or)(g._`${M} === undefined`,S)),x!==g.nil&&R.assign(x,!0),(j.length||E.validateSchema)&&(R.elseIf(this.invalid$data()),this.$dataError(),x!==g.nil&&R.assign(x,!1)),R.else()}invalid$data(){const{gen:x,schemaCode:S,schemaType:R,def:M,it:j}=this;return(0,g.or)(function(){if(R.length){if(!(S instanceof g.Name))throw new Error("ajv implementation error");const E=Array.isArray(R)?R:[R];return g._`${(0,r.checkDataTypes)(E,S,j.opts.strictNumbers,r.DataType.Wrong)}`}return g.nil}(),function(){if(M.validateSchema){const E=x.scopeValue("validate$data",{ref:M.validateSchema});return g._`!${E}(${S})`}return g.nil}())}subschema(x,S){const R=(0,Xi.getSubschema)(this.it,x);(0,Xi.extendSubschemaData)(R,this.it,x),(0,Xi.extendSubschemaMode)(R,x);const M={...this.it,...R,items:void 0,props:void 0};return function(j,E){o(j)&&(a(j),i(j))?function(C,D){const{schema:V,gen:B,opts:Y}=C;Y.$comment&&V.$comment&&c(C),function(X){const re=X.schema[X.opts.schemaId];re&&(X.baseId=(0,ft.resolveUrl)(X.opts.uriResolver,X.baseId,re))}(C),function(X){if(X.schema.$async&&!X.schemaEnv.$async)throw new Error("async schema in sync schema")}(C);const K=B.const("_errs",ee.default.errors);l(C,K),B.var(D,g._`${K} === ${ee.default.errors}`)}(j,E):(0,Su.boolOrEmptySchema)(j,E)}(M,S),M}mergeEvaluated(x,S){const{it:R,gen:M}=this;R.opts.unevaluated&&(R.props!==!0&&x.props!==void 0&&(R.props=ge.mergeEvaluated.props(M,x.props,R.props,S)),R.items!==!0&&x.items!==void 0&&(R.items=ge.mergeEvaluated.items(M,x.items,R.items,S)))}mergeValidEvaluated(x,S){const{it:R,gen:M}=this;if(R.opts.unevaluated&&(R.props!==!0||R.items!==!0))return M.if(S,()=>this.mergeEvaluated(x,g.Name)),!0}}function y(_,x,S,R){const M=new p(_,S,x);"code"in S?S.code(M,R):M.$data&&S.validate?(0,On.funcKeywordCode)(M,S):"macro"in S?(0,On.macroKeywordCode)(M,S):(S.compile||S.validate)&&(0,On.funcKeywordCode)(M,S)}e.KeywordCxt=p;const b=/^\/(?:[^~]|~0|~1)*$/,$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(_,{dataLevel:x,dataNames:S,dataPathArr:R}){let M,j;if(_==="")return ee.default.rootData;if(_[0]==="/"){if(!b.test(_))throw new Error(`Invalid JSON-pointer: ${_}`);M=_,j=ee.default.rootData}else{const V=$.exec(_);if(!V)throw new Error(`Invalid JSON-pointer: ${_}`);const B=+V[1];if(M=V[2],M==="#"){if(B>=x)throw new Error(D("property/index",B));return R[x-B]}if(B>x)throw new Error(D("data",B));if(j=S[x-B],!M)return j}let E=j;const C=M.split("/");for(const V of C)V&&(j=g._`${j}${(0,g.getProperty)((0,ge.unescapeJsonPointer)(V))}`,E=g._`${E} && ${j}`);return E;function D(V,B){return`Cannot access ${V} ${B} levels up, current level is ${x}`}}e.getData=T});class Zy extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}var $u=Object.defineProperty({default:Zy},"__esModule",{value:!0});class Ky extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ft.resolveUrl)(e,r,n),this.missingSchema=(0,ft.normalizeId)((0,ft.getFullPath)(e,this.missingRef))}}var eo=Object.defineProperty({default:Ky},"__esModule",{value:!0}),ir=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;class r{constructor(h){var d;let m;this.refs={},this.dynamicAnchors={},typeof h.schema=="object"&&(m=h.schema),this.schema=h.schema,this.schemaId=h.schemaId,this.root=h.root||this,this.baseId=(d=h.baseId)!==null&&d!==void 0?d:(0,ft.normalizeId)(m==null?void 0:m[h.schemaId||"$id"]),this.schemaPath=h.schemaPath,this.localRefs=h.localRefs,this.meta=h.meta,this.$async=m==null?void 0:m.$async,this.refs={}}}function n(f){const h=i.call(this,f);if(h)return h;const d=(0,ft.getFullPath)(this.opts.uriResolver,f.root.baseId),{es5:m,lines:p}=this.opts.code,{ownProperties:y}=this.opts,b=new g.CodeGen(this.scope,{es5:m,lines:p,ownProperties:y});let $;f.$async&&($=b.scopeValue("Error",{ref:$u.default,code:g._`require("ajv/dist/runtime/validation_error").default`}));const T=b.scopeName("validate");f.validateName=T;const _={gen:b,allErrors:this.opts.allErrors,data:ee.default.data,parentData:ee.default.parentData,parentDataProperty:ee.default.parentDataProperty,dataNames:[ee.default.data],dataPathArr:[g.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:b.scopeValue("schema",this.opts.code.source===!0?{ref:f.schema,code:(0,g.stringify)(f.schema)}:{ref:f.schema}),validateName:T,ValidationError:$,schema:f.schema,schemaEnv:f,rootId:d,baseId:f.baseId||d,schemaPath:g.nil,errSchemaPath:f.schemaPath||(this.opts.jtd?"":"#"),errorPath:g._`""`,opts:this.opts,self:this};let x;try{this._compilations.add(f),(0,Pn.validateFunctionCode)(_),b.optimize(this.opts.code.optimize);const S=b.toString();x=`${b.scopeRefs(ee.default.scope)}return ${S}`,this.opts.code.process&&(x=this.opts.code.process(x,f));const R=new Function(`${ee.default.self}`,`${ee.default.scope}`,x)(this,this.scope.get());if(this.scope.value(T,{ref:R}),R.errors=null,R.schema=f.schema,R.schemaEnv=f,f.$async&&(R.$async=!0),this.opts.code.source===!0&&(R.source={validateName:T,validateCode:S,scopeValues:b._values}),this.opts.unevaluated){const{props:M,items:j}=_;R.evaluated={props:M instanceof g.Name?void 0:M,items:j instanceof g.Name?void 0:j,dynamicProps:M instanceof g.Name,dynamicItems:j instanceof g.Name},R.source&&(R.source.evaluated=(0,g.stringify)(R.evaluated))}return f.validate=R,f}catch(S){throw delete f.validate,delete f.validateName,x&&this.logger.error("Error compiling schema, function code:",x),S}finally{this._compilations.delete(f)}}function s(f){return(0,ft.inlineRef)(f.schema,this.opts.inlineRefs)?f.schema:f.validate?f:n.call(this,f)}function i(f){for(const m of this._compilations)if((h=m).schema===(d=f).schema&&h.root===d.root&&h.baseId===d.baseId)return m;var h,d}function o(f,h){let d;for(;typeof(d=this.refs[h])=="string";)h=d;return d||this.schemas[h]||a.call(this,f,h)}function a(f,h){const d=this.opts.uriResolver.parse(h),m=(0,ft._getFullPath)(this.opts.uriResolver,d);let p=(0,ft.getFullPath)(this.opts.uriResolver,f.baseId,void 0);if(Object.keys(f.schema).length>0&&m===p)return c.call(this,d,f);const y=(0,ft.normalizeId)(m),b=this.refs[y]||this.schemas[y];if(typeof b=="string"){const $=a.call(this,f,b);return typeof($==null?void 0:$.schema)!="object"?void 0:c.call(this,d,$)}if(typeof(b==null?void 0:b.schema)=="object"){if(b.validate||n.call(this,b),y===(0,ft.normalizeId)(h)){const{schema:$}=b,{schemaId:T}=this.opts,_=$[T];return _&&(p=(0,ft.resolveUrl)(this.opts.uriResolver,p,_)),new r({schema:$,schemaId:T,root:f,baseId:p})}return c.call(this,d,b)}}e.SchemaEnv=r,e.compileSchema=n,e.resolveRef=function(f,h,d){var m;d=(0,ft.resolveUrl)(this.opts.uriResolver,h,d);const p=f.refs[d];if(p)return p;let y=o.call(this,f,d);if(y===void 0){const b=(m=f.localRefs)===null||m===void 0?void 0:m[d],{schemaId:$}=this.opts;b&&(y=new r({schema:b,schemaId:$,root:f,baseId:h}))}return y!==void 0?f.refs[d]=s.call(this,y):void 0},e.getCompilingSchema=i,e.resolveSchema=a;const l=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function c(f,{baseId:h,schema:d,root:m}){var p;if(((p=f.fragment)===null||p===void 0?void 0:p[0])!=="/")return;for(const $ of f.fragment.slice(1).split("/")){if(typeof d=="boolean")return;const T=d[(0,ge.unescapeFragment)($)];if(T===void 0)return;const _=typeof(d=T)=="object"&&d[this.opts.schemaId];!l.has($)&&_&&(h=(0,ft.resolveUrl)(this.opts.uriResolver,h,_))}let y;if(typeof d!="boolean"&&d.$ref&&!(0,ge.schemaHasRulesButRef)(d,this.RULES)){const $=(0,ft.resolveUrl)(this.opts.uriResolver,h,d.$ref);y=a.call(this,m,$)}const{schemaId:b}=this.opts;return y=y||new r({schema:d,schemaId:b,root:m,baseId:h}),y.schema!==y.root.schema?y:void 0}}),_u={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},Tu=Xe(function(t,e){(function(r){function n(){for(var O=arguments.length,A=Array(O),F=0;F<O;F++)A[F]=arguments[F];if(A.length>1){A[0]=A[0].slice(0,-1);for(var W=A.length-1,ae=1;ae<W;++ae)A[ae]=A[ae].slice(1,-1);return A[W]=A[W].slice(1),A.join("")}return A[0]}function s(O){return"(?:"+O+")"}function i(O){return O===void 0?"undefined":O===null?"null":Object.prototype.toString.call(O).split(" ").pop().split("]").shift().toLowerCase()}function o(O){return O.toUpperCase()}function a(O){var A="[A-Za-z]",F="[0-9]",W=n(F,"[A-Fa-f]"),ae=s(s("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+s("%[89A-Fa-f]"+W+"%"+W+W)+"|"+s("%"+W+W)),ye="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=n("[\\:\\/\\?\\#\\[\\]\\@]",ye),Pe=O?"[\\uE000-\\uF8FF]":"[]",Ie=n(A,F,"[\\-\\.\\_\\~]",O?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");s(A+n(A,F,"[\\+\\-\\.]")+"*"),s(s(ae+"|"+n(Ie,ye,"[\\:]"))+"*");var Ue=s(s("25[0-5]")+"|"+s("2[0-4][0-9]")+"|"+s("1[0-9][0-9]")+"|"+s("0?[1-9][0-9]")+"|0?0?"+F),et=s(Ue+"\\."+Ue+"\\."+Ue+"\\."+Ue),_e=s(W+"{1,4}"),Ge=s(s(_e+"\\:"+_e)+"|"+et),Ke=s(s(_e+"\\:")+"{6}"+Ge),ht=s("\\:\\:"+s(_e+"\\:")+"{5}"+Ge),Ye=s(s(_e)+"?\\:\\:"+s(_e+"\\:")+"{4}"+Ge),mt=s(s(s(_e+"\\:")+"{0,1}"+_e)+"?\\:\\:"+s(_e+"\\:")+"{3}"+Ge),xt=s(s(s(_e+"\\:")+"{0,2}"+_e)+"?\\:\\:"+s(_e+"\\:")+"{2}"+Ge),$t=s(s(s(_e+"\\:")+"{0,3}"+_e)+"?\\:\\:"+_e+"\\:"+Ge),or=s(s(s(_e+"\\:")+"{0,4}"+_e)+"?\\:\\:"+Ge),ar=s(s(s(_e+"\\:")+"{0,5}"+_e)+"?\\:\\:"+_e),jt=s(s(s(_e+"\\:")+"{0,6}"+_e)+"?\\:\\:"),Mt=s([Ke,ht,Ye,mt,xt,$t,or,ar,jt].join("|")),Ht=s(s(Ie+"|"+ae)+"+");s("[vV]"+W+"+\\."+n(Ie,ye,"[\\:]")+"+"),s(s(ae+"|"+n(Ie,ye))+"*");var Vt=s(ae+"|"+n(Ie,ye,"[\\:\\@]"));return s(s(ae+"|"+n(Ie,ye,"[\\@]"))+"+"),s(s(Vt+"|"+n("[\\/\\?]",Pe))+"*"),{NOT_SCHEME:new RegExp(n("[^]",A,F,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ie,ye),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ie,ye),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ie,ye),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ie,ye),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ie,ye,"[\\:\\@\\/\\?]",Pe),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ie,ye,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ie,ye),"g"),UNRESERVED:new RegExp(Ie,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ie,Se),"g"),PCT_ENCODED:new RegExp(ae,"g"),IPV4ADDRESS:new RegExp("^("+et+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+s(s("\\%25|\\%(?!"+W+"{2})")+"("+Ht+")")+"?\\]?$")}}var l=a(!1),c=a(!0),f=function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return function(F,W){var ae=[],ye=!0,Se=!1,Pe=void 0;try{for(var Ie,Ue=F[Symbol.iterator]();!(ye=(Ie=Ue.next()).done)&&(ae.push(Ie.value),!W||ae.length!==W);ye=!0);}catch(et){Se=!0,Pe=et}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Se)throw Pe}}return ae}(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},h=2147483647,d=36,m=/^xn--/,p=/[^\0-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,T=String.fromCharCode;function _(O){throw new RangeError(b[O])}function x(O,A){var F=O.split("@"),W="";return F.length>1&&(W=F[0]+"@",O=F[1]),W+function(ae,ye){for(var Se=[],Pe=ae.length;Pe--;)Se[Pe]=ye(ae[Pe]);return Se}((O=O.replace(y,".")).split("."),A).join(".")}var S=function(O,A){return O+22+75*(O<26)-((A!=0)<<5)},R=function(O,A,F){var W=0;for(O=F?$(O/700):O>>1,O+=$(O/A);O>455;W+=d)O=$(O/35);return $(W+36*O/(O+38))},M=function(O){return x(O,function(A){return p.test(A)?"xn--"+function(F){var W=[],ae=(F=function(ke){for(var pt=[],Qe=0,st=ke.length;Qe<st;){var yt=ke.charCodeAt(Qe++);if(yt>=55296&&yt<=56319&&Qe<st){var lr=ke.charCodeAt(Qe++);(64512&lr)==56320?pt.push(((1023&yt)<<10)+(1023&lr)+65536):(pt.push(yt),Qe--)}else pt.push(yt)}return pt}(F)).length,ye=128,Se=0,Pe=72,Ie=!0,Ue=!1,et=void 0;try{for(var _e,Ge=F[Symbol.iterator]();!(Ie=(_e=Ge.next()).done);Ie=!0){var Ke=_e.value;Ke<128&&W.push(T(Ke))}}catch(ke){Ue=!0,et=ke}finally{try{!Ie&&Ge.return&&Ge.return()}finally{if(Ue)throw et}}var ht=W.length,Ye=ht;for(ht&&W.push("-");Ye<ae;){var mt=h,xt=!0,$t=!1,or=void 0;try{for(var ar,jt=F[Symbol.iterator]();!(xt=(ar=jt.next()).done);xt=!0){var Mt=ar.value;Mt>=ye&&Mt<mt&&(mt=Mt)}}catch(ke){$t=!0,or=ke}finally{try{!xt&&jt.return&&jt.return()}finally{if($t)throw or}}var Ht=Ye+1;mt-ye>$((h-Se)/Ht)&&_("overflow"),Se+=(mt-ye)*Ht,ye=mt;var Vt=!0,Ts=!1,ks=void 0;try{for(var js,P=F[Symbol.iterator]();!(Vt=(js=P.next()).done);Vt=!0){var te=js.value;if(te<ye&&++Se>h&&_("overflow"),te==ye){for(var ce=Se,Ee=d;;Ee+=d){var Ae=Ee<=Pe?1:Ee>=Pe+26?26:Ee-Pe;if(ce<Ae)break;var Ze=ce-Ae,De=d-Ae;W.push(T(S(Ae+Ze%De,0))),ce=$(Ze/De)}W.push(T(S(ce,0))),Pe=R(Se,Ht,Ye==ht),Se=0,++Ye}}}catch(ke){Ts=!0,ks=ke}finally{try{!Vt&&P.return&&P.return()}finally{if(Ts)throw ks}}++Se,++ye}return W.join("")}(A):A})},j=function(O){return x(O,function(A){return m.test(A)?function(F){var W,ae=[],ye=F.length,Se=0,Pe=128,Ie=72,Ue=F.lastIndexOf("-");Ue<0&&(Ue=0);for(var et=0;et<Ue;++et)F.charCodeAt(et)>=128&&_("not-basic"),ae.push(F.charCodeAt(et));for(var _e=Ue>0?Ue+1:0;_e<ye;){for(var Ge=Se,Ke=1,ht=d;;ht+=d){_e>=ye&&_("invalid-input");var Ye=(W=F.charCodeAt(_e++))-48<10?W-22:W-65<26?W-65:W-97<26?W-97:d;(Ye>=d||Ye>$((h-Se)/Ke))&&_("overflow"),Se+=Ye*Ke;var mt=ht<=Ie?1:ht>=Ie+26?26:ht-Ie;if(Ye<mt)break;var xt=d-mt;Ke>$(h/xt)&&_("overflow"),Ke*=xt}var $t=ae.length+1;Ie=R(Se-Ge,$t,Ge==0),$(Se/$t)>h-Pe&&_("overflow"),Pe+=$(Se/$t),Se%=$t,ae.splice(Se++,0,Pe)}return String.fromCodePoint.apply(String,ae)}(A.slice(4).toLowerCase()):A})},E={};function C(O){var A=O.charCodeAt(0);return A<16?"%0"+A.toString(16).toUpperCase():A<128?"%"+A.toString(16).toUpperCase():A<2048?"%"+(A>>6|192).toString(16).toUpperCase()+"%"+(63&A|128).toString(16).toUpperCase():"%"+(A>>12|224).toString(16).toUpperCase()+"%"+(A>>6&63|128).toString(16).toUpperCase()+"%"+(63&A|128).toString(16).toUpperCase()}function D(O){for(var A="",F=0,W=O.length;F<W;){var ae=parseInt(O.substr(F+1,2),16);if(ae<128)A+=String.fromCharCode(ae),F+=3;else if(ae>=194&&ae<224){if(W-F>=6){var ye=parseInt(O.substr(F+4,2),16);A+=String.fromCharCode((31&ae)<<6|63&ye)}else A+=O.substr(F,6);F+=6}else if(ae>=224){if(W-F>=9){var Se=parseInt(O.substr(F+4,2),16),Pe=parseInt(O.substr(F+7,2),16);A+=String.fromCharCode((15&ae)<<12|(63&Se)<<6|63&Pe)}else A+=O.substr(F,9);F+=9}else A+=O.substr(F,3),F+=3}return A}function V(O,A){function F(W){var ae=D(W);return ae.match(A.UNRESERVED)?ae:W}return O.scheme&&(O.scheme=String(O.scheme).replace(A.PCT_ENCODED,F).toLowerCase().replace(A.NOT_SCHEME,"")),O.userinfo!==void 0&&(O.userinfo=String(O.userinfo).replace(A.PCT_ENCODED,F).replace(A.NOT_USERINFO,C).replace(A.PCT_ENCODED,o)),O.host!==void 0&&(O.host=String(O.host).replace(A.PCT_ENCODED,F).toLowerCase().replace(A.NOT_HOST,C).replace(A.PCT_ENCODED,o)),O.path!==void 0&&(O.path=String(O.path).replace(A.PCT_ENCODED,F).replace(O.scheme?A.NOT_PATH:A.NOT_PATH_NOSCHEME,C).replace(A.PCT_ENCODED,o)),O.query!==void 0&&(O.query=String(O.query).replace(A.PCT_ENCODED,F).replace(A.NOT_QUERY,C).replace(A.PCT_ENCODED,o)),O.fragment!==void 0&&(O.fragment=String(O.fragment).replace(A.PCT_ENCODED,F).replace(A.NOT_FRAGMENT,C).replace(A.PCT_ENCODED,o)),O}function B(O){return O.replace(/^0*(.*)/,"$1")||"0"}function Y(O,A){var F=O.match(A.IPV4ADDRESS)||[],W=f(F,2)[1];return W?W.split(".").map(B).join("."):O}function K(O,A){var F=O.match(A.IPV6ADDRESS)||[],W=f(F,3),ae=W[1],ye=W[2];if(ae){for(var Se=ae.toLowerCase().split("::").reverse(),Pe=f(Se,2),Ie=Pe[0],Ue=Pe[1],et=Ue?Ue.split(":").map(B):[],_e=Ie.split(":").map(B),Ge=A.IPV4ADDRESS.test(_e[_e.length-1]),Ke=Ge?7:8,ht=_e.length-Ke,Ye=Array(Ke),mt=0;mt<Ke;++mt)Ye[mt]=et[mt]||_e[ht+mt]||"";Ge&&(Ye[Ke-1]=Y(Ye[Ke-1],A));var xt=Ye.reduce(function(jt,Mt,Ht){if(!Mt||Mt==="0"){var Vt=jt[jt.length-1];Vt&&Vt.index+Vt.length===Ht?Vt.length++:jt.push({index:Ht,length:1})}return jt},[]).sort(function(jt,Mt){return Mt.length-jt.length})[0],$t=void 0;if(xt&&xt.length>1){var or=Ye.slice(0,xt.index),ar=Ye.slice(xt.index+xt.length);$t=or.join(":")+"::"+ar.join(":")}else $t=Ye.join(":");return ye&&($t+="%"+ye),$t}return O}var X=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,re="".match(/(){0}/)[1]===void 0;function ne(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F={},W=A.iri!==!1?c:l;A.reference==="suffix"&&(O=(A.scheme?A.scheme+":":"")+"//"+O);var ae=O.match(X);if(ae){re?(F.scheme=ae[1],F.userinfo=ae[3],F.host=ae[4],F.port=parseInt(ae[5],10),F.path=ae[6]||"",F.query=ae[7],F.fragment=ae[8],isNaN(F.port)&&(F.port=ae[5])):(F.scheme=ae[1]||void 0,F.userinfo=O.indexOf("@")!==-1?ae[3]:void 0,F.host=O.indexOf("//")!==-1?ae[4]:void 0,F.port=parseInt(ae[5],10),F.path=ae[6]||"",F.query=O.indexOf("?")!==-1?ae[7]:void 0,F.fragment=O.indexOf("#")!==-1?ae[8]:void 0,isNaN(F.port)&&(F.port=O.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ae[4]:void 0)),F.host&&(F.host=K(Y(F.host,W),W)),F.reference=F.scheme!==void 0||F.userinfo!==void 0||F.host!==void 0||F.port!==void 0||F.path||F.query!==void 0?F.scheme===void 0?"relative":F.fragment===void 0?"absolute":"uri":"same-document",A.reference&&A.reference!=="suffix"&&A.reference!==F.reference&&(F.error=F.error||"URI is not a "+A.reference+" reference.");var ye=E[(A.scheme||F.scheme||"").toLowerCase()];if(A.unicodeSupport||ye&&ye.unicodeSupport)V(F,W);else{if(F.host&&(A.domainHost||ye&&ye.domainHost))try{F.host=M(F.host.replace(W.PCT_ENCODED,D).toLowerCase())}catch(Se){F.error=F.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}V(F,l)}ye&&ye.parse&&ye.parse(F,A)}else F.error=F.error||"URI can not be parsed.";return F}function I(O,A){var F=A.iri!==!1?c:l,W=[];return O.userinfo!==void 0&&(W.push(O.userinfo),W.push("@")),O.host!==void 0&&W.push(K(Y(String(O.host),F),F).replace(F.IPV6ADDRESS,function(ae,ye,Se){return"["+ye+(Se?"%25"+Se:"")+"]"})),typeof O.port!="number"&&typeof O.port!="string"||(W.push(":"),W.push(String(O.port))),W.length?W.join(""):void 0}var k=/^\.\.?\//,L=/^\/\.(\/|$)/,q=/^\/\.\.(\/|$)/,Z=/^\/?(?:.|\n)*?(?=\/|$)/;function Q(O){for(var A=[];O.length;)if(O.match(k))O=O.replace(k,"");else if(O.match(L))O=O.replace(L,"/");else if(O.match(q))O=O.replace(q,"/"),A.pop();else if(O==="."||O==="..")O="";else{var F=O.match(Z);if(!F)throw new Error("Unexpected dot segment condition");var W=F[0];O=O.slice(W.length),A.push(W)}return A.join("")}function le(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=A.iri?c:l,W=[],ae=E[(A.scheme||O.scheme||"").toLowerCase()];if(ae&&ae.serialize&&ae.serialize(O,A),O.host&&!F.IPV6ADDRESS.test(O.host)){if(A.domainHost||ae&&ae.domainHost)try{O.host=A.iri?j(O.host):M(O.host.replace(F.PCT_ENCODED,D).toLowerCase())}catch(Pe){O.error=O.error||"Host's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}V(O,F),A.reference!=="suffix"&&O.scheme&&(W.push(O.scheme),W.push(":"));var ye=I(O,A);if(ye!==void 0&&(A.reference!=="suffix"&&W.push("//"),W.push(ye),O.path&&O.path.charAt(0)!=="/"&&W.push("/")),O.path!==void 0){var Se=O.path;A.absolutePath||ae&&ae.absolutePath||(Se=Q(Se)),ye===void 0&&(Se=Se.replace(/^\/\//,"/%2F")),W.push(Se)}return O.query!==void 0&&(W.push("?"),W.push(O.query)),O.fragment!==void 0&&(W.push("#"),W.push(O.fragment)),W.join("")}function U(O,A){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W={};return arguments[3]||(O=ne(le(O,F),F),A=ne(le(A,F),F)),!(F=F||{}).tolerant&&A.scheme?(W.scheme=A.scheme,W.userinfo=A.userinfo,W.host=A.host,W.port=A.port,W.path=Q(A.path||""),W.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(W.userinfo=A.userinfo,W.host=A.host,W.port=A.port,W.path=Q(A.path||""),W.query=A.query):(A.path?(A.path.charAt(0)==="/"?W.path=Q(A.path):(W.path=O.userinfo===void 0&&O.host===void 0&&O.port===void 0||O.path?O.path?O.path.slice(0,O.path.lastIndexOf("/")+1)+A.path:A.path:"/"+A.path,W.path=Q(W.path)),W.query=A.query):(W.path=O.path,W.query=A.query!==void 0?A.query:O.query),W.userinfo=O.userinfo,W.host=O.host,W.port=O.port),W.scheme=O.scheme),W.fragment=A.fragment,W}function be(O,A){return O&&O.toString().replace(A&&A.iri?c.PCT_ENCODED:l.PCT_ENCODED,D)}var se={scheme:"http",domainHost:!0,parse:function(O,A){return O.host||(O.error=O.error||"HTTP URIs must have a host."),O},serialize:function(O,A){var F=String(O.scheme).toLowerCase()==="https";return O.port!==(F?443:80)&&O.port!==""||(O.port=void 0),O.path||(O.path="/"),O}},Ne={scheme:"https",domainHost:se.domainHost,parse:se.parse,serialize:se.serialize};function Te(O){return typeof O.secure=="boolean"?O.secure:String(O.scheme).toLowerCase()==="wss"}var $e={scheme:"ws",domainHost:!0,parse:function(O,A){var F=O;return F.secure=Te(F),F.resourceName=(F.path||"/")+(F.query?"?"+F.query:""),F.path=void 0,F.query=void 0,F},serialize:function(O,A){if(O.port!==(Te(O)?443:80)&&O.port!==""||(O.port=void 0),typeof O.secure=="boolean"&&(O.scheme=O.secure?"wss":"ws",O.secure=void 0),O.resourceName){var F=O.resourceName.split("?"),W=f(F,2),ae=W[0],ye=W[1];O.path=ae&&ae!=="/"?ae:void 0,O.query=ye,O.resourceName=void 0}return O.fragment=void 0,O}},J={scheme:"wss",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize},He={},ze="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",we="[0-9A-Fa-f]",N=s(s("%[EFef][0-9A-Fa-f]%"+we+we+"%"+we+we)+"|"+s("%[89A-Fa-f][0-9A-Fa-f]%"+we+we)+"|"+s("%"+we+we)),z=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),G=new RegExp(ze,"g"),ue=new RegExp(N,"g"),oe=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',z),"g"),ie=new RegExp(n("[^]",ze,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ve=ie;function Ce(O){var A=D(O);return A.match(G)?A:O}var pe={scheme:"mailto",parse:function(O,A){var F=O,W=F.to=F.path?F.path.split(","):[];if(F.path=void 0,F.query){for(var ae=!1,ye={},Se=F.query.split("&"),Pe=0,Ie=Se.length;Pe<Ie;++Pe){var Ue=Se[Pe].split("=");switch(Ue[0]){case"to":for(var et=Ue[1].split(","),_e=0,Ge=et.length;_e<Ge;++_e)W.push(et[_e]);break;case"subject":F.subject=be(Ue[1],A);break;case"body":F.body=be(Ue[1],A);break;default:ae=!0,ye[be(Ue[0],A)]=be(Ue[1],A)}}ae&&(F.headers=ye)}F.query=void 0;for(var Ke=0,ht=W.length;Ke<ht;++Ke){var Ye=W[Ke].split("@");if(Ye[0]=be(Ye[0]),A.unicodeSupport)Ye[1]=be(Ye[1],A).toLowerCase();else try{Ye[1]=M(be(Ye[1],A).toLowerCase())}catch(mt){F.error=F.error||"Email address's domain name can not be converted to ASCII via punycode: "+mt}W[Ke]=Ye.join("@")}return F},serialize:function(O,A){var F,W=O,ae=(F=O.to)!=null?F instanceof Array?F:typeof F.length!="number"||F.split||F.setInterval||F.call?[F]:Array.prototype.slice.call(F):[];if(ae){for(var ye=0,Se=ae.length;ye<Se;++ye){var Pe=String(ae[ye]),Ie=Pe.lastIndexOf("@"),Ue=Pe.slice(0,Ie).replace(ue,Ce).replace(ue,o).replace(oe,C),et=Pe.slice(Ie+1);try{et=A.iri?j(et):M(be(et,A).toLowerCase())}catch(ht){W.error=W.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+ht}ae[ye]=Ue+"@"+et}W.path=ae.join(",")}var _e=O.headers=O.headers||{};O.subject&&(_e.subject=O.subject),O.body&&(_e.body=O.body);var Ge=[];for(var Ke in _e)_e[Ke]!==He[Ke]&&Ge.push(Ke.replace(ue,Ce).replace(ue,o).replace(ie,C)+"="+_e[Ke].replace(ue,Ce).replace(ue,o).replace(ve,C));return Ge.length&&(W.query=Ge.join("&")),W}},Le=/^([^\:]+)\:(.*)/,qt={scheme:"urn",parse:function(O,A){var F=O.path&&O.path.match(Le),W=O;if(F){var ae=A.scheme||W.scheme||"urn",ye=F[1].toLowerCase(),Se=F[2],Pe=E[ae+":"+(A.nid||ye)];W.nid=ye,W.nss=Se,W.path=void 0,Pe&&(W=Pe.parse(W,A))}else W.error=W.error||"URN can not be parsed.";return W},serialize:function(O,A){var F=O.nid,W=E[(A.scheme||O.scheme||"urn")+":"+(A.nid||F)];W&&(O=W.serialize(O,A));var ae=O;return ae.path=(F||A.nid)+":"+O.nss,ae}},kt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,wt={scheme:"urn:uuid",parse:function(O,A){var F=O;return F.uuid=F.nss,F.nss=void 0,A.tolerant||F.uuid&&F.uuid.match(kt)||(F.error=F.error||"UUID is not valid."),F},serialize:function(O,A){var F=O;return F.nss=(O.uuid||"").toLowerCase(),F}};E[se.scheme]=se,E[Ne.scheme]=Ne,E[$e.scheme]=$e,E[J.scheme]=J,E[pe.scheme]=pe,E[qt.scheme]=qt,E[wt.scheme]=wt,r.SCHEMES=E,r.pctEncChar=C,r.pctDecChars=D,r.parse=ne,r.removeDotSegments=Q,r.serialize=le,r.resolveComponents=U,r.resolve=function(O,A,F){var W=function(ae,ye){var Se={scheme:"null"};if(ye)for(var Pe in ye)Se[Pe]=ye[Pe];return Se}(0,F);return le(U(ne(O,W),ne(A,W),W,!0),W)},r.normalize=function(O,A){return typeof O=="string"?O=le(ne(O,A),A):i(O)==="object"&&(O=ne(le(O,A),A)),O},r.equal=function(O,A,F){return typeof O=="string"?O=le(ne(O,F),F):i(O)==="object"&&(O=le(O,F)),typeof A=="string"?A=le(ne(A,F),F):i(A)==="object"&&(A=le(A,F)),O===A},r.escapeComponent=function(O,A){return O&&O.toString().replace(A&&A.iri?c.ESCAPE:l.ESCAPE,C)},r.unescapeComponent=be,Object.defineProperty(r,"__esModule",{value:!0})})(e)});Tu.code='require("ajv/dist/runtime/uri").default';var Jy=Object.defineProperty({default:Tu},"__esModule",{value:!0}),Xy=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return Pn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}});const r=g,n=(j,E)=>new RegExp(j,E);n.code="new RegExp";const s=["removeAdditional","useDefaults","coerceTypes"],i=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),o={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},a={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function l(j){var E,C,D,V,B,Y,K,X,re,ne,I,k,L,q,Z,Q,le,U,be,se,Ne,Te,$e,J,He;const ze=j.strict,we=(E=j.code)===null||E===void 0?void 0:E.optimize,N=we===!0||we===void 0?1:we||0,z=(D=(C=j.code)===null||C===void 0?void 0:C.regExp)!==null&&D!==void 0?D:n,G=(V=j.uriResolver)!==null&&V!==void 0?V:Jy.default;return{strictSchema:(Y=(B=j.strictSchema)!==null&&B!==void 0?B:ze)===null||Y===void 0||Y,strictNumbers:(X=(K=j.strictNumbers)!==null&&K!==void 0?K:ze)===null||X===void 0||X,strictTypes:(ne=(re=j.strictTypes)!==null&&re!==void 0?re:ze)!==null&&ne!==void 0?ne:"log",strictTuples:(k=(I=j.strictTuples)!==null&&I!==void 0?I:ze)!==null&&k!==void 0?k:"log",strictRequired:(q=(L=j.strictRequired)!==null&&L!==void 0?L:ze)!==null&&q!==void 0&&q,code:j.code?{...j.code,optimize:N,regExp:z}:{optimize:N,regExp:z},loopRequired:(Z=j.loopRequired)!==null&&Z!==void 0?Z:200,loopEnum:(Q=j.loopEnum)!==null&&Q!==void 0?Q:200,meta:(le=j.meta)===null||le===void 0||le,messages:(U=j.messages)===null||U===void 0||U,inlineRefs:(be=j.inlineRefs)===null||be===void 0||be,schemaId:(se=j.schemaId)!==null&&se!==void 0?se:"$id",addUsedSchema:(Ne=j.addUsedSchema)===null||Ne===void 0||Ne,validateSchema:(Te=j.validateSchema)===null||Te===void 0||Te,validateFormats:($e=j.validateFormats)===null||$e===void 0||$e,unicodeRegExp:(J=j.unicodeRegExp)===null||J===void 0||J,int32range:(He=j.int32range)===null||He===void 0||He,uriResolver:G}}class c{constructor(E={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,E=this.opts={...E,...l(E)};const{es5:C,lines:D}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:i,es5:C,lines:D}),this.logger=function(B){if(B===!1)return b;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}(E.logger);const V=E.validateFormats;E.validateFormats=!1,this.RULES=(0,Eu.getRules)(),f.call(this,o,E,"NOT SUPPORTED"),f.call(this,a,E,"DEPRECATED","warn"),this._metaOpts=y.call(this),E.formats&&m.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),E.keywords&&p.call(this,E.keywords),typeof E.meta=="object"&&this.addMetaSchema(E.meta),d.call(this),E.validateFormats=V}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:E,meta:C,schemaId:D}=this.opts;let V=_u;D==="id"&&(V={..._u},V.id=V.$id,delete V.$id),C&&E&&this.addMetaSchema(V,V[D],!1)}defaultMeta(){const{meta:E,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof E=="object"?E[C]||E:void 0}validate(E,C){let D;if(typeof E=="string"){if(D=this.getSchema(E),!D)throw new Error(`no schema with key or ref "${E}"`)}else D=this.compile(E);const V=D(C);return"$async"in D||(this.errors=D.errors),V}compile(E,C){const D=this._addSchema(E,C);return D.validate||this._compileSchemaEnv(D)}compileAsync(E,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return V.call(this,E,C);async function V(ne,I){await B.call(this,ne.$schema);const k=this._addSchema(ne,I);return k.validate||Y.call(this,k)}async function B(ne){ne&&!this.getSchema(ne)&&await V.call(this,{$ref:ne},!0)}async function Y(ne){try{return this._compileSchemaEnv(ne)}catch(I){if(!(I instanceof eo.default))throw I;return K.call(this,I),await X.call(this,I.missingSchema),Y.call(this,ne)}}function K({missingSchema:ne,missingRef:I}){if(this.refs[ne])throw new Error(`AnySchema ${ne} is loaded but ${I} cannot be resolved`)}async function X(ne){const I=await re.call(this,ne);this.refs[ne]||await B.call(this,I.$schema),this.refs[ne]||this.addSchema(I,ne,C)}async function re(ne){const I=this._loading[ne];if(I)return I;try{return await(this._loading[ne]=D(ne))}finally{delete this._loading[ne]}}}addSchema(E,C,D,V=this.opts.validateSchema){if(Array.isArray(E)){for(const Y of E)this.addSchema(Y,void 0,D,V);return this}let B;if(typeof E=="object"){const{schemaId:Y}=this.opts;if(B=E[Y],B!==void 0&&typeof B!="string")throw new Error(`schema ${Y} must be string`)}return C=(0,ft.normalizeId)(C||B),this._checkUnique(C),this.schemas[C]=this._addSchema(E,D,C,V,!0),this}addMetaSchema(E,C,D=this.opts.validateSchema){return this.addSchema(E,C,!0,D),this}validateSchema(E,C){if(typeof E=="boolean")return!0;let D;if(D=E.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const V=this.validate(D,E);if(!V&&C){const B="schema is invalid: "+this.errorsText();if(this.opts.validateSchema!=="log")throw new Error(B);this.logger.error(B)}return V}getSchema(E){let C;for(;typeof(C=h.call(this,E))=="string";)E=C;if(C===void 0){const{schemaId:D}=this.opts,V=new ir.SchemaEnv({schema:{},schemaId:D});if(C=ir.resolveSchema.call(this,V,E),!C)return;this.refs[E]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(E){if(E instanceof RegExp)return this._removeAllSchemas(this.schemas,E),this._removeAllSchemas(this.refs,E),this;switch(typeof E){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=h.call(this,E);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[E],delete this.refs[E],this}case"object":{this._cache.delete(E);let C=E[this.opts.schemaId];return C&&(C=(0,ft.normalizeId)(C),delete this.schemas[C],delete this.refs[C]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(E){for(const C of E)this.addKeyword(C);return this}addKeyword(E,C){let D;if(typeof E=="string")D=E,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=D);else{if(typeof E!="object"||C!==void 0)throw new Error("invalid addKeywords parameters");if(D=(C=E).keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(T.call(this,D,C),!C)return(0,ge.eachItem)(D,B=>_.call(this,B)),this;S.call(this,C);const V={...C,type:(0,Kt.getJSONTypes)(C.type),schemaType:(0,Kt.getJSONTypes)(C.schemaType)};return(0,ge.eachItem)(D,V.type.length===0?B=>_.call(this,B,V):B=>V.type.forEach(Y=>_.call(this,B,V,Y))),this}getKeyword(E){const C=this.RULES.all[E];return typeof C=="object"?C.definition:!!C}removeKeyword(E){const{RULES:C}=this;delete C.keywords[E],delete C.all[E];for(const D of C.rules){const V=D.rules.findIndex(B=>B.keyword===E);V>=0&&D.rules.splice(V,1)}return this}addFormat(E,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[E]=C,this}errorsText(E=this.errors,{separator:C=", ",dataVar:D="data"}={}){return E&&E.length!==0?E.map(V=>`${D}${V.instancePath} ${V.message}`).reduce((V,B)=>V+C+B):"No errors"}$dataMetaSchema(E,C){const D=this.RULES.all;E=JSON.parse(JSON.stringify(E));for(const V of C){const B=V.split("/").slice(1);let Y=E;for(const K of B)Y=Y[K];for(const K in D){const X=D[K];if(typeof X!="object")continue;const{$data:re}=X.definition,ne=Y[K];re&&ne&&(Y[K]=M(ne))}}return E}_removeAllSchemas(E,C){for(const D in E){const V=E[D];C&&!C.test(D)||(typeof V=="string"?delete E[D]:V&&!V.meta&&(this._cache.delete(V.schema),delete E[D]))}}_addSchema(E,C,D,V=this.opts.validateSchema,B=this.opts.addUsedSchema){let Y;const{schemaId:K}=this.opts;if(typeof E=="object")Y=E[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof E!="boolean")throw new Error("schema must be object or boolean")}let X=this._cache.get(E);if(X!==void 0)return X;D=(0,ft.normalizeId)(Y||D);const re=ft.getSchemaRefs.call(this,E,D);return X=new ir.SchemaEnv({schema:E,schemaId:K,meta:C,baseId:D,localRefs:re}),this._cache.set(X.schema,X),B&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=X),V&&this.validateSchema(E,!0),X}_checkUnique(E){if(this.schemas[E]||this.refs[E])throw new Error(`schema with key or id "${E}" already exists`)}_compileSchemaEnv(E){if(E.meta?this._compileMetaSchema(E):ir.compileSchema.call(this,E),!E.validate)throw new Error("ajv implementation error");return E.validate}_compileMetaSchema(E){const C=this.opts;this.opts=this._metaOpts;try{ir.compileSchema.call(this,E)}finally{this.opts=C}}}function f(j,E,C,D="error"){for(const V in j){const B=V;B in E&&this.logger[D](`${C}: option ${V}. ${j[B]}`)}}function h(j){return j=(0,ft.normalizeId)(j),this.schemas[j]||this.refs[j]}function d(){const j=this.opts.schemas;if(j)if(Array.isArray(j))this.addSchema(j);else for(const E in j)this.addSchema(j[E],E)}function m(){for(const j in this.opts.formats){const E=this.opts.formats[j];E&&this.addFormat(j,E)}}function p(j){if(Array.isArray(j))this.addVocabulary(j);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const E in j){const C=j[E];C.keyword||(C.keyword=E),this.addKeyword(C)}}}function y(){const j={...this.opts};for(const E of s)delete j[E];return j}e.default=c,c.ValidationError=$u.default,c.MissingRefError=eo.default;const b={log(){},warn(){},error(){}},$=/^[a-z_$][a-z0-9_$:-]*$/i;function T(j,E){const{RULES:C}=this;if((0,ge.eachItem)(j,D=>{if(C.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!$.test(D))throw new Error(`Keyword ${D} has invalid name`)}),E&&E.$data&&!("code"in E)&&!("validate"in E))throw new Error('$data keyword must have "code" or "validate" function')}function _(j,E,C){var D;const V=E==null?void 0:E.post;if(C&&V)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:B}=this;let Y=V?B.post:B.rules.find(({type:X})=>X===C);if(Y||(Y={type:C,rules:[]},B.rules.push(Y)),B.keywords[j]=!0,!E)return;const K={keyword:j,definition:{...E,type:(0,Kt.getJSONTypes)(E.type),schemaType:(0,Kt.getJSONTypes)(E.schemaType)}};E.before?x.call(this,Y,K,E.before):Y.rules.push(K),B.all[j]=K,(D=E.implements)===null||D===void 0||D.forEach(X=>this.addKeyword(X))}function x(j,E,C){const D=j.rules.findIndex(V=>V.keyword===C);D>=0?j.rules.splice(D,0,E):(j.rules.push(E),this.logger.warn(`rule ${C} is not defined`))}function S(j){let{metaSchema:E}=j;E!==void 0&&(j.$data&&this.opts.$data&&(E=M(E)),j.validateSchema=this.compile(E,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(j){return{anyOf:[j,R]}}}),Qy=Object.defineProperty({default:{keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},"__esModule",{value:!0}),ev=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const r={keyword:"$ref",schemaType:"string",code(i){const{gen:o,schema:a,it:l}=i,{baseId:c,schemaEnv:f,validateName:h,opts:d,self:m}=l,{root:p}=f;if((a==="#"||a==="#/")&&c===p.baseId)return function(){if(f===p)return s(i,h,f,f.$async);const b=o.scopeValue("root",{ref:p});return s(i,g._`${b}.validate`,p,p.$async)}();const y=ir.resolveRef.call(m,p,c,a);if(y===void 0)throw new eo.default(l.opts.uriResolver,c,a);return y instanceof ir.SchemaEnv?function(b){const $=n(i,b);s(i,$,b,b.$async)}(y):function(b){const $=o.scopeValue("schema",d.code.source===!0?{ref:b,code:(0,g.stringify)(b)}:{ref:b}),T=o.name("valid"),_=i.subschema({schema:b,dataTypes:[],schemaPath:g.nil,topSchemaRef:$,errSchemaPath:a},T);i.mergeEvaluated(_),i.ok(T)}(y)}};function n(i,o){const{gen:a}=i;return o.validate?a.scopeValue("validate",{ref:o.validate}):g._`${a.scopeValue("wrapper",{ref:o})}.validate`}function s(i,o,a,l){const{gen:c,it:f}=i,{allErrors:h,schemaEnv:d,opts:m}=f,p=m.passContext?ee.default.this:g.nil;function y($){const T=g._`${$}.errors`;c.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${T} : ${ee.default.vErrors}.concat(${T})`),c.assign(ee.default.errors,g._`${ee.default.vErrors}.length`)}function b($){var T;if(!f.opts.unevaluated)return;const _=(T=a==null?void 0:a.validate)===null||T===void 0?void 0:T.evaluated;if(f.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(f.props=ge.mergeEvaluated.props(c,_.props,f.props));else{const x=c.var("props",g._`${$}.evaluated.props`);f.props=ge.mergeEvaluated.props(c,x,f.props,g.Name)}if(f.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(f.items=ge.mergeEvaluated.items(c,_.items,f.items));else{const x=c.var("items",g._`${$}.evaluated.items`);f.items=ge.mergeEvaluated.items(c,x,f.items,g.Name)}}l?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const $=c.let("valid");c.try(()=>{c.code(g._`await ${(0,rt.callValidateCode)(i,o,p)}`),b(o),h||c.assign($,!0)},T=>{c.if(g._`!(${T} instanceof ${f.ValidationError})`,()=>c.throw(T)),y(T),h||c.assign($,!1)}),i.ok($)}():i.result((0,rt.callValidateCode)(i,o,p),()=>b(o),()=>y(o))}e.getValidate=n,e.callRef=s,e.default=r}),tv=Object.defineProperty({default:["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Qy.default,ev.default]},"__esModule",{value:!0});const wr=g.operators,_s={maximum:{okStr:"<=",ok:wr.LTE,fail:wr.GT},minimum:{okStr:">=",ok:wr.GTE,fail:wr.LT},exclusiveMaximum:{okStr:"<",ok:wr.LT,fail:wr.GTE},exclusiveMinimum:{okStr:">",ok:wr.GT,fail:wr.LTE}},rv={message:({keyword:t,schemaCode:e})=>g.str`must be ${_s[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>g._`{comparison: ${_s[t].okStr}, limit: ${e}}`},nv={keyword:Object.keys(_s),type:"number",schemaType:"number",$data:!0,error:rv,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`${r} ${_s[e].fail} ${n} || isNaN(${r})`)}};var sv=Object.defineProperty({default:nv},"__esModule",{value:!0}),iv=Object.defineProperty({default:{keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>g.str`must be multiple of ${t}`,params:({schemaCode:t})=>g._`{multipleOf: ${t}}`},code(t){const{gen:e,data:r,schemaCode:n,it:s}=t,i=s.opts.multipleOfPrecision,o=e.let("res"),a=i?g._`Math.abs(Math.round(${o}) - ${o}) > 1e-${i}`:g._`${o} !== parseInt(${o})`;t.fail$data(g._`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}}},"__esModule",{value:!0});function ku(t){const e=t.length;let r,n=0,s=0;for(;s<e;)n++,r=t.charCodeAt(s++),r>=55296&&r<=56319&&s<e&&(r=t.charCodeAt(s),(64512&r)==56320&&s++);return n}var ov=ku;ku.code='require("ajv/dist/runtime/ucs2length").default';var av=Object.defineProperty({default:ov},"__esModule",{value:!0}),lv=Object.defineProperty({default:{keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxLength"?"more":"fewer"} than ${e} characters`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n,it:s}=t,i=e==="maxLength"?g.operators.GT:g.operators.LT,o=s.opts.unicode===!1?g._`${r}.length`:g._`${(0,ge.useFunc)(t.gen,av.default)}(${r})`;t.fail$data(g._`${o} ${i} ${n}`)}}},"__esModule",{value:!0}),cv=Object.defineProperty({default:{keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match pattern "${t}"`,params:({schemaCode:t})=>g._`{pattern: ${t}}`},code(t){const{data:e,$data:r,schema:n,schemaCode:s,it:i}=t,o=r?g._`(new RegExp(${s}, ${i.opts.unicodeRegExp?"u":""}))`:(0,rt.usePattern)(t,n);t.fail$data(g._`!${o}.test(${e})`)}}},"__esModule",{value:!0}),uv=Object.defineProperty({default:{keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxProperties"?"more":"fewer"} than ${e} properties`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`Object.keys(${r}).length ${e==="maxProperties"?g.operators.GT:g.operators.LT} ${n}`)}}},"__esModule",{value:!0}),dv=Object.defineProperty({default:{keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:t}})=>g.str`must have required property '${t}'`,params:({params:{missingProperty:t}})=>g._`{missingProperty: ${t}}`},code(t){const{gen:e,schema:r,schemaCode:n,data:s,$data:i,it:o}=t,{opts:a}=o;if(!i&&r.length===0)return;const l=r.length>=a.loopRequired;if(o.allErrors?function(){if(l||i)t.block$data(g.nil,c);else for(const f of r)(0,rt.checkReportMissingProp)(t,f)}():function(){const f=e.let("missing");if(l||i){const h=e.let("valid",!0);t.block$data(h,()=>function(d,m){t.setParams({missingProperty:d}),e.forOf(d,n,()=>{e.assign(m,(0,rt.propertyInData)(e,s,d,a.ownProperties)),e.if((0,g.not)(m),()=>{t.error(),e.break()})},g.nil)}(f,h)),t.ok(h)}else e.if((0,rt.checkMissingProp)(t,r,f)),(0,rt.reportMissingProp)(t,f),e.else()}(),a.strictRequired){const f=t.parentSchema.properties,{definedProperties:h}=t.it;for(const d of r)(f==null?void 0:f[d])!==void 0||h.has(d)||(0,ge.checkStrictMode)(o,`required property "${d}" is not defined at "${o.schemaEnv.baseId+o.errSchemaPath}" (strictRequired)`,o.opts.strictRequired)}function c(){e.forOf("prop",n,f=>{t.setParams({missingProperty:f}),e.if((0,rt.noPropertyInData)(e,s,f,a.ownProperties),()=>t.error())})}}}},"__esModule",{value:!0}),fv=Object.defineProperty({default:{keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxItems"?"more":"fewer"} than ${e} items`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`${r}.length ${e==="maxItems"?g.operators.GT:g.operators.LT} ${n}`)}}},"__esModule",{value:!0});Qi.code='require("ajv/dist/runtime/equal").default';var to=Object.defineProperty({default:Qi},"__esModule",{value:!0}),hv=Object.defineProperty({default:[sv.default,iv.default,lv.default,cv.default,uv.default,dv.default,fv.default,Object.defineProperty({default:{keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:t,j:e}})=>g.str`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>g._`{i: ${t}, j: ${e}}`},code(t){const{gen:e,data:r,$data:n,schema:s,parentSchema:i,schemaCode:o,it:a}=t;if(!n&&!s)return;const l=e.let("valid"),c=i.items?(0,Kt.getSchemaTypes)(i.items):[];function f(d,m){const p=e.name("item"),y=(0,Kt.checkDataTypes)(c,p,a.opts.strictNumbers,Kt.DataType.Wrong),b=e.const("indices",g._`{}`);e.for(g._`;${d}--;`,()=>{e.let(p,g._`${r}[${d}]`),e.if(y,g._`continue`),c.length>1&&e.if(g._`typeof ${p} == "string"`,g._`${p} += "_"`),e.if(g._`typeof ${b}[${p}] == "number"`,()=>{e.assign(m,g._`${b}[${p}]`),t.error(),e.assign(l,!1).break()}).code(g._`${b}[${p}] = ${d}`)})}function h(d,m){const p=(0,ge.useFunc)(e,to.default),y=e.name("outer");e.label(y).for(g._`;${d}--;`,()=>e.for(g._`${m} = ${d}; ${m}--;`,()=>e.if(g._`${p}(${r}[${d}], ${r}[${m}])`,()=>{t.error(),e.assign(l,!1).break(y)})))}t.block$data(l,function(){const d=e.let("i",g._`${r}.length`),m=e.let("j");t.setParams({i:d,j:m}),e.assign(l,!0),e.if(g._`${d} > 1`,()=>(c.length>0&&!c.some(p=>p==="object"||p==="array")?f:h)(d,m))},g._`${o} === false`),t.ok(l)}}},"__esModule",{value:!0}).default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Object.defineProperty({default:{keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>g._`{allowedValue: ${t}}`},code(t){const{gen:e,data:r,$data:n,schemaCode:s,schema:i}=t;n||i&&typeof i=="object"?t.fail$data(g._`!${(0,ge.useFunc)(e,to.default)}(${r}, ${s})`):t.fail(g._`${i} !== ${r}`)}}},"__esModule",{value:!0}).default,Object.defineProperty({default:{keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>g._`{allowedValues: ${t}}`},code(t){const{gen:e,data:r,$data:n,schema:s,schemaCode:i,it:o}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let a;const l=()=>a??(a=(0,ge.useFunc)(e,to.default));let c;if(s.length>=o.opts.loopEnum||n)c=e.let("valid"),t.block$data(c,function(){e.assign(c,!1),e.forOf("v",i,f=>e.if(g._`${l()}(${r}, ${f})`,()=>e.assign(c,!0).break()))});else{if(!Array.isArray(s))throw new Error("ajv implementation error");const f=e.const("vSchema",i);c=(0,g.or)(...s.map((h,d)=>function(m,p){const y=s[p];return typeof y=="object"&&y!==null?g._`${l()}(${r}, ${m}[${p}])`:g._`${r} === ${y}`}(f,d)))}t.pass(c)}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),ju=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>g.str`must NOT have more than ${s} items`,params:({params:{len:s}})=>g._`{limit: ${s}}`},code(s){const{parentSchema:i,it:o}=s,{items:a}=i;Array.isArray(a)?n(s,a):(0,ge.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(s,i){const{gen:o,schema:a,data:l,keyword:c,it:f}=s;f.items=!0;const h=o.const("len",g._`${l}.length`);if(a===!1)s.setParams({len:i.length}),s.pass(g._`${h} <= ${i.length}`);else if(typeof a=="object"&&!(0,ge.alwaysValidSchema)(f,a)){const d=o.var("valid",g._`${h} <= ${i.length}`);o.if((0,g.not)(d),()=>function(m){o.forRange("i",i.length,h,p=>{s.subschema({keyword:c,dataProp:p,dataPropType:ge.Type.Num},m),f.allErrors||o.if((0,g.not)(m),()=>o.break())})}(d)),s.ok(d)}}e.validateAdditionalItems=n,e.default=r}),Ou=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:o}=s;if(Array.isArray(i))return n(s,"additionalItems",i);o.items=!0,(0,ge.alwaysValidSchema)(o,i)||s.ok((0,rt.validateArray)(s))}};function n(s,i,o=s.schema){const{gen:a,parentSchema:l,data:c,keyword:f,it:h}=s;(function(p){const{opts:y,errSchemaPath:b}=h,$=o.length;y.strictTuples&&($!==p.minItems||$!==p.maxItems&&p[i]!==!1)&&(0,ge.checkStrictMode)(h,`"${f}" is ${$}-tuple, but minItems or maxItems/${i} are not specified or different at path "${b}"`,y.strictTuples)})(l),h.opts.unevaluated&&o.length&&h.items!==!0&&(h.items=ge.mergeEvaluated.items(a,o.length,h.items));const d=a.name("valid"),m=a.const("len",g._`${c}.length`);o.forEach((p,y)=>{(0,ge.alwaysValidSchema)(h,p)||(a.if(g._`${m} > ${y}`,()=>s.subschema({keyword:f,schemaProp:y,dataProp:y},d)),s.ok(d))})}e.validateTuple=n,e.default=r}),mv=Object.defineProperty({default:{keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Ou.validateTuple)(t,"items")}},"__esModule",{value:!0}),pv=Object.defineProperty({default:{keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>g.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>g._`{limit: ${t}}`},code(t){const{schema:e,parentSchema:r,it:n}=t,{prefixItems:s}=r;n.items=!0,(0,ge.alwaysValidSchema)(n,e)||(s?(0,ju.validateAdditionalItems)(t,s):t.ok((0,rt.validateArray)(t)))}}},"__esModule",{value:!0}),gv=Object.defineProperty({default:{keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:e}})=>e===void 0?g.str`must contain at least ${t} valid item(s)`:g.str`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?g._`{minContains: ${t}}`:g._`{minContains: ${t}, maxContains: ${e}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;let o,a;const{minContains:l,maxContains:c}=n;i.opts.next?(o=l===void 0?1:l,a=c):o=1;const f=e.const("len",g._`${s}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0)return void(0,ge.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(a!==void 0&&o>a)return(0,ge.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,ge.alwaysValidSchema)(i,r)){let p=g._`${f} >= ${o}`;return a!==void 0&&(p=g._`${p} && ${f} <= ${a}`),void t.pass(p)}i.items=!0;const h=e.name("valid");function d(){const p=e.name("_valid"),y=e.let("count",0);m(p,()=>e.if(p,()=>function(b){e.code(g._`${b}++`),a===void 0?e.if(g._`${b} >= ${o}`,()=>e.assign(h,!0).break()):(e.if(g._`${b} > ${a}`,()=>e.assign(h,!1).break()),o===1?e.assign(h,!0):e.if(g._`${b} >= ${o}`,()=>e.assign(h,!0)))}(y)))}function m(p,y){e.forRange("i",0,f,b=>{t.subschema({keyword:"contains",dataProp:b,dataPropType:ge.Type.Num,compositeRule:!0},p),y()})}a===void 0&&o===1?m(h,()=>e.if(h,()=>e.break())):o===0?(e.let(h,!0),a!==void 0&&e.if(g._`${s}.length > 0`,d)):(e.let(h,!1),d()),t.result(h,()=>t.reset())}}},"__esModule",{value:!0}),yv=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0,e.error={message:({params:{property:i,depsCount:o,deps:a}})=>g.str`must have ${o===1?"property":"properties"} ${a} when property ${i} is present`,params:({params:{property:i,depsCount:o,deps:a,missingProperty:l}})=>g._`{property: ${i},
205
205
  missingProperty: ${l},
206
206
  depsCount: ${o},
207
- deps: ${a}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[o,a]=function({schema:l}){const c={},f={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:f)[h]=l[h]);return[c,f]}(i);n(i,o),s(i,a)}};function n(i,o=i.schema){const{gen:a,data:l,it:c}=i;if(Object.keys(o).length===0)return;const f=a.let("missing");for(const h in o){const d=o[h];if(d.length===0)continue;const m=(0,rt.propertyInData)(a,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:d.length,deps:d.join(", ")}),c.allErrors?a.if(m,()=>{for(const p of d)(0,rt.checkReportMissingProp)(i,p)}):(a.if(g._`${m} && (${(0,rt.checkMissingProp)(i,d,f)})`),(0,rt.reportMissingProp)(i,f),a.else())}}function s(i,o=i.schema){const{gen:a,data:l,keyword:c,it:f}=i,h=a.name("valid");for(const d in o)(0,ge.alwaysValidSchema)(f,o[d])||(a.if((0,rt.propertyInData)(a,l,d,f.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:d},h);i.mergeValidEvaluated(m,h)},()=>a.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),vv=Object.defineProperty({default:{keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>g._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:s}=t;if((0,ge.alwaysValidSchema)(s,r))return;const i=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},i),e.if((0,g.not)(i),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(i)}}},"__esModule",{value:!0}),ro=Object.defineProperty({default:{keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>g._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,errsCount:i,it:o}=t;if(!i)throw new Error("ajv implementation error");const{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,ge.alwaysValidSchema)(o,r))return;const c=(0,rt.allSchemaProperties)(n.properties),f=(0,rt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function d(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1)h(p);else{if(r===!1)return t.setParams({additionalProperty:p}),t.error(),void(a||e.break());if(typeof r=="object"&&!(0,ge.alwaysValidSchema)(o,r)){const y=e.name("valid");l.removeAdditional==="failing"?(m(p,y,!1),e.if((0,g.not)(y),()=>{t.reset(),h(p)})):(m(p,y),a||e.if((0,g.not)(y),()=>e.break()))}}}function m(p,y,b){const $={keyword:"additionalProperties",dataProp:p,dataPropType:ge.Type.Str};b===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema($,y)}e.forIn("key",s,p=>{c.length||f.length?e.if(function(y){let b;if(c.length>8){const $=(0,ge.schemaRefOrVal)(o,n.properties,"properties");b=(0,rt.isOwnProperty)(e,$,y)}else b=c.length?(0,g.or)(...c.map($=>g._`${y} === ${$}`)):g.nil;return f.length&&(b=(0,g.or)(b,...f.map($=>g._`${(0,rt.usePattern)(t,$)}.test(${y})`))),(0,g.not)(b)}(p),()=>d(p)):d(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),bv=Object.defineProperty({default:{keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ro.default.code(new Pn.KeywordCxt(i,ro.default,"additionalProperties"));const o=(0,rt.allSchemaProperties)(r);for(const h of o)i.definedProperties.add(h);i.opts.unevaluated&&o.length&&i.props!==!0&&(i.props=ge.mergeEvaluated.props(e,(0,ge.toHash)(o),i.props));const a=o.filter(h=>!(0,ge.alwaysValidSchema)(i,r[h]));if(a.length===0)return;const l=e.name("valid");for(const h of a)c(h)?f(h):(e.if((0,rt.propertyInData)(e,s,h,i.opts.ownProperties)),f(h),i.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(h),t.ok(l);function c(h){return i.opts.useDefaults&&!i.compositeRule&&r[h].default!==void 0}function f(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const Pu=ge;var wv=Object.defineProperty({default:{keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:s,it:i}=t,{opts:o}=i,a=(0,rt.allSchemaProperties)(r),l=a.filter(p=>(0,ge.alwaysValidSchema)(i,r[p]));if(a.length===0||l.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&s.properties,f=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,Pu.evaluatedPropsToName)(e,i.props));const{props:h}=i;function d(p){for(const y in c)new RegExp(p).test(y)&&(0,ge.checkStrictMode)(i,`property ${y} matches pattern ${p} (use allowMatchingProperties)`)}function m(p){e.forIn("key",n,y=>{e.if(g._`${(0,rt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:Pu.Type.Str},f),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(f),()=>e.break())})})}(function(){for(const p of a)c&&d(p),i.allErrors?m(p):(e.var(f,!0),m(p),e.if(f))})()}}},"__esModule",{value:!0}),xv=Object.defineProperty({default:{keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,ge.alwaysValidSchema)(n,r))return void t.fail();const s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}}},"__esModule",{value:!0}),Sv=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),Ev=Object.defineProperty({default:{keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>g._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const i=r,o=e.let("valid",!1),a=e.let("passing",null),l=e.name("_valid");t.setParams({passing:a}),e.block(function(){i.forEach((c,f)=>{let h;(0,ge.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&e.if(g._`${l} && ${o}`).assign(o,!1).assign(a,g._`[${a}, ${f}]`).else(),e.if(l,()=>{e.assign(o,!0),e.assign(a,f),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(o,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),$v=Object.defineProperty({default:{keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=e.name("valid");r.forEach((i,o)=>{if((0,ge.alwaysValidSchema)(n,i))return;const a=t.subschema({keyword:"allOf",schemaProp:o},s);t.ok(s),t.mergeEvaluated(a)})}}},"__esModule",{value:!0});function Cu(t,e){const r=t.schema[e];return r!==void 0&&!(0,ge.alwaysValidSchema)(t,r)}var _v=Object.defineProperty({default:{keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>g.str`must match "${t.ifClause}" schema`,params:({params:t})=>g._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,ge.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=Cu(n,"then"),i=Cu(n,"else");if(!s&&!i)return;const o=e.let("valid",!0),a=e.name("_valid");if(function(){const c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(c)}(),t.reset(),s&&i){const c=e.let("ifClause");t.setParams({ifClause:c}),e.if(a,l("then",c),l("else",c))}else s?e.if(a,l("then")):e.if((0,g.not)(a),l("else"));function l(c,f){return()=>{const h=t.subschema({keyword:c},a);e.assign(o,a),t.mergeValidEvaluated(h,o),f?e.assign(f,g._`${c}`):t.setParams({ifClause:c})}}t.pass(o,()=>t.error(!0))}}},"__esModule",{value:!0}),Tv=Object.defineProperty({default:{keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,ge.checkStrictMode)(r,`"${t}" without "if" is ignored`)}}},"__esModule",{value:!0}),kv=Object.defineProperty({default:function(t=!1){const e=[xv.default,Sv.default,Ev.default,$v.default,_v.default,Tv.default,vv.default,ro.default,yv.default,bv.default,wv.default];return t?e.push(mv.default,pv.default):e.push(ju.default,Ou.default),e.push(gv.default),e}},"__esModule",{value:!0}),jv=Object.defineProperty({default:[Object.defineProperty({default:{keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match format "${t}"`,params:({schemaCode:t})=>g._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:s,schema:i,schemaCode:o,it:a}=t,{opts:l,errSchemaPath:c,schemaEnv:f,self:h}=a;l.validateFormats&&(s?function(){const d=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${d}[${o}]`),p=r.let("fType"),y=r.let("format");r.if(g._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(p,g._`${m}.type || "string"`).assign(y,g._`${m}.validate`),()=>r.assign(p,g._`"string"`).assign(y,m)),t.fail$data((0,g.or)(l.strictSchema===!1?g.nil:g._`${o} && !${y}`,function(){const b=f.$async?g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:g._`${y}(${n})`,$=g._`(typeof ${y} == "function" ? ${b} : ${y}.test(${n}))`;return g._`${y} && ${y} !== true && ${p} === ${e} && !${$}`}()))}():function(){const d=h.formats[i];if(!d)return void function(){if(l.strictSchema!==!1)throw new Error(b());function b(){return`unknown format "${i}" ignored in schema at path "${c}"`}h.logger.warn(b())}();if(d===!0)return;const[m,p,y]=function(b){const $=b instanceof RegExp?(0,g.regexpCode)(b):l.code.formats?g._`${l.code.formats}${(0,g.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:b,code:$});return typeof b!="object"||b instanceof RegExp?["string",b,T]:[b.type||"string",b.validate,g._`${T}.validate`]}(d);m===e&&t.pass(function(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!f.$async)throw new Error("async format in sync schema");return g._`await ${y}(${n})`}return typeof p=="function"?g._`${y}(${n})`:g._`${y}.test(${n})`}())}())}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),Nu=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});const Ov=[tv.default,hv.default,(0,kv.default)(),jv.default,Nu.metadataVocabulary,Nu.contentVocabulary];var Pv=Object.defineProperty({default:Ov},"__esModule",{value:!0}),no=Xe(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(r=e.DiscrError||(e.DiscrError={})).Tag="tag",r.Mapping="mapping"}),Cv=Object.defineProperty({default:{keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===no.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>g._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:s,it:i}=t,{oneOf:o}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const l=e.let("valid",!1),c=e.const("tag",g._`${r}${(0,g.getProperty)(a)}`);function f(h){const d=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(m,g.Name),d}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var d;const m={},p=b(s);let y=!0;for(let _=0;_<o.length;_++){let x=o[_];x!=null&&x.$ref&&!(0,ge.schemaHasRulesButRef)(x,i.self.RULES)&&(x=ir.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,x==null?void 0:x.$ref),x instanceof ir.SchemaEnv&&(x=x.schema));const S=(d=x==null?void 0:x.properties)===null||d===void 0?void 0:d[a];if(typeof S!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(p||b(x)),$(S,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function $(_,x){if(_.const)T(_.const,x);else{if(!_.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const S of _.enum)T(S,x)}}function T(_,x){if(typeof _!="string"||_ in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[_]=x}}();e.if(!1);for(const d in h)e.elseIf(g._`${c} === ${d}`),e.assign(l,f(h[d]));e.else(),t.error(!1,{discrError:no.DiscrError.Mapping,tag:c,tagName:a}),e.endIf()}(),()=>t.error(!1,{discrError:no.DiscrError.Tag,tag:c,tagName:a})),t.ok(l)}}},"__esModule",{value:!0}),Du={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},fe=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class s extends Xy.default{_addVocabularies(){super._addVocabularies(),Pv.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Cv.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const o=this.opts.$data?this.$dataMetaSchema(Du,r):Du;this.addMetaSchema(o,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return Pn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}})}),Nv=xu(fe),Dv=xu(Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r="errorMessage",n=new fe.Name("emUsed"),s={required:"missingProperty",dependencies:"property",dependentRequired:"property"},i=/\$\{[^}]+\}/,o=/\$\{([^}]+)\}/g,a=/^""\s*\+\s*|\s*\+\s*""$/g;function l(f){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:d,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const $=p,T=g.strConcat(ee.default.instancePath,b.errorPath);function _(M,j){return g.and(fe._`${M}.keyword !== ${r}`,fe._`!${M}.${n}`,fe._`${M}.instancePath === ${T}`,fe._`${M}.keyword in ${j}`,fe._`${M}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${M}.schemaPath.slice(${b.errSchemaPath.length}))`)}function x(M,j){const E=[];for(const C in M){const D=j[C];i.test(D)&&E.push([C,R(D)])}return d.object(...E)}function S(M){return i.test(M)?new xe._Code(xe.safeStringify(M).replace(o,(j,E)=>`" + JSON.stringify(${Pn.getData(E,b)}) + "`).replace(a,"")):fe.stringify(M)}function R(M){return fe._`function(){return ${S(M)}}`}d.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof $=="object"){const[j,E]=function(C){let D,V;for(const B in C){if(B==="properties"||B==="items")continue;const Y=C[B];if(typeof Y=="object"){D||(D={});const K=D[B]={};for(const X in Y)K[X]=[]}else V||(V={}),V[B]=[]}return[D,V]}($);E&&function(C){const D=d.const("emErrors",fe.stringify(C)),V=d.const("templates",x(C,p));d.forOf("err",ee.default.vErrors,X=>d.if(_(X,D),()=>d.code(fe._`${D}[${X}.keyword].push(${X})`).assign(fe._`${X}.${n}`,!0)));const{singleError:B}=f;if(B){const X=d.let("message",fe._`""`),re=d.let("paramsErrors",fe._`[]`);Y(ne=>{d.if(X,()=>d.code(fe._`${X} += ${typeof B=="string"?B:";"}`)),d.code(fe._`${X} += ${K(ne)}`),d.assign(re,fe._`${re}.concat(${D}[${ne}])`)}),Pt.reportError(h,{message:X,params:fe._`{errors: ${re}}`})}else Y(X=>Pt.reportError(h,{message:K(X),params:fe._`{errors: ${D}[${X}]}`}));function Y(X){d.forIn("key",D,re=>d.if(fe._`${D}[${re}].length`,()=>X(re)))}function K(X){return fe._`${X} in ${V} ? ${V}[${X}]() : ${y}[${X}]`}}(E),j&&function(C){const D=d.const("emErrors",fe.stringify(C)),V=[];for(const re in C)V.push([re,x(C[re],p[re])]);const B=d.const("templates",d.object(...V)),Y=d.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=d.let("emPropParams"),X=d.let("emParamsErrors");d.forOf("err",ee.default.vErrors,re=>d.if(_(re,D),()=>{d.assign(K,fe._`${Y}[${re}.keyword]`),d.assign(X,fe._`${D}[${re}.keyword][${re}.params[${K}]]`),d.if(X,()=>d.code(fe._`${X}.push(${re})`).assign(fe._`${re}.${n}`,!0))})),d.forIn("key",D,re=>d.forIn("keyProp",fe._`${D}[${re}]`,ne=>{d.assign(X,fe._`${D}[${re}][${ne}]`),d.if(fe._`${X}.length`,()=>{const I=d.const("tmpl",fe._`${B}[${re}] && ${B}[${re}][${ne}]`);Pt.reportError(h,{message:fe._`${I} ? ${I}() : ${y}[${re}][${ne}]`,params:fe._`{errors: ${X}}`})})}))}(j),function(C){const{props:D,items:V}=C;if(!D&&!V)return;const B=fe._`typeof ${m} == "object"`,Y=fe._`Array.isArray(${m})`,K=d.let("emErrors");let X,re;const ne=d.let("templates");function I(k,L){d.assign(K,fe.stringify(k)),d.assign(ne,x(k,L))}D&&V?(X=d.let("emChildKwd"),d.if(B),d.if(Y,()=>{I(V,p.items),d.assign(X,fe.str`items`)},()=>{I(D,p.properties),d.assign(X,fe.str`properties`)}),re=fe._`[${X}]`):V?(d.if(Y),I(V,p.items),re=fe._`.items`):D&&(d.if(g.and(B,g.not(Y))),I(D,p.properties),re=fe._`.properties`),d.forOf("err",ee.default.vErrors,k=>function(L,q,Z){d.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${T}) === 0`),()=>{const Q=d.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=d.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${T}.length))`),U=d.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);d.if(fe._`${U} !== undefined && ${U} in ${q}`,()=>Z(U))})}(k,K,L=>d.code(fe._`${K}[${L}].push(${k})`).assign(fe._`${k}.${n}`,!0))),d.forIn("key",K,k=>d.if(fe._`${K}[${k}].length`,()=>{Pt.reportError(h,{message:fe._`${k} in ${ne} ? ${ne}[${k}]() : ${y}${re}[${k}]`,params:fe._`{errors: ${K}[${k}]}`}),d.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${T} + "/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),d.endIf()}(function({properties:C,items:D}){const V={};if(C){V.props={};for(const B in C)V.props[B]=[]}if(D){V.items={};for(let B=0;B<D.length;B++)V.items[B]=[]}return V}($))}const M=typeof $=="string"?$:$._;M&&function(j){const E=d.const("emErrs",fe._`[]`);d.forOf("err",ee.default.vErrors,C=>d.if(function(D){return g.and(fe._`${D}.keyword !== ${r}`,fe._`!${D}.${n}`,g.or(fe._`${D}.instancePath === ${T}`,g.and(fe._`${D}.instancePath.indexOf(${T}) === 0`,fe._`${D}.instancePath[${T}.length] === "/"`)),fe._`${D}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${D}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(C),()=>d.code(fe._`${E}.push(${C})`).assign(fe._`${C}.${n}`,!0))),d.if(fe._`${E}.length`,()=>Pt.reportError(h,{message:S(j),params:fe._`{errors: ${E}}`}))}(M),f.keepErrors||function(){const j=d.const("emErrs",fe._`[]`);d.forOf("err",ee.default.vErrors,E=>d.if(fe._`!${E}.${n}`,()=>d.code(fe._`${j}.push(${E})`))),d.assign(ee.default.vErrors,j).assign(ee.default.errors,fe._`${j}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const c=(f,h={})=>{if(!f.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(f.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return f.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),Iv=function(t,e){return t.forEach(function(r){r.keyword==="required"&&(r.instancePath+="/"+r.params.missingProperty)}),t.reduce(function(r,n){var s=n.instancePath.substring(1).replace(/\//g,".");if(r[s]||(r[s]={message:n.message,type:n.keyword}),e){var i=r[s].types,o=i&&i[n.keyword];r[s]=ru(s,e,r,n.keyword,o?[].concat(o,n.message||""):n.message)}return r},{})},Av=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var o,a=new Nv(wu({allErrors:!0,validateSchema:!0},e));Dv(a);var l=a.compile(Object.assign({$async:((o=r)==null?void 0:o.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&bu({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:qy(Iv(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function Fv(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=Fy({defaultValues:r??{},resolver:e?Av(e,{strict:!1,addFormats:!0}):void 0}),[o]=it(),{handleSubmit:a,setError:l}=i,[c,f]=w.useState(null),h=Ct("md"),[d]=w.useContext(zr),m=t.isVertical?!1:d.formLayout==="horizontal",y=(t.singleColumn?!1:d.formColumns==="multiple")?1600:m?960:800;let b=u.jsx($y,{...i,children:u.jsxs(v.Form,{onSubmit:a(async $=>{f(null);try{await t.onSubmit($,T=>f(new Error(T)),l)}catch(T){if(T instanceof Error?f(T):f(new Error("Unknown error")),typeof T=="object"&&T!==null&&"json"in T&&typeof T.json=="object"&&T.json!==null)for(const _ in T.json){let x=T.json[_];typeof x=="string"?l(_,{message:x}):Array.isArray(x)&&(x=x[0],typeof x=="string"&&l(_,{message:x}))}}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?u.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:u.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):u.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:u.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:u.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&u.jsx(v.Alert,{variant:"danger",title:c.message??"",isInline:!0,style:{paddingLeft:h&&t.onCancel?190:void 0},isExpandable:"description"in c?typeof c.description=="string":!1,children:"description"in c&&typeof c.description=="string"&&c.description}),t.onCancel?u.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:u.jsxs(v.ActionGroup,{style:{marginTop:0},children:[u.jsx(io,{children:t.submitText}),t.onCancel&&u.jsx(Iu,{onCancel:t.onCancel,children:t.cancelText??o.cancelText})]})}):u.jsx(io,{style:{marginTop:48},children:t.submitText})]})});return n||(b=u.jsx(ri,{children:b})),b}function so(t){const[e]=w.useContext(zr),r=t.isVertical?!1:e.formLayout==="horizontal",n=t.singleColumn?!1:e.formColumns==="multiple",s=12,i=n?r?12:6:12,o=n?6:12,a=n?6:12,l=n?4:12;return u.jsx(u.Fragment,{children:u.jsx(v.Grid,{hasGutter:!0,span:12,sm:s,md:i,lg:o,xl:a,xl2:l,children:t.children})})}function io(t){const{isSubmitting:e,errors:r}=Xc(),n=r&&Object.keys(r).length>0;return u.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:u.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function Iu(t){return u.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const h0="";function Mv(t){return u.jsx(Vo,{children:u.jsx(ba,{children:u.jsx(va,{children:u.jsx(pa,{children:u.jsx(Tp,{callback:t.navigate,children:t.children})})})})})}function Vv(t){const e=Xl();return t.breadcrumbs?u.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?u.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?u.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):u.jsx(w.Fragment,{},n))}):u.jsx(w.Fragment,{})}function Lv(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:o,footer:a}=t,l=Ct("lg"),c=Ct("xl"),f=Ct("md"),[h]=it();return u.jsxs(u.Fragment,{children:[e&&u.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:u.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:u.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),u.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:u.jsxs(v.Stack,{hasGutter:!0,children:[u.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[u.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&u.jsx(Vv,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?u.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:u.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?u.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((d,m)=>u.jsx(v.StackItem,{children:d},m)),t.titleDocLink&&u.jsx(v.StackItem,{children:u.jsx(v.Button,{icon:u.jsx(Oe.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:u.jsxs(v.Title,{headingLevel:"h1",children:[n,u.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:u.jsx(Oe.OutlinedQuestionCircleIcon,{})})]})}):u.jsx(v.Title,{headingLevel:"h1",children:n}):u.jsx(v.Title,{headingLevel:"h1",children:u.jsx(v.Skeleton,{width:"160px"})}),f&&s&&u.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?u.jsx(v.Truncate,{content:s}):u.jsx(v.Stack,{children:s.map(d=>u.jsx(v.StackItem,{children:d},d))})})]}),n&&(o||i)&&u.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&u.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),o&&u.jsx(v.FlexItem,{children:o})]})]}),a]})})]})}function Rv(t){const[e]=it();return u.jsx(ga,{message:e.errorText,children:u.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function Au(t){const{loading:e}=t,[r,n]=w.useState((t==null?void 0:t.initialTabIndex)??0),s=w.useCallback((l,c)=>n(c),[n]),i=w.Children.toArray(t.children),o=i.map((l,c)=>{if(w.isValidElement(l)&&l.type===oo){const f=l.props.label;return u.jsx(v.Tab,{title:f||u.jsx(v.Skeleton,{width:"60px"}),eventKey:c},f??c)}return l}),a=i[r];return e?u.jsx(Au,{children:u.jsx(oo,{children:u.jsx(v.PageSection,{variant:"light",children:u.jsx(v.Skeleton,{})})})}):u.jsxs(u.Fragment,{children:[u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:u.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.FlexItem,{children:t.preComponents}),u.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),u.jsx(v.FlexItem,{grow:{default:"grow"},children:u.jsx(v.Tabs,{activeKey:r,onSelect:s,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,children:o})}),t.postComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.Divider,{orientation:{default:"vertical"}}),u.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),a]})}function oo(t){return u.jsx(u.Fragment,{children:t.children})}function Bv(t){const{activeKey:e,setActiveKey:r}=t,n=w.useCallback((s,i)=>r(i),[r]);return u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:u.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}function Fu(t){const{isLoading:e}=t,r=ko(),n=$r(),s=Cd(),i=Cn(t.baseUrl,s),o=w.useMemo(()=>w.Children.toArray(t.children).filter(c=>w.isValidElement(c)&&c.type===ao),[t.children]),a=o.findIndex(c=>{const{url:f}=c.props;return n.pathname===Cn(f,s)});w.useEffect(()=>{if(a===-1){const c=o[0].props.url;r(Cn(c,s))}});const l=w.useCallback((c,f)=>{const h=o[Number(f)];if(h){c.preventDefault();const d=h.props.url;r(Cn(d,s))}},[r,o,s]);if(e){const c=a===-1?o[0]:o[a];return u.jsx(Fu,{baseUrl:i,children:u.jsx(ao,{...c.props,children:u.jsx(v.PageSection,{variant:"light",children:u.jsx(v.Skeleton,{})})})})}return u.jsxs(u.Fragment,{children:[u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:u.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.FlexItem,{children:t.preComponents}),u.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),u.jsx(v.FlexItem,{grow:{default:"grow"},children:u.jsx(v.Tabs,{activeKey:a,onSelect:l,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,component:v.TabsComponent.nav,children:o.map((c,f)=>{const{label:h,url:d}=c.props;return u.jsx(v.Tab,{title:h||u.jsx(v.Skeleton,{width:"60px"}),eventKey:f,href:Cn(d,s)},h??f)})})}),t.postComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.Divider,{orientation:{default:"vertical"}}),u.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),u.jsx(zd,{children:o.map((c,f)=>{const{label:h,url:d="",children:m}=c.props;return u.jsx(Co,{path:d.replace(t.baseUrl.replace("*",""),""),element:m},h??f)})})]})}function ao(t){return u.jsx(u.Fragment,{children:t.children})}function Cn(t,e){let r=t;return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n]??`:${n}`)}),r}const zv=nh`
207
+ deps: ${a}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[o,a]=function({schema:l}){const c={},f={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:f)[h]=l[h]);return[c,f]}(i);n(i,o),s(i,a)}};function n(i,o=i.schema){const{gen:a,data:l,it:c}=i;if(Object.keys(o).length===0)return;const f=a.let("missing");for(const h in o){const d=o[h];if(d.length===0)continue;const m=(0,rt.propertyInData)(a,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:d.length,deps:d.join(", ")}),c.allErrors?a.if(m,()=>{for(const p of d)(0,rt.checkReportMissingProp)(i,p)}):(a.if(g._`${m} && (${(0,rt.checkMissingProp)(i,d,f)})`),(0,rt.reportMissingProp)(i,f),a.else())}}function s(i,o=i.schema){const{gen:a,data:l,keyword:c,it:f}=i,h=a.name("valid");for(const d in o)(0,ge.alwaysValidSchema)(f,o[d])||(a.if((0,rt.propertyInData)(a,l,d,f.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:d},h);i.mergeValidEvaluated(m,h)},()=>a.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),vv=Object.defineProperty({default:{keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>g._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:s}=t;if((0,ge.alwaysValidSchema)(s,r))return;const i=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},i),e.if((0,g.not)(i),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(i)}}},"__esModule",{value:!0}),ro=Object.defineProperty({default:{keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>g._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,errsCount:i,it:o}=t;if(!i)throw new Error("ajv implementation error");const{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,ge.alwaysValidSchema)(o,r))return;const c=(0,rt.allSchemaProperties)(n.properties),f=(0,rt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function d(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1)h(p);else{if(r===!1)return t.setParams({additionalProperty:p}),t.error(),void(a||e.break());if(typeof r=="object"&&!(0,ge.alwaysValidSchema)(o,r)){const y=e.name("valid");l.removeAdditional==="failing"?(m(p,y,!1),e.if((0,g.not)(y),()=>{t.reset(),h(p)})):(m(p,y),a||e.if((0,g.not)(y),()=>e.break()))}}}function m(p,y,b){const $={keyword:"additionalProperties",dataProp:p,dataPropType:ge.Type.Str};b===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema($,y)}e.forIn("key",s,p=>{c.length||f.length?e.if(function(y){let b;if(c.length>8){const $=(0,ge.schemaRefOrVal)(o,n.properties,"properties");b=(0,rt.isOwnProperty)(e,$,y)}else b=c.length?(0,g.or)(...c.map($=>g._`${y} === ${$}`)):g.nil;return f.length&&(b=(0,g.or)(b,...f.map($=>g._`${(0,rt.usePattern)(t,$)}.test(${y})`))),(0,g.not)(b)}(p),()=>d(p)):d(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),bv=Object.defineProperty({default:{keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ro.default.code(new Pn.KeywordCxt(i,ro.default,"additionalProperties"));const o=(0,rt.allSchemaProperties)(r);for(const h of o)i.definedProperties.add(h);i.opts.unevaluated&&o.length&&i.props!==!0&&(i.props=ge.mergeEvaluated.props(e,(0,ge.toHash)(o),i.props));const a=o.filter(h=>!(0,ge.alwaysValidSchema)(i,r[h]));if(a.length===0)return;const l=e.name("valid");for(const h of a)c(h)?f(h):(e.if((0,rt.propertyInData)(e,s,h,i.opts.ownProperties)),f(h),i.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(h),t.ok(l);function c(h){return i.opts.useDefaults&&!i.compositeRule&&r[h].default!==void 0}function f(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const Pu=ge;var wv=Object.defineProperty({default:{keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:s,it:i}=t,{opts:o}=i,a=(0,rt.allSchemaProperties)(r),l=a.filter(p=>(0,ge.alwaysValidSchema)(i,r[p]));if(a.length===0||l.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&s.properties,f=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,Pu.evaluatedPropsToName)(e,i.props));const{props:h}=i;function d(p){for(const y in c)new RegExp(p).test(y)&&(0,ge.checkStrictMode)(i,`property ${y} matches pattern ${p} (use allowMatchingProperties)`)}function m(p){e.forIn("key",n,y=>{e.if(g._`${(0,rt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:Pu.Type.Str},f),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(f),()=>e.break())})})}(function(){for(const p of a)c&&d(p),i.allErrors?m(p):(e.var(f,!0),m(p),e.if(f))})()}}},"__esModule",{value:!0}),xv=Object.defineProperty({default:{keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,ge.alwaysValidSchema)(n,r))return void t.fail();const s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}}},"__esModule",{value:!0}),Sv=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),Ev=Object.defineProperty({default:{keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>g._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const i=r,o=e.let("valid",!1),a=e.let("passing",null),l=e.name("_valid");t.setParams({passing:a}),e.block(function(){i.forEach((c,f)=>{let h;(0,ge.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&e.if(g._`${l} && ${o}`).assign(o,!1).assign(a,g._`[${a}, ${f}]`).else(),e.if(l,()=>{e.assign(o,!0),e.assign(a,f),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(o,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),$v=Object.defineProperty({default:{keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=e.name("valid");r.forEach((i,o)=>{if((0,ge.alwaysValidSchema)(n,i))return;const a=t.subschema({keyword:"allOf",schemaProp:o},s);t.ok(s),t.mergeEvaluated(a)})}}},"__esModule",{value:!0});function Cu(t,e){const r=t.schema[e];return r!==void 0&&!(0,ge.alwaysValidSchema)(t,r)}var _v=Object.defineProperty({default:{keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>g.str`must match "${t.ifClause}" schema`,params:({params:t})=>g._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,ge.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=Cu(n,"then"),i=Cu(n,"else");if(!s&&!i)return;const o=e.let("valid",!0),a=e.name("_valid");if(function(){const c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(c)}(),t.reset(),s&&i){const c=e.let("ifClause");t.setParams({ifClause:c}),e.if(a,l("then",c),l("else",c))}else s?e.if(a,l("then")):e.if((0,g.not)(a),l("else"));function l(c,f){return()=>{const h=t.subschema({keyword:c},a);e.assign(o,a),t.mergeValidEvaluated(h,o),f?e.assign(f,g._`${c}`):t.setParams({ifClause:c})}}t.pass(o,()=>t.error(!0))}}},"__esModule",{value:!0}),Tv=Object.defineProperty({default:{keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,ge.checkStrictMode)(r,`"${t}" without "if" is ignored`)}}},"__esModule",{value:!0}),kv=Object.defineProperty({default:function(t=!1){const e=[xv.default,Sv.default,Ev.default,$v.default,_v.default,Tv.default,vv.default,ro.default,yv.default,bv.default,wv.default];return t?e.push(mv.default,pv.default):e.push(ju.default,Ou.default),e.push(gv.default),e}},"__esModule",{value:!0}),jv=Object.defineProperty({default:[Object.defineProperty({default:{keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match format "${t}"`,params:({schemaCode:t})=>g._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:s,schema:i,schemaCode:o,it:a}=t,{opts:l,errSchemaPath:c,schemaEnv:f,self:h}=a;l.validateFormats&&(s?function(){const d=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${d}[${o}]`),p=r.let("fType"),y=r.let("format");r.if(g._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(p,g._`${m}.type || "string"`).assign(y,g._`${m}.validate`),()=>r.assign(p,g._`"string"`).assign(y,m)),t.fail$data((0,g.or)(l.strictSchema===!1?g.nil:g._`${o} && !${y}`,function(){const b=f.$async?g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:g._`${y}(${n})`,$=g._`(typeof ${y} == "function" ? ${b} : ${y}.test(${n}))`;return g._`${y} && ${y} !== true && ${p} === ${e} && !${$}`}()))}():function(){const d=h.formats[i];if(!d)return void function(){if(l.strictSchema!==!1)throw new Error(b());function b(){return`unknown format "${i}" ignored in schema at path "${c}"`}h.logger.warn(b())}();if(d===!0)return;const[m,p,y]=function(b){const $=b instanceof RegExp?(0,g.regexpCode)(b):l.code.formats?g._`${l.code.formats}${(0,g.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:b,code:$});return typeof b!="object"||b instanceof RegExp?["string",b,T]:[b.type||"string",b.validate,g._`${T}.validate`]}(d);m===e&&t.pass(function(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!f.$async)throw new Error("async format in sync schema");return g._`await ${y}(${n})`}return typeof p=="function"?g._`${y}(${n})`:g._`${y}.test(${n})`}())}())}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),Nu=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});const Ov=[tv.default,hv.default,(0,kv.default)(),jv.default,Nu.metadataVocabulary,Nu.contentVocabulary];var Pv=Object.defineProperty({default:Ov},"__esModule",{value:!0}),no=Xe(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(r=e.DiscrError||(e.DiscrError={})).Tag="tag",r.Mapping="mapping"}),Cv=Object.defineProperty({default:{keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===no.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>g._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:s,it:i}=t,{oneOf:o}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const l=e.let("valid",!1),c=e.const("tag",g._`${r}${(0,g.getProperty)(a)}`);function f(h){const d=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(m,g.Name),d}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var d;const m={},p=b(s);let y=!0;for(let _=0;_<o.length;_++){let x=o[_];x!=null&&x.$ref&&!(0,ge.schemaHasRulesButRef)(x,i.self.RULES)&&(x=ir.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,x==null?void 0:x.$ref),x instanceof ir.SchemaEnv&&(x=x.schema));const S=(d=x==null?void 0:x.properties)===null||d===void 0?void 0:d[a];if(typeof S!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(p||b(x)),$(S,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function $(_,x){if(_.const)T(_.const,x);else{if(!_.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const S of _.enum)T(S,x)}}function T(_,x){if(typeof _!="string"||_ in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[_]=x}}();e.if(!1);for(const d in h)e.elseIf(g._`${c} === ${d}`),e.assign(l,f(h[d]));e.else(),t.error(!1,{discrError:no.DiscrError.Mapping,tag:c,tagName:a}),e.endIf()}(),()=>t.error(!1,{discrError:no.DiscrError.Tag,tag:c,tagName:a})),t.ok(l)}}},"__esModule",{value:!0}),Du={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},fe=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class s extends Xy.default{_addVocabularies(){super._addVocabularies(),Pv.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Cv.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const o=this.opts.$data?this.$dataMetaSchema(Du,r):Du;this.addMetaSchema(o,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return Pn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}})}),Nv=xu(fe),Dv=xu(Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r="errorMessage",n=new fe.Name("emUsed"),s={required:"missingProperty",dependencies:"property",dependentRequired:"property"},i=/\$\{[^}]+\}/,o=/\$\{([^}]+)\}/g,a=/^""\s*\+\s*|\s*\+\s*""$/g;function l(f){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:d,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const $=p,T=g.strConcat(ee.default.instancePath,b.errorPath);function _(M,j){return g.and(fe._`${M}.keyword !== ${r}`,fe._`!${M}.${n}`,fe._`${M}.instancePath === ${T}`,fe._`${M}.keyword in ${j}`,fe._`${M}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${M}.schemaPath.slice(${b.errSchemaPath.length}))`)}function x(M,j){const E=[];for(const C in M){const D=j[C];i.test(D)&&E.push([C,R(D)])}return d.object(...E)}function S(M){return i.test(M)?new xe._Code(xe.safeStringify(M).replace(o,(j,E)=>`" + JSON.stringify(${Pn.getData(E,b)}) + "`).replace(a,"")):fe.stringify(M)}function R(M){return fe._`function(){return ${S(M)}}`}d.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof $=="object"){const[j,E]=function(C){let D,V;for(const B in C){if(B==="properties"||B==="items")continue;const Y=C[B];if(typeof Y=="object"){D||(D={});const K=D[B]={};for(const X in Y)K[X]=[]}else V||(V={}),V[B]=[]}return[D,V]}($);E&&function(C){const D=d.const("emErrors",fe.stringify(C)),V=d.const("templates",x(C,p));d.forOf("err",ee.default.vErrors,X=>d.if(_(X,D),()=>d.code(fe._`${D}[${X}.keyword].push(${X})`).assign(fe._`${X}.${n}`,!0)));const{singleError:B}=f;if(B){const X=d.let("message",fe._`""`),re=d.let("paramsErrors",fe._`[]`);Y(ne=>{d.if(X,()=>d.code(fe._`${X} += ${typeof B=="string"?B:";"}`)),d.code(fe._`${X} += ${K(ne)}`),d.assign(re,fe._`${re}.concat(${D}[${ne}])`)}),Pt.reportError(h,{message:X,params:fe._`{errors: ${re}}`})}else Y(X=>Pt.reportError(h,{message:K(X),params:fe._`{errors: ${D}[${X}]}`}));function Y(X){d.forIn("key",D,re=>d.if(fe._`${D}[${re}].length`,()=>X(re)))}function K(X){return fe._`${X} in ${V} ? ${V}[${X}]() : ${y}[${X}]`}}(E),j&&function(C){const D=d.const("emErrors",fe.stringify(C)),V=[];for(const re in C)V.push([re,x(C[re],p[re])]);const B=d.const("templates",d.object(...V)),Y=d.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=d.let("emPropParams"),X=d.let("emParamsErrors");d.forOf("err",ee.default.vErrors,re=>d.if(_(re,D),()=>{d.assign(K,fe._`${Y}[${re}.keyword]`),d.assign(X,fe._`${D}[${re}.keyword][${re}.params[${K}]]`),d.if(X,()=>d.code(fe._`${X}.push(${re})`).assign(fe._`${re}.${n}`,!0))})),d.forIn("key",D,re=>d.forIn("keyProp",fe._`${D}[${re}]`,ne=>{d.assign(X,fe._`${D}[${re}][${ne}]`),d.if(fe._`${X}.length`,()=>{const I=d.const("tmpl",fe._`${B}[${re}] && ${B}[${re}][${ne}]`);Pt.reportError(h,{message:fe._`${I} ? ${I}() : ${y}[${re}][${ne}]`,params:fe._`{errors: ${X}}`})})}))}(j),function(C){const{props:D,items:V}=C;if(!D&&!V)return;const B=fe._`typeof ${m} == "object"`,Y=fe._`Array.isArray(${m})`,K=d.let("emErrors");let X,re;const ne=d.let("templates");function I(k,L){d.assign(K,fe.stringify(k)),d.assign(ne,x(k,L))}D&&V?(X=d.let("emChildKwd"),d.if(B),d.if(Y,()=>{I(V,p.items),d.assign(X,fe.str`items`)},()=>{I(D,p.properties),d.assign(X,fe.str`properties`)}),re=fe._`[${X}]`):V?(d.if(Y),I(V,p.items),re=fe._`.items`):D&&(d.if(g.and(B,g.not(Y))),I(D,p.properties),re=fe._`.properties`),d.forOf("err",ee.default.vErrors,k=>function(L,q,Z){d.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${T}) === 0`),()=>{const Q=d.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=d.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${T}.length))`),U=d.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);d.if(fe._`${U} !== undefined && ${U} in ${q}`,()=>Z(U))})}(k,K,L=>d.code(fe._`${K}[${L}].push(${k})`).assign(fe._`${k}.${n}`,!0))),d.forIn("key",K,k=>d.if(fe._`${K}[${k}].length`,()=>{Pt.reportError(h,{message:fe._`${k} in ${ne} ? ${ne}[${k}]() : ${y}${re}[${k}]`,params:fe._`{errors: ${K}[${k}]}`}),d.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${T} + "/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),d.endIf()}(function({properties:C,items:D}){const V={};if(C){V.props={};for(const B in C)V.props[B]=[]}if(D){V.items={};for(let B=0;B<D.length;B++)V.items[B]=[]}return V}($))}const M=typeof $=="string"?$:$._;M&&function(j){const E=d.const("emErrs",fe._`[]`);d.forOf("err",ee.default.vErrors,C=>d.if(function(D){return g.and(fe._`${D}.keyword !== ${r}`,fe._`!${D}.${n}`,g.or(fe._`${D}.instancePath === ${T}`,g.and(fe._`${D}.instancePath.indexOf(${T}) === 0`,fe._`${D}.instancePath[${T}.length] === "/"`)),fe._`${D}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${D}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(C),()=>d.code(fe._`${E}.push(${C})`).assign(fe._`${C}.${n}`,!0))),d.if(fe._`${E}.length`,()=>Pt.reportError(h,{message:S(j),params:fe._`{errors: ${E}}`}))}(M),f.keepErrors||function(){const j=d.const("emErrs",fe._`[]`);d.forOf("err",ee.default.vErrors,E=>d.if(fe._`!${E}.${n}`,()=>d.code(fe._`${j}.push(${E})`))),d.assign(ee.default.vErrors,j).assign(ee.default.errors,fe._`${j}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const c=(f,h={})=>{if(!f.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(f.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return f.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),Iv=function(t,e){return t.forEach(function(r){r.keyword==="required"&&(r.instancePath+="/"+r.params.missingProperty)}),t.reduce(function(r,n){var s=n.instancePath.substring(1).replace(/\//g,".");if(r[s]||(r[s]={message:n.message,type:n.keyword}),e){var i=r[s].types,o=i&&i[n.keyword];r[s]=ru(s,e,r,n.keyword,o?[].concat(o,n.message||""):n.message)}return r},{})},Av=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var o,a=new Nv(wu({allErrors:!0,validateSchema:!0},e));Dv(a);var l=a.compile(Object.assign({$async:((o=r)==null?void 0:o.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&bu({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:qy(Iv(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function Fv(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=Fy({defaultValues:r??{},resolver:e?Av(e,{strict:!1,addFormats:!0}):void 0}),[o]=it(),{handleSubmit:a,setError:l}=i,[c,f]=w.useState(null),h=Ct("md"),[d]=w.useContext(zr),m=t.isVertical?!1:d.formLayout==="horizontal",y=(t.singleColumn?!1:d.formColumns==="multiple")?1600:m?960:800;let b=u.jsx($y,{...i,children:u.jsxs(v.Form,{onSubmit:a(async $=>{f(null);try{await t.onSubmit($,T=>f(new Error(T)),l)}catch(T){if(T instanceof Error?f(T):f(new Error("Unknown error")),typeof T=="object"&&T!==null&&"json"in T&&typeof T.json=="object"&&T.json!==null)for(const _ in T.json){let x=T.json[_];typeof x=="string"?l(_,{message:x}):Array.isArray(x)&&(x=x[0],typeof x=="string"&&l(_,{message:x}))}}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?u.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:u.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):u.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:u.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:u.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&u.jsx(v.Alert,{variant:"danger",title:c.message??"",isInline:!0,style:{paddingLeft:h&&t.onCancel?190:void 0},isExpandable:"description"in c?typeof c.description=="string":!1,children:"description"in c&&typeof c.description=="string"&&c.description}),t.onCancel?u.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:u.jsxs(v.ActionGroup,{style:{marginTop:0},children:[u.jsx(io,{children:t.submitText}),t.onCancel&&u.jsx(Iu,{onCancel:t.onCancel,children:t.cancelText??o.cancelText})]})}):u.jsx(io,{style:{marginTop:48},children:t.submitText})]})});return n||(b=u.jsx(ri,{children:b})),b}function so(t){const[e]=w.useContext(zr),r=t.isVertical?!1:e.formLayout==="horizontal",n=t.singleColumn?!1:e.formColumns==="multiple",s=12,i=n?r?12:6:12,o=n?6:12,a=n?6:12,l=n?4:12;return u.jsx(v.Grid,{hasGutter:!0,span:12,sm:s,md:i,lg:o,xl:a,xl2:l,children:t.children})}function io(t){const{isSubmitting:e,errors:r}=Xc(),n=r&&Object.keys(r).length>0;return u.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:u.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function Iu(t){return u.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const h0="";function Mv(t){return u.jsx(Vo,{children:u.jsx(ba,{children:u.jsx(va,{children:u.jsx(pa,{children:u.jsx(Tp,{callback:t.navigate,children:t.children})})})})})}function Vv(t){const e=Xl();return t.breadcrumbs?u.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?u.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?u.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):u.jsx(w.Fragment,{},n))}):u.jsx(w.Fragment,{})}function Lv(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:o,footer:a}=t,l=Ct("lg"),c=Ct("xl"),f=Ct("md"),[h]=it();return u.jsxs(u.Fragment,{children:[e&&u.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:u.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:u.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),u.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:u.jsxs(v.Stack,{hasGutter:!0,children:[u.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[u.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&u.jsx(Vv,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?u.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:u.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?u.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((d,m)=>u.jsx(v.StackItem,{children:d},m)),t.titleDocLink&&u.jsx(v.StackItem,{children:u.jsx(v.Button,{icon:u.jsx(Oe.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:u.jsxs(v.Title,{headingLevel:"h1",children:[n,u.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:u.jsx(Oe.OutlinedQuestionCircleIcon,{})})]})}):u.jsx(v.Title,{headingLevel:"h1",children:n}):u.jsx(v.Title,{headingLevel:"h1",children:u.jsx(v.Skeleton,{width:"160px"})}),f&&s&&u.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?u.jsx(v.Truncate,{content:s}):u.jsx(v.Stack,{children:s.map(d=>u.jsx(v.StackItem,{children:d},d))})})]}),n&&(o||i)&&u.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&u.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),o&&u.jsx(v.FlexItem,{children:o})]})]}),a]})})]})}function Rv(t){const[e]=it();return u.jsx(ga,{message:e.errorText,children:u.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function Au(t){const{loading:e}=t,[r,n]=w.useState((t==null?void 0:t.initialTabIndex)??0),s=w.useCallback((l,c)=>n(c),[n]),i=w.Children.toArray(t.children),o=i.map((l,c)=>{if(w.isValidElement(l)&&l.type===oo){const f=l.props.label;return u.jsx(v.Tab,{title:f||u.jsx(v.Skeleton,{width:"60px"}),eventKey:c},f??c)}return l}),a=i[r];return e?u.jsx(Au,{children:u.jsx(oo,{children:u.jsx(v.PageSection,{variant:"light",children:u.jsx(v.Skeleton,{})})})}):u.jsxs(u.Fragment,{children:[u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:u.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.FlexItem,{children:t.preComponents}),u.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),u.jsx(v.FlexItem,{grow:{default:"grow"},children:u.jsx(v.Tabs,{activeKey:r,onSelect:s,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,children:o})}),t.postComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.Divider,{orientation:{default:"vertical"}}),u.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),a]})}function oo(t){return u.jsx(u.Fragment,{children:t.children})}function Bv(t){const{activeKey:e,setActiveKey:r}=t,n=w.useCallback((s,i)=>r(i),[r]);return u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:u.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}function Fu(t){const{isLoading:e}=t,r=ko(),n=$r(),s=Cd(),i=Cn(t.baseUrl,s),o=w.useMemo(()=>w.Children.toArray(t.children).filter(c=>w.isValidElement(c)&&c.type===ao),[t.children]),a=o.findIndex(c=>{const{url:f}=c.props;return n.pathname===Cn(f,s)});w.useEffect(()=>{if(a===-1){const c=o[0].props.url;r(Cn(c,s))}});const l=w.useCallback((c,f)=>{const h=o[Number(f)];if(h){c.preventDefault();const d=h.props.url;r(Cn(d,s))}},[r,o,s]);if(e){const c=a===-1?o[0]:o[a];return u.jsx(Fu,{baseUrl:i,children:u.jsx(ao,{...c.props,children:u.jsx(v.PageSection,{variant:"light",children:u.jsx(v.Skeleton,{})})})})}return u.jsxs(u.Fragment,{children:[u.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:u.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.FlexItem,{children:t.preComponents}),u.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),u.jsx(v.FlexItem,{grow:{default:"grow"},children:u.jsx(v.Tabs,{activeKey:a,onSelect:l,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,component:v.TabsComponent.nav,children:o.map((c,f)=>{const{label:h,url:d}=c.props;return u.jsx(v.Tab,{title:h||u.jsx(v.Skeleton,{width:"60px"}),eventKey:f,href:Cn(d,s)},h??f)})})}),t.postComponents&&u.jsxs(u.Fragment,{children:[u.jsx(v.Divider,{orientation:{default:"vertical"}}),u.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),u.jsx(zd,{children:o.map((c,f)=>{const{label:h,url:d="",children:m}=c.props;return u.jsx(Co,{path:d.replace(t.baseUrl.replace("*",""),""),element:m},h??f)})})]})}function ao(t){return u.jsx(u.Fragment,{children:t.children})}function Cn(t,e){let r=t;return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n]??`:${n}`)}),r}const zv=nh`
208
208
  from {
209
209
  transform: rotate(0);
210
210
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.70",
4
+ "version": "2.4.71",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { StringOptions } from '@sinclair/typebox';
3
- import { JSONSchema6 } from 'json-schema';
4
- import { IFormGroupSelectOption } from './Inputs/FormGroupSelectOption';
5
- export declare function PageFormSchema(props: {
6
- schema: JSONSchema6;
7
- base?: string;
8
- }): JSX.Element;
9
- export type TypeTextInputOptions = StringOptions & {
10
- placeholder?: string;
11
- autoComplete?: string;
12
- };
13
- export declare function TypeTextInput(options: TypeTextInputOptions): import("@sinclair/typebox").TString;
14
- export type TypeSecretInputOptions = StringOptions & {
15
- placeholder?: string;
16
- autoComplete: string;
17
- };
18
- export declare function TypeSecretInput(options: TypeSecretInputOptions): import("@sinclair/typebox").TString;
19
- export type TypeSelectOptions<T> = StringOptions & {
20
- placeholder?: string;
21
- options: IFormGroupSelectOption<T>[];
22
- };
23
- export declare function TypeSelect<T extends string | number>(options: TypeSelectOptions<T>): import("@sinclair/typebox").TString;