git subrepo commit (merge) mailcow/src/mailcow-dockerized
subrepo: subdir: "mailcow/src/mailcow-dockerized"
merged: "c7b1dc37"
upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "a366494c"
git-subrepo: version: "0.4.6"
origin: "???"
commit: "???"
Change-Id: Id574ecd4e02e3c4fbf8a1efd49be11c0b6d19a3f
diff --git a/mailcow/src/mailcow-dockerized/data/web/api/swagger-ui.js b/mailcow/src/mailcow-dockerized/data/web/api/swagger-ui.js
index cb890db..726e908 100644
--- a/mailcow/src/mailcow-dockerized/data/web/api/swagger-ui.js
+++ b/mailcow/src/mailcow-dockerized/data/web/api/swagger-ui.js
@@ -1,2 +1,2 @@
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(function(){return(()=>{var e={6024:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(4250),s=r.n(n),a=r(1093),o=r.n(a),l=r(8493),i=r.n(l),c=r(3942),u=r.n(c),p=r(6689),d=r.n(p);const m=require("react-immutable-pure-component");var h=r.n(m),g=r(8082),f=r.n(g),y=r(580),E=r.n(y);class v extends(h()){constructor(){super(...arguments),o()(this,"getModelName",(e=>-1!==i()(e).call(e,"#/definitions/")?e.replace(/^.*#\/definitions\//,""):-1!==i()(e).call(e,"#/components/schemas/")?e.replace(/^.*#\/components\/schemas\//,""):void 0)),o()(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:n,schema:a,required:o,name:l,isRef:i,specPath:c,displayName:u,includeReadOnly:p,includeWriteOnly:m}=this.props;const h=e("ObjectModel"),g=e("ArrayModel"),f=e("PrimitiveModel");let y="object",E=a&&a.get("$$ref");if(!l&&E&&(l=this.getModelName(E)),!a&&E&&(a=this.getRefSchema(l)),!a)return d().createElement("span",{className:"model model-title"},d().createElement("span",{className:"model-title__text"},u||l),d().createElement("img",{src:r(2517),height:"20px",width:"20px"}));const v=n.isOAS3()&&a.get("deprecated");switch(i=void 0!==i?i:!!E,y=a&&a.get("type")||y,y){case"object":return d().createElement(h,s()({className:"object"},this.props,{specPath:c,getConfigs:t,schema:a,name:l,deprecated:v,isRef:i,includeReadOnly:p,includeWriteOnly:m}));case"array":return d().createElement(g,s()({className:"array"},this.props,{getConfigs:t,schema:a,name:l,deprecated:v,required:o,includeReadOnly:p,includeWriteOnly:m}));default:return d().createElement(f,s()({},this.props,{getComponent:e,getConfigs:t,schema:a,name:l,deprecated:v,required:o}))}}}o()(v,"propTypes",{schema:u()(f()).isRequired,getComponent:E().func.isRequired,getConfigs:E().func.isRequired,specSelectors:E().object.isRequired,name:E().string,displayName:E().string,isRef:E().bool,required:E().bool,expandDepth:E().number,depth:E().number,specPath:f().list.isRequired,includeReadOnly:E().bool,includeWriteOnly:E().bool})},5623:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(1093),s=r.n(n),a=r(7252),o=r.n(a),l=r(6689),i=r.n(l),c=r(3883),u=r.n(c),p=(r(580),r(1890)),d=r(7504);class m extends i().Component{constructor(e,t){super(e,t),s()(this,"getDefinitionUrl",(()=>{let{specSelectors:e}=this.props;return new(u())(e.url(),d.Z.location).toString()}));let{getConfigs:r}=e,{validatorUrl:n}=r();this.state={url:this.getDefinitionUrl(),validatorUrl:void 0===n?"https://validator.swagger.io/validator":n}}UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:r}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:void 0===r?"https://validator.swagger.io/validator":r})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),r=(0,p.Nm)(this.state.validatorUrl);return"object"==typeof t&&o()(t).length?null:this.state.url&&(0,p.hW)(this.state.validatorUrl)&&(0,p.hW)(this.state.url)?i().createElement("span",{className:"float-right"},i().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${r}/debug?url=${encodeURIComponent(this.state.url)}`},i().createElement(h,{src:`${r}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class h extends i().Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?i().createElement("img",{alt:"Error"}):this.state.loaded?i().createElement("img",{src:this.props.src,alt:this.props.alt}):null}}},2552:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d,s:()=>m});var n=r(6689),s=r.n(n),a=(r(580),r(963));const o=require("remarkable/linkify"),l=require("dompurify");var i=r.n(l),c=r(9003),u=r.n(c);function p(e){let{source:t,className:r="",getConfigs:n}=e;if("string"!=typeof t)return null;const l=new a.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(o.linkify);l.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:i}=n(),c=l.render(t),p=m(c,{useUnsafeMarkdown:i});return t&&c&&p?s().createElement("div",{className:u()(r,"markdown"),dangerouslySetInnerHTML:{__html:p}}):null}i().addHook&&i().addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e})),p.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const d=p;function m(e){let{useUnsafeMarkdown:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t,n=t?[]:["style","class"];return t&&!m.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),m.hasWarnedAboutDeprecation=!0),i().sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}m.hasWarnedAboutDeprecation=!1},5308:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n,s=r(4235),a=r.n(s),o=r(874),l=r.n(o),i=r(1890),c=r(9595);const u=r(5102),p={},d=p;a()(n=l()(u).call(u)).call(n,(function(e){if("./index.js"===e)return;let t=u(e);p[(0,i.Zl)(e)]=t.default?t.default:t})),p.SafeRender=c.default},5812:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SHOW_AUTH_POPUP:()=>p,AUTHORIZE:()=>d,LOGOUT:()=>m,PRE_AUTHORIZE_OAUTH2:()=>h,AUTHORIZE_OAUTH2:()=>g,VALIDATE:()=>f,CONFIGURE_AUTH:()=>y,RESTORE_AUTHORIZATION:()=>E,showDefinitions:()=>v,authorize:()=>S,authorizeWithPersistOption:()=>C,logout:()=>b,logoutWithPersistOption:()=>x,preAuthorizeImplicit:()=>w,authorizeOauth2:()=>_,authorizeOauth2WithPersistOption:()=>A,authorizePassword:()=>I,authorizeApplication:()=>N,authorizeAccessCodeWithFormParams:()=>q,authorizeAccessCodeWithBasicAuthentication:()=>T,authorizeRequest:()=>R,configureAuth:()=>P,restoreAuthorization:()=>k,persistAuthorizationIfNeeded:()=>O,authPopup:()=>M});var n=r(8344),s=r.n(n),a=r(4994),o=r.n(a),l=r(3883),i=r.n(l),c=r(7504),u=r(1890);const p="show_popup",d="authorize",m="logout",h="pre_authorize_oauth2",g="authorize_oauth2",f="validate",y="configure_auth",E="restore_authorization";function v(e){return{type:p,payload:e}}function S(e){return{type:d,payload:e}}const C=e=>t=>{let{authActions:r}=t;r.authorize(e),r.persistAuthorizationIfNeeded()};function b(e){return{type:m,payload:e}}const x=e=>t=>{let{authActions:r}=t;r.logout(e),r.persistAuthorizationIfNeeded()},w=e=>t=>{let{authActions:r,errActions:n}=t,{auth:a,token:o,isValid:l}=e,{schema:i,name:u}=a,p=i.get("flow");delete c.Z.swaggerUIRedirectOauth2,"accessCode"===p||l||n.newAuthErr({authId:u,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),o.error?n.newAuthErr({authId:u,source:"auth",level:"error",message:s()(o)}):r.authorizeOauth2WithPersistOption({auth:a,token:o})};function _(e){return{type:g,payload:e}}const A=e=>t=>{let{authActions:r}=t;r.authorizeOauth2(e),r.persistAuthorizationIfNeeded()},I=e=>t=>{let{authActions:r}=t,{schema:n,name:s,username:a,password:l,passwordType:i,clientId:c,clientSecret:p}=e,d={grant_type:"password",scope:e.scopes.join(" "),username:a,password:l},m={};switch(i){case"request-body":!function(e,t,r){t&&o()(e,{client_id:t});r&&o()(e,{client_secret:r})}(d,c,p);break;case"basic":m.Authorization="Basic "+(0,u.r3)(c+":"+p);break;default:console.warn(`Warning: invalid passwordType ${i} was passed, not including client id and secret`)}return r.authorizeRequest({body:(0,u.GZ)(d),url:n.get("tokenUrl"),name:s,headers:m,query:{},auth:e})};const N=e=>t=>{let{authActions:r}=t,{schema:n,scopes:s,name:a,clientId:o,clientSecret:l}=e,i={Authorization:"Basic "+(0,u.r3)(o+":"+l)},c={grant_type:"client_credentials",scope:s.join(" ")};return r.authorizeRequest({body:(0,u.GZ)(c),name:a,url:n.get("tokenUrl"),auth:e,headers:i})},q=e=>{let{auth:t,redirectUrl:r}=e;return e=>{let{authActions:n}=e,{schema:s,name:a,clientId:o,clientSecret:l,codeVerifier:i}=t,c={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:l,redirect_uri:r,code_verifier:i};return n.authorizeRequest({body:(0,u.GZ)(c),name:a,url:s.get("tokenUrl"),auth:t})}},T=e=>{let{auth:t,redirectUrl:r}=e;return e=>{let{authActions:n}=e,{schema:s,name:a,clientId:o,clientSecret:l,codeVerifier:i}=t,c={Authorization:"Basic "+(0,u.r3)(o+":"+l)},p={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:r,code_verifier:i};return n.authorizeRequest({body:(0,u.GZ)(p),name:a,url:s.get("tokenUrl"),auth:t,headers:c})}},R=e=>t=>{let r,{fn:n,getConfigs:a,authActions:l,errActions:c,oas3Selectors:u,specSelectors:p,authSelectors:d}=t,{body:m,query:h={},headers:g={},name:f,url:y,auth:E}=e,{additionalQueryStringParams:v}=d.getConfigs()||{};if(p.isOAS3()){let e=u.serverEffectiveValue(u.selectedServer());r=i()(y,e,!0)}else r=i()(y,p.url(),!0);"object"==typeof v&&(r.query=o()({},r.query,v));const S=r.toString();let C=o()({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},g);n.fetch({url:S,method:"post",headers:C,query:h,body:m,requestInterceptor:a().requestInterceptor,responseInterceptor:a().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),r=t&&(t.error||""),n=t&&(t.parseError||"");e.ok?r||n?c.newAuthErr({authId:f,level:"error",source:"auth",message:s()(t)}):l.authorizeOauth2WithPersistOption({auth:E,token:t}):c.newAuthErr({authId:f,level:"error",source:"auth",message:e.statusText})})).catch((e=>{let t=new Error(e).message;if(e.response&&e.response.data){const r=e.response.data;try{const e="string"==typeof r?JSON.parse(r):r;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch(e){}}c.newAuthErr({authId:f,level:"error",source:"auth",message:t})}))};function P(e){return{type:y,payload:e}}function k(e){return{type:E,payload:e}}const O=()=>e=>{let{authSelectors:t,getConfigs:r}=e;if(r().persistAuthorization){const e=t.authorized();localStorage.setItem("authorized",s()(e.toJS()))}},M=(e,t)=>()=>{c.Z.swaggerUIRedirectOauth2=t,c.Z.open(e)}},3705:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c,preauthorizeBasic:()=>u,preauthorizeApiKey:()=>p});var n=r(593),s=r.n(n),a=r(3962),o=r(5812),l=r(35),i=r(8302);function c(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=s()(p).call(p,null,e),this.rootInjects.preauthorizeBasic=s()(u).call(u,null,e)},statePlugins:{auth:{reducers:a.default,actions:o,selectors:l},spec:{wrapActions:i}}}}function u(e,t,r,n){const{authActions:{authorize:s},specSelectors:{specJson:a,isOAS3:o}}=e,l=o()?["components","securitySchemes"]:["securityDefinitions"],i=a().getIn([...l,t]);return i?s({[t]:{value:{username:r,password:n},schema:i.toJS()}}):null}function p(e,t,r){const{authActions:{authorize:n},specSelectors:{specJson:s,isOAS3:a}}=e,o=a()?["components","securitySchemes"]:["securityDefinitions"],l=s().getIn([...o,t]);return l?n({[t]:{value:r,schema:l.toJS()}}):null}},3962:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(4235),s=r.n(n),a=r(4994),o=r.n(a),l=r(5572),i=r(1890),c=r(5812);const u={[c.SHOW_AUTH_POPUP]:(e,t)=>{let{payload:r}=t;return e.set("showDefinitions",r)},[c.AUTHORIZE]:(e,t)=>{var r;let{payload:n}=t,a=(0,l.fromJS)(n),o=e.get("authorized")||(0,l.Map)();return s()(r=a.entrySeq()).call(r,(t=>{let[r,n]=t;if(!(0,i.Wl)(n.getIn))return e.set("authorized",o);let s=n.getIn(["schema","type"]);if("apiKey"===s||"http"===s)o=o.set(r,n);else if("basic"===s){let e=n.getIn(["value","username"]),t=n.getIn(["value","password"]);o=o.setIn([r,"value"],{username:e,header:"Basic "+(0,i.r3)(e+":"+t)}),o=o.setIn([r,"schema"],n.get("schema"))}})),e.set("authorized",o)},[c.AUTHORIZE_OAUTH2]:(e,t)=>{let r,{payload:n}=t,{auth:s,token:a}=n;s.token=o()({},a),r=(0,l.fromJS)(s);let i=e.get("authorized")||(0,l.Map)();return i=i.set(r.get("name"),r),e.set("authorized",i)},[c.LOGOUT]:(e,t)=>{let{payload:r}=t,n=e.get("authorized").withMutations((e=>{s()(r).call(r,(t=>{e.delete(t)}))}));return e.set("authorized",n)},[c.CONFIGURE_AUTH]:(e,t)=>{let{payload:r}=t;return e.set("configs",r)},[c.RESTORE_AUTHORIZATION]:(e,t)=>{let{payload:r}=t;return e.set("authorized",(0,l.fromJS)(r.authorized))}}},35:(e,t,r)=>{"use strict";r.r(t),r.d(t,{shownDefinitions:()=>E,definitionsToAuthorize:()=>v,getDefinitionsByNames:()=>S,definitionsForRequirements:()=>C,authorized:()=>b,isAuthorized:()=>x,getConfigs:()=>w});var n=r(4235),s=r.n(n),a=r(9998),o=r.n(a),l=r(5626),i=r.n(l),c=r(8493),u=r.n(c),p=r(3942),d=r.n(p),m=r(7252),h=r.n(m),g=r(6814),f=r(5572);const y=e=>e,E=(0,g.createSelector)(y,(e=>e.get("showDefinitions"))),v=(0,g.createSelector)(y,(()=>e=>{var t;let{specSelectors:r}=e,n=r.securityDefinitions()||(0,f.Map)({}),a=(0,f.List)();return s()(t=n.entrySeq()).call(t,(e=>{let[t,r]=e,n=(0,f.Map)();n=n.set(t,r),a=a.push(n)})),a})),S=(e,t)=>e=>{var r;let{specSelectors:n}=e;console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let a=n.securityDefinitions(),o=(0,f.List)();return s()(r=t.valueSeq()).call(r,(e=>{var t;let r=(0,f.Map)();s()(t=e.entrySeq()).call(t,(e=>{let t,[n,o]=e,l=a.get(n);var i;"oauth2"===l.get("type")&&o.size&&(t=l.get("scopes"),s()(i=t.keySeq()).call(i,(e=>{o.contains(e)||(t=t.delete(e))})),l=l.set("allowedScopes",t));r=r.set(n,l)})),o=o.push(r)})),o},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,f.List)();return e=>{let{authSelectors:r}=e;const n=r.definitionsToAuthorize()||(0,f.List)();return o()(n).call(n,(e=>i()(t).call(t,(t=>t.get(e.keySeq().first())))))}},b=(0,g.createSelector)(y,(e=>e.get("authorized")||(0,f.Map)())),x=(e,t)=>e=>{var r;let{authSelectors:n}=e,s=n.authorized();return f.List.isList(t)?!!o()(r=t.toJS()).call(r,(e=>{var t,r;return-1===u()(t=d()(r=h()(e)).call(r,(e=>!!s.get(e)))).call(t,!1)})).length:null},w=(0,g.createSelector)(y,(e=>e.get("configs")))},8302:(e,t,r)=>{"use strict";r.r(t),r.d(t,{execute:()=>n});const n=(e,t)=>{let{authSelectors:r,specSelectors:n}=t;return t=>{let{path:s,method:a,operation:o,extras:l}=t,i={authorized:r.authorized()&&r.authorized().toJS(),definitions:n.securityDefinitions()&&n.securityDefinitions().toJS(),specSecurity:n.security()&&n.security().toJS()};return e({path:s,method:a,operation:o,securities:i,...l})}}},714:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UPDATE_CONFIGS:()=>n,TOGGLE_CONFIGS:()=>s,update:()=>a,toggle:()=>o,loaded:()=>l});const n="configs_update",s="configs_toggle";function a(e,t){return{type:n,payload:{[e]:t}}}function o(e){return{type:s,payload:e}}const l=()=>e=>{let{getConfigs:t,authActions:r}=e;if(t().persistAuthorization){const e=localStorage.getItem("authorized");e&&r.restoreAuthorization({authorized:JSON.parse(e)})}}},2256:(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseYamlConfig:()=>a});var n=r(9793),s=r.n(n);const a=(e,t)=>{try{return s().load(e)}catch(e){return t&&t.errActions.newThrownErr(new Error(e)),{}}}},1661:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(5163),s=r(2256),a=r(714),o=r(2698),l=r(9018),i=r(7743);const c={getLocalConfig:()=>(0,s.parseYamlConfig)(n)};function u(){return{statePlugins:{spec:{actions:o,selectors:c},configs:{reducers:i.default,actions:a,selectors:l}}}}},7743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(5572),s=r(714);const a={[s.UPDATE_CONFIGS]:(e,t)=>e.merge((0,n.fromJS)(t.payload)),[s.TOGGLE_CONFIGS]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}}},9018:(e,t,r)=>{"use strict";r.r(t),r.d(t,{get:()=>a});var n=r(7104),s=r.n(n);const a=(e,t)=>e.getIn(s()(t)?t:[t])},2698:(e,t,r)=>{"use strict";r.r(t),r.d(t,{downloadConfig:()=>s,getConfigByUrl:()=>a});var n=r(2256);const s=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},a=(e,t)=>r=>{let{specActions:s}=r;if(e)return s.downloadConfig(e).then(a,a);function a(r){r instanceof Error||r.status>=400?(s.updateLoadingStatus("failedConfig"),s.updateLoadingStatus("failedConfig"),s.updateUrl(""),console.error(r.statusText+" "+e.url),t(null)):t((0,n.parseYamlConfig)(r.text))}}},1970:(e,t,r)=>{"use strict";r.r(t),r.d(t,{setHash:()=>n});const n=e=>e?history.pushState(null,null,`#${e}`):window.location.hash=""},4980:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2179),s=r(877),a=r(4584);function o(){return[n.default,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>function(){e(...arguments);const r=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(r)}}}},wrapComponents:{operation:s.default,OperationTag:a.default}}]}},2179:(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearScrollTo:()=>w,default:()=>_,parseDeepLinkHash:()=>C,readyToScroll:()=>b,scrollTo:()=>S,scrollToElement:()=>x,show:()=>v});var n=r(7104),s=r.n(n),a=r(600),o=r.n(a),l=r(3942),i=r.n(l),c=r(8493),u=r.n(c),p=r(1970);const d=require("zenscroll");var m=r.n(d),h=r(1890),g=r(5572),f=r.n(g);const y="layout_scroll_to",E="layout_clear_scroll",v=(e,t)=>{let{getConfigs:r,layoutSelectors:n}=t;return function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];if(e(...a),r().deepLinking)try{let[e,t]=a;e=s()(e)?e:[e];const r=n.urlHashArrayFromIsShownKey(e);if(!r.length)return;const[o,l]=r;if(!t)return(0,p.setHash)("/");2===r.length?(0,p.setHash)((0,h.oJ)(`/${encodeURIComponent(o)}/${encodeURIComponent(l)}`)):1===r.length&&(0,p.setHash)((0,h.oJ)(`/${encodeURIComponent(o)}`))}catch(e){console.error(e)}}},S=e=>({type:y,payload:s()(e)?e:[e]}),C=e=>t=>{let{layoutActions:r,layoutSelectors:n,getConfigs:s}=t;if(s().deepLinking&&e){var a;let t=o()(e).call(e,1);"!"===t[0]&&(t=o()(t).call(t,1)),"/"===t[0]&&(t=o()(t).call(t,1));const s=i()(a=t.split("/")).call(a,(e=>e||"")),l=n.isShownKeyFromUrlHashArray(s),[c,p="",d=""]=l;if("operations"===c){const e=n.isShownKeyFromUrlHashArray([p]);u()(p).call(p,"_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),r.show(i()(e).call(e,(e=>e.replace(/_/g," "))),!0)),r.show(e,!0)}(u()(p).call(p,"_")>-1||u()(d).call(d,"_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),r.show(i()(l).call(l,(e=>e.replace(/_/g," "))),!0)),r.show(l,!0),r.scrollTo(l)}},b=(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();f().is(n,(0,g.fromJS)(e))&&(r.layoutActions.scrollToElement(t),r.layoutActions.clearScrollTo())},x=(e,t)=>r=>{try{t=t||r.fn.getScrollParent(e),m().createScroller(t).to(e)}catch(e){console.error(e)}},w=()=>({type:E});const _={fn:{getScrollParent:function(e,t){const r=document.documentElement;let n=getComputedStyle(e);const s="absolute"===n.position,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return r;for(let t=e;t=t.parentElement;)if(n=getComputedStyle(t),(!s||"static"!==n.position)&&a.test(n.overflow+n.overflowY+n.overflowX))return t;return r}},statePlugins:{layout:{actions:{scrollToElement:x,scrollTo:S,clearScrollTo:w,readyToScroll:b,parseDeepLinkHash:C},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[r,n]=t;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(e,t){let[r,n,s]=t;return"operations"==r?[n,s]:"operations-tag"==r?[n]:[]}},reducers:{[y]:(e,t)=>e.set("scrollToKey",f().fromJS(t.payload)),[E]:e=>e.delete("scrollToKey")},wrapActions:{show:v}}}}},4584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(1093),s=r.n(n),a=r(6689),o=r.n(a);r(580);const l=(e,t)=>class extends o().Component{constructor(){super(...arguments),s()(this,"onLoad",(e=>{const{tag:r}=this.props,n=["operations-tag",r];t.layoutActions.readyToScroll(n,e)}))}render(){return o().createElement("span",{ref:this.onLoad},o().createElement(e,this.props))}}},877:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(1093),s=r.n(n),a=r(6689),o=r.n(a);r(8082);const l=(e,t)=>class extends o().Component{constructor(){super(...arguments),s()(this,"onLoad",(e=>{const{operation:r}=this.props,{tag:n,operationId:s}=r.toObject();let{isShownKey:a}=r.toObject();a=a||["operations",n,s],t.layoutActions.readyToScroll(a,e)}))}render(){return o().createElement("span",{ref:this.onLoad},o().createElement(e,this.props))}}},8011:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(4994),s=r.n(n),a=r(9478),o=r.n(a),l=r(8493),i=r.n(l),c=r(8344),u=r.n(c),p=r(6814),d=r(5572),m=r(7504);function h(e){let{fn:t}=e;return{statePlugins:{spec:{actions:{download:e=>r=>{let{errActions:n,specSelectors:a,specActions:l,getConfigs:i}=r,{fetch:c}=t;const u=i();function p(t){if(t instanceof Error||t.status>=400)return l.updateLoadingStatus("failed"),n.newThrownErr(s()(new Error((t.message||t.statusText)+" "+e),{source:"fetch"})),void(!t.status&&t instanceof Error&&function(){try{let t;if("URL"in m.Z?t=new(o())(e):(t=document.createElement("a"),t.href=e),"https:"!==t.protocol&&"https:"===m.Z.location.protocol){const e=s()(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void n.newThrownErr(e)}if(t.origin!==m.Z.location.origin){const e=s()(new Error(`Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${m.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});n.newThrownErr(e)}}catch(e){return}}());l.updateLoadingStatus("success"),l.updateSpec(t.text),a.url()!==e&&l.updateUrl(e)}e=e||a.url(),l.updateLoadingStatus("loading"),n.clear({source:"fetch"}),c({url:e,loadSpec:!0,requestInterceptor:u.requestInterceptor||(e=>e),responseInterceptor:u.responseInterceptor||(e=>e),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(p,p)},updateLoadingStatus:e=>{let t=[null,"loading","failed","success","failedConfig"];return-1===i()(t).call(t,e)&&console.error(`Error: ${e} is not one of ${u()(t)}`),{type:"spec_update_loading_status",payload:e}}},reducers:{spec_update_loading_status:(e,t)=>"string"==typeof t.payload?e.set("loadingStatus",t.payload):e},selectors:{loadingStatus:(0,p.createSelector)((e=>e||(0,d.Map)()),(e=>e.get("loadingStatus")||null))}}}}}},4966:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NEW_THROWN_ERR:()=>s,NEW_THROWN_ERR_BATCH:()=>a,NEW_SPEC_ERR:()=>o,NEW_SPEC_ERR_BATCH:()=>l,NEW_AUTH_ERR:()=>i,CLEAR:()=>c,CLEAR_BY:()=>u,newThrownErr:()=>p,newThrownErrBatch:()=>d,newSpecErr:()=>m,newSpecErrBatch:()=>h,newAuthErr:()=>g,clear:()=>f,clearBy:()=>y});var n=r(41);const s="err_new_thrown_err",a="err_new_thrown_err_batch",o="err_new_spec_err",l="err_new_spec_err_batch",i="err_new_auth_err",c="err_clear",u="err_clear_by";function p(e){return{type:s,payload:(0,n.serializeError)(e)}}function d(e){return{type:a,payload:e}}function m(e){return{type:o,payload:e}}function h(e){return{type:l,payload:e}}function g(e){return{type:i,payload:e}}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:c,payload:e}}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0;return{type:u,payload:e}}},2860:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(9998),s=r.n(n),a=r(3942),o=r.n(a);const l=require("lodash/reduce");var i=r.n(l);const c=[r(2392),r(1835)];function u(e){var t;let r={jsSpec:{}},n=i()(c,((e,t)=>{try{let n=t.transform(e,r);return s()(n).call(n,(e=>!!e))}catch(t){return console.error("Transformer error:",t),e}}),e);return o()(t=s()(n).call(n,(e=>!!e))).call(t,(e=>(!e.get("line")&&e.get("path"),e)))}},2392:(e,t,r)=>{"use strict";r.r(t),r.d(t,{transform:()=>p});var n=r(3942),s=r.n(n),a=r(8493),o=r.n(a),l=r(600),i=r.n(l),c=r(66),u=r.n(c);function p(e){return s()(e).call(e,(e=>{var t;let r="is not of a type(s)",n=o()(t=e.get("message")).call(t,r);if(n>-1){var s,a;let t=i()(s=e.get("message")).call(s,n+r.length).split(",");return e.set("message",i()(a=e.get("message")).call(a,0,n)+function(e){return u()(e).call(e,((e,t,r,n)=>r===n.length-1&&n.length>1?e+"or "+t:n[r+1]&&n.length>2?e+t+", ":n[r+1]?e+t+" ":e+t),"should be a")}(t))}return e}))}},1835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{transform:()=>n});r(3942),r(8493),r(1712),r(5572);function n(e,t){let{jsSpec:r}=t;return e}},7793:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(3527),s=r(4966),a=r(7667);function o(e){return{statePlugins:{err:{reducers:(0,n.default)(e),actions:s,selectors:a}}}}},3527:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(4994),s=r.n(n),a=r(3942),o=r.n(a),l=r(4883),i=r.n(l),c=r(9998),u=r.n(c),p=r(7834),d=r.n(p),m=r(4966),h=r(5572),g=r(2860);let f={line:0,level:"error",message:"Unknown error"};function y(){return{[m.NEW_THROWN_ERR]:(e,t)=>{let{payload:r}=t,n=s()(f,r,{type:"thrown"});return e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(n)))).update("errors",(e=>(0,g.default)(e)))},[m.NEW_THROWN_ERR_BATCH]:(e,t)=>{let{payload:r}=t;return r=o()(r).call(r,(e=>(0,h.fromJS)(s()(f,e,{type:"thrown"})))),e.update("errors",(e=>{var t;return i()(t=e||(0,h.List)()).call(t,(0,h.fromJS)(r))})).update("errors",(e=>(0,g.default)(e)))},[m.NEW_SPEC_ERR]:(e,t)=>{let{payload:r}=t,n=(0,h.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(n)).sortBy((e=>e.get("line"))))).update("errors",(e=>(0,g.default)(e)))},[m.NEW_SPEC_ERR_BATCH]:(e,t)=>{let{payload:r}=t;return r=o()(r).call(r,(e=>(0,h.fromJS)(s()(f,e,{type:"spec"})))),e.update("errors",(e=>{var t;return i()(t=e||(0,h.List)()).call(t,(0,h.fromJS)(r))})).update("errors",(e=>(0,g.default)(e)))},[m.NEW_AUTH_ERR]:(e,t)=>{let{payload:r}=t,n=(0,h.fromJS)(s()({},r));return n=n.set("type","auth"),e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(n)))).update("errors",(e=>(0,g.default)(e)))},[m.CLEAR]:(e,t)=>{var r;let{payload:n}=t;if(!n||!e.get("errors"))return e;let s=u()(r=e.get("errors")).call(r,(e=>{var t;return d()(t=e.keySeq()).call(t,(t=>{const r=e.get(t),s=n[t];return!s||r!==s}))}));return e.merge({errors:s})},[m.CLEAR_BY]:(e,t)=>{var r;let{payload:n}=t;if(!n||"function"!=typeof n)return e;let s=u()(r=e.get("errors")).call(r,(e=>n(e)));return e.merge({errors:s})}}}},7667:(e,t,r)=>{"use strict";r.r(t),r.d(t,{allErrors:()=>a,lastError:()=>o});var n=r(5572),s=r(6814);const a=(0,s.createSelector)((e=>e),(e=>e.get("errors",(0,n.List)()))),o=(0,s.createSelector)(a,(e=>e.last()))},9978:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(4309);function s(){return{fn:{opsFilter:n.default}}}},4309:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(9998),s=r.n(n),a=r(8493),o=r.n(a);function l(e,t){return s()(e).call(e,((e,r)=>-1!==o()(r).call(r,t)))}},5474:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UPDATE_LAYOUT:()=>s,UPDATE_FILTER:()=>a,UPDATE_MODE:()=>o,SHOW:()=>l,updateLayout:()=>i,updateFilter:()=>c,show:()=>u,changeMode:()=>p});var n=r(1890);const s="layout_update_layout",a="layout_update_filter",o="layout_update_mode",l="layout_show";function i(e){return{type:s,payload:e}}function c(e){return{type:a,payload:e}}function u(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=(0,n.AF)(e),{type:l,payload:{thing:e,shown:t}}}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=(0,n.AF)(e),{type:o,payload:{thing:e,mode:t}}}},6821:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(5672),s=r(5474),a=r(4400),o=r(8989);function l(){return{statePlugins:{layout:{reducers:n.default,actions:s,selectors:a},spec:{wrapSelectors:o}}}}},5672:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(4883),s=r.n(n),a=r(5572),o=r(5474);const l={[o.UPDATE_LAYOUT]:(e,t)=>e.set("layout",t.payload),[o.UPDATE_FILTER]:(e,t)=>e.set("filter",t.payload),[o.SHOW]:(e,t)=>{const r=t.payload.shown,n=(0,a.fromJS)(t.payload.thing);return e.update("shown",(0,a.fromJS)({}),(e=>e.set(n,r)))},[o.UPDATE_MODE]:(e,t)=>{var r;let n=t.payload.thing,a=t.payload.mode;return e.setIn(s()(r=["modes"]).call(r,n),(a||"")+"")}}},4400:(e,t,r)=>{"use strict";r.r(t),r.d(t,{current:()=>o,currentFilter:()=>l,isShown:()=>i,whatMode:()=>c,showSummary:()=>u});var n=r(6814),s=r(1890),a=r(5572);const o=e=>e.get("layout"),l=e=>e.get("filter"),i=(e,t,r)=>(t=(0,s.AF)(t),e.get("shown",(0,a.fromJS)({})).get((0,a.fromJS)(t),r)),c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t=(0,s.AF)(t),e.getIn(["modes",...t],r)},u=(0,n.createSelector)((e=>e),(e=>!i(e,"editor")))},8989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{taggedOperations:()=>a});var n=r(600),s=r.n(n);const a=(e,t)=>function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];let l=e(r,...a);const{fn:i,layoutSelectors:c,getConfigs:u}=t.getSystem(),p=u(),{maxDisplayedTags:d}=p;let m=c.currentFilter();return m&&!0!==m&&"true"!==m&&"false"!==m&&(l=i.opsFilter(l,m)),d&&!isNaN(d)&&d>=0&&(l=s()(l).call(l,0,d)),l}},9150:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(593),s=r.n(n);function a(e){let{configs:t}=e;const r={debug:0,info:1,log:2,warn:3,error:4},n=e=>r[e]||-1;let{logLevel:a}=t,o=n(a);function l(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];n(e)>=o&&console[e](...r)}return l.warn=s()(l).call(l,null,"warn"),l.error=s()(l).call(l,null,"error"),l.info=s()(l).call(l,null,"info"),l.debug=s()(l).call(l,null,"debug"),{rootInjects:{log:l}}}},7002:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UPDATE_SELECTED_SERVER:()=>n,UPDATE_REQUEST_BODY_VALUE:()=>s,UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:()=>a,UPDATE_REQUEST_BODY_INCLUSION:()=>o,UPDATE_ACTIVE_EXAMPLES_MEMBER:()=>l,UPDATE_REQUEST_CONTENT_TYPE:()=>i,UPDATE_RESPONSE_CONTENT_TYPE:()=>c,UPDATE_SERVER_VARIABLE_VALUE:()=>u,SET_REQUEST_BODY_VALIDATE_ERROR:()=>p,CLEAR_REQUEST_BODY_VALIDATE_ERROR:()=>d,CLEAR_REQUEST_BODY_VALUE:()=>m,setSelectedServer:()=>h,setRequestBodyValue:()=>g,setRetainRequestBodyValueFlag:()=>f,setRequestBodyInclusion:()=>y,setActiveExamplesMember:()=>E,setRequestContentType:()=>v,setResponseContentType:()=>S,setServerVariableValue:()=>C,setRequestBodyValidateError:()=>b,clearRequestBodyValidateError:()=>x,initRequestBodyValidateError:()=>w,clearRequestBodyValue:()=>_});const n="oas3_set_servers",s="oas3_set_request_body_value",a="oas3_set_request_body_retain_flag",o="oas3_set_request_body_inclusion",l="oas3_set_active_examples_member",i="oas3_set_request_content_type",c="oas3_set_response_content_type",u="oas3_set_server_variable_value",p="oas3_set_request_body_validate_error",d="oas3_clear_request_body_validate_error",m="oas3_clear_request_body_value";function h(e,t){return{type:n,payload:{selectedServerUrl:e,namespace:t}}}function g(e){let{value:t,pathMethod:r}=e;return{type:s,payload:{value:t,pathMethod:r}}}const f=e=>{let{value:t,pathMethod:r}=e;return{type:a,payload:{value:t,pathMethod:r}}};function y(e){let{value:t,pathMethod:r,name:n}=e;return{type:o,payload:{value:t,pathMethod:r,name:n}}}function E(e){let{name:t,pathMethod:r,contextType:n,contextName:s}=e;return{type:l,payload:{name:t,pathMethod:r,contextType:n,contextName:s}}}function v(e){let{value:t,pathMethod:r}=e;return{type:i,payload:{value:t,pathMethod:r}}}function S(e){let{value:t,path:r,method:n}=e;return{type:c,payload:{value:t,path:r,method:n}}}function C(e){let{server:t,namespace:r,key:n,val:s}=e;return{type:u,payload:{server:t,namespace:r,key:n,val:s}}}const b=e=>{let{path:t,method:r,validationErrors:n}=e;return{type:p,payload:{path:t,method:r,validationErrors:n}}},x=e=>{let{path:t,method:r}=e;return{type:d,payload:{path:t,method:r}}},w=e=>{let{pathMethod:t}=e;return{type:d,payload:{path:t[0],method:t[1]}}},_=e=>{let{pathMethod:t}=e;return{type:m,payload:{pathMethod:t}}}},3723:(e,t,r)=>{"use strict";r.r(t),r.d(t,{definitionsToAuthorize:()=>d});var n=r(4235),s=r.n(n),a=r(9998),o=r.n(a),l=r(66),i=r.n(l),c=r(6814),u=r(5572),p=r(7779);const d=(m=(0,c.createSelector)((e=>e),(e=>{let{specSelectors:t}=e;return t.securityDefinitions()}),((e,t)=>{var r;let n=(0,u.List)();return t?(s()(r=t.entrySeq()).call(r,(e=>{let[t,r]=e;const a=r.get("type");var l;if("oauth2"===a&&s()(l=r.get("flows").entrySeq()).call(l,(e=>{let[s,a]=e,l=(0,u.fromJS)({flow:s,authorizationUrl:a.get("authorizationUrl"),tokenUrl:a.get("tokenUrl"),scopes:a.get("scopes"),type:r.get("type"),description:r.get("description")});n=n.push(new u.Map({[t]:o()(l).call(l,(e=>void 0!==e))}))})),"http"!==a&&"apiKey"!==a||(n=n.push(new u.Map({[t]:r}))),"openIdConnect"===a&&r.get("openIdConnectData")){let e=r.get("openIdConnectData"),a=e.get("grant_types_supported")||["authorization_code","implicit"];s()(a).call(a,(s=>{var a;let l=e.get("scopes_supported")&&i()(a=e.get("scopes_supported")).call(a,((e,t)=>e.set(t,"")),new u.Map),c=(0,u.fromJS)({flow:s,authorizationUrl:e.get("authorization_endpoint"),tokenUrl:e.get("token_endpoint"),scopes:l,type:"oauth2",openIdConnectUrl:r.get("openIdConnectUrl")});n=n.push(new u.Map({[t]:o()(c).call(c,(e=>void 0!==e))}))}))}})),n):n})),(e,t)=>function(){const r=t.getSystem().specSelectors.specJson();for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];if((0,p.isOAS3)(r)){let e=t.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return m(t,e,...s)}return e(...s)});var m},3427:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(4250),s=r.n(n),a=r(3942),o=r.n(a),l=r(6689),i=r.n(l),c=(r(580),r(8082),r(5572));const u=e=>{var t;let{callbacks:r,getComponent:n,specPath:a}=e;const l=n("OperationContainer",!0);if(!r)return i().createElement("span",null,"No callbacks");let u=o()(t=r.entrySeq()).call(t,(t=>{var r;let[n,u]=t;return i().createElement("div",{key:n},i().createElement("h2",null,n),o()(r=u.entrySeq()).call(r,(t=>{var r;let[u,p]=t;return"$$ref"===u?null:i().createElement("div",{key:u},o()(r=p.entrySeq()).call(r,(t=>{let[r,o]=t;if("$$ref"===r)return null;let p=(0,c.fromJS)({operation:o});return i().createElement(l,s()({},e,{op:p,key:r,tag:"",method:r,path:u,specPath:a.push(n,u,r),allowTryItOut:!1}))})))})))}));return i().createElement("div",null,u)}},6775:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(1093),s=r.n(n),a=r(4994),o=r.n(a),l=r(9998),i=r.n(l),c=r(3942),u=r.n(c),p=r(6689),d=r.n(p);r(580);class m extends d().Component{constructor(e,t){super(e,t),s()(this,"onChange",(e=>{let{onChange:t}=this.props,{value:r,name:n}=e.target,s=o()({},this.state.value);n?s[n]=r:s=r,this.setState({value:s},(()=>t(this.state)))}));let{name:r,schema:n}=this.props,a=this.getValue();this.state={name:r,schema:n,value:a}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}render(){var e;let{schema:t,getComponent:r,errSelectors:n,name:s}=this.props;const a=r("Input"),o=r("Row"),l=r("Col"),c=r("authError"),p=r("Markdown",!0),m=r("JumpToPath",!0),h=(t.get("scheme")||"").toLowerCase();let g=this.getValue(),f=i()(e=n.allErrors()).call(e,(e=>e.get("authId")===s));if("basic"===h){var y;let e=g?g.get("username"):null;return d().createElement("div",null,d().createElement("h4",null,d().createElement("code",null,s||t.get("name"))," (http, Basic)",d().createElement(m,{path:["securityDefinitions",s]})),e&&d().createElement("h6",null,"Authorized"),d().createElement(o,null,d().createElement(p,{source:t.get("description")})),d().createElement(o,null,d().createElement("label",null,"Username:"),e?d().createElement("code",null," ",e," "):d().createElement(l,null,d().createElement(a,{type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),d().createElement(o,null,d().createElement("label",null,"Password:"),e?d().createElement("code",null," ****** "):d().createElement(l,null,d().createElement(a,{autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),u()(y=f.valueSeq()).call(y,((e,t)=>d().createElement(c,{error:e,key:t}))))}var E;return"bearer"===h?d().createElement("div",null,d().createElement("h4",null,d().createElement("code",null,s||t.get("name"))," (http, Bearer)",d().createElement(m,{path:["securityDefinitions",s]})),g&&d().createElement("h6",null,"Authorized"),d().createElement(o,null,d().createElement(p,{source:t.get("description")})),d().createElement(o,null,d().createElement("label",null,"Value:"),g?d().createElement("code",null," ****** "):d().createElement(l,null,d().createElement(a,{type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),u()(E=f.valueSeq()).call(E,((e,t)=>d().createElement(c,{error:e,key:t})))):d().createElement("div",null,d().createElement("em",null,d().createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${h}'`))}}},6467:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(3427),s=r(2458),a=r(5757),o=r(6617),l=r(9928),i=r(5327),c=r(6775),u=r(6796);const p={Callbacks:n.default,HttpAuth:c.default,RequestBody:s.default,Servers:o.default,ServersContainer:l.default,RequestBodyEditor:i.default,OperationServers:u.default,operationLink:a.default}},5757:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(8344),s=r.n(n),a=r(3942),o=r.n(a),l=r(6689),i=r.n(l);r(580),r(8082);class c extends l.Component{render(){const{link:e,name:t,getComponent:r}=this.props,n=r("Markdown",!0);let a=e.get("operationId")||e.get("operationRef"),l=e.get("parameters")&&e.get("parameters").toJS(),c=e.get("description");return i().createElement("div",{className:"operation-link"},i().createElement("div",{className:"description"},i().createElement("b",null,i().createElement("code",null,t)),c?i().createElement(n,{source:c}):null),i().createElement("pre",null,"Operation `",a,"`",i().createElement("br",null),i().createElement("br",null),"Parameters ",function(e,t){var r;if("string"!=typeof t)return"";return o()(r=t.split("\n")).call(r,((t,r)=>r>0?Array(e+1).join(" ")+t:t)).join("\n")}(0,s()(l,null,2))||"{}",i().createElement("br",null)))}}const u=c},6796:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(1093),s=r.n(n),a=r(6689),o=r.n(a);r(580),r(8082);class l extends o().Component{constructor(){super(...arguments),s()(this,"setSelectedServer",(e=>{const{path:t,method:r}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${t}:${r}`)})),s()(this,"setServerVariableValue",(e=>{const{path:t,method:r}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${t}:${r}`})})),s()(this,"getSelectedServer",(()=>{const{path:e,method:t}=this.props;return this.props.getSelectedServer(`${e}:${t}`)})),s()(this,"getServerVariable",((e,t)=>{const{path:r,method:n}=this.props;return this.props.getServerVariable({namespace:`${r}:${n}`,server:e},t)})),s()(this,"getEffectiveServerValue",(e=>{const{path:t,method:r}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${t}:${r}`})}))}render(){const{operationServers:e,pathServers:t,getComponent:r}=this.props;if(!e&&!t)return null;const n=r("Servers"),s=e||t,a=e?"operation":"path";return o().createElement("div",{className:"opblock-section operation-servers"},o().createElement("div",{className:"opblock-section-header"},o().createElement("div",{className:"tab-header"},o().createElement("h4",{className:"opblock-title"},"Servers"))),o().createElement("div",{className:"opblock-description-wrapper"},o().createElement("h4",{className:"message"},"These ",a,"-level options override the global server options."),o().createElement(n,{servers:s,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}},5327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(1093),s=r.n(n),a=r(6689),o=r.n(a),l=(r(580),r(9003)),i=r.n(l),c=r(1890);const u=Function.prototype;class p extends a.PureComponent{constructor(e,t){super(e,t),s()(this,"applyDefaultValue",(e=>{const{onChange:t,defaultValue:r}=e||this.props;return this.setState({value:r}),t(r)})),s()(this,"onChange",(e=>{this.props.onChange((0,c.Pz)(e))})),s()(this,"onDomChange",(e=>{const t=e.target.value;this.setState({value:t},(()=>this.onChange(t)))})),this.state={value:(0,c.Pz)(e.value)||e.defaultValue},e.onChange(e.value)}UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:(0,c.Pz)(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:t}=this.props,{value:r}=this.state,n=t.size>0;const s=e("TextArea");return o().createElement("div",{className:"body-param"},o().createElement(s,{className:i()("body-param__text",{invalid:n}),title:t.size?t.join(", "):"",value:r,onChange:this.onDomChange}))}}s()(p,"defaultProps",{onChange:u,userHasEditedBody:!1})},2458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultRequestBodyValue:()=>f,default:()=>y});var n=r(3942),s=r.n(n),a=r(8493),o=r.n(a),l=r(2605),i=r.n(l),c=r(7104),u=r.n(c),p=r(6689),d=r.n(p),m=(r(580),r(8082),r(5572)),h=r(1890),g=r(2518);const f=(e,t,r)=>{const n=e.getIn(["content",t]),s=n.get("schema").toJS(),a=void 0!==n.get("examples"),o=n.get("example"),l=a?n.getIn(["examples",r,"value"]):o,i=(0,h.xi)(s,t,{includeWriteOnly:!0},l);return(0,h.Pz)(i)},y=e=>{let{userHasEditedBody:t,requestBody:r,requestBodyValue:n,requestBodyInclusionSetting:a,requestBodyErrors:l,getComponent:c,getConfigs:p,specSelectors:y,fn:E,contentType:v,isExecute:S,specPath:C,onChange:b,onChangeIncludeEmpty:x,activeExamplesKey:w,updateActiveExamplesKey:_,setRetainRequestBodyValueFlag:A}=e;const I=e=>{b(e.target.files[0])},N=e=>{let t={key:e,shouldDispatchInit:!1,defaultValue:!0};return"no value"===a.get(e,"no value")&&(t.shouldDispatchInit=!0),t},q=c("Markdown",!0),T=c("modelExample"),R=c("RequestBodyEditor"),P=c("highlightCode"),k=c("ExamplesSelectValueRetainer"),O=c("Example"),M=c("ParameterIncludeEmpty"),{showCommonExtensions:j}=p(),V=r&&r.get("description")||null,D=r&&r.get("content")||new m.OrderedMap;v=v||D.keySeq().first()||"";const L=D.get(v,(0,m.OrderedMap)()),U=L.get("schema",(0,m.OrderedMap)()),z=L.get("examples",null),B=null==z?void 0:s()(z).call(z,((e,t)=>{var n;const s=null===(n=e)||void 0===n?void 0:n.get("value",null);return s&&(e=e.set("value",f(r,v,t),s)),e}));if(l=m.List.isList(l)?l:(0,m.List)(),!L.size)return null;const $="object"===L.getIn(["schema","type"]),J="binary"===L.getIn(["schema","format"]),F="base64"===L.getIn(["schema","format"]);if("application/octet-stream"===v||0===o()(v).call(v,"image/")||0===o()(v).call(v,"audio/")||0===o()(v).call(v,"video/")||J||F){const e=c("Input");return S?d().createElement(e,{type:"file",onChange:I}):d().createElement("i",null,"Example values are not available for ",d().createElement("code",null,v)," media types.")}if($&&("application/x-www-form-urlencoded"===v||0===o()(v).call(v,"multipart/"))&&U.get("properties",(0,m.OrderedMap)()).size>0){var W;const e=c("JsonSchemaForm"),t=c("ParameterExt"),r=U.get("properties",(0,m.OrderedMap)());return n=m.Map.isMap(n)?n:(0,m.OrderedMap)(),d().createElement("div",{className:"table-container"},V&&d().createElement(q,{source:V}),d().createElement("table",null,d().createElement("tbody",null,m.Map.isMap(r)&&s()(W=r.entrySeq()).call(W,(r=>{var o,p;let[g,f]=r;if(f.get("readOnly"))return;let y=j?(0,h.po)(f):null;const v=i()(o=U.get("required",(0,m.List)())).call(o,g),C=f.get("type"),w=f.get("format"),_=f.get("description"),A=n.getIn([g,"value"]),I=n.getIn([g,"errors"])||l,T=a.get(g)||!1,R=f.has("default")||f.has("example")||f.hasIn(["items","example"])||f.hasIn(["items","default"]),P=f.has("enum")&&(1===f.get("enum").size||v),k=R||P;let O="";"array"!==C||k||(O=[]),("object"===C||k)&&(O=(0,h.xi)(f,!1,{includeWriteOnly:!0})),"string"!=typeof O&&"object"===C&&(O=(0,h.Pz)(O)),"string"==typeof O&&"array"===C&&(O=JSON.parse(O));const V="string"===C&&("binary"===w||"base64"===w);return d().createElement("tr",{key:g,className:"parameters","data-property-name":g},d().createElement("td",{className:"parameters-col_name"},d().createElement("div",{className:v?"parameter__name required":"parameter__name"},g,v?d().createElement("span",null," *"):null),d().createElement("div",{className:"parameter__type"},C,w&&d().createElement("span",{className:"prop-format"},"($",w,")"),j&&y.size?s()(p=y.entrySeq()).call(p,(e=>{let[r,n]=e;return d().createElement(t,{key:`${r}-${n}`,xKey:r,xVal:n})})):null),d().createElement("div",{className:"parameter__deprecated"},f.get("deprecated")?"deprecated":null)),d().createElement("td",{className:"parameters-col_description"},d().createElement(q,{source:_}),S?d().createElement("div",null,d().createElement(e,{fn:E,dispatchInitialValue:!V,schema:f,description:g,getComponent:c,value:void 0===A?O:A,required:v,errors:I,onChange:e=>{b(e,[g])}}),v?null:d().createElement(M,{onChange:e=>x(g,e),isIncluded:T,isIncludedOptions:N(g),isDisabled:u()(A)?0!==A.length:!(0,h.O2)(A)})):null))})))))}const H=f(r,v,w);let K=null;return(0,g.O)(H)&&(K="json"),d().createElement("div",null,V&&d().createElement(q,{source:V}),B?d().createElement(k,{userHasEditedBody:t,examples:B,currentKey:w,currentUserInputValue:n,onSelect:e=>{_(e)},updateValue:b,defaultToFirstExample:!0,getComponent:c,setRetainRequestBodyValueFlag:A}):null,S?d().createElement("div",null,d().createElement(R,{value:n,errors:l,defaultValue:H,onChange:b,getComponent:c})):d().createElement(T,{getComponent:c,getConfigs:p,specSelectors:y,expandDepth:1,isExecute:S,schema:L.get("schema"),specPath:C.push("content",v),example:d().createElement(P,{className:"body-param__example",getConfigs:p,language:K,value:(0,h.Pz)(n)||H}),includeWriteOnly:!0}),B?d().createElement(O,{example:B.get(w),getComponent:c,getConfigs:p}):null)}},9928:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(6689),s=r.n(n);r(580);class a extends s().Component{render(){const{specSelectors:e,oas3Selectors:t,oas3Actions:r,getComponent:n}=this.props,a=e.servers(),o=n("Servers");return a&&a.size?s().createElement("div",null,s().createElement("span",{className:"servers-title"},"Servers"),s().createElement(o,{servers:a,currentServer:t.selectedServer(),setSelectedServer:r.setSelectedServer,setServerVariableValue:r.setServerVariableValue,getServerVariable:t.serverVariableValue,getEffectiveServerValue:t.serverEffectiveValue})):null}}},6617:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1093),s=r.n(n),a=r(3580),o=r.n(a),l=r(3942),i=r.n(l),c=r(6689),u=r.n(c),p=r(5572);r(580),r(8082);class d extends u().Component{constructor(){super(...arguments),s()(this,"onServerChange",(e=>{this.setServer(e.target.value)})),s()(this,"onServerVariableValueChange",(e=>{let{setServerVariableValue:t,currentServer:r}=this.props,n=e.target.getAttribute("data-variable"),s=e.target.value;"function"==typeof t&&t({server:r,key:n,val:s})})),s()(this,"setServer",(e=>{let{setSelectedServer:t}=this.props;t(e)}))}componentDidMount(){var e;let{servers:t,currentServer:r}=this.props;r||this.setServer(null===(e=t.first())||void 0===e?void 0:e.get("url"))}UNSAFE_componentWillReceiveProps(e){let{servers:t,setServerVariableValue:r,getServerVariable:n}=e;if(this.props.currentServer!==e.currentServer||this.props.servers!==e.servers){var s;let a=o()(t).call(t,(t=>t.get("url")===e.currentServer)),l=o()(s=this.props.servers).call(s,(e=>e.get("url")===this.props.currentServer))||(0,p.OrderedMap)();if(!a)return this.setServer(t.first().get("url"));let c=l.get("variables")||(0,p.OrderedMap)(),u=(o()(c).call(c,(e=>e.get("default")))||(0,p.OrderedMap)()).get("default"),d=a.get("variables")||(0,p.OrderedMap)(),m=(o()(d).call(d,(e=>e.get("default")))||(0,p.OrderedMap)()).get("default");i()(d).call(d,((t,s)=>{n(e.currentServer,s)&&u===m||r({server:e.currentServer,key:s,val:t.get("default")||""})}))}}render(){var e,t;let{servers:r,currentServer:n,getServerVariable:s,getEffectiveServerValue:a}=this.props,l=(o()(r).call(r,(e=>e.get("url")===n))||(0,p.OrderedMap)()).get("variables")||(0,p.OrderedMap)(),c=0!==l.size;return u().createElement("div",{className:"servers"},u().createElement("label",{htmlFor:"servers"},u().createElement("select",{onChange:this.onServerChange,value:n},i()(e=r.valueSeq()).call(e,(e=>u().createElement("option",{value:e.get("url"),key:e.get("url")},e.get("url"),e.get("description")&&` - ${e.get("description")}`))).toArray())),c?u().createElement("div",null,u().createElement("div",{className:"computed-url"},"Computed URL:",u().createElement("code",null,a(n))),u().createElement("h4",null,"Server variables"),u().createElement("table",null,u().createElement("tbody",null,i()(t=l.entrySeq()).call(t,(e=>{var t;let[r,a]=e;return u().createElement("tr",{key:r},u().createElement("td",null,r),u().createElement("td",null,a.get("enum")?u().createElement("select",{"data-variable":r,onChange:this.onServerVariableValueChange},i()(t=a.get("enum")).call(t,(e=>u().createElement("option",{selected:e===s(n,r),key:e,value:e},e)))):u().createElement("input",{type:"text",value:s(n,r)||"",onChange:this.onServerVariableValueChange,"data-variable":r})))}))))):null)}}},7779:(e,t,r)=>{"use strict";r.r(t),r.d(t,{isOAS3:()=>c,isSwagger2:()=>u,OAS3ComponentWrapFactory:()=>p});var n=r(4250),s=r.n(n),a=r(3262),o=r.n(a),l=r(6689),i=r.n(l);function c(e){const t=e.get("openapi");return"string"==typeof t&&(o()(t).call(t,"3.0.")&&t.length>4)}function u(e){const t=e.get("swagger");return"string"==typeof t&&o()(t).call(t,"2.0")}function p(e){return(t,r)=>n=>{if(r&&r.specSelectors&&r.specSelectors.specJson){return c(r.specSelectors.specJson())?i().createElement(e,s()({},n,r,{Ori:t})):i().createElement(t,n)}return console.warn("OAS3 wrapper: couldn't get spec"),null}}},7451:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(2044),s=r(3723),a=r(1741),o=r(6467),l=r(7761),i=r(7002),c=r(5065),u=r(2109);function p(){return{components:o.default,wrapComponents:l.default,statePlugins:{spec:{wrapSelectors:n,selectors:a},auth:{wrapSelectors:s},oas3:{actions:i,reducers:u.default,selectors:c}}}}},2109:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(874),s=r.n(n),a=r(4235),o=r.n(a),l=r(66),i=r.n(l),c=r(5572),u=r(7002);const p={[u.UPDATE_SELECTED_SERVER]:(e,t)=>{let{payload:{selectedServerUrl:r,namespace:n}}=t;const s=n?[n,"selectedServer"]:["selectedServer"];return e.setIn(s,r)},[u.UPDATE_REQUEST_BODY_VALUE]:(e,t)=>{let{payload:{value:r,pathMethod:n}}=t,[a,l]=n;if(!c.Map.isMap(r))return e.setIn(["requestData",a,l,"bodyValue"],r);let i,u=e.getIn(["requestData",a,l,"bodyValue"])||(0,c.Map)();c.Map.isMap(u)||(u=(0,c.Map)());const[...p]=s()(r).call(r);return o()(p).call(p,(e=>{let t=r.getIn([e]);u.has(e)&&c.Map.isMap(t)||(i=u.setIn([e,"value"],t))})),e.setIn(["requestData",a,l,"bodyValue"],i)},[u.UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG]:(e,t)=>{let{payload:{value:r,pathMethod:n}}=t,[s,a]=n;return e.setIn(["requestData",s,a,"retainBodyValue"],r)},[u.UPDATE_REQUEST_BODY_INCLUSION]:(e,t)=>{let{payload:{value:r,pathMethod:n,name:s}}=t,[a,o]=n;return e.setIn(["requestData",a,o,"bodyInclusion",s],r)},[u.UPDATE_ACTIVE_EXAMPLES_MEMBER]:(e,t)=>{let{payload:{name:r,pathMethod:n,contextType:s,contextName:a}}=t,[o,l]=n;return e.setIn(["examples",o,l,s,a,"activeExample"],r)},[u.UPDATE_REQUEST_CONTENT_TYPE]:(e,t)=>{let{payload:{value:r,pathMethod:n}}=t,[s,a]=n;return e.setIn(["requestData",s,a,"requestContentType"],r)},[u.UPDATE_RESPONSE_CONTENT_TYPE]:(e,t)=>{let{payload:{value:r,path:n,method:s}}=t;return e.setIn(["requestData",n,s,"responseContentType"],r)},[u.UPDATE_SERVER_VARIABLE_VALUE]:(e,t)=>{let{payload:{server:r,namespace:n,key:s,val:a}}=t;const o=n?[n,"serverVariableValues",r,s]:["serverVariableValues",r,s];return e.setIn(o,a)},[u.SET_REQUEST_BODY_VALIDATE_ERROR]:(e,t)=>{let{payload:{path:r,method:n,validationErrors:s}}=t,a=[];if(a.push("Required field is not provided"),s.missingBodyValue)return e.setIn(["requestData",r,n,"errors"],(0,c.fromJS)(a));if(s.missingRequiredKeys&&s.missingRequiredKeys.length>0){const{missingRequiredKeys:t}=s;return e.updateIn(["requestData",r,n,"bodyValue"],(0,c.fromJS)({}),(e=>i()(t).call(t,((e,t)=>e.setIn([t,"errors"],(0,c.fromJS)(a))),e)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[u.CLEAR_REQUEST_BODY_VALIDATE_ERROR]:(e,t)=>{let{payload:{path:r,method:n}}=t;const a=e.getIn(["requestData",r,n,"bodyValue"]);if(!c.Map.isMap(a))return e.setIn(["requestData",r,n,"errors"],(0,c.fromJS)([]));const[...o]=s()(a).call(a);return o?e.updateIn(["requestData",r,n,"bodyValue"],(0,c.fromJS)({}),(e=>i()(o).call(o,((e,t)=>e.setIn([t,"errors"],(0,c.fromJS)([]))),e))):e},[u.CLEAR_REQUEST_BODY_VALUE]:(e,t)=>{let{payload:{pathMethod:r}}=t,[n,s]=r;const a=e.getIn(["requestData",n,s,"bodyValue"]);return a?c.Map.isMap(a)?e.setIn(["requestData",n,s,"bodyValue"],(0,c.Map)()):e.setIn(["requestData",n,s,"bodyValue"],""):e}}},5065:(e,t,r)=>{"use strict";r.r(t),r.d(t,{selectedServer:()=>f,requestBodyValue:()=>y,shouldRetainRequestBodyValue:()=>E,hasUserEditedBody:()=>v,requestBodyInclusionSetting:()=>S,requestBodyErrors:()=>C,activeExamplesMember:()=>b,requestContentType:()=>x,responseContentType:()=>w,serverVariableValue:()=>_,serverVariables:()=>A,serverEffectiveValue:()=>I,validateBeforeExecute:()=>N,validateShallowRequired:()=>T});var n=r(3942),s=r.n(n),a=r(4235),o=r.n(a),l=r(7252),i=r.n(l),c=r(8493),u=r.n(c),p=r(5572),d=r(7779),m=r(2458),h=r(1890);function g(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return t=>{const n=t.getSystem().specSelectors.specJson();return(0,d.isOAS3)(n)?e(...r):null}}}const f=g(((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""})),y=g(((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null)),E=g(((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1)),v=(e,t,r)=>e=>{const{oas3Selectors:n,specSelectors:s}=e.getSystem(),a=s.specJson();if((0,d.isOAS3)(a)){let e=!1;const a=n.requestContentType(t,r);let o=n.requestBodyValue(t,r);if(p.Map.isMap(o)&&(o=(0,h.Pz)(o.mapEntries((e=>p.Map.isMap(e[1])?[e[0],e[1].get("value")]:e)).toJS())),p.List.isList(o)&&(o=(0,h.Pz)(o)),a){const l=(0,m.getDefaultRequestBodyValue)(s.specResolvedSubtree(["paths",t,r,"requestBody"]),a,n.activeExamplesMember(t,r,"requestBody","requestBody"));e=!!o&&o!==l}return e}return null},S=g(((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,p.Map)())),C=g(((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null)),b=g(((e,t,r,n,s)=>e.getIn(["examples",t,r,n,s,"activeExample"])||null)),x=g(((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null)),w=g(((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null)),_=g(((e,t,r)=>{let n;if("string"!=typeof t){const{server:e,namespace:s}=t;n=s?[s,"serverVariableValues",e,r]:["serverVariableValues",e,r]}else{n=["serverVariableValues",t,r]}return e.getIn(n)||null})),A=g(((e,t)=>{let r;if("string"!=typeof t){const{server:e,namespace:n}=t;r=n?[n,"serverVariableValues",e]:["serverVariableValues",e]}else{r=["serverVariableValues",t]}return e.getIn(r)||(0,p.OrderedMap)()})),I=g(((e,t)=>{var r,n;if("string"!=typeof t){const{server:s,namespace:a}=t;n=s,r=a?e.getIn([a,"serverVariableValues",n]):e.getIn(["serverVariableValues",n])}else n=t,r=e.getIn(["serverVariableValues",n]);r=r||(0,p.OrderedMap)();let a=n;return s()(r).call(r,((e,t)=>{a=a.replace(new RegExp(`{${t}}`,"g"),e)})),a})),N=(q=(e,t)=>((e,t)=>(t=t||[],!!e.getIn(["requestData",...t,"bodyValue"])))(e,t),function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{const r=e.getSystem().specSelectors.specJson();let n=[...t][1]||[];return!r.getIn(["paths",...n,"requestBody","required"])||q(...t)}});var q;const T=(e,t)=>{var r;let{oas3RequiredRequestBodyContentType:n,oas3RequestContentType:s,oas3RequestBodyValue:a}=t,l=[];if(!p.Map.isMap(a))return l;let c=[];return o()(r=i()(n.requestContentType)).call(r,(e=>{if(e===s){let t=n.requestContentType[e];o()(t).call(t,(e=>{u()(c).call(c,e)<0&&c.push(e)}))}})),o()(c).call(c,(e=>{a.getIn([e,"value"])||l.push(e)})),l}},1741:(e,t,r)=>{"use strict";r.r(t),r.d(t,{servers:()=>c,isSwagger2:()=>p});var n=r(6814),s=r(5572),a=r(7779);const o=e=>e||(0,s.Map)(),l=(0,n.createSelector)(o,(e=>e.get("json",(0,s.Map)()))),i=(0,n.createSelector)(o,(e=>e.get("resolved",(0,s.Map)()))),c=(u=(0,n.createSelector)((e=>{let t=i(e);return t.count()<1&&(t=l(e)),t}),(e=>e.getIn(["servers"])||(0,s.Map)())),()=>function(e){const t=e.getSystem().specSelectors.specJson();if((0,a.isOAS3)(t)){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return u(...n)}return null});var u;const p=(e,t)=>()=>{const e=t.getSystem().specSelectors.specJson();return(0,a.isSwagger2)(e)}},2044:(e,t,r)=>{"use strict";r.r(t),r.d(t,{definitions:()=>m,hasHost:()=>h,securityDefinitions:()=>g,host:()=>f,basePath:()=>y,consumes:()=>E,produces:()=>v,schemes:()=>S,servers:()=>C,isOAS3:()=>b,isSwagger2:()=>x});var n=r(6814),s=r(3881),a=r(5572),o=r(7779);function l(e){return(t,r)=>function(){const n=r.getSystem().specSelectors.specJson();return(0,o.isOAS3)(n)?e(...arguments):t(...arguments)}}const i=e=>e||(0,a.Map)(),c=l((0,n.createSelector)((()=>null))),u=(0,n.createSelector)(i,(e=>e.get("json",(0,a.Map)()))),p=(0,n.createSelector)(i,(e=>e.get("resolved",(0,a.Map)()))),d=e=>{let t=p(e);return t.count()<1&&(t=u(e)),t},m=l((0,n.createSelector)(d,(e=>{const t=e.getIn(["components","schemas"]);return a.Map.isMap(t)?t:(0,a.Map)()}))),h=l((e=>d(e).hasIn(["servers",0]))),g=l((0,n.createSelector)(s.specJsonWithResolvedSubtrees,(e=>e.getIn(["components","securitySchemes"])||null))),f=c,y=c,E=c,v=c,S=c,C=l((0,n.createSelector)(d,(e=>e.getIn(["servers"])||(0,a.Map)()))),b=(e,t)=>()=>{const e=t.getSystem().specSelectors.specJson();return(0,o.isOAS3)(a.Map.isMap(e)?e:(0,a.Map)())},x=(e,t)=>()=>{const e=t.getSystem().specSelectors.specJson();return(0,o.isSwagger2)(a.Map.isMap(e)?e:(0,a.Map)())}},356:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(6689),s=r.n(n);const a=(0,r(7779).OAS3ComponentWrapFactory)((e=>{let{Ori:t,...r}=e;const{schema:n,getComponent:a,errSelectors:o,authorized:l,onAuthChange:i,name:c}=r,u=a("HttpAuth");return"http"===n.get("type")?s().createElement(u,{key:c,schema:n,name:c,errSelectors:o,authorized:l,getComponent:a,onChange:i}):s().createElement(t,r)}))},7761:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2460),s=r(356),a=r(9487),o=r(58),l=r(3499),i=r(287);const c={Markdown:n.default,AuthItem:s.default,JsonSchema_string:i.default,VersionStamp:a.default,model:l.default,onlineValidatorBadge:o.default}},287:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(6689),s=r.n(n);const a=(0,r(7779).OAS3ComponentWrapFactory)((e=>{let{Ori:t,...r}=e;const{schema:n,getComponent:a,errors:o,onChange:l}=r,i=n&&n.get?n.get("format"):null,c=n&&n.get?n.get("type"):null,u=a("Input");return c&&"string"===c&&i&&("binary"===i||"base64"===i)?s().createElement(u,{type:"file",className:o.length?"invalid":"",title:o.length?o:"",onChange:e=>{l(e.target.files[0])},disabled:t.isDisabled}):s().createElement(t,r)}))},2460:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Markdown:()=>m,default:()=>h});var n=r(7390),s=r.n(n),a=r(6689),o=r.n(a),l=(r(580),r(9003)),i=r.n(l),c=r(963),u=r(7779),p=r(2552);const d=new c.Remarkable("commonmark");d.block.ruler.enable(["table"]),d.set({linkTarget:"_blank"});const m=e=>{let{source:t,className:r="",getConfigs:n}=e;if("string"!=typeof t)return null;if(t){const{useUnsafeMarkdown:e}=n(),a=d.render(t),l=(0,p.s)(a,{useUnsafeMarkdown:e});let c;return"string"==typeof l&&(c=s()(l).call(l)),o().createElement("div",{dangerouslySetInnerHTML:{__html:c},className:i()(r,"renderedMarkdown")})}return null};m.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const h=(0,u.OAS3ComponentWrapFactory)(m)},3499:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(4250),s=r.n(n),a=r(6689),o=r.n(a),l=(r(580),r(7779)),i=r(6024);class c extends a.Component{render(){let{getConfigs:e,schema:t}=this.props,r=["model-box"],n=null;return!0===t.get("deprecated")&&(r.push("deprecated"),n=o().createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),o().createElement("div",{className:r.join(" ")},n,o().createElement(i.Z,s()({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}const u=(0,l.OAS3ComponentWrapFactory)(c)},58:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(7779),s=r(5623);const a=(0,n.OAS3ComponentWrapFactory)(s.Z)},9487:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(6689),s=r.n(n);const a=(0,r(7779).OAS3ComponentWrapFactory)((e=>{const{Ori:t}=e;return s().createElement("span",null,s().createElement(t,e),s().createElement("small",{className:"version-stamp"},s().createElement("pre",{className:"version"},"OAS3")))}))},8560:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(9300),s=r.n(n);let a=!1;function o(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>function(){return a=!0,e(...arguments)},updateJsonSpec:(e,t)=>function(){const r=t.getConfigs().onComplete;return a&&"function"==typeof r&&(s()(r,0),a=!1),e(...arguments)}}}}}}},8223:(e,t,r)=>{"use strict";r.r(t),r.d(t,{requestSnippetGenerator_curl_bash:()=>A,requestSnippetGenerator_curl_cmd:()=>I,requestSnippetGenerator_curl_powershell:()=>_});var n=r(8493),s=r.n(n),a=r(7390),o=r.n(a),l=r(8344),i=r.n(l),c=r(3942),u=r.n(c);const p=require("@babel/runtime-corejs3/core-js-stable/instance/repeat");var d=r.n(p),m=r(7862),h=r.n(m),g=r(2605),f=r.n(g),y=r(7504),E=r(5572);const v=e=>{var t;const r="_**[]";return s()(e).call(e,r)<0?e:o()(t=e.split(r)[0]).call(t)},S=e=>"-d "===e||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",C=e=>"-d "===(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,"^\n"))?e.replace(/-d /g,"-d ^\n"):/^[_\/-]/g.test(e)?e:'"'+e+'"',b=e=>"-d "===e?e:/\n/.test(e)?'@"\n'+e.replace(/"/g,'\\"').replace(/`/g,"``").replace(/\$/,"`$")+'\n"@':/^[_\/-]/g.test(e)?e:"'"+e.replace(/"/g,'""').replace(/'/g,"''")+"'";function x(e){let t=[];for(let[r,n]of e.get("body").entrySeq()){let e=v(r);n instanceof y.Z.File?t.push(` "${e}": {\n "name": "${n.name}"${n.type?`,\n "type": "${n.type}"`:""}\n }`):t.push(` "${e}": ${i()(n,null,2).replace(/(\r\n|\r|\n)/g,"\n ")}`)}return`{\n${t.join(",\n")}\n}`}const w=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=!1,a="";const o=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return a+=" "+u()(r).call(r,t).join(" ")},l=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return a+=u()(r).call(r,t).join(" ")},c=()=>a+=` ${r}`,p=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return a+=d()(e=" ").call(e,t)};let m=e.get("headers");if(a+="curl"+n,e.has("curlOptions")&&o(...e.get("curlOptions")),o("-X",e.get("method")),c(),p(),l(`${e.get("url")}`),m&&m.size)for(let t of h()(g=e.get("headers")).call(g)){var g;c(),p();let[e,r]=t;l("-H",`${e}: ${r}`),s=s||/^content-type$/i.test(e)&&/^multipart\/form-data$/i.test(r)}const S=e.get("body");var C;if(S)if(s&&f()(C=["POST","PUT","PATCH"]).call(C,e.get("method")))for(let[e,t]of S.entrySeq()){let r=v(e);c(),p(),l("-F"),t instanceof y.Z.File?o(`${r}=@${t.name}${t.type?`;type=${t.type}`:""}`):o(`${r}=${t}`)}else if(S instanceof y.Z.File)c(),p(),l(`--data-binary '@${S.name}'`);else{c(),p(),l("-d ");let t=S;E.Map.isMap(t)?l(x(e)):("string"!=typeof t&&(t=i()(t)),l(t))}else S||"POST"!==e.get("method")||(c(),p(),l("-d ''"));return a},_=e=>w(e,b,"`\n",".exe"),A=e=>w(e,S,"\\\n"),I=e=>w(e,C,"^\n")},6575:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(8223),s=r(4669),a=r(4206);const o=()=>({components:{RequestSnippets:a.default},fn:n,statePlugins:{requestSnippets:{selectors:s}}})},4206:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var n=r(9998),s=r.n(n),a=r(1733),o=r.n(a),l=r(4235),i=r.n(l),c=r(3942),u=r.n(c),p=r(6689),d=r.n(p),m=(r(580),r(1712)),h=r.n(m),g=r(5716),f=r.n(g),y=r(2807),E=r(6068);const v={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},S={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"},C=e=>{var t,r;let{request:n,requestSnippetsSelectors:a,getConfigs:l}=e;const c=f()(l)?l():null,m=!1!==h()(c,"syntaxHighlight")&&h()(c,"syntaxHighlight.activated",!0),g=(0,p.useRef)(null),[C,b]=(0,p.useState)(null===(t=a.getSnippetGenerators())||void 0===t?void 0:t.keySeq().first()),[x,w]=(0,p.useState)(null==a?void 0:a.getDefaultExpanded());(0,p.useEffect)((()=>{}),[]),(0,p.useEffect)((()=>{var e;const t=s()(e=o()(g.current.childNodes)).call(e,(e=>{var t;return!!e.nodeType&&(null===(t=e.classList)||void 0===t?void 0:t.contains("curl-command"))}));return i()(t).call(t,(e=>e.addEventListener("mousewheel",T,{passive:!1}))),()=>{i()(t).call(t,(e=>e.removeEventListener("mousewheel",T)))}}),[n]);const _=a.getSnippetGenerators(),A=_.get(C),I=A.get("fn")(n),N=()=>{w(!x)},q=e=>e===C?S:v,T=e=>{const{target:t,deltaY:r}=e,{scrollHeight:n,offsetHeight:s,scrollTop:a}=t;n>s&&(0===a&&r<0||s+a>=n&&r>0)&&e.preventDefault()},R=m?d().createElement(E.d3,{language:A.get("syntax"),className:"curl microlight",style:(0,E.C2)(h()(c,"syntaxHighlight.theme"))},I):d().createElement("textarea",{readOnly:!0,className:"curl",value:I});return d().createElement("div",{className:"request-snippets",ref:g},d().createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},d().createElement("h4",{onClick:()=>N(),style:{cursor:"pointer"}},"Snippets"),d().createElement("button",{onClick:()=>N(),style:{border:"none",background:"none"},title:x?"Collapse operation":"Expand operation"},d().createElement("svg",{className:"arrow",width:"10",height:"10"},d().createElement("use",{href:x?"#large-arrow-down":"#large-arrow",xlinkHref:x?"#large-arrow-down":"#large-arrow"})))),x&&d().createElement("div",{className:"curl-command"},d().createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},u()(r=_.entrySeq()).call(r,(e=>{let[t,r]=e;return d().createElement("div",{style:q(t),className:"btn",key:t,onClick:()=>(e=>{C!==e&&b(e)})(t)},d().createElement("h4",{style:t===C?{color:"white"}:{}},r.get("title")))}))),d().createElement("div",{className:"copy-to-clipboard"},d().createElement(y.CopyToClipboard,{text:I},d().createElement("button",null))),d().createElement("div",null,R)))}},4669:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGenerators:()=>d,getSnippetGenerators:()=>m,getActiveLanguage:()=>h,getDefaultExpanded:()=>g});var n=r(9998),s=r.n(n),a=r(2605),o=r.n(a),l=r(3942),i=r.n(l),c=r(6814),u=r(5572);const p=e=>e||(0,u.Map)(),d=(0,c.createSelector)(p,(e=>{const t=e.get("languages"),r=e.get("generators",(0,u.Map)());return!t||t.isEmpty()?r:s()(r).call(r,((e,r)=>o()(t).call(t,r)))})),m=e=>t=>{var r,n;let{fn:a}=t;return s()(r=i()(n=d(e)).call(n,((e,t)=>{const r=(e=>a[`requestSnippetGenerator_${e}`])(t);return"function"!=typeof r?null:e.set("fn",r)}))).call(r,(e=>e))},h=(0,c.createSelector)(p,(e=>e.get("activeLanguage"))),g=(0,c.createSelector)(p,(e=>e.get("defaultExpanded")))},6195:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorBoundary:()=>l,default:()=>i});r(580);var n=r(6689),s=r.n(n),a=r(6189),o=r(9403);class l extends n.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(){super(...arguments),this.state={hasError:!1,error:null}}componentDidCatch(e,t){this.props.fn.componentDidCatch(e,t)}render(){const{getComponent:e,targetName:t,children:r}=this.props;if(this.state.hasError){const r=e("Fallback");return s().createElement(r,{name:t})}return r}}l.defaultProps={targetName:"this component",getComponent:()=>o.default,fn:{componentDidCatch:a.componentDidCatch},children:null};const i=l},9403:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(6689),s=r.n(n);r(580);const a=e=>{let{name:t}=e;return s().createElement("div",{className:"fallback"},"😱 ",s().createElement("i",null,"Could not render ","t"===t?"this component":t,", see the console."))}},6189:(e,t,r)=>{"use strict";r.r(t),r.d(t,{componentDidCatch:()=>l,withErrorBoundary:()=>i});var n=r(4250),s=r.n(n),a=r(6689),o=r.n(a);const l=console.error,i=e=>t=>{const{getComponent:r,fn:n}=e(),l=r("ErrorBoundary"),i=n.getDisplayName(t);class c extends a.Component{render(){return o().createElement(l,{targetName:i,getComponent:r,fn:n},o().createElement(t,s()({},this.props,this.context)))}}var u;return c.displayName=`WithErrorBoundary(${i})`,(u=t).prototype&&u.prototype.isReactComponent&&(c.prototype.mapStateToProps=t.prototype.mapStateToProps),c}},9595:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});const n=require("@babel/runtime-corejs3/core-js-stable/instance/fill");var s=r.n(n);const a=require("lodash/zipObject");var o=r.n(a),l=r(6195),i=r(9403),c=r(6189);const u=function(){let{componentList:e=[],fullOverride:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{var n;let{getSystem:a}=r;const u=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],p=o()(u,s()(n=Array(u.length)).call(n,((e,t)=>{let{fn:r}=t;return r.withErrorBoundary(e)})));return{fn:{componentDidCatch:c.componentDidCatch,withErrorBoundary:(0,c.withErrorBoundary)(a)},components:{ErrorBoundary:l.default,Fallback:i.default},wrapComponents:p}}}},4128:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createXMLExample:()=>z,inferSchema:()=>U,memoizedCreateXMLExample:()=>J,memoizedSampleFromSchema:()=>F,sampleFromSchema:()=>B,sampleFromSchemaGeneric:()=>L});var n=r(8493),s=r.n(n),a=r(4235),o=r.n(a),l=r(7104),i=r.n(l),c=r(2605),u=r.n(c),p=r(5626),d=r.n(p),m=r(600),h=r.n(m),g=r(3580),f=r.n(g),y=r(4883),E=r.n(y),v=r(3942),S=r.n(v),C=r(8344),b=r.n(C);const x=require("xml");var w=r.n(x);const _=require("randexp");var A=r.n(_);const I=require("lodash/isEmpty");var N=r.n(I),q=r(1890),T=r(7481);const R={string:e=>e.pattern?(e=>{try{return new(A())(e).gen()}catch(e){return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>(new Date).toISOString(),string_date:()=>(new Date).toISOString().substring(0,10),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>"boolean"!=typeof e.default||e.default},P=e=>{e=(0,q.mz)(e);let{type:t,format:r}=e,n=R[`${t}_${r}`]||R[t];return(0,q.Wl)(n)?n(e):"Unknown Type: "+e.type},k=e=>(0,q.XV)(e,"$$ref",(e=>"string"==typeof e&&s()(e).call(e,"#")>-1)),O=["maxProperties","minProperties"],M=["minItems","maxItems"],j=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],V=["minLength","maxLength"],D=function(e,t){var r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=r=>{void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])};var l;(o()(r=["example","default","enum","xml","type",...O,...M,...j,...V]).call(r,(e=>a(e))),void 0!==e.required&&i()(e.required))&&(void 0!==t.required&&t.required.length||(t.required=[]),o()(l=e.required).call(l,(e=>{var r;u()(r=t.required).call(r,e)||t.required.push(e)})));if(e.properties){t.properties||(t.properties={});let r=(0,q.mz)(e.properties);for(let a in r){var c;if(Object.prototype.hasOwnProperty.call(r,a))if(!r[a]||!r[a].deprecated)if(!r[a]||!r[a].readOnly||n.includeReadOnly)if(!r[a]||!r[a].writeOnly||n.includeWriteOnly)if(!t.properties[a])t.properties[a]=r[a],!e.required&&i()(e.required)&&-1!==s()(c=e.required).call(c,a)&&(t.required?t.required.push(a):t.required=[a])}}return e.items&&(t.items||(t.items={}),t.items=D(e.items,t.items,n)),t},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&(0,q.Wl)(e.toJS)&&(e=e.toJS());let a=void 0!==r||e&&void 0!==e.example||e&&void 0!==e.default;const l=!a&&e&&e.oneOf&&e.oneOf.length>0,c=!a&&e&&e.anyOf&&e.anyOf.length>0;if(!a&&(l||c)){const r=(0,q.mz)(l?e.oneOf[0]:e.anyOf[0]);if(D(r,e,t),!e.xml&&r.xml&&(e.xml=r.xml),void 0!==e.example&&void 0!==r.example)a=!0;else if(r.properties){e.properties||(e.properties={});let n=(0,q.mz)(r.properties);for(let a in n){var p;if(Object.prototype.hasOwnProperty.call(n,a))if(!n[a]||!n[a].deprecated)if(!n[a]||!n[a].readOnly||t.includeReadOnly)if(!n[a]||!n[a].writeOnly||t.includeWriteOnly)if(!e.properties[a])e.properties[a]=n[a],!r.required&&i()(r.required)&&-1!==s()(p=r.required).call(p,a)&&(e.required?e.required.push(a):e.required=[a])}}}const m={};let{xml:g,type:y,example:v,properties:C,additionalProperties:b,items:x}=e||{},{includeReadOnly:w,includeWriteOnly:_}=t;g=g||{};let A,{name:I,prefix:T,namespace:R}=g,V={};if(n&&(I=I||"notagname",A=(T?T+":":"")+I,R)){m[T?"xmlns:"+T:"xmlns"]=R}n&&(V[A]=[]);const U=t=>d()(t).call(t,(t=>Object.prototype.hasOwnProperty.call(e,t)));e&&!y&&(C||b||U(O)?y="object":x||U(M)?y="array":U(j)?(y="number",e.type="number"):a||e.enum||(y="string",e.type="string"));const z=t=>{var r,n,s,a,o;null!==(null===(r=e)||void 0===r?void 0:r.maxItems)&&void 0!==(null===(n=e)||void 0===n?void 0:n.maxItems)&&(t=h()(t).call(t,0,null===(o=e)||void 0===o?void 0:o.maxItems));if(null!==(null===(s=e)||void 0===s?void 0:s.minItems)&&void 0!==(null===(a=e)||void 0===a?void 0:a.minItems)){let r=0;for(;t.length<(null===(l=e)||void 0===l?void 0:l.minItems);){var l;t.push(t[r++%t.length])}}return t},B=(0,q.mz)(C);let $,J=0;const F=()=>e&&null!==e.maxProperties&&void 0!==e.maxProperties&&J>=e.maxProperties,W=()=>{if(!e||!e.required)return 0;let t=0;var r,s;n?o()(r=e.required).call(r,(e=>t+=void 0===V[e]?0:1)):o()(s=e.required).call(s,(e=>{var r;return t+=void 0===(null===(r=V[A])||void 0===r?void 0:f()(r).call(r,(t=>void 0!==t[e])))?0:1}));return e.required.length-t},H=t=>{var r;return!(e&&e.required&&e.required.length)||!u()(r=e.required).call(r,t)},K=t=>!e||null===e.maxProperties||void 0===e.maxProperties||!F()&&(!H(t)||e.maxProperties-J-W()>0);if($=n?function(r){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&B[r]){if(B[r].xml=B[r].xml||{},B[r].xml.attribute){const e=i()(B[r].enum)?B[r].enum[0]:void 0,t=B[r].example,n=B[r].default;return void(m[B[r].xml.name||r]=void 0!==t?t:void 0!==n?n:void 0!==e?e:P(B[r]))}B[r].xml.name=B[r].xml.name||r}else B[r]||!1===b||(B[r]={xml:{name:r}});let a=L(e&&B[r]||void 0,t,s,n);var o;K(r)&&(J++,i()(a)?V[A]=E()(o=V[A]).call(o,a):V[A].push(a))}:(e,r)=>{K(e)&&(V[e]=L(B[e],t,r,n),J++)},a){let s;if(s=k(void 0!==r?r:void 0!==v?v:e.default),!n){if("number"==typeof s&&"string"===y)return`${s}`;if("string"!=typeof s||"string"===y)return s;try{return JSON.parse(s)}catch(e){return s}}if(e||(y=i()(s)?"array":typeof s),"array"===y){if(!i()(s)){if("string"==typeof s)return s;s=[s]}const r=e?e.items:void 0;r&&(r.xml=r.xml||g||{},r.xml.name=r.xml.name||g.name);let a=S()(s).call(s,(e=>L(r,t,e,n)));return a=z(a),g.wrapped?(V[A]=a,N()(m)||V[A].push({_attr:m})):V=a,V}if("object"===y){if("string"==typeof s)return s;for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e&&B[t]&&B[t].readOnly&&!w||e&&B[t]&&B[t].writeOnly&&!_||(e&&B[t]&&B[t].xml&&B[t].xml.attribute?m[B[t].xml.name||t]=s[t]:$(t,s[t])));return N()(m)||V[A].push({_attr:m}),V}return V[A]=N()(m)?s:[{_attr:m},s],V}if("object"===y){for(let e in B)Object.prototype.hasOwnProperty.call(B,e)&&(B[e]&&B[e].deprecated||B[e]&&B[e].readOnly&&!w||B[e]&&B[e].writeOnly&&!_||$(e));if(n&&m&&V[A].push({_attr:m}),F())return V;if(!0===b)n?V[A].push({additionalProp:"Anything can be here"}):V.additionalProp1={},J++;else if(b){const r=(0,q.mz)(b),s=L(r,t,void 0,n);if(n&&r.xml&&r.xml.name&&"notagname"!==r.xml.name)V[A].push(s);else{const t=null!==e.minProperties&&void 0!==e.minProperties&&J<e.minProperties?e.minProperties-J:3;for(let e=1;e<=t;e++){if(F())return V;if(n){const t={};t["additionalProp"+e]=s.notagname,V[A].push(t)}else V["additionalProp"+e]=s;J++}}}return V}if("array"===y){if(!x)return;let r;var Z,G;if(n)x.xml=x.xml||(null===(Z=e)||void 0===Z?void 0:Z.xml)||{},x.xml.name=x.xml.name||g.name;if(i()(x.anyOf))r=S()(G=x.anyOf).call(G,(e=>L(D(x,e,t),t,void 0,n)));else if(i()(x.oneOf)){var Y;r=S()(Y=x.oneOf).call(Y,(e=>L(D(x,e,t),t,void 0,n)))}else{if(!(!n||n&&g.wrapped))return L(x,t,void 0,n);r=[L(x,t,void 0,n)]}return r=z(r),n&&g.wrapped?(V[A]=r,N()(m)||V[A].push({_attr:m}),V):r}let X;if(e&&i()(e.enum))X=(0,q.AF)(e.enum)[0];else{if(!e)return;if(X=P(e),"number"==typeof X){let t=e.minimum;null!=t&&(e.exclusiveMinimum&&t++,X=t);let r=e.maximum;null!=r&&(e.exclusiveMaximum&&r--,X=r)}if("string"==typeof X&&(null!==e.maxLength&&void 0!==e.maxLength&&(X=h()(X).call(X,0,e.maxLength)),null!==e.minLength&&void 0!==e.minLength)){let t=0;for(;X.length<e.minLength;)X+=X[t++%X.length]}}if("file"!==y)return n?(V[A]=N()(m)?X:[{_attr:m},X],V):X},U=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),z=(e,t,r)=>{const n=L(e,t,r,!0);if(n)return"string"==typeof n?n:w()(n,{declaration:!0,indent:"\t"})},B=(e,t,r)=>L(e,t,r,!1),$=(e,t,r)=>[e,b()(t),b()(r)],J=(0,T.Z)(z,$),F=(0,T.Z)(B,$)},8883:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(4128);function s(){return{fn:n}}},9381:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLEAR_REQUEST:()=>Q,CLEAR_RESPONSE:()=>X,CLEAR_VALIDATE_PARAMS:()=>ee,LOG_REQUEST:()=>Y,SET_MUTATED_REQUEST:()=>G,SET_REQUEST:()=>Z,SET_RESPONSE:()=>K,SET_SCHEME:()=>se,UPDATE_EMPTY_PARAM_INCLUSION:()=>W,UPDATE_JSON:()=>J,UPDATE_OPERATION_META_VALUE:()=>te,UPDATE_PARAM:()=>F,UPDATE_RESOLVED:()=>re,UPDATE_RESOLVED_SUBTREE:()=>ne,UPDATE_SPEC:()=>B,UPDATE_URL:()=>$,VALIDATE_PARAMS:()=>H,changeConsumesValue:()=>be,changeParam:()=>ge,changeParamByIdentity:()=>fe,changeProducesValue:()=>xe,clearRequest:()=>Re,clearResponse:()=>Te,clearValidateParams:()=>Ce,execute:()=>qe,executeRequest:()=>Ne,invalidateResolvedSubtreeCache:()=>Ee,logRequest:()=>Ie,parseToJson:()=>ce,requestResolvedSubtree:()=>he,resolveSpec:()=>pe,setMutatedRequest:()=>Ae,setRequest:()=>_e,setResponse:()=>we,setScheme:()=>Pe,updateEmptyParamInclusion:()=>Se,updateJsonSpec:()=>ie,updateResolved:()=>oe,updateResolvedSubtree:()=>ye,updateSpec:()=>ae,updateUrl:()=>le,validateParams:()=>ve});var n=r(7104),s=r.n(n),a=r(3942),o=r.n(a);const l=require("@babel/runtime-corejs3/core-js-stable/object/define-property");var i=r.n(l),c=r(66),u=r.n(c),p=r(7834),d=r.n(p);const m=require("@babel/runtime-corejs3/core-js-stable/promise");var h=r.n(m),g=r(9998),f=r.n(g),y=r(9968),E=r.n(y),v=r(8493),S=r.n(v),C=r(4235),b=r.n(C),x=r(7252),w=r.n(x),_=r(4994),A=r.n(_);const I=require("@babel/runtime-corejs3/core-js-stable/date/now");var N=r.n(I),q=r(9793),T=r.n(q),R=r(5572),P=r(3883),k=r.n(P),O=r(41);const M=require("lodash/isString");var j=r.n(M);const V=require("lodash/debounce");var D=r.n(V);const L=require("lodash/set");var U=r.n(L),z=r(1890);const B="spec_update_spec",$="spec_update_url",J="spec_update_json",F="spec_update_param",W="spec_update_empty_param_inclusion",H="spec_validate_param",K="spec_set_response",Z="spec_set_request",G="spec_set_mutated_request",Y="spec_log_request",X="spec_clear_response",Q="spec_clear_request",ee="spec_clear_validate_param",te="spec_update_operation_meta_value",re="spec_update_resolved",ne="spec_update_resolved_subtree",se="set_scheme";function ae(e){const t=(r=e,j()(r)?r:"").replace(/\t/g," ");var r;if("string"==typeof e)return{type:B,payload:t}}function oe(e){return{type:re,payload:e}}function le(e){return{type:$,payload:e}}function ie(e){return{type:J,payload:e}}const ce=e=>t=>{let{specActions:r,specSelectors:n,errActions:s}=t,{specStr:a}=n,o=null;try{e=e||a(),s.clear({source:"parser"}),o=T().load(e,{schema:q.JSON_SCHEMA})}catch(e){return console.error(e),s.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return o&&"object"==typeof o?r.updateJsonSpec(o):{}};let ue=!1;const pe=(e,t)=>r=>{let{specActions:n,specSelectors:a,errActions:l,fn:{fetch:c,resolve:u,AST:p={}},getConfigs:d}=r;ue||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),ue=!0);const{modelPropertyMacro:m,parameterMacro:h,requestInterceptor:g,responseInterceptor:f}=d();void 0===e&&(e=a.specJson()),void 0===t&&(t=a.url());let y=p.getLineNumberForPath?p.getLineNumberForPath:()=>{},E=a.specStr();return u({fetch:c,spec:e,baseDoc:t,modelPropertyMacro:m,parameterMacro:h,requestInterceptor:g,responseInterceptor:f}).then((e=>{let{spec:t,errors:r}=e;if(l.clear({type:"thrown"}),s()(r)&&r.length>0){let e=o()(r).call(r,(e=>(console.error(e),e.line=e.fullPath?y(E,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",i()(e,"message",{enumerable:!0,value:e.message}),e)));l.newThrownErrBatch(e)}return n.updateResolved(t)}))};let de=[];const me=D()((async()=>{const e=de.system;if(!e)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");const{errActions:t,errSelectors:r,fn:{resolveSubtree:n,fetch:a,AST:l={}},specSelectors:c,specActions:p}=e;if(!n)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");let m=l.getLineNumberForPath?l.getLineNumberForPath:()=>{};const g=c.specStr(),{modelPropertyMacro:y,parameterMacro:v,requestInterceptor:S,responseInterceptor:C}=e.getConfigs();try{var b=await u()(de).call(de,(async(e,l)=>{const{resultMap:u,specWithCurrentSubtrees:p}=await e,{errors:b,spec:x}=await n(p,l,{baseDoc:c.url(),modelPropertyMacro:y,parameterMacro:v,requestInterceptor:S,responseInterceptor:C});if(r.allErrors().size&&t.clearBy((e=>{var t;return"thrown"!==e.get("type")||"resolver"!==e.get("source")||!d()(t=e.get("fullPath")).call(t,((e,t)=>e===l[t]||void 0===l[t]))})),s()(b)&&b.length>0){let e=o()(b).call(b,(e=>(e.line=e.fullPath?m(g,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",i()(e,"message",{enumerable:!0,value:e.message}),e)));t.newThrownErrBatch(e)}var w,_;x&&c.isOAS3()&&"components"===l[0]&&"securitySchemes"===l[1]&&await h().all(o()(w=f()(_=E()(x)).call(_,(e=>"openIdConnect"===e.type))).call(w,(async e=>{const t={url:e.openIdConnectUrl,requestInterceptor:S,responseInterceptor:C};try{const r=await a(t);r instanceof Error||r.status>=400?console.error(r.statusText+" "+t.url):e.openIdConnectData=JSON.parse(r.text)}catch(e){console.error(e)}})));return U()(u,l,x),U()(p,l,x),{resultMap:u,specWithCurrentSubtrees:p}}),h().resolve({resultMap:(c.specResolvedSubtree([])||(0,R.Map)()).toJS(),specWithCurrentSubtrees:c.specJson().toJS()}));delete de.system,de=[]}catch(e){console.error(e)}p.updateResolvedSubtree([],b.resultMap)}),35),he=e=>t=>{var r;S()(r=o()(de).call(de,(e=>e.join("@@")))).call(r,e.join("@@"))>-1||(de.push(e),de.system=t,me())};function ge(e,t,r,n,s){return{type:F,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:s}}}function fe(e,t,r,n){return{type:F,payload:{path:e,param:t,value:r,isXml:n}}}const ye=(e,t)=>({type:ne,payload:{path:e,value:t}}),Ee=()=>({type:ne,payload:{path:[],value:(0,R.Map)()}}),ve=(e,t)=>({type:H,payload:{pathMethod:e,isOAS3:t}}),Se=(e,t,r,n)=>({type:W,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function Ce(e){return{type:ee,payload:{pathMethod:e}}}function be(e,t){return{type:te,payload:{path:e,value:t,key:"consumes_value"}}}function xe(e,t){return{type:te,payload:{path:e,value:t,key:"produces_value"}}}const we=(e,t,r)=>({payload:{path:e,method:t,res:r},type:K}),_e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:Z}),Ae=(e,t,r)=>({payload:{path:e,method:t,req:r},type:G}),Ie=e=>({payload:e,type:Y}),Ne=e=>t=>{let{fn:r,specActions:n,specSelectors:a,getConfigs:l,oas3Selectors:i}=t,{pathName:c,method:u,operation:p}=e,{requestInterceptor:d,responseInterceptor:m}=l(),h=p.toJS();var g,y;p&&p.get("parameters")&&b()(g=f()(y=p.get("parameters")).call(y,(e=>e&&!0===e.get("allowEmptyValue")))).call(g,(t=>{if(a.parameterInclusionSettingFor([c,u],t.get("name"),t.get("in"))){e.parameters=e.parameters||{};const r=(0,z.cz)(t,e.parameters);(!r||r&&0===r.size)&&(e.parameters[t.get("name")]="")}}));if(e.contextUrl=k()(a.url()).toString(),h&&h.operationId?e.operationId=h.operationId:h&&c&&u&&(e.operationId=r.opId(h,c,u)),a.isOAS3()){const t=`${c}:${u}`;e.server=i.selectedServer(t)||i.selectedServer();const r=i.serverVariables({server:e.server,namespace:t}).toJS(),n=i.serverVariables({server:e.server}).toJS();e.serverVariables=w()(r).length?r:n,e.requestContentType=i.requestContentType(c,u),e.responseContentType=i.responseContentType(c,u)||"*/*";const a=i.requestBodyValue(c,u),l=i.requestBodyInclusionSetting(c,u);var E;if(a&&a.toJS)e.requestBody=f()(E=o()(a).call(a,(e=>R.Map.isMap(e)?e.get("value"):e))).call(E,((e,t)=>(s()(e)?0!==e.length:!(0,z.O2)(e))||l.get(t))).toJS();else e.requestBody=a}let v=A()({},e);v=r.buildRequest(v),n.setRequest(e.pathName,e.method,v);e.requestInterceptor=async t=>{let r=await d.apply(void 0,[t]),s=A()({},r);return n.setMutatedRequest(e.pathName,e.method,s),r},e.responseInterceptor=m;const S=N()();return r.execute(e).then((t=>{t.duration=N()()-S,n.setResponse(e.pathName,e.method,t)})).catch((t=>{"Failed to fetch"===t.message&&(t.name="",t.message='**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.'),n.setResponse(e.pathName,e.method,{error:!0,err:(0,O.serializeError)(t)})}))},qe=function(){let{path:e,method:t,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{let{fn:{fetch:s},specSelectors:a,specActions:o}=n,l=a.specJsonWithResolvedSubtrees().toJS(),i=a.operationScheme(e,t),{requestContentType:c,responseContentType:u}=a.contentTypeValues([e,t]).toJS(),p=/xml/i.test(c),d=a.parameterValues([e,t],p).toJS();return o.executeRequest({...r,fetch:s,spec:l,pathName:e,method:t,parameters:d,requestContentType:c,scheme:i,responseContentType:u})}};function Te(e,t){return{type:X,payload:{path:e,method:t}}}function Re(e,t){return{type:Q,payload:{path:e,method:t}}}function Pe(e,t,r){return{type:se,payload:{scheme:e,path:t,method:r}}}},7038:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(32),s=r(9381),a=r(3881),o=r(7508);function l(){return{statePlugins:{spec:{wrapActions:o,reducers:n.default,actions:s,selectors:a}}}}},32:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(66),s=r.n(n),a=r(3942),o=r.n(a),l=r(4994),i=r.n(l),c=r(5572),u=r(1890),p=r(7504),d=r(3881),m=r(9381);const h={[m.UPDATE_SPEC]:(e,t)=>"string"==typeof t.payload?e.set("spec",t.payload):e,[m.UPDATE_URL]:(e,t)=>e.set("url",t.payload+""),[m.UPDATE_JSON]:(e,t)=>e.set("json",(0,u.oG)(t.payload)),[m.UPDATE_RESOLVED]:(e,t)=>e.setIn(["resolved"],(0,u.oG)(t.payload)),[m.UPDATE_RESOLVED_SUBTREE]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],(0,u.oG)(r))},[m.UPDATE_PARAM]:(e,t)=>{let{payload:r}=t,{path:n,paramName:s,paramIn:a,param:o,value:l,isXml:i}=r,c=o?(0,u.V9)(o):`${a}.${s}`;const p=i?"value_xml":"value";return e.setIn(["meta","paths",...n,"parameters",c,p],l)},[m.UPDATE_EMPTY_PARAM_INCLUSION]:(e,t)=>{let{payload:r}=t,{pathMethod:n,paramName:s,paramIn:a,includeEmptyValue:o}=r;if(!s||!a)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const l=`${a}.${s}`;return e.setIn(["meta","paths",...n,"parameter_inclusions",l],o)},[m.VALIDATE_PARAMS]:(e,t)=>{let{payload:{pathMethod:r,isOAS3:n}}=t;const a=(0,d.specJsonWithResolvedSubtrees)(e).getIn(["paths",...r]),o=(0,d.parameterValues)(e,r).toJS();return e.updateIn(["meta","paths",...r,"parameters"],(0,c.fromJS)({}),(t=>{var l;return s()(l=a.get("parameters",(0,c.List)())).call(l,((t,s)=>{const a=(0,u.cz)(s,o),l=(0,d.parameterInclusionSettingFor)(e,r,s.get("name"),s.get("in")),i=(0,u.Ik)(s,a,{bypassRequiredCheck:l,isOAS3:n});return t.setIn([(0,u.V9)(s),"errors"],(0,c.fromJS)(i))}),t)}))},[m.CLEAR_VALIDATE_PARAMS]:(e,t)=>{let{payload:{pathMethod:r}}=t;return e.updateIn(["meta","paths",...r,"parameters"],(0,c.fromJS)([]),(e=>o()(e).call(e,(e=>e.set("errors",(0,c.fromJS)([]))))))},[m.SET_RESPONSE]:(e,t)=>{let r,{payload:{res:n,path:s,method:a}}=t;r=n.error?i()({error:!0,name:n.err.name,message:n.err.message,statusCode:n.err.statusCode},n.err.response):n,r.headers=r.headers||{};let o=e.setIn(["responses",s,a],(0,u.oG)(r));return p.Z.Blob&&n.data instanceof p.Z.Blob&&(o=o.setIn(["responses",s,a,"text"],n.data)),o},[m.SET_REQUEST]:(e,t)=>{let{payload:{req:r,path:n,method:s}}=t;return e.setIn(["requests",n,s],(0,u.oG)(r))},[m.SET_MUTATED_REQUEST]:(e,t)=>{let{payload:{req:r,path:n,method:s}}=t;return e.setIn(["mutatedRequests",n,s],(0,u.oG)(r))},[m.UPDATE_OPERATION_META_VALUE]:(e,t)=>{let{payload:{path:r,value:n,key:s}}=t,a=["paths",...r],o=["meta","paths",...r];return e.getIn(["json",...a])||e.getIn(["resolved",...a])||e.getIn(["resolvedSubtrees",...a])?e.setIn([...o,s],(0,c.fromJS)(n)):e},[m.CLEAR_RESPONSE]:(e,t)=>{let{payload:{path:r,method:n}}=t;return e.deleteIn(["responses",r,n])},[m.CLEAR_REQUEST]:(e,t)=>{let{payload:{path:r,method:n}}=t;return e.deleteIn(["requests",r,n])},[m.SET_SCHEME]:(e,t)=>{let{payload:{scheme:r,path:n,method:s}}=t;return n&&s?e.setIn(["scheme",n,s],r):n||s?void 0:e.setIn(["scheme","_defaultScheme"],r)}}},3881:(e,t,r)=>{"use strict";r.r(t),r.d(t,{lastError:()=>N,url:()=>q,specStr:()=>T,specSource:()=>R,specJson:()=>P,specResolved:()=>k,specResolvedSubtree:()=>O,specJsonWithResolvedSubtrees:()=>j,spec:()=>V,isOAS3:()=>D,info:()=>L,externalDocs:()=>U,version:()=>z,semver:()=>B,paths:()=>$,operations:()=>J,consumes:()=>F,produces:()=>W,security:()=>H,securityDefinitions:()=>K,findDefinition:()=>Z,definitions:()=>G,basePath:()=>Y,host:()=>X,schemes:()=>Q,operationsWithRootInherited:()=>ee,tags:()=>te,tagDetails:()=>re,operationsWithTags:()=>ne,taggedOperations:()=>se,responses:()=>ae,requests:()=>oe,mutatedRequests:()=>le,responseFor:()=>ie,requestFor:()=>ce,mutatedRequestFor:()=>ue,allowTryItOutFor:()=>pe,parameterWithMetaByIdentity:()=>de,parameterInclusionSettingFor:()=>me,parameterWithMeta:()=>he,operationWithMeta:()=>ge,getParameter:()=>fe,hasHost:()=>ye,parameterValues:()=>Ee,parametersIncludeIn:()=>ve,parametersIncludeType:()=>Se,contentTypeValues:()=>Ce,currentProducesFor:()=>be,producesOptionsFor:()=>xe,consumesOptionsFor:()=>we,operationScheme:()=>_e,canExecuteScheme:()=>Ae,validateBeforeExecute:()=>Ie,getOAS3RequiredRequestBodyContentType:()=>Ne,isMediaTypeSchemaPropertiesEqual:()=>qe});var n=r(600),s=r.n(n),a=r(4235),o=r.n(a),l=r(8493),i=r.n(l),c=r(3942),u=r.n(c),p=r(9998),d=r.n(p),m=r(3580),h=r.n(m),g=r(66),f=r.n(g),y=r(9247),E=r.n(y),v=r(5626),S=r.n(v),C=r(7104),b=r.n(C),x=r(6814),w=r(1890),_=r(5572);const A=["get","put","post","delete","options","head","patch","trace"],I=e=>e||(0,_.Map)(),N=(0,x.createSelector)(I,(e=>e.get("lastError"))),q=(0,x.createSelector)(I,(e=>e.get("url"))),T=(0,x.createSelector)(I,(e=>e.get("spec")||"")),R=(0,x.createSelector)(I,(e=>e.get("specSource")||"not-editor")),P=(0,x.createSelector)(I,(e=>e.get("json",(0,_.Map)()))),k=(0,x.createSelector)(I,(e=>e.get("resolved",(0,_.Map)()))),O=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),M=(e,t)=>_.Map.isMap(e)&&_.Map.isMap(t)?t.get("$$ref")?t:(0,_.OrderedMap)().mergeWith(M,e,t):t,j=(0,x.createSelector)(I,(e=>(0,_.OrderedMap)().mergeWith(M,e.get("json"),e.get("resolvedSubtrees")))),V=e=>P(e),D=(0,x.createSelector)(V,(()=>!1)),L=(0,x.createSelector)(V,(e=>Te(e&&e.get("info")))),U=(0,x.createSelector)(V,(e=>Te(e&&e.get("externalDocs")))),z=(0,x.createSelector)(L,(e=>e&&e.get("version"))),B=(0,x.createSelector)(z,(e=>{var t;return s()(t=/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e)).call(t,1)})),$=(0,x.createSelector)(j,(e=>e.get("paths"))),J=(0,x.createSelector)($,(e=>{if(!e||e.size<1)return(0,_.List)();let t=(0,_.List)();return e&&o()(e)?(o()(e).call(e,((e,r)=>{if(!e||!o()(e))return{};o()(e).call(e,((e,n)=>{i()(A).call(A,n)<0||(t=t.push((0,_.fromJS)({path:r,method:n,operation:e,id:`${n}-${r}`})))}))})),t):(0,_.List)()})),F=(0,x.createSelector)(V,(e=>(0,_.Set)(e.get("consumes")))),W=(0,x.createSelector)(V,(e=>(0,_.Set)(e.get("produces")))),H=(0,x.createSelector)(V,(e=>e.get("security",(0,_.List)()))),K=(0,x.createSelector)(V,(e=>e.get("securityDefinitions"))),Z=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},G=(0,x.createSelector)(V,(e=>{const t=e.get("definitions");return _.Map.isMap(t)?t:(0,_.Map)()})),Y=(0,x.createSelector)(V,(e=>e.get("basePath"))),X=(0,x.createSelector)(V,(e=>e.get("host"))),Q=(0,x.createSelector)(V,(e=>e.get("schemes",(0,_.Map)()))),ee=(0,x.createSelector)(J,F,W,((e,t,r)=>u()(e).call(e,(e=>e.update("operation",(e=>{if(e){if(!_.Map.isMap(e))return;return e.withMutations((e=>(e.get("consumes")||e.update("consumes",(e=>(0,_.Set)(e).merge(t))),e.get("produces")||e.update("produces",(e=>(0,_.Set)(e).merge(r))),e)))}return(0,_.Map)()})))))),te=(0,x.createSelector)(V,(e=>{const t=e.get("tags",(0,_.List)());return _.List.isList(t)?d()(t).call(t,(e=>_.Map.isMap(e))):(0,_.List)()})),re=(e,t)=>{var r;let n=te(e)||(0,_.List)();return h()(r=d()(n).call(n,_.Map.isMap)).call(r,(e=>e.get("name")===t),(0,_.Map)())},ne=(0,x.createSelector)(ee,te,((e,t)=>f()(e).call(e,((e,t)=>{let r=(0,_.Set)(t.getIn(["operation","tags"]));return r.count()<1?e.update("default",(0,_.List)(),(e=>e.push(t))):f()(r).call(r,((e,r)=>e.update(r,(0,_.List)(),(e=>e.push(t)))),e)}),f()(t).call(t,((e,t)=>e.set(t.get("name"),(0,_.List)())),(0,_.OrderedMap)())))),se=e=>t=>{var r;let{getConfigs:n}=t,{tagsSorter:s,operationsSorter:a}=n();return u()(r=ne(e).sortBy(((e,t)=>t),((e,t)=>{let r="function"==typeof s?s:w.wh.tagsSorter[s];return r?r(e,t):null}))).call(r,((t,r)=>{let n="function"==typeof a?a:w.wh.operationsSorter[a],s=n?E()(t).call(t,n):t;return(0,_.Map)({tagDetails:re(e,r),operations:s})}))},ae=(0,x.createSelector)(I,(e=>e.get("responses",(0,_.Map)()))),oe=(0,x.createSelector)(I,(e=>e.get("requests",(0,_.Map)()))),le=(0,x.createSelector)(I,(e=>e.get("mutatedRequests",(0,_.Map)()))),ie=(e,t,r)=>ae(e).getIn([t,r],null),ce=(e,t,r)=>oe(e).getIn([t,r],null),ue=(e,t,r)=>le(e).getIn([t,r],null),pe=()=>!0,de=(e,t,r)=>{const n=j(e).getIn(["paths",...t,"parameters"],(0,_.OrderedMap)()),s=e.getIn(["meta","paths",...t,"parameters"],(0,_.OrderedMap)()),a=u()(n).call(n,(e=>{const t=s.get(`${r.get("in")}.${r.get("name")}`),n=s.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,_.OrderedMap)().merge(e,t,n)}));return h()(a).call(a,(e=>e.get("in")===r.get("in")&&e.get("name")===r.get("name")),(0,_.OrderedMap)())},me=(e,t,r,n)=>{const s=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",s],!1)},he=(e,t,r,n)=>{const s=j(e).getIn(["paths",...t,"parameters"],(0,_.OrderedMap)()),a=h()(s).call(s,(e=>e.get("in")===n&&e.get("name")===r),(0,_.OrderedMap)());return de(e,t,a)},ge=(e,t,r)=>{var n;const s=j(e).getIn(["paths",t,r],(0,_.OrderedMap)()),a=e.getIn(["meta","paths",t,r],(0,_.OrderedMap)()),o=u()(n=s.get("parameters",(0,_.List)())).call(n,(n=>de(e,[t,r],n)));return(0,_.OrderedMap)().merge(s,a).set("parameters",o)};function fe(e,t,r,n){t=t||[];let s=e.getIn(["meta","paths",...t,"parameters"],(0,_.fromJS)([]));return h()(s).call(s,(e=>_.Map.isMap(e)&&e.get("name")===r&&e.get("in")===n))||(0,_.Map)()}const ye=(0,x.createSelector)(V,(e=>{const t=e.get("host");return"string"==typeof t&&t.length>0&&"/"!==t[0]}));function Ee(e,t,r){t=t||[];let n=ge(e,...t).get("parameters",(0,_.List)());return f()(n).call(n,((e,t)=>{let n=r&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set((0,w.V9)(t,{allowHashes:!1}),n)}),(0,_.fromJS)({}))}function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(_.List.isList(e))return S()(e).call(e,(e=>_.Map.isMap(e)&&e.get("in")===t))}function Se(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(_.List.isList(e))return S()(e).call(e,(e=>_.Map.isMap(e)&&e.get("type")===t))}function Ce(e,t){t=t||[];let r=j(e).getIn(["paths",...t],(0,_.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,_.fromJS)({})),s=be(e,t);const a=r.get("parameters")||new _.List,o=n.get("consumes_value")?n.get("consumes_value"):Se(a,"file")?"multipart/form-data":Se(a,"formData")?"application/x-www-form-urlencoded":void 0;return(0,_.fromJS)({requestContentType:o,responseContentType:s})}function be(e,t){t=t||[];const r=j(e).getIn(["paths",...t],null);if(null===r)return;const n=e.getIn(["meta","paths",...t,"produces_value"],null),s=r.getIn(["produces",0],null);return n||s||"application/json"}function xe(e,t){t=t||[];const r=j(e),n=r.getIn(["paths",...t],null);if(null===n)return;const[s]=t,a=n.get("produces",null),o=r.getIn(["paths",s,"produces"],null),l=r.getIn(["produces"],null);return a||o||l}function we(e,t){t=t||[];const r=j(e),n=r.getIn(["paths",...t],null);if(null===n)return;const[s]=t,a=n.get("consumes",null),o=r.getIn(["paths",s,"consumes"],null),l=r.getIn(["consumes"],null);return a||o||l}const _e=(e,t,r)=>{let n=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),s=b()(n)?n[1]:null;return e.getIn(["scheme",t,r])||e.getIn(["scheme","_defaultScheme"])||s||""},Ae=(e,t,r)=>{var n;return i()(n=["http","https"]).call(n,_e(e,t,r))>-1},Ie=(e,t)=>{t=t||[];let r=e.getIn(["meta","paths",...t,"parameters"],(0,_.fromJS)([])),n=!0;return o()(r).call(r,(e=>{let t=e.get("errors");t&&t.count()&&(n=!1)})),n},Ne=(e,t)=>{var r;let n={requestBody:!1,requestContentType:{}},s=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,_.fromJS)([]));return s.size<1||(s.getIn(["required"])&&(n.requestBody=s.getIn(["required"])),o()(r=s.getIn(["content"]).entrySeq()).call(r,(e=>{const t=e[0];if(e[1].getIn(["schema","required"])){const r=e[1].getIn(["schema","required"]).toJS();n.requestContentType[t]=r}}))),n},qe=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let s=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,_.fromJS)([]));if(s.size<2||!r||!n)return!1;let a=s.getIn([r,"schema","properties"],(0,_.fromJS)([])),o=s.getIn([n,"schema","properties"],(0,_.fromJS)([]));return!!a.equals(o)};function Te(e){return _.Map.isMap(e)?e:new _.Map}},7508:(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateSpec:()=>c,updateJsonSpec:()=>u,executeRequest:()=>p,validateParams:()=>d});var n=r(7252),s=r.n(n),a=r(4235),o=r.n(a),l=r(1712),i=r.n(l);const c=(e,t)=>{let{specActions:r}=t;return function(){e(...arguments),r.parseToJson(...arguments)}},u=(e,t)=>{let{specActions:r}=t;return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];e(...n),r.invalidateResolvedSubtreeCache();const[l]=n,c=i()(l,["paths"])||{},u=s()(c);o()(u).call(u,(e=>{i()(c,[e]).$ref&&r.requestResolvedSubtree(["paths",e])})),r.requestResolvedSubtree(["components","securitySchemes"])}},p=(e,t)=>{let{specActions:r}=t;return t=>(r.logRequest(t),e(t))},d=(e,t)=>{let{specSelectors:r}=t;return t=>e(t,r.isOAS3())}},4852:(e,t,r)=>{"use strict";r.r(t),r.d(t,{loaded:()=>n});const n=(e,t)=>function(){e(...arguments);const r=t.getConfigs().withCredentials;void 0!==r&&(t.fn.fetch.withCredentials="string"==typeof r?"true"===r:!!r)}},8901:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});const n=require("swagger-client/es/resolver");var s=r.n(n);const a=require("swagger-client/es/execute"),o=require("swagger-client/es/http");var l=r.n(o);const i=require("swagger-client/es/subtree-resolver");var c=r.n(i),u=r(6765),p=r(4852);function d(e){let{configs:t,getConfigs:r}=e;return{fn:{fetch:(0,o.makeHttp)(l(),t.preFetch,t.postFetch),buildRequest:a.buildRequest,execute:a.execute,resolve:s(),resolveSubtree:function(e,t,n){if(void 0===n){const e=r();n={modelPropertyMacro:e.modelPropertyMacro,parameterMacro:e.parameterMacro,requestInterceptor:e.requestInterceptor,responseInterceptor:e.responseInterceptor}}for(var s=arguments.length,a=new Array(s>3?s-3:0),o=3;o<s;o++)a[o-3]=arguments[o];return c()(e,t,n,...a)},serializeRes:o.serializeRes,opId:u.opId},statePlugins:{configs:{wrapActions:{loaded:p.loaded}}}}}},8525:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(1890);function s(){return{fn:{shallowEqualKeys:n.be}}}},8347:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDisplayName:()=>n});const n=e=>e.displayName||e.name||"Component"},3420:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(8344),s=r.n(n),a=r(1890),o=r(290),l=r(8347),i=r(7481);const c=e=>{let{getComponents:t,getStore:r,getSystem:n}=e;const c=(u=(0,o.getComponent)(n,r,t),(0,a.HP)(u,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s()(t)})));var u;const p=(e=>(0,i.Z)(e,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t})))((0,o.withMappedContainer)(n,r,c));return{rootInjects:{getComponent:c,makeMappedContainer:p,render:(0,o.render)(n,r,o.getComponent,t)},fn:{getDisplayName:l.getDisplayName}}}},290:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponent:()=>x,render:()=>b,withMappedContainer:()=>C});var n=r(4250),s=r.n(n),a=r(7252),o=r.n(a),l=r(6689),i=r.n(l);const c=require("react-dom");var u=r.n(c),p=r(6695);const d=require("react-redux"),m=require("lodash/omit");var h=r.n(m);const g=require("lodash/identity");var f=r.n(g);const y=e=>t=>{const{fn:r}=e();class n extends l.Component{render(){return i().createElement(t,s()({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},E=(e,t)=>r=>{const{fn:n}=e();class a extends l.Component{render(){return i().createElement(d.Provider,{store:t},i().createElement(r,s()({},this.props,this.context)))}}return a.displayName=`WithRoot(${n.getDisplayName(r)})`,a},v=(e,t,r)=>(0,p.compose)(r?E(e,r):f(),(0,d.connect)(((r,n)=>{var s;const a={...n,...e()},o=(null===(s=t.prototype)||void 0===s?void 0:s.mapStateToProps)||(e=>({state:e}));return o(r,a)})),y(e))(t),S=(e,t,r,n)=>{for(const s in t){const a=t[s];"function"==typeof a&&a(r[s],n[s],e())}},C=(e,t,r)=>(t,n)=>{const{fn:s}=e(),a=r(t,"root");class c extends l.Component{constructor(t,r){super(t,r),S(e,n,t,{})}UNSAFE_componentWillReceiveProps(t){S(e,n,t,this.props)}render(){const e=h()(this.props,n?o()(n):[]);return i().createElement(a,e)}}return c.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,c},b=(e,t,r,n)=>s=>{const a=r(e,t,n)("App","root");u().render(i().createElement(a,null),s)},x=(e,t,r)=>function(n,s){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof n)throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const o=r(n);return o?s?"root"===s?v(e,o,t()):v(e,o):o:(a.failSilently||e().log.warn("Could not find component:",n),null)}},6068:(e,t,r)=>{"use strict";r.d(t,{d3:()=>i(),C2:()=>V});var n=r(7252),s=r.n(n),a=r(2605),o=r.n(a);const l=require("react-syntax-highlighter/dist/esm/light");var i=r.n(l);const c=require("react-syntax-highlighter/dist/esm/languages/hljs/javascript");var u=r.n(c);const p=require("react-syntax-highlighter/dist/esm/languages/hljs/json");var d=r.n(p);const m=require("react-syntax-highlighter/dist/esm/languages/hljs/xml");var h=r.n(m);const g=require("react-syntax-highlighter/dist/esm/languages/hljs/bash");var f=r.n(g);const y=require("react-syntax-highlighter/dist/esm/languages/hljs/yaml");var E=r.n(y);const v=require("react-syntax-highlighter/dist/esm/languages/hljs/http");var S=r.n(v);const C=require("react-syntax-highlighter/dist/esm/languages/hljs/powershell");var b=r.n(C);const x=require("react-syntax-highlighter/dist/esm/styles/hljs/agate");var w=r.n(x);const _=require("react-syntax-highlighter/dist/esm/styles/hljs/arta");var A=r.n(_);const I=require("react-syntax-highlighter/dist/esm/styles/hljs/monokai");var N=r.n(I);const q=require("react-syntax-highlighter/dist/esm/styles/hljs/nord");var T=r.n(q);const R=require("react-syntax-highlighter/dist/esm/styles/hljs/obsidian");var P=r.n(R);const k=require("react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night");var O=r.n(k);i().registerLanguage("json",d()),i().registerLanguage("js",u()),i().registerLanguage("xml",h()),i().registerLanguage("yaml",E()),i().registerLanguage("http",S()),i().registerLanguage("bash",f()),i().registerLanguage("powershell",b()),i().registerLanguage("javascript",u());const M={agate:w(),arta:A(),monokai:N(),nord:T(),obsidian:P(),"tomorrow-night":O()},j=s()(M),V=e=>o()(j).call(j,e)?M[e]:(console.warn(`Request style '${e}' is not available, returning default instead`),w())},1890:(e,t,r)=>{"use strict";r.d(t,{r3:()=>je,GZ:()=>De,Xb:()=>Qe,oJ:()=>$e,XV:()=>He,iQ:()=>xe,J6:()=>Je,DR:()=>_e,oG:()=>me,Uj:()=>Xe,QG:()=>Be,po:()=>We,nX:()=>Fe,gp:()=>we,xi:()=>Oe,kJ:()=>Ee,O2:()=>tt,LQ:()=>ge,Wl:()=>ye,Kn:()=>fe,HP:()=>ve,AF:()=>he,D$:()=>Ze,Ay:()=>Se,Q2:()=>Ce,mz:()=>de,V9:()=>Ge,cz:()=>Ye,UG:()=>Me,Zl:()=>Ae,hW:()=>ze,Nm:()=>Ue,be:()=>Le,wh:()=>Ve,Pz:()=>Ke,_5:()=>be,Ik:()=>Ne});var n=r(7104),s=r.n(n),a=r(3942),o=r.n(a),l=r(7862),i=r.n(l),c=r(4235),u=r.n(c),p=r(9998),d=r.n(p),m=r(7252),h=r.n(m),g=(r(593),r(66)),f=r.n(g),y=r(4994),E=r.n(y),v=r(9247),S=r.n(v),C=r(600),b=r.n(C),x=(r(4883),r(5626)),w=r.n(x),_=(r(2605),r(8344)),A=r.n(_),I=r(8493),N=r.n(I),q=r(3580),T=r.n(q),R=r(3262),P=r.n(R),k=r(7390),O=r.n(k),M=r(5572),j=r.n(M);const V=require("@braintree/sanitize-url"),D=require("lodash/camelCase");var L=r.n(D);const U=require("lodash/upperFirst");var z=r.n(U),B=r(541),$=r.n(B);const J=require("lodash/find");var F=r.n(J);const W=require("lodash/some");var H=r.n(W);const K=require("lodash/eq");var Z=r.n(K),G=r(5716),Y=r.n(G),X=r(4128),Q=r(7504);const ee=require("css.escape");var te=r.n(ee),re=r(9069),ne=r(185),se=r.n(ne);const ae=require("sha.js");var oe=r.n(ae),le=r(9793),ie=r.n(le),ce=r(871).Buffer;const ue="default",pe=e=>j().Iterable.isIterable(e);function de(e){return fe(e)?pe(e)?e.toJS():e:{}}function me(e){var t,r;if(pe(e))return e;if(e instanceof Q.Z.File)return e;if(!fe(e))return e;if(s()(e))return o()(r=j().Seq(e)).call(r,me).toList();if(Y()(i()(e))){var n;const t=function(e){if(!Y()(i()(e)))return e;const t={},r="_**[]",n={};for(let s of i()(e).call(e))if(t[s[0]]||n[s[0]]&&n[s[0]].containsMultiple){if(!n[s[0]]){n[s[0]]={containsMultiple:!0,length:1},t[`${s[0]}${r}${n[s[0]].length}`]=t[s[0]],delete t[s[0]]}n[s[0]].length+=1,t[`${s[0]}${r}${n[s[0]].length}`]=s[1]}else t[s[0]]=s[1];return t}(e);return o()(n=j().OrderedMap(t)).call(n,me)}return o()(t=j().OrderedMap(e)).call(t,me)}function he(e){return s()(e)?e:[e]}function ge(e){return"function"==typeof e}function fe(e){return!!e&&"object"==typeof e}function ye(e){return"function"==typeof e}function Ee(e){return s()(e)}const ve=$();function Se(e,t){var r;return f()(r=h()(e)).call(r,((r,n)=>(r[n]=t(e[n],n),r)),{})}function Ce(e,t){var r;return f()(r=h()(e)).call(r,((r,n)=>{let s=t(e[n],n);return s&&"object"==typeof s&&E()(r,s),r}),{})}function be(e){return t=>{let{dispatch:r,getState:n}=t;return t=>r=>"function"==typeof r?r(e()):t(r)}}function xe(e){var t;let r=e.keySeq();return r.contains(ue)?ue:S()(t=d()(r).call(r,(e=>"2"===(e+"")[0]))).call(t).first()}function we(e,t){if(!j().Iterable.isIterable(e))return j().List();let r=e.getIn(s()(t)?t:[t]);return j().List.isList(r)?r:j().List()}function _e(e){let t,r=[/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i];if(w()(r).call(r,(r=>(t=r.exec(e),null!==t))),null!==t&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}function Ae(e){return t=e.replace(/\.[^./]*$/,""),z()(L()(t));var t}function Ie(e,t,r,n,a){if(!t)return[];let l=[],i=t.get("nullable"),c=t.get("required"),p=t.get("maximum"),m=t.get("minimum"),h=t.get("type"),g=t.get("format"),f=t.get("maxLength"),y=t.get("minLength"),E=t.get("uniqueItems"),v=t.get("maxItems"),S=t.get("minItems"),C=t.get("pattern");const b=r||!0===c,x=null!=e;if(i&&null===e||!h||!(b||x&&"array"===h||!(!b&&!x)))return[];let _="string"===h&&e,A="array"===h&&s()(e)&&e.length,I="array"===h&&j().List.isList(e)&&e.count();const N=[_,A,I,"array"===h&&"string"==typeof e&&e,"file"===h&&e instanceof Q.Z.File,"boolean"===h&&(e||!1===e),"number"===h&&(e||0===e),"integer"===h&&(e||0===e),"object"===h&&"object"==typeof e&&null!==e,"object"===h&&"string"==typeof e&&e],q=w()(N).call(N,(e=>!!e));if(b&&!q&&!n)return l.push("Required field is not provided"),l;if("object"===h&&(null===a||"application/json"===a)){let r=e;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){return l.push("Parameter string value must be valid JSON"),l}var T;if(t&&t.has("required")&&ye(c.isList)&&c.isList()&&u()(c).call(c,(e=>{void 0===r[e]&&l.push({propKey:e,error:"Required property not found"})})),t&&t.has("properties"))u()(T=t.get("properties")).call(T,((e,t)=>{const s=Ie(r[t],e,!1,n,a);l.push(...o()(s).call(s,(e=>({propKey:t,error:e}))))}))}if(C){let t=((e,t)=>{if(!new RegExp(t).test(e))return"Value must follow pattern "+t})(e,C);t&&l.push(t)}if(S&&"array"===h){let t=((e,t)=>{if(!e&&t>=1||e&&e.length<t)return`Array must contain at least ${t} item${1===t?"":"s"}`})(e,S);t&&l.push(t)}if(v&&"array"===h){let t=((e,t)=>{if(e&&e.length>t)return`Array must not contain more then ${t} item${1===t?"":"s"}`})(e,v);t&&l.push({needRemove:!0,error:t})}if(E&&"array"===h){let t=((e,t)=>{if(e&&("true"===t||!0===t)){const t=(0,M.fromJS)(e),r=t.toSet();if(e.length>r.size){let e=(0,M.Set)();if(u()(t).call(t,((r,n)=>{d()(t).call(t,(e=>ye(e.equals)?e.equals(r):e===r)).size>1&&(e=e.add(n))})),0!==e.size)return o()(e).call(e,(e=>({index:e,error:"No duplicates allowed."}))).toArray()}}})(e,E);t&&l.push(...t)}if(f||0===f){let t=((e,t)=>{if(e.length>t)return`Value must be no longer than ${t} character${1!==t?"s":""}`})(e,f);t&&l.push(t)}if(y){let t=((e,t)=>{if(e.length<t)return`Value must be at least ${t} character${1!==t?"s":""}`})(e,y);t&&l.push(t)}if(p||0===p){let t=((e,t)=>{if(e>t)return`Value must be less than ${t}`})(e,p);t&&l.push(t)}if(m||0===m){let t=((e,t)=>{if(e<t)return`Value must be greater than ${t}`})(e,m);t&&l.push(t)}if("string"===h){let t;if(t="date-time"===g?(e=>{if(isNaN(Date.parse(e)))return"Value must be a DateTime"})(e):"uuid"===g?(e=>{if(e=e.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))return"Value must be a Guid"})(e):(e=>{if(e&&"string"!=typeof e)return"Value must be a string"})(e),!t)return l;l.push(t)}else if("boolean"===h){let t=(e=>{if("true"!==e&&"false"!==e&&!0!==e&&!1!==e)return"Value must be a boolean"})(e);if(!t)return l;l.push(t)}else if("number"===h){let t=(e=>{if(!/^-?\d+(\.?\d+)?$/.test(e))return"Value must be a number"})(e);if(!t)return l;l.push(t)}else if("integer"===h){let t=(e=>{if(!/^-?\d+$/.test(e))return"Value must be an integer"})(e);if(!t)return l;l.push(t)}else if("array"===h){if(!A&&!I)return l;e&&u()(e).call(e,((e,r)=>{const s=Ie(e,t.get("items"),!1,n,a);l.push(...o()(s).call(s,(e=>({index:r,error:e}))))}))}else if("file"===h){let t=(e=>{if(e&&!(e instanceof Q.Z.File))return"Value must be a file"})(e);if(!t)return l;l.push(t)}return l}const Ne=function(e,t){let{isOAS3:r=!1,bypassRequiredCheck:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.get("required"),{schema:a,parameterContentMediaType:o}=(0,re.Z)(e,{isOAS3:r});return Ie(t,a,s,n,o)},qe=(e,t,r)=>{if(e&&(!e.xml||!e.xml.name)){if(e.xml=e.xml||{},!e.$$ref)return e.type||e.items||e.properties||e.additionalProperties?'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e':null;{let t=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=t[1]}}return(0,X.memoizedCreateXMLExample)(e,t,r)},Te=[{when:/json/,shouldStringifyTypes:["string"]}],Re=["object"],Pe=(e,t,r,n)=>{const s=(0,X.memoizedSampleFromSchema)(e,t,n),a=typeof s,o=f()(Te).call(Te,((e,t)=>t.when.test(r)?[...e,...t.shouldStringifyTypes]:e),Re);return H()(o,(e=>e===a))?A()(s,null,2):s},ke=(e,t,r,n)=>{const s=Pe(e,t,r,n);let a;try{a=ie().dump(ie().load(s),{lineWidth:-1},{schema:le.JSON_SCHEMA}),"\n"===a[a.length-1]&&(a=b()(a).call(a,0,a.length-1))}catch(e){return console.error(e),"error: could not generate yaml example"}return a.replace(/\t/g," ")},Oe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return e&&ye(e.toJS)&&(e=e.toJS()),n&&ye(n.toJS)&&(n=n.toJS()),/xml/.test(t)?qe(e,r,n):/(yaml|yml)/.test(t)?ke(e,r,t,n):Pe(e,r,t,n)},Me=()=>{let e={},t=Q.Z.location.search;if(!t)return{};if(""!=t){let r=t.substr(1).split("&");for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(t=r[t].split("="),e[decodeURIComponent(t[0])]=t[1]&&decodeURIComponent(t[1])||"")}return e},je=e=>{let t;return t=e instanceof ce?e:ce.from(e.toString(),"utf-8"),t.toString("base64")},Ve={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},De=e=>{let t=[];for(let r in e){let n=e[r];void 0!==n&&""!==n&&t.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return t.join("&")},Le=(e,t,r)=>!!F()(r,(r=>Z()(e[r],t[r])));function Ue(e){return"string"!=typeof e||""===e?"":(0,V.sanitizeUrl)(e)}function ze(e){return!(!e||N()(e).call(e,"localhost")>=0||N()(e).call(e,"127.0.0.1")>=0||"none"===e)}function Be(e){if(!j().OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;const t=T()(e).call(e,((e,t)=>P()(t).call(t,"2")&&h()(e.get("content")||{}).length>0)),r=e.get("default")||j().OrderedMap(),n=(r.get("content")||j().OrderedMap()).keySeq().toJS().length?r:null;return t||n}const $e=e=>"string"==typeof e||e instanceof String?O()(e).call(e).replace(/\s/g,"%20"):"",Je=e=>te()($e(e).replace(/%20/g,"_")),Fe=e=>d()(e).call(e,((e,t)=>/^x-/.test(t))),We=e=>d()(e).call(e,((e,t)=>/^pattern|maxLength|minLength|maximum|minimum/.test(t)));function He(e,t){var r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;if("object"!=typeof e||s()(e)||null===e||!t)return e;const a=E()({},e);return u()(r=h()(a)).call(r,(e=>{e===t&&n(a[e],e)?delete a[e]:a[e]=He(a[e],t,n)})),a}function Ke(e){if("string"==typeof e)return e;if(e&&e.toJS&&(e=e.toJS()),"object"==typeof e&&null!==e)try{return A()(e,null,2)}catch(t){return String(e)}return null==e?"":e.toString()}function Ze(e){return"number"==typeof e?e.toString():e}function Ge(e){let{returnAll:t=!1,allowHashes:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!j().Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=e.get("name"),s=e.get("in");let a=[];return e&&e.hashCode&&s&&n&&r&&a.push(`${s}.${n}.hash-${e.hashCode()}`),s&&n&&a.push(`${s}.${n}`),a.push(n),t?a:a[0]||""}function Ye(e,t){var r;const n=Ge(e,{returnAll:!0});return d()(r=o()(n).call(n,(e=>t[e]))).call(r,(e=>void 0!==e))[0]}function Xe(){return et(se()(32).toString("base64"))}function Qe(e){return et(oe()("sha256").update(e).digest("base64"))}function et(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const tt=e=>!e||!(!pe(e)||!e.isEmpty())},2518:(e,t,r)=>{"use strict";function n(e){return function(e){try{return!!JSON.parse(e)}catch(e){return null}}(e)?"json":null}r.d(t,{O:()=>n})},7504:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){}};if("undefined"==typeof window)return e;try{e=window;for(var t of["File","Blob","FormData"])t in window&&(e[t]=window[t])}catch(e){console.error(e)}return e}()},9069:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(9998),s=r.n(n),a=r(2605),o=r.n(a),l=r(5572),i=r.n(l);const c=i().Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function u(e){let{isOAS3:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i().Map.isMap(e))return{schema:i().Map(),parameterContentMediaType:null};if(!t)return"body"===e.get("in")?{schema:e.get("schema",i().Map()),parameterContentMediaType:null}:{schema:s()(e).call(e,((e,t)=>o()(c).call(c,t))),parameterContentMediaType:null};if(e.get("content")){const t=e.get("content",i().Map({})).keySeq().first();return{schema:e.getIn(["content",t,"schema"],i().Map()),parameterContentMediaType:t}}return{schema:e.get("schema",i().Map()),parameterContentMediaType:null}}},7481:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(7104),s=r.n(n),a=r(7834),o=r.n(a),l=r(1733),i=r.n(l),c=r(874),u=r.n(c),p=r(3580),d=r.n(p);const m=require("@babel/runtime-corejs3/core-js-stable/instance/find-index");var h=r.n(m),g=r(2611),f=r.n(g),y=r(541),E=r.n(y);const v=e=>t=>s()(e)&&s()(t)&&e.length===t.length&&o()(e).call(e,((e,r)=>e===t[r])),S=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t};class C extends(f()){delete(e){const t=i()(u()(this).call(this)),r=d()(t).call(t,v(e));return super.delete(r)}get(e){const t=i()(u()(this).call(this)),r=d()(t).call(t,v(e));return super.get(r)}has(e){const t=i()(u()(this).call(this));return-1!==h()(t).call(t,v(e))}}const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;const{Cache:r}=E();E().Cache=C;const n=E()(e,t);return E().Cache=r,n}},5102:(e,t,r)=>{var n={"./all.js":5308,"./auth/actions.js":5812,"./auth/index.js":3705,"./auth/reducers.js":3962,"./auth/selectors.js":35,"./auth/spec-wrap-actions.js":8302,"./configs/actions.js":714,"./configs/helpers.js":2256,"./configs/index.js":1661,"./configs/reducers.js":7743,"./configs/selectors.js":9018,"./configs/spec-actions.js":2698,"./deep-linking/helpers.js":1970,"./deep-linking/index.js":4980,"./deep-linking/layout.js":2179,"./deep-linking/operation-tag-wrapper.jsx":4584,"./deep-linking/operation-wrapper.jsx":877,"./download-url.js":8011,"./err/actions.js":4966,"./err/error-transformers/hook.js":2860,"./err/error-transformers/transformers/not-of-type.js":2392,"./err/error-transformers/transformers/parameter-oneof.js":1835,"./err/index.js":7793,"./err/reducers.js":3527,"./err/selectors.js":7667,"./filter/index.js":9978,"./filter/opsFilter.js":4309,"./layout/actions.js":5474,"./layout/index.js":6821,"./layout/reducers.js":5672,"./layout/selectors.js":4400,"./layout/spec-extensions/wrap-selector.js":8989,"./logs/index.js":9150,"./oas3/actions.js":7002,"./oas3/auth-extensions/wrap-selectors.js":3723,"./oas3/components/callbacks.jsx":3427,"./oas3/components/http-auth.jsx":6775,"./oas3/components/index.js":6467,"./oas3/components/operation-link.jsx":5757,"./oas3/components/operation-servers.jsx":6796,"./oas3/components/request-body-editor.jsx":5327,"./oas3/components/request-body.jsx":2458,"./oas3/components/servers-container.jsx":9928,"./oas3/components/servers.jsx":6617,"./oas3/helpers.jsx":7779,"./oas3/index.js":7451,"./oas3/reducers.js":2109,"./oas3/selectors.js":5065,"./oas3/spec-extensions/selectors.js":1741,"./oas3/spec-extensions/wrap-selectors.js":2044,"./oas3/wrap-components/auth-item.jsx":356,"./oas3/wrap-components/index.js":7761,"./oas3/wrap-components/json-schema-string.jsx":287,"./oas3/wrap-components/markdown.jsx":2460,"./oas3/wrap-components/model.jsx":3499,"./oas3/wrap-components/online-validator-badge.js":58,"./oas3/wrap-components/version-stamp.jsx":9487,"./on-complete/index.js":8560,"./request-snippets/fn.js":8223,"./request-snippets/index.js":6575,"./request-snippets/request-snippets.jsx":4206,"./request-snippets/selectors.js":4669,"./safe-render/components/error-boundary.jsx":6195,"./safe-render/components/fallback.jsx":9403,"./safe-render/fn.jsx":6189,"./safe-render/index.js":9595,"./samples/fn.js":4128,"./samples/index.js":8883,"./spec/actions.js":9381,"./spec/index.js":7038,"./spec/reducers.js":32,"./spec/selectors.js":3881,"./spec/wrap-actions.js":7508,"./swagger-js/configs-wrap-actions.js":4852,"./swagger-js/index.js":8901,"./util/index.js":8525,"./view/fn.js":8347,"./view/index.js":3420,"./view/root-injects.jsx":290,"core/plugins/all.js":5308,"core/plugins/auth/actions.js":5812,"core/plugins/auth/index.js":3705,"core/plugins/auth/reducers.js":3962,"core/plugins/auth/selectors.js":35,"core/plugins/auth/spec-wrap-actions.js":8302,"core/plugins/configs/actions.js":714,"core/plugins/configs/helpers.js":2256,"core/plugins/configs/index.js":1661,"core/plugins/configs/reducers.js":7743,"core/plugins/configs/selectors.js":9018,"core/plugins/configs/spec-actions.js":2698,"core/plugins/deep-linking/helpers.js":1970,"core/plugins/deep-linking/index.js":4980,"core/plugins/deep-linking/layout.js":2179,"core/plugins/deep-linking/operation-tag-wrapper.jsx":4584,"core/plugins/deep-linking/operation-wrapper.jsx":877,"core/plugins/download-url.js":8011,"core/plugins/err/actions.js":4966,"core/plugins/err/error-transformers/hook.js":2860,"core/plugins/err/error-transformers/transformers/not-of-type.js":2392,"core/plugins/err/error-transformers/transformers/parameter-oneof.js":1835,"core/plugins/err/index.js":7793,"core/plugins/err/reducers.js":3527,"core/plugins/err/selectors.js":7667,"core/plugins/filter/index.js":9978,"core/plugins/filter/opsFilter.js":4309,"core/plugins/layout/actions.js":5474,"core/plugins/layout/index.js":6821,"core/plugins/layout/reducers.js":5672,"core/plugins/layout/selectors.js":4400,"core/plugins/layout/spec-extensions/wrap-selector.js":8989,"core/plugins/logs/index.js":9150,"core/plugins/oas3/actions.js":7002,"core/plugins/oas3/auth-extensions/wrap-selectors.js":3723,"core/plugins/oas3/components/callbacks.jsx":3427,"core/plugins/oas3/components/http-auth.jsx":6775,"core/plugins/oas3/components/index.js":6467,"core/plugins/oas3/components/operation-link.jsx":5757,"core/plugins/oas3/components/operation-servers.jsx":6796,"core/plugins/oas3/components/request-body-editor.jsx":5327,"core/plugins/oas3/components/request-body.jsx":2458,"core/plugins/oas3/components/servers-container.jsx":9928,"core/plugins/oas3/components/servers.jsx":6617,"core/plugins/oas3/helpers.jsx":7779,"core/plugins/oas3/index.js":7451,"core/plugins/oas3/reducers.js":2109,"core/plugins/oas3/selectors.js":5065,"core/plugins/oas3/spec-extensions/selectors.js":1741,"core/plugins/oas3/spec-extensions/wrap-selectors.js":2044,"core/plugins/oas3/wrap-components/auth-item.jsx":356,"core/plugins/oas3/wrap-components/index.js":7761,"core/plugins/oas3/wrap-components/json-schema-string.jsx":287,"core/plugins/oas3/wrap-components/markdown.jsx":2460,"core/plugins/oas3/wrap-components/model.jsx":3499,"core/plugins/oas3/wrap-components/online-validator-badge.js":58,"core/plugins/oas3/wrap-components/version-stamp.jsx":9487,"core/plugins/on-complete/index.js":8560,"core/plugins/request-snippets/fn.js":8223,"core/plugins/request-snippets/index.js":6575,"core/plugins/request-snippets/request-snippets.jsx":4206,"core/plugins/request-snippets/selectors.js":4669,"core/plugins/safe-render/components/error-boundary.jsx":6195,"core/plugins/safe-render/components/fallback.jsx":9403,"core/plugins/safe-render/fn.jsx":6189,"core/plugins/safe-render/index.js":9595,"core/plugins/samples/fn.js":4128,"core/plugins/samples/index.js":8883,"core/plugins/spec/actions.js":9381,"core/plugins/spec/index.js":7038,"core/plugins/spec/reducers.js":32,"core/plugins/spec/selectors.js":3881,"core/plugins/spec/wrap-actions.js":7508,"core/plugins/swagger-js/configs-wrap-actions.js":4852,"core/plugins/swagger-js/index.js":8901,"core/plugins/util/index.js":8525,"core/plugins/view/fn.js":8347,"core/plugins/view/index.js":3420,"core/plugins/view/root-injects.jsx":290};function s(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=a,e.exports=s,s.id=5102},2517:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwcHgiICBoZWlnaHQ9IjIwMHB4IiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiIGNsYXNzPSJsZHMtcm9sbGluZyIgc3R5bGU9ImJhY2tncm91bmQtaW1hZ2U6IG5vbmU7IGJhY2tncm91bmQtcG9zaXRpb246IGluaXRpYWwgaW5pdGlhbDsgYmFja2dyb3VuZC1yZXBlYXQ6IGluaXRpYWwgaW5pdGlhbDsiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIGZpbGw9Im5vbmUiIG5nLWF0dHItc3Ryb2tlPSJ7e2NvbmZpZy5jb2xvcn19IiBuZy1hdHRyLXN0cm9rZS13aWR0aD0ie3tjb25maWcud2lkdGh9fSIgbmctYXR0ci1yPSJ7e2NvbmZpZy5yYWRpdXN9fSIgbmctYXR0ci1zdHJva2UtZGFzaGFycmF5PSJ7e2NvbmZpZy5kYXNoYXJyYXl9fSIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgY2FsY01vZGU9ImxpbmVhciIgdmFsdWVzPSIwIDUwIDUwOzM2MCA1MCA1MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49IjBzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlVHJhbnNmb3JtPjwvY2lyY2xlPjwvc3ZnPgo="},5163:e=>{"use strict";e.exports='---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n'},1733:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/array/from")},7104:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/array/is-array")},593:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/bind")},4883:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/concat")},7862:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/entries")},7834:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/every")},9998:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/filter")},3580:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/find")},4235:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/for-each")},2605:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/includes")},8493:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/index-of")},874:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/keys")},3942:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/map")},66:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/reduce")},600:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/slice")},5626:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/some")},9247:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/sort")},3262:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with")},7390:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/trim")},8344:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/json/stringify")},2611:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/map")},4994:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/assign")},7252:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/keys")},9968:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/values")},9300:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/set-timeout")},9478:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/url")},1093:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/helpers/defineProperty")},4250:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/helpers/extends")},871:e=>{"use strict";e.exports=require("buffer")},9003:e=>{"use strict";e.exports=require("classnames")},5572:e=>{"use strict";e.exports=require("immutable")},9793:e=>{"use strict";e.exports=require("js-yaml")},1712:e=>{"use strict";e.exports=require("lodash/get")},5716:e=>{"use strict";e.exports=require("lodash/isFunction")},541:e=>{"use strict";e.exports=require("lodash/memoize")},580:e=>{"use strict";e.exports=require("prop-types")},185:e=>{"use strict";e.exports=require("randombytes")},6689:e=>{"use strict";e.exports=require("react")},2807:e=>{"use strict";e.exports=require("react-copy-to-clipboard")},8082:e=>{"use strict";e.exports=require("react-immutable-proptypes")},6695:e=>{"use strict";e.exports=require("redux")},963:e=>{"use strict";e.exports=require("remarkable")},6814:e=>{"use strict";e.exports=require("reselect")},41:e=>{"use strict";e.exports=require("serialize-error")},6765:e=>{"use strict";e.exports=require("swagger-client/es/helpers")},3883:e=>{"use strict";e.exports=require("url-parse")}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.d(n,{default:()=>Cn});var e={};r.r(e),r.d(e,{Button:()=>lr,Col:()=>ar,Collapse:()=>mr,Container:()=>nr,Input:()=>cr,Link:()=>pr,Row:()=>or,Select:()=>ur,TextArea:()=>ir});var t={};r.r(t),r.d(t,{JsonSchemaArrayItemFile:()=>on,JsonSchemaArrayItemText:()=>an,JsonSchemaForm:()=>rn,JsonSchema_array:()=>sn,JsonSchema_boolean:()=>ln,JsonSchema_object:()=>un,JsonSchema_string:()=>nn});const s=require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of");var a=r.n(s),o=r(9998),l=r.n(o),i=r(7252),c=r.n(i),u=r(8344),p=r.n(u);const d=require("deep-extend");var m=r.n(d),h=r(593),g=r.n(h),f=r(4994),y=r.n(f),E=r(600),v=r.n(E),S=r(7104),C=r.n(S),b=r(66),x=r.n(b),w=r(3942),_=r.n(w),A=r(4883),I=r.n(A),N=r(6689),q=r.n(N),T=r(6695),R=r(5572),P=r.n(R);const k=require("redux-immutable");var O=r(41);const M=require("lodash/merge");var j=r.n(M),V=r(4966),D=r(7504),L=r(1890);const U=e=>e;class z{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,n,s;m()(this,{state:{},plugins:[],pluginsOptions:{},system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},t),this.getSystem=g()(e=this._getSystem).call(e,this),this.store=(r=U,n=(0,R.fromJS)(this.state),s=this.getSystem,function(e,t,r){let n=[(0,L._5)(r)];const s=D.Z.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||T.compose;return(0,T.createStore)(e,t,s((0,T.applyMiddleware)(...n)))}(r,n,s)),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r=B(e,this.getSystem(),this.pluginsOptions);J(this.system,r),t&&this.buildSystem();$.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getStore().dispatch,r=this.getStore().getState;this.boundSystem=y()({},this.getRootInjects(),this.getWrappedAndBoundActions(t),this.getWrappedAndBoundSelectors(r,this.getSystem),this.getStateThunks(r),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){var e,t,r;return y()({getSystem:this.getSystem,getStore:g()(e=this.getStore).call(e,this),getComponents:g()(t=this.getComponents).call(t,this),getState:this.getStore().getState,getConfigs:g()(r=this._getConfigs).call(r,this),Im:P(),React:q()},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){var e;this.store.replaceReducer((e=this.system.statePlugins,function(e){var t;let r=x()(t=c()(e)).call(t,((t,r)=>(t[r]=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new R.Map,r=arguments.length>1?arguments[1]:void 0;if(!e)return t;let n=e[r.type];if(n){const e=F(n)(t,r);return null===e?t:e}return t}}(e[r]),t)),{});return c()(r).length?(0,k.combineReducers)(r):U}((0,L.Ay)(e,(e=>e.reducers)))))}getType(e){let t=e[0].toUpperCase()+v()(e).call(e,1);return(0,L.Q2)(this.system.statePlugins,((r,n)=>{let s=r[e];if(s)return{[n+t]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){let e=this.getType("actions");return(0,L.Ay)(e,(e=>(0,L.Q2)(e,((e,t)=>{if((0,L.LQ)(e))return{[t]:e}}))))}getWrappedAndBoundActions(e){var t=this;let r=this.getBoundActions(e);return(0,L.Ay)(r,((e,r)=>{let n=this.system.statePlugins[v()(r).call(r,0,-7)].wrapActions;return n?(0,L.Ay)(e,((e,r)=>{let s=n[r];return s?(C()(s)||(s=[s]),x()(s).call(s,((e,r)=>{let n=function(){return r(e,t.getSystem())(...arguments)};if(!(0,L.LQ)(n))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return F(n)}),e||Function.prototype)):e})):e}))}getWrappedAndBoundSelectors(e,t){var r=this;let n=this.getBoundSelectors(e,t);return(0,L.Ay)(n,((t,n)=>{let s=[v()(n).call(n,0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?(0,L.Ay)(t,((t,n)=>{let o=a[n];return o?(C()(o)||(o=[o]),x()(o).call(o,((t,n)=>{let a=function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n(t,r.getSystem())(e().getIn(s),...o)};if(!(0,L.LQ)(a))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return a}),t||Function.prototype)):t})):t}))}getStates(e){var t;return x()(t=c()(this.system.statePlugins)).call(t,((t,r)=>(t[r]=e.get(r),t)),{})}getStateThunks(e){var t;return x()(t=c()(this.system.statePlugins)).call(t,((t,r)=>(t[r]=()=>e().get(r),t)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const t=this.system.components[e];return C()(t)?x()(t).call(t,((e,t)=>t(e,this.getSystem()))):void 0!==e?this.system.components[e]:this.system.components}getBoundSelectors(e,t){return(0,L.Ay)(this.getSelectors(),((r,n)=>{let s=[v()(n).call(n,0,-9)];const a=()=>e().getIn(s);return(0,L.Ay)(r,(e=>function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];let o=F(e).apply(null,[a(),...n]);return"function"==typeof o&&(o=F(o)(t())),o}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const t=this.getActions(),r=e=>"function"!=typeof e?(0,L.Ay)(e,(e=>r(e))):function(){var t=null;try{t=e(...arguments)}catch(e){t={type:V.NEW_THROWN_ERR,error:!0,payload:(0,O.serializeError)(e)}}finally{return t}};return(0,L.Ay)(t,(t=>(0,T.bindActionCreators)(r(t),e)))}getMapStateToProps(){return()=>y()({},this.getSystem())}getMapDispatchToProps(e){return t=>m()({},this.getWrappedAndBoundActions(t),this.getFn(),e)}}function B(e,t,r){if((0,L.Kn)(e)&&!(0,L.kJ)(e))return j()({},e);if((0,L.Wl)(e))return B(e(t),t,r);if((0,L.kJ)(e)){var n;const s="chain"===r.pluginLoadType?t.getComponents():{};return x()(n=_()(e).call(e,(e=>B(e,t,r)))).call(n,J,s)}return{}}function $(e,t){let{hasLoaded:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r;return(0,L.Kn)(e)&&!(0,L.kJ)(e)&&"function"==typeof e.afterLoad&&(n=!0,F(e.afterLoad).call(this,t)),(0,L.Wl)(e)?$.call(this,e(t),t,{hasLoaded:n}):(0,L.kJ)(e)?_()(e).call(e,(e=>$.call(this,e,t,{hasLoaded:n}))):n}function J(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,L.Kn)(e))return{};if(!(0,L.Kn)(t))return e;t.wrapComponents&&((0,L.Ay)(t.wrapComponents,((r,n)=>{const s=e.components&&e.components[n];s&&C()(s)?(e.components[n]=I()(s).call(s,[r]),delete t.wrapComponents[n]):s&&(e.components[n]=[s,r],delete t.wrapComponents[n])})),c()(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:r}=e;if((0,L.Kn)(r))for(let e in r){const a=r[e];if(!(0,L.Kn)(a))continue;const{wrapActions:o,wrapSelectors:l}=a;if((0,L.Kn)(o))for(let r in o){let s=o[r];var n;if(C()(s)||(s=[s],o[r]=s),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapActions&&t.statePlugins[e].wrapActions[r])t.statePlugins[e].wrapActions[r]=I()(n=o[r]).call(n,t.statePlugins[e].wrapActions[r])}if((0,L.Kn)(l))for(let r in l){let n=l[r];var s;if(C()(n)||(n=[n],l[r]=n),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapSelectors&&t.statePlugins[e].wrapSelectors[r])t.statePlugins[e].wrapSelectors[r]=I()(s=l[r]).call(s,t.statePlugins[e].wrapSelectors[r])}}return m()(e,t)}function F(e){let{logErrors:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"!=typeof e?e:function(){try{for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return e.call(this,...n)}catch(e){return t&&console.error(e),null}}}var W=r(7793),H=r(6821),K=r(7038),Z=r(3420),G=r(8883),Y=r(6575),X=r(9150),Q=r(8901),ee=r(3705),te=r(8525),re=r(8011),ne=r(1661),se=r(4980),ae=r(9978),oe=r(8560),le=r(9595),ie=r(1093),ce=r.n(ie),ue=r(8493),pe=r.n(ue),de=(r(580),r(8082),r(6765));class me extends N.PureComponent{constructor(e,t){super(e,t),ce()(this,"toggleShown",(()=>{let{layoutActions:e,tag:t,operationId:r,isShown:n}=this.props;const s=this.getResolvedSubtree();n||void 0!==s||this.requestResolvedSubtree(),e.show(["operations",t,r],!n)})),ce()(this,"onCancelClick",(()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})})),ce()(this,"onTryoutClick",(()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})})),ce()(this,"onExecute",(()=>{this.setState({executeInProgress:!0})})),ce()(this,"getResolvedSubtree",(()=>{const{specSelectors:e,path:t,method:r,specPath:n}=this.props;return n?e.specResolvedSubtree(n.toJS()):e.specResolvedSubtree(["paths",t,r])})),ce()(this,"requestResolvedSubtree",(()=>{const{specActions:e,path:t,method:r,specPath:n}=this.props;return n?e.requestResolvedSubtree(n.toJS()):e.requestResolvedSubtree(["paths",t,r])}));const{tryItOutEnabled:r}=e.getConfigs();this.state={tryItOutEnabled:!0===r||"true"===r,executeInProgress:!1}}mapStateToProps(e,t){const{op:r,layoutSelectors:n,getConfigs:s}=t,{docExpansion:a,deepLinking:o,displayOperationId:l,displayRequestDuration:i,supportedSubmitMethods:c}=s(),u=n.showSummary(),p=r.getIn(["operation","__originalOperationId"])||r.getIn(["operation","operationId"])||(0,de.opId)(r.get("operation"),t.path,t.method)||r.get("id"),d=["operations",t.tag,p],m=o&&"false"!==o,h=pe()(c).call(c,t.method)>=0&&(void 0===t.allowTryItOut?t.specSelectors.allowTryItOutFor(t.path,t.method):t.allowTryItOut),g=r.getIn(["operation","security"])||t.specSelectors.security();return{operationId:p,isDeepLinkingEnabled:m,showSummary:u,displayOperationId:l,displayRequestDuration:i,allowTryItOut:h,security:g,isAuthorized:t.authSelectors.isAuthorized(g),isShown:n.isShown(d,"full"===a),jumpToKey:`paths.${t.path}.${t.method}`,response:t.specSelectors.responseFor(t.path,t.method),request:t.specSelectors.requestFor(t.path,t.method)}}componentDidMount(){const{isShown:e}=this.props,t=this.getResolvedSubtree();e&&void 0===t&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(e){const{response:t,isShown:r}=e,n=this.getResolvedSubtree();t!==this.props.response&&this.setState({executeInProgress:!1}),r&&void 0===n&&this.requestResolvedSubtree()}render(){let{op:e,tag:t,path:r,method:n,security:s,isAuthorized:a,operationId:o,showSummary:l,isShown:i,jumpToKey:c,allowTryItOut:u,response:p,request:d,displayOperationId:m,displayRequestDuration:h,isDeepLinkingEnabled:g,specPath:f,specSelectors:y,specActions:E,getComponent:v,getConfigs:S,layoutSelectors:C,layoutActions:b,authActions:x,authSelectors:w,oas3Actions:_,oas3Selectors:A,fn:I}=this.props;const N=v("operation"),T=this.getResolvedSubtree()||(0,R.Map)(),P=(0,R.fromJS)({op:T,tag:t,path:r,summary:e.getIn(["operation","summary"])||"",deprecated:T.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:n,security:s,isAuthorized:a,operationId:o,originalOperationId:T.getIn(["operation","__originalOperationId"]),showSummary:l,isShown:i,jumpToKey:c,allowTryItOut:u,request:d,displayOperationId:m,displayRequestDuration:h,isDeepLinkingEnabled:g,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return q().createElement(N,{operation:P,response:p,request:d,isShown:i,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:f,specActions:E,specSelectors:y,oas3Actions:_,oas3Selectors:A,layoutActions:b,layoutSelectors:C,authActions:x,authSelectors:w,getComponent:v,getConfigs:S,fn:I})}}ce()(me,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});class he extends q().Component{getLayout(){let{getComponent:e,layoutSelectors:t}=this.props;const r=t.current(),n=e(r,!0);return n||(()=>q().createElement("h1",null,' No layout defined for "',r,'" '))}render(){const e=this.getLayout();return q().createElement(e,null)}}he.defaultProps={};class ge extends q().Component{constructor(){super(...arguments),ce()(this,"close",(()=>{let{authActions:e}=this.props;e.showDefinitions(!1)}))}render(){var e;let{authSelectors:t,authActions:r,getComponent:n,errSelectors:s,specSelectors:a,fn:{AST:o={}}}=this.props,l=t.shownDefinitions();const i=n("auths");return q().createElement("div",{className:"dialog-ux"},q().createElement("div",{className:"backdrop-ux"}),q().createElement("div",{className:"modal-ux"},q().createElement("div",{className:"modal-dialog-ux"},q().createElement("div",{className:"modal-ux-inner"},q().createElement("div",{className:"modal-ux-header"},q().createElement("h3",null,"Available authorizations"),q().createElement("button",{type:"button",className:"close-modal",onClick:this.close},q().createElement("svg",{width:"20",height:"20"},q().createElement("use",{href:"#close",xlinkHref:"#close"})))),q().createElement("div",{className:"modal-ux-content"},_()(e=l.valueSeq()).call(e,((e,l)=>q().createElement(i,{key:l,AST:o,definitions:e,getComponent:n,errSelectors:s,authSelectors:t,authActions:r,specSelectors:a}))))))))}}class fe extends q().Component{render(){let{isAuthorized:e,showPopup:t,onClick:r,getComponent:n}=this.props;const s=n("authorizationPopup",!0);return q().createElement("div",{className:"auth-wrapper"},q().createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:r},q().createElement("span",null,"Authorize"),q().createElement("svg",{width:"20",height:"20"},q().createElement("use",{href:e?"#locked":"#unlocked",xlinkHref:e?"#locked":"#unlocked"}))),t&&q().createElement(s,null))}}class ye extends q().Component{render(){const{authActions:e,authSelectors:t,specSelectors:r,getComponent:n}=this.props,s=r.securityDefinitions(),a=t.definitionsToAuthorize(),o=n("authorizeBtn");return s?q().createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!t.authorized().size,showPopup:!!t.shownDefinitions(),getComponent:n}):null}}class Ee extends q().Component{constructor(){super(...arguments),ce()(this,"onClick",(e=>{e.stopPropagation();let{onClick:t}=this.props;t&&t()}))}render(){let{isAuthorized:e}=this.props;return q().createElement("button",{className:e?"authorization__btn locked":"authorization__btn unlocked","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},q().createElement("svg",{width:"20",height:"20"},q().createElement("use",{href:e?"#locked":"#unlocked",xlinkHref:e?"#locked":"#unlocked"})))}}class ve extends q().Component{constructor(e,t){super(e,t),ce()(this,"onAuthChange",(e=>{let{name:t}=e;this.setState({[t]:e})})),ce()(this,"submitAuth",(e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)})),ce()(this,"logoutClick",(e=>{e.preventDefault();let{authActions:t,definitions:r}=this.props,n=_()(r).call(r,((e,t)=>t)).toArray();this.setState(x()(n).call(n,((e,t)=>(e[t]="",e)),{})),t.logoutWithPersistOption(n)})),ce()(this,"close",(e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)})),this.state={}}render(){var e;let{definitions:t,getComponent:r,authSelectors:n,errSelectors:s}=this.props;const a=r("AuthItem"),o=r("oauth2",!0),i=r("Button");let c=n.authorized(),u=l()(t).call(t,((e,t)=>!!c.get(t))),p=l()(t).call(t,(e=>"oauth2"!==e.get("type"))),d=l()(t).call(t,(e=>"oauth2"===e.get("type")));return q().createElement("div",{className:"auth-container"},!!p.size&&q().createElement("form",{onSubmit:this.submitAuth},_()(p).call(p,((e,t)=>q().createElement(a,{key:t,schema:e,name:t,getComponent:r,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s}))).toArray(),q().createElement("div",{className:"auth-btn-wrapper"},p.size===u.size?q().createElement(i,{className:"btn modal-btn auth",onClick:this.logoutClick},"Logout"):q().createElement(i,{type:"submit",className:"btn modal-btn auth authorize"},"Authorize"),q().createElement(i,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),d&&d.size?q().createElement("div",null,q().createElement("div",{className:"scope-def"},q().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."),q().createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),_()(e=l()(t).call(t,(e=>"oauth2"===e.get("type")))).call(e,((e,t)=>q().createElement("div",{key:t},q().createElement(o,{authorized:c,schema:e,name:t})))).toArray()):null)}}class Se extends q().Component{render(){let{schema:e,name:t,getComponent:r,onAuthChange:n,authorized:s,errSelectors:a}=this.props;const o=r("apiKeyAuth"),l=r("basicAuth");let i;const c=e.get("type");switch(c){case"apiKey":i=q().createElement(o,{key:t,schema:e,name:t,errSelectors:a,authorized:s,getComponent:r,onChange:n});break;case"basic":i=q().createElement(l,{key:t,schema:e,name:t,errSelectors:a,authorized:s,getComponent:r,onChange:n});break;default:i=q().createElement("div",{key:t},"Unknown security definition type ",c)}return q().createElement("div",{key:`${t}-jump`},i)}}class Ce extends q().Component{render(){let{error:e}=this.props,t=e.get("level"),r=e.get("message"),n=e.get("source");return q().createElement("div",{className:"errors"},q().createElement("b",null,n," ",t),q().createElement("span",null,r))}}class be extends q().Component{constructor(e,t){super(e,t),ce()(this,"onChange",(e=>{let{onChange:t}=this.props,r=e.target.value,n=y()({},this.state,{value:r});this.setState(n),t(n)}));let{name:r,schema:n}=this.props,s=this.getValue();this.state={name:r,schema:n,value:s}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}render(){var e,t;let{schema:r,getComponent:n,errSelectors:s,name:a}=this.props;const o=n("Input"),i=n("Row"),c=n("Col"),u=n("authError"),p=n("Markdown",!0),d=n("JumpToPath",!0);let m=this.getValue(),h=l()(e=s.allErrors()).call(e,(e=>e.get("authId")===a));return q().createElement("div",null,q().createElement("h4",null,q().createElement("code",null,a||r.get("name"))," (apiKey)",q().createElement(d,{path:["securityDefinitions",a]})),m&&q().createElement("h6",null,"Authorized"),q().createElement(i,null,q().createElement(p,{source:r.get("description")})),q().createElement(i,null,q().createElement("p",null,"Name: ",q().createElement("code",null,r.get("name")))),q().createElement(i,null,q().createElement("p",null,"In: ",q().createElement("code",null,r.get("in")))),q().createElement(i,null,q().createElement("label",null,"Value:"),m?q().createElement("code",null," ****** "):q().createElement(c,null,q().createElement(o,{type:"text",onChange:this.onChange,autoFocus:!0}))),_()(t=h.valueSeq()).call(t,((e,t)=>q().createElement(u,{error:e,key:t}))))}}class xe extends q().Component{constructor(e,t){super(e,t),ce()(this,"onChange",(e=>{let{onChange:t}=this.props,{value:r,name:n}=e.target,s=this.state.value;s[n]=r,this.setState({value:s}),t(this.state)}));let{schema:r,name:n}=this.props,s=this.getValue().username;this.state={name:n,schema:r,value:s?{username:s}:{}}}getValue(){let{authorized:e,name:t}=this.props;return e&&e.getIn([t,"value"])||{}}render(){var e,t;let{schema:r,getComponent:n,name:s,errSelectors:a}=this.props;const o=n("Input"),i=n("Row"),c=n("Col"),u=n("authError"),p=n("JumpToPath",!0),d=n("Markdown",!0);let m=this.getValue().username,h=l()(e=a.allErrors()).call(e,(e=>e.get("authId")===s));return q().createElement("div",null,q().createElement("h4",null,"Basic authorization",q().createElement(p,{path:["securityDefinitions",s]})),m&&q().createElement("h6",null,"Authorized"),q().createElement(i,null,q().createElement(d,{source:r.get("description")})),q().createElement(i,null,q().createElement("label",null,"Username:"),m?q().createElement("code",null," ",m," "):q().createElement(c,null,q().createElement(o,{type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),q().createElement(i,null,q().createElement("label",null,"Password:"),m?q().createElement("code",null," ****** "):q().createElement(c,null,q().createElement(o,{autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),_()(t=h.valueSeq()).call(t,((e,t)=>q().createElement(u,{error:e,key:t}))))}}function we(e){const{example:t,showValue:r,getComponent:n,getConfigs:s}=e,a=n("Markdown",!0),o=n("highlightCode");return t?q().createElement("div",{className:"example"},t.get("description")?q().createElement("section",{className:"example__section"},q().createElement("div",{className:"example__section-header"},"Example Description"),q().createElement("p",null,q().createElement(a,{source:t.get("description")}))):null,r&&t.has("value")?q().createElement("section",{className:"example__section"},q().createElement("div",{className:"example__section-header"},"Example Value"),q().createElement(o,{getConfigs:s,value:(0,L.Pz)(t.get("value"))})):null):null}var _e=r(2611),Ae=r.n(_e);class Ie extends q().PureComponent{constructor(){var e;super(...arguments),e=this,ce()(this,"_onSelect",(function(t){let{isSyntheticChange:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof e.props.onSelect&&e.props.onSelect(t,{isSyntheticChange:r})})),ce()(this,"_onDomSelect",(e=>{if("function"==typeof this.props.onSelect){const t=e.target.selectedOptions[0].getAttribute("value");this._onSelect(t,{isSyntheticChange:!1})}})),ce()(this,"getCurrentExample",(()=>{const{examples:e,currentExampleKey:t}=this.props,r=e.get(t),n=e.keySeq().first(),s=e.get(n);return r||s||Ae()({})}))}componentDidMount(){const{onSelect:e,examples:t}=this.props;if("function"==typeof e){const e=t.first(),r=t.keyOf(e);this._onSelect(r,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:t,examples:r}=e;if(r!==this.props.examples&&!r.has(t)){const e=r.first(),t=r.keyOf(e);this._onSelect(t,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:t,isValueModified:r,isModifiedValueAvailable:n,showLabels:s}=this.props;return q().createElement("div",{className:"examples-select"},s?q().createElement("span",{className:"examples-select__section-label"},"Examples: "):null,q().createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:n&&r?"__MODIFIED__VALUE__":t||""},n?q().createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,_()(e).call(e,((e,t)=>q().createElement("option",{key:t,value:t},e.get("summary")||t))).valueSeq()))}}ce()(Ie,"defaultProps",{examples:P().Map({}),onSelect:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...t)},currentExampleKey:null,showLabels:!0});const Ne=e=>R.List.isList(e)?e:(0,L.Pz)(e);class qe extends q().PureComponent{constructor(e){var t;super(e),t=this,ce()(this,"_getStateForCurrentNamespace",(()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,R.Map)()).toObject()})),ce()(this,"_setStateForCurrentNamespace",(e=>{const{currentNamespace:t}=this.props;return this._setStateForNamespace(t,e)})),ce()(this,"_setStateForNamespace",((e,t)=>{const r=(this.state[e]||(0,R.Map)()).mergeDeep(t);return this.setState({[e]:r})})),ce()(this,"_isCurrentUserInputSameAsExampleValue",(()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e})),ce()(this,"_getValueForExample",((e,t)=>{const{examples:r}=t||this.props;return Ne((r||(0,R.Map)({})).getIn([e,"value"]))})),ce()(this,"_getCurrentExampleValue",(e=>{const{currentKey:t}=e||this.props;return this._getValueForExample(t,e||this.props)})),ce()(this,"_onExamplesSelect",(function(e){let{isSyntheticChange:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{onSelect:n,updateValue:s,currentUserInputValue:a,userHasEditedBody:o}=t.props,{lastUserEditedValue:l}=t._getStateForCurrentNamespace(),i=t._getValueForExample(e);if("__MODIFIED__VALUE__"===e)return s(Ne(l)),t._setStateForCurrentNamespace({isModifiedValueSelected:!0});if("function"==typeof n){for(var c=arguments.length,u=new Array(c>2?c-2:0),p=2;p<c;p++)u[p-2]=arguments[p];n(e,{isSyntheticChange:r},...u)}t._setStateForCurrentNamespace({lastDownstreamValue:i,isModifiedValueSelected:r&&o||!!a&&a!==i}),r||"function"==typeof s&&s(Ne(i))}));const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,R.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:t,examples:r,onSelect:n,userHasEditedBody:s}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),i=this._getValueForExample(e.currentKey,e),c=l()(r).call(r,(e=>e.get("value")===t||(0,L.Pz)(e.get("value"))===t));if(c.size){let t;t=c.has(e.currentKey)?e.currentKey:c.keySeq().first(),n(t,{isSyntheticChange:!0})}else t!==this.props.currentUserInputValue&&t!==a&&t!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:s||t!==i}))}render(){const{currentUserInputValue:e,examples:t,currentKey:r,getComponent:n,userHasEditedBody:s}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:l}=this._getStateForCurrentNamespace(),i=n("ExamplesSelect");return q().createElement(i,{examples:t,currentExampleKey:r,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:void 0!==e&&l&&e!==this._getCurrentExampleValue()||s})}}ce()(qe,"defaultProps",{userHasEditedBody:!1,examples:(0,R.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...t)},updateValue:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...t)}});var Te=r(1733),Re=r.n(Te),Pe=r(874),ke=r.n(Pe),Oe=r(2605),Me=r.n(Oe),je=r(3883),Ve=r.n(je);class De extends q().Component{constructor(e,t){super(e,t),ce()(this,"close",(e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)})),ce()(this,"authorize",(()=>{let{authActions:e,errActions:t,getConfigs:r,authSelectors:n,oas3Selectors:s}=this.props,a=r(),o=n.getConfigs();t.clear({authId:name,type:"auth",source:"auth"}),function(e){let{auth:t,authActions:r,errActions:n,configs:s,authConfigs:a={},currentServer:o}=e,{schema:l,scopes:i,name:c,clientId:u}=t,p=l.get("flow"),d=[];switch(p){case"password":return void r.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void r.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":d.push("response_type=code");break;case"implicit":d.push("response_type=token")}"string"==typeof u&&d.push("client_id="+encodeURIComponent(u));let m=s.oauth2RedirectUrl;if(void 0===m)return void n.newAuthErr({authId:c,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});d.push("redirect_uri="+encodeURIComponent(m));let h=[];if(C()(i)?h=i:P().List.isList(i)&&(h=i.toArray()),h.length>0){let e=a.scopeSeparator||" ";d.push("scope="+encodeURIComponent(h.join(e)))}let g=(0,L.r3)(new Date);if(d.push("state="+encodeURIComponent(g)),void 0!==a.realm&&d.push("realm="+encodeURIComponent(a.realm)),("authorizationCode"===p||"authorization_code"===p||"accessCode"===p)&&a.usePkceWithAuthorizationCodeGrant){const e=(0,L.Uj)(),r=(0,L.Xb)(e);d.push("code_challenge="+r),d.push("code_challenge_method=S256"),t.codeVerifier=e}let{additionalQueryStringParams:f}=a;for(let e in f){var y;void 0!==f[e]&&d.push(_()(y=[e,f[e]]).call(y,encodeURIComponent).join("="))}const E=l.get("authorizationUrl");let v;v=o?Ve()((0,L.Nm)(E),o,!0).toString():(0,L.Nm)(E);let S,b=[v,d.join("&")].join(-1===pe()(E).call(E,"?")?"?":"&");S="implicit"===p?r.preAuthorizeImplicit:a.useBasicAuthenticationWithAccessCodeGrant?r.authorizeAccessCodeWithBasicAuthentication:r.authorizeAccessCodeWithFormParams,r.authPopup(b,{auth:t,state:g,redirectUrl:m,callback:S,errCb:n.newAuthErr})}({auth:this.state,currentServer:s.serverEffectiveValue(s.selectedServer()),authActions:e,errActions:t,configs:a,authConfigs:o})})),ce()(this,"onScopeChange",(e=>{var t,r;let{target:n}=e,{checked:s}=n,a=n.dataset.value;if(s&&-1===pe()(t=this.state.scopes).call(t,a)){var o;let e=I()(o=this.state.scopes).call(o,[a]);this.setState({scopes:e})}else if(!s&&pe()(r=this.state.scopes).call(r,a)>-1){var i;this.setState({scopes:l()(i=this.state.scopes).call(i,(e=>e!==a))})}})),ce()(this,"onInputChange",(e=>{let{target:{dataset:{name:t},value:r}}=e,n={[t]:r};this.setState(n)})),ce()(this,"selectScopes",(e=>{var t;e.target.dataset.all?this.setState({scopes:Re()(ke()(t=this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).call(t))}):this.setState({scopes:[]})})),ce()(this,"logout",(e=>{e.preventDefault();let{authActions:t,errActions:r,name:n}=this.props;r.clear({authId:n,type:"auth",source:"auth"}),t.logoutWithPersistOption([n])}));let{name:r,schema:n,authorized:s,authSelectors:a}=this.props,o=s&&s.get(r),i=a.getConfigs()||{},c=o&&o.get("username")||"",u=o&&o.get("clientId")||i.clientId||"",p=o&&o.get("clientSecret")||i.clientSecret||"",d=o&&o.get("passwordType")||"basic",m=o&&o.get("scopes")||i.scopes||[];"string"==typeof m&&(m=m.split(i.scopeSeparator||" ")),this.state={appName:i.appName,name:r,schema:n,scopes:m,clientId:u,clientSecret:p,username:c,password:"",passwordType:d}}render(){var e,t;let{schema:r,getComponent:n,authSelectors:s,errSelectors:a,name:o,specSelectors:i}=this.props;const c=n("Input"),u=n("Row"),p=n("Col"),d=n("Button"),m=n("authError"),h=n("JumpToPath",!0),g=n("Markdown",!0),f=n("InitializedInput"),{isOAS3:y}=i;let E=y()?r.get("openIdConnectUrl"):null;const v="implicit",S="password",C=y()?E?"authorization_code":"authorizationCode":"accessCode",b=y()?E?"client_credentials":"clientCredentials":"application";let x=!!(s.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,w=r.get("flow"),A=w===C&&x?w+" with PKCE":w,I=r.get("allowedScopes")||r.get("scopes"),N=!!s.authorized().get(o),T=l()(e=a.allErrors()).call(e,(e=>e.get("authId")===o)),R=!l()(T).call(T,(e=>"validation"===e.get("source"))).size,P=r.get("description");return q().createElement("div",null,q().createElement("h4",null,o," (OAuth2, ",A,") ",q().createElement(h,{path:["securityDefinitions",o]})),this.state.appName?q().createElement("h5",null,"Application: ",this.state.appName," "):null,P&&q().createElement(g,{source:r.get("description")}),N&&q().createElement("h6",null,"Authorized"),E&&q().createElement("p",null,"OpenID Connect URL: ",q().createElement("code",null,E)),(w===v||w===C)&&q().createElement("p",null,"Authorization URL: ",q().createElement("code",null,r.get("authorizationUrl"))),(w===S||w===C||w===b)&&q().createElement("p",null,"Token URL:",q().createElement("code",null," ",r.get("tokenUrl"))),q().createElement("p",{className:"flow"},"Flow: ",q().createElement("code",null,A)),w!==S?null:q().createElement(u,null,q().createElement(u,null,q().createElement("label",{htmlFor:"oauth_username"},"username:"),N?q().createElement("code",null," ",this.state.username," "):q().createElement(p,{tablet:10,desktop:10},q().createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),q().createElement(u,null,q().createElement("label",{htmlFor:"oauth_password"},"password:"),N?q().createElement("code",null," ****** "):q().createElement(p,{tablet:10,desktop:10},q().createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),q().createElement(u,null,q().createElement("label",{htmlFor:"password_type"},"Client credentials location:"),N?q().createElement("code",null," ",this.state.passwordType," "):q().createElement(p,{tablet:10,desktop:10},q().createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},q().createElement("option",{value:"basic"},"Authorization header"),q().createElement("option",{value:"request-body"},"Request body"))))),(w===b||w===v||w===C||w===S)&&(!N||N&&this.state.clientId)&&q().createElement(u,null,q().createElement("label",{htmlFor:"client_id"},"client_id:"),N?q().createElement("code",null," ****** "):q().createElement(p,{tablet:10,desktop:10},q().createElement(f,{id:"client_id",type:"text",required:w===S,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(w===b||w===C&&!x||w===S)&&q().createElement(u,null,q().createElement("label",{htmlFor:"client_secret"},"client_secret:"),N?q().createElement("code",null," ****** "):q().createElement(p,{tablet:10,desktop:10},q().createElement(f,{id:"client_secret",initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!N&&I&&I.size?q().createElement("div",{className:"scopes"},q().createElement("h2",null,"Scopes:",q().createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),q().createElement("a",{onClick:this.selectScopes},"select none")),_()(I).call(I,((e,t)=>{var r;return q().createElement(u,{key:t},q().createElement("div",{className:"checkbox"},q().createElement(c,{"data-value":t,id:`${t}-${w}-checkbox-${this.state.name}`,disabled:N,checked:Me()(r=this.state.scopes).call(r,t),type:"checkbox",onChange:this.onScopeChange}),q().createElement("label",{htmlFor:`${t}-${w}-checkbox-${this.state.name}`},q().createElement("span",{className:"item"}),q().createElement("div",{className:"text"},q().createElement("p",{className:"name"},t),q().createElement("p",{className:"description"},e)))))})).toArray()):null,_()(t=T.valueSeq()).call(t,((e,t)=>q().createElement(m,{error:e,key:t}))),q().createElement("div",{className:"auth-btn-wrapper"},R&&(N?q().createElement(d,{className:"btn modal-btn auth authorize",onClick:this.logout},"Logout"):q().createElement(d,{className:"btn modal-btn auth authorize",onClick:this.authorize},"Authorize")),q().createElement(d,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class Le extends N.Component{constructor(){super(...arguments),ce()(this,"onClick",(()=>{let{specActions:e,path:t,method:r}=this.props;e.clearResponse(t,r),e.clearRequest(t,r)}))}render(){return q().createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const Ue=e=>{let{headers:t}=e;return q().createElement("div",null,q().createElement("h5",null,"Response headers"),q().createElement("pre",{className:"microlight"},t))},ze=e=>{let{duration:t}=e;return q().createElement("div",null,q().createElement("h5",null,"Request duration"),q().createElement("pre",{className:"microlight"},t," ms"))};class Be extends q().Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:t,getConfigs:r,displayRequestDuration:n,specSelectors:s,path:a,method:o}=this.props,{showMutatedRequest:l,requestSnippetsEnabled:i}=r(),u=l?s.mutatedRequestFor(a,o):s.requestFor(a,o),p=e.get("status"),d=u.get("url"),m=e.get("headers").toJS(),h=e.get("notDocumented"),g=e.get("error"),f=e.get("text"),y=e.get("duration"),E=c()(m),v=m["content-type"]||m["Content-Type"],S=t("responseBody"),b=_()(E).call(E,(e=>{var t=C()(m[e])?m[e].join():m[e];return q().createElement("span",{className:"headerline",key:e}," ",e,": ",t," ")})),x=0!==b.length,w=t("Markdown",!0),A=t("RequestSnippets",!0),I=t("curl");return q().createElement("div",null,u&&(!0===i||"true"===i?q().createElement(A,{request:u}):q().createElement(I,{request:u,getConfigs:r})),d&&q().createElement("div",null,q().createElement("div",{className:"request-url"},q().createElement("h4",null,"Request URL"),q().createElement("pre",{className:"microlight"},d))),q().createElement("h4",null,"Server response"),q().createElement("table",{className:"responses-table live-responses-table"},q().createElement("thead",null,q().createElement("tr",{className:"responses-header"},q().createElement("td",{className:"col_header response-col_status"},"Code"),q().createElement("td",{className:"col_header response-col_description"},"Details"))),q().createElement("tbody",null,q().createElement("tr",{className:"response"},q().createElement("td",{className:"response-col_status"},p,h?q().createElement("div",{className:"response-undocumented"},q().createElement("i",null," Undocumented ")):null),q().createElement("td",{className:"response-col_description"},g?q().createElement(w,{source:`${""!==e.get("name")?`${e.get("name")}: `:""}${e.get("message")}`}):null,f?q().createElement(S,{content:f,contentType:v,url:d,headers:m,getConfigs:r,getComponent:t}):null,x?q().createElement(Ue,{headers:b}):null,n&&y?q().createElement(ze,{duration:y}):null)))))}}var $e=r(5623);const Je=["get","put","post","delete","options","head","patch"],Fe=I()(Je).call(Je,["trace"]);class We extends q().Component{constructor(){super(...arguments),ce()(this,"renderOperationTag",((e,t)=>{const{specSelectors:r,getComponent:n,oas3Selectors:s,layoutSelectors:a,layoutActions:o,getConfigs:l}=this.props,i=n("OperationContainer",!0),c=n("OperationTag"),u=e.get("operations");return q().createElement(c,{key:"operation-"+t,tagObj:e,tag:t,oas3Selectors:s,layoutSelectors:a,layoutActions:o,getConfigs:l,getComponent:n,specUrl:r.url()},q().createElement("div",{className:"operation-tag-content"},_()(u).call(u,(e=>{const n=e.get("path"),s=e.get("method"),a=P().List(["paths",n,s]),o=r.isOAS3()?Fe:Je;return-1===pe()(o).call(o,s)?null:q().createElement(i,{key:`${n}-${s}`,specPath:a,op:e,path:n,method:s,tag:t})})).toArray()))}))}render(){let{specSelectors:e}=this.props;const t=e.taggedOperations();return 0===t.size?q().createElement("h3",null," No operations defined in spec!"):q().createElement("div",null,_()(t).call(t,this.renderOperationTag).toArray(),t.size<1?q().createElement("h3",null," No operations defined in spec! "):null)}}var He=r(9478),Ke=r.n(He);function Ze(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function Ge(e,t){return e?Ze(e)?(r=e).match(/^\/\//i)?`${window.location.protocol}${r}`:r:new(Ke())(e,t).href:t;var r}function Ye(e,t){let{selectedServer:r=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return;if(Ze(e))return e;const n=Ge(r,t);return Ze(n)?new(Ke())(e,n).href:new(Ke())(e,window.location.href).href}function Xe(e,t){let{selectedServer:r=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return Ye(e,t,{selectedServer:r})}catch{return}}class Qe extends q().Component{render(){const{tagObj:e,tag:t,children:r,oas3Selectors:n,layoutSelectors:s,layoutActions:a,getConfigs:o,getComponent:l,specUrl:i}=this.props;let{docExpansion:c,deepLinking:u}=o();const p=u&&"false"!==u,d=l("Collapse"),m=l("Markdown",!0),h=l("DeepLink"),g=l("Link");let f,y=e.getIn(["tagDetails","description"],null),E=e.getIn(["tagDetails","externalDocs","description"]),v=e.getIn(["tagDetails","externalDocs","url"]);f=(0,L.Wl)(n)&&(0,L.Wl)(n.selectedServer)?Xe(v,i,{selectedServer:n.selectedServer()}):v;let S=["operations-tag",t],C=s.isShown(S,"full"===c||"list"===c);return q().createElement("div",{className:C?"opblock-tag-section is-open":"opblock-tag-section"},q().createElement("h3",{onClick:()=>a.show(S,!C),className:y?"opblock-tag":"opblock-tag no-desc",id:_()(S).call(S,(e=>(0,L.J6)(e))).join("-"),"data-tag":t,"data-is-open":C},q().createElement(h,{enabled:p,isShown:C,path:(0,L.oJ)(t),text:t}),y?q().createElement("small",null,q().createElement(m,{source:y})):q().createElement("small",null),f?q().createElement("div",{className:"info__externaldocs"},q().createElement("small",null,q().createElement(g,{href:(0,L.Nm)(f),onClick:e=>e.stopPropagation(),target:"_blank"},E||f))):null,q().createElement("button",{"aria-expanded":C,className:"expand-operation",title:C?"Collapse operation":"Expand operation",onClick:()=>a.show(S,!C)},q().createElement("svg",{className:"arrow",width:"20",height:"20","aria-hidden":"true",focusable:"false"},q().createElement("use",{href:C?"#large-arrow-up":"#large-arrow-down",xlinkHref:C?"#large-arrow-up":"#large-arrow-down"})))),q().createElement(d,{isOpened:C},r))}}ce()(Qe,"defaultProps",{tagObj:P().fromJS({}),tag:""});class et extends N.PureComponent{render(){let{specPath:e,response:t,request:n,toggleShown:s,onTryoutClick:a,onCancelClick:o,onExecute:l,fn:i,getComponent:c,getConfigs:u,specActions:p,specSelectors:d,authActions:m,authSelectors:h,oas3Actions:g,oas3Selectors:f}=this.props,y=this.props.operation,{deprecated:E,isShown:v,path:S,method:C,op:b,tag:x,operationId:w,allowTryItOut:_,displayRequestDuration:A,tryItOutEnabled:I,executeInProgress:N}=y.toJS(),{description:T,externalDocs:R,schemes:P}=b;const k=R?Xe(R.url,d.url(),{selectedServer:f.selectedServer()}):"";let O=y.getIn(["op"]),M=O.get("responses"),j=(0,L.gp)(O,["parameters"]),V=d.operationScheme(S,C),D=["operations",x,w],U=(0,L.nX)(O);const z=c("responses"),B=c("parameters"),$=c("execute"),J=c("clear"),F=c("Collapse"),W=c("Markdown",!0),H=c("schemes"),K=c("OperationServers"),Z=c("OperationExt"),G=c("OperationSummary"),Y=c("Link"),{showExtensions:X}=u();if(M&&t&&t.size>0){let e=!M.get(String(t.get("status")))&&!M.get("default");t=t.set("notDocumented",e)}let Q=[S,C];return q().createElement("div",{className:E?"opblock opblock-deprecated":v?`opblock opblock-${C} is-open`:`opblock opblock-${C}`,id:(0,L.J6)(D.join("-"))},q().createElement(G,{operationProps:y,isShown:v,toggleShown:s,getComponent:c,authActions:m,authSelectors:h,specPath:e}),q().createElement(F,{isOpened:v},q().createElement("div",{className:"opblock-body"},O&&O.size||null===O?null:q().createElement("img",{height:"32px",width:"32px",src:r(2517),className:"opblock-loading-animation"}),E&&q().createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),T&&q().createElement("div",{className:"opblock-description-wrapper"},q().createElement("div",{className:"opblock-description"},q().createElement(W,{source:T}))),k?q().createElement("div",{className:"opblock-external-docs-wrapper"},q().createElement("h4",{className:"opblock-title_normal"},"Find more details"),q().createElement("div",{className:"opblock-external-docs"},R.description&&q().createElement("span",{className:"opblock-external-docs__description"},q().createElement(W,{source:R.description})),q().createElement(Y,{target:"_blank",className:"opblock-external-docs__link",href:(0,L.Nm)(k)},k))):null,O&&O.size?q().createElement(B,{parameters:j,specPath:e.push("parameters"),operation:O,onChangeKey:Q,onTryoutClick:a,onCancelClick:o,tryItOutEnabled:I,allowTryItOut:_,fn:i,getComponent:c,specActions:p,specSelectors:d,pathMethod:[S,C],getConfigs:u,oas3Actions:g,oas3Selectors:f}):null,I?q().createElement(K,{getComponent:c,path:S,method:C,operationServers:O.get("servers"),pathServers:d.paths().getIn([S,"servers"]),getSelectedServer:f.selectedServer,setSelectedServer:g.setSelectedServer,setServerVariableValue:g.setServerVariableValue,getServerVariable:f.serverVariableValue,getEffectiveServerValue:f.serverEffectiveValue}):null,I&&_&&P&&P.size?q().createElement("div",{className:"opblock-schemes"},q().createElement(H,{schemes:P,path:S,method:C,specActions:p,currentScheme:V})):null,q().createElement("div",{className:I&&t&&_?"btn-group":"execute-wrapper"},I&&_?q().createElement($,{operation:O,specActions:p,specSelectors:d,oas3Selectors:f,oas3Actions:g,path:S,method:C,onExecute:l,disabled:N}):null,I&&t&&_?q().createElement(J,{specActions:p,path:S,method:C}):null),N?q().createElement("div",{className:"loading-container"},q().createElement("div",{className:"loading"})):null,M?q().createElement(z,{responses:M,request:n,tryItOutResponse:t,getComponent:c,getConfigs:u,specSelectors:d,oas3Actions:g,oas3Selectors:f,specActions:p,produces:d.producesOptionsFor([S,C]),producesValue:d.currentProducesFor([S,C]),specPath:e.push("responses"),path:S,method:C,displayRequestDuration:A,fn:i}):null,X&&U.size?q().createElement(Z,{extensions:U,getComponent:c}):null)))}}ce()(et,"defaultProps",{operation:null,response:null,request:null,specPath:(0,R.List)(),summary:""});const tt=require("lodash/toString");var rt=r.n(tt);class nt extends N.PureComponent{render(){let{isShown:e,toggleShown:t,getComponent:r,authActions:n,authSelectors:s,operationProps:a,specPath:o}=this.props,{summary:l,isAuthorized:i,method:c,op:u,showSummary:p,path:d,operationId:m,originalOperationId:h,displayOperationId:g}=a.toJS(),{summary:f}=u,y=a.get("security");const E=r("authorizeOperationBtn"),v=r("OperationSummaryMethod"),S=r("OperationSummaryPath"),C=r("JumpToPath",!0),b=r("CopyToClipboardBtn",!0),x=y&&!!y.count(),w=x&&1===y.size&&y.first().isEmpty(),_=!x||w;return q().createElement("div",{className:`opblock-summary opblock-summary-${c}`},q().createElement("button",{"aria-label":`${c} ${d.replace(/\//g,"​/")}`,"aria-expanded":e,className:"opblock-summary-control",onClick:t},q().createElement(v,{method:c}),q().createElement(S,{getComponent:r,operationProps:a,specPath:o}),p?q().createElement("div",{className:"opblock-summary-description"},rt()(f||l)):null,g&&(h||m)?q().createElement("span",{className:"opblock-summary-operation-id"},h||m):null,q().createElement("svg",{className:"arrow",width:"20",height:"20","aria-hidden":"true",focusable:"false"},q().createElement("use",{href:e?"#large-arrow-up":"#large-arrow-down",xlinkHref:e?"#large-arrow-up":"#large-arrow-down"}))),_?null:q().createElement(E,{isAuthorized:i,onClick:()=>{const e=s.definitionsForRequirements(y);n.showDefinitions(e)}}),q().createElement(b,{textToCopy:`${o.get(1)}`}),q().createElement(C,{path:o}))}}ce()(nt,"defaultProps",{operationProps:null,specPath:(0,R.List)(),summary:""});class st extends N.PureComponent{render(){let{method:e}=this.props;return q().createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}ce()(st,"defaultProps",{operationProps:null});const at=require("@babel/runtime-corejs3/core-js-stable/instance/splice");var ot=r.n(at);class lt extends N.PureComponent{render(){let{getComponent:e,operationProps:t}=this.props,{deprecated:r,isShown:n,path:s,tag:a,operationId:o,isDeepLinkingEnabled:l}=t.toJS();const i=s.split(/(?=\/)/g);for(let e=1;e<i.length;e+=2)ot()(i).call(i,e,0,q().createElement("wbr",{key:e}));const c=e("DeepLink");return q().createElement("span",{className:r?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},q().createElement(c,{enabled:l,isShown:n,path:(0,L.oJ)(`${a}/${o}`),text:i}))}}const it=e=>{var t;let{extensions:r,getComponent:n}=e,s=n("OperationExtRow");return q().createElement("div",{className:"opblock-section"},q().createElement("div",{className:"opblock-section-header"},q().createElement("h4",null,"Extensions")),q().createElement("div",{className:"table-container"},q().createElement("table",null,q().createElement("thead",null,q().createElement("tr",null,q().createElement("td",{className:"col_header"},"Field"),q().createElement("td",{className:"col_header"},"Value"))),q().createElement("tbody",null,_()(t=r.entrySeq()).call(t,(e=>{let[t,r]=e;return q().createElement(s,{key:`${t}-${r}`,xKey:t,xVal:r})}))))))},ct=e=>{let{xKey:t,xVal:r}=e;const n=r?r.toJS?r.toJS():r:null;return q().createElement("tr",null,q().createElement("td",null,t),q().createElement("td",null,p()(n)))};var ut=r(4235),pt=r.n(ut),dt=r(9003),mt=r.n(dt),ht=r(6068),gt=r(1712),ft=r.n(gt),yt=r(5716),Et=r.n(yt);const vt=require("js-file-download");var St=r.n(vt),Ct=r(2807);const bt=e=>{let{value:t,fileName:r,className:n,downloadable:s,getConfigs:a,canCopy:o,language:i}=e;const c=Et()(a)?a():null,u=!1!==ft()(c,"syntaxHighlight")&&ft()(c,"syntaxHighlight.activated",!0),p=(0,N.useRef)(null);(0,N.useEffect)((()=>{var e;const t=l()(e=Re()(p.current.childNodes)).call(e,(e=>!!e.nodeType&&e.classList.contains("microlight")));return pt()(t).call(t,(e=>e.addEventListener("mousewheel",d,{passive:!1}))),()=>{pt()(t).call(t,(e=>e.removeEventListener("mousewheel",d)))}}),[t,n,i]);const d=e=>{const{target:t,deltaY:r}=e,{scrollHeight:n,offsetHeight:s,scrollTop:a}=t;n>s&&(0===a&&r<0||s+a>=n&&r>0)&&e.preventDefault()};return q().createElement("div",{className:"highlight-code",ref:p},s?q().createElement("div",{className:"download-contents",onClick:()=>{St()(t,r)}},"Download"):null,o&&q().createElement("div",{className:"copy-to-clipboard"},q().createElement(Ct.CopyToClipboard,{text:t},q().createElement("button",null))),u?q().createElement(ht.d3,{language:i,className:mt()(n,"microlight"),style:(0,ht.C2)(ft()(c,"syntaxHighlight.theme","agate"))},t):q().createElement("pre",{className:mt()(n,"microlight")},t))};bt.defaultProps={fileName:"response.txt"};const xt=bt;class wt extends q().Component{constructor(){super(...arguments),ce()(this,"onChangeProducesWrapper",(e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e))),ce()(this,"onResponseContentTypeChange",(e=>{let{controlsAcceptHeader:t,value:r}=e;const{oas3Actions:n,path:s,method:a}=this.props;t&&n.setResponseContentType({value:r,path:s,method:a})}))}render(){var e;let{responses:t,tryItOutResponse:r,getComponent:n,getConfigs:s,specSelectors:a,fn:o,producesValue:l,displayRequestDuration:i,specPath:c,path:u,method:p,oas3Selectors:d,oas3Actions:m}=this.props,h=(0,L.iQ)(t);const g=n("contentType"),f=n("liveResponse"),y=n("response");let E=this.props.produces&&this.props.produces.size?this.props.produces:wt.defaultProps.produces;const v=a.isOAS3()?(0,L.QG)(t):null,S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/[^\w-]/g,t)}(`${p}${u}_responses`),C=`${S}_select`;return q().createElement("div",{className:"responses-wrapper"},q().createElement("div",{className:"opblock-section-header"},q().createElement("h4",null,"Responses"),a.isOAS3()?null:q().createElement("label",{htmlFor:C},q().createElement("span",null,"Response content type"),q().createElement(g,{value:l,ariaControls:S,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:E,controlId:C,onChange:this.onChangeProducesWrapper}))),q().createElement("div",{className:"responses-inner"},r?q().createElement("div",null,q().createElement(f,{response:r,getComponent:n,getConfigs:s,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:i}),q().createElement("h4",null,"Responses")):null,q().createElement("table",{"aria-live":"polite",className:"responses-table",id:S,role:"region"},q().createElement("thead",null,q().createElement("tr",{className:"responses-header"},q().createElement("td",{className:"col_header response-col_status"},"Code"),q().createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?q().createElement("td",{className:"col col_header response-col_links"},"Links"):null)),q().createElement("tbody",null,_()(e=t.entrySeq()).call(e,(e=>{let[t,i]=e,g=r&&r.get("status")==t?"response_current":"";return q().createElement(y,{key:t,path:u,method:p,specPath:c.push(t),isDefault:h===t,fn:o,className:g,code:t,response:i,specSelectors:a,controlsAcceptHeader:i===v,onContentTypeChange:this.onResponseContentTypeChange,contentType:l,getConfigs:s,activeExamplesKey:d.activeExamplesMember(u,p,"responses",t),oas3Actions:m,getComponent:n})})).toArray()))))}}ce()(wt,"defaultProps",{tryItOutResponse:null,produces:(0,R.fromJS)(["application/json"]),displayRequestDuration:!1});const _t=require("@babel/runtime-corejs3/core-js-stable/instance/values");var At=r.n(_t),It=r(2518);class Nt extends q().Component{constructor(e,t){super(e,t),ce()(this,"_onContentTypeChange",(e=>{const{onContentTypeChange:t,controlsAcceptHeader:r}=this.props;this.setState({responseContentType:e}),t({value:e,controlsAcceptHeader:r})})),ce()(this,"getTargetExamplesKey",(()=>{const{response:e,contentType:t,activeExamplesKey:r}=this.props,n=this.state.responseContentType||t,s=e.getIn(["content",n],(0,R.Map)({})).get("examples",null).keySeq().first();return r||s})),this.state={responseContentType:""}}render(){var e,t;let{path:r,method:n,code:s,response:a,className:o,specPath:l,fn:i,getComponent:c,getConfigs:u,specSelectors:p,contentType:d,controlsAcceptHeader:m,oas3Actions:h}=this.props,{inferSchema:g}=i,f=p.isOAS3();const{showExtensions:y}=u();let E=y?(0,L.nX)(a):null,v=a.get("headers"),S=a.get("links");const C=c("ResponseExtension"),b=c("headers"),x=c("highlightCode"),w=c("modelExample"),A=c("Markdown",!0),I=c("operationLink"),N=c("contentType"),T=c("ExamplesSelect"),P=c("Example");var k,O;const M=this.state.responseContentType||d,j=a.getIn(["content",M],(0,R.Map)({})),V=j.get("examples",null);if(f){const e=j.get("schema");k=e?g(e.toJS()):null,O=e?(0,R.List)(["content",this.state.responseContentType,"schema"]):l}else k=a.get("schema"),O=a.has("schema")?l.push("schema"):l;let D,U,z=!1,B={includeReadOnly:!0};if(f){var $;if(U=null===($=j.get("schema"))||void 0===$?void 0:$.toJS(),V){const e=this.getTargetExamplesKey(),t=e=>e.get("value");D=t(V.get(e,(0,R.Map)({}))),void 0===D&&(D=t(At()(V).call(V).next().value)),z=!0}else void 0!==j.get("example")&&(D=j.get("example"),z=!0)}else{U=k,B={...B,includeWriteOnly:!0};const e=a.getIn(["examples",M]);e&&(D=e,z=!0)}let J=((e,t,r)=>{if(null!=e){let n=null;return(0,It.O)(e)&&(n="json"),q().createElement("div",null,q().createElement(t,{className:"example",getConfigs:r,language:n,value:(0,L.Pz)(e)}))}return null})((0,L.xi)(U,M,B,z?D:void 0),x,u);return q().createElement("tr",{className:"response "+(o||""),"data-code":s},q().createElement("td",{className:"response-col_status"},s),q().createElement("td",{className:"response-col_description"},q().createElement("div",{className:"response-col_description__inner"},q().createElement(A,{source:a.get("description")})),y&&E.size?_()(e=E.entrySeq()).call(e,(e=>{let[t,r]=e;return q().createElement(C,{key:`${t}-${r}`,xKey:t,xVal:r})})):null,f&&a.get("content")?q().createElement("section",{className:"response-controls"},q().createElement("div",{className:mt()("response-control-media-type",{"response-control-media-type--accept-controller":m})},q().createElement("small",{className:"response-control-media-type__title"},"Media type"),q().createElement(N,{value:this.state.responseContentType,contentTypes:a.get("content")?a.get("content").keySeq():(0,R.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),m?q().createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",q().createElement("code",null,"Accept")," header."):null),V?q().createElement("div",{className:"response-control-examples"},q().createElement("small",{className:"response-control-examples__title"},"Examples"),q().createElement(T,{examples:V,currentExampleKey:this.getTargetExamplesKey(),onSelect:e=>h.setActiveExamplesMember({name:e,pathMethod:[r,n],contextType:"responses",contextName:s}),showLabels:!1})):null):null,J||k?q().createElement(w,{specPath:O,getComponent:c,getConfigs:u,specSelectors:p,schema:(0,L.oG)(k),example:J,includeReadOnly:!0}):null,f&&V?q().createElement(P,{example:V.get(this.getTargetExamplesKey(),(0,R.Map)({})),getComponent:c,getConfigs:u,omitValue:!0}):null,v?q().createElement(b,{headers:v,getComponent:c}):null),f?q().createElement("td",{className:"response-col_links"},S?_()(t=S.toSeq().entrySeq()).call(t,(e=>{let[t,r]=e;return q().createElement(I,{key:t,name:t,link:r,getComponent:c})})):q().createElement("i",null,"No links")):null)}}ce()(Nt,"defaultProps",{response:(0,R.fromJS)({}),onContentTypeChange:()=>{}});const qt=e=>{let{xKey:t,xVal:r}=e;return q().createElement("div",{className:"response__extension"},t,": ",String(r))},Tt=require("xml-but-prettier");var Rt=r.n(Tt);const Pt=require("lodash/toLower");var kt=r.n(Pt);class Ot extends q().PureComponent{constructor(){super(...arguments),ce()(this,"state",{parsedContent:null}),ce()(this,"updateParsedContent",(e=>{const{content:t}=this.props;if(e!==t)if(t&&t instanceof Blob){var r=new FileReader;r.onload=()=>{this.setState({parsedContent:r.result})},r.readAsText(t)}else this.setState({parsedContent:t.toString()})}))}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:t,url:r,headers:n={},getConfigs:s,getComponent:o}=this.props;const{parsedContent:l}=this.state,i=o("highlightCode"),c="response_"+(new Date).getTime();let u,d;if(r=r||"",/^application\/octet-stream/i.test(t)||n["Content-Disposition"]&&/attachment/i.test(n["Content-Disposition"])||n["content-disposition"]&&/attachment/i.test(n["content-disposition"])||n["Content-Description"]&&/File Transfer/i.test(n["Content-Description"])||n["content-description"]&&/File Transfer/i.test(n["content-description"]))if("Blob"in window){let s=t||"text/html",o=e instanceof Blob?e:new Blob([e],{type:s}),l=Ke().createObjectURL(o),i=[s,r.substr(a()(r).call(r,"/")+1),l].join(":"),c=n["content-disposition"]||n["Content-Disposition"];if(void 0!==c){let e=(0,L.DR)(c);null!==e&&(i=e)}d=D.Z.navigator&&D.Z.navigator.msSaveOrOpenBlob?q().createElement("div",null,q().createElement("a",{href:l,onClick:()=>D.Z.navigator.msSaveOrOpenBlob(o,i)},"Download file")):q().createElement("div",null,q().createElement("a",{href:l,download:i},"Download file"))}else d=q().createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(t)){let t=null;(0,It.O)(e)&&(t="json");try{u=p()(JSON.parse(e),null," ")}catch(t){u="can't parse JSON. Raw result:\n\n"+e}d=q().createElement(i,{language:t,downloadable:!0,fileName:`${c}.json`,value:u,getConfigs:s,canCopy:!0})}else/xml/i.test(t)?(u=Rt()(e,{textNodesOnSameLine:!0,indentor:" "}),d=q().createElement(i,{downloadable:!0,fileName:`${c}.xml`,value:u,getConfigs:s,canCopy:!0})):d="text/html"===kt()(t)||/text\/plain/.test(t)?q().createElement(i,{downloadable:!0,fileName:`${c}.html`,value:e,getConfigs:s,canCopy:!0}):"text/csv"===kt()(t)||/text\/csv/.test(t)?q().createElement(i,{downloadable:!0,fileName:`${c}.csv`,value:e,getConfigs:s,canCopy:!0}):/^image\//i.test(t)?Me()(t).call(t,"svg")?q().createElement("div",null," ",e," "):q().createElement("img",{src:Ke().createObjectURL(e)}):/^audio\//i.test(t)?q().createElement("pre",{className:"microlight"},q().createElement("audio",{controls:!0,key:r},q().createElement("source",{src:r,type:t}))):"string"==typeof e?q().createElement(i,{downloadable:!0,fileName:`${c}.txt`,value:e,getConfigs:s,canCopy:!0}):e.size>0?l?q().createElement("div",null,q().createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),q().createElement(i,{downloadable:!0,fileName:`${c}.txt`,value:l,getConfigs:s,canCopy:!0})):q().createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return d?q().createElement("div",null,q().createElement("h5",null,"Response body"),d):null}}var Mt=r(9968),jt=r.n(Mt);class Vt extends N.Component{constructor(e){super(e),ce()(this,"onChange",((e,t,r)=>{let{specActions:{changeParamByIdentity:n},onChangeKey:s}=this.props;n(s,e,t,r)})),ce()(this,"onChangeConsumesWrapper",(e=>{let{specActions:{changeConsumesValue:t},onChangeKey:r}=this.props;t(r,e)})),ce()(this,"toggleTab",(e=>"parameters"===e?this.setState({parametersVisible:!0,callbackVisible:!1}):"callbacks"===e?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0)),ce()(this,"onChangeMediaType",(e=>{let{value:t,pathMethod:r}=e,{specActions:n,oas3Selectors:s,oas3Actions:a}=this.props;const o=s.hasUserEditedBody(...r),l=s.shouldRetainRequestBodyValue(...r);a.setRequestContentType({value:t,pathMethod:r}),a.initRequestBodyValidateError({pathMethod:r}),o||(l||a.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))})),this.state={callbackVisible:!1,parametersVisible:!0}}render(){var e;let{onTryoutClick:t,parameters:r,allowTryItOut:n,tryItOutEnabled:s,specPath:a,fn:o,getComponent:l,getConfigs:i,specSelectors:c,specActions:u,pathMethod:p,oas3Actions:d,oas3Selectors:m,operation:h}=this.props;const g=l("parameterRow"),f=l("TryItOutButton"),y=l("contentType"),E=l("Callbacks",!0),S=l("RequestBody",!0),C=s&&n,b=c.isOAS3(),w=h.get("requestBody"),A=x()(e=jt()(x()(r).call(r,((e,t)=>{const r=t.get("in");return e[r]??(e[r]=[]),e[r].push(t),e}),{}))).call(e,((e,t)=>I()(e).call(e,t)),[]);return q().createElement("div",{className:"opblock-section"},q().createElement("div",{className:"opblock-section-header"},b?q().createElement("div",{className:"tab-header"},q().createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},q().createElement("h4",{className:"opblock-title"},q().createElement("span",null,"Parameters"))),h.get("callbacks")?q().createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},q().createElement("h4",{className:"opblock-title"},q().createElement("span",null,"Callbacks"))):null):q().createElement("div",{className:"tab-header"},q().createElement("h4",{className:"opblock-title"},"Parameters")),n?q().createElement(f,{isOAS3:c.isOAS3(),hasUserEditedBody:m.hasUserEditedBody(...p),enabled:s,onCancelClick:this.props.onCancelClick,onTryoutClick:t,onResetClick:()=>d.setRequestBodyValue({value:void 0,pathMethod:p})}):null),this.state.parametersVisible?q().createElement("div",{className:"parameters-container"},A.length?q().createElement("div",{className:"table-container"},q().createElement("table",{className:"parameters"},q().createElement("thead",null,q().createElement("tr",null,q().createElement("th",{className:"col_header parameters-col_name"},"Name"),q().createElement("th",{className:"col_header parameters-col_description"},"Description"))),q().createElement("tbody",null,_()(A).call(A,((e,t)=>q().createElement(g,{fn:o,specPath:a.push(t.toString()),getComponent:l,getConfigs:i,rawParam:e,param:c.parameterWithMetaByIdentity(p,e),key:`${e.get("in")}.${e.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:c,specActions:u,oas3Actions:d,oas3Selectors:m,pathMethod:p,isExecute:C})))))):q().createElement("div",{className:"opblock-description-wrapper"},q().createElement("p",null,"No parameters"))):null,this.state.callbackVisible?q().createElement("div",{className:"callbacks-container opblock-description-wrapper"},q().createElement(E,{callbacks:(0,R.Map)(h.get("callbacks")),specPath:v()(a).call(a,0,-1).push("callbacks")})):null,b&&w&&this.state.parametersVisible&&q().createElement("div",{className:"opblock-section opblock-section-request-body"},q().createElement("div",{className:"opblock-section-header"},q().createElement("h4",{className:`opblock-title parameter__name ${w.get("required")&&"required"}`},"Request body"),q().createElement("label",null,q().createElement(y,{value:m.requestContentType(...p),contentTypes:w.get("content",(0,R.List)()).keySeq(),onChange:e=>{this.onChangeMediaType({value:e,pathMethod:p})},className:"body-param-content-type",ariaLabel:"Request content type"}))),q().createElement("div",{className:"opblock-description-wrapper"},q().createElement(S,{setRetainRequestBodyValueFlag:e=>d.setRetainRequestBodyValueFlag({value:e,pathMethod:p}),userHasEditedBody:m.hasUserEditedBody(...p),specPath:v()(a).call(a,0,-1).push("requestBody"),requestBody:w,requestBodyValue:m.requestBodyValue(...p),requestBodyInclusionSetting:m.requestBodyInclusionSetting(...p),requestBodyErrors:m.requestBodyErrors(...p),isExecute:C,getConfigs:i,activeExamplesKey:m.activeExamplesMember(...p,"requestBody","requestBody"),updateActiveExamplesKey:e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(e,t)=>{if(t){const r=m.requestBodyValue(...p),n=R.Map.isMap(r)?r:(0,R.Map)();return d.setRequestBodyValue({pathMethod:p,value:n.setIn(t,e)})}d.setRequestBodyValue({value:e,pathMethod:p})},onChangeIncludeEmpty:(e,t)=>{d.setRequestBodyInclusion({pathMethod:p,value:t,name:e})},contentType:m.requestContentType(...p)}))))}}ce()(Vt,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});const Dt=e=>{let{xKey:t,xVal:r}=e;return q().createElement("div",{className:"parameter__extension"},t,": ",String(r))},Lt={onChange:()=>{},isIncludedOptions:{}};class Ut extends N.Component{constructor(){super(...arguments),ce()(this,"onCheckboxChange",(e=>{const{onChange:t}=this.props;t(e.target.checked)}))}componentDidMount(){const{isIncludedOptions:e,onChange:t}=this.props,{shouldDispatchInit:r,defaultValue:n}=e;r&&t(n)}render(){let{isIncluded:e,isDisabled:t}=this.props;return q().createElement("div",null,q().createElement("label",{className:mt()("parameter__empty_value_toggle",{disabled:t})},q().createElement("input",{type:"checkbox",disabled:t,checked:!t&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}ce()(Ut,"defaultProps",Lt);var zt=r(9069);class Bt extends N.Component{constructor(e,t){var r;super(e,t),r=this,ce()(this,"onChangeWrapper",(function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{onChange:s,rawParam:a}=r.props;return t=""===e||e&&0===e.size?null:e,s(a,t,n)})),ce()(this,"_onExampleSelect",(e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})})),ce()(this,"onChangeIncludeEmpty",(e=>{let{specActions:t,param:r,pathMethod:n}=this.props;const s=r.get("name"),a=r.get("in");return t.updateEmptyParamInclusion(n,s,a,e)})),ce()(this,"setDefaultValue",(()=>{let{specSelectors:e,pathMethod:t,rawParam:r,oas3Selectors:n}=this.props;const s=e.parameterWithMetaByIdentity(t,r)||(0,R.Map)(),{schema:a}=(0,zt.Z)(s,{isOAS3:e.isOAS3()}),o=s.get("content",(0,R.Map)()).keySeq().first(),l=a?(0,L.xi)(a.toJS(),o,{includeWriteOnly:!0}):null;if(s&&void 0===s.get("value")&&"body"!==s.get("in")){let r;if(e.isSwagger2())r=void 0!==s.get("x-example")?s.get("x-example"):void 0!==s.getIn(["schema","example"])?s.getIn(["schema","example"]):a&&a.getIn(["default"]);else if(e.isOAS3()){const e=n.activeExamplesMember(...t,"parameters",this.getParamKey());r=void 0!==s.getIn(["examples",e,"value"])?s.getIn(["examples",e,"value"]):void 0!==s.getIn(["content",o,"example"])?s.getIn(["content",o,"example"]):void 0!==s.get("example")?s.get("example"):void 0!==(a&&a.get("example"))?a&&a.get("example"):void 0!==(a&&a.get("default"))?a&&a.get("default"):s.get("default")}void 0===r||R.List.isList(r)||(r=(0,L.Pz)(r)),void 0!==r?this.onChangeWrapper(r):a&&"object"===a.get("type")&&l&&!s.get("examples")&&this.onChangeWrapper(R.List.isList(l)?l:(0,L.Pz)(l))}})),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let t,{specSelectors:r,pathMethod:n,rawParam:s}=e,a=r.isOAS3(),o=r.parameterWithMetaByIdentity(n,s)||new R.Map;if(o=o.isEmpty()?s:o,a){let{schema:e}=(0,zt.Z)(o,{isOAS3:a});t=e?e.get("enum"):void 0}else t=o?o.get("enum"):void 0;let l,i=o?o.get("value"):void 0;void 0!==i?l=i:s.get("required")&&t&&t.size&&(l=t.first()),void 0!==l&&l!==i&&this.onChangeWrapper((0,L.D$)(l)),this.setDefaultValue()}getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}render(){var e,t;let{param:r,rawParam:n,getComponent:s,getConfigs:a,isExecute:o,fn:l,onChangeConsumes:i,specSelectors:c,pathMethod:u,specPath:p,oas3Selectors:d}=this.props,m=c.isOAS3();const{showExtensions:h,showCommonExtensions:g}=a();if(r||(r=n),!n)return null;const f=s("JsonSchemaForm"),y=s("ParamBody");let E=r.get("in"),v="body"!==E?null:q().createElement(y,{getComponent:s,getConfigs:a,fn:l,param:r,consumes:c.consumesOptionsFor(u),consumesValue:c.contentTypeValues(u).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:i,isExecute:o,specSelectors:c,pathMethod:u});const S=s("modelExample"),C=s("Markdown",!0),b=s("ParameterExt"),x=s("ParameterIncludeEmpty"),w=s("ExamplesSelectValueRetainer"),A=s("Example");let I,N,T,P,{schema:k}=(0,zt.Z)(r,{isOAS3:m}),O=c.parameterWithMetaByIdentity(u,n)||(0,R.Map)(),M=k?k.get("format"):null,j=k?k.get("type"):null,V=k?k.getIn(["items","type"]):null,U="formData"===E,z="FormData"in D.Z,B=r.get("required"),$=O?O.get("value"):"",J=g?(0,L.po)(k):null,F=h?(0,L.nX)(r):null,W=!1;return void 0!==r&&k&&(I=k.get("items")),void 0!==I?(N=I.get("enum"),T=I.get("default")):k&&(N=k.get("enum")),N&&N.size&&N.size>0&&(W=!0),void 0!==r&&(k&&(T=k.get("default")),void 0===T&&(T=r.get("default")),P=r.get("example"),void 0===P&&(P=r.get("x-example"))),q().createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},q().createElement("td",{className:"parameters-col_name"},q().createElement("div",{className:B?"parameter__name required":"parameter__name"},r.get("name"),B?q().createElement("span",null," *"):null),q().createElement("div",{className:"parameter__type"},j,V&&`[${V}]`,M&&q().createElement("span",{className:"prop-format"},"($",M,")")),q().createElement("div",{className:"parameter__deprecated"},m&&r.get("deprecated")?"deprecated":null),q().createElement("div",{className:"parameter__in"},"(",r.get("in"),")"),g&&J.size?_()(e=J.entrySeq()).call(e,(e=>{let[t,r]=e;return q().createElement(b,{key:`${t}-${r}`,xKey:t,xVal:r})})):null,h&&F.size?_()(t=F.entrySeq()).call(t,(e=>{let[t,r]=e;return q().createElement(b,{key:`${t}-${r}`,xKey:t,xVal:r})})):null),q().createElement("td",{className:"parameters-col_description"},r.get("description")?q().createElement(C,{source:r.get("description")}):null,!v&&o||!W?null:q().createElement(C,{className:"parameter__enum",source:"<i>Available values</i> : "+_()(N).call(N,(function(e){return e})).toArray().join(", ")}),!v&&o||void 0===T?null:q().createElement(C,{className:"parameter__default",source:"<i>Default value</i> : "+T}),!v&&o||void 0===P?null:q().createElement(C,{source:"<i>Example</i> : "+P}),U&&!z&&q().createElement("div",null,"Error: your browser does not support FormData"),m&&r.get("examples")?q().createElement("section",{className:"parameter-controls"},q().createElement(w,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:s,defaultToFirstExample:!0,currentKey:d.activeExamplesMember(...u,"parameters",this.getParamKey()),currentUserInputValue:$})):null,v?null:q().createElement(f,{fn:l,getComponent:s,value:$,required:B,disabled:!o,description:r.get("name"),onChange:this.onChangeWrapper,errors:O.get("errors"),schema:k}),v&&k?q().createElement(S,{getComponent:s,specPath:p.push("schema"),getConfigs:a,isExecute:o,specSelectors:c,schema:k,example:v,includeWriteOnly:!0}):null,!v&&o&&r.get("allowEmptyValue")?q().createElement(x,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(u,r.get("name"),r.get("in")),isDisabled:!(0,L.O2)($)}):null,m&&r.get("examples")?q().createElement(A,{example:r.getIn(["examples",d.activeExamplesMember(...u,"parameters",this.getParamKey())]),getComponent:s,getConfigs:a}):null))}}var $t=r(9300),Jt=r.n($t);class Ft extends N.Component{constructor(){super(...arguments),ce()(this,"handleValidateParameters",(()=>{let{specSelectors:e,specActions:t,path:r,method:n}=this.props;return t.validateParams([r,n]),e.validateBeforeExecute([r,n])})),ce()(this,"handleValidateRequestBody",(()=>{let{path:e,method:t,specSelectors:r,oas3Selectors:n,oas3Actions:s}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};s.clearRequestBodyValidateError({path:e,method:t});let o=r.getOAS3RequiredRequestBodyContentType([e,t]),l=n.requestBodyValue(e,t),i=n.validateBeforeExecute([e,t]),c=n.requestContentType(e,t);if(!i)return a.missingBodyValue=!0,s.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1;if(!o)return!0;let u=n.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:c,oas3RequestBodyValue:l});return!u||u.length<1||(pt()(u).call(u,(e=>{a.missingRequiredKeys.push(e)})),s.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1)})),ce()(this,"handleValidationResultPass",(()=>{let{specActions:e,operation:t,path:r,method:n}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:t,path:r,method:n})})),ce()(this,"handleValidationResultFail",(()=>{let{specActions:e,path:t,method:r}=this.props;e.clearValidateParams([t,r]),Jt()((()=>{e.validateParams([t,r])}),40)})),ce()(this,"handleValidationResult",(e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()})),ce()(this,"onClick",(()=>{let e=this.handleValidateParameters(),t=this.handleValidateRequestBody(),r=e&&t;this.handleValidationResult(r)})),ce()(this,"onChangeProducesWrapper",(e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e)))}render(){const{disabled:e}=this.props;return q().createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class Wt extends q().Component{render(){var e;let{headers:t,getComponent:r}=this.props;const n=r("Property"),s=r("Markdown",!0);return t&&t.size?q().createElement("div",{className:"headers-wrapper"},q().createElement("h4",{className:"headers__title"},"Headers:"),q().createElement("table",{className:"headers"},q().createElement("thead",null,q().createElement("tr",{className:"header-row"},q().createElement("th",{className:"header-col"},"Name"),q().createElement("th",{className:"header-col"},"Description"),q().createElement("th",{className:"header-col"},"Type"))),q().createElement("tbody",null,_()(e=t.entrySeq()).call(e,(e=>{let[t,r]=e;if(!P().Map.isMap(r))return null;const a=r.get("description"),o=r.getIn(["schema"])?r.getIn(["schema","type"]):r.getIn(["type"]),l=r.getIn(["schema","example"]);return q().createElement("tr",{key:t},q().createElement("td",{className:"header-col"},t),q().createElement("td",{className:"header-col"},a?q().createElement(s,{source:a}):null),q().createElement("td",{className:"header-col"},o," ",l?q().createElement(n,{propKey:"Example",propVal:l,propClass:"header-example"}):null))})).toArray()))):null}}class Ht extends q().Component{render(){let{editorActions:e,errSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:s}=this.props;const a=s("Collapse");if(e&&e.jumpToLine)var o=e.jumpToLine;let i=t.allErrors(),c=l()(i).call(i,(e=>"thrown"===e.get("type")||"error"===e.get("level")));if(!c||c.count()<1)return null;let u=r.isShown(["errorPane"],!0),p=c.sortBy((e=>e.get("line")));return q().createElement("pre",{className:"errors-wrapper"},q().createElement("hgroup",{className:"error"},q().createElement("h4",{className:"errors__title"},"Errors"),q().createElement("button",{className:"btn errors__clear-btn",onClick:()=>n.show(["errorPane"],!u)},u?"Hide":"Show")),q().createElement(a,{isOpened:u,animated:!0},q().createElement("div",{className:"errors"},_()(p).call(p,((e,t)=>{let r=e.get("type");return"thrown"===r||"auth"===r?q().createElement(Kt,{key:t,error:e.get("error")||e,jumpToLine:o}):"spec"===r?q().createElement(Zt,{key:t,error:e,jumpToLine:o}):void 0})))))}}const Kt=e=>{let{error:t,jumpToLine:r}=e;if(!t)return null;let n=t.get("line");return q().createElement("div",{className:"error-wrapper"},t?q().createElement("div",null,q().createElement("h4",null,t.get("source")&&t.get("level")?Gt(t.get("source"))+" "+t.get("level"):"",t.get("path")?q().createElement("small",null," at ",t.get("path")):null),q().createElement("span",{className:"message thrown"},t.get("message")),q().createElement("div",{className:"error-line"},n&&r?q().createElement("a",{onClick:g()(r).call(r,null,n)},"Jump to line ",n):null)):null)},Zt=e=>{let{error:t,jumpToLine:r}=e,n=null;return t.get("path")?n=R.List.isList(t.get("path"))?q().createElement("small",null,"at ",t.get("path").join(".")):q().createElement("small",null,"at ",t.get("path")):t.get("line")&&!r&&(n=q().createElement("small",null,"on line ",t.get("line"))),q().createElement("div",{className:"error-wrapper"},t?q().createElement("div",null,q().createElement("h4",null,Gt(t.get("source"))+" "+t.get("level")," ",n),q().createElement("span",{className:"message"},t.get("message")),q().createElement("div",{className:"error-line"},r?q().createElement("a",{onClick:g()(r).call(r,null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function Gt(e){var t;return _()(t=(e||"").split(" ")).call(t,(e=>e[0].toUpperCase()+v()(e).call(e,1))).join(" ")}Kt.defaultProps={jumpToLine:null};class Yt extends q().Component{constructor(){super(...arguments),ce()(this,"onChangeWrapper",(e=>this.props.onChange(e.target.value)))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(e){var t;e.contentTypes&&e.contentTypes.size&&(Me()(t=e.contentTypes).call(t,e.value)||e.onChange(e.contentTypes.first()))}render(){let{ariaControls:e,ariaLabel:t,className:r,contentTypes:n,controlId:s,value:a}=this.props;return n&&n.size?q().createElement("div",{className:"content-type-wrapper "+(r||"")},q().createElement("select",{"aria-controls":e,"aria-label":t,className:"content-type",id:s,onChange:this.onChangeWrapper,value:a||""},_()(n).call(n,(e=>q().createElement("option",{key:e,value:e},e))).toArray())):null}}ce()(Yt,"defaultProps",{onChange:()=>{},value:null,contentTypes:(0,R.fromJS)(["application/json"])});var Xt=r(4250),Qt=r.n(Xt),er=r(7390),tr=r.n(er);function rr(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tr()(e=l()(r).call(r,(e=>!!e)).join(" ")).call(e)}class nr extends q().Component{render(){let{fullscreen:e,full:t,...r}=this.props;if(e)return q().createElement("section",r);let n="swagger-container"+(t?"-full":"");return q().createElement("section",Qt()({},r,{className:rr(r.className,n)}))}}const sr={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class ar extends q().Component{render(){const{hide:e,keepContents:t,mobile:r,tablet:n,desktop:s,large:a,...o}=this.props;if(e&&!t)return q().createElement("span",null);let l=[];for(let e in sr){if(!Object.prototype.hasOwnProperty.call(sr,e))continue;let t=sr[e];if(e in this.props){let r=this.props[e];if(r<1){l.push("none"+t);continue}l.push("block"+t),l.push("col-"+r+t)}}e&&l.push("hidden");let i=rr(o.className,...l);return q().createElement("section",Qt()({},o,{className:i}))}}class or extends q().Component{render(){return q().createElement("div",Qt()({},this.props,{className:rr(this.props.className,"wrapper")}))}}class lr extends q().Component{render(){return q().createElement("button",Qt()({},this.props,{className:rr(this.props.className,"button")}))}}ce()(lr,"defaultProps",{className:""});const ir=e=>q().createElement("textarea",e),cr=e=>q().createElement("input",e);class ur extends q().Component{constructor(e,t){let r;super(e,t),ce()(this,"onChange",(e=>{let t,{onChange:r,multiple:n}=this.props,s=v()([]).call(e.target.options);var a;n?t=_()(a=l()(s).call(s,(function(e){return e.selected}))).call(a,(function(e){return e.value})):t=e.target.value;this.setState({value:t}),r&&r(t)})),r=e.value?e.value:e.multiple?[""]:"",this.state={value:r}}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){var e,t;let{allowedValues:r,multiple:n,allowEmptyValue:s,disabled:a}=this.props,o=(null===(e=this.state.value)||void 0===e||null===(t=e.toJS)||void 0===t?void 0:t.call(e))||this.state.value;return q().createElement("select",{className:this.props.className,multiple:n,value:o,onChange:this.onChange,disabled:a},s?q().createElement("option",{value:""},"--"):null,_()(r).call(r,(function(e,t){return q().createElement("option",{key:t,value:String(e)},String(e))})))}}ce()(ur,"defaultProps",{multiple:!1,allowEmptyValue:!0});class pr extends q().Component{render(){return q().createElement("a",Qt()({},this.props,{rel:"noopener noreferrer",className:rr(this.props.className,"link")}))}}const dr=e=>{let{children:t}=e;return q().createElement("div",{className:"no-margin"}," ",t," ")};class mr extends q().Component{renderNotAnimated(){return this.props.isOpened?q().createElement(dr,null,this.props.children):q().createElement("noscript",null)}render(){let{animated:e,isOpened:t,children:r}=this.props;return e?(r=t?r:null,q().createElement(dr,null,r)):this.renderNotAnimated()}}ce()(mr,"defaultProps",{isOpened:!1,animated:!1});class hr extends q().Component{constructor(){var e;super(...arguments),this.setTagShown=g()(e=this._setTagShown).call(e,this)}_setTagShown(e,t){this.props.layoutActions.show(e,t)}showOp(e,t){let{layoutActions:r}=this.props;r.show(e,t)}render(){let{specSelectors:e,layoutSelectors:t,layoutActions:r,getComponent:n}=this.props,s=e.taggedOperations();const a=n("Collapse");return q().createElement("div",null,q().createElement("h4",{className:"overview-title"},"Overview"),_()(s).call(s,((e,n)=>{let s=e.get("operations"),o=["overview-tags",n],l=t.isShown(o,!0);return q().createElement("div",{key:"overview-"+n},q().createElement("h4",{onClick:()=>r.show(o,!l),className:"link overview-tag"}," ",l?"-":"+",n),q().createElement(a,{isOpened:l,animated:!0},_()(s).call(s,(e=>{let{path:n,method:s,id:a}=e.toObject(),o="operations",l=a,i=t.isShown([o,l]);return q().createElement(gr,{key:a,path:n,method:s,id:n+"-"+s,shown:i,showOpId:l,showOpIdPrefix:o,href:`#operation-${l}`,onClick:r.show})})).toArray()))})).toArray(),s.size<1&&q().createElement("h3",null," No operations defined in spec! "))}}class gr extends q().Component{constructor(e){var t;super(e),this.onClick=g()(t=this._onClick).call(t,this)}_onClick(){let{showOpId:e,showOpIdPrefix:t,onClick:r,shown:n}=this.props;r([t,e],!n)}render(){let{id:e,method:t,shown:r,href:n}=this.props;return q().createElement(pr,{href:n,onClick:this.onClick,className:"block opblock-link "+(r?"shown":"")},q().createElement("div",null,q().createElement("small",{className:`bold-label-${t}`},t.toUpperCase()),q().createElement("span",{className:"bold-label"},e)))}}class fr extends q().Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:t,initialValue:r,...n}=this.props;return q().createElement("input",Qt()({},n,{ref:e=>this.inputRef=e}))}}class yr extends q().Component{render(){let{host:e,basePath:t}=this.props;return q().createElement("pre",{className:"base-url"},"[ Base URL: ",e,t," ]")}}class Er extends q().Component{render(){let{data:e,getComponent:t,selectedServer:r,url:n}=this.props,s=e.get("name")||"the developer",a=Xe(e.get("url"),n,{selectedServer:r}),o=e.get("email");const l=t("Link");return q().createElement("div",{className:"info__contact"},a&&q().createElement("div",null,q().createElement(l,{href:(0,L.Nm)(a),target:"_blank"},s," - Website")),o&&q().createElement(l,{href:(0,L.Nm)(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}class vr extends q().Component{render(){let{license:e,getComponent:t,selectedServer:r,url:n}=this.props;const s=t("Link");let a=e.get("name")||"License",o=Xe(e.get("url"),n,{selectedServer:r});return q().createElement("div",{className:"info__license"},o?q().createElement(s,{target:"_blank",href:(0,L.Nm)(o)},a):q().createElement("span",null,a))}}class Sr extends q().PureComponent{render(){const{url:e,getComponent:t}=this.props,r=t("Link");return q().createElement(r,{target:"_blank",href:(0,L.Nm)(e)},q().createElement("span",{className:"url"}," ",e))}}class Cr extends q().Component{render(){let{info:e,url:t,host:r,basePath:n,getComponent:s,externalDocs:a,selectedServer:o,url:l}=this.props,i=e.get("version"),c=e.get("description"),u=e.get("title"),p=Xe(e.get("termsOfService"),l,{selectedServer:o}),d=e.get("contact"),m=e.get("license"),h=Xe(a&&a.get("url"),l,{selectedServer:o}),g=a&&a.get("description");const f=s("Markdown",!0),y=s("Link"),E=s("VersionStamp"),v=s("InfoUrl"),S=s("InfoBasePath");return q().createElement("div",{className:"info"},q().createElement("hgroup",{className:"main"},q().createElement("h2",{className:"title"},u,i&&q().createElement(E,{version:i})),r||n?q().createElement(S,{host:r,basePath:n}):null,t&&q().createElement(v,{getComponent:s,url:t})),q().createElement("div",{className:"description"},q().createElement(f,{source:c})),p&&q().createElement("div",{className:"info__tos"},q().createElement(y,{target:"_blank",href:(0,L.Nm)(p)},"Terms of service")),d&&d.size?q().createElement(Er,{getComponent:s,data:d,selectedServer:o,url:t}):null,m&&m.size?q().createElement(vr,{getComponent:s,license:m,selectedServer:o,url:t}):null,h?q().createElement(y,{className:"info__extdocs",target:"_blank",href:(0,L.Nm)(h)},g||h):null)}}class br extends q().Component{render(){const{specSelectors:e,getComponent:t,oas3Selectors:r}=this.props,n=e.info(),s=e.url(),a=e.basePath(),o=e.host(),l=e.externalDocs(),i=r.selectedServer(),c=t("info");return q().createElement("div",null,n&&n.count()?q().createElement(c,{info:n,url:s,host:o,basePath:a,externalDocs:l,getComponent:t,selectedServer:i}):null)}}class xr extends q().Component{render(){return null}}class wr extends q().Component{render(){return q().createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},q().createElement(Ct.CopyToClipboard,{text:this.props.textToCopy},q().createElement("svg",{width:"15",height:"16"},q().createElement("use",{href:"#copy",xlinkHref:"#copy"}))))}}class _r extends q().Component{render(){return q().createElement("div",{className:"footer"})}}class Ar extends q().Component{constructor(){super(...arguments),ce()(this,"onFilterChange",(e=>{const{target:{value:t}}=e;this.props.layoutActions.updateFilter(t)}))}render(){const{specSelectors:e,layoutSelectors:t,getComponent:r}=this.props,n=r("Col"),s="loading"===e.loadingStatus(),a="failed"===e.loadingStatus(),o=t.currentFilter(),l=["operation-filter-input"];return a&&l.push("failed"),s&&l.push("loading"),q().createElement("div",null,null===o||!1===o||"false"===o?null:q().createElement("div",{className:"filter-container"},q().createElement(n,{className:"filter wrapper",mobile:12},q().createElement("input",{className:l.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:!0===o||"true"===o?"":o,disabled:s}))))}}const Ir=Function.prototype;class Nr extends N.PureComponent{constructor(e,t){super(e,t),ce()(this,"updateValues",(e=>{let{param:t,isExecute:r,consumesValue:n=""}=e,s=/xml/i.test(n),a=/json/i.test(n),o=s?t.get("value_xml"):t.get("value");if(void 0!==o){let e=!o&&a?"{}":o;this.setState({value:e}),this.onChange(e,{isXml:s,isEditBox:r})}else s?this.onChange(this.sample("xml"),{isXml:s,isEditBox:r}):this.onChange(this.sample(),{isEditBox:r})})),ce()(this,"sample",(e=>{let{param:t,fn:{inferSchema:r}}=this.props,n=r(t.toJS());return(0,L.xi)(n,e,{includeWriteOnly:!0})})),ce()(this,"onChange",((e,t)=>{let{isEditBox:r,isXml:n}=t;this.setState({value:e,isEditBox:r}),this._onChange(e,n)})),ce()(this,"_onChange",((e,t)=>{(this.props.onChange||Ir)(e,t)})),ce()(this,"handleOnChange",(e=>{const{consumesValue:t}=this.props,r=/xml/i.test(t),n=e.target.value;this.onChange(n,{isXml:r,isEditBox:this.state.isEditBox})})),ce()(this,"toggleIsEditBox",(()=>this.setState((e=>({isEditBox:!e.isEditBox}))))),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}render(){let{onChangeConsumes:e,param:t,isExecute:r,specSelectors:n,pathMethod:s,getConfigs:a,getComponent:o}=this.props;const l=o("Button"),i=o("TextArea"),c=o("highlightCode"),u=o("contentType");let p=(n?n.parameterWithMetaByIdentity(s,t):t).get("errors",(0,R.List)()),d=n.contentTypeValues(s).get("requestContentType"),m=this.props.consumes&&this.props.consumes.size?this.props.consumes:Nr.defaultProp.consumes,{value:h,isEditBox:g}=this.state,f=null;return(0,It.O)(h)&&(f="json"),q().createElement("div",{className:"body-param","data-param-name":t.get("name"),"data-param-in":t.get("in")},g&&r?q().createElement(i,{className:"body-param__text"+(p.count()?" invalid":""),value:h,onChange:this.handleOnChange}):h&&q().createElement(c,{className:"body-param__example",language:f,getConfigs:a,value:h}),q().createElement("div",{className:"body-param-options"},r?q().createElement("div",{className:"body-param-edit"},q().createElement(l,{className:g?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},g?"Cancel":"Edit")):null,q().createElement("label",{htmlFor:""},q().createElement("span",null,"Parameter content type"),q().createElement(u,{value:d,contentTypes:m,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type"}))))}}ce()(Nr,"defaultProp",{consumes:(0,R.fromJS)(["application/json"]),param:(0,R.fromJS)({}),onChange:Ir,onChangeConsumes:Ir});var qr=r(8223);class Tr extends q().Component{render(){let{request:e,getConfigs:t}=this.props,r=(0,qr.requestSnippetGenerator_curl_bash)(e);const n=t(),s=ft()(n,"syntaxHighlight.activated")?q().createElement(ht.d3,{language:"bash",className:"curl microlight",style:(0,ht.C2)(ft()(n,"syntaxHighlight.theme"))},r):q().createElement("textarea",{readOnly:!0,className:"curl",value:r});return q().createElement("div",{className:"curl-command"},q().createElement("h4",null,"Curl"),q().createElement("div",{className:"copy-to-clipboard"},q().createElement(Ct.CopyToClipboard,{text:r},q().createElement("button",null))),q().createElement("div",null,s))}}class Rr extends q().Component{constructor(){super(...arguments),ce()(this,"onChange",(e=>{this.setScheme(e.target.value)})),ce()(this,"setScheme",(e=>{let{path:t,method:r,specActions:n}=this.props;n.setScheme(e,t,r)}))}UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){var t;this.props.currentScheme&&Me()(t=e.schemes).call(t,this.props.currentScheme)||this.setScheme(e.schemes.first())}render(){var e;let{schemes:t,currentScheme:r}=this.props;return q().createElement("label",{htmlFor:"schemes"},q().createElement("span",{className:"schemes-title"},"Schemes"),q().createElement("select",{onChange:this.onChange,value:r},_()(e=t.valueSeq()).call(e,(e=>q().createElement("option",{value:e,key:e},e))).toArray()))}}class Pr extends q().Component{render(){const{specActions:e,specSelectors:t,getComponent:r}=this.props,n=t.operationScheme(),s=t.schemes(),a=r("schemes");return s&&s.size?q().createElement(a,{currentScheme:n,schemes:s,specActions:e}):null}}class kr extends N.Component{constructor(e,t){super(e,t),ce()(this,"toggleCollapsed",(()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})})),ce()(this,"onLoad",(e=>{if(e&&this.props.layoutSelectors){const t=this.props.layoutSelectors.getScrollToKey();P().is(t,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}}));let{expanded:r,collapsedContent:n}=this.props;this.state={expanded:r,collapsedContent:n||kr.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:t,modelName:r}=this.props;e&&t&&this.props.onToggle(r,t)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}render(){const{title:e,classes:t}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?q().createElement("span",{className:t||""},this.props.children):q().createElement("span",{className:t||"",ref:this.onLoad},q().createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&q().createElement("span",{className:"pointer"},e),q().createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&q().createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}ce()(kr,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:P().List([])});var Or=r(185),Mr=r.n(Or);class jr extends q().Component{constructor(e,t){super(e,t),ce()(this,"activeTab",(e=>{let{target:{dataset:{name:t}}}=e;this.setState({activeTab:t})}));let{getConfigs:r,isExecute:n}=this.props,{defaultModelRendering:s}=r(),a=s;"example"!==s&&"model"!==s&&(a="example"),n&&(a="example"),this.state={activeTab:a}}UNSAFE_componentWillReceiveProps(e){e.isExecute&&!this.props.isExecute&&this.props.example&&this.setState({activeTab:"example"})}render(){let{getComponent:e,specSelectors:t,schema:r,example:n,isExecute:s,getConfigs:a,specPath:o,includeReadOnly:l,includeWriteOnly:i}=this.props,{defaultModelExpandDepth:c}=a();const u=e("ModelWrapper"),p=e("highlightCode"),d=Mr()(5).toString("base64"),m=Mr()(5).toString("base64"),h=Mr()(5).toString("base64"),g=Mr()(5).toString("base64");let f=t.isOAS3();return q().createElement("div",{className:"model-example"},q().createElement("ul",{className:"tab",role:"tablist"},q().createElement("li",{className:mt()("tabitem",{active:"example"===this.state.activeTab}),role:"presentation"},q().createElement("button",{"aria-controls":m,"aria-selected":"example"===this.state.activeTab,className:"tablinks","data-name":"example",id:d,onClick:this.activeTab,role:"tab"},s?"Edit Value":"Example Value")),r&&q().createElement("li",{className:mt()("tabitem",{active:"model"===this.state.activeTab}),role:"presentation"},q().createElement("button",{"aria-controls":g,"aria-selected":"model"===this.state.activeTab,className:mt()("tablinks",{inactive:s}),"data-name":"model",id:h,onClick:this.activeTab,role:"tab"},f?"Schema":"Model"))),"example"===this.state.activeTab&&q().createElement("div",{"aria-hidden":"example"!==this.state.activeTab,"aria-labelledby":d,"data-name":"examplePanel",id:m,role:"tabpanel",tabIndex:"0"},n||q().createElement(p,{value:"(no example available)",getConfigs:a})),"model"===this.state.activeTab&&q().createElement("div",{"aria-hidden":"example"===this.state.activeTab,"aria-labelledby":h,"data-name":"modelPanel",id:g,role:"tabpanel",tabIndex:"0"},q().createElement(u,{schema:r,getComponent:e,getConfigs:a,specSelectors:t,expandDepth:c,specPath:o,includeReadOnly:l,includeWriteOnly:i})))}}class Vr extends N.Component{constructor(){super(...arguments),ce()(this,"onToggle",((e,t)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,t)}))}render(){let{getComponent:e,getConfigs:t}=this.props;const r=e("Model");let n;return this.props.layoutSelectors&&(n=this.props.layoutSelectors.isShown(this.props.fullPath)),q().createElement("div",{className:"model-box"},q().createElement(r,Qt()({},this.props,{getConfigs:t,expanded:n,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var Dr=r(6024);class Lr extends N.Component{constructor(){super(...arguments),ce()(this,"getSchemaBasePath",(()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"])),ce()(this,"getCollapsedContent",(()=>" ")),ce()(this,"handleToggle",((e,t)=>{const{layoutActions:r}=this.props;r.show([...this.getSchemaBasePath(),e],t),t&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])})),ce()(this,"onLoadModels",(e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)})),ce()(this,"onLoadModel",(e=>{if(e){const t=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),t],e)}}))}render(){var e;let{specSelectors:t,getComponent:r,layoutSelectors:n,layoutActions:s,getConfigs:a}=this.props,o=t.definitions(),{docExpansion:l,defaultModelsExpandDepth:i}=a();if(!o.size||i<0)return null;const c=this.getSchemaBasePath();let u=n.isShown(c,i>0&&"none"!==l);const p=t.isOAS3(),d=r("ModelWrapper"),m=r("Collapse"),h=r("ModelCollapse"),g=r("JumpToPath",!0);return q().createElement("section",{className:u?"models is-open":"models",ref:this.onLoadModels},q().createElement("h4",null,q().createElement("button",{"aria-expanded":u,className:"models-control",onClick:()=>s.show(c,!u)},q().createElement("span",null,p?"Schemas":"Models"),q().createElement("svg",{width:"20",height:"20","aria-hidden":"true",focusable:"false"},q().createElement("use",{xlinkHref:u?"#large-arrow-up":"#large-arrow-down"})))),q().createElement(m,{isOpened:u},_()(e=o.entrySeq()).call(e,(e=>{let[o]=e;const l=[...c,o],u=P().List(l),p=t.specResolvedSubtree(l),m=t.specJson().getIn(l),f=R.Map.isMap(p)?p:P().Map(),y=R.Map.isMap(m)?m:P().Map(),E=f.get("title")||y.get("title")||o,v=n.isShown(l,!1);v&&0===f.size&&y.size>0&&this.props.specActions.requestResolvedSubtree(l);const S=q().createElement(d,{name:o,expandDepth:i,schema:f||P().Map(),displayName:E,fullPath:l,specPath:u,getComponent:r,specSelectors:t,getConfigs:a,layoutSelectors:n,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),C=q().createElement("span",{className:"model-box"},q().createElement("span",{className:"model model-title"},E));return q().createElement("div",{id:`model-${o}`,className:"model-container",key:`models-section-${o}`,"data-name":o,ref:this.onLoadModel},q().createElement("span",{className:"models-jump-to-path"},q().createElement(g,{specPath:u})),q().createElement(h,{classes:"model-box",collapsedContent:this.getCollapsedContent(o),onToggle:this.handleToggle,title:C,displayName:E,modelName:o,specPath:u,layoutSelectors:n,layoutActions:s,hideSelfOnExpand:!0,expanded:i>0&&v},S))})).toArray()))}}const Ur=e=>{let{value:t,getComponent:r}=e,n=r("ModelCollapse"),s=q().createElement("span",null,"Array [ ",t.count()," ]");return q().createElement("span",{className:"prop-enum"},"Enum:",q().createElement("br",null),q().createElement(n,{collapsedContent:s},"[ ",t.join(", ")," ]"))};class zr extends N.Component{render(){var e,t,r,n;let{schema:s,name:a,displayName:o,isRef:i,getComponent:c,getConfigs:u,depth:d,onToggle:m,expanded:h,specPath:g,...f}=this.props,{specSelectors:y,expandDepth:E,includeReadOnly:S,includeWriteOnly:C}=f;const{isOAS3:b}=y;if(!s)return null;const{showExtensions:x}=u();let w=s.get("description"),A=s.get("properties"),I=s.get("additionalProperties"),N=s.get("title")||o||a,T=s.get("required"),P=l()(s).call(s,((e,t)=>{var r;return-1!==pe()(r=["maxProperties","minProperties","nullable","example"]).call(r,t)})),k=s.get("deprecated"),O=s.getIn(["externalDocs","url"]),M=s.getIn(["externalDocs","description"]);const j=c("JumpToPath",!0),V=c("Markdown",!0),D=c("Model"),U=c("ModelCollapse"),z=c("Property"),B=c("Link"),$=()=>q().createElement("span",{className:"model-jump-to-path"},q().createElement(j,{specPath:g})),J=q().createElement("span",null,q().createElement("span",null,"{"),"...",q().createElement("span",null,"}"),i?q().createElement($,null):""),F=y.isOAS3()?s.get("anyOf"):null,W=y.isOAS3()?s.get("oneOf"):null,H=y.isOAS3()?s.get("not"):null,K=N&&q().createElement("span",{className:"model-title"},i&&s.get("$$ref")&&q().createElement("span",{className:"model-hint"},s.get("$$ref")),q().createElement("span",{className:"model-title__text"},N));return q().createElement("span",{className:"model"},q().createElement(U,{modelName:a,title:K,onToggle:m,expanded:!!h||d<=E,collapsedContent:J},q().createElement("span",{className:"brace-open object"},"{"),i?q().createElement($,null):null,q().createElement("span",{className:"inner-object"},q().createElement("table",{className:"model"},q().createElement("tbody",null,w?q().createElement("tr",{className:"description"},q().createElement("td",null,"description:"),q().createElement("td",null,q().createElement(V,{source:w}))):null,O&&q().createElement("tr",{className:"external-docs"},q().createElement("td",null,"externalDocs:"),q().createElement("td",null,q().createElement(B,{target:"_blank",href:(0,L.Nm)(O)},M||O))),k?q().createElement("tr",{className:"property"},q().createElement("td",null,"deprecated:"),q().createElement("td",null,"true")):null,A&&A.size?_()(e=l()(t=A.entrySeq()).call(t,(e=>{let[,t]=e;return(!t.get("readOnly")||S)&&(!t.get("writeOnly")||C)}))).call(e,(e=>{let[t,r]=e,n=b()&&r.get("deprecated"),s=R.List.isList(T)&&T.contains(t),o=["property-row"];return n&&o.push("deprecated"),s&&o.push("required"),q().createElement("tr",{key:t,className:o.join(" ")},q().createElement("td",null,t,s&&q().createElement("span",{className:"star"},"*")),q().createElement("td",null,q().createElement(D,Qt()({key:`object-${a}-${t}_${r}`},f,{required:s,getComponent:c,specPath:g.push("properties",t),getConfigs:u,schema:r,depth:d+1}))))})).toArray():null,x?q().createElement("tr",null,q().createElement("td",null," ")):null,x?_()(r=s.entrySeq()).call(r,(e=>{let[t,r]=e;if("x-"!==v()(t).call(t,0,2))return;const n=r?r.toJS?r.toJS():r:null;return q().createElement("tr",{key:t,className:"extension"},q().createElement("td",null,t),q().createElement("td",null,p()(n)))})).toArray():null,I&&I.size?q().createElement("tr",null,q().createElement("td",null,"< * >:"),q().createElement("td",null,q().createElement(D,Qt()({},f,{required:!1,getComponent:c,specPath:g.push("additionalProperties"),getConfigs:u,schema:I,depth:d+1})))):null,F?q().createElement("tr",null,q().createElement("td",null,"anyOf ->"),q().createElement("td",null,_()(F).call(F,((e,t)=>q().createElement("div",{key:t},q().createElement(D,Qt()({},f,{required:!1,getComponent:c,specPath:g.push("anyOf",t),getConfigs:u,schema:e,depth:d+1}))))))):null,W?q().createElement("tr",null,q().createElement("td",null,"oneOf ->"),q().createElement("td",null,_()(W).call(W,((e,t)=>q().createElement("div",{key:t},q().createElement(D,Qt()({},f,{required:!1,getComponent:c,specPath:g.push("oneOf",t),getConfigs:u,schema:e,depth:d+1}))))))):null,H?q().createElement("tr",null,q().createElement("td",null,"not ->"),q().createElement("td",null,q().createElement("div",null,q().createElement(D,Qt()({},f,{required:!1,getComponent:c,specPath:g.push("not"),getConfigs:u,schema:H,depth:d+1}))))):null))),q().createElement("span",{className:"brace-close"},"}")),P.size?_()(n=P.entrySeq()).call(n,(e=>{let[t,r]=e;return q().createElement(z,{key:`${t}-${r}`,propKey:t,propVal:r,propClass:"property"})})):null)}}class Br extends N.Component{render(){var e;let{getComponent:t,getConfigs:r,schema:n,depth:s,expandDepth:a,name:o,displayName:i,specPath:c}=this.props,u=n.get("description"),p=n.get("items"),d=n.get("title")||i||o,m=l()(n).call(n,((e,t)=>{var r;return-1===pe()(r=["type","items","description","$$ref","externalDocs"]).call(r,t)})),h=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const f=t("Markdown",!0),y=t("ModelCollapse"),E=t("Model"),v=t("Property"),S=t("Link"),C=d&&q().createElement("span",{className:"model-title"},q().createElement("span",{className:"model-title__text"},d));return q().createElement("span",{className:"model"},q().createElement(y,{title:C,expanded:s<=a,collapsedContent:"[...]"},"[",m.size?_()(e=m.entrySeq()).call(e,(e=>{let[t,r]=e;return q().createElement(v,{key:`${t}-${r}`,propKey:t,propVal:r,propClass:"property"})})):null,u?q().createElement(f,{source:u}):m.size?q().createElement("div",{className:"markdown"}):null,h&&q().createElement("div",{className:"external-docs"},q().createElement(S,{target:"_blank",href:(0,L.Nm)(h)},g||h)),q().createElement("span",null,q().createElement(E,Qt()({},this.props,{getConfigs:r,specPath:c.push("items"),name:null,schema:p,required:!1,depth:s+1}))),"]"))}}const $r="property primitive";class Jr extends N.Component{render(){var e,t,r;let{schema:n,getComponent:s,getConfigs:a,name:o,displayName:i,depth:c,expandDepth:u}=this.props;const{showExtensions:p}=a();if(!n||!n.get)return q().createElement("div",null);let d=n.get("type"),m=n.get("format"),h=n.get("xml"),g=n.get("enum"),f=n.get("title")||i||o,y=n.get("description"),E=(0,L.nX)(n),v=l()(n).call(n,((e,t)=>{var r;return-1===pe()(r=["enum","type","format","description","$$ref","externalDocs"]).call(r,t)})).filterNot(((e,t)=>E.has(t))),S=n.getIn(["externalDocs","url"]),C=n.getIn(["externalDocs","description"]);const b=s("Markdown",!0),x=s("EnumModel"),w=s("Property"),A=s("ModelCollapse"),I=s("Link"),N=f&&q().createElement("span",{className:"model-title"},q().createElement("span",{className:"model-title__text"},f));return q().createElement("span",{className:"model"},q().createElement(A,{title:N,expanded:c<=u,collapsedContent:"[...]",hideSelfOnExpand:u!==c},q().createElement("span",{className:"prop"},o&&c>1&&q().createElement("span",{className:"prop-name"},f),q().createElement("span",{className:"prop-type"},d),m&&q().createElement("span",{className:"prop-format"},"($",m,")"),v.size?_()(e=v.entrySeq()).call(e,(e=>{let[t,r]=e;return q().createElement(w,{key:`${t}-${r}`,propKey:t,propVal:r,propClass:$r})})):null,p&&E.size?_()(t=E.entrySeq()).call(t,(e=>{let[t,r]=e;return q().createElement(w,{key:`${t}-${r}`,propKey:t,propVal:r,propClass:$r})})):null,y?q().createElement(b,{source:y}):null,S&&q().createElement("div",{className:"external-docs"},q().createElement(I,{target:"_blank",href:(0,L.Nm)(S)},C||S)),h&&h.size?q().createElement("span",null,q().createElement("br",null),q().createElement("span",{className:$r},"xml:"),_()(r=h.entrySeq()).call(r,(e=>{let[t,r]=e;return q().createElement("span",{key:`${t}-${r}`,className:$r},q().createElement("br",null)," ",t,": ",String(r))})).toArray()):null,g&&q().createElement(x,{value:g,getComponent:s}))))}}const Fr=e=>{let{propKey:t,propVal:r,propClass:n}=e;return q().createElement("span",{className:n},q().createElement("br",null),t,": ",String(r))};class Wr extends q().Component{render(){const{onTryoutClick:e,onCancelClick:t,onResetClick:r,enabled:n,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return q().createElement("div",{className:o?"try-out btn-group":"try-out"},n?q().createElement("button",{className:"btn try-out__btn cancel",onClick:t},"Cancel"):q().createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),o&&q().createElement("button",{className:"btn try-out__btn reset",onClick:r},"Reset"))}}ce()(Wr,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class Hr extends q().PureComponent{render(){const{bypass:e,isSwagger2:t,isOAS3:r,alsoShow:n}=this.props;return e?q().createElement("div",null,this.props.children):t&&r?q().createElement("div",{className:"version-pragma"},n,q().createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},q().createElement("div",null,q().createElement("h3",null,"Unable to render this definition"),q().createElement("p",null,q().createElement("code",null,"swagger")," and ",q().createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),q().createElement("p",null,"Supported version fields are ",q().createElement("code",null,"swagger: ",'"2.0"')," and those that match ",q().createElement("code",null,"openapi: 3.0.n")," (for example, ",q().createElement("code",null,"openapi: 3.0.0"),").")))):t||r?q().createElement("div",null,this.props.children):q().createElement("div",{className:"version-pragma"},n,q().createElement("div",{className:"version-pragma__message version-pragma__message--missing"},q().createElement("div",null,q().createElement("h3",null,"Unable to render this definition"),q().createElement("p",null,"The provided definition does not specify a valid version field."),q().createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",q().createElement("code",null,"swagger: ",'"2.0"')," and those that match ",q().createElement("code",null,"openapi: 3.0.n")," (for example, ",q().createElement("code",null,"openapi: 3.0.0"),")."))))}}ce()(Hr,"defaultProps",{alsoShow:null,children:null,bypass:!1});const Kr=e=>{let{version:t}=e;return q().createElement("small",null,q().createElement("pre",{className:"version"}," ",t," "))},Zr=e=>{let{enabled:t,path:r,text:n}=e;return q().createElement("a",{className:"nostyle",onClick:t?e=>e.preventDefault():null,href:t?`#/${r}`:null},q().createElement("span",null,n))},Gr=()=>q().createElement("div",null,q().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},q().createElement("defs",null,q().createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},q().createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),q().createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},q().createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),q().createElement("symbol",{viewBox:"0 0 20 20",id:"close"},q().createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),q().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},q().createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),q().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},q().createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),q().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},q().createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),q().createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},q().createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),q().createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},q().createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),q().createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},q().createElement("g",{transform:"translate(2, -1)"},q().createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var Yr=r(2552);class Xr extends q().Component{render(){let{errSelectors:e,specSelectors:t,getComponent:r}=this.props,n=r("SvgAssets"),s=r("InfoContainer",!0),a=r("VersionPragmaFilter"),o=r("operations",!0),l=r("Models",!0),i=r("Row"),c=r("Col"),u=r("errors",!0);const p=r("ServersContainer",!0),d=r("SchemesContainer",!0),m=r("AuthorizeBtnContainer",!0),h=r("FilterContainer",!0);let g=t.isSwagger2(),f=t.isOAS3();const y=!t.specStr(),E=t.loadingStatus();let v=null;if("loading"===E&&(v=q().createElement("div",{className:"info"},q().createElement("div",{className:"loading-container"},q().createElement("div",{className:"loading"})))),"failed"===E&&(v=q().createElement("div",{className:"info"},q().createElement("div",{className:"loading-container"},q().createElement("h4",{className:"title"},"Failed to load API definition."),q().createElement(u,null)))),"failedConfig"===E){const t=e.lastError(),r=t?t.get("message"):"";v=q().createElement("div",{className:"info failed-config"},q().createElement("div",{className:"loading-container"},q().createElement("h4",{className:"title"},"Failed to load remote configuration."),q().createElement("p",null,r)))}if(!v&&y&&(v=q().createElement("h4",null,"No API definition provided.")),v)return q().createElement("div",{className:"swagger-ui"},q().createElement("div",{className:"loading-container"},v));const S=t.servers(),C=t.schemes(),b=S&&S.size,x=C&&C.size,w=!!t.securityDefinitions();return q().createElement("div",{className:"swagger-ui"},q().createElement(n,null),q().createElement(a,{isSwagger2:g,isOAS3:f,alsoShow:q().createElement(u,null)},q().createElement(u,null),q().createElement(i,{className:"information-container"},q().createElement(c,{mobile:12},q().createElement(s,null))),b||x||w?q().createElement("div",{className:"scheme-container"},q().createElement(c,{className:"schemes wrapper",mobile:12},b?q().createElement(p,null):null,x?q().createElement(d,null):null,w?q().createElement(m,null):null)):null,q().createElement(h,null),q().createElement(i,null,q().createElement(c,{mobile:12,desktop:12},q().createElement(o,null))),q().createElement(i,null,q().createElement(c,{mobile:12,desktop:12},q().createElement(l,null)))))}}const Qr=require("react-debounce-input");var en=r.n(Qr);const tn={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,R.List)()};class rn extends N.Component{componentDidMount(){const{dispatchInitialValue:e,value:t,onChange:r}=this.props;e?r(t):!1===e&&r("")}render(){let{schema:e,errors:t,value:r,onChange:n,getComponent:s,fn:a,disabled:o}=this.props;const l=e&&e.get?e.get("format"):null,i=e&&e.get?e.get("type"):null;let c=e=>s(e,!1,{failSilently:!0}),u=i?c(l?`JsonSchema_${i}_${l}`:`JsonSchema_${i}`):s("JsonSchema_string");return u||(u=s("JsonSchema_string")),q().createElement(u,Qt()({},this.props,{errors:t,fn:a,getComponent:s,value:r,onChange:n,schema:e,disabled:o}))}}ce()(rn,"defaultProps",tn);class nn extends N.Component{constructor(){super(...arguments),ce()(this,"onChange",(e=>{const t=this.props.schema&&"file"===this.props.schema.get("type")?e.target.files[0]:e.target.value;this.props.onChange(t,this.props.keyName)})),ce()(this,"onEnumChange",(e=>this.props.onChange(e)))}render(){let{getComponent:e,value:t,schema:r,errors:n,required:s,description:a,disabled:o}=this.props;const l=r&&r.get?r.get("enum"):null,i=r&&r.get?r.get("format"):null,c=r&&r.get?r.get("type"):null,u=r&&r.get?r.get("in"):null;if(t||(t=""),n=n.toJS?n.toJS():[],l){const r=e("Select");return q().createElement(r,{className:n.length?"invalid":"",title:n.length?n:"",allowedValues:l,value:t,allowEmptyValue:!s,disabled:o,onChange:this.onEnumChange})}const p=o||u&&"formData"===u&&!("FormData"in window),d=e("Input");return c&&"file"===c?q().createElement(d,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onChange,disabled:p}):q().createElement(en(),{type:i&&"password"===i?"password":"text",className:n.length?"invalid":"",title:n.length?n:"",value:t,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:p})}}ce()(nn,"defaultProps",tn);class sn extends N.PureComponent{constructor(e,t){super(e,t),ce()(this,"onChange",(()=>{this.props.onChange(this.state.value)})),ce()(this,"onItemChange",((e,t)=>{this.setState((r=>{let{value:n}=r;return{value:n.set(t,e)}}),this.onChange)})),ce()(this,"removeItem",(e=>{this.setState((t=>{let{value:r}=t;return{value:r.delete(e)}}),this.onChange)})),ce()(this,"addItem",(()=>{let e=pn(this.state.value);this.setState((()=>({value:e.push((0,L.xi)(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)})),ce()(this,"onEnumChange",(e=>{this.setState((()=>({value:e})),this.onChange)})),this.state={value:pn(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const t=pn(e.value);t!==this.state.value&&this.setState({value:t}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}render(){var e;let{getComponent:t,required:r,schema:n,errors:s,fn:a,disabled:o}=this.props;s=s.toJS?s.toJS():C()(s)?s:[];const i=l()(s).call(s,(e=>"string"==typeof e)),c=_()(e=l()(s).call(s,(e=>void 0!==e.needRemove))).call(e,(e=>e.error)),u=this.state.value,p=!!(u&&u.count&&u.count()>0),d=n.getIn(["items","enum"]),m=n.getIn(["items","type"]),h=n.getIn(["items","format"]),g=n.get("items");let f,y=!1,E="file"===m||"string"===m&&"binary"===h;if(m&&h?f=t(`JsonSchema_${m}_${h}`):"boolean"!==m&&"array"!==m&&"object"!==m||(f=t(`JsonSchema_${m}`)),f||E||(y=!0),d){const e=t("Select");return q().createElement(e,{className:s.length?"invalid":"",title:s.length?s:"",multiple:!0,value:u,disabled:o,allowedValues:d,allowEmptyValue:!r,onChange:this.onEnumChange})}const v=t("Button");return q().createElement("div",{className:"json-schema-array"},p?_()(u).call(u,((e,r)=>{var n;const i=(0,R.fromJS)([..._()(n=l()(s).call(s,(e=>e.index===r))).call(n,(e=>e.error))]);return q().createElement("div",{key:r,className:"json-schema-form-item"},E?q().createElement(on,{value:e,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i,getComponent:t}):y?q().createElement(an,{value:e,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i}):q().createElement(f,Qt()({},this.props,{value:e,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i,schema:g,getComponent:t,fn:a})),o?null:q().createElement(v,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(r)}," - "))})):null,o?null:q().createElement(v,{className:`btn btn-sm json-schema-form-item-add ${i.length?"invalid":null}`,title:i.length?i:"",onClick:this.addItem},"Add ",m?`${m} `:"","item"))}}ce()(sn,"defaultProps",tn);class an extends N.Component{constructor(){super(...arguments),ce()(this,"onChange",(e=>{const t=e.target.value;this.props.onChange(t,this.props.keyName)}))}render(){let{value:e,errors:t,description:r,disabled:n}=this.props;return e||(e=""),t=t.toJS?t.toJS():[],q().createElement(en(),{type:"text",className:t.length?"invalid":"",title:t.length?t:"",value:e,minLength:0,debounceTimeout:350,placeholder:r,onChange:this.onChange,disabled:n})}}ce()(an,"defaultProps",tn);class on extends N.Component{constructor(){super(...arguments),ce()(this,"onFileChange",(e=>{const t=e.target.files[0];this.props.onChange(t,this.props.keyName)}))}render(){let{getComponent:e,errors:t,disabled:r}=this.props;const n=e("Input"),s=r||!("FormData"in window);return q().createElement(n,{type:"file",className:t.length?"invalid":"",title:t.length?t:"",onChange:this.onFileChange,disabled:s})}}ce()(on,"defaultProps",tn);class ln extends N.Component{constructor(){super(...arguments),ce()(this,"onEnumChange",(e=>this.props.onChange(e)))}render(){let{getComponent:e,value:t,errors:r,schema:n,required:s,disabled:a}=this.props;r=r.toJS?r.toJS():[];let o=n&&n.get?n.get("enum"):null,l=!o||!s,i=!o&&(0,R.fromJS)(["true","false"]);const c=e("Select");return q().createElement(c,{className:r.length?"invalid":"",title:r.length?r:"",value:String(t),disabled:a,allowedValues:o||i,allowEmptyValue:l,onChange:this.onEnumChange})}}ce()(ln,"defaultProps",tn);const cn=e=>_()(e).call(e,(e=>{const t=void 0!==e.propKey?e.propKey:e.index;let r="string"==typeof e?e:"string"==typeof e.error?e.error:null;if(!t&&r)return r;let n=e.error,s=`/${e.propKey}`;for(;"object"==typeof n;){const e=void 0!==n.propKey?n.propKey:n.index;if(void 0===e)break;if(s+=`/${e}`,!n.error)break;n=n.error}return`${s}: ${n}`}));class un extends N.PureComponent{constructor(){super(),ce()(this,"onChange",(e=>{this.props.onChange(e)})),ce()(this,"handleOnChange",(e=>{const t=e.target.value;this.onChange(t)}))}render(){let{getComponent:e,value:t,errors:r,disabled:n}=this.props;const s=e("TextArea");return r=r.toJS?r.toJS():C()(r)?r:[],q().createElement("div",null,q().createElement(s,{className:mt()({invalid:r.length}),title:r.length?cn(r).join(", "):"",value:(0,L.Pz)(t),disabled:n,onChange:this.handleOnChange}))}}function pn(e){return R.List.isList(e)?e:C()(e)?(0,R.fromJS)(e):(0,R.List)()}function dn(){let r={components:{App:he,authorizationPopup:ge,authorizeBtn:fe,AuthorizeBtnContainer:ye,authorizeOperationBtn:Ee,auths:ve,AuthItem:Se,authError:Ce,oauth2:De,apiKeyAuth:be,basicAuth:xe,clear:Le,liveResponse:Be,InitializedInput:fr,info:Cr,InfoContainer:br,JumpToPath:xr,CopyToClipboardBtn:wr,onlineValidatorBadge:$e.Z,operations:We,operation:et,OperationSummary:nt,OperationSummaryMethod:st,OperationSummaryPath:lt,highlightCode:xt,responses:wt,response:Nt,ResponseExtension:qt,responseBody:Ot,parameters:Vt,parameterRow:Bt,execute:Ft,headers:Wt,errors:Ht,contentType:Yt,overview:hr,footer:_r,FilterContainer:Ar,ParamBody:Nr,curl:Tr,schemes:Rr,SchemesContainer:Pr,modelExample:jr,ModelWrapper:Vr,ModelCollapse:kr,Model:Dr.Z,Models:Lr,EnumModel:Ur,ObjectModel:zr,ArrayModel:Br,PrimitiveModel:Jr,Property:Fr,TryItOutButton:Wr,Markdown:Yr.Z,BaseLayout:Xr,VersionPragmaFilter:Hr,VersionStamp:Kr,OperationExt:it,OperationExtRow:ct,ParameterExt:Dt,ParameterIncludeEmpty:Ut,OperationTag:Qe,OperationContainer:me,DeepLink:Zr,InfoUrl:Sr,InfoBasePath:yr,SvgAssets:Gr,Example:we,ExamplesSelect:Ie,ExamplesSelectValueRetainer:qe}},n={components:e},s={components:t};return[ne.default,te.default,X.default,Z.default,K.default,W.default,H.default,G.default,r,n,Q.default,s,ee.default,re.default,se.default,ae.default,oe.default,Y.default,(0,le.default)()]}ce()(un,"defaultProps",tn);var mn=r(7451);function hn(){return[dn,mn.default]}var gn=r(5308);const{GIT_DIRTY:fn,GIT_COMMIT:yn,PACKAGE_VERSION:En,BUILD_TIME:vn}={PACKAGE_VERSION:"4.14.1",GIT_COMMIT:"g6afa9a0",GIT_DIRTY:!0,BUILD_TIME:"Thu, 22 Sep 2022 16:49:49 GMT"};function Sn(e){var t;D.Z.versions=D.Z.versions||{},D.Z.versions.swaggerUi={version:En,gitRevision:yn,gitDirty:fn,buildTimestamp:vn};const r={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,a()(t=window.location.pathname).call(t,"/"))}/oauth2-redirect.html`,persistAuthorization:!1,configs:{},custom:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>e,responseInterceptor:e=>e,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:[hn],plugins:[],pluginsOptions:{pluginLoadType:"legacy"},initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"}};let n=e.queryConfigEnabled?(0,L.UG)():{};const s=e.domNode;delete e.domNode;const o=m()({},r,e,n),i={system:{configs:o.configs},plugins:o.presets,pluginsOptions:o.pluginsOptions,state:m()({layout:{layout:o.layout,filter:l()(o)},spec:{spec:"",url:o.url},requestSnippets:o.requestSnippets},o.initialState)};if(o.initialState)for(var u in o.initialState)Object.prototype.hasOwnProperty.call(o.initialState,u)&&void 0===o.initialState[u]&&delete i.state[u];var d=new z(i);d.register([o.plugins,()=>({fn:o.fn,components:o.components,state:o.state})]);var h=d.getSystem();const g=e=>{let t=h.specSelectors.getLocalConfig?h.specSelectors.getLocalConfig():{},r=m()({},t,o,e||{},n);if(s&&(r.domNode=s),d.setConfigs(r),h.configsActions.loaded(),null!==e&&(!n.url&&"object"==typeof r.spec&&c()(r.spec).length?(h.specActions.updateUrl(""),h.specActions.updateLoadingStatus("success"),h.specActions.updateSpec(p()(r.spec))):h.specActions.download&&r.url&&!r.urls&&(h.specActions.updateUrl(r.url),h.specActions.download(r.url))),r.domNode)h.render(r.domNode,"App");else if(r.dom_id){let e=document.querySelector(r.dom_id);h.render(e,"App")}else null===r.dom_id||null===r.domNode||console.error("Skipped rendering: no `dom_id` or `domNode` was specified");return h},f=n.config||o.configUrl;return f&&h.specActions&&h.specActions.getConfigByUrl?(h.specActions.getConfigByUrl({url:f,loadRemoteConfig:!0,requestInterceptor:o.requestInterceptor,responseInterceptor:o.responseInterceptor},g),h):g()}Sn.presets={apis:hn},Sn.plugins=gn.default;const Cn=Sn})(),n=n.default})()}));
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(()=>(()=>{var e={6024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var s=n(4250),r=n.n(s),a=n(1093),o=n.n(a),l=n(8493),c=n.n(l),i=n(3942),u=n.n(i),p=n(6689),m=n.n(p);const d=require("react-immutable-pure-component");var h=n.n(d),g=n(8082),f=n.n(g),y=n(580),S=n.n(y);const v=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class E extends(h()){constructor(){super(...arguments),o()(this,"getModelName",(e=>-1!==c()(e).call(e,"#/definitions/")?v(e.replace(/^.*#\/definitions\//,"")):-1!==c()(e).call(e,"#/components/schemas/")?v(e.replace(/^.*#\/components\/schemas\//,"")):void 0)),o()(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:s,schema:a,required:o,name:l,isRef:c,specPath:i,displayName:u,includeReadOnly:p,includeWriteOnly:d}=this.props;const h=e("ObjectModel"),g=e("ArrayModel"),f=e("PrimitiveModel");let y="object",S=a&&a.get("$$ref");if(!l&&S&&(l=this.getModelName(S)),!a&&S&&(a=this.getRefSchema(l)),!a)return m().createElement("span",{className:"model model-title"},m().createElement("span",{className:"model-title__text"},u||l),m().createElement("img",{src:n(2517),height:"20px",width:"20px"}));const v=s.isOAS3()&&a.get("deprecated");switch(c=void 0!==c?c:!!S,y=a&&a.get("type")||y,y){case"object":return m().createElement(h,r()({className:"object"},this.props,{specPath:i,getConfigs:t,schema:a,name:l,deprecated:v,isRef:c,includeReadOnly:p,includeWriteOnly:d}));case"array":return m().createElement(g,r()({className:"array"},this.props,{getConfigs:t,schema:a,name:l,deprecated:v,required:o,includeReadOnly:p,includeWriteOnly:d}));default:return m().createElement(f,r()({},this.props,{getComponent:e,getConfigs:t,schema:a,name:l,deprecated:v,required:o}))}}}o()(E,"propTypes",{schema:u()(f()).isRequired,getComponent:S().func.isRequired,getConfigs:S().func.isRequired,specSelectors:S().object.isRequired,name:S().string,displayName:S().string,isRef:S().bool,required:S().bool,expandDepth:S().number,depth:S().number,specPath:f().list.isRequired,includeReadOnly:S().bool,includeWriteOnly:S().bool})},5623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var s=n(1093),r=n.n(s),a=n(7252),o=n.n(a),l=n(6689),c=n.n(l),i=n(3883),u=n.n(i),p=(n(580),n(1669)),m=n(7504);class d extends c().Component{constructor(e,t){super(e,t),r()(this,"getDefinitionUrl",(()=>{let{specSelectors:e}=this.props;return new(u())(e.url(),m.Z.location).toString()}));let{getConfigs:n}=e,{validatorUrl:s}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:void 0===s?"https://validator.swagger.io/validator":s}}UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:n}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:void 0===n?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),n=(0,p.Nm)(this.state.validatorUrl);return"object"==typeof t&&o()(t).length?null:this.state.url&&(0,p.hW)(this.state.validatorUrl)&&(0,p.hW)(this.state.url)?c().createElement("span",{className:"float-right"},c().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},c().createElement(h,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class h extends c().Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?c().createElement("img",{alt:"Error"}):this.state.loaded?c().createElement("img",{src:this.props.src,alt:this.props.alt}):null}}},2552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,s:()=>d});var s=n(6689),r=n.n(s),a=(n(580),n(963));const o=require("remarkable/linkify"),l=require("dompurify");var c=n.n(l),i=n(9003),u=n.n(i);function p(e){let{source:t,className:n="",getConfigs:s}=e;if("string"!=typeof t)return null;const l=new a.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(o.linkify);l.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:c}=s(),i=l.render(t),p=d(i,{useUnsafeMarkdown:c});return t&&i&&p?r().createElement("div",{className:u()(n,"markdown"),dangerouslySetInnerHTML:{__html:p}}):null}c().addHook&&c().addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e})),p.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const m=p;function d(e){let{useUnsafeMarkdown:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t,s=t?[]:["style","class"];return t&&!d.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),d.hasWarnedAboutDeprecation=!0),c().sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:n,FORBID_ATTR:s})}d.hasWarnedAboutDeprecation=!1},5308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s,r=n(4235),a=n.n(r),o=n(874),l=n.n(o),c=n(1669),i=n(9595);const u=n(5102),p={},m=p;a()(s=l()(u).call(u)).call(s,(function(e){if("./index.js"===e)return;let t=u(e);p[(0,c.Zl)(e)]=t.default?t.default:t})),p.SafeRender=i.default},5812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AUTHORIZE:()=>m,AUTHORIZE_OAUTH2:()=>g,CONFIGURE_AUTH:()=>y,LOGOUT:()=>d,PRE_AUTHORIZE_OAUTH2:()=>h,RESTORE_AUTHORIZATION:()=>S,SHOW_AUTH_POPUP:()=>p,VALIDATE:()=>f,authPopup:()=>T,authorize:()=>E,authorizeAccessCodeWithBasicAuthentication:()=>A,authorizeAccessCodeWithFormParams:()=>k,authorizeApplication:()=>O,authorizeOauth2:()=>j,authorizeOauth2WithPersistOption:()=>_,authorizePassword:()=>N,authorizeRequest:()=>I,authorizeWithPersistOption:()=>x,configureAuth:()=>P,logout:()=>w,logoutWithPersistOption:()=>C,persistAuthorizationIfNeeded:()=>R,preAuthorizeImplicit:()=>b,restoreAuthorization:()=>q,showDefinitions:()=>v});var s=n(8344),r=n.n(s),a=n(4994),o=n.n(a),l=n(3883),c=n.n(l),i=n(7504),u=n(1669);const p="show_popup",m="authorize",d="logout",h="pre_authorize_oauth2",g="authorize_oauth2",f="validate",y="configure_auth",S="restore_authorization";function v(e){return{type:p,payload:e}}function E(e){return{type:m,payload:e}}const x=e=>t=>{let{authActions:n}=t;n.authorize(e),n.persistAuthorizationIfNeeded()};function w(e){return{type:d,payload:e}}const C=e=>t=>{let{authActions:n}=t;n.logout(e),n.persistAuthorizationIfNeeded()},b=e=>t=>{let{authActions:n,errActions:s}=t,{auth:a,token:o,isValid:l}=e,{schema:c,name:u}=a,p=c.get("flow");delete i.Z.swaggerUIRedirectOauth2,"accessCode"===p||l||s.newAuthErr({authId:u,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),o.error?s.newAuthErr({authId:u,source:"auth",level:"error",message:r()(o)}):n.authorizeOauth2WithPersistOption({auth:a,token:o})};function j(e){return{type:g,payload:e}}const _=e=>t=>{let{authActions:n}=t;n.authorizeOauth2(e),n.persistAuthorizationIfNeeded()},N=e=>t=>{let{authActions:n}=t,{schema:s,name:r,username:a,password:l,passwordType:c,clientId:i,clientSecret:p}=e,m={grant_type:"password",scope:e.scopes.join(" "),username:a,password:l},d={};switch(c){case"request-body":!function(e,t,n){t&&o()(e,{client_id:t});n&&o()(e,{client_secret:n})}(m,i,p);break;case"basic":d.Authorization="Basic "+(0,u.r3)(i+":"+p);break;default:console.warn(`Warning: invalid passwordType ${c} was passed, not including client id and secret`)}return n.authorizeRequest({body:(0,u.GZ)(m),url:s.get("tokenUrl"),name:r,headers:d,query:{},auth:e})};const O=e=>t=>{let{authActions:n}=t,{schema:s,scopes:r,name:a,clientId:o,clientSecret:l}=e,c={Authorization:"Basic "+(0,u.r3)(o+":"+l)},i={grant_type:"client_credentials",scope:r.join(" ")};return n.authorizeRequest({body:(0,u.GZ)(i),name:a,url:s.get("tokenUrl"),auth:e,headers:c})},k=e=>{let{auth:t,redirectUrl:n}=e;return e=>{let{authActions:s}=e,{schema:r,name:a,clientId:o,clientSecret:l,codeVerifier:c}=t,i={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:l,redirect_uri:n,code_verifier:c};return s.authorizeRequest({body:(0,u.GZ)(i),name:a,url:r.get("tokenUrl"),auth:t})}},A=e=>{let{auth:t,redirectUrl:n}=e;return e=>{let{authActions:s}=e,{schema:r,name:a,clientId:o,clientSecret:l,codeVerifier:c}=t,i={Authorization:"Basic "+(0,u.r3)(o+":"+l)},p={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:n,code_verifier:c};return s.authorizeRequest({body:(0,u.GZ)(p),name:a,url:r.get("tokenUrl"),auth:t,headers:i})}},I=e=>t=>{let n,{fn:s,getConfigs:a,authActions:l,errActions:i,oas3Selectors:u,specSelectors:p,authSelectors:m}=t,{body:d,query:h={},headers:g={},name:f,url:y,auth:S}=e,{additionalQueryStringParams:v}=m.getConfigs()||{};if(p.isOAS3()){let e=u.serverEffectiveValue(u.selectedServer());n=c()(y,e,!0)}else n=c()(y,p.url(),!0);"object"==typeof v&&(n.query=o()({},n.query,v));const E=n.toString();let x=o()({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},g);s.fetch({url:E,method:"post",headers:x,query:h,body:d,requestInterceptor:a().requestInterceptor,responseInterceptor:a().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),n=t&&(t.error||""),s=t&&(t.parseError||"");e.ok?n||s?i.newAuthErr({authId:f,level:"error",source:"auth",message:r()(t)}):l.authorizeOauth2WithPersistOption({auth:S,token:t}):i.newAuthErr({authId:f,level:"error",source:"auth",message:e.statusText})})).catch((e=>{let t=new Error(e).message;if(e.response&&e.response.data){const n=e.response.data;try{const e="string"==typeof n?JSON.parse(n):n;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch(e){}}i.newAuthErr({authId:f,level:"error",source:"auth",message:t})}))};function P(e){return{type:y,payload:e}}function q(e){return{type:S,payload:e}}const R=()=>e=>{let{authSelectors:t,getConfigs:n}=e;if(!n().persistAuthorization)return;const s=t.authorized().toJS();localStorage.setItem("authorized",r()(s))},T=(e,t)=>()=>{i.Z.swaggerUIRedirectOauth2=t,i.Z.open(e)}},3779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loaded:()=>s});const s=(e,t)=>n=>{const{getConfigs:s,authActions:r}=t,a=s();if(e(n),a.persistAuthorization){const e=localStorage.getItem("authorized");e&&r.restoreAuthorization({authorized:JSON.parse(e)})}}},3705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,preauthorizeApiKey:()=>d,preauthorizeBasic:()=>m});var s=n(593),r=n.n(s),a=n(3962),o=n(5812),l=n(35),c=n(489),i=n(3779),u=n(2849);function p(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=r()(d).call(d,null,e),this.rootInjects.preauthorizeBasic=r()(m).call(m,null,e)},statePlugins:{auth:{reducers:a.default,actions:o,selectors:l,wrapActions:{authorize:u.authorize,logout:u.logout}},configs:{wrapActions:{loaded:i.loaded}},spec:{wrapActions:{execute:c.execute}}}}}function m(e,t,n,s){const{authActions:{authorize:r},specSelectors:{specJson:a,isOAS3:o}}=e,l=o()?["components","securitySchemes"]:["securityDefinitions"],c=a().getIn([...l,t]);return c?r({[t]:{value:{username:n,password:s},schema:c.toJS()}}):null}function d(e,t,n){const{authActions:{authorize:s},specSelectors:{specJson:r,isOAS3:a}}=e,o=a()?["components","securitySchemes"]:["securityDefinitions"],l=r().getIn([...o,t]);return l?s({[t]:{value:n,schema:l.toJS()}}):null}},3962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(4235),r=n.n(s),a=n(4994),o=n.n(a),l=n(5572),c=n(1669),i=n(5812);const u={[i.SHOW_AUTH_POPUP]:(e,t)=>{let{payload:n}=t;return e.set("showDefinitions",n)},[i.AUTHORIZE]:(e,t)=>{var n;let{payload:s}=t,a=(0,l.fromJS)(s),o=e.get("authorized")||(0,l.Map)();return r()(n=a.entrySeq()).call(n,(t=>{let[n,s]=t;if(!(0,c.Wl)(s.getIn))return e.set("authorized",o);let r=s.getIn(["schema","type"]);if("apiKey"===r||"http"===r)o=o.set(n,s);else if("basic"===r){let e=s.getIn(["value","username"]),t=s.getIn(["value","password"]);o=o.setIn([n,"value"],{username:e,header:"Basic "+(0,c.r3)(e+":"+t)}),o=o.setIn([n,"schema"],s.get("schema"))}})),e.set("authorized",o)},[i.AUTHORIZE_OAUTH2]:(e,t)=>{let n,{payload:s}=t,{auth:r,token:a}=s;r.token=o()({},a),n=(0,l.fromJS)(r);let c=e.get("authorized")||(0,l.Map)();return c=c.set(n.get("name"),n),e.set("authorized",c)},[i.LOGOUT]:(e,t)=>{let{payload:n}=t,s=e.get("authorized").withMutations((e=>{r()(n).call(n,(t=>{e.delete(t)}))}));return e.set("authorized",s)},[i.CONFIGURE_AUTH]:(e,t)=>{let{payload:n}=t;return e.set("configs",n)},[i.RESTORE_AUTHORIZATION]:(e,t)=>{let{payload:n}=t;return e.set("authorized",(0,l.fromJS)(n.authorized))}}},35:(e,t,n)=>{"use strict";n.r(t),n.d(t,{authorized:()=>w,definitionsForRequirements:()=>x,definitionsToAuthorize:()=>v,getConfigs:()=>b,getDefinitionsByNames:()=>E,isAuthorized:()=>C,shownDefinitions:()=>S});var s=n(4235),r=n.n(s),a=n(3580),o=n.n(a),l=n(9998),c=n.n(l),i=n(8493),u=n.n(i),p=n(3942),m=n.n(p),d=n(7252),h=n.n(d),g=n(6814),f=n(5572);const y=e=>e,S=(0,g.createSelector)(y,(e=>e.get("showDefinitions"))),v=(0,g.createSelector)(y,(()=>e=>{var t;let{specSelectors:n}=e,s=n.securityDefinitions()||(0,f.Map)({}),a=(0,f.List)();return r()(t=s.entrySeq()).call(t,(e=>{let[t,n]=e,s=(0,f.Map)();s=s.set(t,n),a=a.push(s)})),a})),E=(e,t)=>e=>{var n;let{specSelectors:s}=e;console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let a=s.securityDefinitions(),o=(0,f.List)();return r()(n=t.valueSeq()).call(n,(e=>{var t;let n=(0,f.Map)();r()(t=e.entrySeq()).call(t,(e=>{let t,[s,o]=e,l=a.get(s);var c;"oauth2"===l.get("type")&&o.size&&(t=l.get("scopes"),r()(c=t.keySeq()).call(c,(e=>{o.contains(e)||(t=t.delete(e))})),l=l.set("allowedScopes",t));n=n.set(s,l)})),o=o.push(n)})),o},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,f.List)();return e=>{let{authSelectors:n}=e;const s=n.definitionsToAuthorize()||(0,f.List)();let a=(0,f.List)();return r()(s).call(s,(e=>{let n=o()(t).call(t,(t=>t.get(e.keySeq().first())));n&&(r()(e).call(e,((t,s)=>{if("oauth2"===t.get("type")){const o=n.get(s);let l=t.get("scopes");var a;if(f.List.isList(o)&&f.Map.isMap(l))r()(a=l.keySeq()).call(a,(e=>{o.contains(e)||(l=l.delete(e))})),e=e.set(s,t.set("scopes",l))}})),a=a.push(e))})),a}},w=(0,g.createSelector)(y,(e=>e.get("authorized")||(0,f.Map)())),C=(e,t)=>e=>{var n;let{authSelectors:s}=e,r=s.authorized();return f.List.isList(t)?!!c()(n=t.toJS()).call(n,(e=>{var t,n;return-1===u()(t=m()(n=h()(e)).call(n,(e=>!!r.get(e)))).call(t,!1)})).length:null},b=(0,g.createSelector)(y,(e=>e.get("configs")))},489:(e,t,n)=>{"use strict";n.r(t),n.d(t,{execute:()=>s});const s=(e,t)=>{let{authSelectors:n,specSelectors:s}=t;return t=>{let{path:r,method:a,operation:o,extras:l}=t,c={authorized:n.authorized()&&n.authorized().toJS(),definitions:s.securityDefinitions()&&s.securityDefinitions().toJS(),specSecurity:s.security()&&s.security().toJS()};return e({path:r,method:a,operation:o,securities:c,...l})}}},2849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{authorize:()=>i,logout:()=>u});var s=n(9968),r=n.n(s),a=n(7104),o=n.n(a),l=n(4235),c=n.n(l);const i=(e,t)=>n=>{e(n);if(t.getConfigs().persistAuthorization)try{const[{schema:e,value:t}]=r()(n),s="apiKey"===e.get("type"),a="cookie"===e.get("in");s&&a&&(document.cookie=`${e.get("name")}=${t}; SameSite=None; Secure`)}catch(e){console.error("Error persisting cookie based apiKey in document.cookie.",e)}},u=(e,t)=>n=>{const s=t.getConfigs(),r=t.authSelectors.authorized();try{s.persistAuthorization&&o()(n)&&c()(n).call(n,(e=>{const t=r.get(e,{}),n="apiKey"===t.getIn(["schema","type"]),s="cookie"===t.getIn(["schema","in"]);if(n&&s){const e=t.getIn(["schema","name"]);document.cookie=`${e}=; Max-Age=-99999999`}}))}catch(e){console.error("Error deleting cookie based apiKey from document.cookie.",e)}e(n)}},714:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TOGGLE_CONFIGS:()=>r,UPDATE_CONFIGS:()=>s,loaded:()=>l,toggle:()=>o,update:()=>a});const s="configs_update",r="configs_toggle";function a(e,t){return{type:s,payload:{[e]:t}}}function o(e){return{type:r,payload:e}}const l=()=>()=>{}},2256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseYamlConfig:()=>a});var s=n(9793),r=n.n(s);const a=(e,t)=>{try{return r().load(e)}catch(e){return t&&t.errActions.newThrownErr(new Error(e)),{}}}},6709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(2256),r=n(714),a=n(2698),o=n(9018),l=n(7743);const c={getLocalConfig:()=>(0,s.parseYamlConfig)('---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n')};function i(){return{statePlugins:{spec:{actions:a,selectors:c},configs:{reducers:l.default,actions:r,selectors:o}}}}},7743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(5572),r=n(714);const a={[r.UPDATE_CONFIGS]:(e,t)=>e.merge((0,s.fromJS)(t.payload)),[r.TOGGLE_CONFIGS]:(e,t)=>{const n=t.payload,s=e.get(n);return e.set(n,!s)}}},9018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{get:()=>a});var s=n(7104),r=n.n(s);const a=(e,t)=>e.getIn(r()(t)?t:[t])},2698:(e,t,n)=>{"use strict";n.r(t),n.d(t,{downloadConfig:()=>r,getConfigByUrl:()=>a});var s=n(2256);const r=e=>t=>{const{fn:{fetch:n}}=t;return n(e)},a=(e,t)=>n=>{let{specActions:r}=n;if(e)return r.downloadConfig(e).then(a,a);function a(n){n instanceof Error||n.status>=400?(r.updateLoadingStatus("failedConfig"),r.updateLoadingStatus("failedConfig"),r.updateUrl(""),console.error(n.statusText+" "+e.url),t(null)):t((0,s.parseYamlConfig)(n.text))}}},1970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setHash:()=>s});const s=e=>e?history.pushState(null,null,`#${e}`):window.location.hash=""},4980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(2179),r=n(877),a=n(4584);function o(){return[s.default,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>function(){e(...arguments);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:r.default,OperationTag:a.default}}]}},2179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearScrollTo:()=>b,default:()=>j,parseDeepLinkHash:()=>x,readyToScroll:()=>w,scrollTo:()=>E,scrollToElement:()=>C,show:()=>v});var s=n(7104),r=n.n(s),a=n(600),o=n.n(a),l=n(3942),c=n.n(l),i=n(8493),u=n.n(i),p=n(1970);const m=require("zenscroll");var d=n.n(m),h=n(1669),g=n(5572),f=n.n(g);const y="layout_scroll_to",S="layout_clear_scroll",v=(e,t)=>{let{getConfigs:n,layoutSelectors:s}=t;return function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];if(e(...a),n().deepLinking)try{let[e,t]=a;e=r()(e)?e:[e];const n=s.urlHashArrayFromIsShownKey(e);if(!n.length)return;const[o,l]=n;if(!t)return(0,p.setHash)("/");2===n.length?(0,p.setHash)((0,h.oJ)(`/${encodeURIComponent(o)}/${encodeURIComponent(l)}`)):1===n.length&&(0,p.setHash)((0,h.oJ)(`/${encodeURIComponent(o)}`))}catch(e){console.error(e)}}},E=e=>({type:y,payload:r()(e)?e:[e]}),x=e=>t=>{let{layoutActions:n,layoutSelectors:s,getConfigs:r}=t;if(r().deepLinking&&e){var a;let t=o()(e).call(e,1);"!"===t[0]&&(t=o()(t).call(t,1)),"/"===t[0]&&(t=o()(t).call(t,1));const r=c()(a=t.split("/")).call(a,(e=>e||"")),l=s.isShownKeyFromUrlHashArray(r),[i,p="",m=""]=l;if("operations"===i){const e=s.isShownKeyFromUrlHashArray([p]);u()(p).call(p,"_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),n.show(c()(e).call(e,(e=>e.replace(/_/g," "))),!0)),n.show(e,!0)}(u()(p).call(p,"_")>-1||u()(m).call(m,"_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),n.show(c()(l).call(l,(e=>e.replace(/_/g," "))),!0)),n.show(l,!0),n.scrollTo(l)}},w=(e,t)=>n=>{const s=n.layoutSelectors.getScrollToKey();f().is(s,(0,g.fromJS)(e))&&(n.layoutActions.scrollToElement(t),n.layoutActions.clearScrollTo())},C=(e,t)=>n=>{try{t=t||n.fn.getScrollParent(e),d().createScroller(t).to(e)}catch(e){console.error(e)}},b=()=>({type:S});const j={fn:{getScrollParent:function(e,t){const n=document.documentElement;let s=getComputedStyle(e);const r="absolute"===s.position,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===s.position)return n;for(let t=e;t=t.parentElement;)if(s=getComputedStyle(t),(!r||"static"!==s.position)&&a.test(s.overflow+s.overflowY+s.overflowX))return t;return n}},statePlugins:{layout:{actions:{scrollToElement:C,scrollTo:E,clearScrollTo:b,readyToScroll:w,parseDeepLinkHash:x},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[n,s]=t;return s?["operations",n,s]:n?["operations-tag",n]:[]},urlHashArrayFromIsShownKey(e,t){let[n,s,r]=t;return"operations"==n?[s,r]:"operations-tag"==n?[s]:[]}},reducers:{[y]:(e,t)=>e.set("scrollToKey",f().fromJS(t.payload)),[S]:e=>e.delete("scrollToKey")},wrapActions:{show:v}}}}},4584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(1093),r=n.n(s),a=n(6689),o=n.n(a);n(580);const l=(e,t)=>class extends o().Component{constructor(){super(...arguments),r()(this,"onLoad",(e=>{const{tag:n}=this.props,s=["operations-tag",n];t.layoutActions.readyToScroll(s,e)}))}render(){return o().createElement("span",{ref:this.onLoad},o().createElement(e,this.props))}}},877:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(1093),r=n.n(s),a=n(6689),o=n.n(a);n(8082);const l=(e,t)=>class extends o().Component{constructor(){super(...arguments),r()(this,"onLoad",(e=>{const{operation:n}=this.props,{tag:s,operationId:r}=n.toObject();let{isShownKey:a}=n.toObject();a=a||["operations",s,r],t.layoutActions.readyToScroll(a,e)}))}render(){return o().createElement("span",{ref:this.onLoad},o().createElement(e,this.props))}}},8011:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(4994),r=n.n(s),a=n(9478),o=n.n(a),l=n(8493),c=n.n(l),i=n(8344),u=n.n(i),p=n(6814),m=n(5572),d=n(7504);function h(e){let{fn:t}=e;return{statePlugins:{spec:{actions:{download:e=>n=>{let{errActions:s,specSelectors:a,specActions:l,getConfigs:c}=n,{fetch:i}=t;const u=c();function p(t){if(t instanceof Error||t.status>=400)return l.updateLoadingStatus("failed"),s.newThrownErr(r()(new Error((t.message||t.statusText)+" "+e),{source:"fetch"})),void(!t.status&&t instanceof Error&&function(){try{let t;if("URL"in d.Z?t=new(o())(e):(t=document.createElement("a"),t.href=e),"https:"!==t.protocol&&"https:"===d.Z.location.protocol){const e=r()(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void s.newThrownErr(e)}if(t.origin!==d.Z.location.origin){const e=r()(new Error(`Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${d.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});s.newThrownErr(e)}}catch(e){return}}());l.updateLoadingStatus("success"),l.updateSpec(t.text),a.url()!==e&&l.updateUrl(e)}e=e||a.url(),l.updateLoadingStatus("loading"),s.clear({source:"fetch"}),i({url:e,loadSpec:!0,requestInterceptor:u.requestInterceptor||(e=>e),responseInterceptor:u.responseInterceptor||(e=>e),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(p,p)},updateLoadingStatus:e=>{let t=[null,"loading","failed","success","failedConfig"];return-1===c()(t).call(t,e)&&console.error(`Error: ${e} is not one of ${u()(t)}`),{type:"spec_update_loading_status",payload:e}}},reducers:{spec_update_loading_status:(e,t)=>"string"==typeof t.payload?e.set("loadingStatus",t.payload):e},selectors:{loadingStatus:(0,p.createSelector)((e=>e||(0,m.Map)()),(e=>e.get("loadingStatus")||null))}}}}}},4966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLEAR:()=>i,CLEAR_BY:()=>u,NEW_AUTH_ERR:()=>c,NEW_SPEC_ERR:()=>o,NEW_SPEC_ERR_BATCH:()=>l,NEW_THROWN_ERR:()=>r,NEW_THROWN_ERR_BATCH:()=>a,clear:()=>f,clearBy:()=>y,newAuthErr:()=>g,newSpecErr:()=>d,newSpecErrBatch:()=>h,newThrownErr:()=>p,newThrownErrBatch:()=>m});var s=n(41);const r="err_new_thrown_err",a="err_new_thrown_err_batch",o="err_new_spec_err",l="err_new_spec_err_batch",c="err_new_auth_err",i="err_clear",u="err_clear_by";function p(e){return{type:r,payload:(0,s.serializeError)(e)}}function m(e){return{type:a,payload:e}}function d(e){return{type:o,payload:e}}function h(e){return{type:l,payload:e}}function g(e){return{type:c,payload:e}}function f(){return{type:i,payload:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function y(){return{type:u,payload:arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0}}},2860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(9998),r=n.n(s),a=n(3942),o=n.n(a);const l=require("lodash/reduce");var c=n.n(l);const i=[n(2392),n(1835)];function u(e){var t;let n={jsSpec:{}},s=c()(i,((e,t)=>{try{let s=t.transform(e,n);return r()(s).call(s,(e=>!!e))}catch(t){return console.error("Transformer error:",t),e}}),e);return o()(t=r()(s).call(s,(e=>!!e))).call(t,(e=>(!e.get("line")&&e.get("path"),e)))}},2392:(e,t,n)=>{"use strict";n.r(t),n.d(t,{transform:()=>p});var s=n(3942),r=n.n(s),a=n(8493),o=n.n(a),l=n(600),c=n.n(l),i=n(66),u=n.n(i);function p(e){return r()(e).call(e,(e=>{var t;let n="is not of a type(s)",s=o()(t=e.get("message")).call(t,n);if(s>-1){var r,a;let t=c()(r=e.get("message")).call(r,s+19).split(",");return e.set("message",c()(a=e.get("message")).call(a,0,s)+function(e){return u()(e).call(e,((e,t,n,s)=>n===s.length-1&&s.length>1?e+"or "+t:s[n+1]&&s.length>2?e+t+", ":s[n+1]?e+t+" ":e+t),"should be a")}(t))}return e}))}},1835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{transform:()=>s});n(3942),n(8493),n(1712),n(5572);function s(e,t){let{jsSpec:n}=t;return e}},7793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(3527),r=n(4966),a=n(7667);function o(e){return{statePlugins:{err:{reducers:(0,s.default)(e),actions:r,selectors:a}}}}},3527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var s=n(4994),r=n.n(s),a=n(3942),o=n.n(a),l=n(4883),c=n.n(l),i=n(9998),u=n.n(i),p=n(7834),m=n.n(p),d=n(4966),h=n(5572),g=n(2860);let f={line:0,level:"error",message:"Unknown error"};function y(){return{[d.NEW_THROWN_ERR]:(e,t)=>{let{payload:n}=t,s=r()(f,n,{type:"thrown"});return e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(s)))).update("errors",(e=>(0,g.default)(e)))},[d.NEW_THROWN_ERR_BATCH]:(e,t)=>{let{payload:n}=t;return n=o()(n).call(n,(e=>(0,h.fromJS)(r()(f,e,{type:"thrown"})))),e.update("errors",(e=>{var t;return c()(t=e||(0,h.List)()).call(t,(0,h.fromJS)(n))})).update("errors",(e=>(0,g.default)(e)))},[d.NEW_SPEC_ERR]:(e,t)=>{let{payload:n}=t,s=(0,h.fromJS)(n);return s=s.set("type","spec"),e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(s)).sortBy((e=>e.get("line"))))).update("errors",(e=>(0,g.default)(e)))},[d.NEW_SPEC_ERR_BATCH]:(e,t)=>{let{payload:n}=t;return n=o()(n).call(n,(e=>(0,h.fromJS)(r()(f,e,{type:"spec"})))),e.update("errors",(e=>{var t;return c()(t=e||(0,h.List)()).call(t,(0,h.fromJS)(n))})).update("errors",(e=>(0,g.default)(e)))},[d.NEW_AUTH_ERR]:(e,t)=>{let{payload:n}=t,s=(0,h.fromJS)(r()({},n));return s=s.set("type","auth"),e.update("errors",(e=>(e||(0,h.List)()).push((0,h.fromJS)(s)))).update("errors",(e=>(0,g.default)(e)))},[d.CLEAR]:(e,t)=>{var n;let{payload:s}=t;if(!s||!e.get("errors"))return e;let r=u()(n=e.get("errors")).call(n,(e=>{var t;return m()(t=e.keySeq()).call(t,(t=>{const n=e.get(t),r=s[t];return!r||n!==r}))}));return e.merge({errors:r})},[d.CLEAR_BY]:(e,t)=>{var n;let{payload:s}=t;if(!s||"function"!=typeof s)return e;let r=u()(n=e.get("errors")).call(n,(e=>s(e)));return e.merge({errors:r})}}}},7667:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allErrors:()=>a,lastError:()=>o});var s=n(5572),r=n(6814);const a=(0,r.createSelector)((e=>e),(e=>e.get("errors",(0,s.List)()))),o=(0,r.createSelector)(a,(e=>e.last()))},9978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(4309);function r(){return{fn:{opsFilter:s.default}}}},4309:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(9998),r=n.n(s),a=n(8493),o=n.n(a);function l(e,t){return r()(e).call(e,((e,n)=>-1!==o()(n).call(n,t)))}},7349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(6689),r=n.n(s),a=(n(580),n(9003)),o=n.n(a),l=n(2603);const c=e=>{let{expanded:t,children:n,onChange:a}=e;const c=(0,l.useComponent)("ChevronRightIcon"),i=(0,s.useCallback)((e=>{a(e,!t)}),[t,a]);return r().createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},r().createElement("div",{className:"json-schema-2020-12-accordion__children"},n),r().createElement("span",{className:o()("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},r().createElement(c,null)))};c.defaultProps={expanded:!1};const i=c},6867:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{expanded:t,onClick:n}=e;const a=(0,s.useCallback)((e=>{n(e,!t)}),[t,n]);return r().createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:a},t?"Collapse all":"Expand all")}},2675:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(3942),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l),i=(n(6648),n(2603)),u=n(9006);const p=(0,a.forwardRef)(((e,t)=>{let{schema:n,name:s,dependentRequired:l,onExpand:p}=e;const m=(0,i.useFn)(),d=(0,i.useIsExpanded)(),h=(0,i.useIsExpandedDeeply)(),[g,f]=(0,a.useState)(d||h),[y,S]=(0,a.useState)(h),[v,E]=(0,i.useLevel)(),x=(0,i.useIsEmbedded)(),w=m.isExpandable(n)||l.length>0,C=(0,i.useIsCircular)(n),b=(0,i.useRenderedSchemas)(n),j=m.stringifyConstraints(n),_=(0,i.useComponent)("Accordion"),N=(0,i.useComponent)("Keyword$schema"),O=(0,i.useComponent)("Keyword$vocabulary"),k=(0,i.useComponent)("Keyword$id"),A=(0,i.useComponent)("Keyword$anchor"),I=(0,i.useComponent)("Keyword$dynamicAnchor"),P=(0,i.useComponent)("Keyword$ref"),q=(0,i.useComponent)("Keyword$dynamicRef"),R=(0,i.useComponent)("Keyword$defs"),T=(0,i.useComponent)("Keyword$comment"),M=(0,i.useComponent)("KeywordAllOf"),D=(0,i.useComponent)("KeywordAnyOf"),J=(0,i.useComponent)("KeywordOneOf"),$=(0,i.useComponent)("KeywordNot"),K=(0,i.useComponent)("KeywordIf"),L=(0,i.useComponent)("KeywordThen"),V=(0,i.useComponent)("KeywordElse"),U=(0,i.useComponent)("KeywordDependentSchemas"),F=(0,i.useComponent)("KeywordPrefixItems"),z=(0,i.useComponent)("KeywordItems"),B=(0,i.useComponent)("KeywordContains"),W=(0,i.useComponent)("KeywordProperties"),H=(0,i.useComponent)("KeywordPatternProperties"),G=(0,i.useComponent)("KeywordAdditionalProperties"),Z=(0,i.useComponent)("KeywordPropertyNames"),X=(0,i.useComponent)("KeywordUnevaluatedItems"),Y=(0,i.useComponent)("KeywordUnevaluatedProperties"),Q=(0,i.useComponent)("KeywordType"),ee=(0,i.useComponent)("KeywordEnum"),te=(0,i.useComponent)("KeywordConst"),ne=(0,i.useComponent)("KeywordConstraint"),se=(0,i.useComponent)("KeywordDependentRequired"),re=(0,i.useComponent)("KeywordContentSchema"),ae=(0,i.useComponent)("KeywordTitle"),oe=(0,i.useComponent)("KeywordDescription"),le=(0,i.useComponent)("KeywordDefault"),ce=(0,i.useComponent)("KeywordDeprecated"),ie=(0,i.useComponent)("KeywordReadOnly"),ue=(0,i.useComponent)("KeywordWriteOnly"),pe=(0,i.useComponent)("ExpandDeepButton");(0,a.useEffect)((()=>{S(h)}),[h]),(0,a.useEffect)((()=>{S(y)}),[y]);const me=(0,a.useCallback)(((e,t)=>{f(t),!t&&S(!1),p(e,t,!1)}),[p]),de=(0,a.useCallback)(((e,t)=>{f(t),S(t),p(e,t,!0)}),[p]);return o().createElement(u.JSONSchemaLevelContext.Provider,{value:E},o().createElement(u.JSONSchemaDeepExpansionContext.Provider,{value:y},o().createElement(u.JSONSchemaCyclesContext.Provider,{value:b},o().createElement("article",{ref:t,"data-json-schema-level":v,className:c()("json-schema-2020-12",{"json-schema-2020-12--embedded":x,"json-schema-2020-12--circular":C})},o().createElement("div",{className:"json-schema-2020-12-head"},w&&!C?o().createElement(o().Fragment,null,o().createElement(_,{expanded:g,onChange:me},o().createElement(ae,{title:s,schema:n})),o().createElement(pe,{expanded:g,onClick:de})):o().createElement(ae,{title:s,schema:n}),o().createElement(ce,{schema:n}),o().createElement(ie,{schema:n}),o().createElement(ue,{schema:n}),o().createElement(Q,{schema:n,isCircular:C}),j.length>0&&r()(j).call(j,(e=>o().createElement(ne,{key:`${e.scope}-${e.value}`,constraint:e})))),o().createElement("div",{className:c()("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!g})},g&&o().createElement(o().Fragment,null,o().createElement(oe,{schema:n}),!C&&w&&o().createElement(o().Fragment,null,o().createElement(W,{schema:n}),o().createElement(H,{schema:n}),o().createElement(G,{schema:n}),o().createElement(Y,{schema:n}),o().createElement(Z,{schema:n}),o().createElement(M,{schema:n}),o().createElement(D,{schema:n}),o().createElement(J,{schema:n}),o().createElement($,{schema:n}),o().createElement(K,{schema:n}),o().createElement(L,{schema:n}),o().createElement(V,{schema:n}),o().createElement(U,{schema:n}),o().createElement(F,{schema:n}),o().createElement(z,{schema:n}),o().createElement(X,{schema:n}),o().createElement(B,{schema:n}),o().createElement(re,{schema:n})),o().createElement(ee,{schema:n}),o().createElement(te,{schema:n}),o().createElement(se,{schema:n,dependentRequired:l}),o().createElement(le,{schema:n}),o().createElement(N,{schema:n}),o().createElement(O,{schema:n}),o().createElement(k,{schema:n}),o().createElement(A,{schema:n}),o().createElement(I,{schema:n}),o().createElement(P,{schema:n}),!C&&w&&o().createElement(R,{schema:n}),o().createElement(q,{schema:n}),o().createElement(T,{schema:n})))))))}));p.defaultProps={name:"",dependentRequired:[],onExpand:()=>{}};const m=p},2260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=()=>r().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r().createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))},4922:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$anchor?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null}},4685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$comment?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null}},6418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(1815),c=n.n(l),i=n(6689),u=n.n(i),p=n(9003),m=n.n(p),d=(n(6648),n(2603)),h=n(9006);const g=e=>{var t;let{schema:n}=e;const s=(null==n?void 0:n.$defs)||{},a=(0,d.useIsExpandedDeeply)(),[l,p]=(0,i.useState)(a),[g,f]=(0,i.useState)(!1),y=(0,d.useComponent)("Accordion"),S=(0,d.useComponent)("ExpandDeepButton"),v=(0,d.useComponent)("JSONSchema"),E=(0,i.useCallback)((()=>{p((e=>!e))}),[]),x=(0,i.useCallback)(((e,t)=>{p(t),f(t)}),[]);return 0===r()(s).length?null:u().createElement(h.JSONSchemaDeepExpansionContext.Provider,{value:g},u().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs"},u().createElement(y,{expanded:l,onChange:E},u().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),u().createElement(S,{expanded:l,onClick:x}),u().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u().createElement("ul",{className:m()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!l})},l&&u().createElement(u().Fragment,null,o()(t=c()(s)).call(t,(e=>{let[t,n]=e;return u().createElement("li",{key:t,className:"json-schema-2020-12-property"},u().createElement(v,{name:t,schema:n}))}))))))}},1338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$dynamicAnchor?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null}},7655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$dynamicRef?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null}},3460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$id?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null}},2348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$ref?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null}},9359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.$schema?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null}},7568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(3942),r=n.n(s),a=n(1815),o=n.n(a),l=n(6689),c=n.n(l),i=n(9003),u=n.n(i),p=(n(6648),n(2603));const m=e=>{var t;let{schema:n}=e;const s=(0,p.useIsExpandedDeeply)(),[a,i]=(0,l.useState)(s),m=(0,p.useComponent)("Accordion"),d=(0,l.useCallback)((()=>{i((e=>!e))}),[]);return null!=n&&n.$vocabulary?"object"!=typeof n.$vocabulary?null:c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},c().createElement(m,{expanded:a,onChange:d},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),c().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),c().createElement("ul",null,a&&r()(t=o()(n.$vocabulary)).call(t,(e=>{let[t,n]=e;return c().createElement("li",{key:t,className:u()("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!n})},c().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t))})))):null}},5253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),{additionalProperties:s}=t,o=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"additionalProperties"))return null;const l=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},!0===s?r().createElement(r().Fragment,null,l,r().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):!1===s?r().createElement(r().Fragment,null,l,r().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):r().createElement(o,{name:l,schema:s}))}},6457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l),i=n(9003),u=n.n(i),p=(n(6648),n(2603)),m=n(9006);const d=e=>{let{schema:t}=e;const n=(null==t?void 0:t.allOf)||[],s=(0,p.useFn)(),a=(0,p.useIsExpandedDeeply)(),[i,d]=(0,l.useState)(a),[h,g]=(0,l.useState)(!1),f=(0,p.useComponent)("Accordion"),y=(0,p.useComponent)("ExpandDeepButton"),S=(0,p.useComponent)("JSONSchema"),v=(0,p.useComponent)("KeywordType"),E=(0,l.useCallback)((()=>{d((e=>!e))}),[]),x=(0,l.useCallback)(((e,t)=>{d(t),g(t)}),[]);return r()(n)&&0!==n.length?c().createElement(m.JSONSchemaDeepExpansionContext.Provider,{value:h},c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf"},c().createElement(f,{expanded:i,onChange:E},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),c().createElement(y,{expanded:i,onClick:x}),c().createElement(v,{schema:{allOf:n}}),c().createElement("ul",{className:u()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&c().createElement(c().Fragment,null,o()(n).call(n,((e,t)=>c().createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},c().createElement(S,{name:`#${t} ${s.getTitle(e)}`,schema:e})))))))):null}},8776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l),i=n(9003),u=n.n(i),p=(n(6648),n(2603)),m=n(9006);const d=e=>{let{schema:t}=e;const n=(null==t?void 0:t.anyOf)||[],s=(0,p.useFn)(),a=(0,p.useIsExpandedDeeply)(),[i,d]=(0,l.useState)(a),[h,g]=(0,l.useState)(!1),f=(0,p.useComponent)("Accordion"),y=(0,p.useComponent)("ExpandDeepButton"),S=(0,p.useComponent)("JSONSchema"),v=(0,p.useComponent)("KeywordType"),E=(0,l.useCallback)((()=>{d((e=>!e))}),[]),x=(0,l.useCallback)(((e,t)=>{d(t),g(t)}),[]);return r()(n)&&0!==n.length?c().createElement(m.JSONSchemaDeepExpansionContext.Provider,{value:h},c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf"},c().createElement(f,{expanded:i,onChange:E},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),c().createElement(y,{expanded:i,onClick:x}),c().createElement(v,{schema:{anyOf:n}}),c().createElement("ul",{className:u()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&c().createElement(c().Fragment,null,o()(n).call(n,((e,t)=>c().createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},c().createElement(S,{name:`#${t} ${s.getTitle(e)}`,schema:e})))))))):null}},7308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)();return n.hasKeyword(t,"const")?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Const"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},n.stringify(t.const))):null}},9956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{constraint:t}=e;return r().createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value)},o=r().memo(a)},8993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"contains"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},r().createElement(s,{name:o,schema:t.contains}))}},3484:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"contentSchema"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},r().createElement(s,{name:o,schema:t.contentSchema}))}},5148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)();return n.hasKeyword(t,"default")?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Default"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},n.stringify(t.default))):null}},4539:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(3942),r=n.n(s),a=n(6689),o=n.n(a);n(580),n(6648);const l=e=>{let{dependentRequired:t}=e;return 0===t.length?null:o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),o().createElement("ul",null,r()(t).call(t,(e=>o().createElement("li",{key:e},o().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e))))))}},6076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(1815),c=n.n(l),i=n(6689),u=n.n(i),p=n(9003),m=n.n(p),d=(n(6648),n(2603)),h=n(9006);const g=e=>{var t;let{schema:n}=e;const s=(null==n?void 0:n.dependentSchemas)||[],a=(0,d.useIsExpandedDeeply)(),[l,p]=(0,i.useState)(a),[g,f]=(0,i.useState)(!1),y=(0,d.useComponent)("Accordion"),S=(0,d.useComponent)("ExpandDeepButton"),v=(0,d.useComponent)("JSONSchema"),E=(0,i.useCallback)((()=>{p((e=>!e))}),[]),x=(0,i.useCallback)(((e,t)=>{p(t),f(t)}),[]);return"object"!=typeof s||0===r()(s).length?null:u().createElement(h.JSONSchemaDeepExpansionContext.Provider,{value:g},u().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas"},u().createElement(y,{expanded:l,onChange:E},u().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),u().createElement(S,{expanded:l,onClick:x}),u().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u().createElement("ul",{className:m()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!l})},l&&u().createElement(u().Fragment,null,o()(t=c()(s)).call(t,(e=>{let[t,n]=e;return u().createElement("li",{key:t,className:"json-schema-2020-12-property"},u().createElement(v,{name:t,schema:n}))}))))))}},6661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return!0!==(null==t?void 0:t.deprecated)?null:r().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated")}},9446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return null!=t&&t.description?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},r().createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null}},7207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"else"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},r().createElement(s,{name:o,schema:t.else}))}},1805:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l),i=(n(6648),n(2603));const u=e=>{var t;let{schema:n}=e;const s=(0,i.useFn)();return r()(null==n?void 0:n.enum)?c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Allowed values"),c().createElement("ul",null,o()(t=n.enum).call(t,(e=>{const t=s.stringify(e);return c().createElement("li",{key:t},c().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},t))})))):null}},487:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"if"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},r().createElement(s,{name:o,schema:t.if}))}},9206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"items"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},r().createElement(s,{name:o,schema:t.items}))}},5174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"not"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},r().createElement(s,{name:o,schema:t.not}))}},3834:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l),i=n(9003),u=n.n(i),p=(n(6648),n(2603)),m=n(9006);const d=e=>{let{schema:t}=e;const n=(null==t?void 0:t.oneOf)||[],s=(0,p.useFn)(),a=(0,p.useIsExpandedDeeply)(),[i,d]=(0,l.useState)(a),[h,g]=(0,l.useState)(!1),f=(0,p.useComponent)("Accordion"),y=(0,p.useComponent)("ExpandDeepButton"),S=(0,p.useComponent)("JSONSchema"),v=(0,p.useComponent)("KeywordType"),E=(0,l.useCallback)((()=>{d((e=>!e))}),[]),x=(0,l.useCallback)(((e,t)=>{d(t),g(t)}),[]);return r()(n)&&0!==n.length?c().createElement(m.JSONSchemaDeepExpansionContext.Provider,{value:h},c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf"},c().createElement(f,{expanded:i,onChange:E},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),c().createElement(y,{expanded:i,onClick:x}),c().createElement(v,{schema:{oneOf:n}}),c().createElement("ul",{className:u()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&c().createElement(c().Fragment,null,o()(n).call(n,((e,t)=>c().createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},c().createElement(S,{name:`#${t} ${s.getTitle(e)}`,schema:e})))))))):null}},6746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(1815),c=n.n(l),i=n(6689),u=n.n(i),p=(n(6648),n(2603));const m=e=>{var t;let{schema:n}=e;const s=(null==n?void 0:n.patternProperties)||{},a=(0,p.useComponent)("JSONSchema");return 0===r()(s).length?null:u().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},u().createElement("ul",null,o()(t=c()(s)).call(t,(e=>{let[t,n]=e;return u().createElement("li",{key:t,className:"json-schema-2020-12-property"},u().createElement(a,{name:t,schema:n}))}))))}},3971:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l),i=n(9003),u=n.n(i),p=(n(6648),n(2603)),m=n(9006);const d=e=>{let{schema:t}=e;const n=(null==t?void 0:t.prefixItems)||[],s=(0,p.useFn)(),a=(0,p.useIsExpandedDeeply)(),[i,d]=(0,l.useState)(a),[h,g]=(0,l.useState)(!1),f=(0,p.useComponent)("Accordion"),y=(0,p.useComponent)("ExpandDeepButton"),S=(0,p.useComponent)("JSONSchema"),v=(0,p.useComponent)("KeywordType"),E=(0,l.useCallback)((()=>{d((e=>!e))}),[]),x=(0,l.useCallback)(((e,t)=>{d(t),g(t)}),[]);return r()(n)&&0!==n.length?c().createElement(m.JSONSchemaDeepExpansionContext.Provider,{value:h},c().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems"},c().createElement(f,{expanded:i,onChange:E},c().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),c().createElement(y,{expanded:i,onClick:x}),c().createElement(v,{schema:{prefixItems:n}}),c().createElement("ul",{className:u()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&c().createElement(c().Fragment,null,o()(n).call(n,((e,t)=>c().createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},c().createElement(S,{name:`#${t} ${s.getTitle(e)}`,schema:e})))))))):null}},5472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var s=n(7104),r=n.n(s),a=n(7252),o=n.n(a),l=n(3942),c=n.n(l),i=n(1815),u=n.n(i),p=n(2605),m=n.n(p),d=n(6689),h=n.n(d),g=n(9003),f=n.n(g),y=(n(6648),n(2603));const S=e=>{var t;let{schema:n}=e;const s=(0,y.useFn)(),a=(null==n?void 0:n.properties)||{},l=r()(null==n?void 0:n.required)?n.required:[],i=(0,y.useComponent)("JSONSchema");return 0===o()(a).length?null:h().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},h().createElement("ul",null,c()(t=u()(a)).call(t,(e=>{let[t,r]=e;const a=m()(l).call(l,t),o=s.getDependentRequired(t,n);return h().createElement("li",{key:t,className:f()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":a})},h().createElement(i,{name:t,schema:r,dependentRequired:o}))}))))}},2338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),{propertyNames:s}=t,o=(0,a.useComponent)("JSONSchema"),l=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return n.hasKeyword(t,"propertyNames")?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},r().createElement(o,{name:l,schema:s})):null}},6456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return!0!==(null==t?void 0:t.readOnly)?null:r().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only")}},7401:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),s=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"then"))return null;const o=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},r().createElement(s,{name:o,schema:t.then}))}},8137:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(6689),r=n.n(s),a=(n(580),n(6648),n(2603));const o=e=>{let{title:t,schema:n}=e;const s=(0,a.useFn)();return t||s.getTitle(n)?r().createElement("div",{className:"json-schema-2020-12__title"},t||s.getTitle(n)):null};o.defaultProps={title:""};const l=o},2285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(6689),r=n.n(s),a=(n(580),n(6648),n(2603));const o=e=>{let{schema:t,isCircular:n}=e;const s=(0,a.useFn)().getType(t),o=n?" [circular]":"";return r().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${s}${o}`)};o.defaultProps={isCircular:!1};const l=o},5828:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),{unevaluatedItems:s}=t,o=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"unevaluatedItems"))return null;const l=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},r().createElement(o,{name:l,schema:s}))}},6907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(6648),n(2603));const o=e=>{let{schema:t}=e;const n=(0,a.useFn)(),{unevaluatedProperties:s}=t,o=(0,a.useComponent)("JSONSchema");if(!n.hasKeyword(t,"unevaluatedProperties"))return null;const l=r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},r().createElement(o,{name:l,schema:s}))}},5789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(6648);const a=e=>{let{schema:t}=e;return!0!==(null==t?void 0:t.writeOnly)?null:r().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only")}},9006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{JSONSchemaContext:()=>o,JSONSchemaCyclesContext:()=>i,JSONSchemaDeepExpansionContext:()=>c,JSONSchemaLevelContext:()=>l});var s=n(7885),r=n.n(s),a=n(6689);const o=(0,a.createContext)(null);o.displayName="JSONSchemaContext";const l=(0,a.createContext)(0);l.displayName="JSONSchemaLevelContext";const c=(0,a.createContext)(!1);c.displayName="JSONSchemaDeepExpansionContext";const i=(0,a.createContext)(new(r()))},4121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDependentRequired:()=>D,getTitle:()=>k,getType:()=>A,hasKeyword:()=>P,isBooleanJSONSchema:()=>I,isExpandable:()=>q,stringify:()=>R,stringifyConstraints:()=>M,upperFirst:()=>O});var s=n(600),r=n.n(s),a=n(6680),o=n.n(a),l=n(7104),c=n.n(l),i=n(3942),u=n.n(i),p=n(2605),m=n.n(p),d=n(4901),h=n.n(d),g=n(9998),f=n.n(g),y=n(8344),S=n.n(y),v=n(1733),E=n.n(v),x=n(66),w=n.n(x),C=n(1815),b=n.n(C),j=n(7885),_=n.n(j),N=n(2603);const O=e=>"string"==typeof e?`${e.charAt(0).toUpperCase()}${r()(e).call(e,1)}`:e,k=e=>{const t=(0,N.useFn)();return null!=e&&e.title?t.upperFirst(e.title):null!=e&&e.$anchor?t.upperFirst(e.$anchor):null!=e&&e.$id?e.$id:""},A=function(e){var t,n;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(o());const r=(0,N.useFn)();if(null==e)return"any";if(r.isBooleanJSONSchema(e))return e?"any":"never";if("object"!=typeof e)return"any";if(s.has(e))return"any";s.add(e);const{type:a,prefixItems:l,items:i}=e,p=()=>{if(c()(l)){const e=u()(l).call(l,(e=>A(e,s))),t=i?A(i,s):"any";return`array<[${e.join(", ")}], ${t}>`}if(i){return`array<${A(i,s)}>`}return"array<any>"};if(e.not&&"any"===A(e.not))return"never";const d=c()(a)?u()(a).call(a,(e=>"array"===e?p():e)).join(" | "):"array"===a?p():m()(t=["null","boolean","object","array","number","string"]).call(t,a)?a:(()=>{var t,n;if(Object.hasOwn(e,"prefixItems")||Object.hasOwn(e,"items")||Object.hasOwn(e,"contains"))return p();if(Object.hasOwn(e,"properties")||Object.hasOwn(e,"additionalProperties")||Object.hasOwn(e,"patternProperties"))return"object";if(m()(t=["int32","int64"]).call(t,e.format))return"integer";if(m()(n=["float","double"]).call(n,e.format))return"number";if(Object.hasOwn(e,"minimum")||Object.hasOwn(e,"maximum")||Object.hasOwn(e,"exclusiveMinimum")||Object.hasOwn(e,"exclusiveMaximum")||Object.hasOwn(e,"multipleOf"))return"number | integer";if(Object.hasOwn(e,"pattern")||Object.hasOwn(e,"format")||Object.hasOwn(e,"minLength")||Object.hasOwn(e,"maxLength"))return"string";if(void 0!==e.const){if(null===e.const)return"null";if("boolean"==typeof e.const)return"boolean";if("number"==typeof e.const)return h()(e.const)?"integer":"number";if("string"==typeof e.const)return"string";if(c()(e.const))return"array<any>";if("object"==typeof e.const)return"object"}return null})(),g=(t,n)=>{if(c()(e[t])){var r;return`(${u()(r=e[t]).call(r,(e=>A(e,s))).join(n)})`}return null},y=g("oneOf"," | "),S=g("anyOf"," | "),v=g("allOf"," & "),E=f()(n=[d,y,S,v]).call(n,Boolean).join(" | ");return s.delete(e),E||"any"},I=e=>"boolean"==typeof e,P=(e,t)=>null!==e&&"object"==typeof e&&Object.hasOwn(e,t),q=e=>{const t=(0,N.useFn)();return(null==e?void 0:e.$schema)||(null==e?void 0:e.$vocabulary)||(null==e?void 0:e.$id)||(null==e?void 0:e.$anchor)||(null==e?void 0:e.$dynamicAnchor)||(null==e?void 0:e.$ref)||(null==e?void 0:e.$dynamicRef)||(null==e?void 0:e.$defs)||(null==e?void 0:e.$comment)||(null==e?void 0:e.allOf)||(null==e?void 0:e.anyOf)||(null==e?void 0:e.oneOf)||t.hasKeyword(e,"not")||t.hasKeyword(e,"if")||t.hasKeyword(e,"then")||t.hasKeyword(e,"else")||(null==e?void 0:e.dependentSchemas)||(null==e?void 0:e.prefixItems)||t.hasKeyword(e,"items")||t.hasKeyword(e,"contains")||(null==e?void 0:e.properties)||(null==e?void 0:e.patternProperties)||t.hasKeyword(e,"additionalProperties")||t.hasKeyword(e,"propertyNames")||t.hasKeyword(e,"unevaluatedItems")||t.hasKeyword(e,"unevaluatedProperties")||(null==e?void 0:e.description)||(null==e?void 0:e.enum)||t.hasKeyword(e,"const")||t.hasKeyword(e,"contentSchema")||t.hasKeyword(e,"default")},R=e=>{var t;return null===e||m()(t=["number","bigint","boolean"]).call(t,typeof e)?String(e):c()(e)?`[${u()(e).call(e,R).join(", ")}]`:S()(e)},T=(e,t,n)=>{const s="number"==typeof t,r="number"==typeof n;return s&&r?t===n?`${t} ${e}`:`[${t}, ${n}] ${e}`:s?`>= ${t} ${e}`:r?`<= ${n} ${e}`:null},M=e=>{const t=[],n=(e=>{if("number"!=typeof(null==e?void 0:e.multipleOf))return null;if(e.multipleOf<=0)return null;if(1===e.multipleOf)return null;const{multipleOf:t}=e;if(h()(t))return`multiple of ${t}`;const n=10**t.toString().split(".")[1].length;return`multiple of ${t*n}/${n}`})(e);null!==n&&t.push({scope:"number",value:n});const s=(e=>{const t=null==e?void 0:e.minimum,n=null==e?void 0:e.maximum,s=null==e?void 0:e.exclusiveMinimum,r=null==e?void 0:e.exclusiveMaximum,a="number"==typeof t,o="number"==typeof n,l="number"==typeof s&&t<s,c="number"==typeof r&&n>r;if(a&&o)return`${l?"(":"["}${l?s:t}, ${c?r:n}${c?")":"]"}`;if(a)return`${l?">":"≥"} ${l?s:t}`;if(o)return`${c?"<":"≤"} ${c?r:n}`;return null})(e);null!==s&&t.push({scope:"number",value:s}),null!=e&&e.format&&t.push({scope:"string",value:e.format});const r=T("characters",null==e?void 0:e.minLength,null==e?void 0:e.maxLength);null!==r&&t.push({scope:"string",value:r}),null!=e&&e.pattern&&t.push({scope:"string",value:`matches ${null==e?void 0:e.pattern}`}),null!=e&&e.contentMediaType&&t.push({scope:"string",value:`media type: ${e.contentMediaType}`}),null!=e&&e.contentEncoding&&t.push({scope:"string",value:`encoding: ${e.contentEncoding}`});const a=T(null!=e&&e.hasUniqueItems?"unique items":"items",null==e?void 0:e.minItems,null==e?void 0:e.maxItems);null!==a&&t.push({scope:"array",value:a});const o=T("contained items",null==e?void 0:e.minContains,null==e?void 0:e.maxContains);null!==o&&t.push({scope:"array",value:o});const l=T("properties",null==e?void 0:e.minProperties,null==e?void 0:e.maxProperties);return null!==l&&t.push({scope:"object",value:l}),t},D=(e,t)=>{var n;return null!=t&&t.dependentRequired?E()(w()(n=b()(t.dependentRequired)).call(n,((t,n)=>{let[s,r]=n;return c()(r)&&m()(r).call(r,e)?(t.add(s),t):t}),new(_()))):[]}},5077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{withJSONSchemaContext:()=>G});var s=n(6689),r=n.n(s),a=n(2675),o=n(9359),l=n(7568),c=n(3460),i=n(4922),u=n(1338),p=n(2348),m=n(7655),d=n(6418),h=n(4685),g=n(6457),f=n(8776),y=n(3834),S=n(5174),v=n(487),E=n(7401),x=n(7207),w=n(6076),C=n(3971),b=n(9206),j=n(8993),_=n(5472),N=n(6746),O=n(5253),k=n(2338),A=n(5828),I=n(6907),P=n(2285),q=n(1805),R=n(7308),T=n(9956),M=n(4539),D=n(3484),J=n(8137),$=n(9446),K=n(5148),L=n(6661),V=n(6456),U=n(5789),F=n(7349),z=n(6867),B=n(2260),W=n(9006),H=n(4121);const G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={components:{JSONSchema:a.default,Keyword$schema:o.default,Keyword$vocabulary:l.default,Keyword$id:c.default,Keyword$anchor:i.default,Keyword$dynamicAnchor:u.default,Keyword$ref:p.default,Keyword$dynamicRef:m.default,Keyword$defs:d.default,Keyword$comment:h.default,KeywordAllOf:g.default,KeywordAnyOf:f.default,KeywordOneOf:y.default,KeywordNot:S.default,KeywordIf:v.default,KeywordThen:E.default,KeywordElse:x.default,KeywordDependentSchemas:w.default,KeywordPrefixItems:C.default,KeywordItems:b.default,KeywordContains:j.default,KeywordProperties:_.default,KeywordPatternProperties:N.default,KeywordAdditionalProperties:O.default,KeywordPropertyNames:k.default,KeywordUnevaluatedItems:A.default,KeywordUnevaluatedProperties:I.default,KeywordType:P.default,KeywordEnum:q.default,KeywordConst:R.default,KeywordConstraint:T.default,KeywordDependentRequired:M.default,KeywordContentSchema:D.default,KeywordTitle:J.default,KeywordDescription:$.default,KeywordDefault:K.default,KeywordDeprecated:L.default,KeywordReadOnly:V.default,KeywordWriteOnly:U.default,Accordion:F.default,ExpandDeepButton:z.default,ChevronRightIcon:B.default,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,...t.config},fn:{upperFirst:H.upperFirst,getTitle:H.getTitle,getType:H.getType,isBooleanJSONSchema:H.isBooleanJSONSchema,hasKeyword:H.hasKeyword,isExpandable:H.isExpandable,stringify:H.stringify,stringifyConstraints:H.stringifyConstraints,getDependentRequired:H.getDependentRequired,...t.fn}},s=t=>r().createElement(W.JSONSchemaContext.Provider,{value:n},r().createElement(e,t));return s.contexts={JSONSchemaContext:W.JSONSchemaContext},s.displayName=e.displayName,s}},2603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useComponent:()=>c,useConfig:()=>l,useFn:()=>i,useIsCircular:()=>g,useIsEmbedded:()=>p,useIsExpanded:()=>m,useIsExpandedDeeply:()=>d,useLevel:()=>u,useRenderedSchemas:()=>h});var s=n(7885),r=n.n(s),a=n(6689),o=n(9006);const l=()=>{const{config:e}=(0,a.useContext)(o.JSONSchemaContext);return e},c=e=>{const{components:t}=(0,a.useContext)(o.JSONSchemaContext);return t[e]||null},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;const{fn:t}=(0,a.useContext)(o.JSONSchemaContext);return void 0!==e?t[e]:t},u=()=>{const e=(0,a.useContext)(o.JSONSchemaLevelContext);return[e,e+1]},p=()=>{const[e]=u();return e>0},m=()=>{const[e]=u(),{defaultExpandedLevels:t}=l();return t-e>0},d=()=>(0,a.useContext)(o.JSONSchemaDeepExpansionContext),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(void 0===e)return(0,a.useContext)(o.JSONSchemaCyclesContext);const t=(0,a.useContext)(o.JSONSchemaCyclesContext);return new(r())([...t,e])},g=e=>h().has(e)},7139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var s=n(2675),r=n(9359),a=n(7568),o=n(3460),l=n(4922),c=n(1338),i=n(2348),u=n(7655),p=n(6418),m=n(4685),d=n(6457),h=n(8776),g=n(3834),f=n(5174),y=n(487),S=n(7401),v=n(7207),E=n(6076),x=n(3971),w=n(9206),C=n(8993),b=n(5472),j=n(6746),_=n(5253),N=n(2338),O=n(5828),k=n(6907),A=n(2285),I=n(1805),P=n(7308),q=n(9956),R=n(4539),T=n(3484),M=n(8137),D=n(9446),J=n(5148),$=n(6661),K=n(6456),L=n(5789),V=n(7349),U=n(6867),F=n(2260),z=n(4121),B=n(8591),W=n(9006),H=n(2603),G=n(5077);const Z=()=>({components:{JSONSchema202012:s.default,JSONSchema202012Keyword$schema:r.default,JSONSchema202012Keyword$vocabulary:a.default,JSONSchema202012Keyword$id:o.default,JSONSchema202012Keyword$anchor:l.default,JSONSchema202012Keyword$dynamicAnchor:c.default,JSONSchema202012Keyword$ref:i.default,JSONSchema202012Keyword$dynamicRef:u.default,JSONSchema202012Keyword$defs:p.default,JSONSchema202012Keyword$comment:m.default,JSONSchema202012KeywordAllOf:d.default,JSONSchema202012KeywordAnyOf:h.default,JSONSchema202012KeywordOneOf:g.default,JSONSchema202012KeywordNot:f.default,JSONSchema202012KeywordIf:y.default,JSONSchema202012KeywordThen:S.default,JSONSchema202012KeywordElse:v.default,JSONSchema202012KeywordDependentSchemas:E.default,JSONSchema202012KeywordPrefixItems:x.default,JSONSchema202012KeywordItems:w.default,JSONSchema202012KeywordContains:C.default,JSONSchema202012KeywordProperties:b.default,JSONSchema202012KeywordPatternProperties:j.default,JSONSchema202012KeywordAdditionalProperties:_.default,JSONSchema202012KeywordPropertyNames:N.default,JSONSchema202012KeywordUnevaluatedItems:O.default,JSONSchema202012KeywordUnevaluatedProperties:k.default,JSONSchema202012KeywordType:A.default,JSONSchema202012KeywordEnum:I.default,JSONSchema202012KeywordConst:P.default,JSONSchema202012KeywordConstraint:q.default,JSONSchema202012KeywordDependentRequired:R.default,JSONSchema202012KeywordContentSchema:T.default,JSONSchema202012KeywordTitle:M.default,JSONSchema202012KeywordDescription:D.default,JSONSchema202012KeywordDefault:J.default,JSONSchema202012KeywordDeprecated:$.default,JSONSchema202012KeywordReadOnly:K.default,JSONSchema202012KeywordWriteOnly:L.default,JSONSchema202012Accordion:V.default,JSONSchema202012ExpandDeepButton:U.default,JSONSchema202012ChevronRightIcon:F.default,withJSONSchema202012Context:G.withJSONSchemaContext,JSONSchema202012DeepExpansionContext:()=>W.JSONSchemaDeepExpansionContext},fn:{upperFirst:z.upperFirst,jsonSchema202012:{isExpandable:z.isExpandable,hasKeyword:z.hasKeyword,useFn:H.useFn,useConfig:H.useConfig,useComponent:H.useComponent,useIsExpandedDeeply:H.useIsExpandedDeeply,sampleFromSchema:B.sampleFromSchema,sampleFromSchemaGeneric:B.sampleFromSchemaGeneric,sampleEncoderAPI:B.encoderAPI,sampleFormatAPI:B.formatAPI,sampleMediaTypeAPI:B.mediaTypeAPI,createXMLExample:B.createXMLExample,memoizedSampleFromSchema:B.memoizedSampleFromSchema,memoizedCreateXMLExample:B.memoizedCreateXMLExample}}})},6648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{booleanSchema:()=>o,objectSchema:()=>a,schema:()=>l});var s=n(580),r=n.n(s);const a=r().object,o=r().bool,l=r().oneOfType([a,o])},9507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const s=new(n(674).default),r=(e,t)=>"function"==typeof t?s.register(e,t):null===t?s.unregister(e):s.get(e);r.getDefaults=()=>s.defaults;const a=r},2906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const s=new(n(4215).default),r=(e,t)=>"function"==typeof t?s.register(e,t):null===t?s.unregister(e):s.get(e)},537:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const s=new(n(3782).default),r=(e,t)=>{if("function"==typeof t)return s.register(e,t);if(null===t)return s.unregister(e);const n=e.split(";").at(0),r=`${n.split("/").at(0)}/*`;return s.get(e)||s.get(n)||s.get(r)};r.getDefaults=()=>s.defaults;const a=r},674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var s=n(1093),r=n.n(s),a=n(6272),o=n.n(a),l=n(6543),c=n.n(l),i=n(4215),u=n(1433),p=n(8509),m=n(4366),d=n(5037),h=n(5709),g=n(4180),f=n(1967);function y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var S=new(c());class v extends i.default{constructor(){super(...arguments),y(this,S,{writable:!0,value:{"7bit":u.default,"8bit":p.default,binary:m.default,"quoted-printable":d.default,base16:h.default,base32:g.default,base64:f.default}}),r()(this,"data",{...o()(this,S)})}get defaults(){return{...o()(this,S)}}}const E=v},3782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var s=n(1093),r=n.n(s),a=n(6272),o=n.n(a),l=n(6543),c=n.n(l),i=n(4215),u=n(5378),p=n(6724),m=n(4342),d=n(2974),h=n(5088);function g(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var f=new(c());class y extends i.default{constructor(){super(...arguments),g(this,f,{writable:!0,value:{...u.default,...p.default,...m.default,...d.default,...h.default}}),r()(this,"data",{...o()(this,f)})}get defaults(){return{...o()(this,f)}}}const S=y},4215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(1093),r=n.n(s);const a=class{constructor(){r()(this,"data",{})}register(e,t){this.data[e]=t}unregister(e){void 0===e?this.data={}:delete this.data[e]}get(e){return this.data[e]}}},8338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALL_TYPES:()=>r,SCALAR_TYPES:()=>s});const s=["number","integer","string","boolean","null"],r=["array","object",...s]},3783:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractExample:()=>l,hasExample:()=>o});var s=n(7104),r=n.n(s),a=n(3084);const o=e=>{if(!(0,a.isJSONSchemaObject)(e))return!1;const{examples:t,example:n,default:s}=e;return!!(r()(t)&&t.length>=1)||(void 0!==s||void 0!==n)},l=e=>{if(!(0,a.isJSONSchemaObject)(e))return null;const{examples:t,example:n,default:s}=e;return r()(t)&&t.length>=1?t.at(0):void 0!==s?s:void 0!==n?n:void 0}},7078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var s=n(7104),r=n.n(s),a=n(4883),o=n.n(a),l=n(1733),c=n.n(l),i=n(7885),u=n.n(i),p=n(7252),m=n.n(p),d=n(9998),h=n.n(d),g=n(1669),f=n(3084);const y=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,f.isBooleanJSONSchema)(e)&&!0===e)return!0;if((0,f.isBooleanJSONSchema)(e)&&!1===e)return!1;if((0,f.isBooleanJSONSchema)(t)&&!0===t)return!0;if((0,f.isBooleanJSONSchema)(t)&&!1===t)return!1;if(!(0,f.isJSONSchema)(e))return t;if(!(0,f.isJSONSchema)(t))return e;const s={...t,...e};if(t.type&&e.type&&r()(t.type)&&"string"==typeof t.type){var a;const n=o()(a=(0,g.AF)(t.type)).call(a,e.type);s.type=c()(new(u())(n))}if(r()(t.required)&&r()(e.required)&&(s.required=[...new(u())([...e.required,...t.required])]),t.properties&&e.properties){const r=new(u())([...m()(t.properties),...m()(e.properties)]);s.properties={};for(const a of r){const r=t.properties[a]||{},o=e.properties[a]||{};var l;if(r.readOnly&&!n.includeReadOnly||r.writeOnly&&!n.includeWriteOnly)s.required=h()(l=s.required||[]).call(l,(e=>e!==a));else s.properties[a]=y(o,r,n)}}return(0,f.isJSONSchema)(t.items)&&(0,f.isJSONSchema)(e.items)&&(s.items=y(e.items,t.items,n)),(0,f.isJSONSchema)(t.contains)&&(0,f.isJSONSchema)(e.contains)&&(s.contains=y(e.contains,t.contains,n)),(0,f.isJSONSchema)(t.contentSchema)&&(0,f.isJSONSchema)(e.contentSchema)&&(s.contentSchema=y(e.contentSchema,t.contentSchema,n)),s},S=y},3084:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isBooleanJSONSchema:()=>a,isJSONSchema:()=>l,isJSONSchemaObject:()=>o});var s=n(5452),r=n.n(s);const a=e=>"boolean"==typeof e,o=e=>r()(e),l=e=>a(e)||o(e)},5202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bytes:()=>l,integer:()=>m,number:()=>p,pick:()=>i,randexp:()=>c,string:()=>u});var s=n(185),r=n.n(s),a=n(9989),o=n.n(a);const l=e=>r()(e),c=e=>{try{return new(o())(e).gen()}catch{return"string"}},i=e=>e.at(0),u=()=>"string",p=()=>0,m=()=>0},6276:(e,t,n)=>{"use strict";n.r(t),n.d(t,{foldType:()=>b,getType:()=>_,inferType:()=>j});var s=n(7104),r=n.n(s),a=n(4901),o=n.n(a),l=n(2605),c=n.n(l),i=n(6680),u=n.n(i),p=n(7252),m=n.n(p),d=n(3942),h=n.n(d),g=n(9998),f=n.n(g),y=n(8338),S=n(3084),v=n(5202),E=n(3783);const x={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"]};x.number=x.integer;const w="string",C=e=>void 0===e?null:null===e?"null":r()(e)?"array":o()(e)?"integer":typeof e,b=e=>{if(r()(e)&&e.length>=1){if(c()(e).call(e,"array"))return"array";if(c()(e).call(e,"object"))return"object";{const t=(0,v.pick)(e);if(c()(y.ALL_TYPES).call(y.ALL_TYPES,t))return t}}return c()(y.ALL_TYPES).call(y.ALL_TYPES,e)?e:null},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(u());if(!(0,S.isJSONSchemaObject)(e))return w;if(t.has(e))return w;t.add(e);let{type:n,const:s}=e;if(n=b(n),"string"!=typeof n){const t=m()(x);e:for(let s=0;s<t.length;s+=1){const r=t[s],a=x[r];for(let t=0;t<a.length;t+=1){const s=a[t];if(Object.hasOwn(e,s)){n=r;break e}}}}if("string"!=typeof n&&void 0!==s){const e=C(s);n="string"==typeof e?e:n}if("string"!=typeof n){const s=n=>{if(r()(e[n])){var s;const r=h()(s=e[n]).call(s,(e=>j(e,t)));return b(r)}return null},o=s("allOf"),l=s("anyOf"),c=s("oneOf"),i=e.not?j(e.not,t):null;var a;if(o||l||c||i)n=b(f()(a=[o,l,c,i]).call(a,Boolean))}if("string"!=typeof n&&(0,E.hasExample)(e)){const t=(0,E.extractExample)(e),s=C(t);n="string"==typeof s?s:n}return t.delete(e),n||w},_=e=>j(e)},9346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromJSONBooleanSchema:()=>r,typeCast:()=>a});var s=n(3084);const r=e=>!1===e?{not:{}}:{},a=e=>(0,s.isBooleanJSONSchema)(e)?r(e):(0,s.isJSONSchemaObject)(e)?e:{}},1433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>s.from(e).toString("ascii")},8509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>s.from(e).toString("utf8")},5709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>s.from(e).toString("hex")},4180:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>{const t=s.from(e).toString("utf8"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let r=0,a="",o=0,l=0;for(let e=0;e<t.length;e++)for(o=o<<8|t.charCodeAt(e),l+=8;l>=5;)a+=n.charAt(o>>>l-5&31),l-=5;l>0&&(a+=n.charAt(o<<5-l&31),r=(8-8*t.length%5)%5);for(let e=0;e<r;e++)a+="=";return a}},1967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>s.from(e).toString("base64")},4366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(871).Buffer;const r=e=>s.from(e).toString("binary")},5037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(600),r=n.n(s);const a=e=>{let t="";for(let a=0;a<e.length;a++){const o=e.charCodeAt(a);if(61===o)t+="=3D";else if(o>=33&&o<=60||o>=62&&o<=126||9===o||32===o)t+=e.charAt(a);else if(13===o||10===o)t+="\r\n";else if(o>126){const s=unescape(encodeURIComponent(e.charAt(a)));for(let e=0;e<s.length;e++){var n;t+="="+r()(n="0"+s.charCodeAt(e).toString(16)).call(n,-2).toUpperCase()}}else{var s;t+="="+r()(s="0"+o.toString(16)).call(s,-2).toUpperCase()}}return t}},4045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>(new Date).toISOString()},1456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>(new Date).toISOString().substring(0,10)},560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>.1},4299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"P3D"},3981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"user@example.com"},1890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>.1},9375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"example.com"},4518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"실례@example.com"},273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"실례.com"},7864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>2**30>>>0},1726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>2**53-1},8793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"198.51.100.42"},8269:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a"},5693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"path/실례.html"},3080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"https://실례.com/"},7856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"/a/b/c"},5088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const s=require("@babel/runtime-corejs3/core-js-stable/string/raw");var r=n.n(s),a=n(5202);const o={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>r()`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>(0,a.bytes)(25).toString("binary")}},4342:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(5202);const r={"audio/*":()=>(0,s.bytes)(25).toString("binary")}},6724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(5202);const r={"image/*":()=>(0,s.bytes)(25).toString("binary")}},5378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"}},2974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(5202);const r={"video/*":()=>(0,s.bytes)(25).toString("binary")}},3393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"********"},4335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"^[a-z]+$"},375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"1/0"},5243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>(new Date).toISOString().substring(11)},4692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"path/index.html"},3829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"https://example.com/dictionary/{term:1}/{term}"},2978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"https://example.com/"},8859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6"},8591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createXMLExample:()=>s.createXMLExample,encoderAPI:()=>r.default,formatAPI:()=>a.default,mediaTypeAPI:()=>o.default,memoizedCreateXMLExample:()=>s.memoizedCreateXMLExample,memoizedSampleFromSchema:()=>s.memoizedSampleFromSchema,sampleFromSchema:()=>s.sampleFromSchema,sampleFromSchemaGeneric:()=>s.sampleFromSchemaGeneric});var s=n(4277),r=n(9507),a=n(2906),o=n(537)},4277:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createXMLExample:()=>T,memoizedCreateXMLExample:()=>J,memoizedSampleFromSchema:()=>$,sampleFromSchema:()=>M,sampleFromSchemaGeneric:()=>R});var s=n(7104),r=n.n(s),a=n(4901),o=n.n(a),l=n(4235),c=n.n(l),i=n(3580),u=n.n(i),p=n(2605),m=n.n(p),d=n(4883),h=n.n(d),g=n(3942),f=n.n(g),y=n(8344),S=n.n(y),v=n(8920),E=n.n(v),x=n(9699),w=n.n(x),C=n(5452),b=n.n(C),j=n(1669),_=n(7481),N=n(3273),O=n(6276),k=n(9346),A=n(3783),I=n(5202),P=n(7078),q=n(3084);const R=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"function"==typeof(null===(t=e)||void 0===t?void 0:t.toJS)&&(e=e.toJS()),e=(0,k.typeCast)(e);let l=void 0!==s||(0,A.hasExample)(e);const i=!l&&r()(e.oneOf)&&e.oneOf.length>0,p=!l&&r()(e.anyOf)&&e.anyOf.length>0;if(!l&&(i||p)){const t=(0,k.typeCast)(i?(0,I.pick)(e.oneOf):(0,I.pick)(e.anyOf));!(e=(0,P.default)(e,t,n)).xml&&t.xml&&(e.xml=t.xml),(0,A.hasExample)(e)&&(0,A.hasExample)(t)&&(l=!0)}const d={};let{xml:g,properties:y,additionalProperties:S,items:v,contains:E}=e||{},x=(0,O.getType)(e),{includeReadOnly:C,includeWriteOnly:_}=n;g=g||{};let T,{name:M,prefix:D,namespace:J}=g,$={};if(Object.hasOwn(e,"type")||(e.type=x),a&&(M=M||"notagname",T=(D?`${D}:`:"")+M,J)){d[D?`xmlns:${D}`:"xmlns"]=J}a&&($[T]=[]);const K=(0,j.mz)(y);let L,V=0;const U=()=>o()(e.maxProperties)&&e.maxProperties>0&&V>=e.maxProperties,F=t=>!(o()(e.maxProperties)&&e.maxProperties>0)||!U()&&(!(t=>{var n;return!r()(e.required)||0===e.required.length||!m()(n=e.required).call(n,t)})(t)||e.maxProperties-V-(()=>{if(!r()(e.required)||0===e.required.length)return 0;let t=0;var n,s;return a?c()(n=e.required).call(n,(e=>t+=void 0===$[e]?0:1)):c()(s=e.required).call(s,(e=>{var n;t+=void 0===(null===(n=$[T])||void 0===n?void 0:u()(n).call(n,(t=>void 0!==t[e])))?0:1})),e.required.length-t})()>0);if(L=a?function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&K[t]){if(K[t].xml=K[t].xml||{},K[t].xml.attribute){const e=r()(K[t].enum)?(0,I.pick)(K[t].enum):void 0;if((0,A.hasExample)(K[t]))d[K[t].xml.name||t]=(0,A.extractExample)(K[t]);else if(void 0!==e)d[K[t].xml.name||t]=e;else{const e=(0,k.typeCast)(K[t]),n=(0,O.getType)(e),s=K[t].xml.name||t;d[s]=N.default[n](e)}return}K[t].xml.name=K[t].xml.name||t}else K[t]||!1===S||(K[t]={xml:{name:t}});let o=R(K[t],n,s,a);var l;F(t)&&(V++,r()(o)?$[T]=h()(l=$[T]).call(l,o):$[T].push(o))}:(t,s)=>{var r;if(F(t)){if(b()(null===(r=e.discriminator)||void 0===r?void 0:r.mapping)&&e.discriminator.propertyName===t&&"string"==typeof e.$$ref){for(const n in e.discriminator.mapping)if(-1!==e.$$ref.search(e.discriminator.mapping[n])){$[t]=n;break}}else $[t]=R(K[t],n,s,a);V++}},l){let t;if(t=void 0!==s?s:(0,A.extractExample)(e),!a){if("number"==typeof t&&"string"===x)return`${t}`;if("string"!=typeof t||"string"===x)return t;try{return JSON.parse(t)}catch{return t}}if("array"===x){if(!r()(t)){if("string"==typeof t)return t;t=[t]}let s=[];return(0,q.isJSONSchemaObject)(v)&&(v.xml=v.xml||g||{},v.xml.name=v.xml.name||g.name,s=f()(t).call(t,(e=>R(v,n,e,a)))),(0,q.isJSONSchemaObject)(E)&&(E.xml=E.xml||g||{},E.xml.name=E.xml.name||g.name,s=[R(E,n,void 0,a),...s]),s=N.default.array(e,{sample:s}),g.wrapped?($[T]=s,w()(d)||$[T].push({_attr:d})):$=s,$}if("object"===x){if("string"==typeof t)return t;for(const e in t){var z,B,W,H;Object.hasOwn(t,e)&&(null!==(z=K[e])&&void 0!==z&&z.readOnly&&!C||null!==(B=K[e])&&void 0!==B&&B.writeOnly&&!_||(null!==(W=K[e])&&void 0!==W&&null!==(H=W.xml)&&void 0!==H&&H.attribute?d[K[e].xml.name||e]=t[e]:L(e,t[e])))}return w()(d)||$[T].push({_attr:d}),$}return $[T]=w()(d)?t:[{_attr:d},t],$}if("array"===x){let t=[];var G,Z;if((0,q.isJSONSchemaObject)(E))if(a&&(E.xml=E.xml||e.xml||{},E.xml.name=E.xml.name||g.name),r()(E.anyOf))t.push(...f()(G=E.anyOf).call(G,(e=>R((0,P.default)(e,E,n),n,void 0,a))));else if(r()(E.oneOf)){var X;t.push(...f()(X=E.oneOf).call(X,(e=>R((0,P.default)(e,E,n),n,void 0,a))))}else{if(!(!a||a&&g.wrapped))return R(E,n,void 0,a);t.push(R(E,n,void 0,a))}if((0,q.isJSONSchemaObject)(v))if(a&&(v.xml=v.xml||e.xml||{},v.xml.name=v.xml.name||g.name),r()(v.anyOf))t.push(...f()(Z=v.anyOf).call(Z,(e=>R((0,P.default)(e,v,n),n,void 0,a))));else if(r()(v.oneOf)){var Y;t.push(...f()(Y=v.oneOf).call(Y,(e=>R((0,P.default)(e,v,n),n,void 0,a))))}else{if(!(!a||a&&g.wrapped))return R(v,n,void 0,a);t.push(R(v,n,void 0,a))}return t=N.default.array(e,{sample:t}),a&&g.wrapped?($[T]=t,w()(d)||$[T].push({_attr:d}),$):t}if("object"===x){for(let e in K){var Q,ee,te;Object.hasOwn(K,e)&&(null!==(Q=K[e])&&void 0!==Q&&Q.deprecated||null!==(ee=K[e])&&void 0!==ee&&ee.readOnly&&!C||null!==(te=K[e])&&void 0!==te&&te.writeOnly&&!_||L(e))}if(a&&d&&$[T].push({_attr:d}),U())return $;if((0,q.isBooleanJSONSchema)(S))a?$[T].push({additionalProp:"Anything can be here"}):$.additionalProp1={},V++;else if((0,q.isJSONSchemaObject)(S)){var ne,se;const t=S,s=R(t,n,void 0,a);if(a&&"string"==typeof(null==t||null===(ne=t.xml)||void 0===ne?void 0:ne.name)&&"notagname"!==(null==t||null===(se=t.xml)||void 0===se?void 0:se.name))$[T].push(s);else{const t=o()(e.minProperties)&&e.minProperties>0&&V<e.minProperties?e.minProperties-V:3;for(let e=1;e<=t;e++){if(U())return $;if(a){const t={};t["additionalProp"+e]=s.notagname,$[T].push(t)}else $["additionalProp"+e]=s;V++}}}return $}let re;if(void 0!==e.const)re=e.const;else if(e&&r()(e.enum))re=(0,I.pick)((0,j.AF)(e.enum));else{const t=(0,q.isJSONSchemaObject)(e.contentSchema)?R(e.contentSchema,n,void 0,a):void 0;re=N.default[x](e,{sample:t})}return a?($[T]=w()(d)?re:[{_attr:d},re],$):re},T=(e,t,n)=>{const s=R(e,t,n,!0);if(s)return"string"==typeof s?s:E()(s,{declaration:!0,indent:"\t"})},M=(e,t,n)=>R(e,t,n,!1),D=(e,t,n)=>[e,S()(t),S()(n)],J=(0,_.Z)(T,D),$=(0,_.Z)(M,D)},3982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyArrayConstraints:()=>p,default:()=>m});var s=n(4901),r=n.n(s),a=n(600),o=n.n(a),l=n(1733),c=n.n(l),i=n(7885),u=n.n(i);const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{minItems:n,maxItems:s,uniqueItems:a}=t,{contains:l,minContains:i,maxContains:p}=t;let m=[...e];if(null!=l&&"object"==typeof l){if(r()(i)&&i>1){const e=m.at(0);for(let t=1;t<i;t+=1)m.unshift(e)}r()(p)}if(r()(s)&&s>0&&(m=o()(e).call(e,0,s)),r()(n)&&n>0)for(let e=0;m.length<n;e+=1)m.push(m[e%m.length]);return!0===a&&(m=c()(new(u())(m))),m},m=(e,t)=>{let{sample:n}=t;return p(n,e)}},4108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=e=>"boolean"!=typeof e.default||e.default},3273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(3982),r=n(6852),a=n(4522),o=n(844),l=n(8864),c=n(4108),i=n(853);const u={array:s.default,object:r.default,string:a.default,number:o.default,integer:l.default,boolean:c.default,null:i.default},p=new Proxy(u,{get:(e,t)=>"string"==typeof t&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`})},8864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(5202),r=n(2906),a=n(7864),o=n(1726);const l=e=>{const{format:t}=e;return"string"==typeof t?(e=>{const{format:t}=e,n=(0,r.default)(t);if("function"==typeof n)return n(e);switch(t){case"int32":return(0,a.default)();case"int64":return(0,o.default)()}return(0,s.integer)()})(e):(0,s.integer)()}},853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>null},844:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(4901),r=n.n(s);const a=require("@babel/runtime-corejs3/core-js-stable/number/epsilon");var o=n.n(a),l=n(5202),c=n(2906),i=n(1890),u=n(560);const p=e=>{const{format:t}=e;let n;return n="string"==typeof t?(e=>{const{format:t}=e,n=(0,c.default)(t);if("function"==typeof n)return n(e);switch(t){case"float":return(0,i.default)();case"double":return(0,u.default)()}return(0,l.number)()})(e):(0,l.number)(),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{minimum:n,maximum:s,exclusiveMinimum:a,exclusiveMaximum:l}=t,{multipleOf:c}=t,i=r()(e)?1:o();let u="number"==typeof n?n:null,p="number"==typeof s?s:null,m=e;if("number"==typeof a&&(u=null!==u?Math.max(u,a+i):a+i),"number"==typeof l&&(p=null!==p?Math.min(p,l-i):l-i),m=u>p&&e||u||p||m,"number"==typeof c&&c>0){const e=m%c;m=0===e?m:m+c-e}return m}(n,e)}},6852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=()=>{throw new Error("Not implemented")}},4522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>J});var s=n(4901),r=n.n(s),a=n(600),o=n.n(a),l=n(7104),c=n.n(l),i=n(8344),u=n.n(i),p=n(4292),m=n.n(p),d=n(5202),h=n(3084),g=n(3981),f=n(4518),y=n(9375),S=n(273),v=n(8793),E=n(8269),x=n(2978),w=n(4692),C=n(3080),b=n(5693),j=n(8859),_=n(3829),N=n(7856),O=n(375),k=n(4045),A=n(1456),I=n(5243),P=n(4299),q=n(3393),R=n(4335),T=n(2906),M=n(9507),D=n(537);const J=function(e){let{sample:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{contentEncoding:n,contentMediaType:s,contentSchema:a}=e,{pattern:l,format:i}=e,p=(0,M.default)(n)||m();let J;if("string"==typeof l)J=(0,d.randexp)(l);else if("string"==typeof i)J=(e=>{const{format:t}=e,n=(0,T.default)(t);if("function"==typeof n)return n(e);switch(t){case"email":return(0,g.default)();case"idn-email":return(0,f.default)();case"hostname":return(0,y.default)();case"idn-hostname":return(0,S.default)();case"ipv4":return(0,v.default)();case"ipv6":return(0,E.default)();case"uri":return(0,x.default)();case"uri-reference":return(0,w.default)();case"iri":return(0,C.default)();case"iri-reference":return(0,b.default)();case"uuid":return(0,j.default)();case"uri-template":return(0,_.default)();case"json-pointer":return(0,N.default)();case"relative-json-pointer":return(0,O.default)();case"date-time":return(0,k.default)();case"date":return(0,A.default)();case"time":return(0,I.default)();case"duration":return(0,P.default)();case"password":return(0,q.default)();case"regex":return(0,R.default)()}return(0,d.string)()})(e);else if((0,h.isJSONSchema)(a)&&"string"==typeof s&&void 0!==t)J=c()(t)||"object"==typeof t?u()(t):String(t);else if("string"==typeof s){const t=(0,D.default)(s);"function"==typeof t&&(J=t(e))}else J=(0,d.string)();return p(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{maxLength:n,minLength:s}=t;let a=e;if(r()(n)&&n>0&&(a=o()(a).call(a,0,n)),r()(s)&&s>0){let e=0;for(;a.length<s;)a+=a[e++%a.length]}return a}(J,e))}},5474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SHOW:()=>l,UPDATE_FILTER:()=>a,UPDATE_LAYOUT:()=>r,UPDATE_MODE:()=>o,changeMode:()=>p,show:()=>u,updateFilter:()=>i,updateLayout:()=>c});var s=n(1669);const r="layout_update_layout",a="layout_update_filter",o="layout_update_mode",l="layout_show";function c(e){return{type:r,payload:e}}function i(e){return{type:a,payload:e}}function u(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=(0,s.AF)(e),{type:l,payload:{thing:e,shown:t}}}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=(0,s.AF)(e),{type:o,payload:{thing:e,mode:t}}}},6821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(5672),r=n(5474),a=n(4400),o=n(8989);function l(){return{statePlugins:{layout:{reducers:s.default,actions:r,selectors:a},spec:{wrapSelectors:o}}}}},5672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(4883),r=n.n(s),a=n(5572),o=n(5474);const l={[o.UPDATE_LAYOUT]:(e,t)=>e.set("layout",t.payload),[o.UPDATE_FILTER]:(e,t)=>e.set("filter",t.payload),[o.SHOW]:(e,t)=>{const n=t.payload.shown,s=(0,a.fromJS)(t.payload.thing);return e.update("shown",(0,a.fromJS)({}),(e=>e.set(s,n)))},[o.UPDATE_MODE]:(e,t)=>{var n;let s=t.payload.thing,a=t.payload.mode;return e.setIn(r()(n=["modes"]).call(n,s),(a||"")+"")}}},4400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{current:()=>o,currentFilter:()=>l,isShown:()=>c,showSummary:()=>u,whatMode:()=>i});var s=n(6814),r=n(1669),a=n(5572);const o=e=>e.get("layout"),l=e=>e.get("filter"),c=(e,t,n)=>(t=(0,r.AF)(t),e.get("shown",(0,a.fromJS)({})).get((0,a.fromJS)(t),n)),i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t=(0,r.AF)(t),e.getIn(["modes",...t],n)},u=(0,s.createSelector)((e=>e),(e=>!c(e,"editor")))},8989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{taggedOperations:()=>a});var s=n(600),r=n.n(s);const a=(e,t)=>function(n){for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];let l=e(n,...a);const{fn:c,layoutSelectors:i,getConfigs:u}=t.getSystem(),p=u(),{maxDisplayedTags:m}=p;let d=i.currentFilter();return d&&!0!==d&&"true"!==d&&"false"!==d&&(l=c.opsFilter(l,d)),m&&!isNaN(m)&&m>=0&&(l=r()(l).call(l,0,m)),l}},9150:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(593),r=n.n(s);function a(e){let{configs:t}=e;const n={debug:0,info:1,log:2,warn:3,error:4},s=e=>n[e]||-1;let{logLevel:a}=t,o=s(a);function l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s(e)>=o&&console[e](...n)}return l.warn=r()(l).call(l,null,"warn"),l.error=r()(l).call(l,null,"error"),l.info=r()(l).call(l,null,"info"),l.debug=r()(l).call(l,null,"debug"),{rootInjects:{log:l}}}},7002:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:()=>m,CLEAR_REQUEST_BODY_VALUE:()=>d,SET_REQUEST_BODY_VALIDATE_ERROR:()=>p,UPDATE_ACTIVE_EXAMPLES_MEMBER:()=>l,UPDATE_REQUEST_BODY_INCLUSION:()=>o,UPDATE_REQUEST_BODY_VALUE:()=>r,UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:()=>a,UPDATE_REQUEST_CONTENT_TYPE:()=>c,UPDATE_RESPONSE_CONTENT_TYPE:()=>i,UPDATE_SELECTED_SERVER:()=>s,UPDATE_SERVER_VARIABLE_VALUE:()=>u,clearRequestBodyValidateError:()=>C,clearRequestBodyValue:()=>j,initRequestBodyValidateError:()=>b,setActiveExamplesMember:()=>S,setRequestBodyInclusion:()=>y,setRequestBodyValidateError:()=>w,setRequestBodyValue:()=>g,setRequestContentType:()=>v,setResponseContentType:()=>E,setRetainRequestBodyValueFlag:()=>f,setSelectedServer:()=>h,setServerVariableValue:()=>x});const s="oas3_set_servers",r="oas3_set_request_body_value",a="oas3_set_request_body_retain_flag",o="oas3_set_request_body_inclusion",l="oas3_set_active_examples_member",c="oas3_set_request_content_type",i="oas3_set_response_content_type",u="oas3_set_server_variable_value",p="oas3_set_request_body_validate_error",m="oas3_clear_request_body_validate_error",d="oas3_clear_request_body_value";function h(e,t){return{type:s,payload:{selectedServerUrl:e,namespace:t}}}function g(e){let{value:t,pathMethod:n}=e;return{type:r,payload:{value:t,pathMethod:n}}}const f=e=>{let{value:t,pathMethod:n}=e;return{type:a,payload:{value:t,pathMethod:n}}};function y(e){let{value:t,pathMethod:n,name:s}=e;return{type:o,payload:{value:t,pathMethod:n,name:s}}}function S(e){let{name:t,pathMethod:n,contextType:s,contextName:r}=e;return{type:l,payload:{name:t,pathMethod:n,contextType:s,contextName:r}}}function v(e){let{value:t,pathMethod:n}=e;return{type:c,payload:{value:t,pathMethod:n}}}function E(e){let{value:t,path:n,method:s}=e;return{type:i,payload:{value:t,path:n,method:s}}}function x(e){let{server:t,namespace:n,key:s,val:r}=e;return{type:u,payload:{server:t,namespace:n,key:s,val:r}}}const w=e=>{let{path:t,method:n,validationErrors:s}=e;return{type:p,payload:{path:t,method:n,validationErrors:s}}},C=e=>{let{path:t,method:n}=e;return{type:m,payload:{path:t,method:n}}},b=e=>{let{pathMethod:t}=e;return{type:m,payload:{path:t[0],method:t[1]}}},j=e=>{let{pathMethod:t}=e;return{type:d,payload:{pathMethod:t}}}},3723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{definitionsToAuthorize:()=>p});var s=n(4235),r=n.n(s),a=n(9998),o=n.n(a),l=n(66),c=n.n(l),i=n(6814),u=n(5572);const p=(m=(0,i.createSelector)((e=>e),(e=>{let{specSelectors:t}=e;return t.securityDefinitions()}),((e,t)=>{var n;let s=(0,u.List)();return t?(r()(n=t.entrySeq()).call(n,(e=>{let[t,n]=e;const a=n.get("type");var l;if("oauth2"===a&&r()(l=n.get("flows").entrySeq()).call(l,(e=>{let[r,a]=e,l=(0,u.fromJS)({flow:r,authorizationUrl:a.get("authorizationUrl"),tokenUrl:a.get("tokenUrl"),scopes:a.get("scopes"),type:n.get("type"),description:n.get("description")});s=s.push(new u.Map({[t]:o()(l).call(l,(e=>void 0!==e))}))})),"http"!==a&&"apiKey"!==a||(s=s.push(new u.Map({[t]:n}))),"openIdConnect"===a&&n.get("openIdConnectData")){let e=n.get("openIdConnectData"),a=e.get("grant_types_supported")||["authorization_code","implicit"];r()(a).call(a,(r=>{var a;let l=e.get("scopes_supported")&&c()(a=e.get("scopes_supported")).call(a,((e,t)=>e.set(t,"")),new u.Map),i=(0,u.fromJS)({flow:r,authorizationUrl:e.get("authorization_endpoint"),tokenUrl:e.get("token_endpoint"),scopes:l,type:"oauth2",openIdConnectUrl:n.get("openIdConnectUrl")});s=s.push(new u.Map({[t]:o()(i).call(i,(e=>void 0!==e))}))}))}})),s):s})),(e,t)=>function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];if(t.getSystem().specSelectors.isOAS3()){let e=t.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return m(t,e,...s)}return e(...s)});var m},3427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l);n(580),n(8082);const i=e=>{let{callbacks:t,specPath:n,specSelectors:s,getComponent:a}=e;const l=s.callbacksOperations({callbacks:t,specPath:n}),i=r()(l),u=a("OperationContainer",!0);return 0===i.length?c().createElement("span",null,"No callbacks"):c().createElement("div",null,o()(i).call(i,(e=>{var t;return c().createElement("div",{key:`${e}`},c().createElement("h2",null,e),o()(t=l[e]).call(t,(t=>c().createElement(u,{key:`${e}-${t.path}-${t.method}`,op:t.operation,tag:"callbacks",method:t.method,path:t.path,specPath:t.specPath,allowTryItOut:!1}))))})))}},6775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(1093),r=n.n(s),a=n(4994),o=n.n(a),l=n(9998),c=n.n(l),i=n(3942),u=n.n(i),p=n(6689),m=n.n(p);n(580);class d extends m().Component{constructor(e,t){super(e,t),r()(this,"onChange",(e=>{let{onChange:t}=this.props,{value:n,name:s}=e.target,r=o()({},this.state.value);s?r[s]=n:r=n,this.setState({value:r},(()=>t(this.state)))}));let{name:n,schema:s}=this.props,a=this.getValue();this.state={name:n,schema:s,value:a}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}render(){var e;let{schema:t,getComponent:n,errSelectors:s,name:r}=this.props;const a=n("Input"),o=n("Row"),l=n("Col"),i=n("authError"),p=n("Markdown",!0),d=n("JumpToPath",!0),h=(t.get("scheme")||"").toLowerCase();let g=this.getValue(),f=c()(e=s.allErrors()).call(e,(e=>e.get("authId")===r));if("basic"===h){var y;let e=g?g.get("username"):null;return m().createElement("div",null,m().createElement("h4",null,m().createElement("code",null,r||t.get("name"))," (http, Basic)",m().createElement(d,{path:["securityDefinitions",r]})),e&&m().createElement("h6",null,"Authorized"),m().createElement(o,null,m().createElement(p,{source:t.get("description")})),m().createElement(o,null,m().createElement("label",null,"Username:"),e?m().createElement("code",null," ",e," "):m().createElement(l,null,m().createElement(a,{type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),m().createElement(o,null,m().createElement("label",null,"Password:"),e?m().createElement("code",null," ****** "):m().createElement(l,null,m().createElement(a,{autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),u()(y=f.valueSeq()).call(y,((e,t)=>m().createElement(i,{error:e,key:t}))))}var S;return"bearer"===h?m().createElement("div",null,m().createElement("h4",null,m().createElement("code",null,r||t.get("name"))," (http, Bearer)",m().createElement(d,{path:["securityDefinitions",r]})),g&&m().createElement("h6",null,"Authorized"),m().createElement(o,null,m().createElement(p,{source:t.get("description")})),m().createElement(o,null,m().createElement("label",null,"Value:"),g?m().createElement("code",null," ****** "):m().createElement(l,null,m().createElement(a,{type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),u()(S=f.valueSeq()).call(S,((e,t)=>m().createElement(i,{error:e,key:t})))):m().createElement("div",null,m().createElement("em",null,m().createElement("b",null,r)," HTTP authentication: unsupported scheme ",`'${h}'`))}}},6467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(3427),r=n(2458),a=n(5757),o=n(6617),l=n(9928),c=n(5327),i=n(6775),u=n(6796);const p={Callbacks:s.default,HttpAuth:i.default,RequestBody:r.default,Servers:o.default,ServersContainer:l.default,RequestBodyEditor:c.default,OperationServers:u.default,operationLink:a.default}},5757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(8344),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l);n(580),n(8082);class i extends l.Component{render(){const{link:e,name:t,getComponent:n}=this.props,s=n("Markdown",!0);let a=e.get("operationId")||e.get("operationRef"),l=e.get("parameters")&&e.get("parameters").toJS(),i=e.get("description");return c().createElement("div",{className:"operation-link"},c().createElement("div",{className:"description"},c().createElement("b",null,c().createElement("code",null,t)),i?c().createElement(s,{source:i}):null),c().createElement("pre",null,"Operation `",a,"`",c().createElement("br",null),c().createElement("br",null),"Parameters ",function(e,t){var n;if("string"!=typeof t)return"";return o()(n=t.split("\n")).call(n,((t,n)=>n>0?Array(e+1).join(" ")+t:t)).join("\n")}(0,r()(l,null,2))||"{}",c().createElement("br",null)))}}const u=i},6796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(1093),r=n.n(s),a=n(6689),o=n.n(a);n(580),n(8082);class l extends o().Component{constructor(){super(...arguments),r()(this,"setSelectedServer",(e=>{const{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${t}:${n}`)})),r()(this,"setServerVariableValue",(e=>{const{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${t}:${n}`})})),r()(this,"getSelectedServer",(()=>{const{path:e,method:t}=this.props;return this.props.getSelectedServer(`${e}:${t}`)})),r()(this,"getServerVariable",((e,t)=>{const{path:n,method:s}=this.props;return this.props.getServerVariable({namespace:`${n}:${s}`,server:e},t)})),r()(this,"getEffectiveServerValue",(e=>{const{path:t,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${t}:${n}`})}))}render(){const{operationServers:e,pathServers:t,getComponent:n}=this.props;if(!e&&!t)return null;const s=n("Servers"),r=e||t,a=e?"operation":"path";return o().createElement("div",{className:"opblock-section operation-servers"},o().createElement("div",{className:"opblock-section-header"},o().createElement("div",{className:"tab-header"},o().createElement("h4",{className:"opblock-title"},"Servers"))),o().createElement("div",{className:"opblock-description-wrapper"},o().createElement("h4",{className:"message"},"These ",a,"-level options override the global server options."),o().createElement(s,{servers:r,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}},5327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(1093),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l),i=n(1669);const u=Function.prototype;class p extends a.PureComponent{constructor(e,t){super(e,t),r()(this,"applyDefaultValue",(e=>{const{onChange:t,defaultValue:n}=e||this.props;return this.setState({value:n}),t(n)})),r()(this,"onChange",(e=>{this.props.onChange((0,i.Pz)(e))})),r()(this,"onDomChange",(e=>{const t=e.target.value;this.setState({value:t},(()=>this.onChange(t)))})),this.state={value:(0,i.Pz)(e.value)||e.defaultValue},e.onChange(e.value)}UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:(0,i.Pz)(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:t}=this.props,{value:n}=this.state,s=t.size>0;const r=e("TextArea");return o().createElement("div",{className:"body-param"},o().createElement(r,{className:c()("body-param__text",{invalid:s}),title:t.size?t.join(", "):"",value:n,onChange:this.onDomChange}))}}r()(p,"defaultProps",{onChange:u,userHasEditedBody:!1})},2458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,getDefaultRequestBodyValue:()=>f});var s=n(3942),r=n.n(s),a=n(8493),o=n.n(a),l=n(2605),c=n.n(l),i=n(7104),u=n.n(i),p=n(6689),m=n.n(p),d=(n(580),n(8082),n(5572)),h=n(1669),g=n(2518);const f=(e,t,n,s)=>{const r=e.getIn(["content",t]),a=r.get("schema").toJS(),o=void 0!==r.get("examples"),l=r.get("example"),c=o?r.getIn(["examples",n,"value"]):l,i=s.getSampleSchema(a,t,{includeWriteOnly:!0},c);return(0,h.Pz)(i)},y=e=>{let{userHasEditedBody:t,requestBody:n,requestBodyValue:s,requestBodyInclusionSetting:a,requestBodyErrors:l,getComponent:i,getConfigs:p,specSelectors:y,fn:S,contentType:v,isExecute:E,specPath:x,onChange:w,onChangeIncludeEmpty:C,activeExamplesKey:b,updateActiveExamplesKey:j,setRetainRequestBodyValueFlag:_}=e;const N=e=>{w(e.target.files[0])},O=e=>{let t={key:e,shouldDispatchInit:!1,defaultValue:!0};return"no value"===a.get(e,"no value")&&(t.shouldDispatchInit=!0),t},k=i("Markdown",!0),A=i("modelExample"),I=i("RequestBodyEditor"),P=i("highlightCode"),q=i("ExamplesSelectValueRetainer"),R=i("Example"),T=i("ParameterIncludeEmpty"),{showCommonExtensions:M}=p(),D=n&&n.get("description")||null,J=n&&n.get("content")||new d.OrderedMap;v=v||J.keySeq().first()||"";const $=J.get(v,(0,d.OrderedMap)()),K=$.get("schema",(0,d.OrderedMap)()),L=$.get("examples",null),V=null==L?void 0:r()(L).call(L,((e,t)=>{var s;const r=null===(s=e)||void 0===s?void 0:s.get("value",null);return r&&(e=e.set("value",f(n,v,t,S),r)),e}));if(l=d.List.isList(l)?l:(0,d.List)(),!$.size)return null;const U="object"===$.getIn(["schema","type"]),F="binary"===$.getIn(["schema","format"]),z="base64"===$.getIn(["schema","format"]);if("application/octet-stream"===v||0===o()(v).call(v,"image/")||0===o()(v).call(v,"audio/")||0===o()(v).call(v,"video/")||F||z){const e=i("Input");return E?m().createElement(e,{type:"file",onChange:N}):m().createElement("i",null,"Example values are not available for ",m().createElement("code",null,v)," media types.")}if(U&&("application/x-www-form-urlencoded"===v||0===o()(v).call(v,"multipart/"))&&K.get("properties",(0,d.OrderedMap)()).size>0){var B;const e=i("JsonSchemaForm"),t=i("ParameterExt"),n=K.get("properties",(0,d.OrderedMap)());return s=d.Map.isMap(s)?s:(0,d.OrderedMap)(),m().createElement("div",{className:"table-container"},D&&m().createElement(k,{source:D}),m().createElement("table",null,m().createElement("tbody",null,d.Map.isMap(n)&&r()(B=n.entrySeq()).call(B,(n=>{var o,p;let[g,f]=n;if(f.get("readOnly"))return;let y=M?(0,h.po)(f):null;const v=c()(o=K.get("required",(0,d.List)())).call(o,g),x=f.get("type"),b=f.get("format"),j=f.get("description"),_=s.getIn([g,"value"]),N=s.getIn([g,"errors"])||l,A=a.get(g)||!1,I=f.has("default")||f.has("example")||f.hasIn(["items","example"])||f.hasIn(["items","default"]),P=f.has("enum")&&(1===f.get("enum").size||v),q=I||P;let R="";"array"!==x||q||(R=[]),("object"===x||q)&&(R=S.getSampleSchema(f,!1,{includeWriteOnly:!0})),"string"!=typeof R&&"object"===x&&(R=(0,h.Pz)(R)),"string"==typeof R&&"array"===x&&(R=JSON.parse(R));const D="string"===x&&("binary"===b||"base64"===b);return m().createElement("tr",{key:g,className:"parameters","data-property-name":g},m().createElement("td",{className:"parameters-col_name"},m().createElement("div",{className:v?"parameter__name required":"parameter__name"},g,v?m().createElement("span",null," *"):null),m().createElement("div",{className:"parameter__type"},x,b&&m().createElement("span",{className:"prop-format"},"($",b,")"),M&&y.size?r()(p=y.entrySeq()).call(p,(e=>{let[n,s]=e;return m().createElement(t,{key:`${n}-${s}`,xKey:n,xVal:s})})):null),m().createElement("div",{className:"parameter__deprecated"},f.get("deprecated")?"deprecated":null)),m().createElement("td",{className:"parameters-col_description"},m().createElement(k,{source:j}),E?m().createElement("div",null,m().createElement(e,{fn:S,dispatchInitialValue:!D,schema:f,description:g,getComponent:i,value:void 0===_?R:_,required:v,errors:N,onChange:e=>{w(e,[g])}}),v?null:m().createElement(T,{onChange:e=>C(g,e),isIncluded:A,isIncludedOptions:O(g),isDisabled:u()(_)?0!==_.length:!(0,h.O2)(_)})):null))})))))}const W=f(n,v,b,S);let H=null;return(0,g.O)(W)&&(H="json"),m().createElement("div",null,D&&m().createElement(k,{source:D}),V?m().createElement(q,{userHasEditedBody:t,examples:V,currentKey:b,currentUserInputValue:s,onSelect:e=>{j(e)},updateValue:w,defaultToFirstExample:!0,getComponent:i,setRetainRequestBodyValueFlag:_}):null,E?m().createElement("div",null,m().createElement(I,{value:s,errors:l,defaultValue:W,onChange:w,getComponent:i})):m().createElement(A,{getComponent:i,getConfigs:p,specSelectors:y,expandDepth:1,isExecute:E,schema:$.get("schema"),specPath:x.push("content",v),example:m().createElement(P,{className:"body-param__example",getConfigs:p,language:H,value:(0,h.Pz)(s)||W}),includeWriteOnly:!0}),V?m().createElement(R,{example:V.get(b),getComponent:i,getConfigs:p}):null)}},9928:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);class a extends r().Component{render(){const{specSelectors:e,oas3Selectors:t,oas3Actions:n,getComponent:s}=this.props,a=e.servers(),o=s("Servers");return a&&a.size?r().createElement("div",null,r().createElement("span",{className:"servers-title"},"Servers"),r().createElement(o,{servers:a,currentServer:t.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:t.serverVariableValue,getEffectiveServerValue:t.serverEffectiveValue})):null}}},6617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(1093),r=n.n(s),a=n(3580),o=n.n(a),l=n(3942),c=n.n(l),i=n(6689),u=n.n(i),p=n(5572);n(580),n(8082);class m extends u().Component{constructor(){super(...arguments),r()(this,"onServerChange",(e=>{this.setServer(e.target.value)})),r()(this,"onServerVariableValueChange",(e=>{let{setServerVariableValue:t,currentServer:n}=this.props,s=e.target.getAttribute("data-variable"),r=e.target.value;"function"==typeof t&&t({server:n,key:s,val:r})})),r()(this,"setServer",(e=>{let{setSelectedServer:t}=this.props;t(e)}))}componentDidMount(){var e;let{servers:t,currentServer:n}=this.props;n||this.setServer(null===(e=t.first())||void 0===e?void 0:e.get("url"))}UNSAFE_componentWillReceiveProps(e){let{servers:t,setServerVariableValue:n,getServerVariable:s}=e;if(this.props.currentServer!==e.currentServer||this.props.servers!==e.servers){var r;let a=o()(t).call(t,(t=>t.get("url")===e.currentServer)),l=o()(r=this.props.servers).call(r,(e=>e.get("url")===this.props.currentServer))||(0,p.OrderedMap)();if(!a)return this.setServer(t.first().get("url"));let i=l.get("variables")||(0,p.OrderedMap)(),u=(o()(i).call(i,(e=>e.get("default")))||(0,p.OrderedMap)()).get("default"),m=a.get("variables")||(0,p.OrderedMap)(),d=(o()(m).call(m,(e=>e.get("default")))||(0,p.OrderedMap)()).get("default");c()(m).call(m,((t,r)=>{s(e.currentServer,r)&&u===d||n({server:e.currentServer,key:r,val:t.get("default")||""})}))}}render(){var e,t;let{servers:n,currentServer:s,getServerVariable:r,getEffectiveServerValue:a}=this.props,l=(o()(n).call(n,(e=>e.get("url")===s))||(0,p.OrderedMap)()).get("variables")||(0,p.OrderedMap)(),i=0!==l.size;return u().createElement("div",{className:"servers"},u().createElement("label",{htmlFor:"servers"},u().createElement("select",{onChange:this.onServerChange,value:s},c()(e=n.valueSeq()).call(e,(e=>u().createElement("option",{value:e.get("url"),key:e.get("url")},e.get("url"),e.get("description")&&` - ${e.get("description")}`))).toArray())),i?u().createElement("div",null,u().createElement("div",{className:"computed-url"},"Computed URL:",u().createElement("code",null,a(s))),u().createElement("h4",null,"Server variables"),u().createElement("table",null,u().createElement("tbody",null,c()(t=l.entrySeq()).call(t,(e=>{var t;let[n,a]=e;return u().createElement("tr",{key:n},u().createElement("td",null,n),u().createElement("td",null,a.get("enum")?u().createElement("select",{"data-variable":n,onChange:this.onServerVariableValueChange},c()(t=a.get("enum")).call(t,(e=>u().createElement("option",{selected:e===r(s,n),key:e,value:e},e)))):u().createElement("input",{type:"text",value:r(s,n)||"",onChange:this.onServerVariableValueChange,"data-variable":n})))}))))):null)}}},7779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OAS30ComponentWrapFactory:()=>u,OAS3ComponentWrapFactory:()=>i,isOAS30:()=>l,isSwagger2:()=>c});var s=n(4250),r=n.n(s),a=n(6689),o=n.n(a);function l(e){const t=e.get("openapi");return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}function c(e){const t=e.get("swagger");return"string"==typeof t&&"2.0"===t}function i(e){return(t,n)=>s=>{var a;return"function"==typeof(null===(a=n.specSelectors)||void 0===a?void 0:a.isOAS3)?n.specSelectors.isOAS3()?o().createElement(e,r()({},s,n,{Ori:t})):o().createElement(t,s):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}function u(e){return(t,n)=>s=>{var a;return"function"==typeof(null===(a=n.specSelectors)||void 0===a?void 0:a.isOAS30)?n.specSelectors.isOAS30()?o().createElement(e,r()({},s,n,{Ori:t})):o().createElement(t,s):(console.warn("OAS30 wrapper: couldn't get spec"),null)}}},7451:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(2044),r=n(3723),a=n(1741),o=n(6467),l=n(7761),c=n(7002),i=n(5065),u=n(2109);function p(){return{components:o.default,wrapComponents:l.default,statePlugins:{spec:{wrapSelectors:s,selectors:a},auth:{wrapSelectors:r},oas3:{actions:c,reducers:u.default,selectors:i}}}}},2109:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(874),r=n.n(s),a=n(4235),o=n.n(a),l=n(66),c=n.n(l),i=n(5572),u=n(7002);const p={[u.UPDATE_SELECTED_SERVER]:(e,t)=>{let{payload:{selectedServerUrl:n,namespace:s}}=t;const r=s?[s,"selectedServer"]:["selectedServer"];return e.setIn(r,n)},[u.UPDATE_REQUEST_BODY_VALUE]:(e,t)=>{let{payload:{value:n,pathMethod:s}}=t,[a,l]=s;if(!i.Map.isMap(n))return e.setIn(["requestData",a,l,"bodyValue"],n);let c,u=e.getIn(["requestData",a,l,"bodyValue"])||(0,i.Map)();i.Map.isMap(u)||(u=(0,i.Map)());const[...p]=r()(n).call(n);return o()(p).call(p,(e=>{let t=n.getIn([e]);u.has(e)&&i.Map.isMap(t)||(c=u.setIn([e,"value"],t))})),e.setIn(["requestData",a,l,"bodyValue"],c)},[u.UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG]:(e,t)=>{let{payload:{value:n,pathMethod:s}}=t,[r,a]=s;return e.setIn(["requestData",r,a,"retainBodyValue"],n)},[u.UPDATE_REQUEST_BODY_INCLUSION]:(e,t)=>{let{payload:{value:n,pathMethod:s,name:r}}=t,[a,o]=s;return e.setIn(["requestData",a,o,"bodyInclusion",r],n)},[u.UPDATE_ACTIVE_EXAMPLES_MEMBER]:(e,t)=>{let{payload:{name:n,pathMethod:s,contextType:r,contextName:a}}=t,[o,l]=s;return e.setIn(["examples",o,l,r,a,"activeExample"],n)},[u.UPDATE_REQUEST_CONTENT_TYPE]:(e,t)=>{let{payload:{value:n,pathMethod:s}}=t,[r,a]=s;return e.setIn(["requestData",r,a,"requestContentType"],n)},[u.UPDATE_RESPONSE_CONTENT_TYPE]:(e,t)=>{let{payload:{value:n,path:s,method:r}}=t;return e.setIn(["requestData",s,r,"responseContentType"],n)},[u.UPDATE_SERVER_VARIABLE_VALUE]:(e,t)=>{let{payload:{server:n,namespace:s,key:r,val:a}}=t;const o=s?[s,"serverVariableValues",n,r]:["serverVariableValues",n,r];return e.setIn(o,a)},[u.SET_REQUEST_BODY_VALIDATE_ERROR]:(e,t)=>{let{payload:{path:n,method:s,validationErrors:r}}=t,a=[];if(a.push("Required field is not provided"),r.missingBodyValue)return e.setIn(["requestData",n,s,"errors"],(0,i.fromJS)(a));if(r.missingRequiredKeys&&r.missingRequiredKeys.length>0){const{missingRequiredKeys:t}=r;return e.updateIn(["requestData",n,s,"bodyValue"],(0,i.fromJS)({}),(e=>c()(t).call(t,((e,t)=>e.setIn([t,"errors"],(0,i.fromJS)(a))),e)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[u.CLEAR_REQUEST_BODY_VALIDATE_ERROR]:(e,t)=>{let{payload:{path:n,method:s}}=t;const a=e.getIn(["requestData",n,s,"bodyValue"]);if(!i.Map.isMap(a))return e.setIn(["requestData",n,s,"errors"],(0,i.fromJS)([]));const[...o]=r()(a).call(a);return o?e.updateIn(["requestData",n,s,"bodyValue"],(0,i.fromJS)({}),(e=>c()(o).call(o,((e,t)=>e.setIn([t,"errors"],(0,i.fromJS)([]))),e))):e},[u.CLEAR_REQUEST_BODY_VALUE]:(e,t)=>{let{payload:{pathMethod:n}}=t,[s,r]=n;const a=e.getIn(["requestData",s,r,"bodyValue"]);return a?i.Map.isMap(a)?e.setIn(["requestData",s,r,"bodyValue"],(0,i.Map)()):e.setIn(["requestData",s,r,"bodyValue"],""):e}}},5065:(e,t,n)=>{"use strict";n.r(t),n.d(t,{activeExamplesMember:()=>C,hasUserEditedBody:()=>E,requestBodyErrors:()=>w,requestBodyInclusionSetting:()=>x,requestBodyValue:()=>y,requestContentType:()=>b,responseContentType:()=>j,selectDefaultRequestBodyValue:()=>v,selectedServer:()=>f,serverEffectiveValue:()=>O,serverVariableValue:()=>_,serverVariables:()=>N,shouldRetainRequestBodyValue:()=>S,validOperationMethods:()=>P,validateBeforeExecute:()=>k,validateShallowRequired:()=>I});var s=n(3942),r=n.n(s),a=n(4235),o=n.n(a),l=n(7252),c=n.n(l),i=n(8493),u=n.n(i),p=n(5572),m=n(6814),d=n(2458),h=n(1669);const g=e=>function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return n=>{if(n.getSystem().specSelectors.isOAS3()){const r=e(t,...s);return"function"==typeof r?r(n):r}return null}};const f=g(((e,t)=>{const n=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(n)||""})),y=g(((e,t,n)=>e.getIn(["requestData",t,n,"bodyValue"])||null)),S=g(((e,t,n)=>e.getIn(["requestData",t,n,"retainBodyValue"])||!1)),v=(e,t,n)=>e=>{const{oas3Selectors:s,specSelectors:r,fn:a}=e.getSystem();if(r.isOAS3()){const e=s.requestContentType(t,n);if(e)return(0,d.getDefaultRequestBodyValue)(r.specResolvedSubtree(["paths",t,n,"requestBody"]),e,s.activeExamplesMember(t,n,"requestBody","requestBody"),a)}return null},E=g(((e,t,n)=>e=>{const{oas3Selectors:s,specSelectors:r,fn:a}=e;let o=!1;const l=s.requestContentType(t,n);let c=s.requestBodyValue(t,n);const i=r.specResolvedSubtree(["paths",t,n,"requestBody"]);if(!i)return!1;if(p.Map.isMap(c)&&(c=(0,h.Pz)(c.mapEntries((e=>p.Map.isMap(e[1])?[e[0],e[1].get("value")]:e)).toJS())),p.List.isList(c)&&(c=(0,h.Pz)(c)),l){const e=(0,d.getDefaultRequestBodyValue)(i,l,s.activeExamplesMember(t,n,"requestBody","requestBody"),a);o=!!c&&c!==e}return o})),x=g(((e,t,n)=>e.getIn(["requestData",t,n,"bodyInclusion"])||(0,p.Map)())),w=g(((e,t,n)=>e.getIn(["requestData",t,n,"errors"])||null)),C=g(((e,t,n,s,r)=>e.getIn(["examples",t,n,s,r,"activeExample"])||null)),b=g(((e,t,n)=>e.getIn(["requestData",t,n,"requestContentType"])||null)),j=g(((e,t,n)=>e.getIn(["requestData",t,n,"responseContentType"])||null)),_=g(((e,t,n)=>{let s;if("string"!=typeof t){const{server:e,namespace:r}=t;s=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n]}else{s=["serverVariableValues",t,n]}return e.getIn(s)||null})),N=g(((e,t)=>{let n;if("string"!=typeof t){const{server:e,namespace:s}=t;n=s?[s,"serverVariableValues",e]:["serverVariableValues",e]}else{n=["serverVariableValues",t]}return e.getIn(n)||(0,p.OrderedMap)()})),O=g(((e,t)=>{var n,s;if("string"!=typeof t){const{server:r,namespace:a}=t;s=r,n=a?e.getIn([a,"serverVariableValues",s]):e.getIn(["serverVariableValues",s])}else s=t,n=e.getIn(["serverVariableValues",s]);n=n||(0,p.OrderedMap)();let a=s;return r()(n).call(n,((e,t)=>{a=a.replace(new RegExp(`{${t}}`,"g"),e)})),a})),k=(A=(e,t)=>((e,t)=>(t=t||[],!!e.getIn(["requestData",...t,"bodyValue"])))(e,t),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{const n=e.getSystem().specSelectors.specJson();let s=[...t][1]||[];return!n.getIn(["paths",...s,"requestBody","required"])||A(...t)}});var A;const I=(e,t)=>{var n;let{oas3RequiredRequestBodyContentType:s,oas3RequestContentType:r,oas3RequestBodyValue:a}=t,l=[];if(!p.Map.isMap(a))return l;let i=[];return o()(n=c()(s.requestContentType)).call(n,(e=>{if(e===r){let t=s.requestContentType[e];o()(t).call(t,(e=>{u()(i).call(i,e)<0&&i.push(e)}))}})),o()(i).call(i,(e=>{a.getIn([e,"value"])||l.push(e)})),l},P=(0,m.createSelector)((()=>["get","put","post","delete","options","head","patch","trace"]))},1741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{callbacksOperations:()=>x,isOAS3:()=>S,isOAS30:()=>y,isSwagger2:()=>f,servers:()=>E});var s=n(3942),r=n.n(s),a=n(66),o=n.n(a),l=n(9998),c=n.n(l),i=n(2605),u=n.n(i),p=n(4883),m=n.n(p),d=n(5572),h=n(7779);const g=(0,d.Map)(),f=()=>e=>{const t=e.getSystem().specSelectors.specJson();return(0,h.isSwagger2)(t)},y=()=>e=>{const t=e.getSystem().specSelectors.specJson();return(0,h.isOAS30)(t)},S=()=>e=>e.getSystem().specSelectors.isOAS30();function v(e){return function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return n=>{if(n.specSelectors.isOAS3()){const r=e(t,...s);return"function"==typeof r?r(n):r}return null}}}const E=v((()=>e=>e.specSelectors.specJson().get("servers",g))),x=v(((e,t)=>{let{callbacks:n,specPath:s}=t;return e=>{var t;const a=e.specSelectors.validOperationMethods();return d.Map.isMap(n)?r()(t=o()(n).call(n,((e,t,n)=>d.Map.isMap(t)?o()(t).call(t,((e,t,o)=>{var l,i;if(!d.Map.isMap(t))return e;const p=r()(l=c()(i=t.entrySeq()).call(i,(e=>{let[t]=e;return u()(a).call(a,t)}))).call(l,(e=>{let[t,r]=e;return{operation:(0,d.Map)({operation:r}),method:t,path:o,callbackName:n,specPath:m()(s).call(s,[n,o,t])}}));return m()(e).call(e,p)}),(0,d.List)()):e),(0,d.List)()).groupBy((e=>e.callbackName))).call(t,(e=>e.toArray())).toObject():{}}}))},2044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{basePath:()=>h,consumes:()=>g,definitions:()=>i,hasHost:()=>u,host:()=>d,produces:()=>f,schemes:()=>y,securityDefinitions:()=>p,validOperationMethods:()=>m});var s=n(6814),r=n(3881),a=n(5572);const o=(0,a.Map)();function l(e){return(t,n)=>function(){if(n.getSystem().specSelectors.isOAS3()){const t=e(...arguments);return"function"==typeof t?t(n):t}return t(...arguments)}}const c=l((0,s.createSelector)((()=>null))),i=l((()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return a.Map.isMap(t)?t:o})),u=l((()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0]))),p=l((0,s.createSelector)(r.specJsonWithResolvedSubtrees,(e=>e.getIn(["components","securitySchemes"])||null))),m=(e,t)=>function(n){if(t.specSelectors.isOAS3())return t.oas3Selectors.validOperationMethods();for(var s=arguments.length,r=new Array(s>1?s-1:0),a=1;a<s;a++)r[a-1]=arguments[a];return e(...r)},d=c,h=c,g=c,f=c,y=c},356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(7779).OAS3ComponentWrapFactory)((e=>{let{Ori:t,...n}=e;const{schema:s,getComponent:a,errSelectors:o,authorized:l,onAuthChange:c,name:i}=n,u=a("HttpAuth");return"http"===s.get("type")?r().createElement(u,{key:i,schema:s,name:i,errSelectors:o,authorized:l,getComponent:a,onChange:c}):r().createElement(t,n)}))},7761:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(2460),r=n(356),a=n(9487),o=n(58),l=n(3499),c=n(287);const i={Markdown:s.default,AuthItem:r.default,JsonSchema_string:c.default,VersionStamp:a.default,model:l.default,onlineValidatorBadge:o.default}},287:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(7779).OAS3ComponentWrapFactory)((e=>{let{Ori:t,...n}=e;const{schema:s,getComponent:a,errors:o,onChange:l}=n,c=s&&s.get?s.get("format"):null,i=s&&s.get?s.get("type"):null,u=a("Input");return i&&"string"===i&&c&&("binary"===c||"base64"===c)?r().createElement(u,{type:"file",className:o.length?"invalid":"",title:o.length?o:"",onChange:e=>{l(e.target.files[0])},disabled:t.isDisabled}):r().createElement(t,n)}))},2460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Markdown:()=>d,default:()=>h});var s=n(7390),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l),i=n(963),u=n(7779),p=n(2552);const m=new i.Remarkable("commonmark");m.block.ruler.enable(["table"]),m.set({linkTarget:"_blank"});const d=e=>{let{source:t,className:n="",getConfigs:s}=e;if("string"!=typeof t)return null;if(t){const{useUnsafeMarkdown:e}=s(),a=m.render(t),l=(0,p.s)(a,{useUnsafeMarkdown:e});let i;return"string"==typeof l&&(i=r()(l).call(l)),o().createElement("div",{dangerouslySetInnerHTML:{__html:i},className:c()(n,"renderedMarkdown")})}return null};d.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const h=(0,u.OAS3ComponentWrapFactory)(d)},3499:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(4250),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(7779)),c=n(6024);class i extends a.Component{render(){let{getConfigs:e,schema:t}=this.props,n=["model-box"],s=null;return!0===t.get("deprecated")&&(n.push("deprecated"),s=o().createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),o().createElement("div",{className:n.join(" ")},s,o().createElement(c.Z,r()({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}const u=(0,l.OAS3ComponentWrapFactory)(i)},58:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(7779),r=n(5623);const a=(0,s.OAS3ComponentWrapFactory)(r.Z)},9487:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(7779).OAS30ComponentWrapFactory)((e=>{const{Ori:t}=e;return r().createElement("span",null,r().createElement(t,e),r().createElement("small",{className:"version-stamp"},r().createElement("pre",{className:"version"},"OAS 3.0")))}))},2372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(4994),r=n.n(s),a=n(5800),o=n(4380);const l=function(e){let{fn:t,getSystem:n}=e;if(t.jsonSchema202012){const e=(0,a.makeIsExpandable)(t.jsonSchema202012.isExpandable,n);r()(this.fn.jsonSchema202012,{isExpandable:e,getProperties:a.getProperties})}if("function"==typeof t.sampleFromSchema&&t.jsonSchema202012){const e=(0,o.wrapOAS31Fn)({sampleFromSchema:t.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:t.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:t.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:t.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:t.jsonSchema202012.memoizedCreateXMLExample},n());r()(this.fn,e)}}},9503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(580),n(1669));const o=e=>{let{getComponent:t,specSelectors:n}=e;const s=n.selectContactNameField(),o=n.selectContactUrl(),l=n.selectContactEmailField(),c=t("Link");return r().createElement("div",{className:"info__contact"},o&&r().createElement("div",null,r().createElement(c,{href:(0,a.Nm)(o),target:"_blank"},s," - Website")),l&&r().createElement(c,{href:(0,a.Nm)(`mailto:${l}`)},o?`Send email to ${s}`:`Contact ${s}`))}},6133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(580),n(1669));const o=e=>{let{getComponent:t,specSelectors:n}=e;const s=n.version(),o=n.url(),l=n.basePath(),c=n.host(),i=n.selectInfoSummaryField(),u=n.selectInfoDescriptionField(),p=n.selectInfoTitleField(),m=n.selectInfoTermsOfServiceUrl(),d=n.selectExternalDocsUrl(),h=n.selectExternalDocsDescriptionField(),g=n.contact(),f=n.license(),y=t("Markdown",!0),S=t("Link"),v=t("VersionStamp"),E=t("InfoUrl"),x=t("InfoBasePath"),w=t("License",!0),C=t("Contact",!0),b=t("JsonSchemaDialect",!0);return r().createElement("div",{className:"info"},r().createElement("hgroup",{className:"main"},r().createElement("h2",{className:"title"},p,s&&r().createElement(v,{version:s})),(c||l)&&r().createElement(x,{host:c,basePath:l}),o&&r().createElement(E,{getComponent:t,url:o})),i&&r().createElement("p",{className:"info__summary"},i),r().createElement("div",{className:"info__description description"},r().createElement(y,{source:u})),m&&r().createElement("div",{className:"info__tos"},r().createElement(S,{target:"_blank",href:(0,a.Nm)(m)},"Terms of service")),g.size>0&&r().createElement(C,null),f.size>0&&r().createElement(w,null),d&&r().createElement(S,{className:"info__extdocs",target:"_blank",href:(0,a.Nm)(d)},h||d),r().createElement(b,null))}},2562:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(580),n(1669));const o=e=>{let{getComponent:t,specSelectors:n}=e;const s=n.selectJsonSchemaDialectField(),o=n.selectJsonSchemaDialectDefault(),l=t("Link");return r().createElement(r().Fragment,null,s&&s===o&&r().createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",r().createElement(l,{target:"_blank",href:(0,a.Nm)(s)},s)),s&&s!==o&&r().createElement("div",{className:"error-wrapper"},r().createElement("div",{className:"no-margin"},r().createElement("div",{className:"errors"},r().createElement("div",{className:"errors-wrapper"},r().createElement("h4",{className:"center"},"Warning"),r().createElement("p",{className:"message"},r().createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",r().createElement(l,{target:"_blank",href:o},o),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))}},1876:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s),a=(n(580),n(1669));const o=e=>{let{getComponent:t,specSelectors:n}=e;const s=n.selectLicenseNameField(),o=n.selectLicenseUrl(),l=t("Link");return r().createElement("div",{className:"info__license"},o?r().createElement("div",{className:"info__license__url"},r().createElement(l,{target:"_blank",href:(0,a.Nm)(o)},s)):r().createElement("span",null,s))}},2718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(2605),r=n.n(s),a=n(6689),o=n.n(a);n(580),n(8082);const l=e=>"string"==typeof e&&r()(e).call(e,"#/components/schemas/")?(e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}})(e.replace(/^.*#\/components\/schemas\//,"")):null,c=(0,a.forwardRef)(((e,t)=>{let{schema:n,getComponent:s,onToggle:r}=e;const c=s("JSONSchema202012"),i=l(n.get("$$ref")),u=(0,a.useCallback)(((e,t)=>{r(i,t)}),[i,r]);return o().createElement(c,{name:i,schema:n.toJS(),ref:t,onExpand:u})}));c.defaultProps={name:"",displayName:"",isRef:!1,required:!1,expandDepth:0,depth:1,includeReadOnly:!1,includeWriteOnly:!1,onToggle:()=>{}};const i=c},263:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(1815),c=n.n(l),i=n(6689),u=n.n(i),p=(n(580),n(9003)),m=n.n(p);const d=e=>{var t;let{specActions:n,specSelectors:s,layoutSelectors:a,layoutActions:l,getComponent:p,getConfigs:d}=e;const h=s.selectSchemas(),g=r()(h).length>0,f=["components","schemas"],{docExpansion:y,defaultModelsExpandDepth:S}=d(),v=S>0&&"none"!==y,E=a.isShown(f,v),x=p("Collapse"),w=p("JSONSchema202012");(0,i.useEffect)((()=>{const e=E&&S>1,t=null!=s.specResolvedSubtree(f);e&&!t&&n.requestResolvedSubtree(f)}),[E,S]);const C=(0,i.useCallback)((()=>{l.show(f,!E)}),[E]),b=(0,i.useCallback)((e=>{null!==e&&l.readyToScroll(f,e)}),[]),j=e=>t=>{null!==t&&l.readyToScroll([...f,e],t)},_=e=>(t,r)=>{if(r){const t=[...f,e];null!=s.specResolvedSubtree(t)||n.requestResolvedSubtree([...f,e])}};return!g||S<0?null:u().createElement("section",{className:m()("models",{"is-open":E}),ref:b},u().createElement("h4",null,u().createElement("button",{"aria-expanded":E,className:"models-control",onClick:C},u().createElement("span",null,"Schemas"),u().createElement("svg",{width:"20",height:"20","aria-hidden":"true",focusable:"false"},u().createElement("use",{xlinkHref:E?"#large-arrow-up":"#large-arrow-down"})))),u().createElement(x,{isOpened:E},o()(t=c()(h)).call(t,(e=>{let[t,n]=e;return u().createElement(w,{key:t,ref:j(t),schema:n,name:t,onExpand:_(t)})}))))}},3429:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{bypass:t,isSwagger2:n,isOAS3:s,isOAS31:a,alsoShow:o,children:l}=e;return t?r().createElement("div",null,l):n&&(s||a)?r().createElement("div",{className:"version-pragma"},o,r().createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},r().createElement("div",null,r().createElement("h3",null,"Unable to render this definition"),r().createElement("p",null,r().createElement("code",null,"swagger")," and ",r().createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),r().createElement("p",null,"Supported version fields are ",r().createElement("code",null,'swagger: "2.0"')," and those that match ",r().createElement("code",null,"openapi: 3.x.y")," (for example,"," ",r().createElement("code",null,"openapi: 3.1.0"),").")))):n||s||a?r().createElement("div",null,l):r().createElement("div",{className:"version-pragma"},o,r().createElement("div",{className:"version-pragma__message version-pragma__message--missing"},r().createElement("div",null,r().createElement("h3",null,"Unable to render this definition"),r().createElement("p",null,"The provided definition does not specify a valid version field."),r().createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",r().createElement("code",null,'swagger: "2.0"')," and those that match ",r().createElement("code",null,"openapi: 3.x.y")," (for example,"," ",r().createElement("code",null,"openapi: 3.1.0"),")."))))}},9508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(6689),c=n.n(l);n(580);const i=e=>{let{specSelectors:t,getComponent:n}=e;const s=t.selectWebhooksOperations(),a=r()(s),l=n("OperationContainer",!0);return 0===a.length?null:c().createElement("div",{className:"webhooks"},c().createElement("h2",null,"Webhooks"),o()(a).call(a,(e=>{var t;return c().createElement("div",{key:`${e}-webhook`},o()(t=s[e]).call(t,(t=>c().createElement(l,{key:`${e}-${t.method}-webhook`,op:t.operation,tag:"webhooks",method:t.method,path:e,specPath:t.specPath,allowTryItOut:!1}))))})))}},4380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createOnlyOAS31ComponentWrapper:()=>y,createOnlyOAS31Selector:()=>h,createOnlyOAS31SelectorWrapper:()=>g,createSystemSelector:()=>f,isOAS31:()=>d,wrapOAS31Fn:()=>S});var s=n(4250),r=n.n(s),a=n(3015),o=n.n(a),l=n(3942),c=n.n(l),i=n(1815),u=n.n(i),p=n(6689),m=n.n(p);const d=e=>{const t=e.get("openapi");return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},h=e=>function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return n=>{if(n.getSystem().specSelectors.isOAS31()){const r=e(t,...s);return"function"==typeof r?r(n):r}return null}},g=e=>(t,n)=>function(s){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];if(n.getSystem().specSelectors.isOAS31()){const r=e(s,...a);return"function"==typeof r?r(t,n):r}return t(...a)},f=e=>function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return n=>{const r=e(t,n,...s);return"function"==typeof r?r(n):r}},y=e=>(t,n)=>s=>n.specSelectors.isOAS31()?m().createElement(e,r()({},s,{originalComponent:t,getSystem:n.getSystem})):m().createElement(t,s),S=(e,t)=>{var n;const{fn:s,specSelectors:r}=t;return o()(c()(n=u()(e)).call(n,(e=>{let[t,n]=e;const a=s[t];return[t,function(){return r.isOAS31()?n(...arguments):"function"==typeof a?a(...arguments):void 0}]})))}},9806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var s=n(9508),r=n(1876),a=n(9503),o=n(6133),l=n(2562),c=n(3429),i=n(2718),u=n(263),p=n(6608),m=n(7423),d=n(284),h=n(7042),g=n(2914),f=n(1434),y=n(1122),S=n(4380),v=n(9305),E=n(2884),x=n(4280),w=n(9450),C=n(3995),b=n(9525),j=n(5324),_=n(809),N=n(4951),O=n(7536),k=n(2372);const A=e=>{let{fn:t}=e;const n=t.createSystemSelector||S.createSystemSelector,A=t.createOnlyOAS31Selector||S.createOnlyOAS31Selector;return{afterLoad:k.default,fn:{isOAS31:S.isOAS31,createSystemSelector:S.createSystemSelector,createOnlyOAS31Selector:S.createOnlyOAS31Selector},components:{Webhooks:s.default,JsonSchemaDialect:l.default,OAS31Info:o.default,OAS31License:r.default,OAS31Contact:a.default,OAS31VersionPragmaFilter:c.default,OAS31Model:i.default,OAS31Models:u.default,JSONSchema202012KeywordExample:w.default,JSONSchema202012KeywordXml:C.default,JSONSchema202012KeywordDiscriminator:b.default,JSONSchema202012KeywordExternalDocs:j.default},wrapComponents:{InfoContainer:d.default,License:p.default,Contact:m.default,VersionPragmaFilter:f.default,VersionStamp:y.default,Model:h.default,Models:g.default,JSONSchema202012KeywordDescription:_.default,JSONSchema202012KeywordDefault:N.default,JSONSchema202012KeywordProperties:O.default},statePlugins:{spec:{selectors:{isOAS31:n(v.isOAS31),license:v.license,selectLicenseNameField:v.selectLicenseNameField,selectLicenseUrlField:v.selectLicenseUrlField,selectLicenseIdentifierField:A(v.selectLicenseIdentifierField),selectLicenseUrl:n(v.selectLicenseUrl),contact:v.contact,selectContactNameField:v.selectContactNameField,selectContactEmailField:v.selectContactEmailField,selectContactUrlField:v.selectContactUrlField,selectContactUrl:n(v.selectContactUrl),selectInfoTitleField:v.selectInfoTitleField,selectInfoSummaryField:A(v.selectInfoSummaryField),selectInfoDescriptionField:v.selectInfoDescriptionField,selectInfoTermsOfServiceField:v.selectInfoTermsOfServiceField,selectInfoTermsOfServiceUrl:n(v.selectInfoTermsOfServiceUrl),selectExternalDocsDescriptionField:v.selectExternalDocsDescriptionField,selectExternalDocsUrlField:v.selectExternalDocsUrlField,selectExternalDocsUrl:n(v.selectExternalDocsUrl),webhooks:A(v.webhooks),selectWebhooksOperations:A(n(v.selectWebhooksOperations)),selectJsonSchemaDialectField:v.selectJsonSchemaDialectField,selectJsonSchemaDialectDefault:v.selectJsonSchemaDialectDefault,selectSchemas:n(v.selectSchemas)},wrapSelectors:{isOAS3:E.isOAS3,selectLicenseUrl:E.selectLicenseUrl}},oas31:{selectors:{selectLicenseUrl:A(n(x.selectLicenseUrl))}}}}}},5989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{schema:t,getSystem:n}=e;if(null==t||!t.description)return null;const{getComponent:s}=n(),a=s("Markdown");return r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},r().createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},r().createElement(a,{source:t.description})))}},9525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(7252),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l),i=n(7749);const u=e=>{let{schema:t,getSystem:n}=e;const s=(null==t?void 0:t.discriminator)||{},{fn:l,getComponent:u}=n(),{useIsExpandedDeeply:p,useComponent:m}=l.jsonSchema202012,d=p(),h=!!s.mapping,[g,f]=(0,a.useState)(d),[y,S]=(0,a.useState)(!1),v=m("Accordion"),E=m("ExpandDeepButton"),x=u("JSONSchema202012DeepExpansionContext")(),w=(0,a.useCallback)((()=>{f((e=>!e))}),[]),C=(0,a.useCallback)(((e,t)=>{f(t),S(t)}),[]);return 0===r()(s).length?null:o().createElement(x.Provider,{value:y},o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator"},h?o().createElement(o().Fragment,null,o().createElement(v,{expanded:g,onChange:w},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),o().createElement(E,{expanded:g,onClick:C})):o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),s.propertyName&&o().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},s.propertyName),o().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),o().createElement("ul",{className:c()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!g})},g&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement(i.default,{discriminator:s})))))}},7749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(7252),r=n.n(s),a=n(3942),o=n.n(a),l=n(1815),c=n.n(l),i=n(6689),u=n.n(i);n(580);const p=e=>{var t;let{discriminator:n}=e;const s=(null==n?void 0:n.mapping)||{};return 0===r()(s).length?null:o()(t=c()(s)).call(t,(e=>{let[t,n]=e;return u().createElement("div",{key:`${t}-${n}`,className:"json-schema-2020-12-keyword"},u().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},t),u().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))}))};p.defaultProps={mapping:void 0};const m=p},9450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{schema:t,getSystem:n}=e;const{fn:s}=n(),{hasKeyword:a,stringify:o}=s.jsonSchema202012.useFn();return a(t,"example")?r().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"},r().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Example"),r().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const"},o(t.example))):null}},5324:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(7252),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l),i=n(1669);const u=e=>{let{schema:t,getSystem:n}=e;const s=(null==t?void 0:t.externalDocs)||{},{fn:l,getComponent:u}=n(),{useIsExpandedDeeply:p,useComponent:m}=l.jsonSchema202012,d=p(),h=!(!s.description&&!s.url),[g,f]=(0,a.useState)(d),[y,S]=(0,a.useState)(!1),v=m("Accordion"),E=m("ExpandDeepButton"),x=u("JSONSchema202012KeywordDescription"),w=u("Link"),C=u("JSONSchema202012DeepExpansionContext")(),b=(0,a.useCallback)((()=>{f((e=>!e))}),[]),j=(0,a.useCallback)(((e,t)=>{f(t),S(t)}),[]);return 0===r()(s).length?null:o().createElement(C.Provider,{value:y},o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs"},h?o().createElement(o().Fragment,null,o().createElement(v,{expanded:g,onChange:b},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),o().createElement(E,{expanded:g,onClick:j})):o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),o().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),o().createElement("ul",{className:c()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!g})},g&&o().createElement(o().Fragment,null,s.description&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement(x,{schema:s,getSystem:n})),s.url&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),o().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},o().createElement(w,{target:"_blank",href:(0,i.Nm)(s.url)},s.url))))))))}},9023:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var s=n(7104),r=n.n(s),a=n(7252),o=n.n(a),l=n(3942),c=n.n(l),i=n(1815),u=n.n(i),p=n(2605),m=n.n(p),d=n(6689),h=n.n(d),g=(n(580),n(9003)),f=n.n(g);const y=e=>{var t;let{schema:n,getSystem:s}=e;const{fn:a}=s(),{useComponent:l}=a.jsonSchema202012,{getDependentRequired:i,getProperties:p}=a.jsonSchema202012.useFn(),d=a.jsonSchema202012.useConfig(),g=r()(null==n?void 0:n.required)?n.required:[],y=l("JSONSchema"),S=p(n,d);return 0===o()(S).length?null:h().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},h().createElement("ul",null,c()(t=u()(S)).call(t,(e=>{let[t,s]=e;const r=m()(g).call(g,t),a=i(t,n);return h().createElement("li",{key:t,className:f()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":r})},h().createElement(y,{name:t,schema:s,dependentRequired:a}))}))))}},3995:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(7252),r=n.n(s),a=n(6689),o=n.n(a),l=(n(580),n(9003)),c=n.n(l);const i=e=>{let{schema:t,getSystem:n}=e;const s=(null==t?void 0:t.xml)||{},{fn:l,getComponent:i}=n(),{useIsExpandedDeeply:u,useComponent:p}=l.jsonSchema202012,m=u(),d=!!(s.name||s.namespace||s.prefix),[h,g]=(0,a.useState)(m),[f,y]=(0,a.useState)(!1),S=p("Accordion"),v=p("ExpandDeepButton"),E=i("JSONSchema202012DeepExpansionContext")(),x=(0,a.useCallback)((()=>{g((e=>!e))}),[]),w=(0,a.useCallback)(((e,t)=>{g(t),y(t)}),[]);return 0===r()(s).length?null:o().createElement(E.Provider,{value:f},o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml"},d?o().createElement(o().Fragment,null,o().createElement(S,{expanded:h,onChange:x},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),o().createElement(v,{expanded:h,onClick:w})):o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),!0===s.attribute&&o().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),!0===s.wrapped&&o().createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),o().createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),o().createElement("ul",{className:c()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&o().createElement(o().Fragment,null,s.name&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),o().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},s.name))),s.namespace&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement("div",{className:"json-schema-2020-12-keyword"},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),o().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},s.namespace))),s.prefix&&o().createElement("li",{className:"json-schema-2020-12-property"},o().createElement("div",{className:"json-schema-2020-12-keyword"},o().createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),o().createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},s.prefix)))))))}},5800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getProperties:()=>u,makeIsExpandable:()=>i});var s=n(1815),r=n.n(s),a=n(9998),o=n.n(a),l=n(3015),c=n.n(l);const i=(e,t)=>{const{fn:n}=t();if("function"!=typeof e)return null;const{hasKeyword:s}=n.jsonSchema202012;return t=>e(t)||s(t,"example")||(null==t?void 0:t.xml)||(null==t?void 0:t.discriminator)||(null==t?void 0:t.externalDocs)},u=(e,t)=>{let{includeReadOnly:n,includeWriteOnly:s}=t;if(null==e||!e.properties)return{};const a=r()(e.properties),l=o()(a).call(a,(e=>{let[,t]=e;const r=!0===(null==t?void 0:t.readOnly),a=!0===(null==t?void 0:t.writeOnly);return(!r||n)&&(!a||s)}));return c()(l)}},4951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{schema:t,getSystem:n,originalComponent:s}=e;const{getComponent:a}=n(),o=a("JSONSchema202012KeywordDiscriminator"),l=a("JSONSchema202012KeywordXml"),c=a("JSONSchema202012KeywordExample"),i=a("JSONSchema202012KeywordExternalDocs");return r().createElement(r().Fragment,null,r().createElement(s,{schema:t}),r().createElement(o,{schema:t,getSystem:n}),r().createElement(l,{schema:t,getSystem:n}),r().createElement(i,{schema:t,getSystem:n}),r().createElement(c,{schema:t,getSystem:n}))}))},809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(5989);const r=(0,n(4380).createOnlyOAS31ComponentWrapper)(s.default)},7536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(9023);const r=(0,n(4380).createOnlyOAS31ComponentWrapper)(s.default)},4280:(e,t,n)=>{"use strict";n.r(t),n.d(t,{selectLicenseUrl:()=>a});var s=n(6814),r=n(3543);const a=(0,s.createSelector)(((e,t)=>t.specSelectors.url()),((e,t)=>t.oas3Selectors.selectedServer()),((e,t)=>t.specSelectors.selectLicenseUrlField()),((e,t)=>t.specSelectors.selectLicenseIdentifierField()),((e,t,n,s)=>n?(0,r.mn)(n,e,{selectedServer:t}):s?`https://spdx.org/licenses/${s}.html`:void 0))},9305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{contact:()=>O,isOAS31:()=>E,license:()=>C,selectContactEmailField:()=>A,selectContactNameField:()=>k,selectContactUrl:()=>P,selectContactUrlField:()=>I,selectExternalDocsDescriptionField:()=>J,selectExternalDocsUrl:()=>K,selectExternalDocsUrlField:()=>$,selectInfoDescriptionField:()=>T,selectInfoSummaryField:()=>R,selectInfoTermsOfServiceField:()=>M,selectInfoTermsOfServiceUrl:()=>D,selectInfoTitleField:()=>q,selectJsonSchemaDialectDefault:()=>V,selectJsonSchemaDialectField:()=>L,selectLicenseIdentifierField:()=>N,selectLicenseNameField:()=>b,selectLicenseUrl:()=>_,selectLicenseUrlField:()=>j,selectSchemas:()=>U,selectWebhooksOperations:()=>w,webhooks:()=>x});var s=n(3942),r=n.n(s),a=n(66),o=n.n(a),l=n(9998),c=n.n(l),i=n(2605),u=n.n(i),p=n(4883),m=n.n(p),d=n(1815),h=n.n(d),g=n(5572),f=n(6814),y=n(3543),S=n(4380);const v=(0,g.Map)(),E=(0,f.createSelector)(((e,t)=>t.specSelectors.specJson()),S.isOAS31),x=()=>e=>e.specSelectors.specJson().get("webhooks",v),w=(0,f.createSelector)(((e,t)=>t.specSelectors.webhooks()),((e,t)=>t.specSelectors.validOperationMethods()),((e,t)=>t.specSelectors.specResolvedSubtree(["webhooks"])),((e,t)=>{var n;return g.Map.isMap(e)?r()(n=o()(e).call(e,((e,n,s)=>{var a,o;if(!g.Map.isMap(n))return e;const l=r()(a=c()(o=n.entrySeq()).call(o,(e=>{let[n]=e;return u()(t).call(t,n)}))).call(a,(e=>{let[t,n]=e;return{operation:(0,g.Map)({operation:n}),method:t,path:s,specPath:(0,g.List)(["webhooks",s,t])}}));return m()(e).call(e,l)}),(0,g.List)()).groupBy((e=>e.path))).call(n,(e=>e.toArray())).toObject():{}})),C=()=>e=>e.specSelectors.info().get("license",v),b=()=>e=>e.specSelectors.license().get("name","License"),j=()=>e=>e.specSelectors.license().get("url"),_=(0,f.createSelector)(((e,t)=>t.specSelectors.url()),((e,t)=>t.oas3Selectors.selectedServer()),((e,t)=>t.specSelectors.selectLicenseUrlField()),((e,t,n)=>{if(n)return(0,y.mn)(n,e,{selectedServer:t})})),N=()=>e=>e.specSelectors.license().get("identifier"),O=()=>e=>e.specSelectors.info().get("contact",v),k=()=>e=>e.specSelectors.contact().get("name","the developer"),A=()=>e=>e.specSelectors.contact().get("email"),I=()=>e=>e.specSelectors.contact().get("url"),P=(0,f.createSelector)(((e,t)=>t.specSelectors.url()),((e,t)=>t.oas3Selectors.selectedServer()),((e,t)=>t.specSelectors.selectContactUrlField()),((e,t,n)=>{if(n)return(0,y.mn)(n,e,{selectedServer:t})})),q=()=>e=>e.specSelectors.info().get("title"),R=()=>e=>e.specSelectors.info().get("summary"),T=()=>e=>e.specSelectors.info().get("description"),M=()=>e=>e.specSelectors.info().get("termsOfService"),D=(0,f.createSelector)(((e,t)=>t.specSelectors.url()),((e,t)=>t.oas3Selectors.selectedServer()),((e,t)=>t.specSelectors.selectInfoTermsOfServiceField()),((e,t,n)=>{if(n)return(0,y.mn)(n,e,{selectedServer:t})})),J=()=>e=>e.specSelectors.externalDocs().get("description"),$=()=>e=>e.specSelectors.externalDocs().get("url"),K=(0,f.createSelector)(((e,t)=>t.specSelectors.url()),((e,t)=>t.oas3Selectors.selectedServer()),((e,t)=>t.specSelectors.selectExternalDocsUrlField()),((e,t,n)=>{if(n)return(0,y.mn)(n,e,{selectedServer:t})})),L=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),V=()=>"https://spec.openapis.org/oas/3.1/dialect/base",U=(0,f.createSelector)(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"])),((e,t)=>{var n;return g.Map.isMap(e)?g.Map.isMap(t)?o()(n=h()(e.toJS())).call(n,((e,n)=>{let[s,r]=n;const a=t.get(s);return e[s]=(null==a?void 0:a.toJS())||r,e}),{}):e.toJS():{}}))},2884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isOAS3:()=>r,selectLicenseUrl:()=>a});var s=n(4380);const r=(e,t)=>function(n){const s=t.specSelectors.isOAS31();for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return s||e(...a)},a=(0,s.createOnlyOAS31SelectorWrapper)((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl()))},7423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{getSystem:t}=e;const n=t().getComponent("OAS31Contact",!0);return r().createElement(n,null)}))},284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{getSystem:t}=e;const n=t().getComponent("OAS31Info",!0);return r().createElement(n,null)}))},6608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{getSystem:t}=e;const n=t().getComponent("OAS31License",!0);return r().createElement(n,null)}))},7042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(6689),r=n.n(s),a=n(4380),o=n(5800);const l=(0,a.createOnlyOAS31ComponentWrapper)((e=>{let{getSystem:t,...n}=e;const s=t(),{getComponent:a,fn:l,getConfigs:c}=s,i=c(),u=a("OAS31Model"),p=a("JSONSchema202012"),m=a("JSONSchema202012Keyword$schema"),d=a("JSONSchema202012Keyword$vocabulary"),h=a("JSONSchema202012Keyword$id"),g=a("JSONSchema202012Keyword$anchor"),f=a("JSONSchema202012Keyword$dynamicAnchor"),y=a("JSONSchema202012Keyword$ref"),S=a("JSONSchema202012Keyword$dynamicRef"),v=a("JSONSchema202012Keyword$defs"),E=a("JSONSchema202012Keyword$comment"),x=a("JSONSchema202012KeywordAllOf"),w=a("JSONSchema202012KeywordAnyOf"),C=a("JSONSchema202012KeywordOneOf"),b=a("JSONSchema202012KeywordNot"),j=a("JSONSchema202012KeywordIf"),_=a("JSONSchema202012KeywordThen"),N=a("JSONSchema202012KeywordElse"),O=a("JSONSchema202012KeywordDependentSchemas"),k=a("JSONSchema202012KeywordPrefixItems"),A=a("JSONSchema202012KeywordItems"),I=a("JSONSchema202012KeywordContains"),P=a("JSONSchema202012KeywordProperties"),q=a("JSONSchema202012KeywordPatternProperties"),R=a("JSONSchema202012KeywordAdditionalProperties"),T=a("JSONSchema202012KeywordPropertyNames"),M=a("JSONSchema202012KeywordUnevaluatedItems"),D=a("JSONSchema202012KeywordUnevaluatedProperties"),J=a("JSONSchema202012KeywordType"),$=a("JSONSchema202012KeywordEnum"),K=a("JSONSchema202012KeywordConst"),L=a("JSONSchema202012KeywordConstraint"),V=a("JSONSchema202012KeywordDependentRequired"),U=a("JSONSchema202012KeywordContentSchema"),F=a("JSONSchema202012KeywordTitle"),z=a("JSONSchema202012KeywordDescription"),B=a("JSONSchema202012KeywordDefault"),W=a("JSONSchema202012KeywordDeprecated"),H=a("JSONSchema202012KeywordReadOnly"),G=a("JSONSchema202012KeywordWriteOnly"),Z=a("JSONSchema202012Accordion"),X=a("JSONSchema202012ExpandDeepButton"),Y=a("JSONSchema202012ChevronRightIcon"),Q=a("withJSONSchema202012Context")(u,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:i.defaultModelExpandDepth,includeReadOnly:Boolean(n.includeReadOnly),includeWriteOnly:Boolean(n.includeWriteOnly)},components:{JSONSchema:p,Keyword$schema:m,Keyword$vocabulary:d,Keyword$id:h,Keyword$anchor:g,Keyword$dynamicAnchor:f,Keyword$ref:y,Keyword$dynamicRef:S,Keyword$defs:v,Keyword$comment:E,KeywordAllOf:x,KeywordAnyOf:w,KeywordOneOf:C,KeywordNot:b,KeywordIf:j,KeywordThen:_,KeywordElse:N,KeywordDependentSchemas:O,KeywordPrefixItems:k,KeywordItems:A,KeywordContains:I,KeywordProperties:P,KeywordPatternProperties:q,KeywordAdditionalProperties:R,KeywordPropertyNames:T,KeywordUnevaluatedItems:M,KeywordUnevaluatedProperties:D,KeywordType:J,KeywordEnum:$,KeywordConst:K,KeywordConstraint:L,KeywordDependentRequired:V,KeywordContentSchema:U,KeywordTitle:F,KeywordDescription:z,KeywordDefault:B,KeywordDeprecated:W,KeywordReadOnly:H,KeywordWriteOnly:G,Accordion:Z,ExpandDeepButton:X,ChevronRightIcon:Y},fn:{upperFirst:l.upperFirst,isExpandable:(0,o.makeIsExpandable)(l.jsonSchema202012.isExpandable,t),getProperties:o.getProperties}});return r().createElement(Q,n)}))},2914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{getSystem:t}=e;const{getComponent:n,fn:s,getConfigs:o}=t(),l=o();if(a.ModelsWithJSONSchemaContext)return r().createElement(a.ModelsWithJSONSchemaContext,null);const c=n("OAS31Models",!0),i=n("JSONSchema202012"),u=n("JSONSchema202012Keyword$schema"),p=n("JSONSchema202012Keyword$vocabulary"),m=n("JSONSchema202012Keyword$id"),d=n("JSONSchema202012Keyword$anchor"),h=n("JSONSchema202012Keyword$dynamicAnchor"),g=n("JSONSchema202012Keyword$ref"),f=n("JSONSchema202012Keyword$dynamicRef"),y=n("JSONSchema202012Keyword$defs"),S=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),x=n("JSONSchema202012KeywordOneOf"),w=n("JSONSchema202012KeywordNot"),C=n("JSONSchema202012KeywordIf"),b=n("JSONSchema202012KeywordThen"),j=n("JSONSchema202012KeywordElse"),_=n("JSONSchema202012KeywordDependentSchemas"),N=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),k=n("JSONSchema202012KeywordContains"),A=n("JSONSchema202012KeywordProperties"),I=n("JSONSchema202012KeywordPatternProperties"),P=n("JSONSchema202012KeywordAdditionalProperties"),q=n("JSONSchema202012KeywordPropertyNames"),R=n("JSONSchema202012KeywordUnevaluatedItems"),T=n("JSONSchema202012KeywordUnevaluatedProperties"),M=n("JSONSchema202012KeywordType"),D=n("JSONSchema202012KeywordEnum"),J=n("JSONSchema202012KeywordConst"),$=n("JSONSchema202012KeywordConstraint"),K=n("JSONSchema202012KeywordDependentRequired"),L=n("JSONSchema202012KeywordContentSchema"),V=n("JSONSchema202012KeywordTitle"),U=n("JSONSchema202012KeywordDescription"),F=n("JSONSchema202012KeywordDefault"),z=n("JSONSchema202012KeywordDeprecated"),B=n("JSONSchema202012KeywordReadOnly"),W=n("JSONSchema202012KeywordWriteOnly"),H=n("JSONSchema202012Accordion"),G=n("JSONSchema202012ExpandDeepButton"),Z=n("JSONSchema202012ChevronRightIcon"),X=n("withJSONSchema202012Context");return a.ModelsWithJSONSchemaContext=X(c,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:l.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},components:{JSONSchema:i,Keyword$schema:u,Keyword$vocabulary:p,Keyword$id:m,Keyword$anchor:d,Keyword$dynamicAnchor:h,Keyword$ref:g,Keyword$dynamicRef:f,Keyword$defs:y,Keyword$comment:S,KeywordAllOf:v,KeywordAnyOf:E,KeywordOneOf:x,KeywordNot:w,KeywordIf:C,KeywordThen:b,KeywordElse:j,KeywordDependentSchemas:_,KeywordPrefixItems:N,KeywordItems:O,KeywordContains:k,KeywordProperties:A,KeywordPatternProperties:I,KeywordAdditionalProperties:P,KeywordPropertyNames:q,KeywordUnevaluatedItems:R,KeywordUnevaluatedProperties:T,KeywordType:M,KeywordEnum:D,KeywordConst:J,KeywordConstraint:$,KeywordDependentRequired:K,KeywordContentSchema:L,KeywordTitle:V,KeywordDescription:U,KeywordDefault:F,KeywordDeprecated:z,KeywordReadOnly:B,KeywordWriteOnly:W,Accordion:H,ExpandDeepButton:G,ChevronRightIcon:Z},fn:{upperFirst:s.upperFirst,isExpandable:s.jsonSchema202012.isExpandable,getProperties:s.jsonSchema202012.getProperties}}),r().createElement(a.ModelsWithJSONSchemaContext,null)}));a.ModelsWithJSONSchemaContext=null;const o=a},1434:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(4250),r=n.n(s),a=n(6689),o=n.n(a);const l=(e,t)=>e=>{const n=t.specSelectors.isOAS31(),s=t.getComponent("OAS31VersionPragmaFilter");return o().createElement(s,r()({isOAS31:n},e))}},1122:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);const a=(0,n(4380).createOnlyOAS31ComponentWrapper)((e=>{let{originalComponent:t,...n}=e;return r().createElement("span",null,r().createElement(t,n),r().createElement("small",{className:"version-stamp"},r().createElement("pre",{className:"version"},"OAS 3.1")))}))},8560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(9300),r=n.n(s);let a=!1;function o(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>function(){return a=!0,e(...arguments)},updateJsonSpec:(e,t)=>function(){const n=t.getConfigs().onComplete;return a&&"function"==typeof n&&(r()(n,0),a=!1),e(...arguments)}}}}}}},8223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{requestSnippetGenerator_curl_bash:()=>j,requestSnippetGenerator_curl_cmd:()=>_,requestSnippetGenerator_curl_powershell:()=>b});var s=n(8493),r=n.n(s),a=n(7390),o=n.n(a),l=n(8344),c=n.n(l),i=n(3942),u=n.n(i);const p=require("@babel/runtime-corejs3/core-js-stable/instance/repeat");var m=n.n(p),d=n(7862),h=n.n(d),g=n(2605),f=n.n(g),y=n(7504),S=n(5572);const v=e=>{var t;const n="_**[]";return r()(e).call(e,n)<0?e:o()(t=e.split(n)[0]).call(t)},E=e=>"-d "===e||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",x=e=>"-d "===(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,"^\n"))?e.replace(/-d /g,"-d ^\n"):/^[_\/-]/g.test(e)?e:'"'+e+'"',w=e=>"-d "===e?e:/\n/.test(e)?'@"\n'+e.replace(/"/g,'\\"').replace(/`/g,"``").replace(/\$/,"`$")+'\n"@':/^[_\/-]/g.test(e)?e:"'"+e.replace(/"/g,'""').replace(/'/g,"''")+"'";const C=function(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=!1,a="";const o=function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return a+=" "+u()(n).call(n,t).join(" ")},l=function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return a+=u()(n).call(n,t).join(" ")},i=()=>a+=` ${n}`,p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return a+=m()(" ").call(" ",e)};let d=e.get("headers");if(a+="curl"+s,e.has("curlOptions")&&o(...e.get("curlOptions")),o("-X",e.get("method")),i(),p(),l(`${e.get("url")}`),d&&d.size)for(let t of h()(g=e.get("headers")).call(g)){var g;i(),p();let[e,n]=t;l("-H",`${e}: ${n}`),r=r||/^content-type$/i.test(e)&&/^multipart\/form-data$/i.test(n)}const E=e.get("body");var x;if(E)if(r&&f()(x=["POST","PUT","PATCH"]).call(x,e.get("method")))for(let[e,t]of E.entrySeq()){let n=v(e);i(),p(),l("-F"),t instanceof y.Z.File?o(`${n}=@${t.name}${t.type?`;type=${t.type}`:""}`):o(`${n}=${t}`)}else if(E instanceof y.Z.File)i(),p(),l(`--data-binary '@${E.name}'`);else{i(),p(),l("-d ");let t=E;S.Map.isMap(t)?l(function(e){let t=[];for(let[n,s]of e.get("body").entrySeq()){let e=v(n);s instanceof y.Z.File?t.push(` "${e}": {\n "name": "${s.name}"${s.type?`,\n "type": "${s.type}"`:""}\n }`):t.push(` "${e}": ${c()(s,null,2).replace(/(\r\n|\r|\n)/g,"\n ")}`)}return`{\n${t.join(",\n")}\n}`}(e)):("string"!=typeof t&&(t=c()(t)),l(t))}else E||"POST"!==e.get("method")||(i(),p(),l("-d ''"));return a},b=e=>C(e,w,"`\n",".exe"),j=e=>C(e,E,"\\\n"),_=e=>C(e,x,"^\n")},6575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(8223),r=n(4669),a=n(4206);const o=()=>({components:{RequestSnippets:a.default},fn:s,statePlugins:{requestSnippets:{selectors:r}}})},4206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var s=n(9998),r=n.n(s),a=n(1733),o=n.n(a),l=n(4235),c=n.n(l),i=n(3942),u=n.n(i),p=n(6689),m=n.n(p),d=(n(580),n(1712)),h=n.n(d),g=n(5716),f=n.n(g),y=n(2807),S=n(6068);const v={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},E={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"},x=e=>{var t,n;let{request:s,requestSnippetsSelectors:a,getConfigs:l}=e;const i=f()(l)?l():null,d=!1!==h()(i,"syntaxHighlight")&&h()(i,"syntaxHighlight.activated",!0),g=(0,p.useRef)(null),[x,w]=(0,p.useState)(null===(t=a.getSnippetGenerators())||void 0===t?void 0:t.keySeq().first()),[C,b]=(0,p.useState)(null==a?void 0:a.getDefaultExpanded());(0,p.useEffect)((()=>{}),[]),(0,p.useEffect)((()=>{var e;const t=r()(e=o()(g.current.childNodes)).call(e,(e=>{var t;return!!e.nodeType&&(null===(t=e.classList)||void 0===t?void 0:t.contains("curl-command"))}));return c()(t).call(t,(e=>e.addEventListener("mousewheel",A,{passive:!1}))),()=>{c()(t).call(t,(e=>e.removeEventListener("mousewheel",A)))}}),[s]);const j=a.getSnippetGenerators(),_=j.get(x),N=_.get("fn")(s),O=()=>{b(!C)},k=e=>e===x?E:v,A=e=>{const{target:t,deltaY:n}=e,{scrollHeight:s,offsetHeight:r,scrollTop:a}=t;s>r&&(0===a&&n<0||r+a>=s&&n>0)&&e.preventDefault()},I=d?m().createElement(S.d3,{language:_.get("syntax"),className:"curl microlight",style:(0,S.C2)(h()(i,"syntaxHighlight.theme"))},N):m().createElement("textarea",{readOnly:!0,className:"curl",value:N});return m().createElement("div",{className:"request-snippets",ref:g},m().createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},m().createElement("h4",{onClick:()=>O(),style:{cursor:"pointer"}},"Snippets"),m().createElement("button",{onClick:()=>O(),style:{border:"none",background:"none"},title:C?"Collapse operation":"Expand operation"},m().createElement("svg",{className:"arrow",width:"10",height:"10"},m().createElement("use",{href:C?"#large-arrow-down":"#large-arrow",xlinkHref:C?"#large-arrow-down":"#large-arrow"})))),C&&m().createElement("div",{className:"curl-command"},m().createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},u()(n=j.entrySeq()).call(n,(e=>{let[t,n]=e;return m().createElement("div",{style:k(t),className:"btn",key:t,onClick:()=>(e=>{x!==e&&w(e)})(t)},m().createElement("h4",{style:t===x?{color:"white"}:{}},n.get("title")))}))),m().createElement("div",{className:"copy-to-clipboard"},m().createElement(y.CopyToClipboard,{text:N},m().createElement("button",null))),m().createElement("div",null,I)))}},4669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getActiveLanguage:()=>h,getDefaultExpanded:()=>g,getGenerators:()=>m,getSnippetGenerators:()=>d});var s=n(9998),r=n.n(s),a=n(2605),o=n.n(a),l=n(3942),c=n.n(l),i=n(6814),u=n(5572);const p=e=>e||(0,u.Map)(),m=(0,i.createSelector)(p,(e=>{const t=e.get("languages"),n=e.get("generators",(0,u.Map)());return!t||t.isEmpty()?n:r()(n).call(n,((e,n)=>o()(t).call(t,n)))})),d=e=>t=>{var n,s;let{fn:a}=t;return r()(n=c()(s=m(e)).call(s,((e,t)=>{const n=(e=>a[`requestSnippetGenerator_${e}`])(t);return"function"!=typeof n?null:e.set("fn",n)}))).call(n,(e=>e))},h=(0,i.createSelector)(p,(e=>e.get("activeLanguage"))),g=(0,i.createSelector)(p,(e=>e.get("defaultExpanded")))},6195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ErrorBoundary:()=>l,default:()=>c});n(580);var s=n(6689),r=n.n(s),a=n(6189),o=n(9403);class l extends s.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(){super(...arguments),this.state={hasError:!1,error:null}}componentDidCatch(e,t){this.props.fn.componentDidCatch(e,t)}render(){const{getComponent:e,targetName:t,children:n}=this.props;if(this.state.hasError){const n=e("Fallback");return r().createElement(n,{name:t})}return n}}l.defaultProps={targetName:"this component",getComponent:()=>o.default,fn:{componentDidCatch:a.componentDidCatch},children:null};const c=l},9403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(6689),r=n.n(s);n(580);const a=e=>{let{name:t}=e;return r().createElement("div",{className:"fallback"},"😱 ",r().createElement("i",null,"Could not render ","t"===t?"this component":t,", see the console."))}},6189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{componentDidCatch:()=>l,withErrorBoundary:()=>c});var s=n(4250),r=n.n(s),a=n(6689),o=n.n(a);const l=console.error,c=e=>t=>{const{getComponent:n,fn:s}=e(),l=n("ErrorBoundary"),c=s.getDisplayName(t);class i extends a.Component{render(){return o().createElement(l,{targetName:c,getComponent:n,fn:s},o().createElement(t,r()({},this.props,this.context)))}}var u;return i.displayName=`WithErrorBoundary(${c})`,(u=t).prototype&&u.prototype.isReactComponent&&(i.prototype.mapStateToProps=t.prototype.mapStateToProps),i}},9595:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});const s=require("@babel/runtime-corejs3/core-js-stable/instance/fill");var r=n.n(s);const a=require("lodash/zipObject");var o=n.n(a),l=n(6195),c=n(9403),i=n(6189);const u=function(){let{componentList:e=[],fullOverride:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{var s;let{getSystem:a}=n;const u=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],p=o()(u,r()(s=Array(u.length)).call(s,((e,t)=>{let{fn:n}=t;return n.withErrorBoundary(e)})));return{fn:{componentDidCatch:i.componentDidCatch,withErrorBoundary:(0,i.withErrorBoundary)(a)},components:{ErrorBoundary:l.default,Fallback:c.default},wrapComponents:p}}}},2846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(66),r=n.n(s),a=n(8344),o=n.n(a),l=n(4129),c=n.n(l);const i=[{when:/json/,shouldStringifyTypes:["string"]}],u=["object"],p=e=>(t,n,s,a)=>{const{fn:l}=e(),p=l.memoizedSampleFromSchema(t,n,a),m=typeof p,d=r()(i).call(i,((e,t)=>t.when.test(s)?[...e,...t.shouldStringifyTypes]:e),u);return c()(d,(e=>e===m))?o()(p,null,2):p}},6132:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=e=>function(t){var n,s;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;const{fn:l}=e();return"function"==typeof(null===(n=t)||void 0===n?void 0:n.toJS)&&(t=t.toJS()),"function"==typeof(null===(s=o)||void 0===s?void 0:s.toJS)&&(o=o.toJS()),/xml/.test(r)?l.getXmlSampleSchema(t,a,o):/(yaml|yml)/.test(r)?l.getYamlSampleSchema(t,a,r,o):l.getJsonSampleSchema(t,a,r,o)}},1169:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});const s=e=>(t,n,s)=>{const{fn:r}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return r.memoizedCreateXMLExample(t,n,s)}},9431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(600),r=n.n(s),a=n(9793),o=n.n(a);const l=e=>(t,n,s,l)=>{const{fn:c}=e(),i=c.getJsonSampleSchema(t,n,s,l);let u;try{u=o().dump(o().load(i),{lineWidth:-1},{schema:a.JSON_SCHEMA}),"\n"===u[u.length-1]&&(u=r()(u).call(u,0,u.length-1))}catch(e){return console.error(e),"error: could not generate yaml example"}return u.replace(/\t/g," ")}},9812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createXMLExample:()=>L,inferSchema:()=>K,memoizedCreateXMLExample:()=>F,memoizedSampleFromSchema:()=>z,sampleFromSchema:()=>V,sampleFromSchemaGeneric:()=>$});var s=n(8493),r=n.n(s),a=n(4235),o=n.n(a),l=n(7104),c=n.n(l),i=n(2605),u=n.n(i),p=n(5626),m=n.n(p),d=n(600),h=n.n(d),g=n(3580),f=n.n(g),y=n(4883),S=n.n(y),v=n(3942),E=n.n(v),x=n(8344),w=n.n(x),C=n(8920),b=n.n(C),j=n(9989),_=n.n(j),N=n(9699),O=n.n(N),k=n(1669),A=n(7481);const I={string:e=>e.pattern?(e=>{try{return new(_())(e).gen()}catch(e){return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>(new Date).toISOString(),string_date:()=>(new Date).toISOString().substring(0,10),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>"boolean"!=typeof e.default||e.default},P=e=>{e=(0,k.mz)(e);let{type:t,format:n}=e,s=I[`${t}_${n}`]||I[t];return(0,k.Wl)(s)?s(e):"Unknown Type: "+e.type},q=e=>(0,k.XV)(e,"$$ref",(e=>"string"==typeof e&&r()(e).call(e,"#")>-1)),R=["maxProperties","minProperties"],T=["minItems","maxItems"],M=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],D=["minLength","maxLength"],J=function(e,t){var n;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a;(o()(n=["example","default","enum","xml","type",...R,...T,...M,...D]).call(n,(n=>(n=>{void 0===t[n]&&void 0!==e[n]&&(t[n]=e[n])})(n))),void 0!==e.required&&c()(e.required))&&(void 0!==t.required&&t.required.length||(t.required=[]),o()(a=e.required).call(a,(e=>{var n;u()(n=t.required).call(n,e)||t.required.push(e)})));if(e.properties){t.properties||(t.properties={});let n=(0,k.mz)(e.properties);for(let a in n){var l;if(Object.prototype.hasOwnProperty.call(n,a))if(!n[a]||!n[a].deprecated)if(!n[a]||!n[a].readOnly||s.includeReadOnly)if(!n[a]||!n[a].writeOnly||s.includeWriteOnly)if(!t.properties[a])t.properties[a]=n[a],!e.required&&c()(e.required)&&-1!==r()(l=e.required).call(l,a)&&(t.required?t.required.push(a):t.required=[a])}}return e.items&&(t.items||(t.items={}),t.items=J(e.items,t.items,s)),t},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&(0,k.Wl)(e.toJS)&&(e=e.toJS());let a=void 0!==n||e&&void 0!==e.example||e&&void 0!==e.default;const l=!a&&e&&e.oneOf&&e.oneOf.length>0,i=!a&&e&&e.anyOf&&e.anyOf.length>0;if(!a&&(l||i)){const n=(0,k.mz)(l?e.oneOf[0]:e.anyOf[0]);if(J(n,e,t),!e.xml&&n.xml&&(e.xml=n.xml),void 0!==e.example&&void 0!==n.example)a=!0;else if(n.properties){e.properties||(e.properties={});let s=(0,k.mz)(n.properties);for(let a in s){var p;if(Object.prototype.hasOwnProperty.call(s,a))if(!s[a]||!s[a].deprecated)if(!s[a]||!s[a].readOnly||t.includeReadOnly)if(!s[a]||!s[a].writeOnly||t.includeWriteOnly)if(!e.properties[a])e.properties[a]=s[a],!n.required&&c()(n.required)&&-1!==r()(p=n.required).call(p,a)&&(e.required?e.required.push(a):e.required=[a])}}}const d={};let{xml:g,type:y,example:v,properties:x,additionalProperties:w,items:C}=e||{},{includeReadOnly:b,includeWriteOnly:j}=t;g=g||{};let _,{name:N,prefix:A,namespace:I}=g,D={};if(s&&(N=N||"notagname",_=(A?A+":":"")+N,I)){d[A?"xmlns:"+A:"xmlns"]=I}s&&(D[_]=[]);const K=t=>m()(t).call(t,(t=>Object.prototype.hasOwnProperty.call(e,t)));e&&!y&&(x||w||K(R)?y="object":C||K(T)?y="array":K(M)?(y="number",e.type="number"):a||e.enum||(y="string",e.type="string"));const L=t=>{var n,s,r,a,o;null!==(null===(n=e)||void 0===n?void 0:n.maxItems)&&void 0!==(null===(s=e)||void 0===s?void 0:s.maxItems)&&(t=h()(t).call(t,0,null===(o=e)||void 0===o?void 0:o.maxItems));if(null!==(null===(r=e)||void 0===r?void 0:r.minItems)&&void 0!==(null===(a=e)||void 0===a?void 0:a.minItems)){let n=0;for(;t.length<(null===(l=e)||void 0===l?void 0:l.minItems);){var l;t.push(t[n++%t.length])}}return t},V=(0,k.mz)(x);let U,F=0;const z=()=>e&&null!==e.maxProperties&&void 0!==e.maxProperties&&F>=e.maxProperties,B=t=>!e||null===e.maxProperties||void 0===e.maxProperties||!z()&&(!(t=>{var n;return!(e&&e.required&&e.required.length&&u()(n=e.required).call(n,t))})(t)||e.maxProperties-F-(()=>{if(!e||!e.required)return 0;let t=0;var n,r;return s?o()(n=e.required).call(n,(e=>t+=void 0===D[e]?0:1)):o()(r=e.required).call(r,(e=>{var n;return t+=void 0===(null===(n=D[_])||void 0===n?void 0:f()(n).call(n,(t=>void 0!==t[e])))?0:1})),e.required.length-t})()>0);if(U=s?function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&V[n]){if(V[n].xml=V[n].xml||{},V[n].xml.attribute){const e=c()(V[n].enum)?V[n].enum[0]:void 0,t=V[n].example,s=V[n].default;return void(d[V[n].xml.name||n]=void 0!==t?t:void 0!==s?s:void 0!==e?e:P(V[n]))}V[n].xml.name=V[n].xml.name||n}else V[n]||!1===w||(V[n]={xml:{name:n}});let a=$(e&&V[n]||void 0,t,r,s);var o;B(n)&&(F++,c()(a)?D[_]=S()(o=D[_]).call(o,a):D[_].push(a))}:(n,r)=>{if(B(n)){if(Object.prototype.hasOwnProperty.call(e,"discriminator")&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,"mapping")&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,"$$ref")&&e.$$ref&&e.discriminator.propertyName===n){for(let t in e.discriminator.mapping)if(-1!==e.$$ref.search(e.discriminator.mapping[t])){D[n]=t;break}}else D[n]=$(V[n],t,r,s);F++}},a){let r;if(r=q(void 0!==n?n:void 0!==v?v:e.default),!s){if("number"==typeof r&&"string"===y)return`${r}`;if("string"!=typeof r||"string"===y)return r;try{return JSON.parse(r)}catch(e){return r}}if(e||(y=c()(r)?"array":typeof r),"array"===y){if(!c()(r)){if("string"==typeof r)return r;r=[r]}const n=e?e.items:void 0;n&&(n.xml=n.xml||g||{},n.xml.name=n.xml.name||g.name);let a=E()(r).call(r,(e=>$(n,t,e,s)));return a=L(a),g.wrapped?(D[_]=a,O()(d)||D[_].push({_attr:d})):D=a,D}if("object"===y){if("string"==typeof r)return r;for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e&&V[t]&&V[t].readOnly&&!b||e&&V[t]&&V[t].writeOnly&&!j||(e&&V[t]&&V[t].xml&&V[t].xml.attribute?d[V[t].xml.name||t]=r[t]:U(t,r[t])));return O()(d)||D[_].push({_attr:d}),D}return D[_]=O()(d)?r:[{_attr:d},r],D}if("object"===y){for(let e in V)Object.prototype.hasOwnProperty.call(V,e)&&(V[e]&&V[e].deprecated||V[e]&&V[e].readOnly&&!b||V[e]&&V[e].writeOnly&&!j||U(e));if(s&&d&&D[_].push({_attr:d}),z())return D;if(!0===w)s?D[_].push({additionalProp:"Anything can be here"}):D.additionalProp1={},F++;else if(w){const n=(0,k.mz)(w),r=$(n,t,void 0,s);if(s&&n.xml&&n.xml.name&&"notagname"!==n.xml.name)D[_].push(r);else{const t=null!==e.minProperties&&void 0!==e.minProperties&&F<e.minProperties?e.minProperties-F:3;for(let e=1;e<=t;e++){if(z())return D;if(s){const t={};t["additionalProp"+e]=r.notagname,D[_].push(t)}else D["additionalProp"+e]=r;F++}}}return D}if("array"===y){if(!C)return;let n;var W,H;if(s)C.xml=C.xml||(null===(W=e)||void 0===W?void 0:W.xml)||{},C.xml.name=C.xml.name||g.name;if(c()(C.anyOf))n=E()(H=C.anyOf).call(H,(e=>$(J(C,e,t),t,void 0,s)));else if(c()(C.oneOf)){var G;n=E()(G=C.oneOf).call(G,(e=>$(J(C,e,t),t,void 0,s)))}else{if(!(!s||s&&g.wrapped))return $(C,t,void 0,s);n=[$(C,t,void 0,s)]}return n=L(n),s&&g.wrapped?(D[_]=n,O()(d)||D[_].push({_attr:d}),D):n}let Z;if(e&&c()(e.enum))Z=(0,k.AF)(e.enum)[0];else{if(!e)return;if(Z=P(e),"number"==typeof Z){let t=e.minimum;null!=t&&(e.exclusiveMinimum&&t++,Z=t);let n=e.maximum;null!=n&&(e.exclusiveMaximum&&n--,Z=n)}if("string"==typeof Z&&(null!==e.maxLength&&void 0!==e.maxLength&&(Z=h()(Z).call(Z,0,e.maxLength)),null!==e.minLength&&void 0!==e.minLength)){let t=0;for(;Z.length<e.minLength;)Z+=Z[t++%Z.length]}}if("file"!==y)return s?(D[_]=O()(d)?Z:[{_attr:d},Z],D):Z},K=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),L=(e,t,n)=>{const s=$(e,t,n,!0);if(s)return"string"==typeof s?s:b()(s,{declaration:!0,indent:"\t"})},V=(e,t,n)=>$(e,t,n,!1),U=(e,t,n)=>[e,w()(t),w()(n)],F=(0,A.Z)(L,U),z=(0,A.Z)(V,U)},8883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var s=n(9812),r=n(2846),a=n(9431),o=n(1169),l=n(6132);const c=e=>{let{getSystem:t}=e;return{fn:{inferSchema:s.inferSchema,sampleFromSchema:s.sampleFromSchema,sampleFromSchemaGeneric:s.sampleFromSchemaGeneric,createXMLExample:s.createXMLExample,memoizedSampleFromSchema:s.memoizedSampleFromSchema,memoizedCreateXMLExample:s.memoizedCreateXMLExample,getJsonSampleSchema:(0,r.default)(t),getYamlSampleSchema:(0,a.default)(t),getXmlSampleSchema:(0,o.default)(t),getSampleSchema:(0,l.default)(t)}}}},7080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLEAR_REQUEST:()=>te,CLEAR_RESPONSE:()=>ee,CLEAR_VALIDATE_PARAMS:()=>ne,LOG_REQUEST:()=>Q,SET_MUTATED_REQUEST:()=>Y,SET_REQUEST:()=>X,SET_RESPONSE:()=>Z,SET_SCHEME:()=>oe,UPDATE_EMPTY_PARAM_INCLUSION:()=>H,UPDATE_JSON:()=>B,UPDATE_OPERATION_META_VALUE:()=>se,UPDATE_PARAM:()=>W,UPDATE_RESOLVED:()=>re,UPDATE_RESOLVED_SUBTREE:()=>ae,UPDATE_SPEC:()=>F,UPDATE_URL:()=>z,VALIDATE_PARAMS:()=>G,changeConsumesValue:()=>je,changeParam:()=>Se,changeParamByIdentity:()=>ve,changeProducesValue:()=>_e,clearRequest:()=>Re,clearResponse:()=>qe,clearValidateParams:()=>be,execute:()=>Pe,executeRequest:()=>Ie,invalidateResolvedSubtreeCache:()=>xe,logRequest:()=>Ae,parseToJson:()=>me,requestResolvedSubtree:()=>ye,resolveSpec:()=>he,setMutatedRequest:()=>ke,setRequest:()=>Oe,setResponse:()=>Ne,setScheme:()=>Te,updateEmptyParamInclusion:()=>Ce,updateJsonSpec:()=>pe,updateResolved:()=>ie,updateResolvedSubtree:()=>Ee,updateSpec:()=>ce,updateUrl:()=>ue,validateParams:()=>we});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a);const l=require("@babel/runtime-corejs3/core-js-stable/object/define-property");var c=n.n(l),i=n(66),u=n.n(i),p=n(7834),m=n.n(p);const d=require("@babel/runtime-corejs3/core-js-stable/promise");var h=n.n(d),g=n(9998),f=n.n(g),y=n(9968),S=n.n(y),v=n(8493),E=n.n(v),x=n(4235),w=n.n(x),C=n(7252),b=n.n(C),j=n(4994),_=n.n(j);const N=require("@babel/runtime-corejs3/core-js-stable/date/now");var O=n.n(N),k=n(9793),A=n.n(k),I=n(5572),P=n(3883),q=n.n(P),R=n(41);const T=require("lodash/isString");var M=n.n(T);const D=require("lodash/debounce");var J=n.n(D);const $=require("lodash/set");var K=n.n($);const L=require("lodash/fp/assocPath");var V=n.n(L),U=n(1669);const F="spec_update_spec",z="spec_update_url",B="spec_update_json",W="spec_update_param",H="spec_update_empty_param_inclusion",G="spec_validate_param",Z="spec_set_response",X="spec_set_request",Y="spec_set_mutated_request",Q="spec_log_request",ee="spec_clear_response",te="spec_clear_request",ne="spec_clear_validate_param",se="spec_update_operation_meta_value",re="spec_update_resolved",ae="spec_update_resolved_subtree",oe="set_scheme",le=e=>M()(e)?e:"";function ce(e){const t=le(e).replace(/\t/g," ");if("string"==typeof e)return{type:F,payload:t}}function ie(e){return{type:re,payload:e}}function ue(e){return{type:z,payload:e}}function pe(e){return{type:B,payload:e}}const me=e=>t=>{let{specActions:n,specSelectors:s,errActions:r}=t,{specStr:a}=s,o=null;try{e=e||a(),r.clear({source:"parser"}),o=A().load(e,{schema:k.JSON_SCHEMA})}catch(e){return console.error(e),r.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return o&&"object"==typeof o?n.updateJsonSpec(o):{}};let de=!1;const he=(e,t)=>n=>{let{specActions:s,specSelectors:a,errActions:l,fn:{fetch:i,resolve:u,AST:p={}},getConfigs:m}=n;de||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),de=!0);const{modelPropertyMacro:d,parameterMacro:h,requestInterceptor:g,responseInterceptor:f}=m();void 0===e&&(e=a.specJson()),void 0===t&&(t=a.url());let y=p.getLineNumberForPath?p.getLineNumberForPath:()=>{},S=a.specStr();return u({fetch:i,spec:e,baseDoc:t,modelPropertyMacro:d,parameterMacro:h,requestInterceptor:g,responseInterceptor:f}).then((e=>{let{spec:t,errors:n}=e;if(l.clear({type:"thrown"}),r()(n)&&n.length>0){let e=o()(n).call(n,(e=>(console.error(e),e.line=e.fullPath?y(S,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",c()(e,"message",{enumerable:!0,value:e.message}),e)));l.newThrownErrBatch(e)}return s.updateResolved(t)}))};let ge=[];const fe=J()((async()=>{const e=ge.system;if(!e)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");const{errActions:t,errSelectors:n,fn:{resolveSubtree:s,fetch:a,AST:l={}},specSelectors:i,specActions:p}=e;if(!s)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");let d=l.getLineNumberForPath?l.getLineNumberForPath:()=>{};const g=i.specStr(),{modelPropertyMacro:y,parameterMacro:v,requestInterceptor:E,responseInterceptor:x}=e.getConfigs();try{var w=await u()(ge).call(ge,(async(e,l)=>{let{resultMap:u,specWithCurrentSubtrees:p}=await e;const{errors:w,spec:C}=await s(p,l,{baseDoc:i.url(),modelPropertyMacro:y,parameterMacro:v,requestInterceptor:E,responseInterceptor:x});if(n.allErrors().size&&t.clearBy((e=>{var t;return"thrown"!==e.get("type")||"resolver"!==e.get("source")||!m()(t=e.get("fullPath")).call(t,((e,t)=>e===l[t]||void 0===l[t]))})),r()(w)&&w.length>0){let e=o()(w).call(w,(e=>(e.line=e.fullPath?d(g,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",c()(e,"message",{enumerable:!0,value:e.message}),e)));t.newThrownErrBatch(e)}var b,j;C&&i.isOAS3()&&"components"===l[0]&&"securitySchemes"===l[1]&&await h().all(o()(b=f()(j=S()(C)).call(j,(e=>"openIdConnect"===e.type))).call(b,(async e=>{const t={url:e.openIdConnectUrl,requestInterceptor:E,responseInterceptor:x};try{const n=await a(t);n instanceof Error||n.status>=400?console.error(n.statusText+" "+t.url):e.openIdConnectData=JSON.parse(n.text)}catch(e){console.error(e)}})));return K()(u,l,C),p=V()(l,C,p),{resultMap:u,specWithCurrentSubtrees:p}}),h().resolve({resultMap:(i.specResolvedSubtree([])||(0,I.Map)()).toJS(),specWithCurrentSubtrees:i.specJS()}));delete ge.system,ge=[]}catch(e){console.error(e)}p.updateResolvedSubtree([],w.resultMap)}),35),ye=e=>t=>{var n;E()(n=o()(ge).call(ge,(e=>e.join("@@")))).call(n,e.join("@@"))>-1||(ge.push(e),ge.system=t,fe())};function Se(e,t,n,s,r){return{type:W,payload:{path:e,value:s,paramName:t,paramIn:n,isXml:r}}}function ve(e,t,n,s){return{type:W,payload:{path:e,param:t,value:n,isXml:s}}}const Ee=(e,t)=>({type:ae,payload:{path:e,value:t}}),xe=()=>({type:ae,payload:{path:[],value:(0,I.Map)()}}),we=(e,t)=>({type:G,payload:{pathMethod:e,isOAS3:t}}),Ce=(e,t,n,s)=>({type:H,payload:{pathMethod:e,paramName:t,paramIn:n,includeEmptyValue:s}});function be(e){return{type:ne,payload:{pathMethod:e}}}function je(e,t){return{type:se,payload:{path:e,value:t,key:"consumes_value"}}}function _e(e,t){return{type:se,payload:{path:e,value:t,key:"produces_value"}}}const Ne=(e,t,n)=>({payload:{path:e,method:t,res:n},type:Z}),Oe=(e,t,n)=>({payload:{path:e,method:t,req:n},type:X}),ke=(e,t,n)=>({payload:{path:e,method:t,req:n},type:Y}),Ae=e=>({payload:e,type:Q}),Ie=e=>t=>{let{fn:n,specActions:s,specSelectors:a,getConfigs:l,oas3Selectors:c}=t,{pathName:i,method:u,operation:p}=e,{requestInterceptor:m,responseInterceptor:d}=l(),h=p.toJS();var g,y;p&&p.get("parameters")&&w()(g=f()(y=p.get("parameters")).call(y,(e=>e&&!0===e.get("allowEmptyValue")))).call(g,(t=>{if(a.parameterInclusionSettingFor([i,u],t.get("name"),t.get("in"))){e.parameters=e.parameters||{};const n=(0,U.cz)(t,e.parameters);(!n||n&&0===n.size)&&(e.parameters[t.get("name")]="")}}));if(e.contextUrl=q()(a.url()).toString(),h&&h.operationId?e.operationId=h.operationId:h&&i&&u&&(e.operationId=n.opId(h,i,u)),a.isOAS3()){const t=`${i}:${u}`;e.server=c.selectedServer(t)||c.selectedServer();const n=c.serverVariables({server:e.server,namespace:t}).toJS(),s=c.serverVariables({server:e.server}).toJS();e.serverVariables=b()(n).length?n:s,e.requestContentType=c.requestContentType(i,u),e.responseContentType=c.responseContentType(i,u)||"*/*";const a=c.requestBodyValue(i,u),l=c.requestBodyInclusionSetting(i,u);var S;if(a&&a.toJS)e.requestBody=f()(S=o()(a).call(a,(e=>I.Map.isMap(e)?e.get("value"):e))).call(S,((e,t)=>(r()(e)?0!==e.length:!(0,U.O2)(e))||l.get(t))).toJS();else e.requestBody=a}let v=_()({},e);v=n.buildRequest(v),s.setRequest(e.pathName,e.method,v);e.requestInterceptor=async t=>{let n=await m.apply(void 0,[t]),r=_()({},n);return s.setMutatedRequest(e.pathName,e.method,r),n},e.responseInterceptor=d;const E=O()();return n.execute(e).then((t=>{t.duration=O()()-E,s.setResponse(e.pathName,e.method,t)})).catch((t=>{"Failed to fetch"===t.message&&(t.name="",t.message='**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.'),s.setResponse(e.pathName,e.method,{error:!0,err:(0,R.serializeError)(t)})}))},Pe=function(){let{path:e,method:t,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s=>{let{fn:{fetch:r},specSelectors:a,specActions:o}=s,l=a.specJsonWithResolvedSubtrees().toJS(),c=a.operationScheme(e,t),{requestContentType:i,responseContentType:u}=a.contentTypeValues([e,t]).toJS(),p=/xml/i.test(i),m=a.parameterValues([e,t],p).toJS();return o.executeRequest({...n,fetch:r,spec:l,pathName:e,method:t,parameters:m,requestContentType:i,scheme:c,responseContentType:u})}};function qe(e,t){return{type:ee,payload:{path:e,method:t}}}function Re(e,t){return{type:te,payload:{path:e,method:t}}}function Te(e,t,n){return{type:oe,payload:{scheme:e,path:t,method:n}}}},7038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var s=n(32),r=n(7080),a=n(3881),o=n(7508);function l(){return{statePlugins:{spec:{wrapActions:o,reducers:s.default,actions:r,selectors:a}}}}},32:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(66),r=n.n(s),a=n(3942),o=n.n(a),l=n(4994),c=n.n(l),i=n(5572),u=n(1669),p=n(7504),m=n(3881),d=n(7080);const h={[d.UPDATE_SPEC]:(e,t)=>"string"==typeof t.payload?e.set("spec",t.payload):e,[d.UPDATE_URL]:(e,t)=>e.set("url",t.payload+""),[d.UPDATE_JSON]:(e,t)=>e.set("json",(0,u.oG)(t.payload)),[d.UPDATE_RESOLVED]:(e,t)=>e.setIn(["resolved"],(0,u.oG)(t.payload)),[d.UPDATE_RESOLVED_SUBTREE]:(e,t)=>{const{value:n,path:s}=t.payload;return e.setIn(["resolvedSubtrees",...s],(0,u.oG)(n))},[d.UPDATE_PARAM]:(e,t)=>{let{payload:n}=t,{path:s,paramName:r,paramIn:a,param:o,value:l,isXml:c}=n,i=o?(0,u.V9)(o):`${a}.${r}`;const p=c?"value_xml":"value";return e.setIn(["meta","paths",...s,"parameters",i,p],l)},[d.UPDATE_EMPTY_PARAM_INCLUSION]:(e,t)=>{let{payload:n}=t,{pathMethod:s,paramName:r,paramIn:a,includeEmptyValue:o}=n;if(!r||!a)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const l=`${a}.${r}`;return e.setIn(["meta","paths",...s,"parameter_inclusions",l],o)},[d.VALIDATE_PARAMS]:(e,t)=>{let{payload:{pathMethod:n,isOAS3:s}}=t;const a=(0,m.specJsonWithResolvedSubtrees)(e).getIn(["paths",...n]),o=(0,m.parameterValues)(e,n).toJS();return e.updateIn(["meta","paths",...n,"parameters"],(0,i.fromJS)({}),(t=>{var l;return r()(l=a.get("parameters",(0,i.List)())).call(l,((t,r)=>{const a=(0,u.cz)(r,o),l=(0,m.parameterInclusionSettingFor)(e,n,r.get("name"),r.get("in")),c=(0,u.Ik)(r,a,{bypassRequiredCheck:l,isOAS3:s});return t.setIn([(0,u.V9)(r),"errors"],(0,i.fromJS)(c))}),t)}))},[d.CLEAR_VALIDATE_PARAMS]:(e,t)=>{let{payload:{pathMethod:n}}=t;return e.updateIn(["meta","paths",...n,"parameters"],(0,i.fromJS)([]),(e=>o()(e).call(e,(e=>e.set("errors",(0,i.fromJS)([]))))))},[d.SET_RESPONSE]:(e,t)=>{let n,{payload:{res:s,path:r,method:a}}=t;n=s.error?c()({error:!0,name:s.err.name,message:s.err.message,statusCode:s.err.statusCode},s.err.response):s,n.headers=n.headers||{};let o=e.setIn(["responses",r,a],(0,u.oG)(n));return p.Z.Blob&&s.data instanceof p.Z.Blob&&(o=o.setIn(["responses",r,a,"text"],s.data)),o},[d.SET_REQUEST]:(e,t)=>{let{payload:{req:n,path:s,method:r}}=t;return e.setIn(["requests",s,r],(0,u.oG)(n))},[d.SET_MUTATED_REQUEST]:(e,t)=>{let{payload:{req:n,path:s,method:r}}=t;return e.setIn(["mutatedRequests",s,r],(0,u.oG)(n))},[d.UPDATE_OPERATION_META_VALUE]:(e,t)=>{let{payload:{path:n,value:s,key:r}}=t,a=["paths",...n],o=["meta","paths",...n];return e.getIn(["json",...a])||e.getIn(["resolved",...a])||e.getIn(["resolvedSubtrees",...a])?e.setIn([...o,r],(0,i.fromJS)(s)):e},[d.CLEAR_RESPONSE]:(e,t)=>{let{payload:{path:n,method:s}}=t;return e.deleteIn(["responses",n,s])},[d.CLEAR_REQUEST]:(e,t)=>{let{payload:{path:n,method:s}}=t;return e.deleteIn(["requests",n,s])},[d.SET_SCHEME]:(e,t)=>{let{payload:{scheme:n,path:s,method:r}}=t;return s&&r?e.setIn(["scheme",s,r],n):s||r?void 0:e.setIn(["scheme","_defaultScheme"],n)}}},3881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allowTryItOutFor:()=>de,basePath:()=>Q,canExecuteScheme:()=>Oe,consumes:()=>W,consumesOptionsFor:()=>_e,contentTypeValues:()=>Ce,currentProducesFor:()=>be,definitions:()=>Y,externalDocs:()=>L,findDefinition:()=>X,getOAS3RequiredRequestBodyContentType:()=>Ie,getParameter:()=>Se,hasHost:()=>ve,host:()=>ee,info:()=>K,isMediaTypeSchemaPropertiesEqual:()=>Pe,isOAS3:()=>$,lastError:()=>O,mutatedRequestFor:()=>me,mutatedRequests:()=>ie,operationScheme:()=>Ne,operationWithMeta:()=>ye,operations:()=>B,operationsWithRootInherited:()=>ne,operationsWithTags:()=>ae,parameterInclusionSettingFor:()=>ge,parameterValues:()=>Ee,parameterWithMeta:()=>fe,parameterWithMetaByIdentity:()=>he,parametersIncludeIn:()=>xe,parametersIncludeType:()=>we,paths:()=>F,produces:()=>H,producesOptionsFor:()=>je,requestFor:()=>pe,requests:()=>ce,responseFor:()=>ue,responses:()=>le,schemes:()=>te,security:()=>G,securityDefinitions:()=>Z,semver:()=>U,spec:()=>J,specJS:()=>q,specJson:()=>P,specJsonWithResolvedSubtrees:()=>D,specResolved:()=>R,specResolvedSubtree:()=>T,specSource:()=>I,specStr:()=>A,tagDetails:()=>re,taggedOperations:()=>oe,tags:()=>se,url:()=>k,validOperationMethods:()=>z,validateBeforeExecute:()=>Ae,validationErrors:()=>ke,version:()=>V});var s=n(600),r=n.n(s),a=n(4235),o=n.n(a),l=n(8493),c=n.n(l),i=n(3942),u=n.n(i),p=n(9998),m=n.n(p),d=n(3580),h=n.n(d),g=n(66),f=n.n(g),y=n(9247),S=n.n(y),v=n(5626),E=n.n(v),x=n(7104),w=n.n(x),C=n(6814),b=n(1669),j=n(5572);const _=["get","put","post","delete","options","head","patch","trace"],N=e=>e||(0,j.Map)(),O=(0,C.createSelector)(N,(e=>e.get("lastError"))),k=(0,C.createSelector)(N,(e=>e.get("url"))),A=(0,C.createSelector)(N,(e=>e.get("spec")||"")),I=(0,C.createSelector)(N,(e=>e.get("specSource")||"not-editor")),P=(0,C.createSelector)(N,(e=>e.get("json",(0,j.Map)()))),q=(0,C.createSelector)(P,(e=>e.toJS())),R=(0,C.createSelector)(N,(e=>e.get("resolved",(0,j.Map)()))),T=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),M=(e,t)=>j.Map.isMap(e)&&j.Map.isMap(t)?t.get("$$ref")?t:(0,j.OrderedMap)().mergeWith(M,e,t):t,D=(0,C.createSelector)(N,(e=>(0,j.OrderedMap)().mergeWith(M,e.get("json"),e.get("resolvedSubtrees")))),J=e=>P(e),$=(0,C.createSelector)(J,(()=>!1)),K=(0,C.createSelector)(J,(e=>qe(e&&e.get("info")))),L=(0,C.createSelector)(J,(e=>qe(e&&e.get("externalDocs")))),V=(0,C.createSelector)(K,(e=>e&&e.get("version"))),U=(0,C.createSelector)(V,(e=>{var t;return r()(t=/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e)).call(t,1)})),F=(0,C.createSelector)(D,(e=>e.get("paths"))),z=(0,C.createSelector)((()=>["get","put","post","delete","options","head","patch"])),B=(0,C.createSelector)(F,(e=>{if(!e||e.size<1)return(0,j.List)();let t=(0,j.List)();return e&&o()(e)?(o()(e).call(e,((e,n)=>{if(!e||!o()(e))return{};o()(e).call(e,((e,s)=>{c()(_).call(_,s)<0||(t=t.push((0,j.fromJS)({path:n,method:s,operation:e,id:`${s}-${n}`})))}))})),t):(0,j.List)()})),W=(0,C.createSelector)(J,(e=>(0,j.Set)(e.get("consumes")))),H=(0,C.createSelector)(J,(e=>(0,j.Set)(e.get("produces")))),G=(0,C.createSelector)(J,(e=>e.get("security",(0,j.List)()))),Z=(0,C.createSelector)(J,(e=>e.get("securityDefinitions"))),X=(e,t)=>{const n=e.getIn(["resolvedSubtrees","definitions",t],null),s=e.getIn(["json","definitions",t],null);return n||s||null},Y=(0,C.createSelector)(J,(e=>{const t=e.get("definitions");return j.Map.isMap(t)?t:(0,j.Map)()})),Q=(0,C.createSelector)(J,(e=>e.get("basePath"))),ee=(0,C.createSelector)(J,(e=>e.get("host"))),te=(0,C.createSelector)(J,(e=>e.get("schemes",(0,j.Map)()))),ne=(0,C.createSelector)(B,W,H,((e,t,n)=>u()(e).call(e,(e=>e.update("operation",(e=>{if(e){if(!j.Map.isMap(e))return;return e.withMutations((e=>(e.get("consumes")||e.update("consumes",(e=>(0,j.Set)(e).merge(t))),e.get("produces")||e.update("produces",(e=>(0,j.Set)(e).merge(n))),e)))}return(0,j.Map)()})))))),se=(0,C.createSelector)(J,(e=>{const t=e.get("tags",(0,j.List)());return j.List.isList(t)?m()(t).call(t,(e=>j.Map.isMap(e))):(0,j.List)()})),re=(e,t)=>{var n;let s=se(e)||(0,j.List)();return h()(n=m()(s).call(s,j.Map.isMap)).call(n,(e=>e.get("name")===t),(0,j.Map)())},ae=(0,C.createSelector)(ne,se,((e,t)=>f()(e).call(e,((e,t)=>{let n=(0,j.Set)(t.getIn(["operation","tags"]));return n.count()<1?e.update("default",(0,j.List)(),(e=>e.push(t))):f()(n).call(n,((e,n)=>e.update(n,(0,j.List)(),(e=>e.push(t)))),e)}),f()(t).call(t,((e,t)=>e.set(t.get("name"),(0,j.List)())),(0,j.OrderedMap)())))),oe=e=>t=>{var n;let{getConfigs:s}=t,{tagsSorter:r,operationsSorter:a}=s();return u()(n=ae(e).sortBy(((e,t)=>t),((e,t)=>{let n="function"==typeof r?r:b.wh.tagsSorter[r];return n?n(e,t):null}))).call(n,((t,n)=>{let s="function"==typeof a?a:b.wh.operationsSorter[a],r=s?S()(t).call(t,s):t;return(0,j.Map)({tagDetails:re(e,n),operations:r})}))},le=(0,C.createSelector)(N,(e=>e.get("responses",(0,j.Map)()))),ce=(0,C.createSelector)(N,(e=>e.get("requests",(0,j.Map)()))),ie=(0,C.createSelector)(N,(e=>e.get("mutatedRequests",(0,j.Map)()))),ue=(e,t,n)=>le(e).getIn([t,n],null),pe=(e,t,n)=>ce(e).getIn([t,n],null),me=(e,t,n)=>ie(e).getIn([t,n],null),de=()=>!0,he=(e,t,n)=>{const s=D(e).getIn(["paths",...t,"parameters"],(0,j.OrderedMap)()),r=e.getIn(["meta","paths",...t,"parameters"],(0,j.OrderedMap)()),a=u()(s).call(s,(e=>{const t=r.get(`${n.get("in")}.${n.get("name")}`),s=r.get(`${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}`);return(0,j.OrderedMap)().merge(e,t,s)}));return h()(a).call(a,(e=>e.get("in")===n.get("in")&&e.get("name")===n.get("name")),(0,j.OrderedMap)())},ge=(e,t,n,s)=>{const r=`${s}.${n}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",r],!1)},fe=(e,t,n,s)=>{const r=D(e).getIn(["paths",...t,"parameters"],(0,j.OrderedMap)()),a=h()(r).call(r,(e=>e.get("in")===s&&e.get("name")===n),(0,j.OrderedMap)());return he(e,t,a)},ye=(e,t,n)=>{var s;const r=D(e).getIn(["paths",t,n],(0,j.OrderedMap)()),a=e.getIn(["meta","paths",t,n],(0,j.OrderedMap)()),o=u()(s=r.get("parameters",(0,j.List)())).call(s,(s=>he(e,[t,n],s)));return(0,j.OrderedMap)().merge(r,a).set("parameters",o)};function Se(e,t,n,s){t=t||[];let r=e.getIn(["meta","paths",...t,"parameters"],(0,j.fromJS)([]));return h()(r).call(r,(e=>j.Map.isMap(e)&&e.get("name")===n&&e.get("in")===s))||(0,j.Map)()}const ve=(0,C.createSelector)(J,(e=>{const t=e.get("host");return"string"==typeof t&&t.length>0&&"/"!==t[0]}));function Ee(e,t,n){t=t||[];let s=ye(e,...t).get("parameters",(0,j.List)());return f()(s).call(s,((e,t)=>{let s=n&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set((0,b.V9)(t,{allowHashes:!1}),s)}),(0,j.fromJS)({}))}function xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(j.List.isList(e))return E()(e).call(e,(e=>j.Map.isMap(e)&&e.get("in")===t))}function we(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(j.List.isList(e))return E()(e).call(e,(e=>j.Map.isMap(e)&&e.get("type")===t))}function Ce(e,t){t=t||[];let n=D(e).getIn(["paths",...t],(0,j.fromJS)({})),s=e.getIn(["meta","paths",...t],(0,j.fromJS)({})),r=be(e,t);const a=n.get("parameters")||new j.List,o=s.get("consumes_value")?s.get("consumes_value"):we(a,"file")?"multipart/form-data":we(a,"formData")?"application/x-www-form-urlencoded":void 0;return(0,j.fromJS)({requestContentType:o,responseContentType:r})}function be(e,t){t=t||[];const n=D(e).getIn(["paths",...t],null);if(null===n)return;const s=e.getIn(["meta","paths",...t,"produces_value"],null),r=n.getIn(["produces",0],null);return s||r||"application/json"}function je(e,t){t=t||[];const n=D(e),s=n.getIn(["paths",...t],null);if(null===s)return;const[r]=t,a=s.get("produces",null),o=n.getIn(["paths",r,"produces"],null),l=n.getIn(["produces"],null);return a||o||l}function _e(e,t){t=t||[];const n=D(e),s=n.getIn(["paths",...t],null);if(null===s)return;const[r]=t,a=s.get("consumes",null),o=n.getIn(["paths",r,"consumes"],null),l=n.getIn(["consumes"],null);return a||o||l}const Ne=(e,t,n)=>{let s=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),r=w()(s)?s[1]:null;return e.getIn(["scheme",t,n])||e.getIn(["scheme","_defaultScheme"])||r||""},Oe=(e,t,n)=>{var s;return c()(s=["http","https"]).call(s,Ne(e,t,n))>-1},ke=(e,t)=>{t=t||[];let n=e.getIn(["meta","paths",...t,"parameters"],(0,j.fromJS)([]));const s=[];return o()(n).call(n,(e=>{let t=e.get("errors");t&&t.count()&&o()(t).call(t,(e=>s.push(e)))})),s},Ae=(e,t)=>0===ke(e,t).length,Ie=(e,t)=>{var n;let s={requestBody:!1,requestContentType:{}},r=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,j.fromJS)([]));return r.size<1||(r.getIn(["required"])&&(s.requestBody=r.getIn(["required"])),o()(n=r.getIn(["content"]).entrySeq()).call(n,(e=>{const t=e[0];if(e[1].getIn(["schema","required"])){const n=e[1].getIn(["schema","required"]).toJS();s.requestContentType[t]=n}}))),s},Pe=(e,t,n,s)=>{if((n||s)&&n===s)return!0;let r=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,j.fromJS)([]));if(r.size<2||!n||!s)return!1;let a=r.getIn([n,"schema","properties"],(0,j.fromJS)([])),o=r.getIn([s,"schema","properties"],(0,j.fromJS)([]));return!!a.equals(o)};function qe(e){return j.Map.isMap(e)?e:new j.Map}},7508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{executeRequest:()=>p,updateJsonSpec:()=>u,updateSpec:()=>i,validateParams:()=>m});var s=n(7252),r=n.n(s),a=n(4235),o=n.n(a),l=n(1712),c=n.n(l);const i=(e,t)=>{let{specActions:n}=t;return function(){e(...arguments),n.parseToJson(...arguments)}},u=(e,t)=>{let{specActions:n}=t;return function(){for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];e(...s),n.invalidateResolvedSubtreeCache();const[l]=s,i=c()(l,["paths"])||{},u=r()(i);o()(u).call(u,(e=>{c()(i,[e]).$ref&&n.requestResolvedSubtree(["paths",e])})),n.requestResolvedSubtree(["components","securitySchemes"])}},p=(e,t)=>{let{specActions:n}=t;return t=>(n.logRequest(t),e(t))},m=(e,t)=>{let{specSelectors:n}=t;return t=>e(t,n.isOAS3())}},4852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loaded:()=>s});const s=(e,t)=>function(){e(...arguments);const n=t.getConfigs().withCredentials;void 0!==n&&(t.fn.fetch.withCredentials="string"==typeof n?"true"===n:!!n)}},1241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});const s=require("swagger-client/es/resolver/strategies/generic");var r=n.n(s);const a=require("swagger-client/es/resolver/strategies/openapi-2");var o=n.n(a);const l=require("swagger-client/es/resolver/strategies/openapi-3-0");var c=n.n(l);const i=require("swagger-client/es/resolver/strategies/openapi-3-1-apidom");var u=n.n(i);const p=require("swagger-client/es/resolver"),m=require("swagger-client/es/execute"),d=require("swagger-client/es/http");var h=n.n(d);const g=require("swagger-client/es/subtree-resolver");var f=n(6765),y=n(4852);function S(e){let{configs:t,getConfigs:n}=e;return{fn:{fetch:(0,d.makeHttp)(h(),t.preFetch,t.postFetch),buildRequest:m.buildRequest,execute:m.execute,resolve:(0,p.makeResolve)({strategies:[u(),c(),o(),r()]}),resolveSubtree:async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=n(),l={modelPropertyMacro:a.modelPropertyMacro,parameterMacro:a.parameterMacro,requestInterceptor:a.requestInterceptor,responseInterceptor:a.responseInterceptor,strategies:[u(),c(),o(),r()]};return(0,g.makeResolveSubtree)(l)(e,t,s)},serializeRes:d.serializeRes,opId:f.opId},statePlugins:{configs:{wrapActions:{loaded:y.loaded}}}}}},8525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var s=n(1669);function r(){return{fn:{shallowEqualKeys:s.be}}}},8347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDisplayName:()=>s});const s=e=>e.displayName||e.name||"Component"},3420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(8344),r=n.n(s),a=n(1669),o=n(6194),l=n(8347),c=n(7481);const i=e=>{let{getComponents:t,getStore:n,getSystem:s}=e;const i=(u=(0,o.getComponent)(s,n,t),(0,a.HP)(u,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r()(t)})));var u;const p=(e=>(0,c.Z)(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t})))((0,o.withMappedContainer)(s,n,i));return{rootInjects:{getComponent:i,makeMappedContainer:p,render:(0,o.render)(s,n,o.getComponent,t)},fn:{getDisplayName:l.getDisplayName}}}},6194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getComponent:()=>C,render:()=>w,withMappedContainer:()=>x});var s=n(4250),r=n.n(s),a=n(7252),o=n.n(a),l=n(6689),c=n.n(l);const i=require("react-dom");var u=n.n(i),p=n(6695);const m=require("react-redux"),d=require("lodash/omit");var h=n.n(d),g=n(4292),f=n.n(g);const y=e=>t=>{const{fn:n}=e();class s extends l.Component{render(){return c().createElement(t,r()({},e(),this.props,this.context))}}return s.displayName=`WithSystem(${n.getDisplayName(t)})`,s},S=(e,t)=>n=>{const{fn:s}=e();class a extends l.Component{render(){return c().createElement(m.Provider,{store:t},c().createElement(n,r()({},this.props,this.context)))}}return a.displayName=`WithRoot(${s.getDisplayName(n)})`,a},v=(e,t,n)=>(0,p.compose)(n?S(e,n):f(),(0,m.connect)(((n,s)=>{var r;const a={...s,...e()},o=(null===(r=t.prototype)||void 0===r?void 0:r.mapStateToProps)||(e=>({state:e}));return o(n,a)})),y(e))(t),E=(e,t,n,s)=>{for(const r in t){const a=t[r];"function"==typeof a&&a(n[r],s[r],e())}},x=(e,t,n)=>(t,s)=>{const{fn:r}=e(),a=n(t,"root");class i extends l.Component{constructor(t,n){super(t,n),E(e,s,t,{})}UNSAFE_componentWillReceiveProps(t){E(e,s,t,this.props)}render(){const e=h()(this.props,s?o()(s):[]);return c().createElement(a,e)}}return i.displayName=`WithMappedContainer(${r.getDisplayName(a)})`,i},w=(e,t,n,s)=>r=>{const a=n(e,t,s)("App","root");u().render(c().createElement(a,null),r)},C=(e,t,n)=>function(s,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof s)throw new TypeError("Need a string, to fetch a component. Was given a "+typeof s);const o=n(s);return o?r?"root"===r?v(e,o,t()):v(e,o):o:(a.failSilently||e().log.warn("Could not find component:",s),null)}},6068:(e,t,n)=>{"use strict";n.d(t,{d3:()=>c(),C2:()=>D});var s=n(7252),r=n.n(s),a=n(2605),o=n.n(a);const l=require("react-syntax-highlighter/dist/esm/light");var c=n.n(l);const i=require("react-syntax-highlighter/dist/esm/languages/hljs/javascript");var u=n.n(i);const p=require("react-syntax-highlighter/dist/esm/languages/hljs/json");var m=n.n(p);const d=require("react-syntax-highlighter/dist/esm/languages/hljs/xml");var h=n.n(d);const g=require("react-syntax-highlighter/dist/esm/languages/hljs/bash");var f=n.n(g);const y=require("react-syntax-highlighter/dist/esm/languages/hljs/yaml");var S=n.n(y);const v=require("react-syntax-highlighter/dist/esm/languages/hljs/http");var E=n.n(v);const x=require("react-syntax-highlighter/dist/esm/languages/hljs/powershell");var w=n.n(x);const C=require("react-syntax-highlighter/dist/esm/styles/hljs/agate");var b=n.n(C);const j=require("react-syntax-highlighter/dist/esm/styles/hljs/arta");var _=n.n(j);const N=require("react-syntax-highlighter/dist/esm/styles/hljs/monokai");var O=n.n(N);const k=require("react-syntax-highlighter/dist/esm/styles/hljs/nord");var A=n.n(k);const I=require("react-syntax-highlighter/dist/esm/styles/hljs/obsidian");var P=n.n(I);const q=require("react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night");var R=n.n(q);c().registerLanguage("json",m()),c().registerLanguage("js",u()),c().registerLanguage("xml",h()),c().registerLanguage("yaml",S()),c().registerLanguage("http",E()),c().registerLanguage("bash",f()),c().registerLanguage("powershell",w()),c().registerLanguage("javascript",u());const T={agate:b(),arta:_(),monokai:O(),nord:A(),obsidian:P(),"tomorrow-night":R()},M=r()(T),D=e=>o()(M).call(M,e)?T[e]:(console.warn(`Request style '${e}' is not available, returning default instead`),b())},1669:(e,t,n)=>{"use strict";n.d(t,{r3:()=>Ce,GZ:()=>je,Xb:()=>Ke,oJ:()=>Ae,XV:()=>Re,iQ:()=>fe,J6:()=>Ie,DR:()=>Se,oG:()=>oe,Uj:()=>$e,QG:()=>ke,po:()=>qe,nX:()=>Pe,gp:()=>ye,kJ:()=>pe,O2:()=>Ve,LQ:()=>ce,Wl:()=>ue,Kn:()=>ie,HP:()=>me,AF:()=>le,D$:()=>Me,Ay:()=>de,Q2:()=>he,mz:()=>ae,V9:()=>De,cz:()=>Je,UG:()=>we,Zl:()=>ve,hW:()=>Oe,Nm:()=>Ne,be:()=>_e,wh:()=>be,Pz:()=>Te,_5:()=>ge,Ik:()=>xe});var s=n(7104),r=n.n(s),a=n(3942),o=n.n(a),l=n(7862),c=n.n(l),i=n(4235),u=n.n(i),p=n(9998),m=n.n(p),d=n(7252),h=n.n(d),g=(n(593),n(66)),f=n.n(g),y=n(4994),S=n.n(y),v=n(9247),E=n.n(v),x=(n(600),n(4883),n(5626)),w=n.n(x),C=(n(2605),n(8493)),b=n.n(C),j=n(3580),_=n.n(j);const N=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with");var O=n.n(N),k=n(7390),A=n.n(k),I=n(8344),P=n.n(I),q=n(5572),R=n.n(q);const T=require("@braintree/sanitize-url"),M=require("lodash/camelCase");var D=n.n(M);const J=require("lodash/upperFirst");var $=n.n(J),K=n(541),L=n.n(K);const V=require("lodash/find");var U=n.n(V);n(4129);const F=require("lodash/eq");var z=n.n(F),B=n(5716),W=n.n(B),H=n(7504);const G=require("css.escape");var Z=n.n(G),X=n(9069),Y=n(185),Q=n.n(Y);const ee=require("sha.js");var te=n.n(ee),ne=n(871).Buffer;const se="default",re=e=>R().Iterable.isIterable(e);function ae(e){return ie(e)?re(e)?e.toJS():e:{}}function oe(e){var t,n;if(re(e))return e;if(e instanceof H.Z.File)return e;if(!ie(e))return e;if(r()(e))return o()(n=R().Seq(e)).call(n,oe).toList();if(W()(c()(e))){var s;const t=function(e){if(!W()(c()(e)))return e;const t={},n="_**[]",s={};for(let r of c()(e).call(e))if(t[r[0]]||s[r[0]]&&s[r[0]].containsMultiple){if(!s[r[0]]){s[r[0]]={containsMultiple:!0,length:1},t[`${r[0]}${n}${s[r[0]].length}`]=t[r[0]],delete t[r[0]]}s[r[0]].length+=1,t[`${r[0]}${n}${s[r[0]].length}`]=r[1]}else t[r[0]]=r[1];return t}(e);return o()(s=R().OrderedMap(t)).call(s,oe)}return o()(t=R().OrderedMap(e)).call(t,oe)}function le(e){return r()(e)?e:[e]}function ce(e){return"function"==typeof e}function ie(e){return!!e&&"object"==typeof e}function ue(e){return"function"==typeof e}function pe(e){return r()(e)}const me=L();function de(e,t){var n;return f()(n=h()(e)).call(n,((n,s)=>(n[s]=t(e[s],s),n)),{})}function he(e,t){var n;return f()(n=h()(e)).call(n,((n,s)=>{let r=t(e[s],s);return r&&"object"==typeof r&&S()(n,r),n}),{})}function ge(e){return t=>{let{dispatch:n,getState:s}=t;return t=>n=>"function"==typeof n?n(e()):t(n)}}function fe(e){var t;let n=e.keySeq();return n.contains(se)?se:E()(t=m()(n).call(n,(e=>"2"===(e+"")[0]))).call(t).first()}function ye(e,t){if(!R().Iterable.isIterable(e))return R().List();let n=e.getIn(r()(t)?t:[t]);return R().List.isList(n)?n:R().List()}function Se(e){let t,n=[/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i];if(w()(n).call(n,(n=>(t=n.exec(e),null!==t))),null!==t&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}function ve(e){return t=e.replace(/\.[^./]*$/,""),$()(D()(t));var t}function Ee(e,t,n,s,a){if(!t)return[];let l=[],c=t.get("nullable"),i=t.get("required"),p=t.get("maximum"),d=t.get("minimum"),h=t.get("type"),g=t.get("format"),f=t.get("maxLength"),y=t.get("minLength"),S=t.get("uniqueItems"),v=t.get("maxItems"),E=t.get("minItems"),x=t.get("pattern");const C=n||!0===i,b=null!=e;if(c&&null===e||!h||!(C||b&&"array"===h||!(!C&&!b)))return[];let j="string"===h&&e,_="array"===h&&r()(e)&&e.length,N="array"===h&&R().List.isList(e)&&e.count();const O=[j,_,N,"array"===h&&"string"==typeof e&&e,"file"===h&&e instanceof H.Z.File,"boolean"===h&&(e||!1===e),"number"===h&&(e||0===e),"integer"===h&&(e||0===e),"object"===h&&"object"==typeof e&&null!==e,"object"===h&&"string"==typeof e&&e],k=w()(O).call(O,(e=>!!e));if(C&&!k&&!s)return l.push("Required field is not provided"),l;if("object"===h&&(null===a||"application/json"===a)){let n=e;if("string"==typeof e)try{n=JSON.parse(e)}catch(e){return l.push("Parameter string value must be valid JSON"),l}var A;if(t&&t.has("required")&&ue(i.isList)&&i.isList()&&u()(i).call(i,(e=>{void 0===n[e]&&l.push({propKey:e,error:"Required property not found"})})),t&&t.has("properties"))u()(A=t.get("properties")).call(A,((e,t)=>{const r=Ee(n[t],e,!1,s,a);l.push(...o()(r).call(r,(e=>({propKey:t,error:e}))))}))}if(x){let t=((e,t)=>{if(!new RegExp(t).test(e))return"Value must follow pattern "+t})(e,x);t&&l.push(t)}if(E&&"array"===h){let t=((e,t)=>{if(!e&&t>=1||e&&e.length<t)return`Array must contain at least ${t} item${1===t?"":"s"}`})(e,E);t&&l.push(t)}if(v&&"array"===h){let t=((e,t)=>{if(e&&e.length>t)return`Array must not contain more then ${t} item${1===t?"":"s"}`})(e,v);t&&l.push({needRemove:!0,error:t})}if(S&&"array"===h){let t=((e,t)=>{if(e&&("true"===t||!0===t)){const t=(0,q.fromJS)(e),n=t.toSet();if(e.length>n.size){let e=(0,q.Set)();if(u()(t).call(t,((n,s)=>{m()(t).call(t,(e=>ue(e.equals)?e.equals(n):e===n)).size>1&&(e=e.add(s))})),0!==e.size)return o()(e).call(e,(e=>({index:e,error:"No duplicates allowed."}))).toArray()}}})(e,S);t&&l.push(...t)}if(f||0===f){let t=((e,t)=>{if(e.length>t)return`Value must be no longer than ${t} character${1!==t?"s":""}`})(e,f);t&&l.push(t)}if(y){let t=((e,t)=>{if(e.length<t)return`Value must be at least ${t} character${1!==t?"s":""}`})(e,y);t&&l.push(t)}if(p||0===p){let t=((e,t)=>{if(e>t)return`Value must be less than ${t}`})(e,p);t&&l.push(t)}if(d||0===d){let t=((e,t)=>{if(e<t)return`Value must be greater than ${t}`})(e,d);t&&l.push(t)}if("string"===h){let t;if(t="date-time"===g?(e=>{if(isNaN(Date.parse(e)))return"Value must be a DateTime"})(e):"uuid"===g?(e=>{if(e=e.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))return"Value must be a Guid"})(e):(e=>{if(e&&"string"!=typeof e)return"Value must be a string"})(e),!t)return l;l.push(t)}else if("boolean"===h){let t=(e=>{if("true"!==e&&"false"!==e&&!0!==e&&!1!==e)return"Value must be a boolean"})(e);if(!t)return l;l.push(t)}else if("number"===h){let t=(e=>{if(!/^-?\d+(\.?\d+)?$/.test(e))return"Value must be a number"})(e);if(!t)return l;l.push(t)}else if("integer"===h){let t=(e=>{if(!/^-?\d+$/.test(e))return"Value must be an integer"})(e);if(!t)return l;l.push(t)}else if("array"===h){if(!_&&!N)return l;e&&u()(e).call(e,((e,n)=>{const r=Ee(e,t.get("items"),!1,s,a);l.push(...o()(r).call(r,(e=>({index:n,error:e}))))}))}else if("file"===h){let t=(e=>{if(e&&!(e instanceof H.Z.File))return"Value must be a file"})(e);if(!t)return l;l.push(t)}return l}const xe=function(e,t){let{isOAS3:n=!1,bypassRequiredCheck:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.get("required"),{schema:a,parameterContentMediaType:o}=(0,X.Z)(e,{isOAS3:n});return Ee(t,a,r,s,o)},we=()=>{let e={},t=H.Z.location.search;if(!t)return{};if(""!=t){let n=t.substr(1).split("&");for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(t=n[t].split("="),e[decodeURIComponent(t[0])]=t[1]&&decodeURIComponent(t[1])||"")}return e},Ce=e=>{let t;return t=e instanceof ne?e:ne.from(e.toString(),"utf-8"),t.toString("base64")},be={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},je=e=>{let t=[];for(let n in e){let s=e[n];void 0!==s&&""!==s&&t.push([n,"=",encodeURIComponent(s).replace(/%20/g,"+")].join(""))}return t.join("&")},_e=(e,t,n)=>!!U()(n,(n=>z()(e[n],t[n])));function Ne(e){return"string"!=typeof e||""===e?"":(0,T.sanitizeUrl)(e)}function Oe(e){return!(!e||b()(e).call(e,"localhost")>=0||b()(e).call(e,"127.0.0.1")>=0||"none"===e)}function ke(e){if(!R().OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;const t=_()(e).call(e,((e,t)=>O()(t).call(t,"2")&&h()(e.get("content")||{}).length>0)),n=e.get("default")||R().OrderedMap(),s=(n.get("content")||R().OrderedMap()).keySeq().toJS().length?n:null;return t||s}const Ae=e=>"string"==typeof e||e instanceof String?A()(e).call(e).replace(/\s/g,"%20"):"",Ie=e=>Z()(Ae(e).replace(/%20/g,"_")),Pe=e=>m()(e).call(e,((e,t)=>/^x-/.test(t))),qe=e=>m()(e).call(e,((e,t)=>/^pattern|maxLength|minLength|maximum|minimum/.test(t)));function Re(e,t){var n;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;if("object"!=typeof e||r()(e)||null===e||!t)return e;const a=S()({},e);return u()(n=h()(a)).call(n,(e=>{e===t&&s(a[e],e)?delete a[e]:a[e]=Re(a[e],t,s)})),a}function Te(e){if("string"==typeof e)return e;if(e&&e.toJS&&(e=e.toJS()),"object"==typeof e&&null!==e)try{return P()(e,null,2)}catch(t){return String(e)}return null==e?"":e.toString()}function Me(e){return"number"==typeof e?e.toString():e}function De(e){let{returnAll:t=!1,allowHashes:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!R().Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const s=e.get("name"),r=e.get("in");let a=[];return e&&e.hashCode&&r&&s&&n&&a.push(`${r}.${s}.hash-${e.hashCode()}`),r&&s&&a.push(`${r}.${s}`),a.push(s),t?a:a[0]||""}function Je(e,t){var n;const s=De(e,{returnAll:!0});return m()(n=o()(s).call(s,(e=>t[e]))).call(n,(e=>void 0!==e))[0]}function $e(){return Le(Q()(32).toString("base64"))}function Ke(e){return Le(te()("sha256").update(e).digest("base64"))}function Le(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Ve=e=>!e||!(!re(e)||!e.isEmpty())},2518:(e,t,n)=>{"use strict";function s(e){return function(e){try{return!!JSON.parse(e)}catch(e){return null}}(e)?"json":null}n.d(t,{O:()=>s})},3543:(e,t,n)=>{"use strict";n.d(t,{mn:()=>l});var s=n(9478),r=n.n(s);function a(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function o(e,t){return e?a(e)?(n=e).match(/^\/\//i)?`${window.location.protocol}${n}`:n:new(r())(e,t).href:t;var n}function l(e,t){let{selectedServer:n=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return function(e,t){let{selectedServer:n=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return;if(a(e))return e;const s=o(n,t);return a(s)?new(r())(e,s).href:new(r())(e,window.location.href).href}(e,t,{selectedServer:n})}catch{return}}},7504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const s=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){}};if("undefined"==typeof window)return e;try{e=window;for(var t of["File","Blob","FormData"])t in window&&(e[t]=window[t])}catch(e){console.error(e)}return e}()},9069:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var s=n(9998),r=n.n(s),a=n(2605),o=n.n(a),l=n(5572),c=n.n(l);const i=c().Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function u(e){let{isOAS3:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c().Map.isMap(e))return{schema:c().Map(),parameterContentMediaType:null};if(!t)return"body"===e.get("in")?{schema:e.get("schema",c().Map()),parameterContentMediaType:null}:{schema:r()(e).call(e,((e,t)=>o()(i).call(i,t))),parameterContentMediaType:null};if(e.get("content")){const t=e.get("content",c().Map({})).keySeq().first();return{schema:e.getIn(["content",t,"schema"],c().Map()),parameterContentMediaType:t}}return{schema:e.get("schema")?e.get("schema",c().Map()):c().Map(),parameterContentMediaType:null}}},7481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var s=n(7104),r=n.n(s),a=n(7834),o=n.n(a),l=n(1733),c=n.n(l),i=n(874),u=n.n(i),p=n(3580),m=n.n(p);const d=require("@babel/runtime-corejs3/core-js-stable/instance/find-index");var h=n.n(d),g=n(2611),f=n.n(g),y=n(541),S=n.n(y);const v=e=>t=>r()(e)&&r()(t)&&e.length===t.length&&o()(e).call(e,((e,n)=>e===t[n])),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};class x extends(f()){delete(e){const t=c()(u()(this).call(this)),n=m()(t).call(t,v(e));return super.delete(n)}get(e){const t=c()(u()(this).call(this)),n=m()(t).call(t,v(e));return super.get(n)}has(e){const t=c()(u()(this).call(this));return-1!==h()(t).call(t,v(e))}}const w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E;const{Cache:n}=S();S().Cache=x;const s=S()(e,t);return S().Cache=n,s}},5102:(e,t,n)=>{var s={"./all.js":5308,"./auth/actions.js":5812,"./auth/configs-extensions/wrap-actions.js":3779,"./auth/index.js":3705,"./auth/reducers.js":3962,"./auth/selectors.js":35,"./auth/spec-extensions/wrap-actions.js":489,"./auth/wrap-actions.js":2849,"./configs/actions.js":714,"./configs/helpers.js":2256,"./configs/index.js":6709,"./configs/reducers.js":7743,"./configs/selectors.js":9018,"./configs/spec-actions.js":2698,"./deep-linking/helpers.js":1970,"./deep-linking/index.js":4980,"./deep-linking/layout.js":2179,"./deep-linking/operation-tag-wrapper.jsx":4584,"./deep-linking/operation-wrapper.jsx":877,"./download-url.js":8011,"./err/actions.js":4966,"./err/error-transformers/hook.js":2860,"./err/error-transformers/transformers/not-of-type.js":2392,"./err/error-transformers/transformers/parameter-oneof.js":1835,"./err/index.js":7793,"./err/reducers.js":3527,"./err/selectors.js":7667,"./filter/index.js":9978,"./filter/opsFilter.js":4309,"./json-schema-2020-12/components/Accordion/Accordion.jsx":7349,"./json-schema-2020-12/components/ExpandDeepButton/ExpandDeepButton.jsx":6867,"./json-schema-2020-12/components/JSONSchema/JSONSchema.jsx":2675,"./json-schema-2020-12/components/icons/ChevronRight.jsx":2260,"./json-schema-2020-12/components/keywords/$anchor.jsx":4922,"./json-schema-2020-12/components/keywords/$comment.jsx":4685,"./json-schema-2020-12/components/keywords/$defs.jsx":6418,"./json-schema-2020-12/components/keywords/$dynamicAnchor.jsx":1338,"./json-schema-2020-12/components/keywords/$dynamicRef.jsx":7655,"./json-schema-2020-12/components/keywords/$id.jsx":3460,"./json-schema-2020-12/components/keywords/$ref.jsx":2348,"./json-schema-2020-12/components/keywords/$schema.jsx":9359,"./json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx":7568,"./json-schema-2020-12/components/keywords/AdditionalProperties.jsx":5253,"./json-schema-2020-12/components/keywords/AllOf.jsx":6457,"./json-schema-2020-12/components/keywords/AnyOf.jsx":8776,"./json-schema-2020-12/components/keywords/Const.jsx":7308,"./json-schema-2020-12/components/keywords/Constraint/Constraint.jsx":9956,"./json-schema-2020-12/components/keywords/Contains.jsx":8993,"./json-schema-2020-12/components/keywords/ContentSchema.jsx":3484,"./json-schema-2020-12/components/keywords/Default.jsx":5148,"./json-schema-2020-12/components/keywords/DependentRequired/DependentRequired.jsx":4539,"./json-schema-2020-12/components/keywords/DependentSchemas.jsx":6076,"./json-schema-2020-12/components/keywords/Deprecated.jsx":6661,"./json-schema-2020-12/components/keywords/Description/Description.jsx":9446,"./json-schema-2020-12/components/keywords/Else.jsx":7207,"./json-schema-2020-12/components/keywords/Enum/Enum.jsx":1805,"./json-schema-2020-12/components/keywords/If.jsx":487,"./json-schema-2020-12/components/keywords/Items.jsx":9206,"./json-schema-2020-12/components/keywords/Not.jsx":5174,"./json-schema-2020-12/components/keywords/OneOf.jsx":3834,"./json-schema-2020-12/components/keywords/PatternProperties/PatternProperties.jsx":6746,"./json-schema-2020-12/components/keywords/PrefixItems.jsx":3971,"./json-schema-2020-12/components/keywords/Properties/Properties.jsx":5472,"./json-schema-2020-12/components/keywords/PropertyNames.jsx":2338,"./json-schema-2020-12/components/keywords/ReadOnly.jsx":6456,"./json-schema-2020-12/components/keywords/Then.jsx":7401,"./json-schema-2020-12/components/keywords/Title/Title.jsx":8137,"./json-schema-2020-12/components/keywords/Type.jsx":2285,"./json-schema-2020-12/components/keywords/UnevaluatedItems.jsx":5828,"./json-schema-2020-12/components/keywords/UnevaluatedProperties.jsx":6907,"./json-schema-2020-12/components/keywords/WriteOnly.jsx":5789,"./json-schema-2020-12/context.js":9006,"./json-schema-2020-12/fn.js":4121,"./json-schema-2020-12/hoc.jsx":5077,"./json-schema-2020-12/hooks.js":2603,"./json-schema-2020-12/index.js":7139,"./json-schema-2020-12/prop-types.js":6648,"./json-schema-2020-12/samples-extensions/fn/api/encoderAPI.js":9507,"./json-schema-2020-12/samples-extensions/fn/api/formatAPI.js":2906,"./json-schema-2020-12/samples-extensions/fn/api/mediaTypeAPI.js":537,"./json-schema-2020-12/samples-extensions/fn/class/EncoderRegistry.js":674,"./json-schema-2020-12/samples-extensions/fn/class/MediaTypeRegistry.js":3782,"./json-schema-2020-12/samples-extensions/fn/class/Registry.js":4215,"./json-schema-2020-12/samples-extensions/fn/core/constants.js":8338,"./json-schema-2020-12/samples-extensions/fn/core/example.js":3783,"./json-schema-2020-12/samples-extensions/fn/core/merge.js":7078,"./json-schema-2020-12/samples-extensions/fn/core/predicates.js":3084,"./json-schema-2020-12/samples-extensions/fn/core/random.js":5202,"./json-schema-2020-12/samples-extensions/fn/core/type.js":6276,"./json-schema-2020-12/samples-extensions/fn/core/utils.js":9346,"./json-schema-2020-12/samples-extensions/fn/encoders/7bit.js":1433,"./json-schema-2020-12/samples-extensions/fn/encoders/8bit.js":8509,"./json-schema-2020-12/samples-extensions/fn/encoders/base16.js":5709,"./json-schema-2020-12/samples-extensions/fn/encoders/base32.js":4180,"./json-schema-2020-12/samples-extensions/fn/encoders/base64.js":1967,"./json-schema-2020-12/samples-extensions/fn/encoders/binary.js":4366,"./json-schema-2020-12/samples-extensions/fn/encoders/quoted-printable.js":5037,"./json-schema-2020-12/samples-extensions/fn/generators/date-time.js":4045,"./json-schema-2020-12/samples-extensions/fn/generators/date.js":1456,"./json-schema-2020-12/samples-extensions/fn/generators/double.js":560,"./json-schema-2020-12/samples-extensions/fn/generators/duration.js":4299,"./json-schema-2020-12/samples-extensions/fn/generators/email.js":3981,"./json-schema-2020-12/samples-extensions/fn/generators/float.js":1890,"./json-schema-2020-12/samples-extensions/fn/generators/hostname.js":9375,"./json-schema-2020-12/samples-extensions/fn/generators/idn-email.js":4518,"./json-schema-2020-12/samples-extensions/fn/generators/idn-hostname.js":273,"./json-schema-2020-12/samples-extensions/fn/generators/int32.js":7864,"./json-schema-2020-12/samples-extensions/fn/generators/int64.js":1726,"./json-schema-2020-12/samples-extensions/fn/generators/ipv4.js":8793,"./json-schema-2020-12/samples-extensions/fn/generators/ipv6.js":8269,"./json-schema-2020-12/samples-extensions/fn/generators/iri-reference.js":5693,"./json-schema-2020-12/samples-extensions/fn/generators/iri.js":3080,"./json-schema-2020-12/samples-extensions/fn/generators/json-pointer.js":7856,"./json-schema-2020-12/samples-extensions/fn/generators/media-types/application.js":5088,"./json-schema-2020-12/samples-extensions/fn/generators/media-types/audio.js":4342,"./json-schema-2020-12/samples-extensions/fn/generators/media-types/image.js":6724,"./json-schema-2020-12/samples-extensions/fn/generators/media-types/text.js":5378,"./json-schema-2020-12/samples-extensions/fn/generators/media-types/video.js":2974,"./json-schema-2020-12/samples-extensions/fn/generators/password.js":3393,"./json-schema-2020-12/samples-extensions/fn/generators/regex.js":4335,"./json-schema-2020-12/samples-extensions/fn/generators/relative-json-pointer.js":375,"./json-schema-2020-12/samples-extensions/fn/generators/time.js":5243,"./json-schema-2020-12/samples-extensions/fn/generators/uri-reference.js":4692,"./json-schema-2020-12/samples-extensions/fn/generators/uri-template.js":3829,"./json-schema-2020-12/samples-extensions/fn/generators/uri.js":2978,"./json-schema-2020-12/samples-extensions/fn/generators/uuid.js":8859,"./json-schema-2020-12/samples-extensions/fn/index.js":8591,"./json-schema-2020-12/samples-extensions/fn/main.js":4277,"./json-schema-2020-12/samples-extensions/fn/types/array.js":3982,"./json-schema-2020-12/samples-extensions/fn/types/boolean.js":4108,"./json-schema-2020-12/samples-extensions/fn/types/index.js":3273,"./json-schema-2020-12/samples-extensions/fn/types/integer.js":8864,"./json-schema-2020-12/samples-extensions/fn/types/null.js":853,"./json-schema-2020-12/samples-extensions/fn/types/number.js":844,"./json-schema-2020-12/samples-extensions/fn/types/object.js":6852,"./json-schema-2020-12/samples-extensions/fn/types/string.js":4522,"./layout/actions.js":5474,"./layout/index.js":6821,"./layout/reducers.js":5672,"./layout/selectors.js":4400,"./layout/spec-extensions/wrap-selector.js":8989,"./logs/index.js":9150,"./oas3/actions.js":7002,"./oas3/auth-extensions/wrap-selectors.js":3723,"./oas3/components/callbacks.jsx":3427,"./oas3/components/http-auth.jsx":6775,"./oas3/components/index.js":6467,"./oas3/components/operation-link.jsx":5757,"./oas3/components/operation-servers.jsx":6796,"./oas3/components/request-body-editor.jsx":5327,"./oas3/components/request-body.jsx":2458,"./oas3/components/servers-container.jsx":9928,"./oas3/components/servers.jsx":6617,"./oas3/helpers.jsx":7779,"./oas3/index.js":7451,"./oas3/reducers.js":2109,"./oas3/selectors.js":5065,"./oas3/spec-extensions/selectors.js":1741,"./oas3/spec-extensions/wrap-selectors.js":2044,"./oas3/wrap-components/auth-item.jsx":356,"./oas3/wrap-components/index.js":7761,"./oas3/wrap-components/json-schema-string.jsx":287,"./oas3/wrap-components/markdown.jsx":2460,"./oas3/wrap-components/model.jsx":3499,"./oas3/wrap-components/online-validator-badge.js":58,"./oas3/wrap-components/version-stamp.jsx":9487,"./oas31/after-load.js":2372,"./oas31/components/contact.jsx":9503,"./oas31/components/info.jsx":6133,"./oas31/components/json-schema-dialect.jsx":2562,"./oas31/components/license.jsx":1876,"./oas31/components/model/model.jsx":2718,"./oas31/components/models/models.jsx":263,"./oas31/components/version-pragma-filter.jsx":3429,"./oas31/components/webhooks.jsx":9508,"./oas31/fn.js":4380,"./oas31/index.js":9806,"./oas31/json-schema-2020-12-extensions/components/keywords/Description.jsx":5989,"./oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx":9525,"./oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/DiscriminatorMapping.jsx":7749,"./oas31/json-schema-2020-12-extensions/components/keywords/Example.jsx":9450,"./oas31/json-schema-2020-12-extensions/components/keywords/ExternalDocs.jsx":5324,"./oas31/json-schema-2020-12-extensions/components/keywords/Properties.jsx":9023,"./oas31/json-schema-2020-12-extensions/components/keywords/Xml.jsx":3995,"./oas31/json-schema-2020-12-extensions/fn.js":5800,"./oas31/json-schema-2020-12-extensions/wrap-components/keywords/Default.jsx":4951,"./oas31/json-schema-2020-12-extensions/wrap-components/keywords/Description.jsx":809,"./oas31/json-schema-2020-12-extensions/wrap-components/keywords/Properties.jsx":7536,"./oas31/selectors.js":4280,"./oas31/spec-extensions/selectors.js":9305,"./oas31/spec-extensions/wrap-selectors.js":2884,"./oas31/wrap-components/contact.jsx":7423,"./oas31/wrap-components/info.jsx":284,"./oas31/wrap-components/license.jsx":6608,"./oas31/wrap-components/model.jsx":7042,"./oas31/wrap-components/models.jsx":2914,"./oas31/wrap-components/version-pragma-filter.jsx":1434,"./oas31/wrap-components/version-stamp.jsx":1122,"./on-complete/index.js":8560,"./request-snippets/fn.js":8223,"./request-snippets/index.js":6575,"./request-snippets/request-snippets.jsx":4206,"./request-snippets/selectors.js":4669,"./safe-render/components/error-boundary.jsx":6195,"./safe-render/components/fallback.jsx":9403,"./safe-render/fn.jsx":6189,"./safe-render/index.js":9595,"./samples/fn/get-json-sample-schema.js":2846,"./samples/fn/get-sample-schema.js":6132,"./samples/fn/get-xml-sample-schema.js":1169,"./samples/fn/get-yaml-sample-schema.js":9431,"./samples/fn/index.js":9812,"./samples/index.js":8883,"./spec/actions.js":7080,"./spec/index.js":7038,"./spec/reducers.js":32,"./spec/selectors.js":3881,"./spec/wrap-actions.js":7508,"./swagger-js/configs-wrap-actions.js":4852,"./swagger-js/index.js":1241,"./util/index.js":8525,"./view/fn.js":8347,"./view/index.js":3420,"./view/root-injects.jsx":6194,"core/plugins/all.js":5308,"core/plugins/auth/actions.js":5812,"core/plugins/auth/configs-extensions/wrap-actions.js":3779,"core/plugins/auth/index.js":3705,"core/plugins/auth/reducers.js":3962,"core/plugins/auth/selectors.js":35,"core/plugins/auth/spec-extensions/wrap-actions.js":489,"core/plugins/auth/wrap-actions.js":2849,"core/plugins/configs/actions.js":714,"core/plugins/configs/helpers.js":2256,"core/plugins/configs/index.js":6709,"core/plugins/configs/reducers.js":7743,"core/plugins/configs/selectors.js":9018,"core/plugins/configs/spec-actions.js":2698,"core/plugins/deep-linking/helpers.js":1970,"core/plugins/deep-linking/index.js":4980,"core/plugins/deep-linking/layout.js":2179,"core/plugins/deep-linking/operation-tag-wrapper.jsx":4584,"core/plugins/deep-linking/operation-wrapper.jsx":877,"core/plugins/download-url.js":8011,"core/plugins/err/actions.js":4966,"core/plugins/err/error-transformers/hook.js":2860,"core/plugins/err/error-transformers/transformers/not-of-type.js":2392,"core/plugins/err/error-transformers/transformers/parameter-oneof.js":1835,"core/plugins/err/index.js":7793,"core/plugins/err/reducers.js":3527,"core/plugins/err/selectors.js":7667,"core/plugins/filter/index.js":9978,"core/plugins/filter/opsFilter.js":4309,"core/plugins/json-schema-2020-12/components/Accordion/Accordion.jsx":7349,"core/plugins/json-schema-2020-12/components/ExpandDeepButton/ExpandDeepButton.jsx":6867,"core/plugins/json-schema-2020-12/components/JSONSchema/JSONSchema.jsx":2675,"core/plugins/json-schema-2020-12/components/icons/ChevronRight.jsx":2260,"core/plugins/json-schema-2020-12/components/keywords/$anchor.jsx":4922,"core/plugins/json-schema-2020-12/components/keywords/$comment.jsx":4685,"core/plugins/json-schema-2020-12/components/keywords/$defs.jsx":6418,"core/plugins/json-schema-2020-12/components/keywords/$dynamicAnchor.jsx":1338,"core/plugins/json-schema-2020-12/components/keywords/$dynamicRef.jsx":7655,"core/plugins/json-schema-2020-12/components/keywords/$id.jsx":3460,"core/plugins/json-schema-2020-12/components/keywords/$ref.jsx":2348,"core/plugins/json-schema-2020-12/components/keywords/$schema.jsx":9359,"core/plugins/json-schema-2020-12/components/keywords/$vocabulary/$vocabulary.jsx":7568,"core/plugins/json-schema-2020-12/components/keywords/AdditionalProperties.jsx":5253,"core/plugins/json-schema-2020-12/components/keywords/AllOf.jsx":6457,"core/plugins/json-schema-2020-12/components/keywords/AnyOf.jsx":8776,"core/plugins/json-schema-2020-12/components/keywords/Const.jsx":7308,"core/plugins/json-schema-2020-12/components/keywords/Constraint/Constraint.jsx":9956,"core/plugins/json-schema-2020-12/components/keywords/Contains.jsx":8993,"core/plugins/json-schema-2020-12/components/keywords/ContentSchema.jsx":3484,"core/plugins/json-schema-2020-12/components/keywords/Default.jsx":5148,"core/plugins/json-schema-2020-12/components/keywords/DependentRequired/DependentRequired.jsx":4539,"core/plugins/json-schema-2020-12/components/keywords/DependentSchemas.jsx":6076,"core/plugins/json-schema-2020-12/components/keywords/Deprecated.jsx":6661,"core/plugins/json-schema-2020-12/components/keywords/Description/Description.jsx":9446,"core/plugins/json-schema-2020-12/components/keywords/Else.jsx":7207,"core/plugins/json-schema-2020-12/components/keywords/Enum/Enum.jsx":1805,"core/plugins/json-schema-2020-12/components/keywords/If.jsx":487,"core/plugins/json-schema-2020-12/components/keywords/Items.jsx":9206,"core/plugins/json-schema-2020-12/components/keywords/Not.jsx":5174,"core/plugins/json-schema-2020-12/components/keywords/OneOf.jsx":3834,"core/plugins/json-schema-2020-12/components/keywords/PatternProperties/PatternProperties.jsx":6746,"core/plugins/json-schema-2020-12/components/keywords/PrefixItems.jsx":3971,"core/plugins/json-schema-2020-12/components/keywords/Properties/Properties.jsx":5472,"core/plugins/json-schema-2020-12/components/keywords/PropertyNames.jsx":2338,"core/plugins/json-schema-2020-12/components/keywords/ReadOnly.jsx":6456,"core/plugins/json-schema-2020-12/components/keywords/Then.jsx":7401,"core/plugins/json-schema-2020-12/components/keywords/Title/Title.jsx":8137,"core/plugins/json-schema-2020-12/components/keywords/Type.jsx":2285,"core/plugins/json-schema-2020-12/components/keywords/UnevaluatedItems.jsx":5828,"core/plugins/json-schema-2020-12/components/keywords/UnevaluatedProperties.jsx":6907,"core/plugins/json-schema-2020-12/components/keywords/WriteOnly.jsx":5789,"core/plugins/json-schema-2020-12/context.js":9006,"core/plugins/json-schema-2020-12/fn.js":4121,"core/plugins/json-schema-2020-12/hoc.jsx":5077,"core/plugins/json-schema-2020-12/hooks.js":2603,"core/plugins/json-schema-2020-12/index.js":7139,"core/plugins/json-schema-2020-12/prop-types.js":6648,"core/plugins/json-schema-2020-12/samples-extensions/fn/api/encoderAPI.js":9507,"core/plugins/json-schema-2020-12/samples-extensions/fn/api/formatAPI.js":2906,"core/plugins/json-schema-2020-12/samples-extensions/fn/api/mediaTypeAPI.js":537,"core/plugins/json-schema-2020-12/samples-extensions/fn/class/EncoderRegistry.js":674,"core/plugins/json-schema-2020-12/samples-extensions/fn/class/MediaTypeRegistry.js":3782,"core/plugins/json-schema-2020-12/samples-extensions/fn/class/Registry.js":4215,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/constants.js":8338,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/example.js":3783,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/merge.js":7078,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/predicates.js":3084,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/random.js":5202,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/type.js":6276,"core/plugins/json-schema-2020-12/samples-extensions/fn/core/utils.js":9346,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/7bit.js":1433,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/8bit.js":8509,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/base16.js":5709,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/base32.js":4180,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/base64.js":1967,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/binary.js":4366,"core/plugins/json-schema-2020-12/samples-extensions/fn/encoders/quoted-printable.js":5037,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/date-time.js":4045,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/date.js":1456,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/double.js":560,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/duration.js":4299,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/email.js":3981,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/float.js":1890,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/hostname.js":9375,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/idn-email.js":4518,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/idn-hostname.js":273,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/int32.js":7864,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/int64.js":1726,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/ipv4.js":8793,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/ipv6.js":8269,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/iri-reference.js":5693,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/iri.js":3080,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/json-pointer.js":7856,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/media-types/application.js":5088,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/media-types/audio.js":4342,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/media-types/image.js":6724,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/media-types/text.js":5378,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/media-types/video.js":2974,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/password.js":3393,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/regex.js":4335,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/relative-json-pointer.js":375,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/time.js":5243,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/uri-reference.js":4692,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/uri-template.js":3829,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/uri.js":2978,"core/plugins/json-schema-2020-12/samples-extensions/fn/generators/uuid.js":8859,"core/plugins/json-schema-2020-12/samples-extensions/fn/index.js":8591,"core/plugins/json-schema-2020-12/samples-extensions/fn/main.js":4277,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/array.js":3982,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/boolean.js":4108,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/index.js":3273,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/integer.js":8864,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/null.js":853,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/number.js":844,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/object.js":6852,"core/plugins/json-schema-2020-12/samples-extensions/fn/types/string.js":4522,"core/plugins/layout/actions.js":5474,"core/plugins/layout/index.js":6821,"core/plugins/layout/reducers.js":5672,"core/plugins/layout/selectors.js":4400,"core/plugins/layout/spec-extensions/wrap-selector.js":8989,"core/plugins/logs/index.js":9150,"core/plugins/oas3/actions.js":7002,"core/plugins/oas3/auth-extensions/wrap-selectors.js":3723,"core/plugins/oas3/components/callbacks.jsx":3427,"core/plugins/oas3/components/http-auth.jsx":6775,"core/plugins/oas3/components/index.js":6467,"core/plugins/oas3/components/operation-link.jsx":5757,"core/plugins/oas3/components/operation-servers.jsx":6796,"core/plugins/oas3/components/request-body-editor.jsx":5327,"core/plugins/oas3/components/request-body.jsx":2458,"core/plugins/oas3/components/servers-container.jsx":9928,"core/plugins/oas3/components/servers.jsx":6617,"core/plugins/oas3/helpers.jsx":7779,"core/plugins/oas3/index.js":7451,"core/plugins/oas3/reducers.js":2109,"core/plugins/oas3/selectors.js":5065,"core/plugins/oas3/spec-extensions/selectors.js":1741,"core/plugins/oas3/spec-extensions/wrap-selectors.js":2044,"core/plugins/oas3/wrap-components/auth-item.jsx":356,"core/plugins/oas3/wrap-components/index.js":7761,"core/plugins/oas3/wrap-components/json-schema-string.jsx":287,"core/plugins/oas3/wrap-components/markdown.jsx":2460,"core/plugins/oas3/wrap-components/model.jsx":3499,"core/plugins/oas3/wrap-components/online-validator-badge.js":58,"core/plugins/oas3/wrap-components/version-stamp.jsx":9487,"core/plugins/oas31/after-load.js":2372,"core/plugins/oas31/components/contact.jsx":9503,"core/plugins/oas31/components/info.jsx":6133,"core/plugins/oas31/components/json-schema-dialect.jsx":2562,"core/plugins/oas31/components/license.jsx":1876,"core/plugins/oas31/components/model/model.jsx":2718,"core/plugins/oas31/components/models/models.jsx":263,"core/plugins/oas31/components/version-pragma-filter.jsx":3429,"core/plugins/oas31/components/webhooks.jsx":9508,"core/plugins/oas31/fn.js":4380,"core/plugins/oas31/index.js":9806,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Description.jsx":5989,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/Discriminator.jsx":9525,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Discriminator/DiscriminatorMapping.jsx":7749,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Example.jsx":9450,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/ExternalDocs.jsx":5324,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Properties.jsx":9023,"core/plugins/oas31/json-schema-2020-12-extensions/components/keywords/Xml.jsx":3995,"core/plugins/oas31/json-schema-2020-12-extensions/fn.js":5800,"core/plugins/oas31/json-schema-2020-12-extensions/wrap-components/keywords/Default.jsx":4951,"core/plugins/oas31/json-schema-2020-12-extensions/wrap-components/keywords/Description.jsx":809,"core/plugins/oas31/json-schema-2020-12-extensions/wrap-components/keywords/Properties.jsx":7536,"core/plugins/oas31/selectors.js":4280,"core/plugins/oas31/spec-extensions/selectors.js":9305,"core/plugins/oas31/spec-extensions/wrap-selectors.js":2884,"core/plugins/oas31/wrap-components/contact.jsx":7423,"core/plugins/oas31/wrap-components/info.jsx":284,"core/plugins/oas31/wrap-components/license.jsx":6608,"core/plugins/oas31/wrap-components/model.jsx":7042,"core/plugins/oas31/wrap-components/models.jsx":2914,"core/plugins/oas31/wrap-components/version-pragma-filter.jsx":1434,"core/plugins/oas31/wrap-components/version-stamp.jsx":1122,"core/plugins/on-complete/index.js":8560,"core/plugins/request-snippets/fn.js":8223,"core/plugins/request-snippets/index.js":6575,"core/plugins/request-snippets/request-snippets.jsx":4206,"core/plugins/request-snippets/selectors.js":4669,"core/plugins/safe-render/components/error-boundary.jsx":6195,"core/plugins/safe-render/components/fallback.jsx":9403,"core/plugins/safe-render/fn.jsx":6189,"core/plugins/safe-render/index.js":9595,"core/plugins/samples/fn/get-json-sample-schema.js":2846,"core/plugins/samples/fn/get-sample-schema.js":6132,"core/plugins/samples/fn/get-xml-sample-schema.js":1169,"core/plugins/samples/fn/get-yaml-sample-schema.js":9431,"core/plugins/samples/fn/index.js":9812,"core/plugins/samples/index.js":8883,"core/plugins/spec/actions.js":7080,"core/plugins/spec/index.js":7038,"core/plugins/spec/reducers.js":32,"core/plugins/spec/selectors.js":3881,"core/plugins/spec/wrap-actions.js":7508,"core/plugins/swagger-js/configs-wrap-actions.js":4852,"core/plugins/swagger-js/index.js":1241,"core/plugins/util/index.js":8525,"core/plugins/view/fn.js":8347,"core/plugins/view/index.js":3420,"core/plugins/view/root-injects.jsx":6194};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}r.keys=function(){return Object.keys(s)},r.resolve=a,e.exports=r,r.id=5102},2517:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwcHgiICBoZWlnaHQ9IjIwMHB4IiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiIGNsYXNzPSJsZHMtcm9sbGluZyIgc3R5bGU9ImJhY2tncm91bmQtaW1hZ2U6IG5vbmU7IGJhY2tncm91bmQtcG9zaXRpb246IGluaXRpYWwgaW5pdGlhbDsgYmFja2dyb3VuZC1yZXBlYXQ6IGluaXRpYWwgaW5pdGlhbDsiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIGZpbGw9Im5vbmUiIG5nLWF0dHItc3Ryb2tlPSJ7e2NvbmZpZy5jb2xvcn19IiBuZy1hdHRyLXN0cm9rZS13aWR0aD0ie3tjb25maWcud2lkdGh9fSIgbmctYXR0ci1yPSJ7e2NvbmZpZy5yYWRpdXN9fSIgbmctYXR0ci1zdHJva2UtZGFzaGFycmF5PSJ7e2NvbmZpZy5kYXNoYXJyYXl9fSIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgY2FsY01vZGU9ImxpbmVhciIgdmFsdWVzPSIwIDUwIDUwOzM2MCA1MCA1MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49IjBzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlVHJhbnNmb3JtPjwvY2lyY2xlPjwvc3ZnPgo="},1733:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/array/from")},7104:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/array/is-array")},593:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/bind")},4883:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/concat")},7862:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/entries")},7834:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/every")},9998:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/filter")},3580:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/find")},4235:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/for-each")},2605:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/includes")},8493:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/index-of")},874:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/keys")},3942:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/map")},66:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/reduce")},600:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/slice")},5626:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/some")},9247:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/sort")},7390:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/instance/trim")},8344:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/json/stringify")},2611:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/map")},4901:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/number/is-integer")},4994:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/assign")},1815:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/entries")},3015:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/from-entries")},7252:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/keys")},9968:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/object/values")},7885:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/set")},9300:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/set-timeout")},9478:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/url")},6543:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/weak-map")},6680:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/core-js-stable/weak-set")},6272:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/helpers/classPrivateFieldGet")},1093:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/helpers/defineProperty")},4250:e=>{"use strict";e.exports=require("@babel/runtime-corejs3/helpers/extends")},871:e=>{"use strict";e.exports=require("buffer")},9003:e=>{"use strict";e.exports=require("classnames")},5572:e=>{"use strict";e.exports=require("immutable")},9793:e=>{"use strict";e.exports=require("js-yaml")},1712:e=>{"use strict";e.exports=require("lodash/get")},4292:e=>{"use strict";e.exports=require("lodash/identity")},9699:e=>{"use strict";e.exports=require("lodash/isEmpty")},5716:e=>{"use strict";e.exports=require("lodash/isFunction")},5452:e=>{"use strict";e.exports=require("lodash/isPlainObject")},541:e=>{"use strict";e.exports=require("lodash/memoize")},4129:e=>{"use strict";e.exports=require("lodash/some")},580:e=>{"use strict";e.exports=require("prop-types")},9989:e=>{"use strict";e.exports=require("randexp")},185:e=>{"use strict";e.exports=require("randombytes")},6689:e=>{"use strict";e.exports=require("react")},2807:e=>{"use strict";e.exports=require("react-copy-to-clipboard")},8082:e=>{"use strict";e.exports=require("react-immutable-proptypes")},6695:e=>{"use strict";e.exports=require("redux")},963:e=>{"use strict";e.exports=require("remarkable")},6814:e=>{"use strict";e.exports=require("reselect")},41:e=>{"use strict";e.exports=require("serialize-error")},6765:e=>{"use strict";e.exports=require("swagger-client/es/helpers")},3883:e=>{"use strict";e.exports=require("url-parse")},8920:e=>{"use strict";e.exports=require("xml")}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.d(s,{default:()=>xs});var e={};n.r(e),n.d(e,{Button:()=>nn,Col:()=>en,Collapse:()=>cn,Container:()=>Yt,Input:()=>rn,Link:()=>on,Row:()=>tn,Select:()=>an,TextArea:()=>sn});var t={};n.r(t),n.d(t,{JsonSchemaArrayItemFile:()=>as,JsonSchemaArrayItemText:()=>rs,JsonSchemaForm:()=>ts,JsonSchema_array:()=>ss,JsonSchema_boolean:()=>os,JsonSchema_object:()=>cs,JsonSchema_string:()=>ns});const r=require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of");var a=n.n(r),o=n(9998),l=n.n(o),c=n(7252),i=n.n(c),u=n(8344),p=n.n(u);const m=require("deep-extend");var d=n.n(m),h=n(593),g=n.n(h),f=n(4994),y=n.n(f),S=n(600),v=n.n(S),E=n(7104),x=n.n(E),w=n(66),C=n.n(w),b=n(3942),j=n.n(b),_=n(4883),N=n.n(_),O=n(6689),k=n.n(O),A=n(6695),I=n(5572),P=n.n(I);const q=require("redux-immutable");var R=n(41);const T=require("lodash/merge");var M=n.n(T),D=n(4966),J=n(7504),$=n(1669);const K=e=>e;class L{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,s,r;d()(this,{state:{},plugins:[],pluginsOptions:{},system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},t),this.getSystem=g()(e=this._getSystem).call(e,this),this.store=(n=K,s=(0,I.fromJS)(this.state),r=this.getSystem,function(e,t,n){let s=[(0,$._5)(n)];const r=J.Z.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||A.compose;return(0,A.createStore)(e,t,r((0,A.applyMiddleware)(...s)))}(n,s,r)),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var n=V(e,this.getSystem(),this.pluginsOptions);F(this.system,n),t&&this.buildSystem();U.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=y()({},this.getRootInjects(),this.getWrappedAndBoundActions(t),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){var e,t,n;return y()({getSystem:this.getSystem,getStore:g()(e=this.getStore).call(e,this),getComponents:g()(t=this.getComponents).call(t,this),getState:this.getStore().getState,getConfigs:g()(n=this._getConfigs).call(n,this),Im:P(),React:k()},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){var e;this.store.replaceReducer((e=this.system.statePlugins,function(e){var t;let n=C()(t=i()(e)).call(t,((t,n)=>(t[n]=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new I.Map,n=arguments.length>1?arguments[1]:void 0;if(!e)return t;let s=e[n.type];if(s){const e=z(s)(t,n);return null===e?t:e}return t}}(e[n]),t)),{});return i()(n).length?(0,q.combineReducers)(n):K}((0,$.Ay)(e,(e=>e.reducers)))))}getType(e){let t=e[0].toUpperCase()+v()(e).call(e,1);return(0,$.Q2)(this.system.statePlugins,((n,s)=>{let r=n[e];if(r)return{[s+t]:r}}))}getSelectors(){return this.getType("selectors")}getActions(){let e=this.getType("actions");return(0,$.Ay)(e,(e=>(0,$.Q2)(e,((e,t)=>{if((0,$.LQ)(e))return{[t]:e}}))))}getWrappedAndBoundActions(e){var t=this;let n=this.getBoundActions(e);return(0,$.Ay)(n,((e,n)=>{let s=this.system.statePlugins[v()(n).call(n,0,-7)].wrapActions;return s?(0,$.Ay)(e,((e,n)=>{let r=s[n];return r?(x()(r)||(r=[r]),C()(r).call(r,((e,n)=>{let s=function(){return n(e,t.getSystem())(...arguments)};if(!(0,$.LQ)(s))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return z(s)}),e||Function.prototype)):e})):e}))}getWrappedAndBoundSelectors(e,t){var n=this;let s=this.getBoundSelectors(e,t);return(0,$.Ay)(s,((t,s)=>{let r=[v()(s).call(s,0,-9)],a=this.system.statePlugins[r].wrapSelectors;return a?(0,$.Ay)(t,((t,s)=>{let o=a[s];return o?(x()(o)||(o=[o]),C()(o).call(o,((t,s)=>{let a=function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return s(t,n.getSystem())(e().getIn(r),...o)};if(!(0,$.LQ)(a))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return a}),t||Function.prototype)):t})):t}))}getStates(e){var t;return C()(t=i()(this.system.statePlugins)).call(t,((t,n)=>(t[n]=e.get(n),t)),{})}getStateThunks(e){var t;return C()(t=i()(this.system.statePlugins)).call(t,((t,n)=>(t[n]=()=>e().get(n),t)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const t=this.system.components[e];return x()(t)?C()(t).call(t,((e,t)=>t(e,this.getSystem()))):void 0!==e?this.system.components[e]:this.system.components}getBoundSelectors(e,t){return(0,$.Ay)(this.getSelectors(),((n,s)=>{let r=[v()(s).call(s,0,-9)];return(0,$.Ay)(n,(n=>function(){for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];let l=z(n).apply(null,[e().getIn(r),...a]);return"function"==typeof l&&(l=z(l)(t())),l}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const t=this.getActions(),n=e=>"function"!=typeof e?(0,$.Ay)(e,(e=>n(e))):function(){var t=null;try{t=e(...arguments)}catch(e){t={type:D.NEW_THROWN_ERR,error:!0,payload:(0,R.serializeError)(e)}}finally{return t}};return(0,$.Ay)(t,(t=>(0,A.bindActionCreators)(n(t),e)))}getMapStateToProps(){return()=>y()({},this.getSystem())}getMapDispatchToProps(e){return t=>d()({},this.getWrappedAndBoundActions(t),this.getFn(),e)}}function V(e,t,n){if((0,$.Kn)(e)&&!(0,$.kJ)(e))return M()({},e);if((0,$.Wl)(e))return V(e(t),t,n);if((0,$.kJ)(e)){var s;const r="chain"===n.pluginLoadType?t.getComponents():{};return C()(s=j()(e).call(e,(e=>V(e,t,n)))).call(s,F,r)}return{}}function U(e,t){let{hasLoaded:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n;return(0,$.Kn)(e)&&!(0,$.kJ)(e)&&"function"==typeof e.afterLoad&&(s=!0,z(e.afterLoad).call(this,t)),(0,$.Wl)(e)?U.call(this,e(t),t,{hasLoaded:s}):(0,$.kJ)(e)?j()(e).call(e,(e=>U.call(this,e,t,{hasLoaded:s}))):s}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,$.Kn)(e))return{};if(!(0,$.Kn)(t))return e;t.wrapComponents&&((0,$.Ay)(t.wrapComponents,((n,s)=>{const r=e.components&&e.components[s];r&&x()(r)?(e.components[s]=N()(r).call(r,[n]),delete t.wrapComponents[s]):r&&(e.components[s]=[r,n],delete t.wrapComponents[s])})),i()(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:n}=e;if((0,$.Kn)(n))for(let e in n){const a=n[e];if(!(0,$.Kn)(a))continue;const{wrapActions:o,wrapSelectors:l}=a;if((0,$.Kn)(o))for(let n in o){let r=o[n];var s;if(x()(r)||(r=[r],o[n]=r),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapActions&&t.statePlugins[e].wrapActions[n])t.statePlugins[e].wrapActions[n]=N()(s=o[n]).call(s,t.statePlugins[e].wrapActions[n])}if((0,$.Kn)(l))for(let n in l){let s=l[n];var r;if(x()(s)||(s=[s],l[n]=s),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapSelectors&&t.statePlugins[e].wrapSelectors[n])t.statePlugins[e].wrapSelectors[n]=N()(r=l[n]).call(r,t.statePlugins[e].wrapSelectors[n])}}return d()(e,t)}function z(e){let{logErrors:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"!=typeof e?e:function(){try{for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return e.call(this,...s)}catch(e){return t&&console.error(e),null}}}var B=n(7793),W=n(6821),H=n(7038),G=n(3420),Z=n(8883),X=n(6575),Y=n(9150),Q=n(1241),ee=n(3705),te=n(8525),ne=n(8011),se=n(6709),re=n(4980),ae=n(9978),oe=n(8560),le=n(9595),ce=n(1093),ie=n.n(ce),ue=n(8493),pe=n.n(ue),me=(n(580),n(8082),n(6765));class de extends O.PureComponent{constructor(e,t){super(e,t),ie()(this,"toggleShown",(()=>{let{layoutActions:e,tag:t,operationId:n,isShown:s}=this.props;const r=this.getResolvedSubtree();s||void 0!==r||this.requestResolvedSubtree(),e.show(["operations",t,n],!s)})),ie()(this,"onCancelClick",(()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})})),ie()(this,"onTryoutClick",(()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})})),ie()(this,"onResetClick",(e=>{const t=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e);this.props.oas3Actions.setRequestBodyValue({value:t,pathMethod:e})})),ie()(this,"onExecute",(()=>{this.setState({executeInProgress:!0})})),ie()(this,"getResolvedSubtree",(()=>{const{specSelectors:e,path:t,method:n,specPath:s}=this.props;return s?e.specResolvedSubtree(s.toJS()):e.specResolvedSubtree(["paths",t,n])})),ie()(this,"requestResolvedSubtree",(()=>{const{specActions:e,path:t,method:n,specPath:s}=this.props;return s?e.requestResolvedSubtree(s.toJS()):e.requestResolvedSubtree(["paths",t,n])}));const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:!0===n||"true"===n,executeInProgress:!1}}mapStateToProps(e,t){const{op:n,layoutSelectors:s,getConfigs:r}=t,{docExpansion:a,deepLinking:o,displayOperationId:l,displayRequestDuration:c,supportedSubmitMethods:i}=r(),u=s.showSummary(),p=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||(0,me.opId)(n.get("operation"),t.path,t.method)||n.get("id"),m=["operations",t.tag,p],d=o&&"false"!==o,h=pe()(i).call(i,t.method)>=0&&(void 0===t.allowTryItOut?t.specSelectors.allowTryItOutFor(t.path,t.method):t.allowTryItOut),g=n.getIn(["operation","security"])||t.specSelectors.security();return{operationId:p,isDeepLinkingEnabled:d,showSummary:u,displayOperationId:l,displayRequestDuration:c,allowTryItOut:h,security:g,isAuthorized:t.authSelectors.isAuthorized(g),isShown:s.isShown(m,"full"===a),jumpToKey:`paths.${t.path}.${t.method}`,response:t.specSelectors.responseFor(t.path,t.method),request:t.specSelectors.requestFor(t.path,t.method)}}componentDidMount(){const{isShown:e}=this.props,t=this.getResolvedSubtree();e&&void 0===t&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(e){const{response:t,isShown:n}=e,s=this.getResolvedSubtree();t!==this.props.response&&this.setState({executeInProgress:!1}),n&&void 0===s&&this.requestResolvedSubtree()}render(){let{op:e,tag:t,path:n,method:s,security:r,isAuthorized:a,operationId:o,showSummary:l,isShown:c,jumpToKey:i,allowTryItOut:u,response:p,request:m,displayOperationId:d,displayRequestDuration:h,isDeepLinkingEnabled:g,specPath:f,specSelectors:y,specActions:S,getComponent:v,getConfigs:E,layoutSelectors:x,layoutActions:w,authActions:C,authSelectors:b,oas3Actions:j,oas3Selectors:_,fn:N}=this.props;const O=v("operation"),A=this.getResolvedSubtree()||(0,I.Map)(),P=(0,I.fromJS)({op:A,tag:t,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:A.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:s,security:r,isAuthorized:a,operationId:o,originalOperationId:A.getIn(["operation","__originalOperationId"]),showSummary:l,isShown:c,jumpToKey:i,allowTryItOut:u,request:m,displayOperationId:d,displayRequestDuration:h,isDeepLinkingEnabled:g,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return k().createElement(O,{operation:P,response:p,request:m,isShown:c,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:f,specActions:S,specSelectors:y,oas3Actions:j,oas3Selectors:_,layoutActions:w,layoutSelectors:x,authActions:C,authSelectors:b,getComponent:v,getConfigs:E,fn:N})}}ie()(de,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});class he extends k().Component{getLayout(){let{getComponent:e,layoutSelectors:t}=this.props;const n=t.current(),s=e(n,!0);return s||(()=>k().createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return k().createElement(e,null)}}he.defaultProps={};class ge extends k().Component{constructor(){super(...arguments),ie()(this,"close",(()=>{let{authActions:e}=this.props;e.showDefinitions(!1)}))}render(){var e;let{authSelectors:t,authActions:n,getComponent:s,errSelectors:r,specSelectors:a,fn:{AST:o={}}}=this.props,l=t.shownDefinitions();const c=s("auths");return k().createElement("div",{className:"dialog-ux"},k().createElement("div",{className:"backdrop-ux"}),k().createElement("div",{className:"modal-ux"},k().createElement("div",{className:"modal-dialog-ux"},k().createElement("div",{className:"modal-ux-inner"},k().createElement("div",{className:"modal-ux-header"},k().createElement("h3",null,"Available authorizations"),k().createElement("button",{type:"button",className:"close-modal",onClick:this.close},k().createElement("svg",{width:"20",height:"20"},k().createElement("use",{href:"#close",xlinkHref:"#close"})))),k().createElement("div",{className:"modal-ux-content"},j()(e=l.valueSeq()).call(e,((e,l)=>k().createElement(c,{key:l,AST:o,definitions:e,getComponent:s,errSelectors:r,authSelectors:t,authActions:n,specSelectors:a}))))))))}}class fe extends k().Component{render(){let{isAuthorized:e,showPopup:t,onClick:n,getComponent:s}=this.props;const r=s("authorizationPopup",!0);return k().createElement("div",{className:"auth-wrapper"},k().createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},k().createElement("span",null,"Authorize"),k().createElement("svg",{width:"20",height:"20"},k().createElement("use",{href:e?"#locked":"#unlocked",xlinkHref:e?"#locked":"#unlocked"}))),t&&k().createElement(r,null))}}class ye extends k().Component{render(){const{authActions:e,authSelectors:t,specSelectors:n,getComponent:s}=this.props,r=n.securityDefinitions(),a=t.definitionsToAuthorize(),o=s("authorizeBtn");return r?k().createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!t.authorized().size,showPopup:!!t.shownDefinitions(),getComponent:s}):null}}class Se extends k().Component{constructor(){super(...arguments),ie()(this,"onClick",(e=>{e.stopPropagation();let{onClick:t}=this.props;t&&t()}))}render(){let{isAuthorized:e}=this.props;return k().createElement("button",{className:e?"authorization__btn locked":"authorization__btn unlocked","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},k().createElement("svg",{width:"20",height:"20"},k().createElement("use",{href:e?"#locked":"#unlocked",xlinkHref:e?"#locked":"#unlocked"})))}}class ve extends k().Component{constructor(e,t){super(e,t),ie()(this,"onAuthChange",(e=>{let{name:t}=e;this.setState({[t]:e})})),ie()(this,"submitAuth",(e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)})),ie()(this,"logoutClick",(e=>{e.preventDefault();let{authActions:t,definitions:n}=this.props,s=j()(n).call(n,((e,t)=>t)).toArray();this.setState(C()(s).call(s,((e,t)=>(e[t]="",e)),{})),t.logoutWithPersistOption(s)})),ie()(this,"close",(e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)})),this.state={}}render(){var e;let{definitions:t,getComponent:n,authSelectors:s,errSelectors:r}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),c=n("Button");let i=s.authorized(),u=l()(t).call(t,((e,t)=>!!i.get(t))),p=l()(t).call(t,(e=>"oauth2"!==e.get("type"))),m=l()(t).call(t,(e=>"oauth2"===e.get("type")));return k().createElement("div",{className:"auth-container"},!!p.size&&k().createElement("form",{onSubmit:this.submitAuth},j()(p).call(p,((e,t)=>k().createElement(a,{key:t,schema:e,name:t,getComponent:n,onAuthChange:this.onAuthChange,authorized:i,errSelectors:r}))).toArray(),k().createElement("div",{className:"auth-btn-wrapper"},p.size===u.size?k().createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick},"Logout"):k().createElement(c,{type:"submit",className:"btn modal-btn auth authorize"},"Authorize"),k().createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),m&&m.size?k().createElement("div",null,k().createElement("div",{className:"scope-def"},k().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."),k().createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),j()(e=l()(t).call(t,(e=>"oauth2"===e.get("type")))).call(e,((e,t)=>k().createElement("div",{key:t},k().createElement(o,{authorized:i,schema:e,name:t})))).toArray()):null)}}class Ee extends k().Component{render(){let{schema:e,name:t,getComponent:n,onAuthChange:s,authorized:r,errSelectors:a}=this.props;const o=n("apiKeyAuth"),l=n("basicAuth");let c;const i=e.get("type");switch(i){case"apiKey":c=k().createElement(o,{key:t,schema:e,name:t,errSelectors:a,authorized:r,getComponent:n,onChange:s});break;case"basic":c=k().createElement(l,{key:t,schema:e,name:t,errSelectors:a,authorized:r,getComponent:n,onChange:s});break;default:c=k().createElement("div",{key:t},"Unknown security definition type ",i)}return k().createElement("div",{key:`${t}-jump`},c)}}class xe extends k().Component{render(){let{error:e}=this.props,t=e.get("level"),n=e.get("message"),s=e.get("source");return k().createElement("div",{className:"errors"},k().createElement("b",null,s," ",t),k().createElement("span",null,n))}}class we extends k().Component{constructor(e,t){super(e,t),ie()(this,"onChange",(e=>{let{onChange:t}=this.props,n=e.target.value,s=y()({},this.state,{value:n});this.setState(s),t(s)}));let{name:n,schema:s}=this.props,r=this.getValue();this.state={name:n,schema:s,value:r}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}render(){var e,t;let{schema:n,getComponent:s,errSelectors:r,name:a}=this.props;const o=s("Input"),c=s("Row"),i=s("Col"),u=s("authError"),p=s("Markdown",!0),m=s("JumpToPath",!0);let d=this.getValue(),h=l()(e=r.allErrors()).call(e,(e=>e.get("authId")===a));return k().createElement("div",null,k().createElement("h4",null,k().createElement("code",null,a||n.get("name"))," (apiKey)",k().createElement(m,{path:["securityDefinitions",a]})),d&&k().createElement("h6",null,"Authorized"),k().createElement(c,null,k().createElement(p,{source:n.get("description")})),k().createElement(c,null,k().createElement("p",null,"Name: ",k().createElement("code",null,n.get("name")))),k().createElement(c,null,k().createElement("p",null,"In: ",k().createElement("code",null,n.get("in")))),k().createElement(c,null,k().createElement("label",null,"Value:"),d?k().createElement("code",null," ****** "):k().createElement(i,null,k().createElement(o,{type:"text",onChange:this.onChange,autoFocus:!0}))),j()(t=h.valueSeq()).call(t,((e,t)=>k().createElement(u,{error:e,key:t}))))}}class Ce extends k().Component{constructor(e,t){super(e,t),ie()(this,"onChange",(e=>{let{onChange:t}=this.props,{value:n,name:s}=e.target,r=this.state.value;r[s]=n,this.setState({value:r}),t(this.state)}));let{schema:n,name:s}=this.props,r=this.getValue().username;this.state={name:s,schema:n,value:r?{username:r}:{}}}getValue(){let{authorized:e,name:t}=this.props;return e&&e.getIn([t,"value"])||{}}render(){var e,t;let{schema:n,getComponent:s,name:r,errSelectors:a}=this.props;const o=s("Input"),c=s("Row"),i=s("Col"),u=s("authError"),p=s("JumpToPath",!0),m=s("Markdown",!0);let d=this.getValue().username,h=l()(e=a.allErrors()).call(e,(e=>e.get("authId")===r));return k().createElement("div",null,k().createElement("h4",null,"Basic authorization",k().createElement(p,{path:["securityDefinitions",r]})),d&&k().createElement("h6",null,"Authorized"),k().createElement(c,null,k().createElement(m,{source:n.get("description")})),k().createElement(c,null,k().createElement("label",null,"Username:"),d?k().createElement("code",null," ",d," "):k().createElement(i,null,k().createElement(o,{type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),k().createElement(c,null,k().createElement("label",null,"Password:"),d?k().createElement("code",null," ****** "):k().createElement(i,null,k().createElement(o,{autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),j()(t=h.valueSeq()).call(t,((e,t)=>k().createElement(u,{error:e,key:t}))))}}function be(e){const{example:t,showValue:n,getComponent:s,getConfigs:r}=e,a=s("Markdown",!0),o=s("highlightCode");return t?k().createElement("div",{className:"example"},t.get("description")?k().createElement("section",{className:"example__section"},k().createElement("div",{className:"example__section-header"},"Example Description"),k().createElement("p",null,k().createElement(a,{source:t.get("description")}))):null,n&&t.has("value")?k().createElement("section",{className:"example__section"},k().createElement("div",{className:"example__section-header"},"Example Value"),k().createElement(o,{getConfigs:r,value:(0,$.Pz)(t.get("value"))})):null):null}var je=n(2611),_e=n.n(je);class Ne extends k().PureComponent{constructor(){var e;super(...arguments),e=this,ie()(this,"_onSelect",(function(t){let{isSyntheticChange:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof e.props.onSelect&&e.props.onSelect(t,{isSyntheticChange:n})})),ie()(this,"_onDomSelect",(e=>{if("function"==typeof this.props.onSelect){const t=e.target.selectedOptions[0].getAttribute("value");this._onSelect(t,{isSyntheticChange:!1})}})),ie()(this,"getCurrentExample",(()=>{const{examples:e,currentExampleKey:t}=this.props,n=e.get(t),s=e.keySeq().first(),r=e.get(s);return n||r||_e()({})}))}componentDidMount(){const{onSelect:e,examples:t}=this.props;if("function"==typeof e){const e=t.first(),n=t.keyOf(e);this._onSelect(n,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:t,examples:n}=e;if(n!==this.props.examples&&!n.has(t)){const e=n.first(),t=n.keyOf(e);this._onSelect(t,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:t,isValueModified:n,isModifiedValueAvailable:s,showLabels:r}=this.props;return k().createElement("div",{className:"examples-select"},r?k().createElement("span",{className:"examples-select__section-label"},"Examples: "):null,k().createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&n?"__MODIFIED__VALUE__":t||""},s?k().createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,j()(e).call(e,((e,t)=>k().createElement("option",{key:t,value:t},e.get("summary")||t))).valueSeq()))}}ie()(Ne,"defaultProps",{examples:P().Map({}),onSelect:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...t)},currentExampleKey:null,showLabels:!0});const Oe=e=>I.List.isList(e)?e:(0,$.Pz)(e);class ke extends k().PureComponent{constructor(e){var t;super(e),t=this,ie()(this,"_getStateForCurrentNamespace",(()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,I.Map)()).toObject()})),ie()(this,"_setStateForCurrentNamespace",(e=>{const{currentNamespace:t}=this.props;return this._setStateForNamespace(t,e)})),ie()(this,"_setStateForNamespace",((e,t)=>{const n=(this.state[e]||(0,I.Map)()).mergeDeep(t);return this.setState({[e]:n})})),ie()(this,"_isCurrentUserInputSameAsExampleValue",(()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e})),ie()(this,"_getValueForExample",((e,t)=>{const{examples:n}=t||this.props;return Oe((n||(0,I.Map)({})).getIn([e,"value"]))})),ie()(this,"_getCurrentExampleValue",(e=>{const{currentKey:t}=e||this.props;return this._getValueForExample(t,e||this.props)})),ie()(this,"_onExamplesSelect",(function(e){let{isSyntheticChange:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{onSelect:s,updateValue:r,currentUserInputValue:a,userHasEditedBody:o}=t.props,{lastUserEditedValue:l}=t._getStateForCurrentNamespace(),c=t._getValueForExample(e);if("__MODIFIED__VALUE__"===e)return r(Oe(l)),t._setStateForCurrentNamespace({isModifiedValueSelected:!0});if("function"==typeof s){for(var i=arguments.length,u=new Array(i>2?i-2:0),p=2;p<i;p++)u[p-2]=arguments[p];s(e,{isSyntheticChange:n},...u)}t._setStateForCurrentNamespace({lastDownstreamValue:c,isModifiedValueSelected:n&&o||!!a&&a!==c}),n||"function"==typeof r&&r(Oe(c))}));const n=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,I.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:n,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==n})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:t,examples:n,onSelect:s,userHasEditedBody:r}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),c=this._getValueForExample(e.currentKey,e),i=l()(n).call(n,(e=>e.get("value")===t||(0,$.Pz)(e.get("value"))===t));if(i.size){let t;t=i.has(e.currentKey)?e.currentKey:i.keySeq().first(),s(t,{isSyntheticChange:!0})}else t!==this.props.currentUserInputValue&&t!==a&&t!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:r||t!==c}))}render(){const{currentUserInputValue:e,examples:t,currentKey:n,getComponent:s,userHasEditedBody:r}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:l}=this._getStateForCurrentNamespace(),c=s("ExamplesSelect");return k().createElement(c,{examples:t,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:void 0!==e&&l&&e!==this._getCurrentExampleValue()||r})}}ie()(ke,"defaultProps",{userHasEditedBody:!1,examples:(0,I.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...t)},updateValue:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...t)}});var Ae=n(1733),Ie=n.n(Ae),Pe=n(874),qe=n.n(Pe),Re=n(2605),Te=n.n(Re),Me=n(3883),De=n.n(Me);class Je extends k().Component{constructor(e,t){super(e,t),ie()(this,"close",(e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)})),ie()(this,"authorize",(()=>{let{authActions:e,errActions:t,getConfigs:n,authSelectors:s,oas3Selectors:r}=this.props,a=n(),o=s.getConfigs();t.clear({authId:name,type:"auth",source:"auth"}),function(e){let{auth:t,authActions:n,errActions:s,configs:r,authConfigs:a={},currentServer:o}=e,{schema:l,scopes:c,name:i,clientId:u}=t,p=l.get("flow"),m=[];switch(p){case"password":return void n.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void n.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":m.push("response_type=code");break;case"implicit":m.push("response_type=token")}"string"==typeof u&&m.push("client_id="+encodeURIComponent(u));let d=r.oauth2RedirectUrl;if(void 0===d)return void s.newAuthErr({authId:i,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});m.push("redirect_uri="+encodeURIComponent(d));let h=[];if(x()(c)?h=c:P().List.isList(c)&&(h=c.toArray()),h.length>0){let e=a.scopeSeparator||" ";m.push("scope="+encodeURIComponent(h.join(e)))}let g=(0,$.r3)(new Date);if(m.push("state="+encodeURIComponent(g)),void 0!==a.realm&&m.push("realm="+encodeURIComponent(a.realm)),("authorizationCode"===p||"authorization_code"===p||"accessCode"===p)&&a.usePkceWithAuthorizationCodeGrant){const e=(0,$.Uj)(),n=(0,$.Xb)(e);m.push("code_challenge="+n),m.push("code_challenge_method=S256"),t.codeVerifier=e}let{additionalQueryStringParams:f}=a;for(let e in f){var y;void 0!==f[e]&&m.push(j()(y=[e,f[e]]).call(y,encodeURIComponent).join("="))}const S=l.get("authorizationUrl");let v;v=o?De()((0,$.Nm)(S),o,!0).toString():(0,$.Nm)(S);let E,w=[v,m.join("&")].join(-1===pe()(S).call(S,"?")?"?":"&");E="implicit"===p?n.preAuthorizeImplicit:a.useBasicAuthenticationWithAccessCodeGrant?n.authorizeAccessCodeWithBasicAuthentication:n.authorizeAccessCodeWithFormParams,n.authPopup(w,{auth:t,state:g,redirectUrl:d,callback:E,errCb:s.newAuthErr})}({auth:this.state,currentServer:r.serverEffectiveValue(r.selectedServer()),authActions:e,errActions:t,configs:a,authConfigs:o})})),ie()(this,"onScopeChange",(e=>{var t,n;let{target:s}=e,{checked:r}=s,a=s.dataset.value;if(r&&-1===pe()(t=this.state.scopes).call(t,a)){var o;let e=N()(o=this.state.scopes).call(o,[a]);this.setState({scopes:e})}else if(!r&&pe()(n=this.state.scopes).call(n,a)>-1){var c;this.setState({scopes:l()(c=this.state.scopes).call(c,(e=>e!==a))})}})),ie()(this,"onInputChange",(e=>{let{target:{dataset:{name:t},value:n}}=e,s={[t]:n};this.setState(s)})),ie()(this,"selectScopes",(e=>{var t;e.target.dataset.all?this.setState({scopes:Ie()(qe()(t=this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).call(t))}):this.setState({scopes:[]})})),ie()(this,"logout",(e=>{e.preventDefault();let{authActions:t,errActions:n,name:s}=this.props;n.clear({authId:s,type:"auth",source:"auth"}),t.logoutWithPersistOption([s])}));let{name:n,schema:s,authorized:r,authSelectors:a}=this.props,o=r&&r.get(n),c=a.getConfigs()||{},i=o&&o.get("username")||"",u=o&&o.get("clientId")||c.clientId||"",p=o&&o.get("clientSecret")||c.clientSecret||"",m=o&&o.get("passwordType")||"basic",d=o&&o.get("scopes")||c.scopes||[];"string"==typeof d&&(d=d.split(c.scopeSeparator||" ")),this.state={appName:c.appName,name:n,schema:s,scopes:d,clientId:u,clientSecret:p,username:i,password:"",passwordType:m}}render(){var e,t;let{schema:n,getComponent:s,authSelectors:r,errSelectors:a,name:o,specSelectors:c}=this.props;const i=s("Input"),u=s("Row"),p=s("Col"),m=s("Button"),d=s("authError"),h=s("JumpToPath",!0),g=s("Markdown",!0),f=s("InitializedInput"),{isOAS3:y}=c;let S=y()?n.get("openIdConnectUrl"):null;const v="implicit",E="password",x=y()?S?"authorization_code":"authorizationCode":"accessCode",w=y()?S?"client_credentials":"clientCredentials":"application";let C=!!(r.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,b=n.get("flow"),_=b===x&&C?b+" with PKCE":b,N=n.get("allowedScopes")||n.get("scopes"),O=!!r.authorized().get(o),A=l()(e=a.allErrors()).call(e,(e=>e.get("authId")===o)),I=!l()(A).call(A,(e=>"validation"===e.get("source"))).size,P=n.get("description");return k().createElement("div",null,k().createElement("h4",null,o," (OAuth2, ",_,") ",k().createElement(h,{path:["securityDefinitions",o]})),this.state.appName?k().createElement("h5",null,"Application: ",this.state.appName," "):null,P&&k().createElement(g,{source:n.get("description")}),O&&k().createElement("h6",null,"Authorized"),S&&k().createElement("p",null,"OpenID Connect URL: ",k().createElement("code",null,S)),(b===v||b===x)&&k().createElement("p",null,"Authorization URL: ",k().createElement("code",null,n.get("authorizationUrl"))),(b===E||b===x||b===w)&&k().createElement("p",null,"Token URL:",k().createElement("code",null," ",n.get("tokenUrl"))),k().createElement("p",{className:"flow"},"Flow: ",k().createElement("code",null,_)),b!==E?null:k().createElement(u,null,k().createElement(u,null,k().createElement("label",{htmlFor:"oauth_username"},"username:"),O?k().createElement("code",null," ",this.state.username," "):k().createElement(p,{tablet:10,desktop:10},k().createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),k().createElement(u,null,k().createElement("label",{htmlFor:"oauth_password"},"password:"),O?k().createElement("code",null," ****** "):k().createElement(p,{tablet:10,desktop:10},k().createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),k().createElement(u,null,k().createElement("label",{htmlFor:"password_type"},"Client credentials location:"),O?k().createElement("code",null," ",this.state.passwordType," "):k().createElement(p,{tablet:10,desktop:10},k().createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},k().createElement("option",{value:"basic"},"Authorization header"),k().createElement("option",{value:"request-body"},"Request body"))))),(b===w||b===v||b===x||b===E)&&(!O||O&&this.state.clientId)&&k().createElement(u,null,k().createElement("label",{htmlFor:"client_id"},"client_id:"),O?k().createElement("code",null," ****** "):k().createElement(p,{tablet:10,desktop:10},k().createElement(f,{id:"client_id",type:"text",required:b===E,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(b===w||b===x||b===E)&&k().createElement(u,null,k().createElement("label",{htmlFor:"client_secret"},"client_secret:"),O?k().createElement("code",null," ****** "):k().createElement(p,{tablet:10,desktop:10},k().createElement(f,{id:"client_secret",initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!O&&N&&N.size?k().createElement("div",{className:"scopes"},k().createElement("h2",null,"Scopes:",k().createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),k().createElement("a",{onClick:this.selectScopes},"select none")),j()(N).call(N,((e,t)=>{var n;return k().createElement(u,{key:t},k().createElement("div",{className:"checkbox"},k().createElement(i,{"data-value":t,id:`${t}-${b}-checkbox-${this.state.name}`,disabled:O,checked:Te()(n=this.state.scopes).call(n,t),type:"checkbox",onChange:this.onScopeChange}),k().createElement("label",{htmlFor:`${t}-${b}-checkbox-${this.state.name}`},k().createElement("span",{className:"item"}),k().createElement("div",{className:"text"},k().createElement("p",{className:"name"},t),k().createElement("p",{className:"description"},e)))))})).toArray()):null,j()(t=A.valueSeq()).call(t,((e,t)=>k().createElement(d,{error:e,key:t}))),k().createElement("div",{className:"auth-btn-wrapper"},I&&(O?k().createElement(m,{className:"btn modal-btn auth authorize",onClick:this.logout},"Logout"):k().createElement(m,{className:"btn modal-btn auth authorize",onClick:this.authorize},"Authorize")),k().createElement(m,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class $e extends O.Component{constructor(){super(...arguments),ie()(this,"onClick",(()=>{let{specActions:e,path:t,method:n}=this.props;e.clearResponse(t,n),e.clearRequest(t,n)}))}render(){return k().createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const Ke=e=>{let{headers:t}=e;return k().createElement("div",null,k().createElement("h5",null,"Response headers"),k().createElement("pre",{className:"microlight"},t))},Le=e=>{let{duration:t}=e;return k().createElement("div",null,k().createElement("h5",null,"Request duration"),k().createElement("pre",{className:"microlight"},t," ms"))};class Ve extends k().Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:t,getConfigs:n,displayRequestDuration:s,specSelectors:r,path:a,method:o}=this.props,{showMutatedRequest:l,requestSnippetsEnabled:c}=n(),u=l?r.mutatedRequestFor(a,o):r.requestFor(a,o),p=e.get("status"),m=u.get("url"),d=e.get("headers").toJS(),h=e.get("notDocumented"),g=e.get("error"),f=e.get("text"),y=e.get("duration"),S=i()(d),v=d["content-type"]||d["Content-Type"],E=t("responseBody"),w=j()(S).call(S,(e=>{var t=x()(d[e])?d[e].join():d[e];return k().createElement("span",{className:"headerline",key:e}," ",e,": ",t," ")})),C=0!==w.length,b=t("Markdown",!0),_=t("RequestSnippets",!0),N=t("curl");return k().createElement("div",null,u&&(!0===c||"true"===c?k().createElement(_,{request:u}):k().createElement(N,{request:u,getConfigs:n})),m&&k().createElement("div",null,k().createElement("div",{className:"request-url"},k().createElement("h4",null,"Request URL"),k().createElement("pre",{className:"microlight"},m))),k().createElement("h4",null,"Server response"),k().createElement("table",{className:"responses-table live-responses-table"},k().createElement("thead",null,k().createElement("tr",{className:"responses-header"},k().createElement("td",{className:"col_header response-col_status"},"Code"),k().createElement("td",{className:"col_header response-col_description"},"Details"))),k().createElement("tbody",null,k().createElement("tr",{className:"response"},k().createElement("td",{className:"response-col_status"},p,h?k().createElement("div",{className:"response-undocumented"},k().createElement("i",null," Undocumented ")):null),k().createElement("td",{className:"response-col_description"},g?k().createElement(b,{source:`${""!==e.get("name")?`${e.get("name")}: `:""}${e.get("message")}`}):null,f?k().createElement(E,{content:f,contentType:v,url:m,headers:d,getConfigs:n,getComponent:t}):null,C?k().createElement(Ke,{headers:w}):null,s&&y?k().createElement(Le,{duration:y}):null)))))}}var Ue=n(5623);class Fe extends k().Component{constructor(){super(...arguments),ie()(this,"renderOperationTag",((e,t)=>{const{specSelectors:n,getComponent:s,oas3Selectors:r,layoutSelectors:a,layoutActions:o,getConfigs:l}=this.props,c=n.validOperationMethods(),i=s("OperationContainer",!0),u=s("OperationTag"),p=e.get("operations");return k().createElement(u,{key:"operation-"+t,tagObj:e,tag:t,oas3Selectors:r,layoutSelectors:a,layoutActions:o,getConfigs:l,getComponent:s,specUrl:n.url()},k().createElement("div",{className:"operation-tag-content"},j()(p).call(p,(e=>{const n=e.get("path"),s=e.get("method"),r=P().List(["paths",n,s]);return-1===pe()(c).call(c,s)?null:k().createElement(i,{key:`${n}-${s}`,specPath:r,op:e,path:n,method:s,tag:t})})).toArray()))}))}render(){let{specSelectors:e}=this.props;const t=e.taggedOperations();return 0===t.size?k().createElement("h3",null," No operations defined in spec!"):k().createElement("div",null,j()(t).call(t,this.renderOperationTag).toArray(),t.size<1?k().createElement("h3",null," No operations defined in spec! "):null)}}var ze=n(3543);class Be extends k().Component{render(){const{tagObj:e,tag:t,children:n,oas3Selectors:s,layoutSelectors:r,layoutActions:a,getConfigs:o,getComponent:l,specUrl:c}=this.props;let{docExpansion:i,deepLinking:u}=o();const p=u&&"false"!==u,m=l("Collapse"),d=l("Markdown",!0),h=l("DeepLink"),g=l("Link");let f,y=e.getIn(["tagDetails","description"],null),S=e.getIn(["tagDetails","externalDocs","description"]),v=e.getIn(["tagDetails","externalDocs","url"]);f=(0,$.Wl)(s)&&(0,$.Wl)(s.selectedServer)?(0,ze.mn)(v,c,{selectedServer:s.selectedServer()}):v;let E=["operations-tag",t],x=r.isShown(E,"full"===i||"list"===i);return k().createElement("div",{className:x?"opblock-tag-section is-open":"opblock-tag-section"},k().createElement("h3",{onClick:()=>a.show(E,!x),className:y?"opblock-tag":"opblock-tag no-desc",id:j()(E).call(E,(e=>(0,$.J6)(e))).join("-"),"data-tag":t,"data-is-open":x},k().createElement(h,{enabled:p,isShown:x,path:(0,$.oJ)(t),text:t}),y?k().createElement("small",null,k().createElement(d,{source:y})):k().createElement("small",null),f?k().createElement("div",{className:"info__externaldocs"},k().createElement("small",null,k().createElement(g,{href:(0,$.Nm)(f),onClick:e=>e.stopPropagation(),target:"_blank"},S||f))):null,k().createElement("button",{"aria-expanded":x,className:"expand-operation",title:x?"Collapse operation":"Expand operation",onClick:()=>a.show(E,!x)},k().createElement("svg",{className:"arrow",width:"20",height:"20","aria-hidden":"true",focusable:"false"},k().createElement("use",{href:x?"#large-arrow-up":"#large-arrow-down",xlinkHref:x?"#large-arrow-up":"#large-arrow-down"})))),k().createElement(m,{isOpened:x},n))}}ie()(Be,"defaultProps",{tagObj:P().fromJS({}),tag:""});class We extends O.PureComponent{render(){let{specPath:e,response:t,request:s,toggleShown:r,onTryoutClick:a,onResetClick:o,onCancelClick:l,onExecute:c,fn:i,getComponent:u,getConfigs:p,specActions:m,specSelectors:d,authActions:h,authSelectors:g,oas3Actions:f,oas3Selectors:y}=this.props,S=this.props.operation,{deprecated:v,isShown:E,path:x,method:w,op:C,tag:b,operationId:_,allowTryItOut:N,displayRequestDuration:O,tryItOutEnabled:A,executeInProgress:I}=S.toJS(),{description:P,externalDocs:q,schemes:R}=C;const T=q?(0,ze.mn)(q.url,d.url(),{selectedServer:y.selectedServer()}):"";let M=S.getIn(["op"]),D=M.get("responses"),J=(0,$.gp)(M,["parameters"]),K=d.operationScheme(x,w),L=["operations",b,_],V=(0,$.nX)(M);const U=u("responses"),F=u("parameters"),z=u("execute"),B=u("clear"),W=u("Collapse"),H=u("Markdown",!0),G=u("schemes"),Z=u("OperationServers"),X=u("OperationExt"),Y=u("OperationSummary"),Q=u("Link"),{showExtensions:ee}=p();if(D&&t&&t.size>0){let e=!D.get(String(t.get("status")))&&!D.get("default");t=t.set("notDocumented",e)}let te=[x,w];const ne=d.validationErrors([x,w]);return k().createElement("div",{className:v?"opblock opblock-deprecated":E?`opblock opblock-${w} is-open`:`opblock opblock-${w}`,id:(0,$.J6)(L.join("-"))},k().createElement(Y,{operationProps:S,isShown:E,toggleShown:r,getComponent:u,authActions:h,authSelectors:g,specPath:e}),k().createElement(W,{isOpened:E},k().createElement("div",{className:"opblock-body"},M&&M.size||null===M?null:k().createElement("img",{height:"32px",width:"32px",src:n(2517),className:"opblock-loading-animation"}),v&&k().createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),P&&k().createElement("div",{className:"opblock-description-wrapper"},k().createElement("div",{className:"opblock-description"},k().createElement(H,{source:P}))),T?k().createElement("div",{className:"opblock-external-docs-wrapper"},k().createElement("h4",{className:"opblock-title_normal"},"Find more details"),k().createElement("div",{className:"opblock-external-docs"},q.description&&k().createElement("span",{className:"opblock-external-docs__description"},k().createElement(H,{source:q.description})),k().createElement(Q,{target:"_blank",className:"opblock-external-docs__link",href:(0,$.Nm)(T)},T))):null,M&&M.size?k().createElement(F,{parameters:J,specPath:e.push("parameters"),operation:M,onChangeKey:te,onTryoutClick:a,onResetClick:o,onCancelClick:l,tryItOutEnabled:A,allowTryItOut:N,fn:i,getComponent:u,specActions:m,specSelectors:d,pathMethod:[x,w],getConfigs:p,oas3Actions:f,oas3Selectors:y}):null,A?k().createElement(Z,{getComponent:u,path:x,method:w,operationServers:M.get("servers"),pathServers:d.paths().getIn([x,"servers"]),getSelectedServer:y.selectedServer,setSelectedServer:f.setSelectedServer,setServerVariableValue:f.setServerVariableValue,getServerVariable:y.serverVariableValue,getEffectiveServerValue:y.serverEffectiveValue}):null,A&&N&&R&&R.size?k().createElement("div",{className:"opblock-schemes"},k().createElement(G,{schemes:R,path:x,method:w,specActions:m,currentScheme:K})):null,!A||!N||ne.length<=0?null:k().createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",k().createElement("ul",null,j()(ne).call(ne,((e,t)=>k().createElement("li",{key:t}," ",e," "))))),k().createElement("div",{className:A&&t&&N?"btn-group":"execute-wrapper"},A&&N?k().createElement(z,{operation:M,specActions:m,specSelectors:d,oas3Selectors:y,oas3Actions:f,path:x,method:w,onExecute:c,disabled:I}):null,A&&t&&N?k().createElement(B,{specActions:m,path:x,method:w}):null),I?k().createElement("div",{className:"loading-container"},k().createElement("div",{className:"loading"})):null,D?k().createElement(U,{responses:D,request:s,tryItOutResponse:t,getComponent:u,getConfigs:p,specSelectors:d,oas3Actions:f,oas3Selectors:y,specActions:m,produces:d.producesOptionsFor([x,w]),producesValue:d.currentProducesFor([x,w]),specPath:e.push("responses"),path:x,method:w,displayRequestDuration:O,fn:i}):null,ee&&V.size?k().createElement(X,{extensions:V,getComponent:u}):null)))}}ie()(We,"defaultProps",{operation:null,response:null,request:null,specPath:(0,I.List)(),summary:""});const He=require("lodash/toString");var Ge=n.n(He);class Ze extends O.PureComponent{render(){let{isShown:e,toggleShown:t,getComponent:n,authActions:s,authSelectors:r,operationProps:a,specPath:o}=this.props,{summary:l,isAuthorized:c,method:i,op:u,showSummary:p,path:m,operationId:d,originalOperationId:h,displayOperationId:g}=a.toJS(),{summary:f}=u,y=a.get("security");const S=n("authorizeOperationBtn"),v=n("OperationSummaryMethod"),E=n("OperationSummaryPath"),x=n("JumpToPath",!0),w=n("CopyToClipboardBtn",!0),C=y&&!!y.count(),b=C&&1===y.size&&y.first().isEmpty(),j=!C||b;return k().createElement("div",{className:`opblock-summary opblock-summary-${i}`},k().createElement("button",{"aria-label":`${i} ${m.replace(/\//g,"​/")}`,"aria-expanded":e,className:"opblock-summary-control",onClick:t},k().createElement(v,{method:i}),k().createElement(E,{getComponent:n,operationProps:a,specPath:o}),p?k().createElement("div",{className:"opblock-summary-description"},Ge()(f||l)):null,g&&(h||d)?k().createElement("span",{className:"opblock-summary-operation-id"},h||d):null,k().createElement("svg",{className:"arrow",width:"20",height:"20","aria-hidden":"true",focusable:"false"},k().createElement("use",{href:e?"#large-arrow-up":"#large-arrow-down",xlinkHref:e?"#large-arrow-up":"#large-arrow-down"}))),j?null:k().createElement(S,{isAuthorized:c,onClick:()=>{const e=r.definitionsForRequirements(y);s.showDefinitions(e)}}),k().createElement(w,{textToCopy:`${o.get(1)}`}),k().createElement(x,{path:o}))}}ie()(Ze,"defaultProps",{operationProps:null,specPath:(0,I.List)(),summary:""});class Xe extends O.PureComponent{render(){let{method:e}=this.props;return k().createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}ie()(Xe,"defaultProps",{operationProps:null});const Ye=require("@babel/runtime-corejs3/core-js-stable/instance/splice");var Qe=n.n(Ye);class et extends O.PureComponent{render(){let{getComponent:e,operationProps:t}=this.props,{deprecated:n,isShown:s,path:r,tag:a,operationId:o,isDeepLinkingEnabled:l}=t.toJS();const c=r.split(/(?=\/)/g);for(let e=1;e<c.length;e+=2)Qe()(c).call(c,e,0,k().createElement("wbr",{key:e}));const i=e("DeepLink");return k().createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":r},k().createElement(i,{enabled:l,isShown:s,path:(0,$.oJ)(`${a}/${o}`),text:c}))}}const tt=e=>{var t;let{extensions:n,getComponent:s}=e,r=s("OperationExtRow");return k().createElement("div",{className:"opblock-section"},k().createElement("div",{className:"opblock-section-header"},k().createElement("h4",null,"Extensions")),k().createElement("div",{className:"table-container"},k().createElement("table",null,k().createElement("thead",null,k().createElement("tr",null,k().createElement("td",{className:"col_header"},"Field"),k().createElement("td",{className:"col_header"},"Value"))),k().createElement("tbody",null,j()(t=n.entrySeq()).call(t,(e=>{let[t,n]=e;return k().createElement(r,{key:`${t}-${n}`,xKey:t,xVal:n})}))))))},nt=e=>{let{xKey:t,xVal:n}=e;const s=n?n.toJS?n.toJS():n:null;return k().createElement("tr",null,k().createElement("td",null,t),k().createElement("td",null,p()(s)))};var st=n(4235),rt=n.n(st),at=n(9003),ot=n.n(at),lt=n(6068),ct=n(1712),it=n.n(ct),ut=n(5716),pt=n.n(ut);const mt=require("js-file-download");var dt=n.n(mt),ht=n(2807);const gt=e=>{let{value:t,fileName:n,className:s,downloadable:r,getConfigs:a,canCopy:o,language:c}=e;const i=pt()(a)?a():null,u=!1!==it()(i,"syntaxHighlight")&&it()(i,"syntaxHighlight.activated",!0),p=(0,O.useRef)(null);(0,O.useEffect)((()=>{var e;const t=l()(e=Ie()(p.current.childNodes)).call(e,(e=>!!e.nodeType&&e.classList.contains("microlight")));return rt()(t).call(t,(e=>e.addEventListener("mousewheel",m,{passive:!1}))),()=>{rt()(t).call(t,(e=>e.removeEventListener("mousewheel",m)))}}),[t,s,c]);const m=e=>{const{target:t,deltaY:n}=e,{scrollHeight:s,offsetHeight:r,scrollTop:a}=t;s>r&&(0===a&&n<0||r+a>=s&&n>0)&&e.preventDefault()};return k().createElement("div",{className:"highlight-code",ref:p},r?k().createElement("div",{className:"download-contents",onClick:()=>{dt()(t,n)}},"Download"):null,o&&k().createElement("div",{className:"copy-to-clipboard"},k().createElement(ht.CopyToClipboard,{text:t},k().createElement("button",null))),u?k().createElement(lt.d3,{language:c,className:ot()(s,"microlight"),style:(0,lt.C2)(it()(i,"syntaxHighlight.theme","agate"))},t):k().createElement("pre",{className:ot()(s,"microlight")},t))};gt.defaultProps={fileName:"response.txt"};const ft=gt;class yt extends k().Component{constructor(){super(...arguments),ie()(this,"onChangeProducesWrapper",(e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e))),ie()(this,"onResponseContentTypeChange",(e=>{let{controlsAcceptHeader:t,value:n}=e;const{oas3Actions:s,path:r,method:a}=this.props;t&&s.setResponseContentType({value:n,path:r,method:a})}))}render(){var e;let{responses:t,tryItOutResponse:n,getComponent:s,getConfigs:r,specSelectors:a,fn:o,producesValue:l,displayRequestDuration:c,specPath:i,path:u,method:p,oas3Selectors:m,oas3Actions:d}=this.props,h=(0,$.iQ)(t);const g=s("contentType"),f=s("liveResponse"),y=s("response");let S=this.props.produces&&this.props.produces.size?this.props.produces:yt.defaultProps.produces;const v=a.isOAS3()?(0,$.QG)(t):null,E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.replace(/[^\w-]/g,t)}(`${p}${u}_responses`),x=`${E}_select`;return k().createElement("div",{className:"responses-wrapper"},k().createElement("div",{className:"opblock-section-header"},k().createElement("h4",null,"Responses"),a.isOAS3()?null:k().createElement("label",{htmlFor:x},k().createElement("span",null,"Response content type"),k().createElement(g,{value:l,ariaControls:E,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:S,controlId:x,onChange:this.onChangeProducesWrapper}))),k().createElement("div",{className:"responses-inner"},n?k().createElement("div",null,k().createElement(f,{response:n,getComponent:s,getConfigs:r,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),k().createElement("h4",null,"Responses")):null,k().createElement("table",{"aria-live":"polite",className:"responses-table",id:E,role:"region"},k().createElement("thead",null,k().createElement("tr",{className:"responses-header"},k().createElement("td",{className:"col_header response-col_status"},"Code"),k().createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?k().createElement("td",{className:"col col_header response-col_links"},"Links"):null)),k().createElement("tbody",null,j()(e=t.entrySeq()).call(e,(e=>{let[t,c]=e,g=n&&n.get("status")==t?"response_current":"";return k().createElement(y,{key:t,path:u,method:p,specPath:i.push(t),isDefault:h===t,fn:o,className:g,code:t,response:c,specSelectors:a,controlsAcceptHeader:c===v,onContentTypeChange:this.onResponseContentTypeChange,contentType:l,getConfigs:r,activeExamplesKey:m.activeExamplesMember(u,p,"responses",t),oas3Actions:d,getComponent:s})})).toArray()))))}}ie()(yt,"defaultProps",{tryItOutResponse:null,produces:(0,I.fromJS)(["application/json"]),displayRequestDuration:!1});const St=require("@babel/runtime-corejs3/core-js-stable/instance/values");var vt=n.n(St),Et=n(2518);class xt extends k().Component{constructor(e,t){super(e,t),ie()(this,"_onContentTypeChange",(e=>{const{onContentTypeChange:t,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),t({value:e,controlsAcceptHeader:n})})),ie()(this,"getTargetExamplesKey",(()=>{const{response:e,contentType:t,activeExamplesKey:n}=this.props,s=this.state.responseContentType||t,r=e.getIn(["content",s],(0,I.Map)({})).get("examples",null).keySeq().first();return n||r})),this.state={responseContentType:""}}render(){var e,t;let{path:n,method:s,code:r,response:a,className:o,specPath:l,fn:c,getComponent:i,getConfigs:u,specSelectors:p,contentType:m,controlsAcceptHeader:d,oas3Actions:h}=this.props,{inferSchema:g,getSampleSchema:f}=c,y=p.isOAS3();const{showExtensions:S}=u();let v=S?(0,$.nX)(a):null,E=a.get("headers"),x=a.get("links");const w=i("ResponseExtension"),C=i("headers"),b=i("highlightCode"),_=i("modelExample"),N=i("Markdown",!0),O=i("operationLink"),A=i("contentType"),P=i("ExamplesSelect"),q=i("Example");var R,T;const M=this.state.responseContentType||m,D=a.getIn(["content",M],(0,I.Map)({})),J=D.get("examples",null);if(y){const e=D.get("schema");R=e?g(e.toJS()):null,T=e?(0,I.List)(["content",this.state.responseContentType,"schema"]):l}else R=a.get("schema"),T=a.has("schema")?l.push("schema"):l;let K,L,V=!1,U={includeReadOnly:!0};if(y){var F;if(L=null===(F=D.get("schema"))||void 0===F?void 0:F.toJS(),J){const e=this.getTargetExamplesKey(),t=e=>e.get("value");K=t(J.get(e,(0,I.Map)({}))),void 0===K&&(K=t(vt()(J).call(J).next().value)),V=!0}else void 0!==D.get("example")&&(K=D.get("example"),V=!0)}else{L=R,U={...U,includeWriteOnly:!0};const e=a.getIn(["examples",M]);e&&(K=e,V=!0)}let z=((e,t,n)=>{if(null!=e){let s=null;return(0,Et.O)(e)&&(s="json"),k().createElement("div",null,k().createElement(t,{className:"example",getConfigs:n,language:s,value:(0,$.Pz)(e)}))}return null})(f(L,M,U,V?K:void 0),b,u);return k().createElement("tr",{className:"response "+(o||""),"data-code":r},k().createElement("td",{className:"response-col_status"},r),k().createElement("td",{className:"response-col_description"},k().createElement("div",{className:"response-col_description__inner"},k().createElement(N,{source:a.get("description")})),S&&v.size?j()(e=v.entrySeq()).call(e,(e=>{let[t,n]=e;return k().createElement(w,{key:`${t}-${n}`,xKey:t,xVal:n})})):null,y&&a.get("content")?k().createElement("section",{className:"response-controls"},k().createElement("div",{className:ot()("response-control-media-type",{"response-control-media-type--accept-controller":d})},k().createElement("small",{className:"response-control-media-type__title"},"Media type"),k().createElement(A,{value:this.state.responseContentType,contentTypes:a.get("content")?a.get("content").keySeq():(0,I.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),d?k().createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",k().createElement("code",null,"Accept")," header."):null),J?k().createElement("div",{className:"response-control-examples"},k().createElement("small",{className:"response-control-examples__title"},"Examples"),k().createElement(P,{examples:J,currentExampleKey:this.getTargetExamplesKey(),onSelect:e=>h.setActiveExamplesMember({name:e,pathMethod:[n,s],contextType:"responses",contextName:r}),showLabels:!1})):null):null,z||R?k().createElement(_,{specPath:T,getComponent:i,getConfigs:u,specSelectors:p,schema:(0,$.oG)(R),example:z,includeReadOnly:!0}):null,y&&J?k().createElement(q,{example:J.get(this.getTargetExamplesKey(),(0,I.Map)({})),getComponent:i,getConfigs:u,omitValue:!0}):null,E?k().createElement(C,{headers:E,getComponent:i}):null),y?k().createElement("td",{className:"response-col_links"},x?j()(t=x.toSeq().entrySeq()).call(t,(e=>{let[t,n]=e;return k().createElement(O,{key:t,name:t,link:n,getComponent:i})})):k().createElement("i",null,"No links")):null)}}ie()(xt,"defaultProps",{response:(0,I.fromJS)({}),onContentTypeChange:()=>{}});const wt=e=>{let{xKey:t,xVal:n}=e;return k().createElement("div",{className:"response__extension"},t,": ",String(n))};var Ct=n(9478),bt=n.n(Ct);const jt=require("xml-but-prettier");var _t=n.n(jt);const Nt=require("lodash/toLower");var Ot=n.n(Nt);class kt extends k().PureComponent{constructor(){super(...arguments),ie()(this,"state",{parsedContent:null}),ie()(this,"updateParsedContent",(e=>{const{content:t}=this.props;if(e!==t)if(t&&t instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(t)}else this.setState({parsedContent:t.toString()})}))}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:t,url:n,headers:s={},getConfigs:r,getComponent:o}=this.props;const{parsedContent:l}=this.state,c=o("highlightCode"),i="response_"+(new Date).getTime();let u,m;if(n=n||"",(/^application\/octet-stream/i.test(t)||s["Content-Disposition"]&&/attachment/i.test(s["Content-Disposition"])||s["content-disposition"]&&/attachment/i.test(s["content-disposition"])||s["Content-Description"]&&/File Transfer/i.test(s["Content-Description"])||s["content-description"]&&/File Transfer/i.test(s["content-description"]))&&e.size>0)if("Blob"in window){let r=t||"text/html",o=e instanceof Blob?e:new Blob([e],{type:r}),l=bt().createObjectURL(o),c=[r,n.substr(a()(n).call(n,"/")+1),l].join(":"),i=s["content-disposition"]||s["Content-Disposition"];if(void 0!==i){let e=(0,$.DR)(i);null!==e&&(c=e)}m=J.Z.navigator&&J.Z.navigator.msSaveOrOpenBlob?k().createElement("div",null,k().createElement("a",{href:l,onClick:()=>J.Z.navigator.msSaveOrOpenBlob(o,c)},"Download file")):k().createElement("div",null,k().createElement("a",{href:l,download:c},"Download file"))}else m=k().createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(t)){let t=null;(0,Et.O)(e)&&(t="json");try{u=p()(JSON.parse(e),null," ")}catch(t){u="can't parse JSON. Raw result:\n\n"+e}m=k().createElement(c,{language:t,downloadable:!0,fileName:`${i}.json`,value:u,getConfigs:r,canCopy:!0})}else/xml/i.test(t)?(u=_t()(e,{textNodesOnSameLine:!0,indentor:" "}),m=k().createElement(c,{downloadable:!0,fileName:`${i}.xml`,value:u,getConfigs:r,canCopy:!0})):m="text/html"===Ot()(t)||/text\/plain/.test(t)?k().createElement(c,{downloadable:!0,fileName:`${i}.html`,value:e,getConfigs:r,canCopy:!0}):"text/csv"===Ot()(t)||/text\/csv/.test(t)?k().createElement(c,{downloadable:!0,fileName:`${i}.csv`,value:e,getConfigs:r,canCopy:!0}):/^image\//i.test(t)?Te()(t).call(t,"svg")?k().createElement("div",null," ",e," "):k().createElement("img",{src:bt().createObjectURL(e)}):/^audio\//i.test(t)?k().createElement("pre",{className:"microlight"},k().createElement("audio",{controls:!0,key:n},k().createElement("source",{src:n,type:t}))):"string"==typeof e?k().createElement(c,{downloadable:!0,fileName:`${i}.txt`,value:e,getConfigs:r,canCopy:!0}):e.size>0?l?k().createElement("div",null,k().createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),k().createElement(c,{downloadable:!0,fileName:`${i}.txt`,value:l,getConfigs:r,canCopy:!0})):k().createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return m?k().createElement("div",null,k().createElement("h5",null,"Response body"),m):null}}var At=n(9968),It=n.n(At);class Pt extends O.Component{constructor(e){super(e),ie()(this,"onChange",((e,t,n)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:r}=this.props;s(r,e,t,n)})),ie()(this,"onChangeConsumesWrapper",(e=>{let{specActions:{changeConsumesValue:t},onChangeKey:n}=this.props;t(n,e)})),ie()(this,"toggleTab",(e=>"parameters"===e?this.setState({parametersVisible:!0,callbackVisible:!1}):"callbacks"===e?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0)),ie()(this,"onChangeMediaType",(e=>{let{value:t,pathMethod:n}=e,{specActions:s,oas3Selectors:r,oas3Actions:a}=this.props;const o=r.hasUserEditedBody(...n),l=r.shouldRetainRequestBodyValue(...n);a.setRequestContentType({value:t,pathMethod:n}),a.initRequestBodyValidateError({pathMethod:n}),o||(l||a.setRequestBodyValue({value:void 0,pathMethod:n}),s.clearResponse(...n),s.clearRequest(...n),s.clearValidateParams(n))})),this.state={callbackVisible:!1,parametersVisible:!0}}render(){var e;let{onTryoutClick:t,onResetClick:n,parameters:s,allowTryItOut:r,tryItOutEnabled:a,specPath:o,fn:l,getComponent:c,getConfigs:i,specSelectors:u,specActions:p,pathMethod:m,oas3Actions:d,oas3Selectors:h,operation:g}=this.props;const f=c("parameterRow"),y=c("TryItOutButton"),S=c("contentType"),E=c("Callbacks",!0),x=c("RequestBody",!0),w=a&&r,b=u.isOAS3(),_=g.get("requestBody"),O=C()(e=It()(C()(s).call(s,((e,t)=>{const n=t.get("in");return e[n]??(e[n]=[]),e[n].push(t),e}),{}))).call(e,((e,t)=>N()(e).call(e,t)),[]);return k().createElement("div",{className:"opblock-section"},k().createElement("div",{className:"opblock-section-header"},b?k().createElement("div",{className:"tab-header"},k().createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},k().createElement("h4",{className:"opblock-title"},k().createElement("span",null,"Parameters"))),g.get("callbacks")?k().createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},k().createElement("h4",{className:"opblock-title"},k().createElement("span",null,"Callbacks"))):null):k().createElement("div",{className:"tab-header"},k().createElement("h4",{className:"opblock-title"},"Parameters")),r?k().createElement(y,{isOAS3:u.isOAS3(),hasUserEditedBody:h.hasUserEditedBody(...m),enabled:a,onCancelClick:this.props.onCancelClick,onTryoutClick:t,onResetClick:()=>n(m)}):null),this.state.parametersVisible?k().createElement("div",{className:"parameters-container"},O.length?k().createElement("div",{className:"table-container"},k().createElement("table",{className:"parameters"},k().createElement("thead",null,k().createElement("tr",null,k().createElement("th",{className:"col_header parameters-col_name"},"Name"),k().createElement("th",{className:"col_header parameters-col_description"},"Description"))),k().createElement("tbody",null,j()(O).call(O,((e,t)=>k().createElement(f,{fn:l,specPath:o.push(t.toString()),getComponent:c,getConfigs:i,rawParam:e,param:u.parameterWithMetaByIdentity(m,e),key:`${e.get("in")}.${e.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:u,specActions:p,oas3Actions:d,oas3Selectors:h,pathMethod:m,isExecute:w})))))):k().createElement("div",{className:"opblock-description-wrapper"},k().createElement("p",null,"No parameters"))):null,this.state.callbackVisible?k().createElement("div",{className:"callbacks-container opblock-description-wrapper"},k().createElement(E,{callbacks:(0,I.Map)(g.get("callbacks")),specPath:v()(o).call(o,0,-1).push("callbacks")})):null,b&&_&&this.state.parametersVisible&&k().createElement("div",{className:"opblock-section opblock-section-request-body"},k().createElement("div",{className:"opblock-section-header"},k().createElement("h4",{className:`opblock-title parameter__name ${_.get("required")&&"required"}`},"Request body"),k().createElement("label",null,k().createElement(S,{value:h.requestContentType(...m),contentTypes:_.get("content",(0,I.List)()).keySeq(),onChange:e=>{this.onChangeMediaType({value:e,pathMethod:m})},className:"body-param-content-type",ariaLabel:"Request content type"}))),k().createElement("div",{className:"opblock-description-wrapper"},k().createElement(x,{setRetainRequestBodyValueFlag:e=>d.setRetainRequestBodyValueFlag({value:e,pathMethod:m}),userHasEditedBody:h.hasUserEditedBody(...m),specPath:v()(o).call(o,0,-1).push("requestBody"),requestBody:_,requestBodyValue:h.requestBodyValue(...m),requestBodyInclusionSetting:h.requestBodyInclusionSetting(...m),requestBodyErrors:h.requestBodyErrors(...m),isExecute:w,getConfigs:i,activeExamplesKey:h.activeExamplesMember(...m,"requestBody","requestBody"),updateActiveExamplesKey:e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(e,t)=>{if(t){const n=h.requestBodyValue(...m),s=I.Map.isMap(n)?n:(0,I.Map)();return d.setRequestBodyValue({pathMethod:m,value:s.setIn(t,e)})}d.setRequestBodyValue({value:e,pathMethod:m})},onChangeIncludeEmpty:(e,t)=>{d.setRequestBodyInclusion({pathMethod:m,value:t,name:e})},contentType:h.requestContentType(...m)}))))}}ie()(Pt,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});const qt=e=>{let{xKey:t,xVal:n}=e;return k().createElement("div",{className:"parameter__extension"},t,": ",String(n))},Rt={onChange:()=>{},isIncludedOptions:{}};class Tt extends O.Component{constructor(){super(...arguments),ie()(this,"onCheckboxChange",(e=>{const{onChange:t}=this.props;t(e.target.checked)}))}componentDidMount(){const{isIncludedOptions:e,onChange:t}=this.props,{shouldDispatchInit:n,defaultValue:s}=e;n&&t(s)}render(){let{isIncluded:e,isDisabled:t}=this.props;return k().createElement("div",null,k().createElement("label",{className:ot()("parameter__empty_value_toggle",{disabled:t})},k().createElement("input",{type:"checkbox",disabled:t,checked:!t&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}ie()(Tt,"defaultProps",Rt);var Mt=n(9069);class Dt extends O.Component{constructor(e,t){var n;super(e,t),n=this,ie()(this,"onChangeWrapper",(function(e){let t,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{onChange:r,rawParam:a}=n.props;return t=""===e||e&&0===e.size?null:e,r(a,t,s)})),ie()(this,"_onExampleSelect",(e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})})),ie()(this,"onChangeIncludeEmpty",(e=>{let{specActions:t,param:n,pathMethod:s}=this.props;const r=n.get("name"),a=n.get("in");return t.updateEmptyParamInclusion(s,r,a,e)})),ie()(this,"setDefaultValue",(()=>{let{specSelectors:e,pathMethod:t,rawParam:n,oas3Selectors:s,fn:r}=this.props;const a=e.parameterWithMetaByIdentity(t,n)||(0,I.Map)(),{schema:o}=(0,Mt.Z)(a,{isOAS3:e.isOAS3()}),l=a.get("content",(0,I.Map)()).keySeq().first(),c=o?r.getSampleSchema(o.toJS(),l,{includeWriteOnly:!0}):null;if(a&&void 0===a.get("value")&&"body"!==a.get("in")){let n;if(e.isSwagger2())n=void 0!==a.get("x-example")?a.get("x-example"):void 0!==a.getIn(["schema","example"])?a.getIn(["schema","example"]):o&&o.getIn(["default"]);else if(e.isOAS3()){const e=s.activeExamplesMember(...t,"parameters",this.getParamKey());n=void 0!==a.getIn(["examples",e,"value"])?a.getIn(["examples",e,"value"]):void 0!==a.getIn(["content",l,"example"])?a.getIn(["content",l,"example"]):void 0!==a.get("example")?a.get("example"):void 0!==(o&&o.get("example"))?o&&o.get("example"):void 0!==(o&&o.get("default"))?o&&o.get("default"):a.get("default")}void 0===n||I.List.isList(n)||(n=(0,$.Pz)(n)),void 0!==n?this.onChangeWrapper(n):o&&"object"===o.get("type")&&c&&!a.get("examples")&&this.onChangeWrapper(I.List.isList(c)?c:(0,$.Pz)(c))}})),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let t,{specSelectors:n,pathMethod:s,rawParam:r}=e,a=n.isOAS3(),o=n.parameterWithMetaByIdentity(s,r)||new I.Map;if(o=o.isEmpty()?r:o,a){let{schema:e}=(0,Mt.Z)(o,{isOAS3:a});t=e?e.get("enum"):void 0}else t=o?o.get("enum"):void 0;let l,c=o?o.get("value"):void 0;void 0!==c?l=c:r.get("required")&&t&&t.size&&(l=t.first()),void 0!==l&&l!==c&&this.onChangeWrapper((0,$.D$)(l)),this.setDefaultValue()}getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}render(){var e,t;let{param:n,rawParam:s,getComponent:r,getConfigs:a,isExecute:o,fn:l,onChangeConsumes:c,specSelectors:i,pathMethod:u,specPath:p,oas3Selectors:m}=this.props,d=i.isOAS3();const{showExtensions:h,showCommonExtensions:g}=a();if(n||(n=s),!s)return null;const f=r("JsonSchemaForm"),y=r("ParamBody");let S=n.get("in"),v="body"!==S?null:k().createElement(y,{getComponent:r,getConfigs:a,fn:l,param:n,consumes:i.consumesOptionsFor(u),consumesValue:i.contentTypeValues(u).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:c,isExecute:o,specSelectors:i,pathMethod:u});const E=r("modelExample"),x=r("Markdown",!0),w=r("ParameterExt"),C=r("ParameterIncludeEmpty"),b=r("ExamplesSelectValueRetainer"),_=r("Example");let N,O,A,P,{schema:q}=(0,Mt.Z)(n,{isOAS3:d}),R=i.parameterWithMetaByIdentity(u,s)||(0,I.Map)(),T=q?q.get("format"):null,M=q?q.get("type"):null,D=q?q.getIn(["items","type"]):null,K="formData"===S,L="FormData"in J.Z,V=n.get("required"),U=R?R.get("value"):"",F=g?(0,$.po)(q):null,z=h?(0,$.nX)(n):null,B=!1;return void 0!==n&&q&&(N=q.get("items")),void 0!==N?(O=N.get("enum"),A=N.get("default")):q&&(O=q.get("enum")),O&&O.size&&O.size>0&&(B=!0),void 0!==n&&(q&&(A=q.get("default")),void 0===A&&(A=n.get("default")),P=n.get("example"),void 0===P&&(P=n.get("x-example"))),k().createElement("tr",{"data-param-name":n.get("name"),"data-param-in":n.get("in")},k().createElement("td",{className:"parameters-col_name"},k().createElement("div",{className:V?"parameter__name required":"parameter__name"},n.get("name"),V?k().createElement("span",null," *"):null),k().createElement("div",{className:"parameter__type"},M,D&&`[${D}]`,T&&k().createElement("span",{className:"prop-format"},"($",T,")")),k().createElement("div",{className:"parameter__deprecated"},d&&n.get("deprecated")?"deprecated":null),k().createElement("div",{className:"parameter__in"},"(",n.get("in"),")"),g&&F.size?j()(e=F.entrySeq()).call(e,(e=>{let[t,n]=e;return k().createElement(w,{key:`${t}-${n}`,xKey:t,xVal:n})})):null,h&&z.size?j()(t=z.entrySeq()).call(t,(e=>{let[t,n]=e;return k().createElement(w,{key:`${t}-${n}`,xKey:t,xVal:n})})):null),k().createElement("td",{className:"parameters-col_description"},n.get("description")?k().createElement(x,{source:n.get("description")}):null,!v&&o||!B?null:k().createElement(x,{className:"parameter__enum",source:"<i>Available values</i> : "+j()(O).call(O,(function(e){return e})).toArray().join(", ")}),!v&&o||void 0===A?null:k().createElement(x,{className:"parameter__default",source:"<i>Default value</i> : "+A}),!v&&o||void 0===P?null:k().createElement(x,{source:"<i>Example</i> : "+P}),K&&!L&&k().createElement("div",null,"Error: your browser does not support FormData"),d&&n.get("examples")?k().createElement("section",{className:"parameter-controls"},k().createElement(b,{examples:n.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:r,defaultToFirstExample:!0,currentKey:m.activeExamplesMember(...u,"parameters",this.getParamKey()),currentUserInputValue:U})):null,v?null:k().createElement(f,{fn:l,getComponent:r,value:U,required:V,disabled:!o,description:n.get("name"),onChange:this.onChangeWrapper,errors:R.get("errors"),schema:q}),v&&q?k().createElement(E,{getComponent:r,specPath:p.push("schema"),getConfigs:a,isExecute:o,specSelectors:i,schema:q,example:v,includeWriteOnly:!0}):null,!v&&o&&n.get("allowEmptyValue")?k().createElement(C,{onChange:this.onChangeIncludeEmpty,isIncluded:i.parameterInclusionSettingFor(u,n.get("name"),n.get("in")),isDisabled:!(0,$.O2)(U)}):null,d&&n.get("examples")?k().createElement(_,{example:n.getIn(["examples",m.activeExamplesMember(...u,"parameters",this.getParamKey())]),getComponent:r,getConfigs:a}):null))}}var Jt=n(9300),$t=n.n(Jt);class Kt extends O.Component{constructor(){super(...arguments),ie()(this,"handleValidateParameters",(()=>{let{specSelectors:e,specActions:t,path:n,method:s}=this.props;return t.validateParams([n,s]),e.validateBeforeExecute([n,s])})),ie()(this,"handleValidateRequestBody",(()=>{let{path:e,method:t,specSelectors:n,oas3Selectors:s,oas3Actions:r}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};r.clearRequestBodyValidateError({path:e,method:t});let o=n.getOAS3RequiredRequestBodyContentType([e,t]),l=s.requestBodyValue(e,t),c=s.validateBeforeExecute([e,t]),i=s.requestContentType(e,t);if(!c)return a.missingBodyValue=!0,r.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1;if(!o)return!0;let u=s.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:i,oas3RequestBodyValue:l});return!u||u.length<1||(rt()(u).call(u,(e=>{a.missingRequiredKeys.push(e)})),r.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1)})),ie()(this,"handleValidationResultPass",(()=>{let{specActions:e,operation:t,path:n,method:s}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:t,path:n,method:s})})),ie()(this,"handleValidationResultFail",(()=>{let{specActions:e,path:t,method:n}=this.props;e.clearValidateParams([t,n]),$t()((()=>{e.validateParams([t,n])}),40)})),ie()(this,"handleValidationResult",(e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()})),ie()(this,"onClick",(()=>{let e=this.handleValidateParameters(),t=this.handleValidateRequestBody(),n=e&&t;this.handleValidationResult(n)})),ie()(this,"onChangeProducesWrapper",(e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e)))}render(){const{disabled:e}=this.props;return k().createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class Lt extends k().Component{render(){var e;let{headers:t,getComponent:n}=this.props;const s=n("Property"),r=n("Markdown",!0);return t&&t.size?k().createElement("div",{className:"headers-wrapper"},k().createElement("h4",{className:"headers__title"},"Headers:"),k().createElement("table",{className:"headers"},k().createElement("thead",null,k().createElement("tr",{className:"header-row"},k().createElement("th",{className:"header-col"},"Name"),k().createElement("th",{className:"header-col"},"Description"),k().createElement("th",{className:"header-col"},"Type"))),k().createElement("tbody",null,j()(e=t.entrySeq()).call(e,(e=>{let[t,n]=e;if(!P().Map.isMap(n))return null;const a=n.get("description"),o=n.getIn(["schema"])?n.getIn(["schema","type"]):n.getIn(["type"]),l=n.getIn(["schema","example"]);return k().createElement("tr",{key:t},k().createElement("td",{className:"header-col"},t),k().createElement("td",{className:"header-col"},a?k().createElement(r,{source:a}):null),k().createElement("td",{className:"header-col"},o," ",l?k().createElement(s,{propKey:"Example",propVal:l,propClass:"header-example"}):null))})).toArray()))):null}}class Vt extends k().Component{render(){let{editorActions:e,errSelectors:t,layoutSelectors:n,layoutActions:s,getComponent:r}=this.props;const a=r("Collapse");if(e&&e.jumpToLine)var o=e.jumpToLine;let c=t.allErrors(),i=l()(c).call(c,(e=>"thrown"===e.get("type")||"error"===e.get("level")));if(!i||i.count()<1)return null;let u=n.isShown(["errorPane"],!0),p=i.sortBy((e=>e.get("line")));return k().createElement("pre",{className:"errors-wrapper"},k().createElement("hgroup",{className:"error"},k().createElement("h4",{className:"errors__title"},"Errors"),k().createElement("button",{className:"btn errors__clear-btn",onClick:()=>s.show(["errorPane"],!u)},u?"Hide":"Show")),k().createElement(a,{isOpened:u,animated:!0},k().createElement("div",{className:"errors"},j()(p).call(p,((e,t)=>{let n=e.get("type");return"thrown"===n||"auth"===n?k().createElement(Ut,{key:t,error:e.get("error")||e,jumpToLine:o}):"spec"===n?k().createElement(Ft,{key:t,error:e,jumpToLine:o}):void 0})))))}}const Ut=e=>{let{error:t,jumpToLine:n}=e;if(!t)return null;let s=t.get("line");return k().createElement("div",{className:"error-wrapper"},t?k().createElement("div",null,k().createElement("h4",null,t.get("source")&&t.get("level")?zt(t.get("source"))+" "+t.get("level"):"",t.get("path")?k().createElement("small",null," at ",t.get("path")):null),k().createElement("span",{className:"message thrown"},t.get("message")),k().createElement("div",{className:"error-line"},s&&n?k().createElement("a",{onClick:g()(n).call(n,null,s)},"Jump to line ",s):null)):null)},Ft=e=>{let{error:t,jumpToLine:n}=e,s=null;return t.get("path")?s=I.List.isList(t.get("path"))?k().createElement("small",null,"at ",t.get("path").join(".")):k().createElement("small",null,"at ",t.get("path")):t.get("line")&&!n&&(s=k().createElement("small",null,"on line ",t.get("line"))),k().createElement("div",{className:"error-wrapper"},t?k().createElement("div",null,k().createElement("h4",null,zt(t.get("source"))+" "+t.get("level")," ",s),k().createElement("span",{className:"message"},t.get("message")),k().createElement("div",{className:"error-line"},n?k().createElement("a",{onClick:g()(n).call(n,null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function zt(e){var t;return j()(t=(e||"").split(" ")).call(t,(e=>e[0].toUpperCase()+v()(e).call(e,1))).join(" ")}Ut.defaultProps={jumpToLine:null};class Bt extends k().Component{constructor(){super(...arguments),ie()(this,"onChangeWrapper",(e=>this.props.onChange(e.target.value)))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(e){var t;e.contentTypes&&e.contentTypes.size&&(Te()(t=e.contentTypes).call(t,e.value)||e.onChange(e.contentTypes.first()))}render(){let{ariaControls:e,ariaLabel:t,className:n,contentTypes:s,controlId:r,value:a}=this.props;return s&&s.size?k().createElement("div",{className:"content-type-wrapper "+(n||"")},k().createElement("select",{"aria-controls":e,"aria-label":t,className:"content-type",id:r,onChange:this.onChangeWrapper,value:a||""},j()(s).call(s,(e=>k().createElement("option",{key:e,value:e},e))).toArray())):null}}ie()(Bt,"defaultProps",{onChange:()=>{},value:null,contentTypes:(0,I.fromJS)(["application/json"])});var Wt=n(4250),Ht=n.n(Wt),Gt=n(7390),Zt=n.n(Gt);function Xt(){for(var e,t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return Zt()(e=l()(n).call(n,(e=>!!e)).join(" ")).call(e)}class Yt extends k().Component{render(){let{fullscreen:e,full:t,...n}=this.props;if(e)return k().createElement("section",n);let s="swagger-container"+(t?"-full":"");return k().createElement("section",Ht()({},n,{className:Xt(n.className,s)}))}}const Qt={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class en extends k().Component{render(){const{hide:e,keepContents:t,mobile:n,tablet:s,desktop:r,large:a,...o}=this.props;if(e&&!t)return k().createElement("span",null);let l=[];for(let e in Qt){if(!Object.prototype.hasOwnProperty.call(Qt,e))continue;let t=Qt[e];if(e in this.props){let n=this.props[e];if(n<1){l.push("none"+t);continue}l.push("block"+t),l.push("col-"+n+t)}}e&&l.push("hidden");let c=Xt(o.className,...l);return k().createElement("section",Ht()({},o,{className:c}))}}class tn extends k().Component{render(){return k().createElement("div",Ht()({},this.props,{className:Xt(this.props.className,"wrapper")}))}}class nn extends k().Component{render(){return k().createElement("button",Ht()({},this.props,{className:Xt(this.props.className,"button")}))}}ie()(nn,"defaultProps",{className:""});const sn=e=>k().createElement("textarea",e),rn=e=>k().createElement("input",e);class an extends k().Component{constructor(e,t){let n;super(e,t),ie()(this,"onChange",(e=>{let t,{onChange:n,multiple:s}=this.props,r=v()([]).call(e.target.options);var a;s?t=j()(a=l()(r).call(r,(function(e){return e.selected}))).call(a,(function(e){return e.value})):t=e.target.value;this.setState({value:t}),n&&n(t)})),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){var e,t;let{allowedValues:n,multiple:s,allowEmptyValue:r,disabled:a}=this.props,o=(null===(e=this.state.value)||void 0===e||null===(t=e.toJS)||void 0===t?void 0:t.call(e))||this.state.value;return k().createElement("select",{className:this.props.className,multiple:s,value:o,onChange:this.onChange,disabled:a},r?k().createElement("option",{value:""},"--"):null,j()(n).call(n,(function(e,t){return k().createElement("option",{key:t,value:String(e)},String(e))})))}}ie()(an,"defaultProps",{multiple:!1,allowEmptyValue:!0});class on extends k().Component{render(){return k().createElement("a",Ht()({},this.props,{rel:"noopener noreferrer",className:Xt(this.props.className,"link")}))}}const ln=e=>{let{children:t}=e;return k().createElement("div",{className:"no-margin"}," ",t," ")};class cn extends k().Component{renderNotAnimated(){return this.props.isOpened?k().createElement(ln,null,this.props.children):k().createElement("noscript",null)}render(){let{animated:e,isOpened:t,children:n}=this.props;return e?(n=t?n:null,k().createElement(ln,null,n)):this.renderNotAnimated()}}ie()(cn,"defaultProps",{isOpened:!1,animated:!1});class un extends k().Component{constructor(){var e;super(...arguments),this.setTagShown=g()(e=this._setTagShown).call(e,this)}_setTagShown(e,t){this.props.layoutActions.show(e,t)}showOp(e,t){let{layoutActions:n}=this.props;n.show(e,t)}render(){let{specSelectors:e,layoutSelectors:t,layoutActions:n,getComponent:s}=this.props,r=e.taggedOperations();const a=s("Collapse");return k().createElement("div",null,k().createElement("h4",{className:"overview-title"},"Overview"),j()(r).call(r,((e,s)=>{let r=e.get("operations"),o=["overview-tags",s],l=t.isShown(o,!0);return k().createElement("div",{key:"overview-"+s},k().createElement("h4",{onClick:()=>n.show(o,!l),className:"link overview-tag"}," ",l?"-":"+",s),k().createElement(a,{isOpened:l,animated:!0},j()(r).call(r,(e=>{let{path:s,method:r,id:a}=e.toObject(),o="operations",l=a,c=t.isShown([o,l]);return k().createElement(pn,{key:a,path:s,method:r,id:s+"-"+r,shown:c,showOpId:l,showOpIdPrefix:o,href:`#operation-${l}`,onClick:n.show})})).toArray()))})).toArray(),r.size<1&&k().createElement("h3",null," No operations defined in spec! "))}}class pn extends k().Component{constructor(e){var t;super(e),this.onClick=g()(t=this._onClick).call(t,this)}_onClick(){let{showOpId:e,showOpIdPrefix:t,onClick:n,shown:s}=this.props;n([t,e],!s)}render(){let{id:e,method:t,shown:n,href:s}=this.props;return k().createElement(on,{href:s,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},k().createElement("div",null,k().createElement("small",{className:`bold-label-${t}`},t.toUpperCase()),k().createElement("span",{className:"bold-label"},e)))}}class mn extends k().Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:t,initialValue:n,...s}=this.props;return k().createElement("input",Ht()({},s,{ref:e=>this.inputRef=e}))}}class dn extends k().Component{render(){const{host:e,basePath:t}=this.props;return k().createElement("pre",{className:"base-url"},"[ Base URL: ",e,t," ]")}}class hn extends k().PureComponent{render(){const{url:e,getComponent:t}=this.props,n=t("Link");return k().createElement(n,{target:"_blank",href:(0,$.Nm)(e)},k().createElement("span",{className:"url"}," ",e))}}class gn extends k().Component{render(){const{info:e,url:t,host:n,basePath:s,getComponent:r,externalDocs:a,selectedServer:o,url:l}=this.props,c=e.get("version"),i=e.get("description"),u=e.get("title"),p=(0,ze.mn)(e.get("termsOfService"),l,{selectedServer:o}),m=e.get("contact"),d=e.get("license"),h=a&&a.get("url"),g=(0,ze.mn)(h,l,{selectedServer:o}),f=a&&a.get("description"),y=r("Markdown",!0),S=r("Link"),v=r("VersionStamp"),E=r("InfoUrl"),x=r("InfoBasePath"),w=r("License"),C=r("Contact");return k().createElement("div",{className:"info"},k().createElement("hgroup",{className:"main"},k().createElement("h2",{className:"title"},u,c&&k().createElement(v,{version:c})),n||s?k().createElement(x,{host:n,basePath:s}):null,t&&k().createElement(E,{getComponent:r,url:t})),k().createElement("div",{className:"description"},k().createElement(y,{source:i})),p&&k().createElement("div",{className:"info__tos"},k().createElement(S,{target:"_blank",href:(0,$.Nm)(p)},"Terms of service")),(null==m?void 0:m.size)>0&&k().createElement(C,{getComponent:r,data:m,selectedServer:o,url:t}),(null==d?void 0:d.size)>0&&k().createElement(w,{getComponent:r,license:d,selectedServer:o,url:t}),g?k().createElement(S,{className:"info__extdocs",target:"_blank",href:(0,$.Nm)(g)},f||g):null)}}const fn=gn;class yn extends k().Component{render(){const{specSelectors:e,getComponent:t,oas3Selectors:n}=this.props,s=e.info(),r=e.url(),a=e.basePath(),o=e.host(),l=e.externalDocs(),c=n.selectedServer(),i=t("info");return k().createElement("div",null,s&&s.count()?k().createElement(i,{info:s,url:r,host:o,basePath:a,externalDocs:l,getComponent:t,selectedServer:c}):null)}}class Sn extends k().Component{render(){const{data:e,getComponent:t,selectedServer:n,url:s}=this.props,r=e.get("name","the developer"),a=(0,ze.mn)(e.get("url"),s,{selectedServer:n}),o=e.get("email"),l=t("Link");return k().createElement("div",{className:"info__contact"},a&&k().createElement("div",null,k().createElement(l,{href:(0,$.Nm)(a),target:"_blank"},r," - Website")),o&&k().createElement(l,{href:(0,$.Nm)(`mailto:${o}`)},a?`Send email to ${r}`:`Contact ${r}`))}}const vn=Sn;class En extends k().Component{render(){const{license:e,getComponent:t,selectedServer:n,url:s}=this.props,r=e.get("name","License"),a=(0,ze.mn)(e.get("url"),s,{selectedServer:n}),o=t("Link");return k().createElement("div",{className:"info__license"},a?k().createElement("div",{className:"info__license__url"},k().createElement(o,{target:"_blank",href:(0,$.Nm)(a)},r)):k().createElement("span",null,r))}}const xn=En;class wn extends k().Component{render(){return null}}class Cn extends k().Component{render(){return k().createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},k().createElement(ht.CopyToClipboard,{text:this.props.textToCopy},k().createElement("svg",{width:"15",height:"16"},k().createElement("use",{href:"#copy",xlinkHref:"#copy"}))))}}class bn extends k().Component{render(){return k().createElement("div",{className:"footer"})}}class jn extends k().Component{constructor(){super(...arguments),ie()(this,"onFilterChange",(e=>{const{target:{value:t}}=e;this.props.layoutActions.updateFilter(t)}))}render(){const{specSelectors:e,layoutSelectors:t,getComponent:n}=this.props,s=n("Col"),r="loading"===e.loadingStatus(),a="failed"===e.loadingStatus(),o=t.currentFilter(),l=["operation-filter-input"];return a&&l.push("failed"),r&&l.push("loading"),k().createElement("div",null,null===o||!1===o||"false"===o?null:k().createElement("div",{className:"filter-container"},k().createElement(s,{className:"filter wrapper",mobile:12},k().createElement("input",{className:l.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:!0===o||"true"===o?"":o,disabled:r}))))}}const _n=Function.prototype;class Nn extends O.PureComponent{constructor(e,t){super(e,t),ie()(this,"updateValues",(e=>{let{param:t,isExecute:n,consumesValue:s=""}=e,r=/xml/i.test(s),a=/json/i.test(s),o=r?t.get("value_xml"):t.get("value");if(void 0!==o){let e=!o&&a?"{}":o;this.setState({value:e}),this.onChange(e,{isXml:r,isEditBox:n})}else r?this.onChange(this.sample("xml"),{isXml:r,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})})),ie()(this,"sample",(e=>{let{param:t,fn:n}=this.props,s=n.inferSchema(t.toJS());return n.getSampleSchema(s,e,{includeWriteOnly:!0})})),ie()(this,"onChange",((e,t)=>{let{isEditBox:n,isXml:s}=t;this.setState({value:e,isEditBox:n}),this._onChange(e,s)})),ie()(this,"_onChange",((e,t)=>{(this.props.onChange||_n)(e,t)})),ie()(this,"handleOnChange",(e=>{const{consumesValue:t}=this.props,n=/xml/i.test(t),s=e.target.value;this.onChange(s,{isXml:n,isEditBox:this.state.isEditBox})})),ie()(this,"toggleIsEditBox",(()=>this.setState((e=>({isEditBox:!e.isEditBox}))))),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}render(){let{onChangeConsumes:e,param:t,isExecute:n,specSelectors:s,pathMethod:r,getConfigs:a,getComponent:o}=this.props;const l=o("Button"),c=o("TextArea"),i=o("highlightCode"),u=o("contentType");let p=(s?s.parameterWithMetaByIdentity(r,t):t).get("errors",(0,I.List)()),m=s.contentTypeValues(r).get("requestContentType"),d=this.props.consumes&&this.props.consumes.size?this.props.consumes:Nn.defaultProp.consumes,{value:h,isEditBox:g}=this.state,f=null;return(0,Et.O)(h)&&(f="json"),k().createElement("div",{className:"body-param","data-param-name":t.get("name"),"data-param-in":t.get("in")},g&&n?k().createElement(c,{className:"body-param__text"+(p.count()?" invalid":""),value:h,onChange:this.handleOnChange}):h&&k().createElement(i,{className:"body-param__example",language:f,getConfigs:a,value:h}),k().createElement("div",{className:"body-param-options"},n?k().createElement("div",{className:"body-param-edit"},k().createElement(l,{className:g?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},g?"Cancel":"Edit")):null,k().createElement("label",{htmlFor:""},k().createElement("span",null,"Parameter content type"),k().createElement(u,{value:m,contentTypes:d,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type"}))))}}ie()(Nn,"defaultProp",{consumes:(0,I.fromJS)(["application/json"]),param:(0,I.fromJS)({}),onChange:_n,onChangeConsumes:_n});var On=n(8223);class kn extends k().Component{render(){let{request:e,getConfigs:t}=this.props,n=(0,On.requestSnippetGenerator_curl_bash)(e);const s=t(),r=it()(s,"syntaxHighlight.activated")?k().createElement(lt.d3,{language:"bash",className:"curl microlight",style:(0,lt.C2)(it()(s,"syntaxHighlight.theme"))},n):k().createElement("textarea",{readOnly:!0,className:"curl",value:n});return k().createElement("div",{className:"curl-command"},k().createElement("h4",null,"Curl"),k().createElement("div",{className:"copy-to-clipboard"},k().createElement(ht.CopyToClipboard,{text:n},k().createElement("button",null))),k().createElement("div",null,r))}}class An extends k().Component{constructor(){super(...arguments),ie()(this,"onChange",(e=>{this.setScheme(e.target.value)})),ie()(this,"setScheme",(e=>{let{path:t,method:n,specActions:s}=this.props;s.setScheme(e,t,n)}))}UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){var t;this.props.currentScheme&&Te()(t=e.schemes).call(t,this.props.currentScheme)||this.setScheme(e.schemes.first())}render(){var e;let{schemes:t,currentScheme:n}=this.props;return k().createElement("label",{htmlFor:"schemes"},k().createElement("span",{className:"schemes-title"},"Schemes"),k().createElement("select",{onChange:this.onChange,value:n},j()(e=t.valueSeq()).call(e,(e=>k().createElement("option",{value:e,key:e},e))).toArray()))}}class In extends k().Component{render(){const{specActions:e,specSelectors:t,getComponent:n}=this.props,s=t.operationScheme(),r=t.schemes(),a=n("schemes");return r&&r.size?k().createElement(a,{currentScheme:s,schemes:r,specActions:e}):null}}class Pn extends O.Component{constructor(e,t){super(e,t),ie()(this,"toggleCollapsed",(()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})})),ie()(this,"onLoad",(e=>{if(e&&this.props.layoutSelectors){const t=this.props.layoutSelectors.getScrollToKey();P().is(t,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}}));let{expanded:n,collapsedContent:s}=this.props;this.state={expanded:n,collapsedContent:s||Pn.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:t,modelName:n}=this.props;e&&t&&this.props.onToggle(n,t)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}render(){const{title:e,classes:t}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?k().createElement("span",{className:t||""},this.props.children):k().createElement("span",{className:t||"",ref:this.onLoad},k().createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&k().createElement("span",{className:"pointer"},e),k().createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&k().createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}ie()(Pn,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:P().List([])});var qn=n(185),Rn=n.n(qn);class Tn extends k().Component{constructor(e,t){super(e,t),ie()(this,"activeTab",(e=>{let{target:{dataset:{name:t}}}=e;this.setState({activeTab:t})}));let{getConfigs:n,isExecute:s}=this.props,{defaultModelRendering:r}=n(),a=r;"example"!==r&&"model"!==r&&(a="example"),s&&(a="example"),this.state={activeTab:a}}UNSAFE_componentWillReceiveProps(e){e.isExecute&&!this.props.isExecute&&this.props.example&&this.setState({activeTab:"example"})}render(){let{getComponent:e,specSelectors:t,schema:n,example:s,isExecute:r,getConfigs:a,specPath:o,includeReadOnly:l,includeWriteOnly:c}=this.props,{defaultModelExpandDepth:i}=a();const u=e("ModelWrapper"),p=e("highlightCode"),m=Rn()(5).toString("base64"),d=Rn()(5).toString("base64"),h=Rn()(5).toString("base64"),g=Rn()(5).toString("base64");let f=t.isOAS3();return k().createElement("div",{className:"model-example"},k().createElement("ul",{className:"tab",role:"tablist"},k().createElement("li",{className:ot()("tabitem",{active:"example"===this.state.activeTab}),role:"presentation"},k().createElement("button",{"aria-controls":d,"aria-selected":"example"===this.state.activeTab,className:"tablinks","data-name":"example",id:m,onClick:this.activeTab,role:"tab"},r?"Edit Value":"Example Value")),n&&k().createElement("li",{className:ot()("tabitem",{active:"model"===this.state.activeTab}),role:"presentation"},k().createElement("button",{"aria-controls":g,"aria-selected":"model"===this.state.activeTab,className:ot()("tablinks",{inactive:r}),"data-name":"model",id:h,onClick:this.activeTab,role:"tab"},f?"Schema":"Model"))),"example"===this.state.activeTab&&k().createElement("div",{"aria-hidden":"example"!==this.state.activeTab,"aria-labelledby":m,"data-name":"examplePanel",id:d,role:"tabpanel",tabIndex:"0"},s||k().createElement(p,{value:"(no example available)",getConfigs:a})),"model"===this.state.activeTab&&k().createElement("div",{"aria-hidden":"example"===this.state.activeTab,"aria-labelledby":h,"data-name":"modelPanel",id:g,role:"tabpanel",tabIndex:"0"},k().createElement(u,{schema:n,getComponent:e,getConfigs:a,specSelectors:t,expandDepth:i,specPath:o,includeReadOnly:l,includeWriteOnly:c})))}}class Mn extends O.Component{constructor(){super(...arguments),ie()(this,"onToggle",((e,t)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,t)}))}render(){let{getComponent:e,getConfigs:t}=this.props;const n=e("Model");let s;return this.props.layoutSelectors&&(s=this.props.layoutSelectors.isShown(this.props.fullPath)),k().createElement("div",{className:"model-box"},k().createElement(n,Ht()({},this.props,{getConfigs:t,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var Dn=n(6024);class Jn extends O.Component{constructor(){super(...arguments),ie()(this,"getSchemaBasePath",(()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"])),ie()(this,"getCollapsedContent",(()=>" ")),ie()(this,"handleToggle",((e,t)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],t),t&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])})),ie()(this,"onLoadModels",(e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)})),ie()(this,"onLoadModel",(e=>{if(e){const t=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),t],e)}}))}render(){var e;let{specSelectors:t,getComponent:n,layoutSelectors:s,layoutActions:r,getConfigs:a}=this.props,o=t.definitions(),{docExpansion:l,defaultModelsExpandDepth:c}=a();if(!o.size||c<0)return null;const i=this.getSchemaBasePath();let u=s.isShown(i,c>0&&"none"!==l);const p=t.isOAS3(),m=n("ModelWrapper"),d=n("Collapse"),h=n("ModelCollapse"),g=n("JumpToPath",!0);return k().createElement("section",{className:u?"models is-open":"models",ref:this.onLoadModels},k().createElement("h4",null,k().createElement("button",{"aria-expanded":u,className:"models-control",onClick:()=>r.show(i,!u)},k().createElement("span",null,p?"Schemas":"Models"),k().createElement("svg",{width:"20",height:"20","aria-hidden":"true",focusable:"false"},k().createElement("use",{xlinkHref:u?"#large-arrow-up":"#large-arrow-down"})))),k().createElement(d,{isOpened:u},j()(e=o.entrySeq()).call(e,(e=>{let[o]=e;const l=[...i,o],u=P().List(l),p=t.specResolvedSubtree(l),d=t.specJson().getIn(l),f=I.Map.isMap(p)?p:P().Map(),y=I.Map.isMap(d)?d:P().Map(),S=f.get("title")||y.get("title")||o,v=s.isShown(l,!1);v&&0===f.size&&y.size>0&&this.props.specActions.requestResolvedSubtree(l);const E=k().createElement(m,{name:o,expandDepth:c,schema:f||P().Map(),displayName:S,fullPath:l,specPath:u,getComponent:n,specSelectors:t,getConfigs:a,layoutSelectors:s,layoutActions:r,includeReadOnly:!0,includeWriteOnly:!0}),x=k().createElement("span",{className:"model-box"},k().createElement("span",{className:"model model-title"},S));return k().createElement("div",{id:`model-${o}`,className:"model-container",key:`models-section-${o}`,"data-name":o,ref:this.onLoadModel},k().createElement("span",{className:"models-jump-to-path"},k().createElement(g,{specPath:u})),k().createElement(h,{classes:"model-box",collapsedContent:this.getCollapsedContent(o),onToggle:this.handleToggle,title:x,displayName:S,modelName:o,specPath:u,layoutSelectors:s,layoutActions:r,hideSelfOnExpand:!0,expanded:c>0&&v},E))})).toArray()))}}const $n=e=>{let{value:t,getComponent:n}=e,s=n("ModelCollapse"),r=k().createElement("span",null,"Array [ ",t.count()," ]");return k().createElement("span",{className:"prop-enum"},"Enum:",k().createElement("br",null),k().createElement(s,{collapsedContent:r},"[ ",t.join(", ")," ]"))};class Kn extends O.Component{render(){var e,t,n,s;let{schema:r,name:a,displayName:o,isRef:c,getComponent:i,getConfigs:u,depth:m,onToggle:d,expanded:h,specPath:g,...f}=this.props,{specSelectors:y,expandDepth:S,includeReadOnly:E,includeWriteOnly:x}=f;const{isOAS3:w}=y;if(!r)return null;const{showExtensions:C}=u();let b=r.get("description"),_=r.get("properties"),N=r.get("additionalProperties"),O=r.get("title")||o||a,A=r.get("required"),P=l()(r).call(r,((e,t)=>{var n;return-1!==pe()(n=["maxProperties","minProperties","nullable","example"]).call(n,t)})),q=r.get("deprecated"),R=r.getIn(["externalDocs","url"]),T=r.getIn(["externalDocs","description"]);const M=i("JumpToPath",!0),D=i("Markdown",!0),J=i("Model"),K=i("ModelCollapse"),L=i("Property"),V=i("Link"),U=()=>k().createElement("span",{className:"model-jump-to-path"},k().createElement(M,{specPath:g})),F=k().createElement("span",null,k().createElement("span",null,"{"),"...",k().createElement("span",null,"}"),c?k().createElement(U,null):""),z=y.isOAS3()?r.get("anyOf"):null,B=y.isOAS3()?r.get("oneOf"):null,W=y.isOAS3()?r.get("not"):null,H=O&&k().createElement("span",{className:"model-title"},c&&r.get("$$ref")&&k().createElement("span",{className:"model-hint"},r.get("$$ref")),k().createElement("span",{className:"model-title__text"},O));return k().createElement("span",{className:"model"},k().createElement(K,{modelName:a,title:H,onToggle:d,expanded:!!h||m<=S,collapsedContent:F},k().createElement("span",{className:"brace-open object"},"{"),c?k().createElement(U,null):null,k().createElement("span",{className:"inner-object"},k().createElement("table",{className:"model"},k().createElement("tbody",null,b?k().createElement("tr",{className:"description"},k().createElement("td",null,"description:"),k().createElement("td",null,k().createElement(D,{source:b}))):null,R&&k().createElement("tr",{className:"external-docs"},k().createElement("td",null,"externalDocs:"),k().createElement("td",null,k().createElement(V,{target:"_blank",href:(0,$.Nm)(R)},T||R))),q?k().createElement("tr",{className:"property"},k().createElement("td",null,"deprecated:"),k().createElement("td",null,"true")):null,_&&_.size?j()(e=l()(t=_.entrySeq()).call(t,(e=>{let[,t]=e;return(!t.get("readOnly")||E)&&(!t.get("writeOnly")||x)}))).call(e,(e=>{let[t,n]=e,s=w()&&n.get("deprecated"),r=I.List.isList(A)&&A.contains(t),o=["property-row"];return s&&o.push("deprecated"),r&&o.push("required"),k().createElement("tr",{key:t,className:o.join(" ")},k().createElement("td",null,t,r&&k().createElement("span",{className:"star"},"*")),k().createElement("td",null,k().createElement(J,Ht()({key:`object-${a}-${t}_${n}`},f,{required:r,getComponent:i,specPath:g.push("properties",t),getConfigs:u,schema:n,depth:m+1}))))})).toArray():null,C?k().createElement("tr",null,k().createElement("td",null," ")):null,C?j()(n=r.entrySeq()).call(n,(e=>{let[t,n]=e;if("x-"!==v()(t).call(t,0,2))return;const s=n?n.toJS?n.toJS():n:null;return k().createElement("tr",{key:t,className:"extension"},k().createElement("td",null,t),k().createElement("td",null,p()(s)))})).toArray():null,N&&N.size?k().createElement("tr",null,k().createElement("td",null,"< * >:"),k().createElement("td",null,k().createElement(J,Ht()({},f,{required:!1,getComponent:i,specPath:g.push("additionalProperties"),getConfigs:u,schema:N,depth:m+1})))):null,z?k().createElement("tr",null,k().createElement("td",null,"anyOf ->"),k().createElement("td",null,j()(z).call(z,((e,t)=>k().createElement("div",{key:t},k().createElement(J,Ht()({},f,{required:!1,getComponent:i,specPath:g.push("anyOf",t),getConfigs:u,schema:e,depth:m+1}))))))):null,B?k().createElement("tr",null,k().createElement("td",null,"oneOf ->"),k().createElement("td",null,j()(B).call(B,((e,t)=>k().createElement("div",{key:t},k().createElement(J,Ht()({},f,{required:!1,getComponent:i,specPath:g.push("oneOf",t),getConfigs:u,schema:e,depth:m+1}))))))):null,W?k().createElement("tr",null,k().createElement("td",null,"not ->"),k().createElement("td",null,k().createElement("div",null,k().createElement(J,Ht()({},f,{required:!1,getComponent:i,specPath:g.push("not"),getConfigs:u,schema:W,depth:m+1}))))):null))),k().createElement("span",{className:"brace-close"},"}")),P.size?j()(s=P.entrySeq()).call(s,(e=>{let[t,n]=e;return k().createElement(L,{key:`${t}-${n}`,propKey:t,propVal:n,propClass:"property"})})):null)}}class Ln extends O.Component{render(){var e;let{getComponent:t,getConfigs:n,schema:s,depth:r,expandDepth:a,name:o,displayName:c,specPath:i}=this.props,u=s.get("description"),p=s.get("items"),m=s.get("title")||c||o,d=l()(s).call(s,((e,t)=>{var n;return-1===pe()(n=["type","items","description","$$ref","externalDocs"]).call(n,t)})),h=s.getIn(["externalDocs","url"]),g=s.getIn(["externalDocs","description"]);const f=t("Markdown",!0),y=t("ModelCollapse"),S=t("Model"),v=t("Property"),E=t("Link"),x=m&&k().createElement("span",{className:"model-title"},k().createElement("span",{className:"model-title__text"},m));return k().createElement("span",{className:"model"},k().createElement(y,{title:x,expanded:r<=a,collapsedContent:"[...]"},"[",d.size?j()(e=d.entrySeq()).call(e,(e=>{let[t,n]=e;return k().createElement(v,{key:`${t}-${n}`,propKey:t,propVal:n,propClass:"property"})})):null,u?k().createElement(f,{source:u}):d.size?k().createElement("div",{className:"markdown"}):null,h&&k().createElement("div",{className:"external-docs"},k().createElement(E,{target:"_blank",href:(0,$.Nm)(h)},g||h)),k().createElement("span",null,k().createElement(S,Ht()({},this.props,{getConfigs:n,specPath:i.push("items"),name:null,schema:p,required:!1,depth:r+1}))),"]"))}}const Vn="property primitive";class Un extends O.Component{render(){var e,t,n;let{schema:s,getComponent:r,getConfigs:a,name:o,displayName:c,depth:i,expandDepth:u}=this.props;const{showExtensions:p}=a();if(!s||!s.get)return k().createElement("div",null);let m=s.get("type"),d=s.get("format"),h=s.get("xml"),g=s.get("enum"),f=s.get("title")||c||o,y=s.get("description"),S=(0,$.nX)(s),v=l()(s).call(s,((e,t)=>{var n;return-1===pe()(n=["enum","type","format","description","$$ref","externalDocs"]).call(n,t)})).filterNot(((e,t)=>S.has(t))),E=s.getIn(["externalDocs","url"]),x=s.getIn(["externalDocs","description"]);const w=r("Markdown",!0),C=r("EnumModel"),b=r("Property"),_=r("ModelCollapse"),N=r("Link"),O=f&&k().createElement("span",{className:"model-title"},k().createElement("span",{className:"model-title__text"},f));return k().createElement("span",{className:"model"},k().createElement(_,{title:O,expanded:i<=u,collapsedContent:"[...]",hideSelfOnExpand:u!==i},k().createElement("span",{className:"prop"},o&&i>1&&k().createElement("span",{className:"prop-name"},f),k().createElement("span",{className:"prop-type"},m),d&&k().createElement("span",{className:"prop-format"},"($",d,")"),v.size?j()(e=v.entrySeq()).call(e,(e=>{let[t,n]=e;return k().createElement(b,{key:`${t}-${n}`,propKey:t,propVal:n,propClass:Vn})})):null,p&&S.size?j()(t=S.entrySeq()).call(t,(e=>{let[t,n]=e;return k().createElement(b,{key:`${t}-${n}`,propKey:t,propVal:n,propClass:Vn})})):null,y?k().createElement(w,{source:y}):null,E&&k().createElement("div",{className:"external-docs"},k().createElement(N,{target:"_blank",href:(0,$.Nm)(E)},x||E)),h&&h.size?k().createElement("span",null,k().createElement("br",null),k().createElement("span",{className:Vn},"xml:"),j()(n=h.entrySeq()).call(n,(e=>{let[t,n]=e;return k().createElement("span",{key:`${t}-${n}`,className:Vn},k().createElement("br",null)," ",t,": ",String(n))})).toArray()):null,g&&k().createElement(C,{value:g,getComponent:r}))))}}const Fn=e=>{let{propKey:t,propVal:n,propClass:s}=e;return k().createElement("span",{className:s},k().createElement("br",null),t,": ",String(n))};class zn extends k().Component{render(){const{onTryoutClick:e,onCancelClick:t,onResetClick:n,enabled:s,hasUserEditedBody:r,isOAS3:a}=this.props,o=a&&r;return k().createElement("div",{className:o?"try-out btn-group":"try-out"},s?k().createElement("button",{className:"btn try-out__btn cancel",onClick:t},"Cancel"):k().createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),o&&k().createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}ie()(zn,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class Bn extends k().PureComponent{render(){const{bypass:e,isSwagger2:t,isOAS3:n,alsoShow:s}=this.props;return e?k().createElement("div",null,this.props.children):t&&n?k().createElement("div",{className:"version-pragma"},s,k().createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},k().createElement("div",null,k().createElement("h3",null,"Unable to render this definition"),k().createElement("p",null,k().createElement("code",null,"swagger")," and ",k().createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),k().createElement("p",null,"Supported version fields are ",k().createElement("code",null,"swagger: ",'"2.0"')," and those that match ",k().createElement("code",null,"openapi: 3.0.n")," (for example, ",k().createElement("code",null,"openapi: 3.0.0"),").")))):t||n?k().createElement("div",null,this.props.children):k().createElement("div",{className:"version-pragma"},s,k().createElement("div",{className:"version-pragma__message version-pragma__message--missing"},k().createElement("div",null,k().createElement("h3",null,"Unable to render this definition"),k().createElement("p",null,"The provided definition does not specify a valid version field."),k().createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",k().createElement("code",null,"swagger: ",'"2.0"')," and those that match ",k().createElement("code",null,"openapi: 3.0.n")," (for example, ",k().createElement("code",null,"openapi: 3.0.0"),")."))))}}ie()(Bn,"defaultProps",{alsoShow:null,children:null,bypass:!1});const Wn=e=>{let{version:t}=e;return k().createElement("small",null,k().createElement("pre",{className:"version"}," ",t," "))},Hn=e=>{let{enabled:t,path:n,text:s}=e;return k().createElement("a",{className:"nostyle",onClick:t?e=>e.preventDefault():null,href:t?`#/${n}`:null},k().createElement("span",null,s))},Gn=()=>k().createElement("div",null,k().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},k().createElement("defs",null,k().createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},k().createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),k().createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},k().createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),k().createElement("symbol",{viewBox:"0 0 20 20",id:"close"},k().createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),k().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},k().createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),k().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},k().createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),k().createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},k().createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),k().createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},k().createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),k().createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},k().createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),k().createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},k().createElement("g",{transform:"translate(2, -1)"},k().createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var Zn=n(2552);class Xn extends k().Component{render(){const{errSelectors:e,specSelectors:t,getComponent:n}=this.props,s=n("SvgAssets"),r=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),l=n("Models",!0),c=n("Webhooks",!0),i=n("Row"),u=n("Col"),p=n("errors",!0),m=n("ServersContainer",!0),d=n("SchemesContainer",!0),h=n("AuthorizeBtnContainer",!0),g=n("FilterContainer",!0),f=t.isSwagger2(),y=t.isOAS3(),S=t.isOAS31(),v=!t.specStr(),E=t.loadingStatus();let x=null;if("loading"===E&&(x=k().createElement("div",{className:"info"},k().createElement("div",{className:"loading-container"},k().createElement("div",{className:"loading"})))),"failed"===E&&(x=k().createElement("div",{className:"info"},k().createElement("div",{className:"loading-container"},k().createElement("h4",{className:"title"},"Failed to load API definition."),k().createElement(p,null)))),"failedConfig"===E){const t=e.lastError(),n=t?t.get("message"):"";x=k().createElement("div",{className:"info failed-config"},k().createElement("div",{className:"loading-container"},k().createElement("h4",{className:"title"},"Failed to load remote configuration."),k().createElement("p",null,n)))}if(!x&&v&&(x=k().createElement("h4",null,"No API definition provided.")),x)return k().createElement("div",{className:"swagger-ui"},k().createElement("div",{className:"loading-container"},x));const w=t.servers(),C=t.schemes(),b=w&&w.size,j=C&&C.size,_=!!t.securityDefinitions();return k().createElement("div",{className:"swagger-ui"},k().createElement(s,null),k().createElement(a,{isSwagger2:f,isOAS3:y,alsoShow:k().createElement(p,null)},k().createElement(p,null),k().createElement(i,{className:"information-container"},k().createElement(u,{mobile:12},k().createElement(r,null))),b||j||_?k().createElement("div",{className:"scheme-container"},k().createElement(u,{className:"schemes wrapper",mobile:12},b?k().createElement(m,null):null,j?k().createElement(d,null):null,_?k().createElement(h,null):null)):null,k().createElement(g,null),k().createElement(i,null,k().createElement(u,{mobile:12,desktop:12},k().createElement(o,null))),S&&k().createElement(i,{className:"webhooks-container"},k().createElement(u,{mobile:12,desktop:12},k().createElement(c,null))),k().createElement(i,null,k().createElement(u,{mobile:12,desktop:12},k().createElement(l,null)))))}}const Yn=require("react-debounce-input");var Qn=n.n(Yn);const es={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,I.List)()};class ts extends O.Component{componentDidMount(){const{dispatchInitialValue:e,value:t,onChange:n}=this.props;e?n(t):!1===e&&n("")}render(){let{schema:e,errors:t,value:n,onChange:s,getComponent:r,fn:a,disabled:o}=this.props;const l=e&&e.get?e.get("format"):null,c=e&&e.get?e.get("type"):null;let i=e=>r(e,!1,{failSilently:!0}),u=c?i(l?`JsonSchema_${c}_${l}`:`JsonSchema_${c}`):r("JsonSchema_string");return u||(u=r("JsonSchema_string")),k().createElement(u,Ht()({},this.props,{errors:t,fn:a,getComponent:r,value:n,onChange:s,schema:e,disabled:o}))}}ie()(ts,"defaultProps",es);class ns extends O.Component{constructor(){super(...arguments),ie()(this,"onChange",(e=>{const t=this.props.schema&&"file"===this.props.schema.get("type")?e.target.files[0]:e.target.value;this.props.onChange(t,this.props.keyName)})),ie()(this,"onEnumChange",(e=>this.props.onChange(e)))}render(){let{getComponent:e,value:t,schema:n,errors:s,required:r,description:a,disabled:o}=this.props;const l=n&&n.get?n.get("enum"):null,c=n&&n.get?n.get("format"):null,i=n&&n.get?n.get("type"):null,u=n&&n.get?n.get("in"):null;if(t||(t=""),s=s.toJS?s.toJS():[],l){const n=e("Select");return k().createElement(n,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...l],value:t,allowEmptyValue:!r,disabled:o,onChange:this.onEnumChange})}const p=o||u&&"formData"===u&&!("FormData"in window),m=e("Input");return i&&"file"===i?k().createElement(m,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:p}):k().createElement(Qn(),{type:c&&"password"===c?"password":"text",className:s.length?"invalid":"",title:s.length?s:"",value:t,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:p})}}ie()(ns,"defaultProps",es);class ss extends O.PureComponent{constructor(e,t){super(e,t),ie()(this,"onChange",(()=>{this.props.onChange(this.state.value)})),ie()(this,"onItemChange",((e,t)=>{this.setState((n=>{let{value:s}=n;return{value:s.set(t,e)}}),this.onChange)})),ie()(this,"removeItem",(e=>{this.setState((t=>{let{value:n}=t;return{value:n.delete(e)}}),this.onChange)})),ie()(this,"addItem",(()=>{const{fn:e}=this.props;let t=is(this.state.value);this.setState((()=>({value:t.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)})),ie()(this,"onEnumChange",(e=>{this.setState((()=>({value:e})),this.onChange)})),this.state={value:is(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const t=is(e.value);t!==this.state.value&&this.setState({value:t}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}render(){var e;let{getComponent:t,required:n,schema:s,errors:r,fn:a,disabled:o}=this.props;r=r.toJS?r.toJS():x()(r)?r:[];const c=l()(r).call(r,(e=>"string"==typeof e)),i=j()(e=l()(r).call(r,(e=>void 0!==e.needRemove))).call(e,(e=>e.error)),u=this.state.value,p=!!(u&&u.count&&u.count()>0),m=s.getIn(["items","enum"]),d=s.getIn(["items","type"]),h=s.getIn(["items","format"]),g=s.get("items");let f,y=!1,S="file"===d||"string"===d&&"binary"===h;if(d&&h?f=t(`JsonSchema_${d}_${h}`):"boolean"!==d&&"array"!==d&&"object"!==d||(f=t(`JsonSchema_${d}`)),f||S||(y=!0),m){const e=t("Select");return k().createElement(e,{className:r.length?"invalid":"",title:r.length?r:"",multiple:!0,value:u,disabled:o,allowedValues:m,allowEmptyValue:!n,onChange:this.onEnumChange})}const v=t("Button");return k().createElement("div",{className:"json-schema-array"},p?j()(u).call(u,((e,n)=>{var s;const c=(0,I.fromJS)([...j()(s=l()(r).call(r,(e=>e.index===n))).call(s,(e=>e.error))]);return k().createElement("div",{key:n,className:"json-schema-form-item"},S?k().createElement(as,{value:e,onChange:e=>this.onItemChange(e,n),disabled:o,errors:c,getComponent:t}):y?k().createElement(rs,{value:e,onChange:e=>this.onItemChange(e,n),disabled:o,errors:c}):k().createElement(f,Ht()({},this.props,{value:e,onChange:e=>this.onItemChange(e,n),disabled:o,errors:c,schema:g,getComponent:t,fn:a})),o?null:k().createElement(v,{className:`btn btn-sm json-schema-form-item-remove ${i.length?"invalid":null}`,title:i.length?i:"",onClick:()=>this.removeItem(n)}," - "))})):null,o?null:k().createElement(v,{className:`btn btn-sm json-schema-form-item-add ${c.length?"invalid":null}`,title:c.length?c:"",onClick:this.addItem},"Add ",d?`${d} `:"","item"))}}ie()(ss,"defaultProps",es);class rs extends O.Component{constructor(){super(...arguments),ie()(this,"onChange",(e=>{const t=e.target.value;this.props.onChange(t,this.props.keyName)}))}render(){let{value:e,errors:t,description:n,disabled:s}=this.props;return e||(e=""),t=t.toJS?t.toJS():[],k().createElement(Qn(),{type:"text",className:t.length?"invalid":"",title:t.length?t:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:s})}}ie()(rs,"defaultProps",es);class as extends O.Component{constructor(){super(...arguments),ie()(this,"onFileChange",(e=>{const t=e.target.files[0];this.props.onChange(t,this.props.keyName)}))}render(){let{getComponent:e,errors:t,disabled:n}=this.props;const s=e("Input"),r=n||!("FormData"in window);return k().createElement(s,{type:"file",className:t.length?"invalid":"",title:t.length?t:"",onChange:this.onFileChange,disabled:r})}}ie()(as,"defaultProps",es);class os extends O.Component{constructor(){super(...arguments),ie()(this,"onEnumChange",(e=>this.props.onChange(e)))}render(){let{getComponent:e,value:t,errors:n,schema:s,required:r,disabled:a}=this.props;n=n.toJS?n.toJS():[];let o=s&&s.get?s.get("enum"):null,l=!o||!r,c=!o&&["true","false"];const i=e("Select");return k().createElement(i,{className:n.length?"invalid":"",title:n.length?n:"",value:String(t),disabled:a,allowedValues:o?[...o]:c,allowEmptyValue:l,onChange:this.onEnumChange})}}ie()(os,"defaultProps",es);const ls=e=>j()(e).call(e,(e=>{const t=void 0!==e.propKey?e.propKey:e.index;let n="string"==typeof e?e:"string"==typeof e.error?e.error:null;if(!t&&n)return n;let s=e.error,r=`/${e.propKey}`;for(;"object"==typeof s;){const e=void 0!==s.propKey?s.propKey:s.index;if(void 0===e)break;if(r+=`/${e}`,!s.error)break;s=s.error}return`${r}: ${s}`}));class cs extends O.PureComponent{constructor(){super(),ie()(this,"onChange",(e=>{this.props.onChange(e)})),ie()(this,"handleOnChange",(e=>{const t=e.target.value;this.onChange(t)}))}render(){let{getComponent:e,value:t,errors:n,disabled:s}=this.props;const r=e("TextArea");return n=n.toJS?n.toJS():x()(n)?n:[],k().createElement("div",null,k().createElement(r,{className:ot()({invalid:n.length}),title:n.length?ls(n).join(", "):"",value:(0,$.Pz)(t),disabled:s,onChange:this.handleOnChange}))}}function is(e){return I.List.isList(e)?e:x()(e)?(0,I.fromJS)(e):(0,I.List)()}function us(){let n={components:{App:he,authorizationPopup:ge,authorizeBtn:fe,AuthorizeBtnContainer:ye,authorizeOperationBtn:Se,auths:ve,AuthItem:Ee,authError:xe,oauth2:Je,apiKeyAuth:we,basicAuth:Ce,clear:$e,liveResponse:Ve,InitializedInput:mn,info:fn,InfoContainer:yn,InfoUrl:hn,InfoBasePath:dn,Contact:vn,License:xn,JumpToPath:wn,CopyToClipboardBtn:Cn,onlineValidatorBadge:Ue.Z,operations:Fe,operation:We,OperationSummary:Ze,OperationSummaryMethod:Xe,OperationSummaryPath:et,highlightCode:ft,responses:yt,response:xt,ResponseExtension:wt,responseBody:kt,parameters:Pt,parameterRow:Dt,execute:Kt,headers:Lt,errors:Vt,contentType:Bt,overview:un,footer:bn,FilterContainer:jn,ParamBody:Nn,curl:kn,schemes:An,SchemesContainer:In,modelExample:Tn,ModelWrapper:Mn,ModelCollapse:Pn,Model:Dn.Z,Models:Jn,EnumModel:$n,ObjectModel:Kn,ArrayModel:Ln,PrimitiveModel:Un,Property:Fn,TryItOutButton:zn,Markdown:Zn.Z,BaseLayout:Xn,VersionPragmaFilter:Bn,VersionStamp:Wn,OperationExt:tt,OperationExtRow:nt,ParameterExt:qt,ParameterIncludeEmpty:Tt,OperationTag:Be,OperationContainer:de,DeepLink:Hn,SvgAssets:Gn,Example:be,ExamplesSelect:Ne,ExamplesSelectValueRetainer:ke}},s={components:e},r={components:t};return[se.default,te.default,Y.default,G.default,H.default,B.default,W.default,Z.default,n,s,Q.default,r,ee.default,ne.default,re.default,ae.default,oe.default,X.default,(0,le.default)()]}ie()(cs,"defaultProps",es);var ps=n(7451),ms=n(9806),ds=n(7139);function hs(){return[us,ps.default,ds.default,ms.default]}var gs=n(5308);const{GIT_DIRTY:fs,GIT_COMMIT:ys,PACKAGE_VERSION:Ss,BUILD_TIME:vs}={PACKAGE_VERSION:"5.1.0",GIT_COMMIT:"gc1cc7a3",GIT_DIRTY:!0,BUILD_TIME:"Mon, 19 Jun 2023 09:16:14 GMT"};function Es(e){var t;J.Z.versions=J.Z.versions||{},J.Z.versions.swaggerUi={version:Ss,gitRevision:ys,gitDirty:fs,buildTimestamp:vs};const n={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,a()(t=window.location.pathname).call(t,"/"))}/oauth2-redirect.html`,persistAuthorization:!1,configs:{},custom:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>e,responseInterceptor:e=>e,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:[hs],plugins:[],pluginsOptions:{pluginLoadType:"legacy"},initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"}};let s=e.queryConfigEnabled?(0,$.UG)():{};const r=e.domNode;delete e.domNode;const o=d()({},n,e,s),c={system:{configs:o.configs},plugins:o.presets,pluginsOptions:o.pluginsOptions,state:d()({layout:{layout:o.layout,filter:l()(o)},spec:{spec:"",url:o.url},requestSnippets:o.requestSnippets},o.initialState)};if(o.initialState)for(var u in o.initialState)Object.prototype.hasOwnProperty.call(o.initialState,u)&&void 0===o.initialState[u]&&delete c.state[u];var m=new L(c);m.register([o.plugins,()=>({fn:o.fn,components:o.components,state:o.state})]);var h=m.getSystem();const g=e=>{let t=h.specSelectors.getLocalConfig?h.specSelectors.getLocalConfig():{},n=d()({},t,o,e||{},s);if(r&&(n.domNode=r),m.setConfigs(n),h.configsActions.loaded(),null!==e&&(!s.url&&"object"==typeof n.spec&&i()(n.spec).length?(h.specActions.updateUrl(""),h.specActions.updateLoadingStatus("success"),h.specActions.updateSpec(p()(n.spec))):h.specActions.download&&n.url&&!n.urls&&(h.specActions.updateUrl(n.url),h.specActions.download(n.url))),n.domNode)h.render(n.domNode,"App");else if(n.dom_id){let e=document.querySelector(n.dom_id);h.render(e,"App")}else null===n.dom_id||null===n.domNode||console.error("Skipped rendering: no `dom_id` or `domNode` was specified");return h},f=s.config||o.configUrl;return f&&h.specActions&&h.specActions.getConfigByUrl?(h.specActions.getConfigByUrl({url:f,loadRemoteConfig:!0,requestInterceptor:o.requestInterceptor,responseInterceptor:o.responseInterceptor},g),h):g()}Es.presets={apis:hs},Es.plugins=gs.default;const xs=Es})(),s=s.default})()));
//# sourceMappingURL=swagger-ui.js.map
\ No newline at end of file