@redocly/openapi-docs 3.3.7 → 3.3.8
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: "3.3.
|
|
5
|
+
* Version: "3.3.8"
|
|
6
6
|
*/(function(Uc,tc){typeof exports=="object"&&typeof module=="object"?module.exports=tc(require("null")):typeof define=="function"&&define.amd?define(["null"],tc):typeof exports=="object"?exports.RedoclyOpenAPIDocs=tc(require("null")):Uc.RedoclyOpenAPIDocs=tc(Uc.null)})(this,nf=>(()=>{var Uc={44607:(h,t,e)=>{"use strict";e.d(t,{A:()=>n});function n(u){var d=Object.create(null);return function(E){return d[E]===void 0&&(d[E]=u(E)),d[E]}}},41685:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=e(30646),u=e(78234),d=e(30833),E=e(86640),p="https://json-schema.org/draft/2020-12/schema";class v extends n.default{constructor(S={}){super({...S,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),u.default.forEach(S=>this.addVocabulary(S)),this.opts.discriminator&&this.addKeyword(d.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:S,meta:P}=this.opts;P&&(E.default.call(this,S),this.refs["http://json-schema.org/schema"]=p)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(p)?p:void 0)}}h.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var g=e(72630);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return g.KeywordCxt}});var C=e(11601);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return C._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return C.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return C.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return C.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return C.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return C.CodeGen}})},21860:(h,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends e{constructor(l){if(super(),!t.IDENTIFIER.test(l))throw new Error("CodeGen: name must be a valid identifier");this.str=l}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class u extends e{constructor(l){super(),this._items=typeof l=="string"?[l]:l}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const l=this._items[0];return l===""||l==='""'}get str(){var l;return(l=this._str)!==null&&l!==void 0?l:this._str=this._items.reduce((R,O)=>`${R}${O}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((R,O)=>(O instanceof n&&(R[O.str]=(R[O.str]||0)+1),R),{})}}t._Code=u,t.nil=new u("");function d(a,...l){const R=[a[0]];let O=0;for(;O<l.length;)v(R,l[O]),R.push(a[++O]);return new u(R)}t._=d;const E=new u("+");function p(a,...l){const R=[D(a[0])];let O=0;for(;O<l.length;)R.push(E),v(R,l[O]),R.push(E,D(a[++O]));return g(R),new u(R)}t.str=p;function v(a,l){l instanceof u?a.push(...l._items):l instanceof n?a.push(l):a.push(S(l))}t.addCodeArg=v;function g(a){let l=1;for(;l<a.length-1;){if(a[l]===E){const R=C(a[l-1],a[l+1]);if(R!==void 0){a.splice(l-1,3,R);continue}a[l++]="+"}l++}}function C(a,l){if(l==='""')return a;if(a==='""')return l;if(typeof a=="string")return l instanceof n||a[a.length-1]!=='"'?void 0:typeof l!="string"?`${a.slice(0,-1)}${l}"`:l[0]==='"'?a.slice(0,-1)+l.slice(1):void 0;if(typeof l=="string"&&l[0]==='"'&&!(a instanceof n))return`"${a}${l.slice(1)}`}function y(a,l){return l.emptyStr()?a:a.emptyStr()?l:p`${a}${l}`}t.strConcat=y;function S(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:D(Array.isArray(a)?a.join(","):a)}function P(a){return new u(D(a))}t.stringify=P;function D(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=D;function b(a){return typeof a=="string"&&t.IDENTIFIER.test(a)?new u(`.${a}`):d`[${a}]`}t.getProperty=b;function x(a){if(typeof a=="string"&&t.IDENTIFIER.test(a))return new u(`${a}`);throw new Error(`CodeGen: invalid export name: ${a}, use explicit $id name mapping`)}t.getEsmExportName=x;function o(a){return new u(a.toString())}t.regexpCode=o},11601:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=e(21860),u=e(4425);var d=e(21860);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return d.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return d.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return d.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}});var E=e(4425);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return E.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return E.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return E.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return E.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class p{optimizeNodes(){return this}optimizeNames(Z,W){return this}}class v extends p{constructor(Z,W,te){super(),this.varKind=Z,this.name=W,this.rhs=te}render({es5:Z,_n:W}){const te=Z?u.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${te} ${this.name}${q};`+W}optimizeNames(Z,W){if(Z[this.name.str])return this.rhs&&(this.rhs=fe(this.rhs,Z,W)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class g extends p{constructor(Z,W,te){super(),this.lhs=Z,this.rhs=W,this.sideEffects=te}render({_n:Z}){return`${this.lhs} = ${this.rhs};`+Z}optimizeNames(Z,W){if(!(this.lhs instanceof n.Name&&!Z[this.lhs.str]&&!this.sideEffects))return this.rhs=fe(this.rhs,Z,W),this}get names(){const Z=this.lhs instanceof n.Name?{}:{...this.lhs.names};return ie(Z,this.rhs)}}class C extends g{constructor(Z,W,te,q){super(Z,te,q),this.op=W}render({_n:Z}){return`${this.lhs} ${this.op}= ${this.rhs};`+Z}}class y extends p{constructor(Z){super(),this.label=Z,this.names={}}render({_n:Z}){return`${this.label}:`+Z}}class S extends p{constructor(Z){super(),this.label=Z,this.names={}}render({_n:Z}){return`break${this.label?` ${this.label}`:""};`+Z}}class P extends p{constructor(Z){super(),this.error=Z}render({_n:Z}){return`throw ${this.error};`+Z}get names(){return this.error.names}}class D extends p{constructor(Z){super(),this.code=Z}render({_n:Z}){return`${this.code};`+Z}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Z,W){return this.code=fe(this.code,Z,W),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class b extends p{constructor(Z=[]){super(),this.nodes=Z}render(Z){return this.nodes.reduce((W,te)=>W+te.render(Z),"")}optimizeNodes(){const{nodes:Z}=this;let W=Z.length;for(;W--;){const te=Z[W].optimizeNodes();Array.isArray(te)?Z.splice(W,1,...te):te?Z[W]=te:Z.splice(W,1)}return Z.length>0?this:void 0}optimizeNames(Z,W){const{nodes:te}=this;let q=te.length;for(;q--;){const be=te[q];be.optimizeNames(Z,W)||(Me(Z,be.names),te.splice(q,1))}return te.length>0?this:void 0}get names(){return this.nodes.reduce((Z,W)=>ue(Z,W.names),{})}}class x extends b{render(Z){return"{"+Z._n+super.render(Z)+"}"+Z._n}}class o extends b{}class a extends x{}a.kind="else";class l extends x{constructor(Z,W){super(W),this.condition=Z}render(Z){let W=`if(${this.condition})`+super.render(Z);return this.else&&(W+="else "+this.else.render(Z)),W}optimizeNodes(){super.optimizeNodes();const Z=this.condition;if(Z===!0)return this.nodes;let W=this.else;if(W){const te=W.optimizeNodes();W=this.else=Array.isArray(te)?new a(te):te}if(W)return Z===!1?W instanceof l?W:W.nodes:this.nodes.length?this:new l(Le(Z),W instanceof l?[W]:W.nodes);if(!(Z===!1||!this.nodes.length))return this}optimizeNames(Z,W){var te;if(this.else=(te=this.else)===null||te===void 0?void 0:te.optimizeNames(Z,W),!!(super.optimizeNames(Z,W)||this.else))return this.condition=fe(this.condition,Z,W),this}get names(){const Z=super.names;return ie(Z,this.condition),this.else&&ue(Z,this.else.names),Z}}l.kind="if";class R extends x{}R.kind="for";class O extends R{constructor(Z){super(),this.iteration=Z}render(Z){return`for(${this.iteration})`+super.render(Z)}optimizeNames(Z,W){if(super.optimizeNames(Z,W))return this.iteration=fe(this.iteration,Z,W),this}get names(){return ue(super.names,this.iteration.names)}}class M extends R{constructor(Z,W,te,q){super(),this.varKind=Z,this.name=W,this.from=te,this.to=q}render(Z){const W=Z.es5?u.varKinds.var:this.varKind,{name:te,from:q,to:be}=this;return`for(${W} ${te}=${q}; ${te}<${be}; ${te}++)`+super.render(Z)}get names(){const Z=ie(super.names,this.from);return ie(Z,this.to)}}class A extends R{constructor(Z,W,te,q){super(),this.loop=Z,this.varKind=W,this.name=te,this.iterable=q}render(Z){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Z)}optimizeNames(Z,W){if(super.optimizeNames(Z,W))return this.iterable=fe(this.iterable,Z,W),this}get names(){return ue(super.names,this.iterable.names)}}class U extends x{constructor(Z,W,te){super(),this.name=Z,this.args=W,this.async=te}render(Z){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Z)}}U.kind="func";class j extends b{render(Z){return"return "+super.render(Z)}}j.kind="return";class H extends x{render(Z){let W="try"+super.render(Z);return this.catch&&(W+=this.catch.render(Z)),this.finally&&(W+=this.finally.render(Z)),W}optimizeNodes(){var Z,W;return super.optimizeNodes(),(Z=this.catch)===null||Z===void 0||Z.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(Z,W){var te,q;return super.optimizeNames(Z,W),(te=this.catch)===null||te===void 0||te.optimizeNames(Z,W),(q=this.finally)===null||q===void 0||q.optimizeNames(Z,W),this}get names(){const Z=super.names;return this.catch&&ue(Z,this.catch.names),this.finally&&ue(Z,this.finally.names),Z}}class w extends x{constructor(Z){super(),this.error=Z}render(Z){return`catch(${this.error})`+super.render(Z)}}w.kind="catch";class ne extends x{render(Z){return"finally"+super.render(Z)}}ne.kind="finally";class re{constructor(Z,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?`
|
|
7
7
|
`:""},this._extScope=Z,this._scope=new u.Scope({parent:Z}),this._nodes=[new o]}toString(){return this._root.render(this.opts)}name(Z){return this._scope.name(Z)}scopeName(Z){return this._extScope.name(Z)}scopeValue(Z,W){const te=this._extScope.value(Z,W);return(this._values[te.prefix]||(this._values[te.prefix]=new Set)).add(te),te}getScopeValue(Z,W){return this._extScope.getValue(Z,W)}scopeRefs(Z){return this._extScope.scopeRefs(Z,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Z,W,te,q){const be=this._scope.toName(W);return te!==void 0&&q&&(this._constants[be.str]=te),this._leafNode(new v(Z,be,te)),be}const(Z,W,te){return this._def(u.varKinds.const,Z,W,te)}let(Z,W,te){return this._def(u.varKinds.let,Z,W,te)}var(Z,W,te){return this._def(u.varKinds.var,Z,W,te)}assign(Z,W,te){return this._leafNode(new g(Z,W,te))}add(Z,W){return this._leafNode(new C(Z,t.operators.ADD,W))}code(Z){return typeof Z=="function"?Z():Z!==n.nil&&this._leafNode(new D(Z)),this}object(...Z){const W=["{"];for(const[te,q]of Z)W.length>1&&W.push(","),W.push(te),(te!==q||this.opts.es5)&&(W.push(":"),(0,n.addCodeArg)(W,q));return W.push("}"),new n._Code(W)}if(Z,W,te){if(this._blockNode(new l(Z)),W&&te)this.code(W).else().code(te).endIf();else if(W)this.code(W).endIf();else if(te)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Z){return this._elseNode(new l(Z))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(l,a)}_for(Z,W){return this._blockNode(Z),W&&this.code(W).endFor(),this}for(Z,W){return this._for(new O(Z),W)}forRange(Z,W,te,q,be=this.opts.es5?u.varKinds.var:u.varKinds.let){const he=this._scope.toName(Z);return this._for(new M(be,he,W,te),()=>q(he))}forOf(Z,W,te,q=u.varKinds.const){const be=this._scope.toName(Z);if(this.opts.es5){const he=W instanceof n.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,n._)`${he}.length`,ve=>{this.var(be,(0,n._)`${he}[${ve}]`),te(be)})}return this._for(new A("of",q,be,W),()=>te(be))}forIn(Z,W,te,q=this.opts.es5?u.varKinds.var:u.varKinds.const){if(this.opts.ownProperties)return this.forOf(Z,(0,n._)`Object.keys(${W})`,te);const be=this._scope.toName(Z);return this._for(new A("in",q,be,W),()=>te(be))}endFor(){return this._endBlockNode(R)}label(Z){return this._leafNode(new y(Z))}break(Z){return this._leafNode(new S(Z))}return(Z){const W=new j;if(this._blockNode(W),this.code(Z),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(Z,W,te){if(!W&&!te)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new H;if(this._blockNode(q),this.code(Z),W){const be=this.name("e");this._currNode=q.catch=new w(be),W(be)}return te&&(this._currNode=q.finally=new ne,this.code(te)),this._endBlockNode(w,ne)}throw(Z){return this._leafNode(new P(Z))}block(Z,W){return this._blockStarts.push(this._nodes.length),Z&&this.code(Z).endBlock(W),this}endBlock(Z){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const te=this._nodes.length-W;if(te<0||Z!==void 0&&te!==Z)throw new Error(`CodeGen: wrong number of nodes: ${te} vs ${Z} expected`);return this._nodes.length=W,this}func(Z,W=n.nil,te,q){return this._blockNode(new U(Z,W,te)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(U)}optimize(Z=1){for(;Z-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Z){return this._currNode.nodes.push(Z),this}_blockNode(Z){this._currNode.nodes.push(Z),this._nodes.push(Z)}_endBlockNode(Z,W){const te=this._currNode;if(te instanceof Z||W&&te instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${Z.kind}/${W.kind}`:Z.kind}"`)}_elseNode(Z){const W=this._currNode;if(!(W instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=Z,this}get _root(){return this._nodes[0]}get _currNode(){const Z=this._nodes;return Z[Z.length-1]}set _currNode(Z){const W=this._nodes;W[W.length-1]=Z}}t.CodeGen=re;function ue(X,Z){for(const W in Z)X[W]=(X[W]||0)+(Z[W]||0);return X}function ie(X,Z){return Z instanceof n._CodeOrName?ue(X,Z.names):X}function fe(X,Z,W){if(X instanceof n.Name)return te(X);if(!q(X))return X;return new n._Code(X._items.reduce((be,he)=>(he instanceof n.Name&&(he=te(he)),he instanceof n._Code?be.push(...he._items):be.push(he),be),[]));function te(be){const he=W[be.str];return he===void 0||Z[be.str]!==1?be:(delete Z[be.str],he)}function q(be){return be instanceof n._Code&&be._items.some(he=>he instanceof n.Name&&Z[he.str]===1&&W[he.str]!==void 0)}}function Me(X,Z){for(const W in Z)X[W]=(X[W]||0)-(Z[W]||0)}function Le(X){return typeof X=="boolean"||typeof X=="number"||X===null?!X:(0,n._)`!${K(X)}`}t.not=Le;const ge=k(t.operators.AND);function xe(...X){return X.reduce(ge)}t.and=xe;const Oe=k(t.operators.OR);function G(...X){return X.reduce(Oe)}t.or=G;function k(X){return(Z,W)=>Z===n.nil?W:W===n.nil?Z:(0,n._)`${K(Z)} ${X} ${K(W)}`}function K(X){return X instanceof n.Name?X:(0,n._)`(${X})`}},4425:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=e(21860);class u extends Error{constructor(y){super(`CodeGen: "code" for ${y} not defined`),this.value=y.value}}var d;(function(C){C[C.Started=0]="Started",C[C.Completed=1]="Completed"})(d=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class E{constructor({prefixes:y,parent:S}={}){this._names={},this._prefixes=y,this._parent=S}toName(y){return y instanceof n.Name?y:this.name(y)}name(y){return new n.Name(this._newName(y))}_newName(y){const S=this._names[y]||this._nameGroup(y);return`${y}${S.index++}`}_nameGroup(y){var S,P;if(!((P=(S=this._parent)===null||S===void 0?void 0:S._prefixes)===null||P===void 0)&&P.has(y)||this._prefixes&&!this._prefixes.has(y))throw new Error(`CodeGen: prefix "${y}" is not allowed in this scope`);return this._names[y]={prefix:y,index:0}}}t.Scope=E;class p extends n.Name{constructor(y,S){super(S),this.prefix=y}setValue(y,{property:S,itemIndex:P}){this.value=y,this.scopePath=(0,n._)`.${new n.Name(S)}[${P}]`}}t.ValueScopeName=p;const v=(0,n._)`\n`;class g extends E{constructor(y){super(y),this._values={},this._scope=y.scope,this.opts={...y,_n:y.lines?v:n.nil}}get(){return this._scope}name(y){return new p(y,this._newName(y))}value(y,S){var P;if(S.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const D=this.toName(y),{prefix:b}=D,x=(P=S.key)!==null&&P!==void 0?P:S.ref;let o=this._values[b];if(o){const R=o.get(x);if(R)return R}else o=this._values[b]=new Map;o.set(x,D);const a=this._scope[b]||(this._scope[b]=[]),l=a.length;return a[l]=S.ref,D.setValue(S,{property:b,itemIndex:l}),D}getValue(y,S){const P=this._values[y];if(P)return P.get(S)}scopeRefs(y,S=this._values){return this._reduceValues(S,P=>{if(P.scopePath===void 0)throw new Error(`CodeGen: name "${P}" has no value`);return(0,n._)`${y}${P.scopePath}`})}scopeCode(y=this._values,S,P){return this._reduceValues(y,D=>{if(D.value===void 0)throw new Error(`CodeGen: name "${D}" has no value`);return D.value.code},S,P)}_reduceValues(y,S,P={},D){let b=n.nil;for(const x in y){const o=y[x];if(!o)continue;const a=P[x]=P[x]||new Map;o.forEach(l=>{if(a.has(l))return;a.set(l,d.Started);let R=S(l);if(R){const O=this.opts.es5?t.varKinds.var:t.varKinds.const;b=(0,n._)`${b}${O} ${l} = ${R};${this.opts._n}`}else if(R=D?.(l))b=(0,n._)`${b}${R}${this.opts._n}`;else throw new u(l);a.set(l,d.Completed)})}return b}}t.ValueScope=g},52952:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=e(11601),u=e(64207),d=e(38955);t.keywordError={message:({keyword:a})=>(0,n.str)`must pass "${a}" keyword validation`},t.keyword$DataError={message:({keyword:a,schemaType:l})=>l?(0,n.str)`"${a}" keyword must be ${l} ($data)`:(0,n.str)`"${a}" keyword is invalid ($data)`};function E(a,l=t.keywordError,R,O){const{it:M}=a,{gen:A,compositeRule:U,allErrors:j}=M,H=P(a,l,R);O??(U||j)?C(A,H):y(M,(0,n._)`[${H}]`)}t.reportError=E;function p(a,l=t.keywordError,R){const{it:O}=a,{gen:M,compositeRule:A,allErrors:U}=O,j=P(a,l,R);C(M,j),A||U||y(O,d.default.vErrors)}t.reportExtraError=p;function v(a,l){a.assign(d.default.errors,l),a.if((0,n._)`${d.default.vErrors} !== null`,()=>a.if(l,()=>a.assign((0,n._)`${d.default.vErrors}.length`,l),()=>a.assign(d.default.vErrors,null)))}t.resetErrorsCount=v;function g({gen:a,keyword:l,schemaValue:R,data:O,errsCount:M,it:A}){if(M===void 0)throw new Error("ajv implementation error");const U=a.name("err");a.forRange("i",M,d.default.errors,j=>{a.const(U,(0,n._)`${d.default.vErrors}[${j}]`),a.if((0,n._)`${U}.instancePath === undefined`,()=>a.assign((0,n._)`${U}.instancePath`,(0,n.strConcat)(d.default.instancePath,A.errorPath))),a.assign((0,n._)`${U}.schemaPath`,(0,n.str)`${A.errSchemaPath}/${l}`),A.opts.verbose&&(a.assign((0,n._)`${U}.schema`,R),a.assign((0,n._)`${U}.data`,O))})}t.extendErrors=g;function C(a,l){const R=a.const("err",l);a.if((0,n._)`${d.default.vErrors} === null`,()=>a.assign(d.default.vErrors,(0,n._)`[${R}]`),(0,n._)`${d.default.vErrors}.push(${R})`),a.code((0,n._)`${d.default.errors}++`)}function y(a,l){const{gen:R,validateName:O,schemaEnv:M}=a;M.$async?R.throw((0,n._)`new ${a.ValidationError}(${l})`):(R.assign((0,n._)`${O}.errors`,l),R.return(!1))}const S={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function P(a,l,R){const{createErrors:O}=a.it;return O===!1?(0,n._)`{}`:D(a,l,R)}function D(a,l,R={}){const{gen:O,it:M}=a,A=[b(M,R),x(a,R)];return o(a,l,A),O.object(...A)}function b({errorPath:a},{instancePath:l}){const R=l?(0,n.str)`${a}${(0,u.getErrorPath)(l,u.Type.Str)}`:a;return[d.default.instancePath,(0,n.strConcat)(d.default.instancePath,R)]}function x({keyword:a,it:{errSchemaPath:l}},{schemaPath:R,parentSchema:O}){let M=O?l:(0,n.str)`${l}/${a}`;return R&&(M=(0,n.str)`${M}${(0,u.getErrorPath)(R,u.Type.Str)}`),[S.schemaPath,M]}function o(a,{params:l,message:R},O){const{keyword:M,data:A,schemaValue:U,it:j}=a,{opts:H,propertyName:w,topSchemaRef:ne,schemaPath:re}=j;O.push([S.keyword,M],[S.params,typeof l=="function"?l(a):l||(0,n._)`{}`]),H.messages&&O.push([S.message,typeof R=="function"?R(a):R]),H.verbose&&O.push([S.schema,U],[S.parentSchema,(0,n._)`${ne}${re}`],[d.default.data,A]),w&&O.push([S.propertyName,w])}},39663:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=e(11601),u=e(3450),d=e(38955),E=e(92863),p=e(64207),v=e(72630);class g{constructor(R){var O;this.refs={},this.dynamicAnchors={};let M;typeof R.schema=="object"&&(M=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(O=R.baseId)!==null&&O!==void 0?O:(0,E.normalizeId)(M?.[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=M?.$async,this.refs={}}}t.SchemaEnv=g;function C(l){const R=P.call(this,l);if(R)return R;const O=(0,E.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:M,lines:A}=this.opts.code,{ownProperties:U}=this.opts,j=new n.CodeGen(this.scope,{es5:M,lines:A,ownProperties:U});let H;l.$async&&(H=j.scopeValue("Error",{ref:u.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));const w=j.scopeName("validate");l.validateName=w;const ne={gen:j,allErrors:this.opts.allErrors,data:d.default.data,parentData:d.default.parentData,parentDataProperty:d.default.parentDataProperty,dataNames:[d.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:j.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,n.stringify)(l.schema)}:{ref:l.schema}),validateName:w,ValidationError:H,schema:l.schema,schemaEnv:l,rootId:O,baseId:l.baseId||O,schemaPath:n.nil,errSchemaPath:l.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let re;try{this._compilations.add(l),(0,v.validateFunctionCode)(ne),j.optimize(this.opts.code.optimize);const ue=j.toString();re=`const visitedNodesForRef = new WeakMap(); ${j.scopeRefs(d.default.scope)}return ${ue}`,this.opts.code.process&&(re=this.opts.code.process(re,l));const fe=new Function(`${d.default.self}`,`${d.default.scope}`,re)(this,this.scope.get());if(this.scope.value(w,{ref:fe}),fe.errors=null,fe.schema=l.schema,fe.schemaEnv=l,l.$async&&(fe.$async=!0),this.opts.code.source===!0&&(fe.source={validateName:w,validateCode:ue,scopeValues:j._values}),this.opts.unevaluated){const{props:Me,items:Le}=ne;fe.evaluated={props:Me instanceof n.Name?void 0:Me,items:Le instanceof n.Name?void 0:Le,dynamicProps:Me instanceof n.Name,dynamicItems:Le instanceof n.Name},fe.source&&(fe.source.evaluated=(0,n.stringify)(fe.evaluated))}return l.validate=fe,l}catch(ue){throw delete l.validate,delete l.validateName,re&&this.logger.error("Error compiling schema, function code:",re),ue}finally{this._compilations.delete(l)}}t.compileSchema=C;function y(l,R,O){var M;const A=(0,E.resolveUrl)(this.opts.uriResolver,R,O),U=l.refs[A];if(U)return U;let j=b.call(this,l,A);if(j===void 0){const H=(M=l.localRefs)===null||M===void 0?void 0:M[A],{schemaId:w}=this.opts;H&&(j=new g({schema:H,schemaId:w,root:l,baseId:R}))}if(j===void 0&&this.opts.loadSchemaSync){const H=this.opts.loadSchemaSync(R,O,A);H&&!(this.refs[A]||this.schemas[A])&&(this.addSchema(H,A,void 0),j=b.call(this,l,A))}if(j!==void 0)return l.refs[A]=S.call(this,j)}t.resolveRef=y;function S(l){return(0,E.inlineRef)(l.schema,this.opts.inlineRefs)?l.schema:l.validate?l:C.call(this,l)}function P(l){for(const R of this._compilations)if(D(R,l))return R}t.getCompilingSchema=P;function D(l,R){return l.schema===R.schema&&l.root===R.root&&l.baseId===R.baseId}function b(l,R){let O;for(;typeof(O=this.refs[R])=="string";)R=O;return O||this.schemas[R]||x.call(this,l,R)}function x(l,R){const O=this.opts.uriResolver.parse(R),M=(0,E._getFullPath)(this.opts.uriResolver,O);let A=(0,E.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&M===A)return a.call(this,O,l);const U=(0,E.normalizeId)(M),j=this.refs[U]||this.schemas[U];if(typeof j=="string"){const H=x.call(this,l,j);return typeof H?.schema!="object"?void 0:a.call(this,O,H)}if(typeof j?.schema=="object"){if(j.validate||C.call(this,j),U===(0,E.normalizeId)(R)){const{schema:H}=j,{schemaId:w}=this.opts,ne=H[w];return ne&&(A=(0,E.resolveUrl)(this.opts.uriResolver,A,ne)),new g({schema:H,schemaId:w,root:l,baseId:A})}return a.call(this,O,j)}}t.resolveSchema=x;const o=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:R,schema:O,root:M}){var A;if(((A=l.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const H of l.fragment.slice(1).split("/")){if(typeof O=="boolean")return;const w=O[(0,p.unescapeFragment)(H)];if(w===void 0)return;O=w;const ne=typeof O=="object"&&O[this.opts.schemaId];!o.has(H)&&ne&&(R=(0,E.resolveUrl)(this.opts.uriResolver,R,ne))}let U;if(typeof O!="boolean"&&O.$ref&&!(0,p.schemaHasRulesButRef)(O,this.RULES)){const H=(0,E.resolveUrl)(this.opts.uriResolver,R,O.$ref);U=x.call(this,M,H)}const{schemaId:j}=this.opts;if(U=U||new g({schema:O,schemaId:j,root:M,baseId:R}),U.schema!==U.root.schema)return U}},38955:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(11601),u={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),isAllOfVariant:new n.Name("isAllOfVariant"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=u},10059:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(92863);class u extends Error{constructor(E,p,v,g){super(g||`can't resolve reference ${v} from id ${p}`),this.missingRef=(0,n.resolveUrl)(E,p,v),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(E,this.missingRef))}}t.default=u},92863:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=e(64207),u=e(67371),d=e(50205),E=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function p(a,l=!0){return typeof a=="boolean"?!0:l===!0?!g(a):l?C(a)<=l:!1}t.inlineRef=p;const v=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function g(a){for(const l in a){if(v.has(l))return!0;const R=a[l];if(Array.isArray(R)&&R.some(g)||typeof R=="object"&&g(R))return!0}return!1}function C(a){let l=0;for(const R in a){if(R==="$ref")return 1/0;if(l++,!E.has(R)&&(typeof a[R]=="object"&&(0,n.eachItem)(a[R],O=>l+=C(O)),l===1/0))return 1/0}return l}function y(a,l="",R){R!==!1&&(l=D(l));const O=a.parse(l);return S(a,O)}t.getFullPath=y;function S(a,l){return a.serialize(l).split("#")[0]+"#"}t._getFullPath=S;const P=/#\/?$/;function D(a){return a?a.replace(P,""):""}t.normalizeId=D;function b(a,l,R){return R=D(R),a.resolve(l,R)}t.resolveUrl=b;const x=/^[a-z_][-a-z0-9._]*$/i;function o(a,l){if(typeof a=="boolean")return{};const{schemaId:R,uriResolver:O}=this.opts,M=D(a[R]||l),A={"":M},U=y(O,M,!1),j={},H=new Set;return d(a,{allKeys:!0},(re,ue,ie,fe)=>{if(fe===void 0)return;const Me=U+ue;let Le=A[fe];typeof re[R]=="string"&&(Le=ge.call(this,re[R])),xe.call(this,re.$anchor),xe.call(this,re.$dynamicAnchor),A[ue]=Le;function ge(Oe){const G=this.opts.uriResolver.resolve;if(Oe=D(Le?G(Le,Oe):Oe),H.has(Oe))throw ne(Oe);H.add(Oe);let k=this.refs[Oe];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?w(re,k.schema,Oe):Oe!==D(Me)&&(Oe[0]==="#"?(w(re,j[Oe],Oe),j[Oe]=re):this.refs[Oe]=Me),Oe}function xe(Oe){if(typeof Oe=="string"){if(!x.test(Oe))throw new Error(`invalid anchor "${Oe}"`);ge.call(this,`#${Oe}`)}}}),j;function w(re,ue,ie){if(ue!==void 0&&!u(re,ue))throw ne(ie)}function ne(re){return new Error(`reference "${re}" resolves to more than one schema`)}}t.getSchemaRefs=o},57760:(h,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],n=new Set(e);function u(E){return typeof E=="string"&&n.has(E)}t.isJSONType=u;function d(){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:{}}}t.getRules=d},64207:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=e(11601),u=e(21860);function d(U){const j={};for(const H of U)j[H]=!0;return j}t.toHash=d;function E(U,j){return typeof j=="boolean"?j:Object.keys(j).length===0?!0:(p(U,j),!v(j,U.self.RULES.all))}t.alwaysValidSchema=E;function p(U,j=U.schema){const{opts:H,self:w}=U;if(!H.strictSchema||typeof j=="boolean")return;const ne=w.RULES.keywords;for(const re in j)ne[re]||A(U,`unknown keyword: "${re}"`)}t.checkUnknownRules=p;function v(U,j){if(typeof U=="boolean")return!U;for(const H in U)if(j[H])return!0;return!1}t.schemaHasRules=v;function g(U,j){if(typeof U=="boolean")return!U;for(const H in U)if(H!=="$ref"&&j.all[H])return!0;return!1}t.schemaHasRulesButRef=g;function C({topSchemaRef:U,schemaPath:j},H,w,ne){if(!ne){if(typeof H=="number"||typeof H=="boolean")return H;if(typeof H=="string")return(0,n._)`${H}`}return(0,n._)`${U}${j}${(0,n.getProperty)(w)}`}t.schemaRefOrVal=C;function y(U){return D(decodeURIComponent(U))}t.unescapeFragment=y;function S(U){return encodeURIComponent(P(U))}t.escapeFragment=S;function P(U){return typeof U=="number"?`${U}`:U.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=P;function D(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=D;function b(U,j){if(Array.isArray(U))for(const H of U)j(H);else j(U)}t.eachItem=b;function x({mergeNames:U,mergeToName:j,mergeValues:H,resultToName:w}){return(ne,re,ue,ie)=>{const fe=ue===void 0?re:ue instanceof n.Name?(re instanceof n.Name?U(ne,re,ue):j(ne,re,ue),ue):re instanceof n.Name?(j(ne,ue,re),re):H(re,ue);return ie===n.Name&&!(fe instanceof n.Name)?w(ne,fe):fe}}t.mergeEvaluated={props:x({mergeNames:(U,j,H)=>U.if((0,n._)`${H} !== true && ${j} !== undefined`,()=>{U.if((0,n._)`${j} === true`,()=>U.assign(H,!0),()=>U.assign(H,(0,n._)`${H} || {}`).code((0,n._)`Object.assign(${H}, ${j})`))}),mergeToName:(U,j,H)=>U.if((0,n._)`${H} !== true`,()=>{j===!0?U.assign(H,!0):(U.assign(H,(0,n._)`${H} || {}`),a(U,H,j))}),mergeValues:(U,j)=>U===!0?!0:{...U,...j},resultToName:o}),items:x({mergeNames:(U,j,H)=>U.if((0,n._)`${H} !== true && ${j} !== undefined`,()=>U.assign(H,(0,n._)`${j} === true ? true : ${H} > ${j} ? ${H} : ${j}`)),mergeToName:(U,j,H)=>U.if((0,n._)`${H} !== true`,()=>U.assign(H,j===!0?!0:(0,n._)`${H} > ${j} ? ${H} : ${j}`)),mergeValues:(U,j)=>U===!0?!0:Math.max(U,j),resultToName:(U,j)=>U.var("items",j)})};function o(U,j){if(j===!0)return U.var("props",!0);const H=U.var("props",(0,n._)`{}`);return j!==void 0&&a(U,H,j),H}t.evaluatedPropsToName=o;function a(U,j,H){Object.keys(H).forEach(w=>U.assign((0,n._)`${j}${(0,n.getProperty)(w)}`,!0))}t.setEvaluated=a;const l={};function R(U,j){return U.scopeValue("func",{ref:j,code:l[j.code]||(l[j.code]=new u._Code(j.code))})}t.useFunc=R;var O;(function(U){U[U.Num=0]="Num",U[U.Str=1]="Str"})(O=t.Type||(t.Type={}));function M(U,j,H){if(U instanceof n.Name){const w=j===O.Num;return H?w?(0,n._)`"[" + ${U} + "]"`:(0,n._)`"['" + ${U} + "']"`:w?(0,n._)`"/" + ${U}`:(0,n._)`"/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return H?(0,n.getProperty)(U).toString():"/"+P(U)}t.getErrorPath=M;function A(U,j,H=U.opts.strictSchema){if(H){if(j=`strict mode: ${j}`,H===!0)throw new Error(j);U.self.logger.warn(j)}}t.checkStrictMode=A},17819:(h,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function e({schema:d,self:E},p){const v=E.RULES.types[p];return v&&v!==!0&&n(d,v)}t.schemaHasRulesForType=e;function n(d,E){return E.rules.some(p=>u(d,p))}t.shouldUseGroup=n;function u(d,E){var p;return d[E.keyword]!==void 0||((p=E.definition.implements)===null||p===void 0?void 0:p.some(v=>d[v]!==void 0))}t.shouldUseRule=u},219:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=e(52952),u=e(11601),d=e(38955),E={message:"boolean schema is false"};function p(C){const{gen:y,schema:S,validateName:P}=C;S===!1?g(C,!1):typeof S=="object"&&S.$async===!0?y.return(d.default.data):(y.assign((0,u._)`${P}.errors`,null),y.return(!0))}t.topBoolOrEmptySchema=p;function v(C,y){const{gen:S,schema:P}=C;P===!1?(S.var(y,!1),g(C)):S.var(y,!0)}t.boolOrEmptySchema=v;function g(C,y){const{gen:S,data:P}=C,D={gen:S,keyword:"false schema",data:P,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:C};(0,n.reportError)(D,E,void 0,y)}},9788:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=e(57760),u=e(17819),d=e(52952),E=e(11601),p=e(64207);var v;(function(O){O[O.Correct=0]="Correct",O[O.Wrong=1]="Wrong"})(v=t.DataType||(t.DataType={}));function g(O){const M=C(O.type);if(M.includes("null")){if(O.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!M.length&&O.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');O.nullable===!0&&M.push("null")}return M}t.getSchemaTypes=g;function C(O){const M=Array.isArray(O)?O:O?[O]:[];if(M.every(n.isJSONType))return M;throw new Error("type must be JSONType or JSONType[]: "+M.join(","))}t.getJSONTypes=C;function y(O,M){const{gen:A,data:U,opts:j}=O,H=P(M,j.coerceTypes),w=M.length>0&&!(H.length===0&&M.length===1&&(0,u.schemaHasRulesForType)(O,M[0]));if(w){const ne=o(M,U,j.strictNumbers,v.Wrong);A.if(ne,()=>{H.length?D(O,M,H):l(O)})}return w}t.coerceAndCheckDataType=y;const S=new Set(["string","number","integer","boolean","null"]);function P(O,M){return M?O.filter(A=>S.has(A)||M==="array"&&A==="array"):[]}function D(O,M,A){const{gen:U,data:j,opts:H}=O,w=U.let("dataType",(0,E._)`typeof ${j}`),ne=U.let("coerced",(0,E._)`undefined`);H.coerceTypes==="array"&&U.if((0,E._)`${w} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>U.assign(j,(0,E._)`${j}[0]`).assign(w,(0,E._)`typeof ${j}`).if(o(M,j,H.strictNumbers),()=>U.assign(ne,j))),U.if((0,E._)`${ne} !== undefined`);for(const ue of A)(S.has(ue)||ue==="array"&&H.coerceTypes==="array")&&re(ue);U.else(),l(O),U.endIf(),U.if((0,E._)`${ne} !== undefined`,()=>{U.assign(j,ne),b(O,ne)});function re(ue){switch(ue){case"string":U.elseIf((0,E._)`${w} == "number" || ${w} == "boolean"`).assign(ne,(0,E._)`"" + ${j}`).elseIf((0,E._)`${j} === null`).assign(ne,(0,E._)`""`);return;case"number":U.elseIf((0,E._)`${w} == "boolean" || ${j} === null
|
|
8
8
|
|| (${w} == "string" && ${j} && ${j} == +${j})`).assign(ne,(0,E._)`+${j}`);return;case"integer":U.elseIf((0,E._)`${w} === "boolean" || ${j} === null
|
|
@@ -10323,4 +10323,4 @@ Error generating stack: `+ae.message+`
|
|
|
10323
10323
|
`,Gh=({pointer:T,schema:L})=>{const{options:N,parser:Ce}=useAtomValue(globalStoreAtom),Ke=L||{$ref:T},ft=getSchema({parser:Ce,schemaOrRef:Ke,pointer:T||"",options:N,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:ft,level:1,disableDeepLinks:!0})})})},Zh=({pointer:T,mimeType:L,encoding:N})=>{const Ce=useAtomValue(globalParserAtom),Ke=useAtomValue(layoutAtom),ft=getExamples({parser:Ce,infoOrRef:{$ref:T},mime:L,encoding:N});return jsx(Row,{layout:Ke,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ft,mimeType:L})})})},xh=O.Ay.div`
|
|
10324
10324
|
padding: 20px;
|
|
10325
10325
|
color: red;
|
|
10326
|
-
`;class Yh extends o.Component{constructor(L){super(L),this.state={error:void 0}}componentDidCatch(L){return this.setState({error:L}),!1}render(){return this.state.error?(0,h.jsxs)(xh,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:o.Children.only(this.props.children)})}}var Ih=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,L,N)=>L in T?Ih(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,zf=(T,L)=>{for(var N in L||(L={}))Ah.call(L,N)&&Uf(T,N,L[N]);if(Nf)for(var N of Nf(L))Dh.call(L,N)&&Uf(T,N,L[N]);return T};const Hf=(0,R.JA)(),Th=Hf?(0,x.dirname)(Hf)+"/":"";function Mh(T){const L={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ke=N[Ce];L[Ke.name]=Ke.value}return L}function jh(T){const L=Mh(T),N={};for(const Ce in L){const Ke=Ce.replace(/-(.)/g,(ft,jt)=>jt.toUpperCase());N[Ke]=L[Ce]}return N}function Rh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,h.jsx)($f,{store:T}))}function Wf(T,L={},N=(0,R.iT)("redoc")){if(N===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let Ce,Ke;typeof T=="string"?Ce=T:typeof T=="object"&&(Ke=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:Ke,definitionUrl:Ce,options:zf(zf({},L),jh(N))},["Loading..."]))}function Vf(T){Pr.p=T}const Lh="3.3.
|
|
10326
|
+
`;class Yh extends o.Component{constructor(L){super(L),this.state={error:void 0}}componentDidCatch(L){return this.setState({error:L}),!1}render(){return this.state.error?(0,h.jsxs)(xh,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:o.Children.only(this.props.children)})}}var Ih=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,L,N)=>L in T?Ih(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,zf=(T,L)=>{for(var N in L||(L={}))Ah.call(L,N)&&Uf(T,N,L[N]);if(Nf)for(var N of Nf(L))Dh.call(L,N)&&Uf(T,N,L[N]);return T};const Hf=(0,R.JA)(),Th=Hf?(0,x.dirname)(Hf)+"/":"";function Mh(T){const L={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ke=N[Ce];L[Ke.name]=Ke.value}return L}function jh(T){const L=Mh(T),N={};for(const Ce in L){const Ke=Ce.replace(/-(.)/g,(ft,jt)=>jt.toUpperCase());N[Ke]=L[Ce]}return N}function Rh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,h.jsx)($f,{store:T}))}function Wf(T,L={},N=(0,R.iT)("redoc")){if(N===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let Ce,Ke;typeof T=="string"?Ce=T:typeof T=="object"&&(Ke=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:Ke,definitionUrl:Ce,options:zf(zf({},L),jh(N))},["Loading..."]))}function Vf(T){Pr.p=T}const Lh="3.3.8",wh="eee2958590";function Bh(){const T=(0,R.iT)("redoc");if(!T)return;const L=T.getAttribute("spec-url");L&&Wf(L,{},T)}l.IS_BROWSER&&Vf(Th),Bh()})(),Ad})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "~0.11.0",
|
|
45
45
|
"url-template": "^2.0.8",
|
|
46
46
|
"util": "~0.12.5",
|
|
47
|
-
"@redocly/replay": "0.5.
|
|
47
|
+
"@redocly/replay": "0.5.5",
|
|
48
48
|
"@redocly/config": "0.10.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"webpack": "5.91.0",
|
|
93
93
|
"webpack-cli": "5.1.4",
|
|
94
94
|
"webpack-dev-server": "4.15.2",
|
|
95
|
-
"@redocly/theme": "0.40.
|
|
95
|
+
"@redocly/theme": "0.40.5"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"start": "webpack serve --mode=development --hot",
|