From 516fc0d5e638be1e1a2bee4d83cb3eaaf59df238 Mon Sep 17 00:00:00 2001
From: Anthony Debucquoy
Date: Mon, 4 Mar 2024 20:42:10 +0100
Subject: [PATCH] fix last commit
---
backend/src/main/resources/static/assets/index-BP8s9Pse.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/main/resources/static/assets/index-BP8s9Pse.js b/backend/src/main/resources/static/assets/index-BP8s9Pse.js
index 0b605f0..aaf1247 100644
--- a/backend/src/main/resources/static/assets/index-BP8s9Pse.js
+++ b/backend/src/main/resources/static/assets/index-BP8s9Pse.js
@@ -189,4 +189,4 @@ ${le.join(`,
`)}(0,JSON.stringify(O,null,2))||"{}",f.default.createElement("br",null)))}}var bz=vz,Ez=({servers:a,currentServer:u,setSelectedServer:p,setServerVariableValue:d,getServerVariable:g,getEffectiveServerValue:E})=>{const O=(a.find(F=>F.get("url")===u)||(0,L.OrderedMap)()).get("variables")||(0,L.OrderedMap)(),k=O.size!==0;(0,f.useEffect)(()=>{var F;u||p((F=a.first())==null?void 0:F.get("url"))},[]),(0,f.useEffect)(()=>{const F=a.find(W=>W.get("url")===u);if(!F)return void p(a.first().get("url"));(F.get("variables")||(0,L.OrderedMap)()).map((W,G)=>{d({server:u,key:G,val:W.get("default")||""})})},[u,a]);const N=(0,f.useCallback)(F=>{p(F.target.value)},[p]),D=(0,f.useCallback)(F=>{const W=F.target.getAttribute("data-variable"),G=F.target.value;d({server:u,key:W,val:G})},[d,u]);return f.default.createElement("div",{className:"servers"},f.default.createElement("label",{htmlFor:"servers"},f.default.createElement("select",{onChange:N,value:u,id:"servers"},a.valueSeq().map(F=>f.default.createElement("option",{value:F.get("url"),key:F.get("url")},F.get("url"),F.get("description")&&` - ${F.get("description")}`)).toArray())),k&&f.default.createElement("div",null,f.default.createElement("div",{className:"computed-url"},"Computed URL:",f.default.createElement("code",null,E(u))),f.default.createElement("h4",null,"Server variables"),f.default.createElement("table",null,f.default.createElement("tbody",null,O.entrySeq().map(([F,W])=>f.default.createElement("tr",{key:F},f.default.createElement("td",null,F),f.default.createElement("td",null,W.get("enum")?f.default.createElement("select",{"data-variable":F,onChange:D},W.get("enum").map(G=>f.default.createElement("option",{selected:G===g(u,F),key:G,value:G},G))):f.default.createElement("input",{type:"text",value:g(u,F)||"",onChange:D,"data-variable":F}))))))))};class Sz extends f.default.Component{render(){const{specSelectors:u,oas3Selectors:p,oas3Actions:d,getComponent:g}=this.props,E=u.servers(),O=g("Servers");return E&&E.size?f.default.createElement("div",null,f.default.createElement("span",{className:"servers-title"},"Servers"),f.default.createElement(O,{servers:E,currentServer:p.selectedServer(),setSelectedServer:d.setSelectedServer,setServerVariableValue:d.setServerVariableValue,getServerVariable:p.serverVariableValue,getEffectiveServerValue:p.serverEffectiveValue})):null}}const wz=Function.prototype;class zk extends f.PureComponent{constructor(p,d){super(p,d);ie(this,"applyDefaultValue",p=>{const{onChange:d,defaultValue:g}=p||this.props;return this.setState({value:g}),d(g)});ie(this,"onChange",p=>{this.props.onChange(vr(p))});ie(this,"onDomChange",p=>{const d=p.target.value;this.setState({value:d},()=>this.onChange(d))});this.state={value:vr(p.value)||p.defaultValue},p.onChange(p.value)}UNSAFE_componentWillReceiveProps(p){this.props.value!==p.value&&p.value!==this.state.value&&this.setState({value:vr(p.value)}),!p.value&&p.defaultValue&&this.state.value&&this.applyDefaultValue(p)}render(){let{getComponent:p,errors:d}=this.props,{value:g}=this.state,E=d.size>0;const O=p("TextArea");return f.default.createElement("div",{className:"body-param"},f.default.createElement(O,{className:(0,Er.default)("body-param__text",{invalid:E}),title:d.size?d.join(", "):"",value:g,onChange:this.onDomChange}))}}ie(zk,"defaultProps",{onChange:wz,userHasEditedBody:!1});class _z extends f.default.Component{constructor(p,d){super(p,d);ie(this,"onChange",p=>{let{onChange:d}=this.props,{value:g,name:E}=p.target,O=Object.assign({},this.state.value);E?O[E]=g:O=g,this.setState({value:O},()=>d(this.state))});let{name:g,schema:E}=this.props,O=this.getValue();this.state={name:g,schema:E,value:O}}getValue(){let{name:p,authorized:d}=this.props;return d&&d.getIn([p,"value"])}render(){let{schema:p,getComponent:d,errSelectors:g,name:E}=this.props;const O=d("Input"),k=d("Row"),N=d("Col"),D=d("authError"),F=d("Markdown",!0),W=d("JumpToPath",!0),G=(p.get("scheme")||"").toLowerCase();let H=this.getValue(),ne=g.allErrors().filter(le=>le.get("authId")===E);if(G==="basic"){let le=H?H.get("username"):null;return f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,E||p.get("name"))," (http, Basic)",f.default.createElement(W,{path:["securityDefinitions",E]})),le&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(k,null,f.default.createElement(F,{source:p.get("description")})),f.default.createElement(k,null,f.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),le?f.default.createElement("code",null," ",le," "):f.default.createElement(N,null,f.default.createElement(O,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),f.default.createElement(k,null,f.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),le?f.default.createElement("code",null," ****** "):f.default.createElement(N,null,f.default.createElement(O,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),ne.valueSeq().map((ae,Re)=>f.default.createElement(D,{error:ae,key:Re})))}return G==="bearer"?f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,E||p.get("name"))," (http, Bearer)",f.default.createElement(W,{path:["securityDefinitions",E]})),H&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(k,null,f.default.createElement(F,{source:p.get("description")})),f.default.createElement(k,null,f.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),H?f.default.createElement("code",null," ****** "):f.default.createElement(N,null,f.default.createElement(O,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),ne.valueSeq().map((le,ae)=>f.default.createElement(D,{error:le,key:ae}))):f.default.createElement("div",null,f.default.createElement("em",null,f.default.createElement("b",null,E)," HTTP authentication: unsupported scheme ",`'${G}'`))}}class xz extends f.default.Component{constructor(){super(...arguments);ie(this,"setSelectedServer",p=>{const{path:d,method:g}=this.props;return this.forceUpdate(),this.props.setSelectedServer(p,`${d}:${g}`)});ie(this,"setServerVariableValue",p=>{const{path:d,method:g}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...p,namespace:`${d}:${g}`})});ie(this,"getSelectedServer",()=>{const{path:p,method:d}=this.props;return this.props.getSelectedServer(`${p}:${d}`)});ie(this,"getServerVariable",(p,d)=>{const{path:g,method:E}=this.props;return this.props.getServerVariable({namespace:`${g}:${E}`,server:p},d)});ie(this,"getEffectiveServerValue",p=>{const{path:d,method:g}=this.props;return this.props.getEffectiveServerValue({server:p,namespace:`${d}:${g}`})})}render(){const{operationServers:p,pathServers:d,getComponent:g}=this.props;if(!p&&!d)return null;const E=g("Servers"),O=p||d,k=p?"operation":"path";return f.default.createElement("div",{className:"opblock-section operation-servers"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("div",{className:"tab-header"},f.default.createElement("h4",{className:"opblock-title"},"Servers"))),f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("h4",{className:"message"},"These ",k,"-level options override the global server options."),f.default.createElement(E,{servers:O,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var Az={Callbacks:gz,HttpAuth:_z,RequestBody:yz,Servers:Ez,ServersContainer:Sz,RequestBodyEditor:zk,OperationServers:xz,operationLink:bz};const uE=new Nk.Remarkable("commonmark");uE.block.ruler.enable(["table"]),uE.set({linkTarget:"_blank"});var Oz=ip(({source:a,className:u="",getConfigs:p=()=>({useUnsafeMarkdown:!1})})=>{if(typeof a!="string")return null;if(a){const{useUnsafeMarkdown:d}=p(),g=tp(uE.render(a),{useUnsafeMarkdown:d});let E;return typeof g=="string"&&(E=g.trim()),f.default.createElement("div",{dangerouslySetInnerHTML:{__html:E},className:(0,Er.default)(u,"renderedMarkdown")})}return null}),Cz=ip(({Ori:a,...u})=>{const{schema:p,getComponent:d,errSelectors:g,authorized:E,onAuthChange:O,name:k}=u,N=d("HttpAuth");return p.get("type")==="http"?f.default.createElement(N,{key:k,schema:p,name:k,errSelectors:g,authorized:E,getComponent:d,onChange:O}):f.default.createElement(a,u)}),$z=ip(pk);class kz extends f.Component{render(){let{getConfigs:u,schema:p}=this.props,d=["model-box"],g=null;return p.get("deprecated")===!0&&(d.push("deprecated"),g=f.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),f.default.createElement("div",{className:d.join(" ")},g,f.default.createElement(iE,(0,Kt.default)({},this.props,{getConfigs:u,depth:1,expandDepth:this.props.expandDepth||0})))}}var Tz=ip(kz),Pz=ip(({Ori:a,...u})=>{const{schema:p,getComponent:d,errors:g,onChange:E}=u,O=p&&p.get?p.get("format"):null,k=p&&p.get?p.get("type"):null,N=d("Input");return k&&k==="string"&&O&&(O==="binary"||O==="base64")?f.default.createElement(N,{type:"file",className:g.length?"invalid":"",title:g.length?g:"",onChange:D=>{E(D.target.files[0])},disabled:a.isDisabled}):f.default.createElement(a,u)}),Rz={Markdown:Oz,AuthItem:Cz,OpenAPIVersion:function(u){return(p,d)=>g=>{var E;return typeof((E=d.specSelectors)==null?void 0:E.isOAS30)=="function"?d.specSelectors.isOAS30()?f.default.createElement(u,(0,Kt.default)({},g,d,{Ori:p})):f.default.createElement(p,g):(console.warn("OAS30 wrapper: couldn't get spec"),null)}}(a=>{const{Ori:u}=a;return f.default.createElement(u,{oasVersion:"3.0"})}),JsonSchema_string:Pz,model:Tz,onlineValidatorBadge:$z};const cE="oas3_set_servers",fE="oas3_set_request_body_value",pE="oas3_set_request_body_retain_flag",dE="oas3_set_request_body_inclusion",hE="oas3_set_active_examples_member",mE="oas3_set_request_content_type",gE="oas3_set_response_content_type",yE="oas3_set_server_variable_value",vE="oas3_set_request_body_validate_error",Bm="oas3_clear_request_body_validate_error",bE="oas3_clear_request_body_value";function Iz(a,u){return{type:cE,payload:{selectedServerUrl:a,namespace:u}}}function Nz({value:a,pathMethod:u}){return{type:fE,payload:{value:a,pathMethod:u}}}const jz=({value:a,pathMethod:u})=>({type:pE,payload:{value:a,pathMethod:u}});function Mz({value:a,pathMethod:u,name:p}){return{type:dE,payload:{value:a,pathMethod:u,name:p}}}function Dz({name:a,pathMethod:u,contextType:p,contextName:d}){return{type:hE,payload:{name:a,pathMethod:u,contextType:p,contextName:d}}}function Fz({value:a,pathMethod:u}){return{type:mE,payload:{value:a,pathMethod:u}}}function Lz({value:a,path:u,method:p}){return{type:gE,payload:{value:a,path:u,method:p}}}function Bz({server:a,namespace:u,key:p,val:d}){return{type:yE,payload:{server:a,namespace:u,key:p,val:d}}}const Uz=({path:a,method:u,validationErrors:p})=>({type:vE,payload:{path:a,method:u,validationErrors:p}}),Vz=({path:a,method:u})=>({type:Bm,payload:{path:a,method:u}}),zz=({pathMethod:a})=>({type:Bm,payload:{path:a[0],method:a[1]}}),qz=({pathMethod:a})=>({type:bE,payload:{pathMethod:a}}),Yi=a=>(u,...p)=>d=>{if(d.getSystem().specSelectors.isOAS3()){const g=a(u,...p);return typeof g=="function"?g(d):g}return null},Wz=Yi((a,u)=>{const p=u?[u,"selectedServer"]:["selectedServer"];return a.getIn(p)||""}),Kz=Yi((a,u,p)=>a.getIn(["requestData",u,p,"bodyValue"])||null),Hz=Yi((a,u,p)=>a.getIn(["requestData",u,p,"retainBodyValue"])||!1),Jz=(a,u,p)=>d=>{const{oas3Selectors:g,specSelectors:E,fn:O}=d.getSystem();if(E.isOAS3()){const k=g.requestContentType(u,p);if(k)return Lm(E.specResolvedSubtree(["paths",u,p,"requestBody"]),k,g.activeExamplesMember(u,p,"requestBody","requestBody"),O)}return null},Gz=Yi((a,u,p)=>d=>{const{oas3Selectors:g,specSelectors:E,fn:O}=d;let k=!1;const N=g.requestContentType(u,p);let D=g.requestBodyValue(u,p);const F=E.specResolvedSubtree(["paths",u,p,"requestBody"]);if(!F)return!1;if(L.Map.isMap(D)&&(D=vr(D.mapEntries(W=>L.Map.isMap(W[1])?[W[0],W[1].get("value")]:W).toJS())),L.List.isList(D)&&(D=vr(D)),N){const W=Lm(F,N,g.activeExamplesMember(u,p,"requestBody","requestBody"),O);k=!!D&&D!==W}return k}),Yz=Yi((a,u,p)=>a.getIn(["requestData",u,p,"bodyInclusion"])||(0,L.Map)()),Xz=Yi((a,u,p)=>a.getIn(["requestData",u,p,"errors"])||null),Qz=Yi((a,u,p,d,g)=>a.getIn(["examples",u,p,d,g,"activeExample"])||null),Zz=Yi((a,u,p)=>a.getIn(["requestData",u,p,"requestContentType"])||null),eq=Yi((a,u,p)=>a.getIn(["requestData",u,p,"responseContentType"])||null),tq=Yi((a,u,p)=>{let d;if(typeof u!="string"){const{server:g,namespace:E}=u;d=E?[E,"serverVariableValues",g,p]:["serverVariableValues",g,p]}else d=["serverVariableValues",u,p];return a.getIn(d)||null}),rq=Yi((a,u)=>{let p;if(typeof u!="string"){const{server:d,namespace:g}=u;p=g?[g,"serverVariableValues",d]:["serverVariableValues",d]}else p=["serverVariableValues",u];return a.getIn(p)||(0,L.OrderedMap)()}),nq=Yi((a,u)=>{var p,d;if(typeof u!="string"){const{server:E,namespace:O}=u;d=E,p=O?a.getIn([O,"serverVariableValues",d]):a.getIn(["serverVariableValues",d])}else d=u,p=a.getIn(["serverVariableValues",d]);p=p||(0,L.OrderedMap)();let g=d;return p.map((E,O)=>{g=g.replace(new RegExp(`{${O}}`,"g"),E)}),g}),iq=function(u){return(...p)=>d=>{const g=d.getSystem().specSelectors.specJson();let E=[...p][1]||[];return!g.getIn(["paths",...E,"requestBody","required"])||u(...p)}}((a,u)=>((p,d)=>(d=d||[],!!p.getIn(["requestData",...d,"bodyValue"])))(a,u)),sq=(a,{oas3RequiredRequestBodyContentType:u,oas3RequestContentType:p,oas3RequestBodyValue:d})=>{let g=[];if(!L.Map.isMap(d))return g;let E=[];return Object.keys(u.requestContentType).forEach(O=>{O===p&&u.requestContentType[O].forEach(k=>{E.indexOf(k)<0&&E.push(k)})}),E.forEach(O=>{d.getIn([O,"value"])||g.push(O)}),g},oq=(0,Rm.default)(["get","put","post","delete","options","head","patch","trace"]);var aq={[cE]:(a,{payload:{selectedServerUrl:u,namespace:p}})=>{const d=p?[p,"selectedServer"]:["selectedServer"];return a.setIn(d,u)},[fE]:(a,{payload:{value:u,pathMethod:p}})=>{let[d,g]=p;if(!L.Map.isMap(u))return a.setIn(["requestData",d,g,"bodyValue"],u);let E,O=a.getIn(["requestData",d,g,"bodyValue"])||(0,L.Map)();L.Map.isMap(O)||(O=(0,L.Map)());const[...k]=u.keys();return k.forEach(N=>{let D=u.getIn([N]);O.has(N)&&L.Map.isMap(D)||(E=O.setIn([N,"value"],D))}),a.setIn(["requestData",d,g,"bodyValue"],E)},[pE]:(a,{payload:{value:u,pathMethod:p}})=>{let[d,g]=p;return a.setIn(["requestData",d,g,"retainBodyValue"],u)},[dE]:(a,{payload:{value:u,pathMethod:p,name:d}})=>{let[g,E]=p;return a.setIn(["requestData",g,E,"bodyInclusion",d],u)},[hE]:(a,{payload:{name:u,pathMethod:p,contextType:d,contextName:g}})=>{let[E,O]=p;return a.setIn(["examples",E,O,d,g,"activeExample"],u)},[mE]:(a,{payload:{value:u,pathMethod:p}})=>{let[d,g]=p;return a.setIn(["requestData",d,g,"requestContentType"],u)},[gE]:(a,{payload:{value:u,path:p,method:d}})=>a.setIn(["requestData",p,d,"responseContentType"],u),[yE]:(a,{payload:{server:u,namespace:p,key:d,val:g}})=>{const E=p?[p,"serverVariableValues",u,d]:["serverVariableValues",u,d];return a.setIn(E,g)},[vE]:(a,{payload:{path:u,method:p,validationErrors:d}})=>{let g=[];if(g.push("Required field is not provided"),d.missingBodyValue)return a.setIn(["requestData",u,p,"errors"],(0,L.fromJS)(g));if(d.missingRequiredKeys&&d.missingRequiredKeys.length>0){const{missingRequiredKeys:E}=d;return a.updateIn(["requestData",u,p,"bodyValue"],(0,L.fromJS)({}),O=>E.reduce((k,N)=>k.setIn([N,"errors"],(0,L.fromJS)(g)),O))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),a},[Bm]:(a,{payload:{path:u,method:p}})=>{const d=a.getIn(["requestData",u,p,"bodyValue"]);if(!L.Map.isMap(d))return a.setIn(["requestData",u,p,"errors"],(0,L.fromJS)([]));const[...g]=d.keys();return g?a.updateIn(["requestData",u,p,"bodyValue"],(0,L.fromJS)({}),E=>g.reduce((O,k)=>O.setIn([k,"errors"],(0,L.fromJS)([])),E)):a},[bE]:(a,{payload:{pathMethod:u}})=>{let[p,d]=u;const g=a.getIn(["requestData",p,d,"bodyValue"]);return g?L.Map.isMap(g)?a.setIn(["requestData",p,d,"bodyValue"],(0,L.Map)()):a.setIn(["requestData",p,d,"bodyValue"],""):a}};function EE(){return{components:Az,wrapComponents:Rz,statePlugins:{spec:{wrapSelectors:C,selectors:U},auth:{wrapSelectors:j},oas3:{actions:{...z},reducers:aq,selectors:{...J}}}}}var lq=({specSelectors:a,getComponent:u})=>{const p=a.selectWebhooksOperations(),d=Object.keys(p),g=u("OperationContainer",!0);return d.length===0?null:f.default.createElement("div",{className:"webhooks"},f.default.createElement("h2",null,"Webhooks"),d.map(E=>f.default.createElement("div",{key:`${E}-webhook`},p[E].map(O=>f.default.createElement(g,{key:`${E}-${O.method}-webhook`,op:O.operation,tag:"webhooks",method:O.method,path:E,specPath:O.specPath,allowTryItOut:!1})))))},uq=({getComponent:a,specSelectors:u})=>{const p=u.selectLicenseNameField(),d=u.selectLicenseUrl(),g=a("Link");return f.default.createElement("div",{className:"info__license"},d?f.default.createElement("div",{className:"info__license__url"},f.default.createElement(g,{target:"_blank",href:tr(d)},p)):f.default.createElement("span",null,p))},cq=({getComponent:a,specSelectors:u})=>{const p=u.selectContactNameField(),d=u.selectContactUrl(),g=u.selectContactEmailField(),E=a("Link");return f.default.createElement("div",{className:"info__contact"},d&&f.default.createElement("div",null,f.default.createElement(E,{href:tr(d),target:"_blank"},p," - Website")),g&&f.default.createElement(E,{href:tr(`mailto:${g}`)},d?`Send email to ${p}`:`Contact ${p}`))},fq=({getComponent:a,specSelectors:u})=>{const p=u.version(),d=u.url(),g=u.basePath(),E=u.host(),O=u.selectInfoSummaryField(),k=u.selectInfoDescriptionField(),N=u.selectInfoTitleField(),D=u.selectInfoTermsOfServiceUrl(),F=u.selectExternalDocsUrl(),W=u.selectExternalDocsDescriptionField(),G=u.contact(),H=u.license(),ne=a("Markdown",!0),le=a("Link"),ae=a("VersionStamp"),Re=a("OpenAPIVersion"),Oe=a("InfoUrl"),Me=a("InfoBasePath"),ve=a("License",!0),Se=a("Contact",!0),Ue=a("JsonSchemaDialect",!0);return f.default.createElement("div",{className:"info"},f.default.createElement("hgroup",{className:"main"},f.default.createElement("h2",{className:"title"},N,f.default.createElement("span",null,p&&f.default.createElement(ae,{version:p}),f.default.createElement(Re,{oasVersion:"3.1"}))),(E||g)&&f.default.createElement(Me,{host:E,basePath:g}),d&&f.default.createElement(Oe,{getComponent:a,url:d})),O&&f.default.createElement("p",{className:"info__summary"},O),f.default.createElement("div",{className:"info__description description"},f.default.createElement(ne,{source:k})),D&&f.default.createElement("div",{className:"info__tos"},f.default.createElement(le,{target:"_blank",href:tr(D)},"Terms of service")),G.size>0&&f.default.createElement(Se,null),H.size>0&&f.default.createElement(ve,null),F&&f.default.createElement(le,{className:"info__extdocs",target:"_blank",href:tr(F)},W||F),f.default.createElement(Ue,null))},pq=({getComponent:a,specSelectors:u})=>{const p=u.selectJsonSchemaDialectField(),d=u.selectJsonSchemaDialectDefault(),g=a("Link");return f.default.createElement(f.default.Fragment,null,p&&p===d&&f.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",f.default.createElement(g,{target:"_blank",href:tr(p)},p)),p&&p!==d&&f.default.createElement("div",{className:"error-wrapper"},f.default.createElement("div",{className:"no-margin"},f.default.createElement("div",{className:"errors"},f.default.createElement("div",{className:"errors-wrapper"},f.default.createElement("h4",{className:"center"},"Warning"),f.default.createElement("p",{className:"message"},f.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",f.default.createElement(g,{target:"_blank",href:d},d),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},dq=({bypass:a,isSwagger2:u,isOAS3:p,isOAS31:d,alsoShow:g,children:E})=>a?f.default.createElement("div",null,E):u&&(p||d)?f.default.createElement("div",{className:"version-pragma"},g,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,f.default.createElement("code",null,"swagger")," and ",f.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.default.createElement("p",null,"Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),").")))):u||p||d?f.default.createElement("div",null,E):f.default.createElement("div",{className:"version-pragma"},g,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,"The provided definition does not specify a valid version field."),f.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),")."))));const hq=a=>typeof a=="string"&&a.includes("#/components/schemas/")?(u=>{const p=u.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(p)}catch{return p}})(a.replace(/^.*#\/components\/schemas\//,"")):null;var mq=(0,f.forwardRef)(({schema:a,getComponent:u,onToggle:p=()=>{}},d)=>{const g=u("JSONSchema202012"),E=hq(a.get("$$ref")),O=(0,f.useCallback)((k,N)=>{p(E,N)},[E,p]);return f.default.createElement(g,{name:E,schema:a.toJS(),ref:d,onExpand:O})}),gq=({specActions:a,specSelectors:u,layoutSelectors:p,layoutActions:d,getComponent:g,getConfigs:E})=>{const O=u.selectSchemas(),k=Object.keys(O).length>0,N=["components","schemas"],{docExpansion:D,defaultModelsExpandDepth:F}=E(),W=F>0&&D!=="none",G=p.isShown(N,W),H=g("Collapse"),ne=g("JSONSchema202012"),le=g("ArrowUpIcon"),ae=g("ArrowDownIcon");(0,f.useEffect)(()=>{const Se=G&&F>1,Ue=u.specResolvedSubtree(N)!=null;Se&&!Ue&&a.requestResolvedSubtree(N)},[G,F]);const Re=(0,f.useCallback)(()=>{d.show(N,!G)},[G]),Oe=(0,f.useCallback)(Se=>{Se!==null&&d.readyToScroll(N,Se)},[]),Me=Se=>Ue=>{Ue!==null&&d.readyToScroll([...N,Se],Ue)},ve=Se=>(Ue,xe)=>{if(xe){const Te=[...N,Se];u.specResolvedSubtree(Te)!=null||a.requestResolvedSubtree([...N,Se])}};return!k||F<0?null:f.default.createElement("section",{className:(0,Er.default)("models",{"is-open":G}),ref:Oe},f.default.createElement("h4",null,f.default.createElement("button",{"aria-expanded":G,className:"models-control",onClick:Re},f.default.createElement("span",null,"Schemas"),G?f.default.createElement(le,null):f.default.createElement(ae,null))),f.default.createElement(H,{isOpened:G},Object.entries(O).map(([Se,Ue])=>f.default.createElement(ne,{key:Se,ref:Me(Se),schema:Ue,name:Se,onExpand:ve(Se)}))))},yq=({schema:a,getComponent:u})=>{const p=u("JumpToPath",!0);return f.default.createElement("div",null,f.default.createElement("h4",null,a.get("name")," (mutualTLS)"," ",f.default.createElement(p,{path:["securityDefinitions",a.get("name")]})),f.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),f.default.createElement("p",null,a.get("description")))};class vq extends f.default.Component{constructor(p,d){super(p,d);ie(this,"onAuthChange",p=>{let{name:d}=p;this.setState({[d]:p})});ie(this,"submitAuth",p=>{p.preventDefault();let{authActions:d}=this.props;d.authorizeWithPersistOption(this.state)});ie(this,"logoutClick",p=>{p.preventDefault();let{authActions:d,definitions:g}=this.props,E=g.map((O,k)=>k).toArray();this.setState(E.reduce((O,k)=>(O[k]="",O),{})),d.logoutWithPersistOption(E)});ie(this,"close",p=>{p.preventDefault();let{authActions:d}=this.props;d.showDefinitions(!1)});this.state={}}render(){let{definitions:p,getComponent:d,authSelectors:g,errSelectors:E}=this.props;const O=d("AuthItem"),k=d("oauth2",!0),N=d("Button"),D=g.authorized(),F=p.filter((ne,le)=>!!D.get(le)),W=p.filter(ne=>ne.get("type")!=="oauth2"&&ne.get("type")!=="mutualTLS"),G=p.filter(ne=>ne.get("type")==="oauth2"),H=p.filter(ne=>ne.get("type")==="mutualTLS");return f.default.createElement("div",{className:"auth-container"},W.size>0&&f.default.createElement("form",{onSubmit:this.submitAuth},W.map((ne,le)=>f.default.createElement(O,{key:le,schema:ne,name:le,getComponent:d,onAuthChange:this.onAuthChange,authorized:D,errSelectors:E})).toArray(),f.default.createElement("div",{className:"auth-btn-wrapper"},W.size===F.size?f.default.createElement(N,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(N,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.default.createElement(N,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),G.size>0?f.default.createElement("div",null,f.default.createElement("div",{className:"scope-def"},f.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),f.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),p.filter(ne=>ne.get("type")==="oauth2").map((ne,le)=>f.default.createElement("div",{key:le},f.default.createElement(k,{authorized:D,schema:ne,name:le}))).toArray()):null,H.size>0&&f.default.createElement("div",null,H.map((ne,le)=>f.default.createElement(O,{key:le,schema:ne,name:le,getComponent:d,onAuthChange:this.onAuthChange,authorized:D,errSelectors:E})).toArray()))}}var bq=vq;const qk=a=>{const u=a.get("openapi");return typeof u=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(u)},Wk=a=>(u,...p)=>d=>{if(d.getSystem().specSelectors.isOAS31()){const g=a(u,...p);return typeof g=="function"?g(d):g}return null},Kk=a=>(u,p)=>(d,...g)=>{if(p.getSystem().specSelectors.isOAS31()){const E=a(d,...g);return typeof E=="function"?E(u,p):E}return u(...g)},Hk=a=>(u,...p)=>d=>{const g=a(u,d,...p);return typeof g=="function"?g(d):g},Hs=a=>(u,p)=>d=>p.specSelectors.isOAS31()?f.default.createElement(a,(0,Kt.default)({},d,{originalComponent:u,getSystem:p.getSystem})):f.default.createElement(u,d);var Eq=Hs(({getSystem:a})=>{const u=a().getComponent("OAS31License",!0);return f.default.createElement(u,null)}),Sq=Hs(({getSystem:a})=>{const u=a().getComponent("OAS31Contact",!0);return f.default.createElement(u,null)}),wq=Hs(({getSystem:a})=>{const u=a().getComponent("OAS31Info",!0);return f.default.createElement(u,null)}),_q=Hs(({getSystem:a,...u})=>{const p=a(),{getComponent:d,fn:g,getConfigs:E}=p,O=E(),k=d("OAS31Model"),N=d("JSONSchema202012"),D=d("JSONSchema202012Keyword$schema"),F=d("JSONSchema202012Keyword$vocabulary"),W=d("JSONSchema202012Keyword$id"),G=d("JSONSchema202012Keyword$anchor"),H=d("JSONSchema202012Keyword$dynamicAnchor"),ne=d("JSONSchema202012Keyword$ref"),le=d("JSONSchema202012Keyword$dynamicRef"),ae=d("JSONSchema202012Keyword$defs"),Re=d("JSONSchema202012Keyword$comment"),Oe=d("JSONSchema202012KeywordAllOf"),Me=d("JSONSchema202012KeywordAnyOf"),ve=d("JSONSchema202012KeywordOneOf"),Se=d("JSONSchema202012KeywordNot"),Ue=d("JSONSchema202012KeywordIf"),xe=d("JSONSchema202012KeywordThen"),Te=d("JSONSchema202012KeywordElse"),Pe=d("JSONSchema202012KeywordDependentSchemas"),je=d("JSONSchema202012KeywordPrefixItems"),Ze=d("JSONSchema202012KeywordItems"),it=d("JSONSchema202012KeywordContains"),we=d("JSONSchema202012KeywordProperties"),Ve=d("JSONSchema202012KeywordPatternProperties"),tt=d("JSONSchema202012KeywordAdditionalProperties"),Mt=d("JSONSchema202012KeywordPropertyNames"),rr=d("JSONSchema202012KeywordUnevaluatedItems"),Jt=d("JSONSchema202012KeywordUnevaluatedProperties"),fr=d("JSONSchema202012KeywordType"),qe=d("JSONSchema202012KeywordEnum"),gt=d("JSONSchema202012KeywordConst"),xt=d("JSONSchema202012KeywordConstraint"),Wt=d("JSONSchema202012KeywordDependentRequired"),$t=d("JSONSchema202012KeywordContentSchema"),kt=d("JSONSchema202012KeywordTitle"),bt=d("JSONSchema202012KeywordDescription"),or=d("JSONSchema202012KeywordDefault"),Jr=d("JSONSchema202012KeywordDeprecated"),pn=d("JSONSchema202012KeywordReadOnly"),Xi=d("JSONSchema202012KeywordWriteOnly"),Po=d("JSONSchema202012Accordion"),Ci=d("JSONSchema202012ExpandDeepButton"),Ol=d("JSONSchema202012ChevronRightIcon"),Cl=d("withJSONSchema202012Context")(k,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:O.defaultModelExpandDepth,includeReadOnly:!!u.includeReadOnly,includeWriteOnly:!!u.includeWriteOnly},components:{JSONSchema:N,Keyword$schema:D,Keyword$vocabulary:F,Keyword$id:W,Keyword$anchor:G,Keyword$dynamicAnchor:H,Keyword$ref:ne,Keyword$dynamicRef:le,Keyword$defs:ae,Keyword$comment:Re,KeywordAllOf:Oe,KeywordAnyOf:Me,KeywordOneOf:ve,KeywordNot:Se,KeywordIf:Ue,KeywordThen:xe,KeywordElse:Te,KeywordDependentSchemas:Pe,KeywordPrefixItems:je,KeywordItems:Ze,KeywordContains:it,KeywordProperties:we,KeywordPatternProperties:Ve,KeywordAdditionalProperties:tt,KeywordPropertyNames:Mt,KeywordUnevaluatedItems:rr,KeywordUnevaluatedProperties:Jt,KeywordType:fr,KeywordEnum:qe,KeywordConst:gt,KeywordConstraint:xt,KeywordDependentRequired:Wt,KeywordContentSchema:$t,KeywordTitle:kt,KeywordDescription:bt,KeywordDefault:or,KeywordDeprecated:Jr,KeywordReadOnly:pn,KeywordWriteOnly:Xi,Accordion:Po,ExpandDeepButton:Ci,ChevronRightIcon:Ol},fn:{upperFirst:g.upperFirst,isExpandable:g.jsonSchema202012.isExpandable,getProperties:g.jsonSchema202012.getProperties}});return f.default.createElement(Cl,u)});const Fu=Hs(({getSystem:a})=>{const{getComponent:u,fn:p,getConfigs:d}=a(),g=d();if(Fu.ModelsWithJSONSchemaContext)return f.default.createElement(Fu.ModelsWithJSONSchemaContext,null);const E=u("OAS31Models",!0),O=u("JSONSchema202012"),k=u("JSONSchema202012Keyword$schema"),N=u("JSONSchema202012Keyword$vocabulary"),D=u("JSONSchema202012Keyword$id"),F=u("JSONSchema202012Keyword$anchor"),W=u("JSONSchema202012Keyword$dynamicAnchor"),G=u("JSONSchema202012Keyword$ref"),H=u("JSONSchema202012Keyword$dynamicRef"),ne=u("JSONSchema202012Keyword$defs"),le=u("JSONSchema202012Keyword$comment"),ae=u("JSONSchema202012KeywordAllOf"),Re=u("JSONSchema202012KeywordAnyOf"),Oe=u("JSONSchema202012KeywordOneOf"),Me=u("JSONSchema202012KeywordNot"),ve=u("JSONSchema202012KeywordIf"),Se=u("JSONSchema202012KeywordThen"),Ue=u("JSONSchema202012KeywordElse"),xe=u("JSONSchema202012KeywordDependentSchemas"),Te=u("JSONSchema202012KeywordPrefixItems"),Pe=u("JSONSchema202012KeywordItems"),je=u("JSONSchema202012KeywordContains"),Ze=u("JSONSchema202012KeywordProperties"),it=u("JSONSchema202012KeywordPatternProperties"),we=u("JSONSchema202012KeywordAdditionalProperties"),Ve=u("JSONSchema202012KeywordPropertyNames"),tt=u("JSONSchema202012KeywordUnevaluatedItems"),Mt=u("JSONSchema202012KeywordUnevaluatedProperties"),rr=u("JSONSchema202012KeywordType"),Jt=u("JSONSchema202012KeywordEnum"),fr=u("JSONSchema202012KeywordConst"),qe=u("JSONSchema202012KeywordConstraint"),gt=u("JSONSchema202012KeywordDependentRequired"),xt=u("JSONSchema202012KeywordContentSchema"),Wt=u("JSONSchema202012KeywordTitle"),$t=u("JSONSchema202012KeywordDescription"),kt=u("JSONSchema202012KeywordDefault"),bt=u("JSONSchema202012KeywordDeprecated"),or=u("JSONSchema202012KeywordReadOnly"),Jr=u("JSONSchema202012KeywordWriteOnly"),pn=u("JSONSchema202012Accordion"),Xi=u("JSONSchema202012ExpandDeepButton"),Po=u("JSONSchema202012ChevronRightIcon"),Ci=u("withJSONSchema202012Context");return Fu.ModelsWithJSONSchemaContext=Ci(E,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:g.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},components:{JSONSchema:O,Keyword$schema:k,Keyword$vocabulary:N,Keyword$id:D,Keyword$anchor:F,Keyword$dynamicAnchor:W,Keyword$ref:G,Keyword$dynamicRef:H,Keyword$defs:ne,Keyword$comment:le,KeywordAllOf:ae,KeywordAnyOf:Re,KeywordOneOf:Oe,KeywordNot:Me,KeywordIf:ve,KeywordThen:Se,KeywordElse:Ue,KeywordDependentSchemas:xe,KeywordPrefixItems:Te,KeywordItems:Pe,KeywordContains:je,KeywordProperties:Ze,KeywordPatternProperties:it,KeywordAdditionalProperties:we,KeywordPropertyNames:Ve,KeywordUnevaluatedItems:tt,KeywordUnevaluatedProperties:Mt,KeywordType:rr,KeywordEnum:Jt,KeywordConst:fr,KeywordConstraint:qe,KeywordDependentRequired:gt,KeywordContentSchema:xt,KeywordTitle:Wt,KeywordDescription:$t,KeywordDefault:kt,KeywordDeprecated:bt,KeywordReadOnly:or,KeywordWriteOnly:Jr,Accordion:pn,ExpandDeepButton:Xi,ChevronRightIcon:Po},fn:{upperFirst:p.upperFirst,isExpandable:p.jsonSchema202012.isExpandable,getProperties:p.jsonSchema202012.getProperties}}),f.default.createElement(Fu.ModelsWithJSONSchemaContext,null)});Fu.ModelsWithJSONSchemaContext=null;var xq=Fu,Aq=(a,u)=>p=>{const d=u.specSelectors.isOAS31(),g=u.getComponent("OAS31VersionPragmaFilter");return f.default.createElement(g,(0,Kt.default)({isOAS31:d},p))},Oq=Hs(({originalComponent:a,...u})=>{const{getComponent:p,schema:d}=u,g=p("MutualTLSAuth",!0);return d.get("type")==="mutualTLS"?f.default.createElement(g,{schema:d}):f.default.createElement(a,u)}),Cq=Hs(({getSystem:a,...u})=>{const p=a().getComponent("OAS31Auths",!0);return f.default.createElement(p,u)});const SE=(0,L.Map)(),$q=(0,wt.createSelector)((a,u)=>u.specSelectors.specJson(),qk),kq=()=>a=>{const u=a.specSelectors.specJson().get("webhooks");return L.Map.isMap(u)?u:SE},Tq=(0,wt.createSelector)([(a,u)=>u.specSelectors.webhooks(),(a,u)=>u.specSelectors.validOperationMethods(),(a,u)=>u.specSelectors.specResolvedSubtree(["webhooks"])],(a,u)=>a.reduce((p,d,g)=>{if(!L.Map.isMap(d))return p;const E=d.entrySeq().filter(([O])=>u.includes(O)).map(([O,k])=>({operation:(0,L.Map)({operation:k}),method:O,path:g,specPath:(0,L.List)(["webhooks",g,O])}));return p.concat(E)},(0,L.List)()).groupBy(p=>p.path).map(p=>p.toArray()).toObject()),Pq=()=>a=>{const u=a.specSelectors.info().get("license");return L.Map.isMap(u)?u:SE},Rq=()=>a=>a.specSelectors.license().get("name","License"),Iq=()=>a=>a.specSelectors.license().get("url"),Nq=(0,wt.createSelector)([(a,u)=>u.specSelectors.url(),(a,u)=>u.oas3Selectors.selectedServer(),(a,u)=>u.specSelectors.selectLicenseUrlField()],(a,u,p)=>{if(p)return _s(p,a,{selectedServer:u})}),jq=()=>a=>a.specSelectors.license().get("identifier"),Mq=()=>a=>{const u=a.specSelectors.info().get("contact");return L.Map.isMap(u)?u:SE},Dq=()=>a=>a.specSelectors.contact().get("name","the developer"),Fq=()=>a=>a.specSelectors.contact().get("email"),Lq=()=>a=>a.specSelectors.contact().get("url"),Bq=(0,wt.createSelector)([(a,u)=>u.specSelectors.url(),(a,u)=>u.oas3Selectors.selectedServer(),(a,u)=>u.specSelectors.selectContactUrlField()],(a,u,p)=>{if(p)return _s(p,a,{selectedServer:u})}),Uq=()=>a=>a.specSelectors.info().get("title"),Vq=()=>a=>a.specSelectors.info().get("summary"),zq=()=>a=>a.specSelectors.info().get("description"),qq=()=>a=>a.specSelectors.info().get("termsOfService"),Wq=(0,wt.createSelector)([(a,u)=>u.specSelectors.url(),(a,u)=>u.oas3Selectors.selectedServer(),(a,u)=>u.specSelectors.selectInfoTermsOfServiceField()],(a,u,p)=>{if(p)return _s(p,a,{selectedServer:u})}),Kq=()=>a=>a.specSelectors.externalDocs().get("description"),Hq=()=>a=>a.specSelectors.externalDocs().get("url"),Jq=(0,wt.createSelector)([(a,u)=>u.specSelectors.url(),(a,u)=>u.oas3Selectors.selectedServer(),(a,u)=>u.specSelectors.selectExternalDocsUrlField()],(a,u,p)=>{if(p)return _s(p,a,{selectedServer:u})}),Gq=()=>a=>a.specSelectors.specJson().get("jsonSchemaDialect"),Yq=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Xq=(0,wt.createSelector)((a,u)=>u.specSelectors.definitions(),(a,u)=>u.specSelectors.specResolvedSubtree(["components","schemas"]),(a,u)=>L.Map.isMap(a)?L.Map.isMap(u)?Object.entries(a.toJS()).reduce((p,[d,g])=>{const E=u.get(d);return p[d]=(E==null?void 0:E.toJS())||g,p},{}):a.toJS():{}),Qq=(a,u)=>(p,...d)=>u.specSelectors.isOAS31()||a(...d),Zq=Kk(()=>(a,u)=>u.oas31Selectors.selectLicenseUrl()),eW=Kk(()=>(a,u)=>{const p=u.specSelectors.securityDefinitions();let d=a();return p&&p.entrySeq().forEach(([g,E])=>{E.get("type")==="mutualTLS"&&(d=d.push(new L.Map({[g]:E})))}),d}),tW=(0,wt.createSelector)([(a,u)=>u.specSelectors.url(),(a,u)=>u.oas3Selectors.selectedServer(),(a,u)=>u.specSelectors.selectLicenseUrlField(),(a,u)=>u.specSelectors.selectLicenseIdentifierField()],(a,u,p,d)=>p?_s(p,a,{selectedServer:u}):d?`https://spdx.org/licenses/${d}.html`:void 0);var rW=({schema:a,getSystem:u})=>{const{fn:p}=u(),{hasKeyword:d,stringify:g}=p.jsonSchema202012.useFn();return d(a,"example")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Example"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},g(a.example))):null},nW=({schema:a,getSystem:u})=>{const p=(a==null?void 0:a.xml)||{},{fn:d,getComponent:g}=u(),{useIsExpandedDeeply:E,useComponent:O}=d.jsonSchema202012,k=E(),N=!!(p.name||p.namespace||p.prefix),[D,F]=(0,f.useState)(k),[W,G]=(0,f.useState)(!1),H=O("Accordion"),ne=O("ExpandDeepButton"),le=g("JSONSchema202012DeepExpansionContext")(),ae=(0,f.useCallback)(()=>{F(Oe=>!Oe)},[]),Re=(0,f.useCallback)((Oe,Me)=>{F(Me),G(Me)},[]);return Object.keys(p).length===0?null:f.default.createElement(le.Provider,{value:W},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml"},N?f.default.createElement(f.default.Fragment,null,f.default.createElement(H,{expanded:D,onChange:ae},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),f.default.createElement(ne,{expanded:D,onClick:Re})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),p.attribute===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),p.wrapped===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!D})},D&&f.default.createElement(f.default.Fragment,null,p.name&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.name))),p.namespace&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.namespace))),p.prefix&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.prefix)))))))},iW=({discriminator:a})=>{const u=(a==null?void 0:a.mapping)||{};return Object.keys(u).length===0?null:Object.entries(u).map(([p,d])=>f.default.createElement("div",{key:`${p}-${d}`,className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},p),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},d)))},sW=({schema:a,getSystem:u})=>{const p=(a==null?void 0:a.discriminator)||{},{fn:d,getComponent:g}=u(),{useIsExpandedDeeply:E,useComponent:O}=d.jsonSchema202012,k=E(),N=!!p.mapping,[D,F]=(0,f.useState)(k),[W,G]=(0,f.useState)(!1),H=O("Accordion"),ne=O("ExpandDeepButton"),le=g("JSONSchema202012DeepExpansionContext")(),ae=(0,f.useCallback)(()=>{F(Oe=>!Oe)},[]),Re=(0,f.useCallback)((Oe,Me)=>{F(Me),G(Me)},[]);return Object.keys(p).length===0?null:f.default.createElement(le.Provider,{value:W},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator"},N?f.default.createElement(f.default.Fragment,null,f.default.createElement(H,{expanded:D,onChange:ae},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),f.default.createElement(ne,{expanded:D,onClick:Re})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),p.propertyName&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},p.propertyName),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!D})},D&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(iW,{discriminator:p})))))},oW=({schema:a,getSystem:u})=>{const p=(a==null?void 0:a.externalDocs)||{},{fn:d,getComponent:g}=u(),{useIsExpandedDeeply:E,useComponent:O}=d.jsonSchema202012,k=E(),N=!(!p.description&&!p.url),[D,F]=(0,f.useState)(k),[W,G]=(0,f.useState)(!1),H=O("Accordion"),ne=O("ExpandDeepButton"),le=g("JSONSchema202012KeywordDescription"),ae=g("Link"),Re=g("JSONSchema202012DeepExpansionContext")(),Oe=(0,f.useCallback)(()=>{F(ve=>!ve)},[]),Me=(0,f.useCallback)((ve,Se)=>{F(Se),G(Se)},[]);return Object.keys(p).length===0?null:f.default.createElement(Re.Provider,{value:W},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs"},N?f.default.createElement(f.default.Fragment,null,f.default.createElement(H,{expanded:D,onChange:Oe},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),f.default.createElement(ne,{expanded:D,onClick:Me})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!D})},D&&f.default.createElement(f.default.Fragment,null,p.description&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(le,{schema:p,getSystem:u})),p.url&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},f.default.createElement(ae,{target:"_blank",href:tr(p.url)},p.url))))))))},aW=({schema:a,getSystem:u})=>{if(!(a!=null&&a.description))return null;const{getComponent:p}=u(),d=p("Markdown");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},f.default.createElement(d,{source:a.description})))},lW=Hs(aW),uW=Hs(({schema:a,getSystem:u,originalComponent:p})=>{const{getComponent:d}=u(),g=d("JSONSchema202012KeywordDiscriminator"),E=d("JSONSchema202012KeywordXml"),O=d("JSONSchema202012KeywordExample"),k=d("JSONSchema202012KeywordExternalDocs");return f.default.createElement(f.default.Fragment,null,f.default.createElement(p,{schema:a}),f.default.createElement(g,{schema:a,getSystem:u}),f.default.createElement(E,{schema:a,getSystem:u}),f.default.createElement(k,{schema:a,getSystem:u}),f.default.createElement(O,{schema:a,getSystem:u}))}),cW=({schema:a,getSystem:u})=>{const{fn:p}=u(),{useComponent:d}=p.jsonSchema202012,{getDependentRequired:g,getProperties:E}=p.jsonSchema202012.useFn(),O=p.jsonSchema202012.useConfig(),k=Array.isArray(a==null?void 0:a.required)?a.required:[],N=d("JSONSchema"),D=E(a,O);return Object.keys(D).length===0?null:f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(D).map(([F,W])=>{const G=k.includes(F),H=g(F,a);return f.default.createElement("li",{key:F,className:(0,Er.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":G})},f.default.createElement(N,{name:F,schema:W,dependentRequired:H}))})))},fW=Hs(cW);const pW=(a,{includeReadOnly:u,includeWriteOnly:p})=>{if(!(a!=null&&a.properties))return{};const d=Object.entries(a.properties).filter(([,g])=>((g==null?void 0:g.readOnly)!==!0||u)&&((g==null?void 0:g.writeOnly)!==!0||p));return Object.fromEntries(d)};var dW=function({fn:u,getSystem:p}){if(u.jsonSchema202012){const d=((g,E)=>{const{fn:O}=E();if(typeof g!="function")return null;const{hasKeyword:k}=O.jsonSchema202012;return N=>g(N)||k(N,"example")||(N==null?void 0:N.xml)||(N==null?void 0:N.discriminator)||(N==null?void 0:N.externalDocs)})(u.jsonSchema202012.isExpandable,p);Object.assign(this.fn.jsonSchema202012,{isExpandable:d,getProperties:pW})}if(typeof u.sampleFromSchema=="function"&&u.jsonSchema202012){const d=((g,E)=>{const{fn:O,specSelectors:k}=E;return Object.fromEntries(Object.entries(g).map(([N,D])=>{const F=O[N];return[N,(...W)=>k.isOAS31()?D(...W):typeof F=="function"?F(...W):void 0]}))})({sampleFromSchema:u.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:u.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:u.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:u.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:u.jsonSchema202012.memoizedCreateXMLExample},p());Object.assign(this.fn,d)}},hW=({fn:a})=>{const u=a.createSystemSelector||Hk,p=a.createOnlyOAS31Selector||Wk;return{afterLoad:dW,fn:{isOAS31:qk,createSystemSelector:Hk,createOnlyOAS31Selector:Wk},components:{Webhooks:lq,JsonSchemaDialect:pq,MutualTLSAuth:yq,OAS31Info:fq,OAS31License:uq,OAS31Contact:cq,OAS31VersionPragmaFilter:dq,OAS31Model:mq,OAS31Models:gq,OAS31Auths:bq,JSONSchema202012KeywordExample:rW,JSONSchema202012KeywordXml:nW,JSONSchema202012KeywordDiscriminator:sW,JSONSchema202012KeywordExternalDocs:oW},wrapComponents:{InfoContainer:wq,License:Eq,Contact:Sq,VersionPragmaFilter:Aq,Model:_q,Models:xq,AuthItem:Oq,auths:Cq,JSONSchema202012KeywordDescription:lW,JSONSchema202012KeywordDefault:uW,JSONSchema202012KeywordProperties:fW},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:eW}},spec:{selectors:{isOAS31:u($q),license:Pq,selectLicenseNameField:Rq,selectLicenseUrlField:Iq,selectLicenseIdentifierField:p(jq),selectLicenseUrl:u(Nq),contact:Mq,selectContactNameField:Dq,selectContactEmailField:Fq,selectContactUrlField:Lq,selectContactUrl:u(Bq),selectInfoTitleField:Uq,selectInfoSummaryField:p(Vq),selectInfoDescriptionField:zq,selectInfoTermsOfServiceField:qq,selectInfoTermsOfServiceUrl:u(Wq),selectExternalDocsDescriptionField:Kq,selectExternalDocsUrlField:Hq,selectExternalDocsUrl:u(Jq),webhooks:p(kq),selectWebhooksOperations:p(u(Tq)),selectJsonSchemaDialectField:Gq,selectJsonSchemaDialectDefault:Yq,selectSchemas:u(Xq)},wrapSelectors:{isOAS3:Qq,selectLicenseUrl:Zq}},oas31:{selectors:{selectLicenseUrl:p(u(tW))}}}}};const mW=sr.default.object,gW=sr.default.bool,Lu=(sr.default.oneOfType([mW,gW]),(0,f.createContext)(null));Lu.displayName="JSONSchemaContext";const wE=(0,f.createContext)(0);wE.displayName="JSONSchemaLevelContext";const Js=(0,f.createContext)(!1);Js.displayName="JSONSchemaDeepExpansionContext";const _E=(0,f.createContext)(new Set),Jk=()=>{const{config:a}=(0,f.useContext)(Lu);return a},Qe=a=>{const{components:u}=(0,f.useContext)(Lu);return u[a]||null},Or=(a=void 0)=>{const{fn:u}=(0,f.useContext)(Lu);return a!==void 0?u[a]:u},xE=()=>{const a=(0,f.useContext)(wE);return[a,a+1]},Sa=()=>{const[a]=xE(),{defaultExpandedLevels:u}=Jk();return u-a>0},ko=()=>(0,f.useContext)(Js),Gk=(a=void 0)=>{if(a===void 0)return(0,f.useContext)(_E);const u=(0,f.useContext)(_E);return new Set([...u,a])};var Yk=(0,f.forwardRef)(({schema:a,name:u="",dependentRequired:p=[],onExpand:d=()=>{}},g)=>{const E=Or(),O=Sa(),k=ko(),[N,D]=(0,f.useState)(O||k),[F,W]=(0,f.useState)(k),[G,H]=xE(),ne=(()=>{const[As]=xE();return As>0})(),le=E.isExpandable(a)||p.length>0,ae=(As=>Gk().has(As))(a),Re=Gk(a),Oe=E.stringifyConstraints(a),Me=Qe("Accordion"),ve=Qe("Keyword$schema"),Se=Qe("Keyword$vocabulary"),Ue=Qe("Keyword$id"),xe=Qe("Keyword$anchor"),Te=Qe("Keyword$dynamicAnchor"),Pe=Qe("Keyword$ref"),je=Qe("Keyword$dynamicRef"),Ze=Qe("Keyword$defs"),it=Qe("Keyword$comment"),we=Qe("KeywordAllOf"),Ve=Qe("KeywordAnyOf"),tt=Qe("KeywordOneOf"),Mt=Qe("KeywordNot"),rr=Qe("KeywordIf"),Jt=Qe("KeywordThen"),fr=Qe("KeywordElse"),qe=Qe("KeywordDependentSchemas"),gt=Qe("KeywordPrefixItems"),xt=Qe("KeywordItems"),Wt=Qe("KeywordContains"),$t=Qe("KeywordProperties"),kt=Qe("KeywordPatternProperties"),bt=Qe("KeywordAdditionalProperties"),or=Qe("KeywordPropertyNames"),Jr=Qe("KeywordUnevaluatedItems"),pn=Qe("KeywordUnevaluatedProperties"),Xi=Qe("KeywordType"),Po=Qe("KeywordEnum"),Ci=Qe("KeywordConst"),Ol=Qe("KeywordConstraint"),Cl=Qe("KeywordDependentRequired"),cp=Qe("KeywordContentSchema"),Vu=Qe("KeywordTitle"),$l=Qe("KeywordDescription"),Pn=Qe("KeywordDefault"),wa=Qe("KeywordDeprecated"),Qi=Qe("KeywordReadOnly"),kl=Qe("KeywordWriteOnly"),RK=Qe("ExpandDeepButton");(0,f.useEffect)(()=>{W(k)},[k]),(0,f.useEffect)(()=>{W(F)},[F]);const IK=(0,f.useCallback)((As,Tl)=>{D(Tl),!Tl&&W(!1),d(As,Tl,!1)},[d]),NK=(0,f.useCallback)((As,Tl)=>{D(Tl),W(Tl),d(As,Tl,!0)},[d]);return f.default.createElement(wE.Provider,{value:H},f.default.createElement(Js.Provider,{value:F},f.default.createElement(_E.Provider,{value:Re},f.default.createElement("article",{ref:g,"data-json-schema-level":G,className:(0,Er.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":ne,"json-schema-2020-12--circular":ae})},f.default.createElement("div",{className:"json-schema-2020-12-head"},le&&!ae?f.default.createElement(f.default.Fragment,null,f.default.createElement(Me,{expanded:N,onChange:IK},f.default.createElement(Vu,{title:u,schema:a})),f.default.createElement(RK,{expanded:N,onClick:NK})):f.default.createElement(Vu,{title:u,schema:a}),f.default.createElement(wa,{schema:a}),f.default.createElement(Qi,{schema:a}),f.default.createElement(kl,{schema:a}),f.default.createElement(Xi,{schema:a,isCircular:ae}),Oe.length>0&&Oe.map(As=>f.default.createElement(Ol,{key:`${As.scope}-${As.value}`,constraint:As}))),f.default.createElement("div",{className:(0,Er.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!N})},N&&f.default.createElement(f.default.Fragment,null,f.default.createElement($l,{schema:a}),!ae&&le&&f.default.createElement(f.default.Fragment,null,f.default.createElement($t,{schema:a}),f.default.createElement(kt,{schema:a}),f.default.createElement(bt,{schema:a}),f.default.createElement(pn,{schema:a}),f.default.createElement(or,{schema:a}),f.default.createElement(we,{schema:a}),f.default.createElement(Ve,{schema:a}),f.default.createElement(tt,{schema:a}),f.default.createElement(Mt,{schema:a}),f.default.createElement(rr,{schema:a}),f.default.createElement(Jt,{schema:a}),f.default.createElement(fr,{schema:a}),f.default.createElement(qe,{schema:a}),f.default.createElement(gt,{schema:a}),f.default.createElement(xt,{schema:a}),f.default.createElement(Jr,{schema:a}),f.default.createElement(Wt,{schema:a}),f.default.createElement(cp,{schema:a})),f.default.createElement(Po,{schema:a}),f.default.createElement(Ci,{schema:a}),f.default.createElement(Cl,{schema:a,dependentRequired:p}),f.default.createElement(Pn,{schema:a}),f.default.createElement(ve,{schema:a}),f.default.createElement(Se,{schema:a}),f.default.createElement(Ue,{schema:a}),f.default.createElement(xe,{schema:a}),f.default.createElement(Te,{schema:a}),f.default.createElement(Pe,{schema:a}),!ae&&le&&f.default.createElement(Ze,{schema:a}),f.default.createElement(je,{schema:a}),f.default.createElement(it,{schema:a})))))))}),Xk=({schema:a})=>a!=null&&a.$schema?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$schema)):null,Qk=({schema:a})=>{const u=Sa(),p=ko(),[d,g]=(0,f.useState)(u||p),E=Qe("Accordion"),O=(0,f.useCallback)(()=>{g(k=>!k)},[]);return a!=null&&a.$vocabulary?typeof a.$vocabulary!="object"?null:f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},f.default.createElement(E,{expanded:d,onChange:O},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",null,d&&Object.entries(a.$vocabulary).map(([k,N])=>f.default.createElement("li",{key:k,className:(0,Er.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!N})},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},k))))):null},Zk=({schema:a})=>a!=null&&a.$id?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$id)):null,eT=({schema:a})=>a!=null&&a.$anchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$anchor)):null,tT=({schema:a})=>a!=null&&a.$dynamicAnchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$dynamicAnchor)):null,rT=({schema:a})=>a!=null&&a.$ref?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$ref)):null,nT=({schema:a})=>a!=null&&a.$dynamicRef?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$dynamicRef)):null,iT=({schema:a})=>{const u=(a==null?void 0:a.$defs)||{},p=Sa(),d=ko(),[g,E]=(0,f.useState)(p||d),[O,k]=(0,f.useState)(!1),N=Qe("Accordion"),D=Qe("ExpandDeepButton"),F=Qe("JSONSchema"),W=(0,f.useCallback)(()=>{E(H=>!H)},[]),G=(0,f.useCallback)((H,ne)=>{E(ne),k(ne)},[]);return Object.keys(u).length===0?null:f.default.createElement(Js.Provider,{value:O},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs"},f.default.createElement(N,{expanded:g,onChange:W},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),f.default.createElement(D,{expanded:g,onClick:G}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!g})},g&&f.default.createElement(f.default.Fragment,null,Object.entries(u).map(([H,ne])=>f.default.createElement("li",{key:H,className:"json-schema-2020-12-property"},f.default.createElement(F,{name:H,schema:ne})))))))},sT=({schema:a})=>a!=null&&a.$comment?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},a.$comment)):null,oT=({schema:a})=>{const u=(a==null?void 0:a.allOf)||[],p=Or(),d=Sa(),g=ko(),[E,O]=(0,f.useState)(d||g),[k,N]=(0,f.useState)(!1),D=Qe("Accordion"),F=Qe("ExpandDeepButton"),W=Qe("JSONSchema"),G=Qe("KeywordType"),H=(0,f.useCallback)(()=>{O(le=>!le)},[]),ne=(0,f.useCallback)((le,ae)=>{O(ae),N(ae)},[]);return Array.isArray(u)&&u.length!==0?f.default.createElement(Js.Provider,{value:k},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf"},f.default.createElement(D,{expanded:E,onChange:H},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),f.default.createElement(F,{expanded:E,onClick:ne}),f.default.createElement(G,{schema:{allOf:u}}),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!E})},E&&f.default.createElement(f.default.Fragment,null,u.map((le,ae)=>f.default.createElement("li",{key:`#${ae}`,className:"json-schema-2020-12-property"},f.default.createElement(W,{name:`#${ae} ${p.getTitle(le)}`,schema:le}))))))):null},aT=({schema:a})=>{const u=(a==null?void 0:a.anyOf)||[],p=Or(),d=Sa(),g=ko(),[E,O]=(0,f.useState)(d||g),[k,N]=(0,f.useState)(!1),D=Qe("Accordion"),F=Qe("ExpandDeepButton"),W=Qe("JSONSchema"),G=Qe("KeywordType"),H=(0,f.useCallback)(()=>{O(le=>!le)},[]),ne=(0,f.useCallback)((le,ae)=>{O(ae),N(ae)},[]);return Array.isArray(u)&&u.length!==0?f.default.createElement(Js.Provider,{value:k},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf"},f.default.createElement(D,{expanded:E,onChange:H},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),f.default.createElement(F,{expanded:E,onClick:ne}),f.default.createElement(G,{schema:{anyOf:u}}),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!E})},E&&f.default.createElement(f.default.Fragment,null,u.map((le,ae)=>f.default.createElement("li",{key:`#${ae}`,className:"json-schema-2020-12-property"},f.default.createElement(W,{name:`#${ae} ${p.getTitle(le)}`,schema:le}))))))):null},lT=({schema:a})=>{const u=(a==null?void 0:a.oneOf)||[],p=Or(),d=Sa(),g=ko(),[E,O]=(0,f.useState)(d||g),[k,N]=(0,f.useState)(!1),D=Qe("Accordion"),F=Qe("ExpandDeepButton"),W=Qe("JSONSchema"),G=Qe("KeywordType"),H=(0,f.useCallback)(()=>{O(le=>!le)},[]),ne=(0,f.useCallback)((le,ae)=>{O(ae),N(ae)},[]);return Array.isArray(u)&&u.length!==0?f.default.createElement(Js.Provider,{value:k},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf"},f.default.createElement(D,{expanded:E,onChange:H},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),f.default.createElement(F,{expanded:E,onClick:ne}),f.default.createElement(G,{schema:{oneOf:u}}),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!E})},E&&f.default.createElement(f.default.Fragment,null,u.map((le,ae)=>f.default.createElement("li",{key:`#${ae}`,className:"json-schema-2020-12-property"},f.default.createElement(W,{name:`#${ae} ${p.getTitle(le)}`,schema:le}))))))):null},uT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"not"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},f.default.createElement(p,{name:d,schema:a.not}))},cT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"if"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(p,{name:d,schema:a.if}))},fT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"then"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},f.default.createElement(p,{name:d,schema:a.then}))},pT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"else"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(p,{name:d,schema:a.else}))},dT=({schema:a})=>{const u=(a==null?void 0:a.dependentSchemas)||[],p=Sa(),d=ko(),[g,E]=(0,f.useState)(p||d),[O,k]=(0,f.useState)(!1),N=Qe("Accordion"),D=Qe("ExpandDeepButton"),F=Qe("JSONSchema"),W=(0,f.useCallback)(()=>{E(H=>!H)},[]),G=(0,f.useCallback)((H,ne)=>{E(ne),k(ne)},[]);return typeof u!="object"||Object.keys(u).length===0?null:f.default.createElement(Js.Provider,{value:O},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas"},f.default.createElement(N,{expanded:g,onChange:W},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),f.default.createElement(D,{expanded:g,onClick:G}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!g})},g&&f.default.createElement(f.default.Fragment,null,Object.entries(u).map(([H,ne])=>f.default.createElement("li",{key:H,className:"json-schema-2020-12-property"},f.default.createElement(F,{name:H,schema:ne})))))))},hT=({schema:a})=>{const u=(a==null?void 0:a.prefixItems)||[],p=Or(),d=Sa(),g=ko(),[E,O]=(0,f.useState)(d||g),[k,N]=(0,f.useState)(!1),D=Qe("Accordion"),F=Qe("ExpandDeepButton"),W=Qe("JSONSchema"),G=Qe("KeywordType"),H=(0,f.useCallback)(()=>{O(le=>!le)},[]),ne=(0,f.useCallback)((le,ae)=>{O(ae),N(ae)},[]);return Array.isArray(u)&&u.length!==0?f.default.createElement(Js.Provider,{value:k},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems"},f.default.createElement(D,{expanded:E,onChange:H},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),f.default.createElement(F,{expanded:E,onClick:ne}),f.default.createElement(G,{schema:{prefixItems:u}}),f.default.createElement("ul",{className:(0,Er.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!E})},E&&f.default.createElement(f.default.Fragment,null,u.map((le,ae)=>f.default.createElement("li",{key:`#${ae}`,className:"json-schema-2020-12-property"},f.default.createElement(W,{name:`#${ae} ${p.getTitle(le)}`,schema:le}))))))):null},mT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"items"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},f.default.createElement(p,{name:d,schema:a.items}))},gT=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"contains"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},f.default.createElement(p,{name:d,schema:a.contains}))},yT=({schema:a})=>{const u=Or(),p=(a==null?void 0:a.properties)||{},d=Array.isArray(a==null?void 0:a.required)?a.required:[],g=Qe("JSONSchema");return Object.keys(p).length===0?null:f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(p).map(([E,O])=>{const k=d.includes(E),N=u.getDependentRequired(E,a);return f.default.createElement("li",{key:E,className:(0,Er.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":k})},f.default.createElement(g,{name:E,schema:O,dependentRequired:N}))})))},vT=({schema:a})=>{const u=(a==null?void 0:a.patternProperties)||{},p=Qe("JSONSchema");return Object.keys(u).length===0?null:f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},f.default.createElement("ul",null,Object.entries(u).map(([d,g])=>f.default.createElement("li",{key:d,className:"json-schema-2020-12-property"},f.default.createElement(p,{name:d,schema:g})))))},bT=({schema:a})=>{const u=Or(),{additionalProperties:p}=a,d=Qe("JSONSchema");if(!u.hasKeyword(a,"additionalProperties"))return null;const g=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},p===!0?f.default.createElement(f.default.Fragment,null,g,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):p===!1?f.default.createElement(f.default.Fragment,null,g,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):f.default.createElement(d,{name:g,schema:p}))},ET=({schema:a})=>{const u=Or(),{propertyNames:p}=a,d=Qe("JSONSchema"),g=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return u.hasKeyword(a,"propertyNames")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},f.default.createElement(d,{name:g,schema:p})):null},ST=({schema:a})=>{const u=Or(),{unevaluatedItems:p}=a,d=Qe("JSONSchema");if(!u.hasKeyword(a,"unevaluatedItems"))return null;const g=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},f.default.createElement(d,{name:g,schema:p}))},wT=({schema:a})=>{const u=Or(),{unevaluatedProperties:p}=a,d=Qe("JSONSchema");if(!u.hasKeyword(a,"unevaluatedProperties"))return null;const g=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},f.default.createElement(d,{name:g,schema:p}))},_T=({schema:a,isCircular:u=!1})=>{const p=Or().getType(a),d=u?" [circular]":"";return f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${p}${d}`)},xT=({schema:a})=>{const u=Or();return Array.isArray(a==null?void 0:a.enum)?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Allowed values"),f.default.createElement("ul",null,a.enum.map(p=>{const d=u.stringify(p);return f.default.createElement("li",{key:d},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},d))}))):null},AT=({schema:a})=>{const u=Or();return u.hasKeyword(a,"const")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Const"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},u.stringify(a.const))):null};const yW=({constraint:a})=>f.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${a.scope}`},a.value);var OT=f.default.memo(yW),CT=({dependentRequired:a})=>a.length===0?null:f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),f.default.createElement("ul",null,a.map(u=>f.default.createElement("li",{key:u},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},u))))),$T=({schema:a})=>{const u=Or(),p=Qe("JSONSchema");if(!u.hasKeyword(a,"contentSchema"))return null;const d=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},f.default.createElement(p,{name:d,schema:a.contentSchema}))},kT=({title:a="",schema:u})=>{const p=Or();return a||p.getTitle(u)?f.default.createElement("div",{className:"json-schema-2020-12__title"},a||p.getTitle(u)):null},TT=({schema:a})=>a!=null&&a.description?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},a.description)):null,PT=({schema:a})=>{const u=Or();return u.hasKeyword(a,"default")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Default"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},u.stringify(a.default))):null},RT=({schema:a})=>(a==null?void 0:a.deprecated)!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),IT=({schema:a})=>(a==null?void 0:a.readOnly)!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),NT=({schema:a})=>(a==null?void 0:a.writeOnly)!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),jT=({expanded:a=!1,children:u,onChange:p})=>{const d=Qe("ChevronRightIcon"),g=(0,f.useCallback)(E=>{p(E,!a)},[a,p]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:g},f.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},u),f.default.createElement("span",{className:(0,Er.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":a,"json-schema-2020-12-accordion__icon--collapsed":!a})},f.default.createElement(d,null)))},MT=({expanded:a,onClick:u})=>{const p=(0,f.useCallback)(d=>{u(d,!a)},[a,u]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:p},a?"Collapse all":"Expand all")},DT=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},f.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const FT=a=>typeof a=="string"?`${a.charAt(0).toUpperCase()}${a.slice(1)}`:a,vW=a=>{const u=Or();return a!=null&&a.title?u.upperFirst(a.title):a!=null&&a.$anchor?u.upperFirst(a.$anchor):a!=null&&a.$id?a.$id:""},Bu=(a,u=new WeakSet)=>{const p=Or();if(a==null)return"any";if(p.isBooleanJSONSchema(a))return a?"any":"never";if(typeof a!="object"||u.has(a))return"any";u.add(a);const{type:d,prefixItems:g,items:E}=a,O=()=>{if(Array.isArray(g)){const D=g.map(W=>Bu(W,u)),F=E?Bu(E,u):"any";return`array<[${D.join(", ")}], ${F}>`}return E?`array<${Bu(E,u)}>`:"array"};if(a.not&&Bu(a.not)==="any")return"never";const k=(D,F)=>Array.isArray(a[D])?`(${a[D].map(W=>Bu(W,u)).join(F)})`:null,N=[Array.isArray(d)?d.map(D=>D==="array"?O():D).join(" | "):d==="array"?O():["null","boolean","object","array","number","integer","string"].includes(d)?d:(()=>{if(Object.hasOwn(a,"prefixItems")||Object.hasOwn(a,"items")||Object.hasOwn(a,"contains"))return O();if(Object.hasOwn(a,"properties")||Object.hasOwn(a,"additionalProperties")||Object.hasOwn(a,"patternProperties"))return"object";if(["int32","int64"].includes(a.format))return"integer";if(["float","double"].includes(a.format))return"number";if(Object.hasOwn(a,"minimum")||Object.hasOwn(a,"maximum")||Object.hasOwn(a,"exclusiveMinimum")||Object.hasOwn(a,"exclusiveMaximum")||Object.hasOwn(a,"multipleOf"))return"number | integer";if(Object.hasOwn(a,"pattern")||Object.hasOwn(a,"format")||Object.hasOwn(a,"minLength")||Object.hasOwn(a,"maxLength"))return"string";if(a.const!==void 0){if(a.const===null)return"null";if(typeof a.const=="boolean")return"boolean";if(typeof a.const=="number")return Number.isInteger(a.const)?"integer":"number";if(typeof a.const=="string")return"string";if(Array.isArray(a.const))return"array";if(typeof a.const=="object")return"object"}return null})(),k("oneOf"," | "),k("anyOf"," | "),k("allOf"," & ")].filter(Boolean).join(" | ");return u.delete(a),N||"any"},bW=a=>typeof a=="boolean",LT=(a,u)=>a!==null&&typeof a=="object"&&Object.hasOwn(a,u),BT=a=>{const u=Or();return(a==null?void 0:a.$schema)||(a==null?void 0:a.$vocabulary)||(a==null?void 0:a.$id)||(a==null?void 0:a.$anchor)||(a==null?void 0:a.$dynamicAnchor)||(a==null?void 0:a.$ref)||(a==null?void 0:a.$dynamicRef)||(a==null?void 0:a.$defs)||(a==null?void 0:a.$comment)||(a==null?void 0:a.allOf)||(a==null?void 0:a.anyOf)||(a==null?void 0:a.oneOf)||u.hasKeyword(a,"not")||u.hasKeyword(a,"if")||u.hasKeyword(a,"then")||u.hasKeyword(a,"else")||(a==null?void 0:a.dependentSchemas)||(a==null?void 0:a.prefixItems)||u.hasKeyword(a,"items")||u.hasKeyword(a,"contains")||(a==null?void 0:a.properties)||(a==null?void 0:a.patternProperties)||u.hasKeyword(a,"additionalProperties")||u.hasKeyword(a,"propertyNames")||u.hasKeyword(a,"unevaluatedItems")||u.hasKeyword(a,"unevaluatedProperties")||(a==null?void 0:a.description)||(a==null?void 0:a.enum)||u.hasKeyword(a,"const")||u.hasKeyword(a,"contentSchema")||u.hasKeyword(a,"default")},UT=a=>a===null||["number","bigint","boolean"].includes(typeof a)?String(a):Array.isArray(a)?`[${a.map(UT).join(", ")}]`:JSON.stringify(a),Um=(a,u,p)=>{const d=typeof u=="number",g=typeof p=="number";return d&&g?u===p?`${u} ${a}`:`[${u}, ${p}] ${a}`:d?`>= ${u} ${a}`:g?`<= ${p} ${a}`:null},EW=a=>{const u=[],p=(N=>{if(typeof(N==null?void 0:N.multipleOf)!="number"||N.multipleOf<=0||N.multipleOf===1)return null;const{multipleOf:D}=N;if(Number.isInteger(D))return`multiple of ${D}`;const F=10**D.toString().split(".")[1].length;return`multiple of ${D*F}/${F}`})(a);p!==null&&u.push({scope:"number",value:p});const d=(N=>{const D=N==null?void 0:N.minimum,F=N==null?void 0:N.maximum,W=N==null?void 0:N.exclusiveMinimum,G=N==null?void 0:N.exclusiveMaximum,H=typeof D=="number",ne=typeof F=="number",le=typeof W=="number",ae=typeof G=="number",Re=le&&(!H||DG);return(H||le)&&(ne||ae)?`${Re?"(":"["}${Re?W:D}, ${Oe?G:F}${Oe?")":"]"}`:H||le?`${Re?">":"≥"} ${Re?W:D}`:ne||ae?`${Oe?"<":"≤"} ${Oe?G:F}`:null})(a);d!==null&&u.push({scope:"number",value:d}),a!=null&&a.format&&u.push({scope:"string",value:a.format});const g=Um("characters",a==null?void 0:a.minLength,a==null?void 0:a.maxLength);g!==null&&u.push({scope:"string",value:g}),a!=null&&a.pattern&&u.push({scope:"string",value:`matches ${a==null?void 0:a.pattern}`}),a!=null&&a.contentMediaType&&u.push({scope:"string",value:`media type: ${a.contentMediaType}`}),a!=null&&a.contentEncoding&&u.push({scope:"string",value:`encoding: ${a.contentEncoding}`});const E=Um(a!=null&&a.hasUniqueItems?"unique items":"items",a==null?void 0:a.minItems,a==null?void 0:a.maxItems);E!==null&&u.push({scope:"array",value:E});const O=Um("contained items",a==null?void 0:a.minContains,a==null?void 0:a.maxContains);O!==null&&u.push({scope:"array",value:O});const k=Um("properties",a==null?void 0:a.minProperties,a==null?void 0:a.maxProperties);return k!==null&&u.push({scope:"object",value:k}),u},SW=(a,u)=>u!=null&&u.dependentRequired?Array.from(Object.entries(u.dependentRequired).reduce((p,[d,g])=>(Array.isArray(g)&&g.includes(a)&&p.add(d),p),new Set)):[],wW=(a,u={})=>{const p={components:{JSONSchema:Yk,Keyword$schema:Xk,Keyword$vocabulary:Qk,Keyword$id:Zk,Keyword$anchor:eT,Keyword$dynamicAnchor:tT,Keyword$ref:rT,Keyword$dynamicRef:nT,Keyword$defs:iT,Keyword$comment:sT,KeywordAllOf:oT,KeywordAnyOf:aT,KeywordOneOf:lT,KeywordNot:uT,KeywordIf:cT,KeywordThen:fT,KeywordElse:pT,KeywordDependentSchemas:dT,KeywordPrefixItems:hT,KeywordItems:mT,KeywordContains:gT,KeywordProperties:yT,KeywordPatternProperties:vT,KeywordAdditionalProperties:bT,KeywordPropertyNames:ET,KeywordUnevaluatedItems:ST,KeywordUnevaluatedProperties:wT,KeywordType:_T,KeywordEnum:xT,KeywordConst:AT,KeywordConstraint:OT,KeywordDependentRequired:CT,KeywordContentSchema:$T,KeywordTitle:kT,KeywordDescription:TT,KeywordDefault:PT,KeywordDeprecated:RT,KeywordReadOnly:IT,KeywordWriteOnly:NT,Accordion:jT,ExpandDeepButton:MT,ChevronRightIcon:DT,...u.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,...u.config},fn:{upperFirst:FT,getTitle:vW,getType:Bu,isBooleanJSONSchema:bW,hasKeyword:LT,isExpandable:BT,stringify:UT,stringifyConstraints:EW,getDependentRequired:SW,...u.fn}},d=g=>f.default.createElement(Lu.Provider,{value:p},f.default.createElement(a,g));return d.contexts={JSONSchemaContext:Lu},d.displayName=a.displayName,d};var VT=()=>({components:{JSONSchema202012:Yk,JSONSchema202012Keyword$schema:Xk,JSONSchema202012Keyword$vocabulary:Qk,JSONSchema202012Keyword$id:Zk,JSONSchema202012Keyword$anchor:eT,JSONSchema202012Keyword$dynamicAnchor:tT,JSONSchema202012Keyword$ref:rT,JSONSchema202012Keyword$dynamicRef:nT,JSONSchema202012Keyword$defs:iT,JSONSchema202012Keyword$comment:sT,JSONSchema202012KeywordAllOf:oT,JSONSchema202012KeywordAnyOf:aT,JSONSchema202012KeywordOneOf:lT,JSONSchema202012KeywordNot:uT,JSONSchema202012KeywordIf:cT,JSONSchema202012KeywordThen:fT,JSONSchema202012KeywordElse:pT,JSONSchema202012KeywordDependentSchemas:dT,JSONSchema202012KeywordPrefixItems:hT,JSONSchema202012KeywordItems:mT,JSONSchema202012KeywordContains:gT,JSONSchema202012KeywordProperties:yT,JSONSchema202012KeywordPatternProperties:vT,JSONSchema202012KeywordAdditionalProperties:bT,JSONSchema202012KeywordPropertyNames:ET,JSONSchema202012KeywordUnevaluatedItems:ST,JSONSchema202012KeywordUnevaluatedProperties:wT,JSONSchema202012KeywordType:_T,JSONSchema202012KeywordEnum:xT,JSONSchema202012KeywordConst:AT,JSONSchema202012KeywordConstraint:OT,JSONSchema202012KeywordDependentRequired:CT,JSONSchema202012KeywordContentSchema:$T,JSONSchema202012KeywordTitle:kT,JSONSchema202012KeywordDescription:TT,JSONSchema202012KeywordDefault:PT,JSONSchema202012KeywordDeprecated:RT,JSONSchema202012KeywordReadOnly:IT,JSONSchema202012KeywordWriteOnly:NT,JSONSchema202012Accordion:jT,JSONSchema202012ExpandDeepButton:MT,JSONSchema202012ChevronRightIcon:DT,withJSONSchema202012Context:wW,JSONSchema202012DeepExpansionContext:()=>Js},fn:{upperFirst:FT,jsonSchema202012:{isExpandable:BT,hasKeyword:LT,useFn:Or,useConfig:Jk,useComponent:Qe,useIsExpandedDeeply:ko}}}),zT=function(a){var u={};return Ce.d(u,a),u}({default:function(){return jX}}),_W=(a,{sample:u})=>((p,d={})=>{const{minItems:g,maxItems:E,uniqueItems:O}=d,{contains:k,minContains:N,maxContains:D}=d;let F=[...p];if(k!=null&&typeof k=="object"&&Number.isInteger(N)&&N>1){const W=F.at(0);for(let G=1;G0&&(F=p.slice(0,E)),Number.isInteger(g)&&g>0)for(let W=0;F.length{throw new Error("Not implemented")};const Vm=a=>T()(a),zm=a=>a.at(0),Al=a=>typeof a=="boolean",xs=a=>(0,zT.default)(a),To=a=>Al(a)||xs(a);var AW=()=>"user@example.com",OW=()=>"실례@example.com",CW=()=>"example.com",$W=()=>"실례.com",kW=()=>"198.51.100.42",TW=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",PW=()=>"https://example.com/",RW=()=>"path/index.html",IW=()=>"https://실례.com/",NW=()=>"path/실례.html",jW=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",MW=()=>"https://example.com/dictionary/{term:1}/{term}",DW=()=>"/a/b/c",FW=()=>"1/0",LW=()=>new Date().toISOString(),BW=()=>new Date().toISOString().substring(0,10),UW=()=>new Date().toISOString().substring(11),VW=()=>"P3D",zW=()=>"********",qW=()=>"^[a-z]+$",AE=class{constructor(){ie(this,"data",{})}register(u,p){this.data[u]=p}unregister(u){u===void 0?this.data={}:delete this.data[u]}get(u){return this.data[u]}};const OE=new AE;var qm=(a,u)=>typeof u=="function"?OE.register(a,u):u===null?OE.unregister(a):OE.get(a),WW=Ce(287).Buffer,KW=a=>WW.from(a).toString("ascii"),HW=Ce(287).Buffer,JW=a=>HW.from(a).toString("utf8"),GW=Ce(287).Buffer,YW=a=>GW.from(a).toString("binary"),XW=a=>{let u="";for(let p=0;p=33&&d<=60||d>=62&&d<=126||d===9||d===32)u+=a.charAt(p);else if(d===13||d===10)u+=`\r
`;else if(d>126){const g=unescape(encodeURIComponent(a.charAt(p)));for(let E=0;EQW.from(a).toString("hex"),eK=Ce(287).Buffer,tK=a=>{const u=eK.from(a).toString("utf8"),p="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let d=0,g="",E=0,O=0;for(let k=0;k=5;)g+=p.charAt(E>>>O-5&31),O-=5;O>0&&(g+=p.charAt(E<<5-O&31),d=(8-8*u.length%5)%5);for(let k=0;krK.from(a).toString("base64"),iK=Ce(287).Buffer,sK=a=>iK.from(a).toString("base64url");const Wm=new(rP=class extends AE{constructor(){super(...arguments);RE(this,lp,{"7bit":KW,"8bit":JW,binary:YW,"quoted-printable":XW,base16:ZW,base32:tK,base64:nK,base64url:sK});ie(this,"data",{...fp(this,lp)})}get defaults(){return{...fp(this,lp)}}},lp=new WeakMap,rP),qT=(a,u)=>typeof u=="function"?Wm.register(a,u):u===null?Wm.unregister(a):Wm.get(a);qT.getDefaults=()=>Wm.defaults;var WT=qT,oK={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"content
","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'John Doe',"text/*":()=>"string"},aK={"image/*":()=>Vm(25).toString("binary")},lK={"audio/*":()=>Vm(25).toString("binary")},uK={"video/*":()=>Vm(25).toString("binary")},cK={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"Hello World!
'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"content
","application/*":()=>Vm(25).toString("binary")};const Uu=new(nP=class extends AE{constructor(){super(...arguments);RE(this,up,{...oK,...aK,...lK,...uK,...cK});ie(this,"data",{...fp(this,up)})}get defaults(){return{...fp(this,up)}}},up=new WeakMap,nP),KT=(a,u)=>{if(typeof u=="function")return Uu.register(a,u);if(u===null)return Uu.unregister(a);const p=a.split(";").at(0),d=`${p.split("/").at(0)}/*`;return Uu.get(a)||Uu.get(p)||Uu.get(d)};KT.getDefaults=()=>Uu.defaults;var HT=KT,fK=(a,{sample:u}={})=>{const{contentEncoding:p,contentMediaType:d,contentSchema:g}=a,{pattern:E,format:O}=a,k=WT(p)||ek.default;let N;if(typeof E=="string")N=(D=>{try{return new c$.default(D).gen()}catch{return"string"}})(E);else if(typeof O=="string")N=(D=>{const{format:F}=D,W=qm(F);if(typeof W=="function")return W(D);switch(F){case"email":return AW();case"idn-email":return OW();case"hostname":return CW();case"idn-hostname":return $W();case"ipv4":return kW();case"ipv6":return TW();case"uri":return PW();case"uri-reference":return RW();case"iri":return IW();case"iri-reference":return NW();case"uuid":return jW();case"uri-template":return MW();case"json-pointer":return DW();case"relative-json-pointer":return FW();case"date-time":return LW();case"date":return BW();case"time":return UW();case"duration":return VW();case"password":return zW();case"regex":return qW()}return"string"})(a);else if(To(g)&&typeof d=="string"&&u!==void 0)N=Array.isArray(u)||typeof u=="object"?JSON.stringify(u):String(u);else if(typeof d=="string"){const D=HT(d);typeof D=="function"&&(N=D(a))}else N="string";return k(((D,F={})=>{const{maxLength:W,minLength:G}=F;let H=D;if(Number.isInteger(W)&&W>0&&(H=H.slice(0,W)),Number.isInteger(G)&&G>0){let ne=0;for(;H.length.1,dK=()=>.1,hK=a=>{const{format:u}=a;let p;return p=typeof u=="string"?(d=>{const{format:g}=d,E=qm(g);if(typeof E=="function")return E(d);switch(g){case"float":return pK();case"double":return dK()}return 0})(a):0,((d,g={})=>{const{minimum:E,maximum:O,exclusiveMinimum:k,exclusiveMaximum:N}=g,{multipleOf:D}=g,F=Number.isInteger(d)?1:Number.EPSILON;let W=typeof E=="number"?E:null,G=typeof O=="number"?O:null,H=d;if(typeof k=="number"&&(W=W!==null?Math.max(W,k+F):k+F),typeof N=="number"&&(G=G!==null?Math.min(G,N-F):N-F),H=W>G&&d||W||G||H,typeof D=="number"&&D>0){const ne=H%D;H=ne===0?H:H+D-ne}return H})(p,a)},mK=()=>2**30>>>0,gK=()=>2**53-1,yK=a=>{const{format:u}=a;return typeof u=="string"?(p=>{const{format:d}=p,g=qm(d);if(typeof g=="function")return g(p);switch(d){case"int32":return mK();case"int64":return gK()}return 0})(a):0},vK=a=>typeof a.default!="boolean"||a.default,Km=new Proxy({array:_W,object:xW,string:fK,number:hK,integer:yK,boolean:vK,null:()=>null},{get:(a,u)=>typeof u=="string"&&Object.hasOwn(a,u)?a[u]:()=>`Unknown Type: ${u}`});const JT=["array","object","number","integer","string","boolean","null"],sp=a=>{if(!xs(a))return!1;const{examples:u,example:p,default:d}=a;return!!(Array.isArray(u)&&u.length>=1)||d!==void 0||p!==void 0},CE=a=>{if(!xs(a))return null;const{examples:u,example:p,default:d}=a;return Array.isArray(u)&&u.length>=1?u.at(0):d!==void 0?d:p!==void 0?p:void 0},Hm={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};Hm.number=Hm.integer;const $E="string",GT=a=>a===void 0?null:a===null?"null":Array.isArray(a)?"array":Number.isInteger(a)?"integer":typeof a,kE=a=>{if(Array.isArray(a)&&a.length>=1){if(a.includes("array"))return"array";if(a.includes("object"))return"object";{const u=zm(a);if(JT.includes(u))return u}}return JT.includes(a)?a:null},TE=(a,u=new WeakSet)=>{if(!xs(a)||u.has(a))return $E;u.add(a);let{type:p,const:d}=a;if(p=kE(p),typeof p!="string"){const g=Object.keys(Hm);e:for(let E=0;E{if(Array.isArray(a[D])){const F=a[D].map(W=>TE(W,u));return kE(F)}return null},E=g("allOf"),O=g("anyOf"),k=g("oneOf"),N=a.not?TE(a.not,u):null;(E||O||k||N)&&(p=kE([E,O,k,N].filter(Boolean)))}if(typeof p!="string"&&sp(a)){const g=CE(a),E=GT(g);p=typeof E=="string"?E:p}return u.delete(a),p||$E},YT=a=>TE(a),PE=a=>Al(a)?(u=>u===!1?{not:{}}:{})(a):xs(a)?a:{},op=(a,u,p={})=>{if(Al(a)&&a===!0)return!0;if(Al(a)&&a===!1)return!1;if(Al(u)&&u===!0)return!0;if(Al(u)&&u===!1)return!1;if(!To(a))return u;if(!To(u))return a;const d={...u,...a};if(u.type&&a.type&&Array.isArray(u.type)&&typeof u.type=="string"){const g=At(u.type).concat(a.type);d.type=Array.from(new Set(g))}if(Array.isArray(u.required)&&Array.isArray(a.required)&&(d.required=[...new Set([...a.required,...u.required])]),u.properties&&a.properties){const g=new Set([...Object.keys(u.properties),...Object.keys(a.properties)]);d.properties={};for(const E of g){const O=u.properties[E]||{},k=a.properties[E]||{};O.readOnly&&!p.includeReadOnly||O.writeOnly&&!p.includeWriteOnly?d.required=(d.required||[]).filter(N=>N!==E):d.properties[E]=op(k,O,p)}}return To(u.items)&&To(a.items)&&(d.items=op(a.items,u.items,p)),To(u.contains)&&To(a.contains)&&(d.contains=op(a.contains,u.contains,p)),To(u.contentSchema)&&To(a.contentSchema)&&(d.contentSchema=op(a.contentSchema,u.contentSchema,p)),d};var ap=op;const En=(a,u={},p=void 0,d=!1)=>{var Ze,it,we,Ve,tt,Mt,rr,Jt,fr;typeof(a==null?void 0:a.toJS)=="function"&&(a=a.toJS()),a=PE(a);let g=p!==void 0||sp(a);const E=!g&&Array.isArray(a.oneOf)&&a.oneOf.length>0,O=!g&&Array.isArray(a.anyOf)&&a.anyOf.length>0;if(!g&&(E||O)){const qe=PE(zm(E?a.oneOf:a.anyOf));!(a=ap(a,qe,u)).xml&&qe.xml&&(a.xml=qe.xml),sp(a)&&sp(qe)&&(g=!0)}const k={};let{xml:N,properties:D,additionalProperties:F,items:W,contains:G}=a||{},H=YT(a),{includeReadOnly:ne,includeWriteOnly:le}=u;N=N||{};let ae,{name:Re,prefix:Oe,namespace:Me}=N,ve={};Object.hasOwn(a,"type")||(a.type=H),d&&(Re=Re||"notagname",ae=(Oe?`${Oe}:`:"")+Re,Me)&&(k[Oe?`xmlns:${Oe}`:"xmlns"]=Me),d&&(ve[ae]=[]);const Se=_t(D);let Ue,xe=0;const Te=()=>Number.isInteger(a.maxProperties)&&a.maxProperties>0&&xe>=a.maxProperties,Pe=qe=>!(Number.isInteger(a.maxProperties)&&a.maxProperties>0)||!Te()&&(!(gt=>!Array.isArray(a.required)||a.required.length===0||!a.required.includes(gt))(qe)||a.maxProperties-xe-(()=>{if(!Array.isArray(a.required)||a.required.length===0)return 0;let gt=0;return d?a.required.forEach(xt=>gt+=ve[xt]===void 0?0:1):a.required.forEach(xt=>{var Wt;gt+=((Wt=ve[ae])==null?void 0:Wt.find($t=>$t[xt]!==void 0))===void 0?0:1}),a.required.length-gt})()>0);if(Ue=d?(qe,gt=void 0)=>{if(a&&Se[qe]){if(Se[qe].xml=Se[qe].xml||{},Se[qe].xml.attribute){const Wt=Array.isArray(Se[qe].enum)?zm(Se[qe].enum):void 0;if(sp(Se[qe]))k[Se[qe].xml.name||qe]=CE(Se[qe]);else if(Wt!==void 0)k[Se[qe].xml.name||qe]=Wt;else{const $t=PE(Se[qe]),kt=YT($t),bt=Se[qe].xml.name||qe;k[bt]=Km[kt]($t)}return}Se[qe].xml.name=Se[qe].xml.name||qe}else Se[qe]||F===!1||(Se[qe]={xml:{name:qe}});let xt=En(Se[qe],u,gt,d);Pe(qe)&&(xe++,Array.isArray(xt)?ve[ae]=ve[ae].concat(xt):ve[ae].push(xt))}:(qe,gt)=>{var xt;if(Pe(qe)){if((0,zT.default)((xt=a.discriminator)==null?void 0:xt.mapping)&&a.discriminator.propertyName===qe&&typeof a.$$ref=="string"){for(const Wt in a.discriminator.mapping)if(a.$$ref.search(a.discriminator.mapping[Wt])!==-1){ve[qe]=Wt;break}}else ve[qe]=En(Se[qe],u,gt,d);xe++}},g){let qe;if(qe=p!==void 0?p:CE(a),!d){if(typeof qe=="number"&&H==="string")return`${qe}`;if(typeof qe!="string"||H==="string")return qe;try{return JSON.parse(qe)}catch{return qe}}if(H==="array"){if(!Array.isArray(qe)){if(typeof qe=="string")return qe;qe=[qe]}let gt=[];return xs(W)&&(W.xml=W.xml||N||{},W.xml.name=W.xml.name||N.name,gt=qe.map(xt=>En(W,u,xt,d))),xs(G)&&(G.xml=G.xml||N||{},G.xml.name=G.xml.name||N.name,gt=[En(G,u,void 0,d),...gt]),gt=Km.array(a,{sample:gt}),N.wrapped?(ve[ae]=gt,(0,Ws.default)(k)||ve[ae].push({_attr:k})):ve=gt,ve}if(H==="object"){if(typeof qe=="string")return qe;for(const gt in qe)Object.hasOwn(qe,gt)&&((Ze=Se[gt])!=null&&Ze.readOnly&&!ne||(it=Se[gt])!=null&&it.writeOnly&&!le||((Ve=(we=Se[gt])==null?void 0:we.xml)!=null&&Ve.attribute?k[Se[gt].xml.name||gt]=qe[gt]:Ue(gt,qe[gt])));return(0,Ws.default)(k)||ve[ae].push({_attr:k}),ve}return ve[ae]=(0,Ws.default)(k)?qe:[{_attr:k},qe],ve}if(H==="array"){let qe=[];if(xs(G))if(d&&(G.xml=G.xml||a.xml||{},G.xml.name=G.xml.name||N.name),Array.isArray(G.anyOf))qe.push(...G.anyOf.map(gt=>En(ap(gt,G,u),u,void 0,d)));else if(Array.isArray(G.oneOf))qe.push(...G.oneOf.map(gt=>En(ap(gt,G,u),u,void 0,d)));else{if(!(!d||d&&N.wrapped))return En(G,u,void 0,d);qe.push(En(G,u,void 0,d))}if(xs(W))if(d&&(W.xml=W.xml||a.xml||{},W.xml.name=W.xml.name||N.name),Array.isArray(W.anyOf))qe.push(...W.anyOf.map(gt=>En(ap(gt,W,u),u,void 0,d)));else if(Array.isArray(W.oneOf))qe.push(...W.oneOf.map(gt=>En(ap(gt,W,u),u,void 0,d)));else{if(!(!d||d&&N.wrapped))return En(W,u,void 0,d);qe.push(En(W,u,void 0,d))}return qe=Km.array(a,{sample:qe}),d&&N.wrapped?(ve[ae]=qe,(0,Ws.default)(k)||ve[ae].push({_attr:k}),ve):qe}if(H==="object"){for(let qe in Se)Object.hasOwn(Se,qe)&&((tt=Se[qe])!=null&&tt.deprecated||(Mt=Se[qe])!=null&&Mt.readOnly&&!ne||(rr=Se[qe])!=null&&rr.writeOnly&&!le||Ue(qe));if(d&&k&&ve[ae].push({_attr:k}),Te())return ve;if(Al(F)&&F)d?ve[ae].push({additionalProp:"Anything can be here"}):ve.additionalProp1={},xe++;else if(xs(F)){const qe=F,gt=En(qe,u,void 0,d);if(d&&typeof((Jt=qe==null?void 0:qe.xml)==null?void 0:Jt.name)=="string"&&((fr=qe==null?void 0:qe.xml)==null?void 0:fr.name)!=="notagname")ve[ae].push(gt);else{const xt=Number.isInteger(a.minProperties)&&a.minProperties>0&&xe{const d=En(a,u,p,!0);if(d)return typeof d=="string"?d:_l()(d,{declaration:!0,indent:" "})},QT=(a,u,p)=>En(a,u,p,!1),ZT=(a,u,p)=>[a,JSON.stringify(u),JSON.stringify(p)],bK=Zf(XT,ZT),EK=Zf(QT,ZT),SK=[{when:/json/,shouldStringifyTypes:["string"]}],wK=["object"];var _K=a=>(u,p,d,g)=>{const{fn:E}=a(),O=E.jsonSchema202012.memoizedSampleFromSchema(u,p,g),k=typeof O,N=SK.reduce((D,F)=>F.when.test(d)?[...D,...F.shouldStringifyTypes]:D,wK);return(0,Pt.default)(N,D=>D===k)?JSON.stringify(O,null,2):O},xK=a=>(u,p,d,g)=>{const{fn:E}=a(),O=E.jsonSchema202012.getJsonSampleSchema(u,p,d,g);let k;try{k=Tn.default.dump(Tn.default.load(O),{lineWidth:-1},{schema:Tn.JSON_SCHEMA}),k[k.length-1]===`
`&&(k=k.slice(0,k.length-1))}catch(N){return console.error(N),"error: could not generate yaml example"}return k.replace(/\t/g," ")},AK=a=>(u,p,d)=>{const{fn:g}=a();if(u&&!u.xml&&(u.xml={}),u&&!u.xml.name){if(!u.$$ref&&(u.type||u.items||u.properties||u.additionalProperties))return`
-`;if(u.$$ref){let E=u.$$ref.match(/\S*\/(\S+)$/);u.xml.name=E[1]}}return g.jsonSchema202012.memoizedCreateXMLExample(u,p,d)},OK=a=>(u,p="",d={},g=void 0)=>{const{fn:E}=a();return typeof(u==null?void 0:u.toJS)=="function"&&(u=u.toJS()),typeof(g==null?void 0:g.toJS)=="function"&&(g=g.toJS()),/xml/.test(p)?E.jsonSchema202012.getXmlSampleSchema(u,d,g):/(yaml|yml)/.test(p)?E.jsonSchema202012.getYamlSampleSchema(u,d,p,g):E.jsonSchema202012.getJsonSampleSchema(u,d,p,g)},eP=({getSystem:a})=>{const u=_K(a),p=xK(a),d=AK(a),g=OK(a);return{fn:{jsonSchema202012:{sampleFromSchema:QT,sampleFromSchemaGeneric:En,sampleEncoderAPI:WT,sampleFormatAPI:qm,sampleMediaTypeAPI:HT,createXMLExample:XT,memoizedSampleFromSchema:EK,memoizedCreateXMLExample:bK,getJsonSampleSchema:u,getYamlSampleSchema:p,getXmlSampleSchema:d,getSampleSchema:g}}}};function tP(){return[Uk,EE,VT,eP,hW]}const{GIT_DIRTY:CK,GIT_COMMIT:$K,PACKAGE_VERSION:kK,BUILD_TIME:TK}={PACKAGE_VERSION:"5.11.8",GIT_COMMIT:"g925ff51d",GIT_DIRTY:!0,BUILD_TIME:"Fri, 23 Feb 2024 11:44:58 GMT"};function Jm(a){We.versions=We.versions||{},We.versions.swaggerUi={version:kK,gitRevision:$K,gitDirty:CK,buildTimestamp:TK};const u={dom_id:null,domNode:null,spec:{},url:"",urls:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:null,filter:null,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:`${window.location.protocol}//${window.location.host}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`,persistAuthorization:!1,configs:{},custom:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:W=>W,responseInterceptor:W=>W,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:void 0,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[tP],plugins:[],pluginsOptions:{pluginLoadType:"legacy"},initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"}};let p=a.queryConfigEnabled?(()=>{let W={},G=We.location.search;if(!G)return{};if(G!=""){let H=G.substr(1).split("&");for(let ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(ne=H[ne].split("="),W[decodeURIComponent(ne[0])]=ne[1]&&decodeURIComponent(ne[1])||"")}return W})():{};const d=a.domNode;delete a.domNode;const g=Q()({},u,a,p),E={system:{configs:g.configs},plugins:g.presets,pluginsOptions:g.pluginsOptions,state:Q()({layout:{layout:g.layout,filter:g.filter},spec:{spec:"",url:g.url},requestSnippets:g.requestSnippets},g.initialState)};if(g.initialState)for(var O in g.initialState)Object.prototype.hasOwnProperty.call(g.initialState,O)&&g.initialState[O]===void 0&&delete E.state[O];var k=new kn(E);k.register([g.plugins,()=>({fn:g.fn,components:g.components,state:g.state})]);var N=k.getSystem();const D=W=>{let G=N.specSelectors.getLocalConfig?N.specSelectors.getLocalConfig():{},H=Q()({},G,g,W||{},p);if(d&&(H.domNode=d),k.setConfigs(H),N.configsActions.loaded(),W!==null&&(!p.url&&typeof H.spec=="object"&&Object.keys(H.spec).length?(N.specActions.updateUrl(""),N.specActions.updateLoadingStatus("success"),N.specActions.updateSpec(JSON.stringify(H.spec))):N.specActions.download&&H.url&&!H.urls&&(N.specActions.updateUrl(H.url),N.specActions.download(H.url))),H.domNode)N.render(H.domNode,"App");else if(H.dom_id){let ne=document.querySelector(H.dom_id);N.render(ne,"App")}else H.dom_id===null||H.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified");return N},F=p.config||g.configUrl;return F&&N.specActions&&N.specActions.getConfigByUrl?(N.specActions.getConfigByUrl({url:F,loadRemoteConfig:!0,requestInterceptor:g.requestInterceptor,responseInterceptor:g.responseInterceptor},D),N):D()}Jm.System=kn,Jm.presets={base:Uk,apis:tP},Jm.plugins={Auth:$u,Configs:$o,DeepLining:Tu,Err:Pu,Filter:Vf,Icons:El,JSONSchema5Samples:E$,JSONSchema202012:VT,JSONSchema202012Samples:eP,Layout:Gf,Logs:Nu,OpenAPI30:EE,OpenAPI31:EE,OnComplete:Yf,RequestSnippets:ci,Spec:z$,SwaggerClient:Y$,Util:X$,View:nk,ViewLegacy:ik,DownloadUrl:sk,SafeRender:uk};var PK=Jm})();var Pze=DU.A;Pze({url:"/openapi.yaml",dom_id:"#app"});
+`;if(u.$$ref){let E=u.$$ref.match(/\S*\/(\S+)$/);u.xml.name=E[1]}}return g.jsonSchema202012.memoizedCreateXMLExample(u,p,d)},OK=a=>(u,p="",d={},g=void 0)=>{const{fn:E}=a();return typeof(u==null?void 0:u.toJS)=="function"&&(u=u.toJS()),typeof(g==null?void 0:g.toJS)=="function"&&(g=g.toJS()),/xml/.test(p)?E.jsonSchema202012.getXmlSampleSchema(u,d,g):/(yaml|yml)/.test(p)?E.jsonSchema202012.getYamlSampleSchema(u,d,p,g):E.jsonSchema202012.getJsonSampleSchema(u,d,p,g)},eP=({getSystem:a})=>{const u=_K(a),p=xK(a),d=AK(a),g=OK(a);return{fn:{jsonSchema202012:{sampleFromSchema:QT,sampleFromSchemaGeneric:En,sampleEncoderAPI:WT,sampleFormatAPI:qm,sampleMediaTypeAPI:HT,createXMLExample:XT,memoizedSampleFromSchema:EK,memoizedCreateXMLExample:bK,getJsonSampleSchema:u,getYamlSampleSchema:p,getXmlSampleSchema:d,getSampleSchema:g}}}};function tP(){return[Uk,EE,VT,eP,hW]}const{GIT_DIRTY:CK,GIT_COMMIT:$K,PACKAGE_VERSION:kK,BUILD_TIME:TK}={PACKAGE_VERSION:"5.11.8",GIT_COMMIT:"g925ff51d",GIT_DIRTY:!0,BUILD_TIME:"Fri, 23 Feb 2024 11:44:58 GMT"};function Jm(a){We.versions=We.versions||{},We.versions.swaggerUi={version:kK,gitRevision:$K,gitDirty:CK,buildTimestamp:TK};const u={dom_id:null,domNode:null,spec:{},url:"",urls:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:null,filter:null,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:`${window.location.protocol}//${window.location.host}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`,persistAuthorization:!1,configs:{},custom:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:W=>W,responseInterceptor:W=>W,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:void 0,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[tP],plugins:[],pluginsOptions:{pluginLoadType:"legacy"},initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"}};let p=a.queryConfigEnabled?(()=>{let W={},G=We.location.search;if(!G)return{};if(G!=""){let H=G.substr(1).split("&");for(let ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(ne=H[ne].split("="),W[decodeURIComponent(ne[0])]=ne[1]&&decodeURIComponent(ne[1])||"")}return W})():{};const d=a.domNode;delete a.domNode;const g=Q()({},u,a,p),E={system:{configs:g.configs},plugins:g.presets,pluginsOptions:g.pluginsOptions,state:Q()({layout:{layout:g.layout,filter:g.filter},spec:{spec:"",url:g.url},requestSnippets:g.requestSnippets},g.initialState)};if(g.initialState)for(var O in g.initialState)Object.prototype.hasOwnProperty.call(g.initialState,O)&&g.initialState[O]===void 0&&delete E.state[O];var k=new kn(E);k.register([g.plugins,()=>({fn:g.fn,components:g.components,state:g.state})]);var N=k.getSystem();const D=W=>{let G=N.specSelectors.getLocalConfig?N.specSelectors.getLocalConfig():{},H=Q()({},G,g,W||{},p);if(d&&(H.domNode=d),k.setConfigs(H),N.configsActions.loaded(),W!==null&&(!p.url&&typeof H.spec=="object"&&Object.keys(H.spec).length?(N.specActions.updateUrl(""),N.specActions.updateLoadingStatus("success"),N.specActions.updateSpec(JSON.stringify(H.spec))):N.specActions.download&&H.url&&!H.urls&&(N.specActions.updateUrl(H.url),N.specActions.download(H.url))),H.domNode)N.render(H.domNode,"App");else if(H.dom_id){let ne=document.querySelector(H.dom_id);N.render(ne,"App")}else H.dom_id===null||H.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified");return N},F=p.config||g.configUrl;return F&&N.specActions&&N.specActions.getConfigByUrl?(N.specActions.getConfigByUrl({url:F,loadRemoteConfig:!0,requestInterceptor:g.requestInterceptor,responseInterceptor:g.responseInterceptor},D),N):D()}Jm.System=kn,Jm.presets={base:Uk,apis:tP},Jm.plugins={Auth:$u,Configs:$o,DeepLining:Tu,Err:Pu,Filter:Vf,Icons:El,JSONSchema5Samples:E$,JSONSchema202012:VT,JSONSchema202012Samples:eP,Layout:Gf,Logs:Nu,OpenAPI30:EE,OpenAPI31:EE,OnComplete:Yf,RequestSnippets:ci,Spec:z$,SwaggerClient:Y$,Util:X$,View:nk,ViewLegacy:ik,DownloadUrl:sk,SafeRender:uk};var PK=Jm})();var Pze=DU.A;Pze({url:"openapi.yaml",dom_id:"#app"});