@ansible/ansible-ui-framework 2.4.37 → 2.4.38

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -17106,7 +17106,11 @@ function zb(t) {
17106
17106
  },
17107
17107
  [r, a, s]
17108
17108
  );
17109
- return e ? /* @__PURE__ */ f.jsx(zb, { baseUrl: i, children: /* @__PURE__ */ f.jsx(Rl, { url: "#", children: /* @__PURE__ */ f.jsx(Xt, { variant: "light", children: /* @__PURE__ */ f.jsx(ar, {}) }) }) }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
17109
+ if (e) {
17110
+ const c = o === -1 ? a[0] : a[o];
17111
+ return /* @__PURE__ */ f.jsx(zb, { baseUrl: i, children: /* @__PURE__ */ f.jsx(Rl, { ...c.props, children: /* @__PURE__ */ f.jsx(Xt, { variant: "light", children: /* @__PURE__ */ f.jsx(ar, {}) }) }) });
17112
+ }
17113
+ return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
17110
17114
  /* @__PURE__ */ f.jsx(Xt, { type: Ea.tabs, className: "border-bottom", children: /* @__PURE__ */ f.jsxs(Kt, { spaceItems: { default: "spaceItemsNone" }, children: [
17111
17115
  t.preComponents && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
17112
17116
  /* @__PURE__ */ f.jsx(vt, { children: t.preComponents }),
package/index.umd.cjs CHANGED
@@ -202,7 +202,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
202
202
  || ${B} === "boolean" || ${x} === null`).assign(j,g._`[${x}]`)}}S.else(),l($),S.endIf(),S.if(g._`${j} !== undefined`,()=>{S.assign(x,j),function({gen:C,parentData:N,parentDataProperty:M},R){C.if(g._`${N} !== undefined`,()=>C.assign(g._`${N}[${M}]`,R))}($,j)})}(c,d,p):l(c)})}return y};const s=new Set(["string","number","integer","boolean","null"]);function i(c,d,h,u=r.Correct){const m=u===r.Correct?g.operators.EQ:g.operators.NEQ;let p;switch(c){case"null":return g._`${d} ${m} null`;case"array":p=g._`Array.isArray(${d})`;break;case"object":p=g._`${d} && typeof ${d} == "object" && !Array.isArray(${d})`;break;case"integer":p=y(g._`!(${d} % 1) && !isNaN(${d})`);break;case"number":p=y();break;default:return g._`typeof ${d} ${m} ${c}`}return u===r.Correct?p:(0,g.not)(p);function y(b=g.nil){return(0,g.and)(g._`typeof ${d} == "number"`,b,h?g._`isFinite(${d})`:g.nil)}}function o(c,d,h,u){if(c.length===1)return i(c[0],d,h,u);let m;const p=(0,ge.toHash)(c);if(p.array&&p.object){const y=g._`typeof ${d} != "object"`;m=p.null?y:g._`!${d} || ${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,d,h,u));return m}e.checkDataType=i,e.checkDataTypes=o;const a={message:({schema:c})=>`must be ${c}`,params:({schema:c,schemaValue:d})=>typeof c=="string"?g._`{type: ${c}}`:g._`{type: ${d}}`};function l(c){const d=function(h){const{gen:u,data:m,schema:p}=h,y=(0,ge.schemaRefOrVal)(h,p,"type");return{gen:u,keyword:"type",data:m,schema:p.type,schemaCode:y,schemaValue:y,parentSchema:p,params:{},it:h}}(c);(0,Ct.reportError)(d,a)}e.reportTypeError=l}),Ry=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 d=g._`${l}${(0,g.getProperty)(s)}`;if(a)return void(0,ge.checkStrictMode)(n,`default is ignored for: ${d}`);let h=g._`${d} === undefined`;c.useDefaults==="empty"&&(h=g._`${h} || ${d} === null || ${d} === ""`),o.if(h,g._`${d} = ${(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))}}),nt=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,d){return g._`${n(l)}.call(${c}, ${d})`}function i(l,c,d,h){const u=g._`${c}${(0,g.getProperty)(d)} === undefined`;return h?(0,g.or)(u,(0,g.not)(s(l,c,d))):u}function o(l){return l?Object.keys(l).filter(c=>c!=="__proto__"):[]}e.checkReportMissingProp=function(l,c){const{gen:d,data:h,it:u}=l;d.if(i(d,h,c,u.opts.ownProperties),()=>{l.setParams({missingProperty:g._`${c}`},!0),l.error()})},e.checkMissingProp=function({gen:l,data:c,it:{opts:d}},h,u){return(0,g.or)(...h.map(m=>(0,g.and)(i(l,c,m,d.ownProperties),g._`${u} = ${m}`)))},e.reportMissingProp=function(l,c){l.setParams({missingProperty:c},!0),l.error()},e.hasPropFunc=n,e.isOwnProperty=s,e.propertyInData=function(l,c,d,h){const u=g._`${c}${(0,g.getProperty)(d)} !== undefined`;return h?g._`${u} && ${s(l,c,d)}`:u},e.noPropertyInData=i,e.allSchemaProperties=o,e.schemaProperties=function(l,c){return o(c).filter(d=>!(0,ge.alwaysValidSchema)(l,c[d]))},e.callValidateCode=function({schemaCode:l,data:c,it:{gen:d,topSchemaRef:h,schemaPath:u,errorPath:m},it:p},y,b,$){const k=$?g._`${l}, ${c}, ${h}${u}`: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 S=g._`${k}, ${d.object(..._)}`;return b!==g.nil?g._`${y}.call(${b}, ${S})`:g._`${y}(${S})`};const a=g._`new RegExp`;e.usePattern=function({gen:l,it:{opts:c}},d){const h=c.unicodeRegExp?"u":"",{regExp:u}=c.code,m=u(d,h);return l.scopeValue("pattern",{key:m.toString(),ref:m,code:g._`${u.code==="new RegExp"?a:(0,r.useFunc)(l,u)}(${d}, ${h})`})},e.validateArray=function(l){const{gen:c,data:d,keyword:h,it:u}=l,m=c.name("valid");if(u.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._`${d}.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:d,keyword:h,it:u}=l;if(!Array.isArray(d))throw new Error("ajv implementation error");if(d.some(y=>(0,ge.alwaysValidSchema)(u,y))&&!u.opts.unevaluated)return;const m=c.let("valid",!1),p=c.name("_valid");c.block(()=>d.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:d}=s,h=i.macro.call(d.self,l,c,d),u=n(o,a,h);d.opts.validateSchema!==!1&&d.self.validateSchema(h,!0);const m=o.name("valid");s.subschema({schema:h,schemaPath:g.nil,errSchemaPath:`${d.errSchemaPath}/${a}`,topSchemaRef:u,compositeRule:!0},m),s.pass(m,()=>s.error(!0))},e.funcKeywordCode=function(s,i){var o;const{gen:a,keyword:l,schema:c,parentSchema:d,$data:h,it:u}=s;(function({schemaEnv:k},_){if(_.async&&!k.$async)throw new Error("async keyword in sync schema")})(u,i);const m=!h&&i.compile?i.compile.call(u.self,c,d,u):i.validate,p=n(a,l,m),y=a.let("valid");function b(k=i.async?g._`await `:g.nil){a.assign(y,g._`${k}${(0,nt.callValidateCode)(s,p,u.opts.passContext?ee.default.this:ee.default.self,!("compile"in i&&!h||i.schema===!1))}`,i.modifying)}function $(k){var _;a.if((0,g.not)((_=i.valid)!==null&&_!==void 0?_:y),k)}s.block$data(y,function(){if(i.errors===!1)b(),i.modifying&&r(s),$(()=>s.error());else{const k=i.async?function(){const _=a.let("ruleErrs",null);return a.try(()=>b(g._`await `),S=>a.assign(y,!1).if(g._`${S} instanceof ${u.ValidationError}`,()=>a.assign(_,g._`${S}.errors`),()=>a.throw(S))),_}():function(){const _=g._`${p}.errors`;return a.assign(_,null),b(g.nil),_}();i.modifying&&r(s),$(()=>function(_,S){const{gen:x}=_;x.if(g._`Array.isArray(${S})`,()=>{x.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${S} : ${ee.default.vErrors}.concat(${S})`).assign(ee.default.errors,g._`${ee.default.vErrors}.length`),(0,Ct.extendErrors)(_)},()=>_.error())}(s,k))}}),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 d=l.dependencies;if(d!=null&&d.some(h=>!Object.prototype.hasOwnProperty.call(s,h)))throw new Error(`parent schema must have dependencies of ${c}: ${d.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:u,opts:m}=n;d(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=[...u,r.parentDataProperty]}function d(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&&(d(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},Ly=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,d,h,u){if(o&&typeof o=="object"&&!Array.isArray(o)){for(var m in s(o,a,l,c,d,h,u),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,d,h,u)}}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}}),dt=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,u=!0){return typeof h=="boolean"||(u===!0?!s(h):!!u&&i(h)<=u)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(h){for(const u in h){if(n.has(u))return!0;const m=h[u];if(Array.isArray(m)&&m.some(s)||typeof m=="object"&&s(m))return!0}return!1}function i(h){let u=0;for(const m in h)if(m==="$ref"||(u++,!r.has(m)&&(typeof h[m]=="object"&&(0,ge.eachItem)(h[m],p=>u+=i(p)),u===1/0)))return 1/0;return u}function o(h,u="",m){m!==!1&&(u=c(u));const p=h.parse(u);return a(h,p)}function a(h,u){return h.serialize(u).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,u,m){return m=c(m),h.resolve(u,m)};const d=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(h,u){if(typeof h=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,y=c(h[m]||u),b={"":y},$=o(p,y,!1),k={},_=new Set;return Ly(h,{allKeys:!0},(V,B,j,E)=>{if(E===void 0)return;const C=$+B;let N=b[E];function M(Y){if(Y=c(N?(0,this.opts.uriResolver.resolve)(N,Y):Y),_.has(Y))throw x(Y);_.add(Y);let K=this.refs[Y];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?S(V,K.schema,Y):Y!==c(C)&&(Y[0]==="#"?(S(V,k[Y],Y),k[Y]=V):this.refs[Y]=C),Y}function R(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);M.call(this,`#${Y}`)}}typeof V[m]=="string"&&(N=M.call(this,V[m])),R.call(this,V.$anchor),R.call(this,V.$dynamicAnchor),b[B]=N}),k;function S(V,B,j){if(B!==void 0&&!Qi(V,B))throw x(j)}function x(V){return new Error(`reference "${V}" resolves to more than one schema`)}}}),Cn=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:S,schema:x,schemaEnv:V,opts:B},j){B.code.es5?_.func(S,g._`${ee.default.data}, ${ee.default.valCxt}`,V.$async,()=>{_.code(g._`"use strict"; ${s(x,B)}`),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._`{}`)})}(_,B),_.code(j)}):_.func(S,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}}={}`}(B)}`,V.$async,()=>_.code(s(x,B)).code(j))}function s(_,S){const x=typeof _=="object"&&_[S.schemaId];return x&&(S.code.source||S.code.process)?g._`/*# sourceURL=${x} */`:g.nil}function i({schema:_,self:S}){if(typeof _=="boolean")return!_;for(const x in _)if(S.RULES.all[x])return!0;return!1}function o(_){return typeof _.schema!="boolean"}function a(_){(0,ge.checkUnknownRules)(_),function(S){const{schema:x,errSchemaPath:V,opts:B,self:j}=S;x.$ref&&B.ignoreKeywordsWithRef&&(0,ge.schemaHasRulesButRef)(x,j.RULES)&&j.logger.warn(`$ref: keywords ignored in schema at path "${V}"`)}(_)}function l(_,S){if(_.opts.jtd)return d(_,[],!1,S);const x=(0,Kt.getSchemaTypes)(_.schema);d(_,x,!(0,Kt.coerceAndCheckDataType)(_,x),S)}function c({gen:_,schemaEnv:S,schema:x,errSchemaPath:V,opts:B}){const j=x.$comment;if(B.$comment===!0)_.code(g._`${ee.default.self}.logger.log(${j})`);else if(typeof B.$comment=="function"){const E=g.str`${V}/$comment`,C=_.scopeValue("root",{ref:S.root});_.code(g._`${ee.default.self}.opts.$comment(${j}, ${E}, ${C}.schema)`)}}function d(_,S,x,V){const{gen:B,schema:j,data:E,allErrors:C,opts:N,self:M}=_,{RULES:R}=M;function Y(K){(0,$s.shouldUseGroup)(j,K)&&(K.type?(B.if((0,r.checkDataType)(K.type,E,N.strictNumbers)),h(_,K),S.length===1&&S[0]===K.type&&x&&(B.else(),(0,r.reportTypeError)(_)),B.endIf()):h(_,K),C||B.if(g._`${ee.default.errors} === ${V||0}`))}!j.$ref||!N.ignoreKeywordsWithRef&&(0,ge.schemaHasRulesButRef)(j,R)?(N.jtd||function(K,J){!K.schemaEnv.meta&&K.opts.strictTypes&&(function(te,ne){ne.length&&(te.dataTypes.length?(ne.forEach(I=>{u(te.dataTypes,I)||m(te,`type "${I}" not allowed by context "${te.dataTypes.join(",")}"`)}),te.dataTypes=te.dataTypes.filter(I=>u(ne,I))):te.dataTypes=ne)}(K,J),K.opts.allowUnionTypes||function(te,ne){ne.length>1&&(ne.length!==2||!ne.includes("null"))&&m(te,"use allowUnionTypes to allow union type keyword")}(K,J),function(te,ne){const I=te.self.RULES.all;for(const T in I){const L=I[T];if(typeof L=="object"&&(0,$s.shouldUseRule)(te.schema,L)){const{type:H}=L.definition;H.length&&!H.some(Z=>{return(Q=ne).includes(le=Z)||le==="number"&&Q.includes("integer");var Q,le})&&m(te,`missing type "${H.join(",")}" for keyword "${T}"`)}}}(K,K.dataTypes))}(_,S),B.block(()=>{for(const K of R.rules)Y(K);Y(R.post)})):B.block(()=>y(_,"$ref",R.all.$ref.definition))}function h(_,S){const{gen:x,schema:V,opts:{useDefaults:B}}=_;B&&(0,Ry.assignDefaults)(_,S.type),x.block(()=>{for(const j of S.rules)(0,$s.shouldUseRule)(V,j)&&y(_,j.keyword,j.definition,S.type)})}function u(_,S){return _.includes(S)||S==="integer"&&_.includes("number")}function m(_,S){(0,ge.checkStrictMode)(_,S+=` at "${_.schemaEnv.baseId+_.errSchemaPath}" (strictTypes)`,_.opts.strictTypes)}e.validateFunctionCode=function(_){o(_)&&(a(_),i(_))?function(S){const{schema:x,opts:V,gen:B}=S;n(S,()=>{V.$comment&&x.$comment&&c(S),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")}(S),B.let(ee.default.vErrors,null),B.let(ee.default.errors,0),V.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`))}(S),l(S),function(j){const{gen:E,schemaEnv:C,validateName:N,ValidationError:M,opts:R}=j;C.$async?E.if(g._`${ee.default.errors} === 0`,()=>E.return(ee.default.data),()=>E.throw(g._`new ${M}(${ee.default.vErrors})`)):(E.assign(g._`${N}.errors`,ee.default.vErrors),R.unevaluated&&function({gen:Y,evaluated:K,props:J,items:te}){J instanceof g.Name&&Y.assign(g._`${K}.props`,J),te instanceof g.Name&&Y.assign(g._`${K}.items`,te)}(j),E.return(g._`${ee.default.errors} === 0`))}(S)})}(_):n(_,()=>(0,wu.topBoolOrEmptySchema)(_))};class p{constructor(S,x,V){if((0,On.validateKeywordUsage)(S,x,V),this.gen=S.gen,this.allErrors=S.allErrors,this.keyword=V,this.data=S.data,this.schema=S.schema[V],this.$data=x.$data&&S.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ge.schemaRefOrVal)(S,this.schema,V,this.$data),this.schemaType=x.schemaType,this.parentSchema=S.schema,this.params={},this.it=S,this.def=x,this.$data)this.schemaCode=S.gen.const("vSchema",k(this.$data,S));else if(this.schemaCode=this.schemaValue,!(0,On.validSchemaType)(this.schema,x.schemaType,x.allowUndefined))throw new Error(`${V} value must be ${JSON.stringify(x.schemaType)}`);("code"in x?x.trackErrors:x.errors!==!1)&&(this.errsCount=S.gen.const("_errs",ee.default.errors))}result(S,x,V){this.failResult((0,g.not)(S),x,V)}failResult(S,x,V){this.gen.if(S),V?V():this.error(),x?(this.gen.else(),x(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(S,x){this.failResult((0,g.not)(S),void 0,x)}fail(S){if(S===void 0)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(S),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(S){if(!this.$data)return this.fail(S);const{schemaCode:x}=this;this.fail(g._`${x} !== undefined && (${(0,g.or)(this.invalid$data(),S)})`)}error(S,x,V){if(x)return this.setParams(x),this._error(S,V),void this.setParams({});this._error(S,V)}_error(S,x){(S?Ct.reportExtraError:Ct.reportError)(this,this.def.error,x)}$dataError(){(0,Ct.reportError)(this,this.def.$dataError||Ct.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ct.resetErrorsCount)(this.gen,this.errsCount)}ok(S){this.allErrors||this.gen.if(S)}setParams(S,x){x?Object.assign(this.params,S):this.params=S}block$data(S,x,V=g.nil){this.gen.block(()=>{this.check$data(S,V),x()})}check$data(S=g.nil,x=g.nil){if(!this.$data)return;const{gen:V,schemaCode:B,schemaType:j,def:E}=this;V.if((0,g.or)(g._`${B} === undefined`,x)),S!==g.nil&&V.assign(S,!0),(j.length||E.validateSchema)&&(V.elseIf(this.invalid$data()),this.$dataError(),S!==g.nil&&V.assign(S,!1)),V.else()}invalid$data(){const{gen:S,schemaCode:x,schemaType:V,def:B,it:j}=this;return(0,g.or)(function(){if(V.length){if(!(x instanceof g.Name))throw new Error("ajv implementation error");const E=Array.isArray(V)?V:[V];return g._`${(0,r.checkDataTypes)(E,x,j.opts.strictNumbers,r.DataType.Wrong)}`}return g.nil}(),function(){if(B.validateSchema){const E=S.scopeValue("validate$data",{ref:B.validateSchema});return g._`!${E}(${x})`}return g.nil}())}subschema(S,x){const V=(0,Xi.getSubschema)(this.it,S);(0,Xi.extendSubschemaData)(V,this.it,S),(0,Xi.extendSubschemaMode)(V,S);const B={...this.it,...V,items:void 0,props:void 0};return function(j,E){o(j)&&(a(j),i(j))?function(C,N){const{schema:M,gen:R,opts:Y}=C;Y.$comment&&M.$comment&&c(C),function(J){const te=J.schema[J.opts.schemaId];te&&(J.baseId=(0,dt.resolveUrl)(J.opts.uriResolver,J.baseId,te))}(C),function(J){if(J.schema.$async&&!J.schemaEnv.$async)throw new Error("async schema in sync schema")}(C);const K=R.const("_errs",ee.default.errors);l(C,K),R.var(N,g._`${K} === ${ee.default.errors}`)}(j,E):(0,wu.boolOrEmptySchema)(j,E)}(B,x),B}mergeEvaluated(S,x){const{it:V,gen:B}=this;V.opts.unevaluated&&(V.props!==!0&&S.props!==void 0&&(V.props=ge.mergeEvaluated.props(B,S.props,V.props,x)),V.items!==!0&&S.items!==void 0&&(V.items=ge.mergeEvaluated.items(B,S.items,V.items,x)))}mergeValidEvaluated(S,x){const{it:V,gen:B}=this;if(V.opts.unevaluated&&(V.props!==!0||V.items!==!0))return B.if(x,()=>this.mergeEvaluated(S,g.Name)),!0}}function y(_,S,x,V){const B=new p(_,x,S);"code"in x?x.code(B,V):B.$data&&x.validate?(0,On.funcKeywordCode)(B,x):"macro"in x?(0,On.macroKeywordCode)(B,x):(x.compile||x.validate)&&(0,On.funcKeywordCode)(B,x)}e.KeywordCxt=p;const b=/^\/(?:[^~]|~0|~1)*$/,$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(_,{dataLevel:S,dataNames:x,dataPathArr:V}){let B,j;if(_==="")return ee.default.rootData;if(_[0]==="/"){if(!b.test(_))throw new Error(`Invalid JSON-pointer: ${_}`);B=_,j=ee.default.rootData}else{const M=$.exec(_);if(!M)throw new Error(`Invalid JSON-pointer: ${_}`);const R=+M[1];if(B=M[2],B==="#"){if(R>=S)throw new Error(N("property/index",R));return V[S-R]}if(R>S)throw new Error(N("data",R));if(j=x[S-R],!B)return j}let E=j;const C=B.split("/");for(const M of C)M&&(j=g._`${j}${(0,g.getProperty)((0,ge.unescapeJsonPointer)(M))}`,E=g._`${E} && ${j}`);return E;function N(M,R){return`Cannot access ${M} ${R} levels up, current level is ${S}`}}e.getData=k});class By extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}var Su=Object.defineProperty({default:By},"__esModule",{value:!0});class zy extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,dt.resolveUrl)(e,r,n),this.missingSchema=(0,dt.normalizeId)((0,dt.getFullPath)(e,this.missingRef))}}var eo=Object.defineProperty({default:zy},"__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 u;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=(u=h.baseId)!==null&&u!==void 0?u:(0,dt.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(d){const h=i.call(this,d);if(h)return h;const u=(0,dt.getFullPath)(this.opts.uriResolver,d.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 $;d.$async&&($=b.scopeValue("Error",{ref:Su.default,code:g._`require("ajv/dist/runtime/validation_error").default`}));const k=b.scopeName("validate");d.validateName=k;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:d.schema,code:(0,g.stringify)(d.schema)}:{ref:d.schema}),validateName:k,ValidationError:$,schema:d.schema,schemaEnv:d,rootId:u,baseId:d.baseId||u,schemaPath:g.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:g._`""`,opts:this.opts,self:this};let S;try{this._compilations.add(d),(0,Cn.validateFunctionCode)(_),b.optimize(this.opts.code.optimize);const x=b.toString();S=`${b.scopeRefs(ee.default.scope)}return ${x}`,this.opts.code.process&&(S=this.opts.code.process(S,d));const V=new Function(`${ee.default.self}`,`${ee.default.scope}`,S)(this,this.scope.get());if(this.scope.value(k,{ref:V}),V.errors=null,V.schema=d.schema,V.schemaEnv=d,d.$async&&(V.$async=!0),this.opts.code.source===!0&&(V.source={validateName:k,validateCode:x,scopeValues:b._values}),this.opts.unevaluated){const{props:B,items:j}=_;V.evaluated={props:B instanceof g.Name?void 0:B,items:j instanceof g.Name?void 0:j,dynamicProps:B instanceof g.Name,dynamicItems:j instanceof g.Name},V.source&&(V.source.evaluated=(0,g.stringify)(V.evaluated))}return d.validate=V,d}catch(x){throw delete d.validate,delete d.validateName,S&&this.logger.error("Error compiling schema, function code:",S),x}finally{this._compilations.delete(d)}}function s(d){return(0,dt.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:n.call(this,d)}function i(d){for(const m of this._compilations)if((h=m).schema===(u=d).schema&&h.root===u.root&&h.baseId===u.baseId)return m;var h,u}function o(d,h){let u;for(;typeof(u=this.refs[h])=="string";)h=u;return u||this.schemas[h]||a.call(this,d,h)}function a(d,h){const u=this.opts.uriResolver.parse(h),m=(0,dt._getFullPath)(this.opts.uriResolver,u);let p=(0,dt.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&m===p)return c.call(this,u,d);const y=(0,dt.normalizeId)(m),b=this.refs[y]||this.schemas[y];if(typeof b=="string"){const $=a.call(this,d,b);return typeof($==null?void 0:$.schema)!="object"?void 0:c.call(this,u,$)}if(typeof(b==null?void 0:b.schema)=="object"){if(b.validate||n.call(this,b),y===(0,dt.normalizeId)(h)){const{schema:$}=b,{schemaId:k}=this.opts,_=$[k];return _&&(p=(0,dt.resolveUrl)(this.opts.uriResolver,p,_)),new r({schema:$,schemaId:k,root:d,baseId:p})}return c.call(this,u,b)}}e.SchemaEnv=r,e.compileSchema=n,e.resolveRef=function(d,h,u){var m;u=(0,dt.resolveUrl)(this.opts.uriResolver,h,u);const p=d.refs[u];if(p)return p;let y=o.call(this,d,u);if(y===void 0){const b=(m=d.localRefs)===null||m===void 0?void 0:m[u],{schemaId:$}=this.opts;b&&(y=new r({schema:b,schemaId:$,root:d,baseId:h}))}return y!==void 0?d.refs[u]=s.call(this,y):void 0},e.getCompilingSchema=i,e.resolveSchema=a;const l=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function c(d,{baseId:h,schema:u,root:m}){var p;if(((p=d.fragment)===null||p===void 0?void 0:p[0])!=="/")return;for(const $ of d.fragment.slice(1).split("/")){if(typeof u=="boolean")return;const k=u[(0,ge.unescapeFragment)($)];if(k===void 0)return;const _=typeof(u=k)=="object"&&u[this.opts.schemaId];!l.has($)&&_&&(h=(0,dt.resolveUrl)(this.opts.uriResolver,h,_))}let y;if(typeof u!="boolean"&&u.$ref&&!(0,ge.schemaHasRulesButRef)(u,this.RULES)){const $=(0,dt.resolveUrl)(this.opts.uriResolver,h,u.$ref);y=a.call(this,m,$)}const{schemaId:b}=this.opts;return y=y||new r({schema:u,schemaId:b,root:m,baseId:h}),y.schema!==y.root.schema?y:void 0}}),Eu={$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},$u=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),Oe=O?"[\\uE000-\\uF8FF]":"[]",De=n(A,F,"[\\-\\.\\_\\~]",O?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");s(A+n(A,F,"[\\+\\-\\.]")+"*"),s(s(ae+"|"+n(De,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),ft=s("\\:\\:"+s(_e+"\\:")+"{5}"+Ge),Ye=s(s(_e)+"?\\:\\:"+s(_e+"\\:")+"{4}"+Ge),ht=s(s(s(_e+"\\:")+"{0,1}"+_e)+"?\\:\\:"+s(_e+"\\:")+"{3}"+Ge),wt=s(s(s(_e+"\\:")+"{0,2}"+_e)+"?\\:\\:"+s(_e+"\\:")+"{2}"+Ge),Et=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)+"?\\:\\:"),Ft=s([Ke,ft,Ye,ht,wt,Et,or,ar,jt].join("|")),qt=s(s(De+"|"+ae)+"+");s("[vV]"+W+"+\\."+n(De,ye,"[\\:]")+"+"),s(s(ae+"|"+n(De,ye))+"*");var Mt=s(ae+"|"+n(De,ye,"[\\:\\@]"));return s(s(ae+"|"+n(De,ye,"[\\@]"))+"+"),s(s(Mt+"|"+n("[\\/\\?]",Oe))+"*"),{NOT_SCHEME:new RegExp(n("[^]",A,F,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",De,ye),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",De,ye),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",De,ye),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",De,ye),"g"),NOT_QUERY:new RegExp(n("[^\\%]",De,ye,"[\\:\\@\\/\\?]",Oe),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",De,ye,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",De,ye),"g"),UNRESERVED:new RegExp(De,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",De,Se),"g"),PCT_ENCODED:new RegExp(ae,"g"),IPV4ADDRESS:new RegExp("^("+et+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Ft+")"+s(s("\\%25|\\%(?!"+W+"{2})")+"("+qt+")")+"?\\]?$")}}var l=a(!1),c=a(!0),d=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,Oe=void 0;try{for(var De,Ue=F[Symbol.iterator]();!(ye=(De=Ue.next()).done)&&(ae.push(De.value),!W||ae.length!==W);ye=!0);}catch(et){Se=!0,Oe=et}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Se)throw Oe}}return ae}(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},h=2147483647,u=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,k=String.fromCharCode;function _(O){throw new RangeError(b[O])}function S(O,A){var F=O.split("@"),W="";return F.length>1&&(W=F[0]+"@",O=F[1]),W+function(ae,ye){for(var Se=[],Oe=ae.length;Oe--;)Se[Oe]=ye(ae[Oe]);return Se}((O=O.replace(y,".")).split("."),A).join(".")}var x=function(O,A){return O+22+75*(O<26)-((A!=0)<<5)},V=function(O,A,F){var W=0;for(O=F?$(O/700):O>>1,O+=$(O/A);O>455;W+=u)O=$(O/35);return $(W+36*O/(O+38))},B=function(O){return S(O,function(A){return p.test(A)?"xn--"+function(F){var W=[],ae=(F=function(Te){for(var mt=[],Qe=0,st=Te.length;Qe<st;){var yt=Te.charCodeAt(Qe++);if(yt>=55296&&yt<=56319&&Qe<st){var lr=Te.charCodeAt(Qe++);(64512&lr)==56320?mt.push(((1023&yt)<<10)+(1023&lr)+65536):(mt.push(yt),Qe--)}else mt.push(yt)}return mt}(F)).length,ye=128,Se=0,Oe=72,De=!0,Ue=!1,et=void 0;try{for(var _e,Ge=F[Symbol.iterator]();!(De=(_e=Ge.next()).done);De=!0){var Ke=_e.value;Ke<128&&W.push(k(Ke))}}catch(Te){Ue=!0,et=Te}finally{try{!De&&Ge.return&&Ge.return()}finally{if(Ue)throw et}}var ft=W.length,Ye=ft;for(ft&&W.push("-");Ye<ae;){var ht=h,wt=!0,Et=!1,or=void 0;try{for(var ar,jt=F[Symbol.iterator]();!(wt=(ar=jt.next()).done);wt=!0){var Ft=ar.value;Ft>=ye&&Ft<ht&&(ht=Ft)}}catch(Te){Et=!0,or=Te}finally{try{!wt&&jt.return&&jt.return()}finally{if(Et)throw or}}var qt=Ye+1;ht-ye>$((h-Se)/qt)&&_("overflow"),Se+=(ht-ye)*qt,ye=ht;var Mt=!0,ks=!1,Ts=void 0;try{for(var js,P=F[Symbol.iterator]();!(Mt=(js=P.next()).done);Mt=!0){var re=js.value;if(re<ye&&++Se>h&&_("overflow"),re==ye){for(var ce=Se,Ee=u;;Ee+=u){var Ie=Ee<=Oe?1:Ee>=Oe+26?26:Ee-Oe;if(ce<Ie)break;var Ze=ce-Ie,Ne=u-Ie;W.push(k(x(Ie+Ze%Ne,0))),ce=$(Ze/Ne)}W.push(k(x(ce,0))),Oe=V(Se,qt,Ye==ft),Se=0,++Ye}}}catch(Te){ks=!0,Ts=Te}finally{try{!Mt&&P.return&&P.return()}finally{if(ks)throw Ts}}++Se,++ye}return W.join("")}(A):A})},j=function(O){return S(O,function(A){return m.test(A)?function(F){var W,ae=[],ye=F.length,Se=0,Oe=128,De=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,ft=u;;ft+=u){_e>=ye&&_("invalid-input");var Ye=(W=F.charCodeAt(_e++))-48<10?W-22:W-65<26?W-65:W-97<26?W-97:u;(Ye>=u||Ye>$((h-Se)/Ke))&&_("overflow"),Se+=Ye*Ke;var ht=ft<=De?1:ft>=De+26?26:ft-De;if(Ye<ht)break;var wt=u-ht;Ke>$(h/wt)&&_("overflow"),Ke*=wt}var Et=ae.length+1;De=V(Se-Ge,Et,Ge==0),$(Se/Et)>h-Oe&&_("overflow"),Oe+=$(Se/Et),Se%=Et,ae.splice(Se++,0,Oe)}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 N(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),Oe=parseInt(O.substr(F+7,2),16);A+=String.fromCharCode((15&ae)<<12|(63&Se)<<6|63&Oe)}else A+=O.substr(F,9);F+=9}else A+=O.substr(F,3),F+=3}return A}function M(O,A){function F(W){var ae=N(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 R(O){return O.replace(/^0*(.*)/,"$1")||"0"}function Y(O,A){var F=O.match(A.IPV4ADDRESS)||[],W=d(F,2)[1];return W?W.split(".").map(R).join("."):O}function K(O,A){var F=O.match(A.IPV6ADDRESS)||[],W=d(F,3),ae=W[1],ye=W[2];if(ae){for(var Se=ae.toLowerCase().split("::").reverse(),Oe=d(Se,2),De=Oe[0],Ue=Oe[1],et=Ue?Ue.split(":").map(R):[],_e=De.split(":").map(R),Ge=A.IPV4ADDRESS.test(_e[_e.length-1]),Ke=Ge?7:8,ft=_e.length-Ke,Ye=Array(Ke),ht=0;ht<Ke;++ht)Ye[ht]=et[ht]||_e[ft+ht]||"";Ge&&(Ye[Ke-1]=Y(Ye[Ke-1],A));var wt=Ye.reduce(function(jt,Ft,qt){if(!Ft||Ft==="0"){var Mt=jt[jt.length-1];Mt&&Mt.index+Mt.length===qt?Mt.length++:jt.push({index:qt,length:1})}return jt},[]).sort(function(jt,Ft){return Ft.length-jt.length})[0],Et=void 0;if(wt&&wt.length>1){var or=Ye.slice(0,wt.index),ar=Ye.slice(wt.index+wt.length);Et=or.join(":")+"::"+ar.join(":")}else Et=Ye.join(":");return ye&&(Et+="%"+ye),Et}return O}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,te="".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(J);if(ae){te?(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)M(F,W);else{if(F.host&&(A.domainHost||ye&&ye.domainHost))try{F.host=B(F.host.replace(W.PCT_ENCODED,N).toLowerCase())}catch(Se){F.error=F.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}M(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 T=/^\.\.?\//,L=/^\/\.(\/|$)/,H=/^\/\.\.(\/|$)/,Z=/^\/?(?:.|\n)*?(?=\/|$)/;function Q(O){for(var A=[];O.length;)if(O.match(T))O=O.replace(T,"");else if(O.match(L))O=O.replace(L,"/");else if(O.match(H))O=O.replace(H,"/"),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):B(O.host.replace(F.PCT_ENCODED,N).toLowerCase())}catch(Oe){O.error=O.error||"Host's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+Oe}}M(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,N)}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}},Pe={scheme:"https",domainHost:se.domainHost,parse:se.parse,serialize:se.serialize};function ke(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=ke(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!==(ke(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=d(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}},X={scheme:"wss",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize},qe={},ze="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",we="[0-9A-Fa-f]",D=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(D,"g"),oe=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',z),"g"),ie=new RegExp(n("[^]",ze,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ve=ie;function Ce(O){var A=N(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("&"),Oe=0,De=Se.length;Oe<De;++Oe){var Ue=Se[Oe].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,ft=W.length;Ke<ft;++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]=B(be(Ye[1],A).toLowerCase())}catch(ht){F.error=F.error||"Email address's domain name can not be converted to ASCII via punycode: "+ht}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 Oe=String(ae[ye]),De=Oe.lastIndexOf("@"),Ue=Oe.slice(0,De).replace(ue,Ce).replace(ue,o).replace(oe,C),et=Oe.slice(De+1);try{et=A.iri?j(et):B(be(et,A).toLowerCase())}catch(ft){W.error=W.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+ft}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]!==qe[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}},Re=/^([^\:]+)\:(.*)/,Ht={scheme:"urn",parse:function(O,A){var F=O.path&&O.path.match(Re),W=O;if(F){var ae=A.scheme||W.scheme||"urn",ye=F[1].toLowerCase(),Se=F[2],Oe=E[ae+":"+(A.nid||ye)];W.nid=ye,W.nss=Se,W.path=void 0,Oe&&(W=Oe.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}},Tt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,bt={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(Tt)||(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[Pe.scheme]=Pe,E[$e.scheme]=$e,E[X.scheme]=X,E[pe.scheme]=pe,E[Ht.scheme]=Ht,E[bt.scheme]=bt,r.SCHEMES=E,r.pctEncChar=C,r.pctDecChars=N,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 Oe in ye)Se[Oe]=ye[Oe];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)});$u.code='require("ajv/dist/runtime/uri").default';var Uy=Object.defineProperty({default:$u},"__esModule",{value:!0}),Wy=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 Cn.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,N,M,R,Y,K,J,te,ne,I,T,L,H,Z,Q,le,U,be,se,Pe,ke,$e,X,qe;const ze=j.strict,we=(E=j.code)===null||E===void 0?void 0:E.optimize,D=we===!0||we===void 0?1:we||0,z=(N=(C=j.code)===null||C===void 0?void 0:C.regExp)!==null&&N!==void 0?N:n,G=(M=j.uriResolver)!==null&&M!==void 0?M:Uy.default;return{strictSchema:(Y=(R=j.strictSchema)!==null&&R!==void 0?R:ze)===null||Y===void 0||Y,strictNumbers:(J=(K=j.strictNumbers)!==null&&K!==void 0?K:ze)===null||J===void 0||J,strictTypes:(ne=(te=j.strictTypes)!==null&&te!==void 0?te:ze)!==null&&ne!==void 0?ne:"log",strictTuples:(T=(I=j.strictTuples)!==null&&I!==void 0?I:ze)!==null&&T!==void 0?T:"log",strictRequired:(H=(L=j.strictRequired)!==null&&L!==void 0?L:ze)!==null&&H!==void 0&&H,code:j.code?{...j.code,optimize:D,regExp:z}:{optimize:D,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:(Pe=j.addUsedSchema)===null||Pe===void 0||Pe,validateSchema:(ke=j.validateSchema)===null||ke===void 0||ke,validateFormats:($e=j.validateFormats)===null||$e===void 0||$e,unicodeRegExp:(X=j.unicodeRegExp)===null||X===void 0||X,int32range:(qe=j.int32range)===null||qe===void 0||qe,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:N}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:i,es5:C,lines:N}),this.logger=function(R){if(R===!1)return b;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}(E.logger);const M=E.validateFormats;E.validateFormats=!1,this.RULES=(0,xu.getRules)(),d.call(this,o,E,"NOT SUPPORTED"),d.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),u.call(this),E.validateFormats=M}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:E,meta:C,schemaId:N}=this.opts;let M=Eu;N==="id"&&(M={...Eu},M.id=M.$id,delete M.$id),C&&E&&this.addMetaSchema(M,M[N],!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 N;if(typeof E=="string"){if(N=this.getSchema(E),!N)throw new Error(`no schema with key or ref "${E}"`)}else N=this.compile(E);const M=N(C);return"$async"in N||(this.errors=N.errors),M}compile(E,C){const N=this._addSchema(E,C);return N.validate||this._compileSchemaEnv(N)}compileAsync(E,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:N}=this.opts;return M.call(this,E,C);async function M(ne,I){await R.call(this,ne.$schema);const T=this._addSchema(ne,I);return T.validate||Y.call(this,T)}async function R(ne){ne&&!this.getSchema(ne)&&await M.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 J.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 J(ne){const I=await te.call(this,ne);this.refs[ne]||await R.call(this,I.$schema),this.refs[ne]||this.addSchema(I,ne,C)}async function te(ne){const I=this._loading[ne];if(I)return I;try{return await(this._loading[ne]=N(ne))}finally{delete this._loading[ne]}}}addSchema(E,C,N,M=this.opts.validateSchema){if(Array.isArray(E)){for(const Y of E)this.addSchema(Y,void 0,N,M);return this}let R;if(typeof E=="object"){const{schemaId:Y}=this.opts;if(R=E[Y],R!==void 0&&typeof R!="string")throw new Error(`schema ${Y} must be string`)}return C=(0,dt.normalizeId)(C||R),this._checkUnique(C),this.schemas[C]=this._addSchema(E,N,C,M,!0),this}addMetaSchema(E,C,N=this.opts.validateSchema){return this.addSchema(E,C,!0,N),this}validateSchema(E,C){if(typeof E=="boolean")return!0;let N;if(N=E.$schema,N!==void 0&&typeof N!="string")throw new Error("$schema must be a string");if(N=N||this.opts.defaultMeta||this.defaultMeta(),!N)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const M=this.validate(N,E);if(!M&&C){const R="schema is invalid: "+this.errorsText();if(this.opts.validateSchema!=="log")throw new Error(R);this.logger.error(R)}return M}getSchema(E){let C;for(;typeof(C=h.call(this,E))=="string";)E=C;if(C===void 0){const{schemaId:N}=this.opts,M=new ir.SchemaEnv({schema:{},schemaId:N});if(C=ir.resolveSchema.call(this,M,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,dt.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 N;if(typeof E=="string")N=E,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=N);else{if(typeof E!="object"||C!==void 0)throw new Error("invalid addKeywords parameters");if(N=(C=E).keyword,Array.isArray(N)&&!N.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(k.call(this,N,C),!C)return(0,ge.eachItem)(N,R=>_.call(this,R)),this;x.call(this,C);const M={...C,type:(0,Kt.getJSONTypes)(C.type),schemaType:(0,Kt.getJSONTypes)(C.schemaType)};return(0,ge.eachItem)(N,M.type.length===0?R=>_.call(this,R,M):R=>M.type.forEach(Y=>_.call(this,R,M,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 N of C.rules){const M=N.rules.findIndex(R=>R.keyword===E);M>=0&&N.rules.splice(M,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:N="data"}={}){return E&&E.length!==0?E.map(M=>`${N}${M.instancePath} ${M.message}`).reduce((M,R)=>M+C+R):"No errors"}$dataMetaSchema(E,C){const N=this.RULES.all;E=JSON.parse(JSON.stringify(E));for(const M of C){const R=M.split("/").slice(1);let Y=E;for(const K of R)Y=Y[K];for(const K in N){const J=N[K];if(typeof J!="object")continue;const{$data:te}=J.definition,ne=Y[K];te&&ne&&(Y[K]=B(ne))}}return E}_removeAllSchemas(E,C){for(const N in E){const M=E[N];C&&!C.test(N)||(typeof M=="string"?delete E[N]:M&&!M.meta&&(this._cache.delete(M.schema),delete E[N]))}}_addSchema(E,C,N,M=this.opts.validateSchema,R=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 J=this._cache.get(E);if(J!==void 0)return J;N=(0,dt.normalizeId)(Y||N);const te=dt.getSchemaRefs.call(this,E,N);return J=new ir.SchemaEnv({schema:E,schemaId:K,meta:C,baseId:N,localRefs:te}),this._cache.set(J.schema,J),R&&!N.startsWith("#")&&(N&&this._checkUnique(N),this.refs[N]=J),M&&this.validateSchema(E,!0),J}_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 d(j,E,C,N="error"){for(const M in j){const R=M;R in E&&this.logger[N](`${C}: option ${M}. ${j[R]}`)}}function h(j){return j=(0,dt.normalizeId)(j),this.schemas[j]||this.refs[j]}function u(){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=Su.default,c.MissingRefError=eo.default;const b={log(){},warn(){},error(){}},$=/^[a-z_$][a-z0-9_$:-]*$/i;function k(j,E){const{RULES:C}=this;if((0,ge.eachItem)(j,N=>{if(C.keywords[N])throw new Error(`Keyword ${N} is already defined`);if(!$.test(N))throw new Error(`Keyword ${N} 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 N;const M=E==null?void 0:E.post;if(C&&M)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:R}=this;let Y=M?R.post:R.rules.find(({type:J})=>J===C);if(Y||(Y={type:C,rules:[]},R.rules.push(Y)),R.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?S.call(this,Y,K,E.before):Y.rules.push(K),R.all[j]=K,(N=E.implements)===null||N===void 0||N.forEach(J=>this.addKeyword(J))}function S(j,E,C){const N=j.rules.findIndex(M=>M.keyword===C);N>=0?j.rules.splice(N,0,E):(j.rules.push(E),this.logger.warn(`rule ${C} is not defined`))}function x(j){let{metaSchema:E}=j;E!==void 0&&(j.$data&&this.opts.$data&&(E=B(E)),j.validateSchema=this.compile(E,!0))}const V={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function B(j){return{anyOf:[j,V]}}}),Hy=Object.defineProperty({default:{keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},"__esModule",{value:!0}),qy=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:d,validateName:h,opts:u,self:m}=l,{root:p}=d;if((a==="#"||a==="#/")&&c===p.baseId)return function(){if(d===p)return s(i,h,d,d.$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",u.code.source===!0?{ref:b,code:(0,g.stringify)(b)}:{ref:b}),k=o.name("valid"),_=i.subschema({schema:b,dataTypes:[],schemaPath:g.nil,topSchemaRef:$,errSchemaPath:a},k);i.mergeEvaluated(_),i.ok(k)}(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:d}=i,{allErrors:h,schemaEnv:u,opts:m}=d,p=m.passContext?ee.default.this:g.nil;function y($){const k=g._`${$}.errors`;c.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${k} : ${ee.default.vErrors}.concat(${k})`),c.assign(ee.default.errors,g._`${ee.default.vErrors}.length`)}function b($){var k;if(!d.opts.unevaluated)return;const _=(k=a==null?void 0:a.validate)===null||k===void 0?void 0:k.evaluated;if(d.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(d.props=ge.mergeEvaluated.props(c,_.props,d.props));else{const S=c.var("props",g._`${$}.evaluated.props`);d.props=ge.mergeEvaluated.props(c,S,d.props,g.Name)}if(d.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(d.items=ge.mergeEvaluated.items(c,_.items,d.items));else{const S=c.var("items",g._`${$}.evaluated.items`);d.items=ge.mergeEvaluated.items(c,S,d.items,g.Name)}}l?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const $=c.let("valid");c.try(()=>{c.code(g._`await ${(0,nt.callValidateCode)(i,o,p)}`),b(o),h||c.assign($,!0)},k=>{c.if(g._`!(${k} instanceof ${d.ValidationError})`,()=>c.throw(k)),y(k),h||c.assign($,!1)}),i.ok($)}():i.result((0,nt.callValidateCode)(i,o,p),()=>b(o),()=>y(o))}e.getValidate=n,e.callRef=s,e.default=r}),Gy=Object.defineProperty({default:["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Hy.default,qy.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}},Yy={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}}`},Zy={keyword:Object.keys(_s),type:"number",schemaType:"number",$data:!0,error:Yy,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`${r} ${_s[e].fail} ${n} || isNaN(${r})`)}};var Ky=Object.defineProperty({default:Zy},"__esModule",{value:!0}),Jy=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 _u(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 Xy=_u;_u.code='require("ajv/dist/runtime/ucs2length").default';var Qy=Object.defineProperty({default:Xy},"__esModule",{value:!0}),ev=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,Qy.default)}(${r})`;t.fail$data(g._`${o} ${i} ${n}`)}}},"__esModule",{value:!0}),tv=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,nt.usePattern)(t,n);t.fail$data(g._`!${o}.test(${e})`)}}},"__esModule",{value:!0}),rv=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}),nv=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 d of r)(0,nt.checkReportMissingProp)(t,d)}():function(){const d=e.let("missing");if(l||i){const h=e.let("valid",!0);t.block$data(h,()=>function(u,m){t.setParams({missingProperty:u}),e.forOf(u,n,()=>{e.assign(m,(0,nt.propertyInData)(e,s,u,a.ownProperties)),e.if((0,g.not)(m),()=>{t.error(),e.break()})},g.nil)}(d,h)),t.ok(h)}else e.if((0,nt.checkMissingProp)(t,r,d)),(0,nt.reportMissingProp)(t,d),e.else()}(),a.strictRequired){const d=t.parentSchema.properties,{definedProperties:h}=t.it;for(const u of r)(d==null?void 0:d[u])!==void 0||h.has(u)||(0,ge.checkStrictMode)(o,`required property "${u}" is not defined at "${o.schemaEnv.baseId+o.errSchemaPath}" (strictRequired)`,o.opts.strictRequired)}function c(){e.forOf("prop",n,d=>{t.setParams({missingProperty:d}),e.if((0,nt.noPropertyInData)(e,s,d,a.ownProperties),()=>t.error())})}}}},"__esModule",{value:!0}),sv=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}),iv=Object.defineProperty({default:[Ky.default,Jy.default,ev.default,tv.default,rv.default,nv.default,sv.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 d(u,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._`;${u}--;`,()=>{e.let(p,g._`${r}[${u}]`),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}] = ${u}`)})}function h(u,m){const p=(0,ge.useFunc)(e,to.default),y=e.name("outer");e.label(y).for(g._`;${u}--;`,()=>e.for(g._`${m} = ${u}; ${m}--;`,()=>e.if(g._`${p}(${r}[${u}], ${r}[${m}])`,()=>{t.error(),e.assign(l,!1).break(y)})))}t.block$data(l,function(){const u=e.let("i",g._`${r}.length`),m=e.let("j");t.setParams({i:u,j:m}),e.assign(l,!0),e.if(g._`${u} > 1`,()=>(c.length>0&&!c.some(p=>p==="object"||p==="array")?d:h)(u,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,d=>e.if(g._`${l()}(${r}, ${d})`,()=>e.assign(c,!0).break()))});else{if(!Array.isArray(s))throw new Error("ajv implementation error");const d=e.const("vSchema",i);c=(0,g.or)(...s.map((h,u)=>function(m,p){const y=s[p];return typeof y=="object"&&y!==null?g._`${l()}(${r}, ${m}[${p}])`:g._`${r} === ${y}`}(d,u)))}t.pass(c)}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),ku=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:d}=s;d.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)(d,a)){const u=o.var("valid",g._`${h} <= ${i.length}`);o.if((0,g.not)(u),()=>function(m){o.forRange("i",i.length,h,p=>{s.subschema({keyword:c,dataProp:p,dataPropType:ge.Type.Num},m),d.allErrors||o.if((0,g.not)(m),()=>o.break())})}(u)),s.ok(u)}}e.validateAdditionalItems=n,e.default=r}),Tu=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,nt.validateArray)(s))}};function n(s,i,o=s.schema){const{gen:a,parentSchema:l,data:c,keyword:d,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,`"${d}" 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 u=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:d,schemaProp:y,dataProp:y},u)),s.ok(u))})}e.validateTuple=n,e.default=r}),ov=Object.defineProperty({default:{keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Tu.validateTuple)(t,"items")}},"__esModule",{value:!0}),av=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,ku.validateAdditionalItems)(t,s):t.ok((0,nt.validateArray)(t)))}}},"__esModule",{value:!0}),lv=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 d=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._`${d} >= ${o}`;return a!==void 0&&(p=g._`${p} && ${d} <= ${a}`),void t.pass(p)}i.items=!0;const h=e.name("valid");function u(){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,d,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`,u)):(e.let(h,!1),u()),t.result(h,()=>t.reset())}}},"__esModule",{value:!0}),cv=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},
203
203
  missingProperty: ${l},
204
204
  depsCount: ${o},
205
- deps: ${a}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[o,a]=function({schema:l}){const c={},d={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:d)[h]=l[h]);return[c,d]}(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 d=a.let("missing");for(const h in o){const u=o[h];if(u.length===0)continue;const m=(0,nt.propertyInData)(a,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:u.length,deps:u.join(", ")}),c.allErrors?a.if(m,()=>{for(const p of u)(0,nt.checkReportMissingProp)(i,p)}):(a.if(g._`${m} && (${(0,nt.checkMissingProp)(i,u,d)})`),(0,nt.reportMissingProp)(i,d),a.else())}}function s(i,o=i.schema){const{gen:a,data:l,keyword:c,it:d}=i,h=a.name("valid");for(const u in o)(0,ge.alwaysValidSchema)(d,o[u])||(a.if((0,nt.propertyInData)(a,l,u,d.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:u},h);i.mergeValidEvaluated(m,h)},()=>a.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),uv=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,nt.allSchemaProperties)(n.properties),d=(0,nt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function u(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||d.length?e.if(function(y){let b;if(c.length>8){const $=(0,ge.schemaRefOrVal)(o,n.properties,"properties");b=(0,nt.isOwnProperty)(e,$,y)}else b=c.length?(0,g.or)(...c.map($=>g._`${y} === ${$}`)):g.nil;return d.length&&(b=(0,g.or)(b,...d.map($=>g._`${(0,nt.usePattern)(t,$)}.test(${y})`))),(0,g.not)(b)}(p),()=>u(p)):u(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),dv=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 Cn.KeywordCxt(i,ro.default,"additionalProperties"));const o=(0,nt.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)?d(h):(e.if((0,nt.propertyInData)(e,s,h,i.opts.ownProperties)),d(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 d(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const ju=ge;var fv=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,nt.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,d=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,ju.evaluatedPropsToName)(e,i.props));const{props:h}=i;function u(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,nt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:ju.Type.Str},d),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(d),()=>e.break())})})}(function(){for(const p of a)c&&u(p),i.allErrors?m(p):(e.var(d,!0),m(p),e.if(d))})()}}},"__esModule",{value:!0}),hv=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}),mv=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:nt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),pv=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,d)=>{let h;(0,ge.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if(g._`${l} && ${o}`).assign(o,!1).assign(a,g._`[${a}, ${d}]`).else(),e.if(l,()=>{e.assign(o,!0),e.assign(a,d),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(o,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),gv=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 Ou(t,e){const r=t.schema[e];return r!==void 0&&!(0,ge.alwaysValidSchema)(t,r)}var yv=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=Ou(n,"then"),i=Ou(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,d){return()=>{const h=t.subschema({keyword:c},a);e.assign(o,a),t.mergeValidEvaluated(h,o),d?e.assign(d,g._`${c}`):t.setParams({ifClause:c})}}t.pass(o,()=>t.error(!0))}}},"__esModule",{value:!0}),vv=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}),bv=Object.defineProperty({default:function(t=!1){const e=[hv.default,mv.default,pv.default,gv.default,yv.default,vv.default,uv.default,ro.default,cv.default,dv.default,fv.default];return t?e.push(ov.default,av.default):e.push(ku.default,Tu.default),e.push(lv.default),e}},"__esModule",{value:!0}),wv=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:d,self:h}=a;l.validateFormats&&(s?function(){const u=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${u}[${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=d.$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 u=h.formats[i];if(!u)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(u===!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,k=r.scopeValue("formats",{key:i,ref:b,code:$});return typeof b!="object"||b instanceof RegExp?["string",b,k]:[b.type||"string",b.validate,g._`${k}.validate`]}(u);m===e&&t.pass(function(){if(typeof u=="object"&&!(u instanceof RegExp)&&u.async){if(!d.$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}),Cu=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 xv=[Gy.default,iv.default,(0,bv.default)(),wv.default,Cu.metadataVocabulary,Cu.contentVocabulary];var Sv=Object.defineProperty({default:xv},"__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"}),Ev=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 d(h){const u=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},u);return t.mergeEvaluated(m,g.Name),u}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var u;const m={},p=b(s);let y=!0;for(let _=0;_<o.length;_++){let S=o[_];S!=null&&S.$ref&&!(0,ge.schemaHasRulesButRef)(S,i.self.RULES)&&(S=ir.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,S==null?void 0:S.$ref),S instanceof ir.SchemaEnv&&(S=S.schema));const x=(u=S==null?void 0:S.properties)===null||u===void 0?void 0:u[a];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(p||b(S)),$(x,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function $(_,S){if(_.const)k(_.const,S);else{if(!_.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const x of _.enum)k(x,S)}}function k(_,S){if(typeof _!="string"||_ in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[_]=S}}();e.if(!1);for(const u in h)e.elseIf(g._`${c} === ${u}`),e.assign(l,d(h[u]));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}),Pu={$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 Wy.default{_addVocabularies(){super._addVocabularies(),Sv.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Ev.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const o=this.opts.$data?this.$dataMetaSchema(Pu,r):Pu;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 Cn.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}})}),$v=bu(fe),_v=bu(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(d){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:u,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const $=p,k=g.strConcat(ee.default.instancePath,b.errorPath);function _(B,j){return g.and(fe._`${B}.keyword !== ${r}`,fe._`!${B}.${n}`,fe._`${B}.instancePath === ${k}`,fe._`${B}.keyword in ${j}`,fe._`${B}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${B}.schemaPath.slice(${b.errSchemaPath.length}))`)}function S(B,j){const E=[];for(const C in B){const N=j[C];i.test(N)&&E.push([C,V(N)])}return u.object(...E)}function x(B){return i.test(B)?new xe._Code(xe.safeStringify(B).replace(o,(j,E)=>`" + JSON.stringify(${Cn.getData(E,b)}) + "`).replace(a,"")):fe.stringify(B)}function V(B){return fe._`function(){return ${x(B)}}`}u.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof $=="object"){const[j,E]=function(C){let N,M;for(const R in C){if(R==="properties"||R==="items")continue;const Y=C[R];if(typeof Y=="object"){N||(N={});const K=N[R]={};for(const J in Y)K[J]=[]}else M||(M={}),M[R]=[]}return[N,M]}($);E&&function(C){const N=u.const("emErrors",fe.stringify(C)),M=u.const("templates",S(C,p));u.forOf("err",ee.default.vErrors,J=>u.if(_(J,N),()=>u.code(fe._`${N}[${J}.keyword].push(${J})`).assign(fe._`${J}.${n}`,!0)));const{singleError:R}=d;if(R){const J=u.let("message",fe._`""`),te=u.let("paramsErrors",fe._`[]`);Y(ne=>{u.if(J,()=>u.code(fe._`${J} += ${typeof R=="string"?R:";"}`)),u.code(fe._`${J} += ${K(ne)}`),u.assign(te,fe._`${te}.concat(${N}[${ne}])`)}),Ct.reportError(h,{message:J,params:fe._`{errors: ${te}}`})}else Y(J=>Ct.reportError(h,{message:K(J),params:fe._`{errors: ${N}[${J}]}`}));function Y(J){u.forIn("key",N,te=>u.if(fe._`${N}[${te}].length`,()=>J(te)))}function K(J){return fe._`${J} in ${M} ? ${M}[${J}]() : ${y}[${J}]`}}(E),j&&function(C){const N=u.const("emErrors",fe.stringify(C)),M=[];for(const te in C)M.push([te,S(C[te],p[te])]);const R=u.const("templates",u.object(...M)),Y=u.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=u.let("emPropParams"),J=u.let("emParamsErrors");u.forOf("err",ee.default.vErrors,te=>u.if(_(te,N),()=>{u.assign(K,fe._`${Y}[${te}.keyword]`),u.assign(J,fe._`${N}[${te}.keyword][${te}.params[${K}]]`),u.if(J,()=>u.code(fe._`${J}.push(${te})`).assign(fe._`${te}.${n}`,!0))})),u.forIn("key",N,te=>u.forIn("keyProp",fe._`${N}[${te}]`,ne=>{u.assign(J,fe._`${N}[${te}][${ne}]`),u.if(fe._`${J}.length`,()=>{const I=u.const("tmpl",fe._`${R}[${te}] && ${R}[${te}][${ne}]`);Ct.reportError(h,{message:fe._`${I} ? ${I}() : ${y}[${te}][${ne}]`,params:fe._`{errors: ${J}}`})})}))}(j),function(C){const{props:N,items:M}=C;if(!N&&!M)return;const R=fe._`typeof ${m} == "object"`,Y=fe._`Array.isArray(${m})`,K=u.let("emErrors");let J,te;const ne=u.let("templates");function I(T,L){u.assign(K,fe.stringify(T)),u.assign(ne,S(T,L))}N&&M?(J=u.let("emChildKwd"),u.if(R),u.if(Y,()=>{I(M,p.items),u.assign(J,fe.str`items`)},()=>{I(N,p.properties),u.assign(J,fe.str`properties`)}),te=fe._`[${J}]`):M?(u.if(Y),I(M,p.items),te=fe._`.items`):N&&(u.if(g.and(R,g.not(Y))),I(N,p.properties),te=fe._`.properties`),u.forOf("err",ee.default.vErrors,T=>function(L,H,Z){u.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${k}) === 0`),()=>{const Q=u.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=u.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${k}.length))`),U=u.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);u.if(fe._`${U} !== undefined && ${U} in ${H}`,()=>Z(U))})}(T,K,L=>u.code(fe._`${K}[${L}].push(${T})`).assign(fe._`${T}.${n}`,!0))),u.forIn("key",K,T=>u.if(fe._`${K}[${T}].length`,()=>{Ct.reportError(h,{message:fe._`${T} in ${ne} ? ${ne}[${T}]() : ${y}${te}[${T}]`,params:fe._`{errors: ${K}[${T}]}`}),u.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${k} + "/" + ${T}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),u.endIf()}(function({properties:C,items:N}){const M={};if(C){M.props={};for(const R in C)M.props[R]=[]}if(N){M.items={};for(let R=0;R<N.length;R++)M.items[R]=[]}return M}($))}const B=typeof $=="string"?$:$._;B&&function(j){const E=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,C=>u.if(function(N){return g.and(fe._`${N}.keyword !== ${r}`,fe._`!${N}.${n}`,g.or(fe._`${N}.instancePath === ${k}`,g.and(fe._`${N}.instancePath.indexOf(${k}) === 0`,fe._`${N}.instancePath[${k}.length] === "/"`)),fe._`${N}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${N}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(C),()=>u.code(fe._`${E}.push(${C})`).assign(fe._`${C}.${n}`,!0))),u.if(fe._`${E}.length`,()=>Ct.reportError(h,{message:x(j),params:fe._`{errors: ${E}}`}))}(B),d.keepErrors||function(){const j=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,E=>u.if(fe._`!${E}.${n}`,()=>u.code(fe._`${j}.push(${E})`))),u.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=(d,h={})=>{if(!d.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(d.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return d.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),kv=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]=eu(s,e,r,n.keyword,o?[].concat(o,n.message||""):n.message)}return r},{})},Tv=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var o,a=new $v(vu({allErrors:!0,validateSchema:!0},e));_v(a);var l=a.compile(Object.assign({$async:((o=r)==null?void 0:o.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&yu({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:My(kv(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function jv(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=jy({defaultValues:r??{},resolver:e?Tv(e,{strict:!1,addFormats:!0}):void 0}),[o]=pt(),{handleSubmit:a,setError:l}=i,[c,d]=w.useState(null),h=Vt("md"),[u]=w.useContext(zr),m=t.isVertical?!1:u.formLayout==="horizontal",y=(t.singleColumn?!1:u.formColumns==="multiple")?1600:m?960:800;let b=f.jsx(gy,{...i,children:f.jsxs(v.Form,{onSubmit:a(async $=>{d(null);try{await t.onSubmit($,k=>d(new Error(k)),l)}catch(k){if(k instanceof Error?d(k):d(new Error("Unknown error")),typeof k=="object"&&k!==null&&"json"in k&&typeof k.json=="object"&&k.json!==null)for(const _ in k.json){let S=k.json[_];typeof S=="string"?l(_,{message:S}):Array.isArray(S)&&(S=S[0],typeof S=="string"&&l(_,{message:S}))}}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):f.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&f.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?f.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:f.jsxs(v.ActionGroup,{style:{marginTop:0},children:[f.jsx(io,{children:t.submitText}),t.onCancel&&f.jsx(Nu,{onCancel:t.onCancel,children:t.cancelText??o.cancelText})]})}):f.jsx(io,{style:{marginTop:48},children:t.submitText})]})});return n||(b=f.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 f.jsx(f.Fragment,{children:f.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}=Kc(),n=r&&Object.keys(r).length>0;return f.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:f.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function Nu(t){return f.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const i0="";function Ov(t){return f.jsx(Vo,{children:f.jsx(ba,{children:f.jsx(va,{children:f.jsx(pa,{children:f.jsx(Ep,{callback:t.navigate,children:t.children})})})})})}function Cv(t){const e=Xl();return t.breadcrumbs?f.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?f.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?f.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):f.jsx(w.Fragment,{},n))}):f.jsx(w.Fragment,{})}function Pv(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:o,footer:a}=t,l=Vt("lg"),c=Vt("xl"),d=Vt("md"),[h]=pt();return f.jsxs(f.Fragment,{children:[e&&f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:f.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:f.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:f.jsxs(v.Stack,{hasGutter:!0,children:[f.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[f.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&f.jsx(Cv,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?f.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:f.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?f.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((u,m)=>f.jsx(v.StackItem,{children:u},m)),t.titleDocLink&&f.jsx(v.StackItem,{children:f.jsx(v.Button,{icon:f.jsx(Ae.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:f.jsxs(v.Title,{headingLevel:"h1",children:[n,f.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:f.jsx(Ae.OutlinedQuestionCircleIcon,{})})]})}):f.jsx(v.Title,{headingLevel:"h1",children:n}):f.jsx(v.Title,{headingLevel:"h1",children:f.jsx(v.Skeleton,{width:"160px"})}),d&&s&&f.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?f.jsx(v.Truncate,{content:s}):f.jsx(v.Stack,{children:s.map(u=>f.jsx(v.StackItem,{children:u},u))})})]}),n&&(o||i)&&f.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&f.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),o&&f.jsx(v.FlexItem,{children:o})]})]}),a]})})]})}function Nv(t){const[e]=pt();return f.jsx(ga,{message:e.errorText,children:f.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function Du(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 d=l.props.label;return f.jsx(v.Tab,{title:d||f.jsx(v.Skeleton,{width:"60px"}),eventKey:c},d??c)}return l}),a=i[r];return e?f.jsx(Du,{children:f.jsx(oo,{children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})}):f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.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&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),a]})}function oo(t){return f.jsx(f.Fragment,{children:t.children})}function Dv(t){const{activeKey:e,setActiveKey:r}=t,n=w.useCallback((s,i)=>r(i),[r]);return f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:f.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}function Iu(t){const{isLoading:e}=t,r=To(),n=$r(),s=Od(),i=Pn(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:d}=c.props;return n.pathname===Pn(d,s)});w.useEffect(()=>{if(a===-1){const c=o[0].props.url;r(Pn(c,s))}});const l=w.useCallback((c,d)=>{const h=o[Number(d)];if(h){c.preventDefault();const u=h.props.url;r(Pn(u,s))}},[r,o,s]);return e?f.jsx(Iu,{baseUrl:i,children:f.jsx(ao,{url:"#",children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})}):f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.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,d)=>{const{label:h,url:u}=c.props;return f.jsx(v.Tab,{title:h||f.jsx(v.Skeleton,{width:"60px"}),eventKey:d,href:Pn(u,s)},h??d)})})}),t.postComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),f.jsx(Ld,{children:o.map((c,d)=>{const{label:h,url:u="",children:m}=c.props;return f.jsx(Po,{path:u.replace(t.baseUrl.replace("*",""),""),element:m},h??d)})})]})}function ao(t){return f.jsx(f.Fragment,{children:t.children})}function Pn(t,e){let r=t;return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n]??`:${n}`)}),r}const Iv=th`
205
+ deps: ${a}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[o,a]=function({schema:l}){const c={},d={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:d)[h]=l[h]);return[c,d]}(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 d=a.let("missing");for(const h in o){const u=o[h];if(u.length===0)continue;const m=(0,nt.propertyInData)(a,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:u.length,deps:u.join(", ")}),c.allErrors?a.if(m,()=>{for(const p of u)(0,nt.checkReportMissingProp)(i,p)}):(a.if(g._`${m} && (${(0,nt.checkMissingProp)(i,u,d)})`),(0,nt.reportMissingProp)(i,d),a.else())}}function s(i,o=i.schema){const{gen:a,data:l,keyword:c,it:d}=i,h=a.name("valid");for(const u in o)(0,ge.alwaysValidSchema)(d,o[u])||(a.if((0,nt.propertyInData)(a,l,u,d.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:u},h);i.mergeValidEvaluated(m,h)},()=>a.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),uv=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,nt.allSchemaProperties)(n.properties),d=(0,nt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function u(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||d.length?e.if(function(y){let b;if(c.length>8){const $=(0,ge.schemaRefOrVal)(o,n.properties,"properties");b=(0,nt.isOwnProperty)(e,$,y)}else b=c.length?(0,g.or)(...c.map($=>g._`${y} === ${$}`)):g.nil;return d.length&&(b=(0,g.or)(b,...d.map($=>g._`${(0,nt.usePattern)(t,$)}.test(${y})`))),(0,g.not)(b)}(p),()=>u(p)):u(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),dv=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 Cn.KeywordCxt(i,ro.default,"additionalProperties"));const o=(0,nt.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)?d(h):(e.if((0,nt.propertyInData)(e,s,h,i.opts.ownProperties)),d(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 d(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const ju=ge;var fv=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,nt.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,d=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,ju.evaluatedPropsToName)(e,i.props));const{props:h}=i;function u(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,nt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:ju.Type.Str},d),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(d),()=>e.break())})})}(function(){for(const p of a)c&&u(p),i.allErrors?m(p):(e.var(d,!0),m(p),e.if(d))})()}}},"__esModule",{value:!0}),hv=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}),mv=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:nt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),pv=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,d)=>{let h;(0,ge.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if(g._`${l} && ${o}`).assign(o,!1).assign(a,g._`[${a}, ${d}]`).else(),e.if(l,()=>{e.assign(o,!0),e.assign(a,d),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(o,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),gv=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 Ou(t,e){const r=t.schema[e];return r!==void 0&&!(0,ge.alwaysValidSchema)(t,r)}var yv=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=Ou(n,"then"),i=Ou(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,d){return()=>{const h=t.subschema({keyword:c},a);e.assign(o,a),t.mergeValidEvaluated(h,o),d?e.assign(d,g._`${c}`):t.setParams({ifClause:c})}}t.pass(o,()=>t.error(!0))}}},"__esModule",{value:!0}),vv=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}),bv=Object.defineProperty({default:function(t=!1){const e=[hv.default,mv.default,pv.default,gv.default,yv.default,vv.default,uv.default,ro.default,cv.default,dv.default,fv.default];return t?e.push(ov.default,av.default):e.push(ku.default,Tu.default),e.push(lv.default),e}},"__esModule",{value:!0}),wv=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:d,self:h}=a;l.validateFormats&&(s?function(){const u=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${u}[${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=d.$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 u=h.formats[i];if(!u)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(u===!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,k=r.scopeValue("formats",{key:i,ref:b,code:$});return typeof b!="object"||b instanceof RegExp?["string",b,k]:[b.type||"string",b.validate,g._`${k}.validate`]}(u);m===e&&t.pass(function(){if(typeof u=="object"&&!(u instanceof RegExp)&&u.async){if(!d.$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}),Cu=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 xv=[Gy.default,iv.default,(0,bv.default)(),wv.default,Cu.metadataVocabulary,Cu.contentVocabulary];var Sv=Object.defineProperty({default:xv},"__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"}),Ev=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 d(h){const u=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},u);return t.mergeEvaluated(m,g.Name),u}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var u;const m={},p=b(s);let y=!0;for(let _=0;_<o.length;_++){let S=o[_];S!=null&&S.$ref&&!(0,ge.schemaHasRulesButRef)(S,i.self.RULES)&&(S=ir.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,S==null?void 0:S.$ref),S instanceof ir.SchemaEnv&&(S=S.schema));const x=(u=S==null?void 0:S.properties)===null||u===void 0?void 0:u[a];if(typeof x!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(p||b(S)),$(x,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function $(_,S){if(_.const)k(_.const,S);else{if(!_.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const x of _.enum)k(x,S)}}function k(_,S){if(typeof _!="string"||_ in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[_]=S}}();e.if(!1);for(const u in h)e.elseIf(g._`${c} === ${u}`),e.assign(l,d(h[u]));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}),Pu={$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 Wy.default{_addVocabularies(){super._addVocabularies(),Sv.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Ev.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const o=this.opts.$data?this.$dataMetaSchema(Pu,r):Pu;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 Cn.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}})}),$v=bu(fe),_v=bu(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(d){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:u,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const $=p,k=g.strConcat(ee.default.instancePath,b.errorPath);function _(B,j){return g.and(fe._`${B}.keyword !== ${r}`,fe._`!${B}.${n}`,fe._`${B}.instancePath === ${k}`,fe._`${B}.keyword in ${j}`,fe._`${B}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${B}.schemaPath.slice(${b.errSchemaPath.length}))`)}function S(B,j){const E=[];for(const C in B){const N=j[C];i.test(N)&&E.push([C,V(N)])}return u.object(...E)}function x(B){return i.test(B)?new xe._Code(xe.safeStringify(B).replace(o,(j,E)=>`" + JSON.stringify(${Cn.getData(E,b)}) + "`).replace(a,"")):fe.stringify(B)}function V(B){return fe._`function(){return ${x(B)}}`}u.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof $=="object"){const[j,E]=function(C){let N,M;for(const R in C){if(R==="properties"||R==="items")continue;const Y=C[R];if(typeof Y=="object"){N||(N={});const K=N[R]={};for(const J in Y)K[J]=[]}else M||(M={}),M[R]=[]}return[N,M]}($);E&&function(C){const N=u.const("emErrors",fe.stringify(C)),M=u.const("templates",S(C,p));u.forOf("err",ee.default.vErrors,J=>u.if(_(J,N),()=>u.code(fe._`${N}[${J}.keyword].push(${J})`).assign(fe._`${J}.${n}`,!0)));const{singleError:R}=d;if(R){const J=u.let("message",fe._`""`),te=u.let("paramsErrors",fe._`[]`);Y(ne=>{u.if(J,()=>u.code(fe._`${J} += ${typeof R=="string"?R:";"}`)),u.code(fe._`${J} += ${K(ne)}`),u.assign(te,fe._`${te}.concat(${N}[${ne}])`)}),Ct.reportError(h,{message:J,params:fe._`{errors: ${te}}`})}else Y(J=>Ct.reportError(h,{message:K(J),params:fe._`{errors: ${N}[${J}]}`}));function Y(J){u.forIn("key",N,te=>u.if(fe._`${N}[${te}].length`,()=>J(te)))}function K(J){return fe._`${J} in ${M} ? ${M}[${J}]() : ${y}[${J}]`}}(E),j&&function(C){const N=u.const("emErrors",fe.stringify(C)),M=[];for(const te in C)M.push([te,S(C[te],p[te])]);const R=u.const("templates",u.object(...M)),Y=u.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=u.let("emPropParams"),J=u.let("emParamsErrors");u.forOf("err",ee.default.vErrors,te=>u.if(_(te,N),()=>{u.assign(K,fe._`${Y}[${te}.keyword]`),u.assign(J,fe._`${N}[${te}.keyword][${te}.params[${K}]]`),u.if(J,()=>u.code(fe._`${J}.push(${te})`).assign(fe._`${te}.${n}`,!0))})),u.forIn("key",N,te=>u.forIn("keyProp",fe._`${N}[${te}]`,ne=>{u.assign(J,fe._`${N}[${te}][${ne}]`),u.if(fe._`${J}.length`,()=>{const I=u.const("tmpl",fe._`${R}[${te}] && ${R}[${te}][${ne}]`);Ct.reportError(h,{message:fe._`${I} ? ${I}() : ${y}[${te}][${ne}]`,params:fe._`{errors: ${J}}`})})}))}(j),function(C){const{props:N,items:M}=C;if(!N&&!M)return;const R=fe._`typeof ${m} == "object"`,Y=fe._`Array.isArray(${m})`,K=u.let("emErrors");let J,te;const ne=u.let("templates");function I(T,L){u.assign(K,fe.stringify(T)),u.assign(ne,S(T,L))}N&&M?(J=u.let("emChildKwd"),u.if(R),u.if(Y,()=>{I(M,p.items),u.assign(J,fe.str`items`)},()=>{I(N,p.properties),u.assign(J,fe.str`properties`)}),te=fe._`[${J}]`):M?(u.if(Y),I(M,p.items),te=fe._`.items`):N&&(u.if(g.and(R,g.not(Y))),I(N,p.properties),te=fe._`.properties`),u.forOf("err",ee.default.vErrors,T=>function(L,H,Z){u.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${k}) === 0`),()=>{const Q=u.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=u.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${k}.length))`),U=u.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);u.if(fe._`${U} !== undefined && ${U} in ${H}`,()=>Z(U))})}(T,K,L=>u.code(fe._`${K}[${L}].push(${T})`).assign(fe._`${T}.${n}`,!0))),u.forIn("key",K,T=>u.if(fe._`${K}[${T}].length`,()=>{Ct.reportError(h,{message:fe._`${T} in ${ne} ? ${ne}[${T}]() : ${y}${te}[${T}]`,params:fe._`{errors: ${K}[${T}]}`}),u.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${k} + "/" + ${T}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),u.endIf()}(function({properties:C,items:N}){const M={};if(C){M.props={};for(const R in C)M.props[R]=[]}if(N){M.items={};for(let R=0;R<N.length;R++)M.items[R]=[]}return M}($))}const B=typeof $=="string"?$:$._;B&&function(j){const E=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,C=>u.if(function(N){return g.and(fe._`${N}.keyword !== ${r}`,fe._`!${N}.${n}`,g.or(fe._`${N}.instancePath === ${k}`,g.and(fe._`${N}.instancePath.indexOf(${k}) === 0`,fe._`${N}.instancePath[${k}.length] === "/"`)),fe._`${N}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${N}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(C),()=>u.code(fe._`${E}.push(${C})`).assign(fe._`${C}.${n}`,!0))),u.if(fe._`${E}.length`,()=>Ct.reportError(h,{message:x(j),params:fe._`{errors: ${E}}`}))}(B),d.keepErrors||function(){const j=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,E=>u.if(fe._`!${E}.${n}`,()=>u.code(fe._`${j}.push(${E})`))),u.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=(d,h={})=>{if(!d.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(d.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return d.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),kv=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]=eu(s,e,r,n.keyword,o?[].concat(o,n.message||""):n.message)}return r},{})},Tv=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var o,a=new $v(vu({allErrors:!0,validateSchema:!0},e));_v(a);var l=a.compile(Object.assign({$async:((o=r)==null?void 0:o.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&yu({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:My(kv(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function jv(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=jy({defaultValues:r??{},resolver:e?Tv(e,{strict:!1,addFormats:!0}):void 0}),[o]=pt(),{handleSubmit:a,setError:l}=i,[c,d]=w.useState(null),h=Vt("md"),[u]=w.useContext(zr),m=t.isVertical?!1:u.formLayout==="horizontal",y=(t.singleColumn?!1:u.formColumns==="multiple")?1600:m?960:800;let b=f.jsx(gy,{...i,children:f.jsxs(v.Form,{onSubmit:a(async $=>{d(null);try{await t.onSubmit($,k=>d(new Error(k)),l)}catch(k){if(k instanceof Error?d(k):d(new Error("Unknown error")),typeof k=="object"&&k!==null&&"json"in k&&typeof k.json=="object"&&k.json!==null)for(const _ in k.json){let S=k.json[_];typeof S=="string"?l(_,{message:S}):Array.isArray(S)&&(S=S[0],typeof S=="string"&&l(_,{message:S}))}}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):f.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(so,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&f.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?f.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:f.jsxs(v.ActionGroup,{style:{marginTop:0},children:[f.jsx(io,{children:t.submitText}),t.onCancel&&f.jsx(Nu,{onCancel:t.onCancel,children:t.cancelText??o.cancelText})]})}):f.jsx(io,{style:{marginTop:48},children:t.submitText})]})});return n||(b=f.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 f.jsx(f.Fragment,{children:f.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}=Kc(),n=r&&Object.keys(r).length>0;return f.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:f.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function Nu(t){return f.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const i0="";function Ov(t){return f.jsx(Vo,{children:f.jsx(ba,{children:f.jsx(va,{children:f.jsx(pa,{children:f.jsx(Ep,{callback:t.navigate,children:t.children})})})})})}function Cv(t){const e=Xl();return t.breadcrumbs?f.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?f.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?f.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):f.jsx(w.Fragment,{},n))}):f.jsx(w.Fragment,{})}function Pv(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:o,footer:a}=t,l=Vt("lg"),c=Vt("xl"),d=Vt("md"),[h]=pt();return f.jsxs(f.Fragment,{children:[e&&f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:f.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:f.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:f.jsxs(v.Stack,{hasGutter:!0,children:[f.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[f.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&f.jsx(Cv,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?f.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:f.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?f.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((u,m)=>f.jsx(v.StackItem,{children:u},m)),t.titleDocLink&&f.jsx(v.StackItem,{children:f.jsx(v.Button,{icon:f.jsx(Ae.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:f.jsxs(v.Title,{headingLevel:"h1",children:[n,f.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:f.jsx(Ae.OutlinedQuestionCircleIcon,{})})]})}):f.jsx(v.Title,{headingLevel:"h1",children:n}):f.jsx(v.Title,{headingLevel:"h1",children:f.jsx(v.Skeleton,{width:"160px"})}),d&&s&&f.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?f.jsx(v.Truncate,{content:s}):f.jsx(v.Stack,{children:s.map(u=>f.jsx(v.StackItem,{children:u},u))})})]}),n&&(o||i)&&f.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&f.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),o&&f.jsx(v.FlexItem,{children:o})]})]}),a]})})]})}function Nv(t){const[e]=pt();return f.jsx(ga,{message:e.errorText,children:f.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function Du(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 d=l.props.label;return f.jsx(v.Tab,{title:d||f.jsx(v.Skeleton,{width:"60px"}),eventKey:c},d??c)}return l}),a=i[r];return e?f.jsx(Du,{children:f.jsx(oo,{children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})}):f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.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&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),a]})}function oo(t){return f.jsx(f.Fragment,{children:t.children})}function Dv(t){const{activeKey:e,setActiveKey:r}=t,n=w.useCallback((s,i)=>r(i),[r]);return f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:f.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}function Iu(t){const{isLoading:e}=t,r=To(),n=$r(),s=Od(),i=Pn(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:d}=c.props;return n.pathname===Pn(d,s)});w.useEffect(()=>{if(a===-1){const c=o[0].props.url;r(Pn(c,s))}});const l=w.useCallback((c,d)=>{const h=o[Number(d)];if(h){c.preventDefault();const u=h.props.url;r(Pn(u,s))}},[r,o,s]);if(e){const c=a===-1?o[0]:o[a];return f.jsx(Iu,{baseUrl:i,children:f.jsx(ao,{...c.props,children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})})}return f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.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,d)=>{const{label:h,url:u}=c.props;return f.jsx(v.Tab,{title:h||f.jsx(v.Skeleton,{width:"60px"}),eventKey:d,href:Pn(u,s)},h??d)})})}),t.postComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),f.jsx(Ld,{children:o.map((c,d)=>{const{label:h,url:u="",children:m}=c.props;return f.jsx(Po,{path:u.replace(t.baseUrl.replace("*",""),""),element:m},h??d)})})]})}function ao(t){return f.jsx(f.Fragment,{children:t.children})}function Pn(t,e){let r=t;return Object.keys(e).forEach(n=>{r=r.replace(`:${n}`,e[n]??`:${n}`)}),r}const Iv=th`
206
206
  from {
207
207
  transform: rotate(0);
208
208
  }
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.37",
4
+ "version": "2.4.38",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",