@redocly/openapi-docs 0.0.0-beta-20240312161839 → 0.0.0-beta-20240312163557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "0.0.0-beta-
|
|
5
|
+
* Version: "0.0.0-beta-20240312163557"
|
|
6
6
|
*/(function(Tv,Xf){typeof exports=="object"&&typeof module=="object"?module.exports=Xf(require("null")):typeof define=="function"&&define.amd?define(["null"],Xf):typeof exports=="object"?exports.RedoclyOpenAPIDocs=Xf(require("null")):Tv.RedoclyOpenAPIDocs=Xf(Tv.null)})(this,S5=>(()=>{var Tv={96119:(U,l,o)=>{"use strict";o.d(l,{Z:()=>d});function d(y){var O=Object.create(null);return function(E){return O[E]===void 0&&(O[E]=y(E)),O[E]}}},92806:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CodeGen=l.Name=l.nil=l.stringify=l.str=l._=l.KeywordCxt=void 0;const d=o(29271),y=o(13651),O=o(53245),E=o(60895),S="https://json-schema.org/draft/2020-12/schema";class A extends d.default{constructor(R={}){super({...R,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),y.default.forEach(R=>this.addVocabulary(R)),this.opts.discriminator&&this.addKeyword(O.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:R,meta:T}=this.opts;T&&(E.default.call(this,R),this.refs["http://json-schema.org/schema"]=S)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(S)?S:void 0)}}U.exports=l=A,Object.defineProperty(l,"__esModule",{value:!0}),l.default=A;var C=o(34863);Object.defineProperty(l,"KeywordCxt",{enumerable:!0,get:function(){return C.KeywordCxt}});var w=o(25865);Object.defineProperty(l,"_",{enumerable:!0,get:function(){return w._}}),Object.defineProperty(l,"str",{enumerable:!0,get:function(){return w.str}}),Object.defineProperty(l,"stringify",{enumerable:!0,get:function(){return w.stringify}}),Object.defineProperty(l,"nil",{enumerable:!0,get:function(){return w.nil}}),Object.defineProperty(l,"Name",{enumerable:!0,get:function(){return w.Name}}),Object.defineProperty(l,"CodeGen",{enumerable:!0,get:function(){return w.CodeGen}})},9838:(U,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.regexpCode=l.getEsmExportName=l.getProperty=l.safeStringify=l.stringify=l.strConcat=l.addCodeArg=l.str=l._=l.nil=l._Code=l.Name=l.IDENTIFIER=l._CodeOrName=void 0;class o{}l._CodeOrName=o,l.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class d extends o{constructor(b){if(super(),!l.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}l.Name=d;class y extends o{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((W,D)=>`${W}${D}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((W,D)=>(D instanceof d&&(W[D.str]=(W[D.str]||0)+1),W),{})}}l._Code=y,l.nil=new y("");function O(p,...b){const W=[p[0]];let D=0;for(;D<b.length;)A(W,b[D]),W.push(p[++D]);return new y(W)}l._=O;const E=new y("+");function S(p,...b){const W=[$(p[0])];let D=0;for(;D<b.length;)W.push(E),A(W,b[D]),W.push(E,$(p[++D]));return C(W),new y(W)}l.str=S;function A(p,b){b instanceof y?p.push(...b._items):b instanceof d?p.push(b):p.push(R(b))}l.addCodeArg=A;function C(p){let b=1;for(;b<p.length-1;){if(p[b]===E){const W=w(p[b-1],p[b+1]);if(W!==void 0){p.splice(b-1,3,W);continue}p[b++]="+"}b++}}function w(p,b){if(b==='""')return p;if(p==='""')return b;if(typeof p=="string")return b instanceof d||p[p.length-1]!=='"'?void 0:typeof b!="string"?`${p.slice(0,-1)}${b}"`:b[0]==='"'?p.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(p instanceof d))return`"${p}${b.slice(1)}`}function I(p,b){return b.emptyStr()?p:p.emptyStr()?b:S`${p}${b}`}l.strConcat=I;function R(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:$(Array.isArray(p)?p.join(","):p)}function T(p){return new y($(p))}l.stringify=T;function $(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}l.safeStringify=$;function M(p){return typeof p=="string"&&l.IDENTIFIER.test(p)?new y(`.${p}`):O`[${p}]`}l.getProperty=M;function F(p){if(typeof p=="string"&&l.IDENTIFIER.test(p))return new y(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}l.getEsmExportName=F;function h(p){return new y(p.toString())}l.regexpCode=h},25865:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.or=l.and=l.not=l.CodeGen=l.operators=l.varKinds=l.ValueScopeName=l.ValueScope=l.Scope=l.Name=l.regexpCode=l.stringify=l.getProperty=l.nil=l.strConcat=l.str=l._=void 0;const d=o(9838),y=o(11949);var O=o(9838);Object.defineProperty(l,"_",{enumerable:!0,get:function(){return O._}}),Object.defineProperty(l,"str",{enumerable:!0,get:function(){return O.str}}),Object.defineProperty(l,"strConcat",{enumerable:!0,get:function(){return O.strConcat}}),Object.defineProperty(l,"nil",{enumerable:!0,get:function(){return O.nil}}),Object.defineProperty(l,"getProperty",{enumerable:!0,get:function(){return O.getProperty}}),Object.defineProperty(l,"stringify",{enumerable:!0,get:function(){return O.stringify}}),Object.defineProperty(l,"regexpCode",{enumerable:!0,get:function(){return O.regexpCode}}),Object.defineProperty(l,"Name",{enumerable:!0,get:function(){return O.Name}});var E=o(11949);Object.defineProperty(l,"Scope",{enumerable:!0,get:function(){return E.Scope}}),Object.defineProperty(l,"ValueScope",{enumerable:!0,get:function(){return E.ValueScope}}),Object.defineProperty(l,"ValueScopeName",{enumerable:!0,get:function(){return E.ValueScopeName}}),Object.defineProperty(l,"varKinds",{enumerable:!0,get:function(){return E.varKinds}}),l.operators={GT:new d._Code(">"),GTE:new d._Code(">="),LT:new d._Code("<"),LTE:new d._Code("<="),EQ:new d._Code("==="),NEQ:new d._Code("!=="),NOT:new d._Code("!"),OR:new d._Code("||"),AND:new d._Code("&&"),ADD:new d._Code("+")};class S{optimizeNodes(){return this}optimizeNames(ae,ee){return this}}class A extends S{constructor(ae,ee,ge){super(),this.varKind=ae,this.name=ee,this.rhs=ge}render({es5:ae,_n:ee}){const ge=ae?y.varKinds.var:this.varKind,he=this.rhs===void 0?"":` = ${this.rhs}`;return`${ge} ${this.name}${he};`+ee}optimizeNames(ae,ee){if(ae[this.name.str])return this.rhs&&(this.rhs=se(this.rhs,ae,ee)),this}get names(){return this.rhs instanceof d._CodeOrName?this.rhs.names:{}}}class C extends S{constructor(ae,ee,ge){super(),this.lhs=ae,this.rhs=ee,this.sideEffects=ge}render({_n:ae}){return`${this.lhs} = ${this.rhs};`+ae}optimizeNames(ae,ee){if(!(this.lhs instanceof d.Name&&!ae[this.lhs.str]&&!this.sideEffects))return this.rhs=se(this.rhs,ae,ee),this}get names(){const ae=this.lhs instanceof d.Name?{}:{...this.lhs.names};return re(ae,this.rhs)}}class w extends C{constructor(ae,ee,ge,he){super(ae,ge,he),this.op=ee}render({_n:ae}){return`${this.lhs} ${this.op}= ${this.rhs};`+ae}}class I extends S{constructor(ae){super(),this.label=ae,this.names={}}render({_n:ae}){return`${this.label}:`+ae}}class R extends S{constructor(ae){super(),this.label=ae,this.names={}}render({_n:ae}){return`break${this.label?` ${this.label}`:""};`+ae}}class T extends S{constructor(ae){super(),this.error=ae}render({_n:ae}){return`throw ${this.error};`+ae}get names(){return this.error.names}}class $ extends S{constructor(ae){super(),this.code=ae}render({_n:ae}){return`${this.code};`+ae}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ae,ee){return this.code=se(this.code,ae,ee),this}get names(){return this.code instanceof d._CodeOrName?this.code.names:{}}}class M extends S{constructor(ae=[]){super(),this.nodes=ae}render(ae){return this.nodes.reduce((ee,ge)=>ee+ge.render(ae),"")}optimizeNodes(){const{nodes:ae}=this;let ee=ae.length;for(;ee--;){const ge=ae[ee].optimizeNodes();Array.isArray(ge)?ae.splice(ee,1,...ge):ge?ae[ee]=ge:ae.splice(ee,1)}return ae.length>0?this:void 0}optimizeNames(ae,ee){const{nodes:ge}=this;let he=ge.length;for(;he--;){const Ee=ge[he];Ee.optimizeNames(ae,ee)||(Pe(ae,Ee.names),ge.splice(he,1))}return ge.length>0?this:void 0}get names(){return this.nodes.reduce((ae,ee)=>oe(ae,ee.names),{})}}class F extends M{render(ae){return"{"+ae._n+super.render(ae)+"}"+ae._n}}class h extends M{}class p extends F{}p.kind="else";class b extends F{constructor(ae,ee){super(ee),this.condition=ae}render(ae){let ee=`if(${this.condition})`+super.render(ae);return this.else&&(ee+="else "+this.else.render(ae)),ee}optimizeNodes(){super.optimizeNodes();const ae=this.condition;if(ae===!0)return this.nodes;let ee=this.else;if(ee){const ge=ee.optimizeNodes();ee=this.else=Array.isArray(ge)?new p(ge):ge}if(ee)return ae===!1?ee instanceof b?ee:ee.nodes:this.nodes.length?this:new b(je(ae),ee instanceof b?[ee]:ee.nodes);if(!(ae===!1||!this.nodes.length))return this}optimizeNames(ae,ee){var ge;if(this.else=(ge=this.else)===null||ge===void 0?void 0:ge.optimizeNames(ae,ee),!!(super.optimizeNames(ae,ee)||this.else))return this.condition=se(this.condition,ae,ee),this}get names(){const ae=super.names;return re(ae,this.condition),this.else&&oe(ae,this.else.names),ae}}b.kind="if";class W extends F{}W.kind="for";class D extends W{constructor(ae){super(),this.iteration=ae}render(ae){return`for(${this.iteration})`+super.render(ae)}optimizeNames(ae,ee){if(super.optimizeNames(ae,ee))return this.iteration=se(this.iteration,ae,ee),this}get names(){return oe(super.names,this.iteration.names)}}class V extends W{constructor(ae,ee,ge,he){super(),this.varKind=ae,this.name=ee,this.from=ge,this.to=he}render(ae){const ee=ae.es5?y.varKinds.var:this.varKind,{name:ge,from:he,to:Ee}=this;return`for(${ee} ${ge}=${he}; ${ge}<${Ee}; ${ge}++)`+super.render(ae)}get names(){const ae=re(super.names,this.from);return re(ae,this.to)}}class N extends W{constructor(ae,ee,ge,he){super(),this.loop=ae,this.varKind=ee,this.name=ge,this.iterable=he}render(ae){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ae)}optimizeNames(ae,ee){if(super.optimizeNames(ae,ee))return this.iterable=se(this.iterable,ae,ee),this}get names(){return oe(super.names,this.iterable.names)}}class B extends F{constructor(ae,ee,ge){super(),this.name=ae,this.args=ee,this.async=ge}render(ae){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ae)}}B.kind="func";class Z extends M{render(ae){return"return "+super.render(ae)}}Z.kind="return";class X extends F{render(ae){let ee="try"+super.render(ae);return this.catch&&(ee+=this.catch.render(ae)),this.finally&&(ee+=this.finally.render(ae)),ee}optimizeNodes(){var ae,ee;return super.optimizeNodes(),(ae=this.catch)===null||ae===void 0||ae.optimizeNodes(),(ee=this.finally)===null||ee===void 0||ee.optimizeNodes(),this}optimizeNames(ae,ee){var ge,he;return super.optimizeNames(ae,ee),(ge=this.catch)===null||ge===void 0||ge.optimizeNames(ae,ee),(he=this.finally)===null||he===void 0||he.optimizeNames(ae,ee),this}get names(){const ae=super.names;return this.catch&&oe(ae,this.catch.names),this.finally&&oe(ae,this.finally.names),ae}}class Q extends F{constructor(ae){super(),this.error=ae}render(ae){return`catch(${this.error})`+super.render(ae)}}Q.kind="catch";class te extends F{render(ae){return"finally"+super.render(ae)}}te.kind="finally";class G{constructor(ae,ee={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ee,_n:ee.lines?`
|
|
7
7
|
`:""},this._extScope=ae,this._scope=new y.Scope({parent:ae}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(ae){return this._scope.name(ae)}scopeName(ae){return this._extScope.name(ae)}scopeValue(ae,ee){const ge=this._extScope.value(ae,ee);return(this._values[ge.prefix]||(this._values[ge.prefix]=new Set)).add(ge),ge}getScopeValue(ae,ee){return this._extScope.getValue(ae,ee)}scopeRefs(ae){return this._extScope.scopeRefs(ae,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ae,ee,ge,he){const Ee=this._scope.toName(ee);return ge!==void 0&&he&&(this._constants[Ee.str]=ge),this._leafNode(new A(ae,Ee,ge)),Ee}const(ae,ee,ge){return this._def(y.varKinds.const,ae,ee,ge)}let(ae,ee,ge){return this._def(y.varKinds.let,ae,ee,ge)}var(ae,ee,ge){return this._def(y.varKinds.var,ae,ee,ge)}assign(ae,ee,ge){return this._leafNode(new C(ae,ee,ge))}add(ae,ee){return this._leafNode(new w(ae,l.operators.ADD,ee))}code(ae){return typeof ae=="function"?ae():ae!==d.nil&&this._leafNode(new $(ae)),this}object(...ae){const ee=["{"];for(const[ge,he]of ae)ee.length>1&&ee.push(","),ee.push(ge),(ge!==he||this.opts.es5)&&(ee.push(":"),(0,d.addCodeArg)(ee,he));return ee.push("}"),new d._Code(ee)}if(ae,ee,ge){if(this._blockNode(new b(ae)),ee&&ge)this.code(ee).else().code(ge).endIf();else if(ee)this.code(ee).endIf();else if(ge)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ae){return this._elseNode(new b(ae))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(b,p)}_for(ae,ee){return this._blockNode(ae),ee&&this.code(ee).endFor(),this}for(ae,ee){return this._for(new D(ae),ee)}forRange(ae,ee,ge,he,Ee=this.opts.es5?y.varKinds.var:y.varKinds.let){const Oe=this._scope.toName(ae);return this._for(new V(Ee,Oe,ee,ge),()=>he(Oe))}forOf(ae,ee,ge,he=y.varKinds.const){const Ee=this._scope.toName(ae);if(this.opts.es5){const Oe=ee instanceof d.Name?ee:this.var("_arr",ee);return this.forRange("_i",0,(0,d._)`${Oe}.length`,ye=>{this.var(Ee,(0,d._)`${Oe}[${ye}]`),ge(Ee)})}return this._for(new N("of",he,Ee,ee),()=>ge(Ee))}forIn(ae,ee,ge,he=this.opts.es5?y.varKinds.var:y.varKinds.const){if(this.opts.ownProperties)return this.forOf(ae,(0,d._)`Object.keys(${ee})`,ge);const Ee=this._scope.toName(ae);return this._for(new N("in",he,Ee,ee),()=>ge(Ee))}endFor(){return this._endBlockNode(W)}label(ae){return this._leafNode(new I(ae))}break(ae){return this._leafNode(new R(ae))}return(ae){const ee=new Z;if(this._blockNode(ee),this.code(ae),ee.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Z)}try(ae,ee,ge){if(!ee&&!ge)throw new Error('CodeGen: "try" without "catch" and "finally"');const he=new X;if(this._blockNode(he),this.code(ae),ee){const Ee=this.name("e");this._currNode=he.catch=new Q(Ee),ee(Ee)}return ge&&(this._currNode=he.finally=new te,this.code(ge)),this._endBlockNode(Q,te)}throw(ae){return this._leafNode(new T(ae))}block(ae,ee){return this._blockStarts.push(this._nodes.length),ae&&this.code(ae).endBlock(ee),this}endBlock(ae){const ee=this._blockStarts.pop();if(ee===void 0)throw new Error("CodeGen: not in self-balancing block");const ge=this._nodes.length-ee;if(ge<0||ae!==void 0&&ge!==ae)throw new Error(`CodeGen: wrong number of nodes: ${ge} vs ${ae} expected`);return this._nodes.length=ee,this}func(ae,ee=d.nil,ge,he){return this._blockNode(new B(ae,ee,ge)),he&&this.code(he).endFunc(),this}endFunc(){return this._endBlockNode(B)}optimize(ae=1){for(;ae-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ae){return this._currNode.nodes.push(ae),this}_blockNode(ae){this._currNode.nodes.push(ae),this._nodes.push(ae)}_endBlockNode(ae,ee){const ge=this._currNode;if(ge instanceof ae||ee&&ge instanceof ee)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ee?`${ae.kind}/${ee.kind}`:ae.kind}"`)}_elseNode(ae){const ee=this._currNode;if(!(ee instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=ee.else=ae,this}get _root(){return this._nodes[0]}get _currNode(){const ae=this._nodes;return ae[ae.length-1]}set _currNode(ae){const ee=this._nodes;ee[ee.length-1]=ae}}l.CodeGen=G;function oe(pe,ae){for(const ee in ae)pe[ee]=(pe[ee]||0)+(ae[ee]||0);return pe}function re(pe,ae){return ae instanceof d._CodeOrName?oe(pe,ae.names):pe}function se(pe,ae,ee){if(pe instanceof d.Name)return ge(pe);if(!he(pe))return pe;return new d._Code(pe._items.reduce((Ee,Oe)=>(Oe instanceof d.Name&&(Oe=ge(Oe)),Oe instanceof d._Code?Ee.push(...Oe._items):Ee.push(Oe),Ee),[]));function ge(Ee){const Oe=ee[Ee.str];return Oe===void 0||ae[Ee.str]!==1?Ee:(delete ae[Ee.str],Oe)}function he(Ee){return Ee instanceof d._Code&&Ee._items.some(Oe=>Oe instanceof d.Name&&ae[Oe.str]===1&&ee[Oe.str]!==void 0)}}function Pe(pe,ae){for(const ee in ae)pe[ee]=(pe[ee]||0)-(ae[ee]||0)}function je(pe){return typeof pe=="boolean"||typeof pe=="number"||pe===null?!pe:(0,d._)`!${ne(pe)}`}l.not=je;const be=ie(l.operators.AND);function Be(...pe){return pe.reduce(be)}l.and=Be;const ze=ie(l.operators.OR);function de(...pe){return pe.reduce(ze)}l.or=de;function ie(pe){return(ae,ee)=>ae===d.nil?ee:ee===d.nil?ae:(0,d._)`${ne(ae)} ${pe} ${ne(ee)}`}function ne(pe){return pe instanceof d.Name?pe:(0,d._)`(${pe})`}},11949:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ValueScope=l.ValueScopeName=l.Scope=l.varKinds=l.UsedValueState=void 0;const d=o(9838);class y extends Error{constructor(I){super(`CodeGen: "code" for ${I} not defined`),this.value=I.value}}var O;(function(w){w[w.Started=0]="Started",w[w.Completed=1]="Completed"})(O=l.UsedValueState||(l.UsedValueState={})),l.varKinds={const:new d.Name("const"),let:new d.Name("let"),var:new d.Name("var")};class E{constructor({prefixes:I,parent:R}={}){this._names={},this._prefixes=I,this._parent=R}toName(I){return I instanceof d.Name?I:this.name(I)}name(I){return new d.Name(this._newName(I))}_newName(I){const R=this._names[I]||this._nameGroup(I);return`${I}${R.index++}`}_nameGroup(I){var R,T;if(!((T=(R=this._parent)===null||R===void 0?void 0:R._prefixes)===null||T===void 0)&&T.has(I)||this._prefixes&&!this._prefixes.has(I))throw new Error(`CodeGen: prefix "${I}" is not allowed in this scope`);return this._names[I]={prefix:I,index:0}}}l.Scope=E;class S extends d.Name{constructor(I,R){super(R),this.prefix=I}setValue(I,{property:R,itemIndex:T}){this.value=I,this.scopePath=(0,d._)`.${new d.Name(R)}[${T}]`}}l.ValueScopeName=S;const A=(0,d._)`\n`;class C extends E{constructor(I){super(I),this._values={},this._scope=I.scope,this.opts={...I,_n:I.lines?A:d.nil}}get(){return this._scope}name(I){return new S(I,this._newName(I))}value(I,R){var T;if(R.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(I),{prefix:M}=$,F=(T=R.key)!==null&&T!==void 0?T:R.ref;let h=this._values[M];if(h){const W=h.get(F);if(W)return W}else h=this._values[M]=new Map;h.set(F,$);const p=this._scope[M]||(this._scope[M]=[]),b=p.length;return p[b]=R.ref,$.setValue(R,{property:M,itemIndex:b}),$}getValue(I,R){const T=this._values[I];if(T)return T.get(R)}scopeRefs(I,R=this._values){return this._reduceValues(R,T=>{if(T.scopePath===void 0)throw new Error(`CodeGen: name "${T}" has no value`);return(0,d._)`${I}${T.scopePath}`})}scopeCode(I=this._values,R,T){return this._reduceValues(I,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},R,T)}_reduceValues(I,R,T={},$){let M=d.nil;for(const F in I){const h=I[F];if(!h)continue;const p=T[F]=T[F]||new Map;h.forEach(b=>{if(p.has(b))return;p.set(b,O.Started);let W=R(b);if(W){const D=this.opts.es5?l.varKinds.var:l.varKinds.const;M=(0,d._)`${M}${D} ${b} = ${W};${this.opts._n}`}else if(W=$?.(b))M=(0,d._)`${M}${W}${this.opts._n}`;else throw new y(b);p.set(b,O.Completed)})}return M}}l.ValueScope=C},63007:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.extendErrors=l.resetErrorsCount=l.reportExtraError=l.reportError=l.keyword$DataError=l.keywordError=void 0;const d=o(25865),y=o(28314),O=o(50459);l.keywordError={message:({keyword:p})=>(0,d.str)`must pass "${p}" keyword validation`},l.keyword$DataError={message:({keyword:p,schemaType:b})=>b?(0,d.str)`"${p}" keyword must be ${b} ($data)`:(0,d.str)`"${p}" keyword is invalid ($data)`};function E(p,b=l.keywordError,W,D){const{it:V}=p,{gen:N,compositeRule:B,allErrors:Z}=V,X=T(p,b,W);D??(B||Z)?w(N,X):I(V,(0,d._)`[${X}]`)}l.reportError=E;function S(p,b=l.keywordError,W){const{it:D}=p,{gen:V,compositeRule:N,allErrors:B}=D,Z=T(p,b,W);w(V,Z),N||B||I(D,O.default.vErrors)}l.reportExtraError=S;function A(p,b){p.assign(O.default.errors,b),p.if((0,d._)`${O.default.vErrors} !== null`,()=>p.if(b,()=>p.assign((0,d._)`${O.default.vErrors}.length`,b),()=>p.assign(O.default.vErrors,null)))}l.resetErrorsCount=A;function C({gen:p,keyword:b,schemaValue:W,data:D,errsCount:V,it:N}){if(V===void 0)throw new Error("ajv implementation error");const B=p.name("err");p.forRange("i",V,O.default.errors,Z=>{p.const(B,(0,d._)`${O.default.vErrors}[${Z}]`),p.if((0,d._)`${B}.instancePath === undefined`,()=>p.assign((0,d._)`${B}.instancePath`,(0,d.strConcat)(O.default.instancePath,N.errorPath))),p.assign((0,d._)`${B}.schemaPath`,(0,d.str)`${N.errSchemaPath}/${b}`),N.opts.verbose&&(p.assign((0,d._)`${B}.schema`,W),p.assign((0,d._)`${B}.data`,D))})}l.extendErrors=C;function w(p,b){const W=p.const("err",b);p.if((0,d._)`${O.default.vErrors} === null`,()=>p.assign(O.default.vErrors,(0,d._)`[${W}]`),(0,d._)`${O.default.vErrors}.push(${W})`),p.code((0,d._)`${O.default.errors}++`)}function I(p,b){const{gen:W,validateName:D,schemaEnv:V}=p;V.$async?W.throw((0,d._)`new ${p.ValidationError}(${b})`):(W.assign((0,d._)`${D}.errors`,b),W.return(!1))}const R={keyword:new d.Name("keyword"),schemaPath:new d.Name("schemaPath"),params:new d.Name("params"),propertyName:new d.Name("propertyName"),message:new d.Name("message"),schema:new d.Name("schema"),parentSchema:new d.Name("parentSchema")};function T(p,b,W){const{createErrors:D}=p.it;return D===!1?(0,d._)`{}`:$(p,b,W)}function $(p,b,W={}){const{gen:D,it:V}=p,N=[M(V,W),F(p,W)];return h(p,b,N),D.object(...N)}function M({errorPath:p},{instancePath:b}){const W=b?(0,d.str)`${p}${(0,y.getErrorPath)(b,y.Type.Str)}`:p;return[O.default.instancePath,(0,d.strConcat)(O.default.instancePath,W)]}function F({keyword:p,it:{errSchemaPath:b}},{schemaPath:W,parentSchema:D}){let V=D?b:(0,d.str)`${b}/${p}`;return W&&(V=(0,d.str)`${V}${(0,y.getErrorPath)(W,y.Type.Str)}`),[R.schemaPath,V]}function h(p,{params:b,message:W},D){const{keyword:V,data:N,schemaValue:B,it:Z}=p,{opts:X,propertyName:Q,topSchemaRef:te,schemaPath:G}=Z;D.push([R.keyword,V],[R.params,typeof b=="function"?b(p):b||(0,d._)`{}`]),X.messages&&D.push([R.message,typeof W=="function"?W(p):W]),X.verbose&&D.push([R.schema,B],[R.parentSchema,(0,d._)`${te}${G}`],[O.default.data,N]),Q&&D.push([R.propertyName,Q])}},38518:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.resolveSchema=l.getCompilingSchema=l.resolveRef=l.compileSchema=l.SchemaEnv=void 0;const d=o(25865),y=o(16128),O=o(50459),E=o(75040),S=o(28314),A=o(34863);class C{constructor(W){var D;this.refs={},this.dynamicAnchors={};let V;typeof W.schema=="object"&&(V=W.schema),this.schema=W.schema,this.schemaId=W.schemaId,this.root=W.root||this,this.baseId=(D=W.baseId)!==null&&D!==void 0?D:(0,E.normalizeId)(V?.[W.schemaId||"$id"]),this.schemaPath=W.schemaPath,this.localRefs=W.localRefs,this.meta=W.meta,this.$async=V?.$async,this.refs={}}}l.SchemaEnv=C;function w(b){const W=T.call(this,b);if(W)return W;const D=(0,E.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:V,lines:N}=this.opts.code,{ownProperties:B}=this.opts,Z=new d.CodeGen(this.scope,{es5:V,lines:N,ownProperties:B});let X;b.$async&&(X=Z.scopeValue("Error",{ref:y.default,code:(0,d._)`require("ajv/dist/runtime/validation_error").default`}));const Q=Z.scopeName("validate");b.validateName=Q;const te={gen:Z,allErrors:this.opts.allErrors,data:O.default.data,parentData:O.default.parentData,parentDataProperty:O.default.parentDataProperty,dataNames:[O.default.data],dataPathArr:[d.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Z.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,d.stringify)(b.schema)}:{ref:b.schema}),validateName:Q,ValidationError:X,schema:b.schema,schemaEnv:b,rootId:D,baseId:b.baseId||D,schemaPath:d.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,d._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(b),(0,A.validateFunctionCode)(te),Z.optimize(this.opts.code.optimize);const oe=Z.toString();G=`const visitedNodesForRef = new WeakMap(); ${Z.scopeRefs(O.default.scope)}return ${oe}`,this.opts.code.process&&(G=this.opts.code.process(G,b));const se=new Function(`${O.default.self}`,`${O.default.scope}`,G)(this,this.scope.get());if(this.scope.value(Q,{ref:se}),se.errors=null,se.schema=b.schema,se.schemaEnv=b,b.$async&&(se.$async=!0),this.opts.code.source===!0&&(se.source={validateName:Q,validateCode:oe,scopeValues:Z._values}),this.opts.unevaluated){const{props:Pe,items:je}=te;se.evaluated={props:Pe instanceof d.Name?void 0:Pe,items:je instanceof d.Name?void 0:je,dynamicProps:Pe instanceof d.Name,dynamicItems:je instanceof d.Name},se.source&&(se.source.evaluated=(0,d.stringify)(se.evaluated))}return b.validate=se,b}catch(oe){throw delete b.validate,delete b.validateName,G&&this.logger.error("Error compiling schema, function code:",G),oe}finally{this._compilations.delete(b)}}l.compileSchema=w;function I(b,W,D){var V;const N=(0,E.resolveUrl)(this.opts.uriResolver,W,D),B=b.refs[N];if(B)return B;let Z=M.call(this,b,N);if(Z===void 0){const X=(V=b.localRefs)===null||V===void 0?void 0:V[N],{schemaId:Q}=this.opts;X&&(Z=new C({schema:X,schemaId:Q,root:b,baseId:W}))}if(Z===void 0&&this.opts.loadSchemaSync){const X=this.opts.loadSchemaSync(W,D,N);X&&!(this.refs[N]||this.schemas[N])&&(this.addSchema(X,N,void 0),Z=M.call(this,b,N))}if(Z!==void 0)return b.refs[N]=R.call(this,Z)}l.resolveRef=I;function R(b){return(0,E.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:w.call(this,b)}function T(b){for(const W of this._compilations)if($(W,b))return W}l.getCompilingSchema=T;function $(b,W){return b.schema===W.schema&&b.root===W.root&&b.baseId===W.baseId}function M(b,W){let D;for(;typeof(D=this.refs[W])=="string";)W=D;return D||this.schemas[W]||F.call(this,b,W)}function F(b,W){const D=this.opts.uriResolver.parse(W),V=(0,E._getFullPath)(this.opts.uriResolver,D);let N=(0,E.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&V===N)return p.call(this,D,b);const B=(0,E.normalizeId)(V),Z=this.refs[B]||this.schemas[B];if(typeof Z=="string"){const X=F.call(this,b,Z);return typeof X?.schema!="object"?void 0:p.call(this,D,X)}if(typeof Z?.schema=="object"){if(Z.validate||w.call(this,Z),B===(0,E.normalizeId)(W)){const{schema:X}=Z,{schemaId:Q}=this.opts,te=X[Q];return te&&(N=(0,E.resolveUrl)(this.opts.uriResolver,N,te)),new C({schema:X,schemaId:Q,root:b,baseId:N})}return p.call(this,D,Z)}}l.resolveSchema=F;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function p(b,{baseId:W,schema:D,root:V}){var N;if(((N=b.fragment)===null||N===void 0?void 0:N[0])!=="/")return;for(const X of b.fragment.slice(1).split("/")){if(typeof D=="boolean")return;const Q=D[(0,S.unescapeFragment)(X)];if(Q===void 0)return;D=Q;const te=typeof D=="object"&&D[this.opts.schemaId];!h.has(X)&&te&&(W=(0,E.resolveUrl)(this.opts.uriResolver,W,te))}let B;if(typeof D!="boolean"&&D.$ref&&!(0,S.schemaHasRulesButRef)(D,this.RULES)){const X=(0,E.resolveUrl)(this.opts.uriResolver,W,D.$ref);B=F.call(this,V,X)}const{schemaId:Z}=this.opts;if(B=B||new C({schema:D,schemaId:Z,root:V,baseId:W}),B.schema!==B.root.schema)return B}},50459:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});const d=o(25865),y={data:new d.Name("data"),valCxt:new d.Name("valCxt"),instancePath:new d.Name("instancePath"),parentData:new d.Name("parentData"),parentDataProperty:new d.Name("parentDataProperty"),rootData:new d.Name("rootData"),dynamicAnchors:new d.Name("dynamicAnchors"),isAllOfVariant:new d.Name("isAllOfVariant"),vErrors:new d.Name("vErrors"),errors:new d.Name("errors"),this:new d.Name("this"),self:new d.Name("self"),scope:new d.Name("scope"),json:new d.Name("json"),jsonPos:new d.Name("jsonPos"),jsonLen:new d.Name("jsonLen"),jsonPart:new d.Name("jsonPart")};l.default=y},82438:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});const d=o(75040);class y extends Error{constructor(E,S,A,C){super(C||`can't resolve reference ${A} from id ${S}`),this.missingRef=(0,d.resolveUrl)(E,S,A),this.missingSchema=(0,d.normalizeId)((0,d.getFullPath)(E,this.missingRef))}}l.default=y},75040:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getSchemaRefs=l.resolveUrl=l.normalizeId=l._getFullPath=l.getFullPath=l.inlineRef=void 0;const d=o(28314),y=o(44204),O=o(5094),E=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function S(p,b=!0){return typeof p=="boolean"?!0:b===!0?!C(p):b?w(p)<=b:!1}l.inlineRef=S;const A=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function C(p){for(const b in p){if(A.has(b))return!0;const W=p[b];if(Array.isArray(W)&&W.some(C)||typeof W=="object"&&C(W))return!0}return!1}function w(p){let b=0;for(const W in p){if(W==="$ref")return 1/0;if(b++,!E.has(W)&&(typeof p[W]=="object"&&(0,d.eachItem)(p[W],D=>b+=w(D)),b===1/0))return 1/0}return b}function I(p,b="",W){W!==!1&&(b=$(b));const D=p.parse(b);return R(p,D)}l.getFullPath=I;function R(p,b){return p.serialize(b).split("#")[0]+"#"}l._getFullPath=R;const T=/#\/?$/;function $(p){return p?p.replace(T,""):""}l.normalizeId=$;function M(p,b,W){return W=$(W),p.resolve(b,W)}l.resolveUrl=M;const F=/^[a-z_][-a-z0-9._]*$/i;function h(p,b){if(typeof p=="boolean")return{};const{schemaId:W,uriResolver:D}=this.opts,V=$(p[W]||b),N={"":V},B=I(D,V,!1),Z={},X=new Set;return O(p,{allKeys:!0},(G,oe,re,se)=>{if(se===void 0)return;const Pe=B+oe;let je=N[se];typeof G[W]=="string"&&(je=be.call(this,G[W])),Be.call(this,G.$anchor),Be.call(this,G.$dynamicAnchor),N[oe]=je;function be(ze){const de=this.opts.uriResolver.resolve;if(ze=$(je?de(je,ze):ze),X.has(ze))throw te(ze);X.add(ze);let ie=this.refs[ze];return typeof ie=="string"&&(ie=this.refs[ie]),typeof ie=="object"?Q(G,ie.schema,ze):ze!==$(Pe)&&(ze[0]==="#"?(Q(G,Z[ze],ze),Z[ze]=G):this.refs[ze]=Pe),ze}function Be(ze){if(typeof ze=="string"){if(!F.test(ze))throw new Error(`invalid anchor "${ze}"`);be.call(this,`#${ze}`)}}}),Z;function Q(G,oe,re){if(oe!==void 0&&!y(G,oe))throw te(re)}function te(G){return new Error(`reference "${G}" resolves to more than one schema`)}}l.getSchemaRefs=h},94632:(U,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getRules=l.isJSONType=void 0;const o=["string","number","integer","boolean","null","object","array"],d=new Set(o);function y(E){return typeof E=="string"&&d.has(E)}l.isJSONType=y;function O(){const E={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...E,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},E.number,E.string,E.array,E.object],post:{rules:[]},all:{},keywords:{}}}l.getRules=O},28314:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.checkStrictMode=l.getErrorPath=l.Type=l.useFunc=l.setEvaluated=l.evaluatedPropsToName=l.mergeEvaluated=l.eachItem=l.unescapeJsonPointer=l.escapeJsonPointer=l.escapeFragment=l.unescapeFragment=l.schemaRefOrVal=l.schemaHasRulesButRef=l.schemaHasRules=l.checkUnknownRules=l.alwaysValidSchema=l.toHash=void 0;const d=o(25865),y=o(9838);function O(B){const Z={};for(const X of B)Z[X]=!0;return Z}l.toHash=O;function E(B,Z){return typeof Z=="boolean"?Z:Object.keys(Z).length===0?!0:(S(B,Z),!A(Z,B.self.RULES.all))}l.alwaysValidSchema=E;function S(B,Z=B.schema){const{opts:X,self:Q}=B;if(!X.strictSchema||typeof Z=="boolean")return;const te=Q.RULES.keywords;for(const G in Z)te[G]||N(B,`unknown keyword: "${G}"`)}l.checkUnknownRules=S;function A(B,Z){if(typeof B=="boolean")return!B;for(const X in B)if(Z[X])return!0;return!1}l.schemaHasRules=A;function C(B,Z){if(typeof B=="boolean")return!B;for(const X in B)if(X!=="$ref"&&Z.all[X])return!0;return!1}l.schemaHasRulesButRef=C;function w({topSchemaRef:B,schemaPath:Z},X,Q,te){if(!te){if(typeof X=="number"||typeof X=="boolean")return X;if(typeof X=="string")return(0,d._)`${X}`}return(0,d._)`${B}${Z}${(0,d.getProperty)(Q)}`}l.schemaRefOrVal=w;function I(B){return $(decodeURIComponent(B))}l.unescapeFragment=I;function R(B){return encodeURIComponent(T(B))}l.escapeFragment=R;function T(B){return typeof B=="number"?`${B}`:B.replace(/~/g,"~0").replace(/\//g,"~1")}l.escapeJsonPointer=T;function $(B){return B.replace(/~1/g,"/").replace(/~0/g,"~")}l.unescapeJsonPointer=$;function M(B,Z){if(Array.isArray(B))for(const X of B)Z(X);else Z(B)}l.eachItem=M;function F({mergeNames:B,mergeToName:Z,mergeValues:X,resultToName:Q}){return(te,G,oe,re)=>{const se=oe===void 0?G:oe instanceof d.Name?(G instanceof d.Name?B(te,G,oe):Z(te,G,oe),oe):G instanceof d.Name?(Z(te,oe,G),G):X(G,oe);return re===d.Name&&!(se instanceof d.Name)?Q(te,se):se}}l.mergeEvaluated={props:F({mergeNames:(B,Z,X)=>B.if((0,d._)`${X} !== true && ${Z} !== undefined`,()=>{B.if((0,d._)`${Z} === true`,()=>B.assign(X,!0),()=>B.assign(X,(0,d._)`${X} || {}`).code((0,d._)`Object.assign(${X}, ${Z})`))}),mergeToName:(B,Z,X)=>B.if((0,d._)`${X} !== true`,()=>{Z===!0?B.assign(X,!0):(B.assign(X,(0,d._)`${X} || {}`),p(B,X,Z))}),mergeValues:(B,Z)=>B===!0?!0:{...B,...Z},resultToName:h}),items:F({mergeNames:(B,Z,X)=>B.if((0,d._)`${X} !== true && ${Z} !== undefined`,()=>B.assign(X,(0,d._)`${Z} === true ? true : ${X} > ${Z} ? ${X} : ${Z}`)),mergeToName:(B,Z,X)=>B.if((0,d._)`${X} !== true`,()=>B.assign(X,Z===!0?!0:(0,d._)`${X} > ${Z} ? ${X} : ${Z}`)),mergeValues:(B,Z)=>B===!0?!0:Math.max(B,Z),resultToName:(B,Z)=>B.var("items",Z)})};function h(B,Z){if(Z===!0)return B.var("props",!0);const X=B.var("props",(0,d._)`{}`);return Z!==void 0&&p(B,X,Z),X}l.evaluatedPropsToName=h;function p(B,Z,X){Object.keys(X).forEach(Q=>B.assign((0,d._)`${Z}${(0,d.getProperty)(Q)}`,!0))}l.setEvaluated=p;const b={};function W(B,Z){return B.scopeValue("func",{ref:Z,code:b[Z.code]||(b[Z.code]=new y._Code(Z.code))})}l.useFunc=W;var D;(function(B){B[B.Num=0]="Num",B[B.Str=1]="Str"})(D=l.Type||(l.Type={}));function V(B,Z,X){if(B instanceof d.Name){const Q=Z===D.Num;return X?Q?(0,d._)`"[" + ${B} + "]"`:(0,d._)`"['" + ${B} + "']"`:Q?(0,d._)`"/" + ${B}`:(0,d._)`"/" + ${B}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return X?(0,d.getProperty)(B).toString():"/"+T(B)}l.getErrorPath=V;function N(B,Z,X=B.opts.strictSchema){if(X){if(Z=`strict mode: ${Z}`,X===!0)throw new Error(Z);B.self.logger.warn(Z)}}l.checkStrictMode=N},55565:(U,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.shouldUseRule=l.shouldUseGroup=l.schemaHasRulesForType=void 0;function o({schema:O,self:E},S){const A=E.RULES.types[S];return A&&A!==!0&&d(O,A)}l.schemaHasRulesForType=o;function d(O,E){return E.rules.some(S=>y(O,S))}l.shouldUseGroup=d;function y(O,E){var S;return O[E.keyword]!==void 0||((S=E.definition.implements)===null||S===void 0?void 0:S.some(A=>O[A]!==void 0))}l.shouldUseRule=y},22466:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.boolOrEmptySchema=l.topBoolOrEmptySchema=void 0;const d=o(63007),y=o(25865),O=o(50459),E={message:"boolean schema is false"};function S(w){const{gen:I,schema:R,validateName:T}=w;R===!1?C(w,!1):typeof R=="object"&&R.$async===!0?I.return(O.default.data):(I.assign((0,y._)`${T}.errors`,null),I.return(!0))}l.topBoolOrEmptySchema=S;function A(w,I){const{gen:R,schema:T}=w;T===!1?(R.var(I,!1),C(w)):R.var(I,!0)}l.boolOrEmptySchema=A;function C(w,I){const{gen:R,data:T}=w,$={gen:R,keyword:"false schema",data:T,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:w};(0,d.reportError)($,E,void 0,I)}},35314:(U,l,o)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.reportTypeError=l.checkDataTypes=l.checkDataType=l.coerceAndCheckDataType=l.getJSONTypes=l.getSchemaTypes=l.DataType=void 0;const d=o(94632),y=o(55565),O=o(63007),E=o(25865),S=o(28314);var A;(function(D){D[D.Correct=0]="Correct",D[D.Wrong=1]="Wrong"})(A=l.DataType||(l.DataType={}));function C(D){const V=w(D.type);if(V.includes("null")){if(D.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!V.length&&D.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');D.nullable===!0&&V.push("null")}return V}l.getSchemaTypes=C;function w(D){const V=Array.isArray(D)?D:D?[D]:[];if(V.every(d.isJSONType))return V;throw new Error("type must be JSONType or JSONType[]: "+V.join(","))}l.getJSONTypes=w;function I(D,V){const{gen:N,data:B,opts:Z}=D,X=T(V,Z.coerceTypes),Q=V.length>0&&!(X.length===0&&V.length===1&&(0,y.schemaHasRulesForType)(D,V[0]));if(Q){const te=h(V,B,Z.strictNumbers,A.Wrong);N.if(te,()=>{X.length?$(D,V,X):b(D)})}return Q}l.coerceAndCheckDataType=I;const R=new Set(["string","number","integer","boolean","null"]);function T(D,V){return V?D.filter(N=>R.has(N)||V==="array"&&N==="array"):[]}function $(D,V,N){const{gen:B,data:Z,opts:X}=D,Q=B.let("dataType",(0,E._)`typeof ${Z}`),te=B.let("coerced",(0,E._)`undefined`);X.coerceTypes==="array"&&B.if((0,E._)`${Q} == 'object' && Array.isArray(${Z}) && ${Z}.length == 1`,()=>B.assign(Z,(0,E._)`${Z}[0]`).assign(Q,(0,E._)`typeof ${Z}`).if(h(V,Z,X.strictNumbers),()=>B.assign(te,Z))),B.if((0,E._)`${te} !== undefined`);for(const oe of N)(R.has(oe)||oe==="array"&&X.coerceTypes==="array")&&G(oe);B.else(),b(D),B.endIf(),B.if((0,E._)`${te} !== undefined`,()=>{B.assign(Z,te),M(D,te)});function G(oe){switch(oe){case"string":B.elseIf((0,E._)`${Q} == "number" || ${Q} == "boolean"`).assign(te,(0,E._)`"" + ${Z}`).elseIf((0,E._)`${Z} === null`).assign(te,(0,E._)`""`);return;case"number":B.elseIf((0,E._)`${Q} == "boolean" || ${Z} === null
|
|
8
8
|
|| (${Q} == "string" && ${Z} && ${Z} == +${Z})`).assign(te,(0,E._)`+${Z}`);return;case"integer":B.elseIf((0,E._)`${Q} === "boolean" || ${Z} === null
|
|
@@ -11619,4 +11619,4 @@ html body {
|
|
|
11619
11619
|
`;function _se({items:t,root:e=!1,routingBasePath:n}){const a=(0,Z.Dv)(X.gO),c=a?`/${a}/`:"/",{rootItem:u}=Kd(t),f=!e||u?c:Yd(t,c),g=(0,p.useMemo)(()=>(0,l.jsxs)(Qr.Z5,{children:[u&&(0,l.jsx)(Qr.AW,{path:`${u.href||c}*`,element:(0,l.jsx)(Fj,{items:t})}),(0,l.jsx)(Qr.AW,{path:"*",element:(0,l.jsx)(Qr.Fg,{to:f,replace:!0})})]}),[u,c,t,f]);return e&&!t.length?(0,l.jsx)(Qr.Z5,{children:(0,l.jsx)(Qr.AW,{path:"*",element:(0,l.jsx)(Fj,{items:t})})}):t.length?(0,l.jsx)(l.Fragment,{children:e?g:t.map(P=>(0,l.jsx)(qx,{item:P,routingBasePath:n},P.id))}):null}const Uj=(0,p.memo)(_se);function eae({routingBasePath:t,items:e}){return xb(t),(0,l.jsx)(Uj,{root:!0,items:e,routingBasePath:t})}const tae=(0,p.memo)(eae);function nae(t){return t.displayName||t.name||"Component"}var rae=Object.defineProperty,oae=Object.defineProperties,iae=Object.getOwnPropertyDescriptors,F2=Object.getOwnPropertySymbols,zj=Object.prototype.hasOwnProperty,Vj=Object.prototype.propertyIsEnumerable,Wj=(t,e,n)=>e in t?rae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_x=(t,e)=>{for(var n in e||(e={}))zj.call(e,n)&&Wj(t,n,e[n]);if(F2)for(var n of F2(e))Vj.call(e,n)&&Wj(t,n,e[n]);return t},sae=(t,e)=>oae(t,iae(e)),aae=(t,e)=>{var n={};for(var a in t)zj.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&F2)for(var a of F2(t))e.indexOf(a)<0&&Vj.call(t,a)&&(n[a]=t[a]);return n};function lae(t){const e=n=>{var a=n,{disableRouter:c=!1}=a,u=aae(a,["disableRouter"]),f,g;const P=(f=u.basePath)!=null?f:"/",j=(g=u.router)!=null?g:"history",{Router:L,routerProps:z}=cd(j,P);return D.IS_BROWSER&&!c?(0,p.createElement)(L,sae(_x({},z),{key:P}),(0,l.jsx)(t,_x({},u))):(0,l.jsx)(t,_x({},u))};return e.displayName=`WithRouter(${nae(t)})`,e}var cae=Object.defineProperty,uae=Object.defineProperties,dae=Object.getOwnPropertyDescriptors,U2=Object.getOwnPropertySymbols,Zj=Object.prototype.hasOwnProperty,Qj=Object.prototype.propertyIsEnumerable,Hj=(t,e,n)=>e in t?cae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fae=(t,e)=>{for(var n in e||(e={}))Zj.call(e,n)&&Hj(t,n,e[n]);if(U2)for(var n of U2(e))Qj.call(e,n)&&Hj(t,n,e[n]);return t},pae=(t,e)=>uae(t,dae(e)),hae=(t,e)=>{var n={};for(var a in t)Zj.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&U2)for(var a of U2(t))e.indexOf(a)<0&&Qj.call(t,a)&&(n[a]=t[a]);return n};function mae(t){return n=>{var a=n,{portalOptions:c}=a,u=hae(a,["portalOptions"]);const[f,g]=(0,Z.KO)(X.g4),[P,j]=(0,Z.KO)(X.fI),{options:L,versions:z}=(0,Z.Dv)(Ve.cr);(0,p.useEffect)(()=>{c?.layout&&g(c.layout)},[c?.layout,g]),(0,p.useEffect)(()=>{typeof c?.collapsedSidebar=="boolean"&&j(c.collapsedSidebar)},[c?.collapsedSidebar,j]);const[Y,q]=(0,Z.KO)(X.QK),[ce,Ie]=(0,Z.KO)(X.gO),Te=(0,Qr.s0)(),Fe=(0,Qr.TH)(),et=(0,p.useCallback)(({idx:At})=>{if(At!==void 0){const Rt=z[At].id;if(D.IS_BROWSER&&Rt){const{hash:Ft,pathname:Ut,search:dn}=Fe;Te(`${Ut}${dn}${Ft}`.replace(ce,Rt))}q(At)}},[Fe,Te,q,ce,z]),{parser:bt}=z?.[Y]||{};return(0,p.useEffect)(()=>{bt?.versionPath&&Ie(bt.versionPath)},[bt?.versionPath,Ie]),!bt||!z.length?null:(0,l.jsx)(t,pae(fae({},u),{options:L,versions:z,layout:f,activeVersionIdx:Y,onChangeActiveVersion:et,collapsedSidebar:P,parser:bt}))}}var Kj=(t,e,n)=>new Promise((a,c)=>{var u=P=>{try{g(n.next(P))}catch(j){c(j)}},f=P=>{try{g(n.throw(P))}catch(j){c(j)}},g=P=>P.done?a(P.value):Promise.resolve(P.value).then(u,f);g((n=n.apply(t,e)).next())});function Yj(t){return"then"in t?t:new Promise(e=>{t.oncomplete=n=>{e(n.target.result)}})}function Xj(t){const e=new ArrayBuffer(t.length),n=new Uint8Array(e);for(let a=0,c=t.length;a<c;a++)n[a]=t.charCodeAt(a);return e}const gae=()=>{var t;const e=Xj(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return Yj((t=qr.EA)==null?void 0:t.subtle.importKey("spki",e,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function vae(t){if(window.TextEncoder)return new TextEncoder().encode(t);const e=unescape(encodeURIComponent(t)),n=new Uint8Array(e.length);for(let a=0;a<e.length;a++)n[a]=e.charCodeAt(a);return n}function yae(t,e){return Kj(this,null,function*(){var n;return Yj((n=qr.EA)==null?void 0:n.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield gae(),Xj(atob(e)),vae(t)))})}function Oae(t,e){return e===!0?!0:Array.isArray(e)&&typeof window<"u"?t==="localhost"||t==="127.0.0.1"||t.endsWith(".localhost")||e.find(n=>n===t||t.endsWith("."+n))?!0:!!e.find(n=>{if(n.indexOf("*")!==n.lastIndexOf("*"))return;const[a,c]=n.split("*");return c&&t.startsWith(a)&&t.endsWith(c)&&c.split(".").length>2}):!1}function bae(t){return Kj(this,null,function*(){const e=window.location.hostname;if(!t)return e==="localhost"||e==="127.0.0.1"||e.endsWith(".localhost")?{local:!0}:{};const[n,a]=t.split(".");let c;try{if(!(yield yae(atob(n),a)))return{valid:!1};c=JSON.parse(atob(n))}catch{return{valid:!1,cryptoMissing:!0}}return c.valid=!0,(!c.e||Date.now()/1e3>c.e)&&(c.expired=!0),c.allowed=Oae(e,c.h),c})}var Sae=(t,e,n)=>new Promise((a,c)=>{var u=P=>{try{g(n.next(P))}catch(j){c(j)}},f=P=>{try{g(n.throw(P))}catch(j){c(j)}},g=P=>P.done?a(P.value):Promise.resolve(P.value).then(u,f);g((n=n.apply(t,e)).next())});function Pae(t){const[e,n]=(0,p.useState)({});return(0,p.useEffect)(()=>{function a(){return Sae(this,null,function*(){const c=yield bae(t);n(c)})}a()},[t]),{licenseInfo:e,isValid:Cae(e)}}function Cae(t){return t.valid&&t.allowed&&!t.expired||!!t.local}var xae=Object.defineProperty,Eae=Object.defineProperties,Aae=Object.getOwnPropertyDescriptors,Gj=Object.getOwnPropertySymbols,Iae=Object.prototype.hasOwnProperty,wae=Object.prototype.propertyIsEnumerable,Jj=(t,e,n)=>e in t?xae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tae=(t,e)=>{for(var n in e||(e={}))Iae.call(e,n)&&Jj(t,n,e[n]);if(Gj)for(var n of Gj(e))wae.call(e,n)&&Jj(t,n,e[n]);return t},Dae=(t,e)=>Eae(t,Aae(e));const jae=(0,N.qC)(lae,mae,p.memo)(({licenseKey:t,onLoaded:e,children:n,options:a,versions:c,layout:u,activeVersionIdx:f,onChangeActiveVersion:g,collapsedSidebar:P,parser:j})=>{var L,z,Y,q,ce;const Ie=(0,p.useRef)(null),{isValid:Te,licenseInfo:Fe}=Pae(t);(0,D.useMount)(()=>{e?.()});const{hideSidebar:et,scrollYOffset:bt}=a||{},{contentItems:At}=Jf({parser:j,options:a}),Rt=(z=(L=j.definition)==null?void 0:L.info)==null?void 0:z["x-logo"];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(D.GlobalStyle,{}),(0,l.jsxs)(yp,{className:"redoc-wrap",ref:Ie,children:[(0,l.jsx)(Q,{}),!Te&&(0,l.jsx)(bg,{licenseInfo:Fe}),(0,l.jsx)(Eh,{layout:u}),!et&&(0,l.jsxs)(Pg,{scrollYOffset:bt,className:"menu-content",collapsedSidebar:!P,children:[(0,l.jsx)(D.SidebarLogo,{imageUrl:Rt?.url,href:Rt?.href||((ce=(q=(Y=j.definition)==null?void 0:Y.info)==null?void 0:q.contact)==null?void 0:ce.url),altText:Rt?.altText,backgroundColor:Rt?.backgroundColor}),c.length>1&&(0,l.jsx)(Ph,{versions:c,activeVersionIdx:f,onChange:g}),(0,l.jsx)(j1,{items:Te?At:[]})]}),(0,l.jsxs)($u,{className:"api-content",id:"api-content",layout:u===D.LayoutVariant.THREE_PANEL?D.LayoutVariant.THREE_PANEL:D.LayoutVariant.STACKED,collapsedSidebar:P,children:[(0,l.jsx)(tae,{items:Te?At:[],routingBasePath:a.routingBasePath}),n]})]})]})});function e5({onLoaded:t,children:e,store:n}){var a,c,u;return n?.definition?(0,l.jsx)(ea,Dae(Tae({},n),{children:(0,l.jsx)(jae,{onLoaded:t,basePath:(a=n.options)==null?void 0:a.routingBasePath,licenseKey:(c=n.options)==null?void 0:c.licenseKey,disableRouter:(u=n.options)==null?void 0:u.disableRouter,portalOptions:n?.portalOptions,children:e})})):null}function Rae({definition:t,definitionUrl:e,options:n={},activeItemId:a,activeSampleLanguage:c,activeDeepLink:u}){return(0,l.jsx)(sl,{definition:t,definitionUrl:e,options:n,activeItemId:a,activeSampleLanguage:c,activeDeepLink:u,children:(0,l.jsx)(e5,{})})}const Mae=B.ZP.div`
|
|
11620
11620
|
padding: 20px;
|
|
11621
11621
|
color: red;
|
|
11622
|
-
`;class $ae extends p.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?(0,l.jsxs)(Mae,{children:[(0,l.jsx)("h1",{children:"Something went wrong..."}),(0,l.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,l.jsx)("p",{children:(0,l.jsxs)("details",{children:[(0,l.jsx)("summary",{children:"Stack trace"}),(0,l.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,l.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,l.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,l.jsx)(l.Fragment,{children:p.Children.only(this.props.children)})}}function Lae({definitions:t,options:e={}}){return(0,l.jsx)($ae,{children:(0,l.jsx)(sl,{definitions:t,options:e,children:(0,l.jsx)(e5,{})})})}var Bae=Object.defineProperty,kae=Object.defineProperties,Nae=Object.getOwnPropertyDescriptors,qj=Object.getOwnPropertySymbols,Fae=Object.prototype.hasOwnProperty,Uae=Object.prototype.propertyIsEnumerable,_j=(t,e,n)=>e in t?Bae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ov=(t,e)=>{for(var n in e||(e={}))Fae.call(e,n)&&_j(t,n,e[n]);if(qj)for(var n of qj(e))Uae.call(e,n)&&_j(t,n,e[n]);return t},zae=(t,e)=>kae(t,Nae(e));function Vae(t=D.LayoutVariant.THREE_PANEL){const e=(0,V.Sb)(X.VB);(0,V.wl)(X.VB,zae(Ov({},e),{layout:t}))}const eR=(0,N.uW)(),Wae=eR?(0,h.dirname)(eR)+"/":"";function Zae(t){const e={},n=t.attributes;for(let a=0;a<n.length;a++){const c=n[a];e[c.name]=c.value}return e}function tR(t){const e=Zae(t),n={};for(const a in e){const c=a.replace(/-(.)/g,(u,f)=>f.toUpperCase());n[c]=e[a]}return n}function Qae(t,e=document.querySelector("redoc")){(0,W.a)(e,(0,l.jsx)(e5,{store:t}))}function nR(t,e={},n=(0,N.R2)("redoc")){if(n===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let a,c;if(typeof t=="object"&&"versions"in t){(0,W.s)(n).render((0,p.createElement)(Lae,{definitions:t,options:Ov(Ov({},e),tR(n))},["Loading..."]));return}typeof t=="string"?a=t:typeof t=="object"&&(c=t),(0,W.s)(n).render((0,p.createElement)(Rae,{definition:c,definitionUrl:a,options:Ov(Ov({},e),tR(n))},["Loading..."]))}function rR(t){kr.p=t}const Hae="0.0.0-beta-
|
|
11622
|
+
`;class $ae extends p.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?(0,l.jsxs)(Mae,{children:[(0,l.jsx)("h1",{children:"Something went wrong..."}),(0,l.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,l.jsx)("p",{children:(0,l.jsxs)("details",{children:[(0,l.jsx)("summary",{children:"Stack trace"}),(0,l.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,l.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,l.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,l.jsx)(l.Fragment,{children:p.Children.only(this.props.children)})}}function Lae({definitions:t,options:e={}}){return(0,l.jsx)($ae,{children:(0,l.jsx)(sl,{definitions:t,options:e,children:(0,l.jsx)(e5,{})})})}var Bae=Object.defineProperty,kae=Object.defineProperties,Nae=Object.getOwnPropertyDescriptors,qj=Object.getOwnPropertySymbols,Fae=Object.prototype.hasOwnProperty,Uae=Object.prototype.propertyIsEnumerable,_j=(t,e,n)=>e in t?Bae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ov=(t,e)=>{for(var n in e||(e={}))Fae.call(e,n)&&_j(t,n,e[n]);if(qj)for(var n of qj(e))Uae.call(e,n)&&_j(t,n,e[n]);return t},zae=(t,e)=>kae(t,Nae(e));function Vae(t=D.LayoutVariant.THREE_PANEL){const e=(0,V.Sb)(X.VB);(0,V.wl)(X.VB,zae(Ov({},e),{layout:t}))}const eR=(0,N.uW)(),Wae=eR?(0,h.dirname)(eR)+"/":"";function Zae(t){const e={},n=t.attributes;for(let a=0;a<n.length;a++){const c=n[a];e[c.name]=c.value}return e}function tR(t){const e=Zae(t),n={};for(const a in e){const c=a.replace(/-(.)/g,(u,f)=>f.toUpperCase());n[c]=e[a]}return n}function Qae(t,e=document.querySelector("redoc")){(0,W.a)(e,(0,l.jsx)(e5,{store:t}))}function nR(t,e={},n=(0,N.R2)("redoc")){if(n===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let a,c;if(typeof t=="object"&&"versions"in t){(0,W.s)(n).render((0,p.createElement)(Lae,{definitions:t,options:Ov(Ov({},e),tR(n))},["Loading..."]));return}typeof t=="string"?a=t:typeof t=="object"&&(c=t),(0,W.s)(n).render((0,p.createElement)(Rae,{definition:c,definitionUrl:a,options:Ov(Ov({},e),tR(n))},["Loading..."]))}function rR(t){kr.p=t}const Hae="0.0.0-beta-20240312163557",Kae="cef2a935bb";function Yae(){const t=(0,N.R2)("redoc");if(!t)return;const e=t.getAttribute("spec-url");e&&nR(e,{},t)}D.IS_BROWSER&&rR(Wae),Yae()})(),cb})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-20240312163557",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openapi-docs": "bin.js"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@redocly/theme": "0.0.0-beta-
|
|
19
|
+
"@redocly/theme": "0.0.0-beta-20240312163557",
|
|
20
20
|
"core-js": "^3.1.4",
|
|
21
21
|
"react": "^18.0.0",
|
|
22
22
|
"react-dom": "^18.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"url-template": "^2.0.8",
|
|
49
49
|
"util": "~0.12.5",
|
|
50
50
|
"js-yaml": "4.1.0",
|
|
51
|
-
"@redocly/replay": "0.0.0-beta-
|
|
51
|
+
"@redocly/replay": "0.0.0-beta-20240312163557"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@cfaester/enzyme-adapter-react-18": "0.7.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"webpack": "5.88.2",
|
|
100
100
|
"webpack-cli": "5.1.4",
|
|
101
101
|
"webpack-dev-server": "4.15.1",
|
|
102
|
-
"@redocly/theme": "0.0.0-beta-
|
|
102
|
+
"@redocly/theme": "0.0.0-beta-20240312163557"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"start": "webpack serve --mode=development --hot",
|