/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */
import*as e from"react-immutable-pure-component";import*as t from"remarkable/linkify";import*as a from"dompurify";import*as n from"zenscroll";import*as r from"lodash/reduce";import*as s from"@babel/runtime-corejs3/core-js-stable/string/raw";import*as o from"@babel/runtime-corejs3/core-js-stable/number/epsilon";import*as l from"@babel/runtime-corejs3/core-js-stable/instance/repeat";import*as i from"@babel/runtime-corejs3/core-js-stable/instance/fill";import*as c from"lodash/zipObject";import*as u from"@babel/runtime-corejs3/core-js-stable/promise";import*as d from"@babel/runtime-corejs3/core-js-stable/date/now";import*as p from"lodash/isString";import*as m from"lodash/debounce";import*as f from"lodash/set";import*as h from"lodash/fp/assocPath";import*as g from"swagger-client/es/resolver/strategies/generic";import*as y from"swagger-client/es/resolver/strategies/openapi-2";import*as v from"swagger-client/es/resolver/strategies/openapi-3-0";import*as E from"swagger-client/es/resolver/strategies/openapi-3-1-apidom";import*as S from"swagger-client/es/resolver";import*as w from"swagger-client/es/execute";import*as b from"swagger-client/es/http";import*as x from"swagger-client/es/subtree-resolver";import*as _ from"react-dom";import*as C from"react-redux";import*as j from"lodash/omit";import*as O from"react-syntax-highlighter/dist/esm/light";import*as N from"react-syntax-highlighter/dist/esm/languages/hljs/javascript";import*as k from"react-syntax-highlighter/dist/esm/languages/hljs/json";import*as A from"react-syntax-highlighter/dist/esm/languages/hljs/xml";import*as I from"react-syntax-highlighter/dist/esm/languages/hljs/bash";import*as R from"react-syntax-highlighter/dist/esm/languages/hljs/yaml";import*as P from"react-syntax-highlighter/dist/esm/languages/hljs/http";import*as T from"react-syntax-highlighter/dist/esm/languages/hljs/powershell";import*as M from"react-syntax-highlighter/dist/esm/styles/hljs/agate";import*as D from"react-syntax-highlighter/dist/esm/styles/hljs/arta";import*as L from"react-syntax-highlighter/dist/esm/styles/hljs/monokai";import*as q from"react-syntax-highlighter/dist/esm/styles/hljs/nord";import*as B from"react-syntax-highlighter/dist/esm/styles/hljs/obsidian";import*as U from"react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night";import*as J from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import*as $ from"@braintree/sanitize-url";import*as K from"lodash/camelCase";import*as V from"lodash/upperFirst";import*as F from"lodash/find";import*as z from"lodash/eq";import*as W from"css.escape";import*as H from"@babel/runtime-corejs3/core-js-stable/instance/find-index";import*as G from"@babel/runtime-corejs3/core-js-stable/array/from";import*as Z from"@babel/runtime-corejs3/core-js-stable/array/is-array";import*as Y from"@babel/runtime-corejs3/core-js-stable/instance/bind";import*as X from"@babel/runtime-corejs3/core-js-stable/instance/concat";import*as Q from"@babel/runtime-corejs3/core-js-stable/instance/entries";import*as ee from"@babel/runtime-corejs3/core-js-stable/instance/every";import*as te from"@babel/runtime-corejs3/core-js-stable/instance/filter";import*as ae from"@babel/runtime-corejs3/core-js-stable/instance/find";import*as ne from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import*as re from"@babel/runtime-corejs3/core-js-stable/instance/includes";import*as se from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import*as oe from"@babel/runtime-corejs3/core-js-stable/instance/keys";import*as le from"@babel/runtime-corejs3/core-js-stable/instance/map";import*as ie from"@babel/runtime-corejs3/core-js-stable/instance/reduce";import*as ce from"@babel/runtime-corejs3/core-js-stable/instance/slice";import*as ue from"@babel/runtime-corejs3/core-js-stable/instance/some";import*as de from"@babel/runtime-corejs3/core-js-stable/instance/sort";import*as pe from"@babel/runtime-corejs3/core-js-stable/instance/trim";import*as me from"@babel/runtime-corejs3/core-js-stable/json/stringify";import*as fe from"@babel/runtime-corejs3/core-js-stable/map";import*as he from"@babel/runtime-corejs3/core-js-stable/number/is-integer";import*as ge from"@babel/runtime-corejs3/core-js-stable/object/assign";import*as ye from"@babel/runtime-corejs3/core-js-stable/object/entries";import*as ve from"@babel/runtime-corejs3/core-js-stable/object/from-entries";import*as Ee from"@babel/runtime-corejs3/core-js-stable/object/keys";import*as Se from"@babel/runtime-corejs3/core-js-stable/object/values";import*as we from"@babel/runtime-corejs3/core-js-stable/set";import*as be from"@babel/runtime-corejs3/core-js-stable/set-timeout";import*as xe from"@babel/runtime-corejs3/core-js-stable/url";import*as _e from"@babel/runtime-corejs3/core-js-stable/weak-map";import*as Ce from"@babel/runtime-corejs3/core-js-stable/weak-set";import*as je from"@babel/runtime-corejs3/helpers/classPrivateFieldGet";import*as Oe from"@babel/runtime-corejs3/helpers/defineProperty";import*as Ne from"@babel/runtime-corejs3/helpers/extends";import*as ke from"base64-js";import*as Ae from"classnames";import*as Ie from"ieee754";import*as Re from"immutable";import*as Pe from"js-yaml";import*as Te from"lodash/get";import*as Me from"lodash/identity";import*as De from"lodash/isEmpty";import*as Le from"lodash/isFunction";import*as qe from"lodash/isPlainObject";import*as Be from"lodash/memoize";import*as Ue from"lodash/some";import*as Je from"prop-types";import*as $e from"randexp";import*as Ke from"react";import*as Ve from"react-copy-to-clipboard";import*as Fe from"react-immutable-proptypes";import*as ze from"redux";import*as We from"remarkable";import*as He from"reselect";import*as Ge from"serialize-error";import*as Ze from"swagger-client/es/helpers";import*as Ye from"url-parse";import*as Xe from"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import*as Qe from"redux-immutable";import*as et from"lodash/merge";import*as tt from"lodash/toString";import*as at from"@babel/runtime-corejs3/core-js-stable/instance/splice";import*as nt from"js-file-download";import*as rt from"@babel/runtime-corejs3/core-js-stable/instance/values";import*as st from"xml-but-prettier";import*as ot from"lodash/toLower";import*as lt from"react-debounce-input";var it={1543:(t,a,n)=>{n.d(a,{Z:()=>m});var r=n(863),s=n(775),o=n(8818),l=n(2565),i=n(810);const c=(e=>{var t={};return n.d(t,e),t})({default:()=>e.default});var u=n(9569),d=n(5053);const p=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class m extends c.default{constructor(){super(...arguments),(0,s.default)(this,"getModelName",(e=>-1!==(0,o.default)(e).call(e,"#/definitions/")?p(e.replace(/^.*#\/definitions\//,"")):-1!==(0,o.default)(e).call(e,"#/components/schemas/")?p(e.replace(/^.*#\/components\/schemas\//,"")):void 0)),(0,s.default)(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:a,schema:s,required:o,name:l,isRef:c,specPath:u,displayName:d,includeReadOnly:p,includeWriteOnly:m}=this.props;const f=e("ObjectModel"),h=e("ArrayModel"),g=e("PrimitiveModel");let y="object",v=s&&s.get("$$ref");if(!l&&v&&(l=this.getModelName(v)),!s&&v&&(s=this.getRefSchema(l)),!s)return i.default.createElement("span",{className:"model model-title"},i.default.createElement("span",{className:"model-title__text"},d||l),i.default.createElement("img",{src:n(2517),height:"20px",width:"20px"}));const E=a.isOAS3()&&s.get("deprecated");switch(c=void 0!==c?c:!!v,y=s&&s.get("type")||y,y){case"object":return i.default.createElement(f,(0,r.default)({className:"object"},this.props,{specPath:u,getConfigs:t,schema:s,name:l,deprecated:E,isRef:c,includeReadOnly:p,includeWriteOnly:m}));case"array":return i.default.createElement(h,(0,r.default)({className:"array"},this.props,{getConfigs:t,schema:s,name:l,deprecated:E,required:o,includeReadOnly:p,includeWriteOnly:m}));default:return i.default.createElement(g,(0,r.default)({},this.props,{getComponent:e,getConfigs:t,schema:s,name:l,deprecated:E,required:o}))}}}(0,s.default)(m,"propTypes",{schema:(0,l.default)(u.default).isRequired,getComponent:d.default.func.isRequired,getConfigs:d.default.func.isRequired,specSelectors:d.default.object.isRequired,name:d.default.string,displayName:d.default.string,isRef:d.default.bool,required:d.default.bool,expandDepth:d.default.number,depth:d.default.number,specPath:u.default.list.isRequired,includeReadOnly:d.default.bool,includeWriteOnly:d.default.bool})},5623:(e,t,a)=>{a.d(t,{Z:()=>c});var n=a(775),r=a(2740),s=a(810),o=a(8900),l=(a(5053),a(6561)),i=a(7504);class c extends s.default.Component{constructor(e,t){super(e,t),(0,n.default)(this,"getDefinitionUrl",(()=>{let{specSelectors:e}=this.props;return new o.default(e.url(),i.Z.location).toString()}));let{getConfigs:a}=e,{validatorUrl:r}=a();this.state={url:this.getDefinitionUrl(),validatorUrl:void 0===r?"https://validator.swagger.io/validator":r}}UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:a}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:void 0===a?"https://validator.swagger.io/validator":a})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),a=(0,l.Nm)(this.state.validatorUrl);return"object"==typeof t&&(0,r.default)(t).length?null:this.state.url&&(0,l.hW)(this.state.validatorUrl)&&(0,l.hW)(this.state.url)?s.default.createElement("span",{className:"float-right"},s.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${a}/debug?url=${encodeURIComponent(this.state.url)}`},s.default.createElement(u,{src:`${a}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class u extends s.default.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?s.default.createElement("img",{alt:"Error"}):this.state.loaded?s.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}},5466:(e,n,r)=>{r.d(n,{Z:()=>d,s:()=>p});var s=r(810),o=(r(5053),r(3952));const l=(e=>{var t={};return r.d(t,e),t})({linkify:()=>t.linkify});const i=(e=>{var t={};return r.d(t,e),t})({default:()=>a.default});var c=r(8096);function u(e){let{source:t,className:a="",getConfigs:n}=e;if("string"!=typeof t)return null;const r=new o.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(l.linkify);r.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:i}=n(),u=r.render(t),d=p(u,{useUnsafeMarkdown:i});return t&&u&&d?s.default.createElement("div",{className:(0,c.default)(a,"markdown"),dangerouslySetInnerHTML:{__html:d}}):null}i.default.addHook&&i.default.addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e})),u.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const d=u;function p(e){let{useUnsafeMarkdown:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t,n=t?[]:["style","class"];return t&&!p.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),p.hasWarnedAboutDeprecation=!0),i.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:a,FORBID_ATTR:n})}p.hasWarnedAboutDeprecation=!1},5308:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n,r=a(29),s=a(5487),o=a(6561),l=a(8102);const i=a(5102),c={},u=c;(0,r.default)(n=(0,s.default)(i).call(i)).call(n,(function(e){if("./index.js"===e)return;let t=i(e);c[(0,o.Zl)(e)]=t.default?t.default:t})),c.SafeRender=l.default},5812:(e,t,a)=>{a.r(t),a.d(t,{AUTHORIZE:()=>c,AUTHORIZE_OAUTH2:()=>p,CONFIGURE_AUTH:()=>f,LOGOUT:()=>u,PRE_AUTHORIZE_OAUTH2:()=>d,RESTORE_AUTHORIZATION:()=>h,SHOW_AUTH_POPUP:()=>i,VALIDATE:()=>m,authPopup:()=>R,authorize:()=>y,authorizeAccessCodeWithBasicAuthentication:()=>O,authorizeAccessCodeWithFormParams:()=>j,authorizeApplication:()=>C,authorizeOauth2:()=>b,authorizeOauth2WithPersistOption:()=>x,authorizePassword:()=>_,authorizeRequest:()=>N,authorizeWithPersistOption:()=>v,configureAuth:()=>k,logout:()=>E,logoutWithPersistOption:()=>S,persistAuthorizationIfNeeded:()=>I,preAuthorizeImplicit:()=>w,restoreAuthorization:()=>A,showDefinitions:()=>g});var n=a(313),r=a(7512),s=a(8900),o=a(7504),l=a(6561);const i="show_popup",c="authorize",u="logout",d="pre_authorize_oauth2",p="authorize_oauth2",m="validate",f="configure_auth",h="restore_authorization";function g(e){return{type:i,payload:e}}function y(e){return{type:c,payload:e}}const v=e=>t=>{let{authActions:a}=t;a.authorize(e),a.persistAuthorizationIfNeeded()};function E(e){return{type:u,payload:e}}const S=e=>t=>{let{authActions:a}=t;a.logout(e),a.persistAuthorizationIfNeeded()},w=e=>t=>{let{authActions:a,errActions:r}=t,{auth:s,token:l,isValid:i}=e,{schema:c,name:u}=s,d=c.get("flow");delete o.Z.swaggerUIRedirectOauth2,"accessCode"===d||i||r.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"}),l.error?r.newAuthErr({authId:u,source:"auth",level:"error",message:(0,n.default)(l)}):a.authorizeOauth2WithPersistOption({auth:s,token:l})};function b(e){return{type:p,payload:e}}const x=e=>t=>{let{authActions:a}=t;a.authorizeOauth2(e),a.persistAuthorizationIfNeeded()},_=e=>t=>{let{authActions:a}=t,{schema:n,name:s,username:o,password:i,passwordType:c,clientId:u,clientSecret:d}=e,p={grant_type:"password",scope:e.scopes.join(" "),username:o,password:i},m={};switch(c){case"request-body":!function(e,t,a){t&&(0,r.default)(e,{client_id:t});a&&(0,r.default)(e,{client_secret:a})}(p,u,d);break;case"basic":m.Authorization="Basic "+(0,l.r3)(u+":"+d);break;default:console.warn(`Warning: invalid passwordType ${c} was passed, not including client id and secret`)}return a.authorizeRequest({body:(0,l.GZ)(p),url:n.get("tokenUrl"),name:s,headers:m,query:{},auth:e})};const C=e=>t=>{let{authActions:a}=t,{schema:n,scopes:r,name:s,clientId:o,clientSecret:i}=e,c={Authorization:"Basic "+(0,l.r3)(o+":"+i)},u={grant_type:"client_credentials",scope:r.join(" ")};return a.authorizeRequest({body:(0,l.GZ)(u),name:s,url:n.get("tokenUrl"),auth:e,headers:c})},j=e=>{let{auth:t,redirectUrl:a}=e;return e=>{let{authActions:n}=e,{schema:r,name:s,clientId:o,clientSecret:i,codeVerifier:c}=t,u={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:i,redirect_uri:a,code_verifier:c};return n.authorizeRequest({body:(0,l.GZ)(u),name:s,url:r.get("tokenUrl"),auth:t})}},O=e=>{let{auth:t,redirectUrl:a}=e;return e=>{let{authActions:n}=e,{schema:r,name:s,clientId:o,clientSecret:i,codeVerifier:c}=t,u={Authorization:"Basic "+(0,l.r3)(o+":"+i)},d={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:a,code_verifier:c};return n.authorizeRequest({body:(0,l.GZ)(d),name:s,url:r.get("tokenUrl"),auth:t,headers:u})}},N=e=>t=>{let a,{fn:o,getConfigs:l,authActions:i,errActions:c,oas3Selectors:u,specSelectors:d,authSelectors:p}=t,{body:m,query:f={},headers:h={},name:g,url:y,auth:v}=e,{additionalQueryStringParams:E}=p.getConfigs()||{};if(d.isOAS3()){let e=u.serverEffectiveValue(u.selectedServer());a=(0,s.default)(y,e,!0)}else a=(0,s.default)(y,d.url(),!0);"object"==typeof E&&(a.query=(0,r.default)({},a.query,E));const S=a.toString();let w=(0,r.default)({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},h);o.fetch({url:S,method:"post",headers:w,query:f,body:m,requestInterceptor:l().requestInterceptor,responseInterceptor:l().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),a=t&&(t.error||""),r=t&&(t.parseError||"");e.ok?a||r?c.newAuthErr({authId:g,level:"error",source:"auth",message:(0,n.default)(t)}):i.authorizeOauth2WithPersistOption({auth:v,token:t}):c.newAuthErr({authId:g,level:"error",source:"auth",message:e.statusText})})).catch((e=>{let t=new Error(e).message;if(e.response&&e.response.data){const a=e.response.data;try{const e="string"==typeof a?JSON.parse(a):a;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch(e){}}c.newAuthErr({authId:g,level:"error",source:"auth",message:t})}))};function k(e){return{type:f,payload:e}}function A(e){return{type:h,payload:e}}const I=()=>e=>{let{authSelectors:t,getConfigs:a}=e;if(!a().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",(0,n.default)(r))},R=(e,t)=>()=>{o.Z.swaggerUIRedirectOauth2=t,o.Z.open(e)}},3779:(e,t,a)=>{a.r(t),a.d(t,{loaded:()=>n});const n=(e,t)=>a=>{const{getConfigs:n,authActions:r}=t,s=n();if(e(a),s.persistAuthorization){const e=localStorage.getItem("authorized");e&&r.restoreAuthorization({authorized:JSON.parse(e)})}}},3705:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u,preauthorizeApiKey:()=>p,preauthorizeBasic:()=>d});var n=a(5527),r=a(3962),s=a(5812),o=a(35),l=a(489),i=a(3779),c=a(2849);function u(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=(0,n.default)(p).call(p,null,e),this.rootInjects.preauthorizeBasic=(0,n.default)(d).call(d,null,e)},statePlugins:{auth:{reducers:r.default,actions:s,selectors:o,wrapActions:{authorize:c.authorize,logout:c.logout}},configs:{wrapActions:{loaded:i.loaded}},spec:{wrapActions:{execute:l.execute}}}}}function d(e,t,a,n){const{authActions:{authorize:r},specSelectors:{specJson:s,isOAS3:o}}=e,l=o()?["components","securitySchemes"]:["securityDefinitions"],i=s().getIn([...l,t]);return i?r({[t]:{value:{username:a,password:n},schema:i.toJS()}}):null}function p(e,t,a){const{authActions:{authorize:n},specSelectors:{specJson:r,isOAS3:s}}=e,o=s()?["components","securitySchemes"]:["securityDefinitions"],l=r().getIn([...o,t]);return l?n({[t]:{value:a,schema:l.toJS()}}):null}},3962:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var n=a(29),r=a(7512),s=a(9725),o=a(6561),l=a(5812);const i={[l.SHOW_AUTH_POPUP]:(e,t)=>{let{payload:a}=t;return e.set("showDefinitions",a)},[l.AUTHORIZE]:(e,t)=>{var a;let{payload:r}=t,l=(0,s.fromJS)(r),i=e.get("authorized")||(0,s.Map)();return(0,n.default)(a=l.entrySeq()).call(a,(t=>{let[a,n]=t;if(!(0,o.Wl)(n.getIn))return e.set("authorized",i);let r=n.getIn(["schema","type"]);if("apiKey"===r||"http"===r)i=i.set(a,n);else if("basic"===r){let e=n.getIn(["value","username"]),t=n.getIn(["value","password"]);i=i.setIn([a,"value"],{username:e,header:"Basic "+(0,o.r3)(e+":"+t)}),i=i.setIn([a,"schema"],n.get("schema"))}})),e.set("authorized",i)},[l.AUTHORIZE_OAUTH2]:(e,t)=>{let a,{payload:n}=t,{auth:o,token:l}=n;o.token=(0,r.default)({},l),a=(0,s.fromJS)(o);let i=e.get("authorized")||(0,s.Map)();return i=i.set(a.get("name"),a),e.set("authorized",i)},[l.LOGOUT]:(e,t)=>{let{payload:a}=t,r=e.get("authorized").withMutations((e=>{(0,n.default)(a).call(a,(t=>{e.delete(t)}))}));return e.set("authorized",r)},[l.CONFIGURE_AUTH]:(e,t)=>{let{payload:a}=t;return e.set("configs",a)},[l.RESTORE_AUTHORIZATION]:(e,t)=>{let{payload:a}=t;return e.set("authorized",(0,s.fromJS)(a.authorized))}}},35:(e,t,a)=>{a.r(t),a.d(t,{authorized:()=>g,definitionsForRequirements:()=>h,definitionsToAuthorize:()=>m,getConfigs:()=>v,getDefinitionsByNames:()=>f,isAuthorized:()=>y,shownDefinitions:()=>p});var n=a(29),r=a(1778),s=a(6145),o=a(8818),l=a(2565),i=a(2740),c=a(8639),u=a(9725);const d=e=>e,p=(0,c.createSelector)(d,(e=>e.get("showDefinitions"))),m=(0,c.createSelector)(d,(()=>e=>{var t;let{specSelectors:a}=e,r=a.securityDefinitions()||(0,u.Map)({}),s=(0,u.List)();return(0,n.default)(t=r.entrySeq()).call(t,(e=>{let[t,a]=e,n=(0,u.Map)();n=n.set(t,a),s=s.push(n)})),s})),f=(e,t)=>e=>{var a;let{specSelectors:r}=e;console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let s=r.securityDefinitions(),o=(0,u.List)();return(0,n.default)(a=t.valueSeq()).call(a,(e=>{var t;let a=(0,u.Map)();(0,n.default)(t=e.entrySeq()).call(t,(e=>{let t,[r,o]=e,l=s.get(r);var i;"oauth2"===l.get("type")&&o.size&&(t=l.get("scopes"),(0,n.default)(i=t.keySeq()).call(i,(e=>{o.contains(e)||(t=t.delete(e))})),l=l.set("allowedScopes",t));a=a.set(r,l)})),o=o.push(a)})),o},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,u.List)();return e=>{let{authSelectors:a}=e;const s=a.definitionsToAuthorize()||(0,u.List)();let o=(0,u.List)();return(0,n.default)(s).call(s,(e=>{let a=(0,r.default)(t).call(t,(t=>t.get(e.keySeq().first())));a&&((0,n.default)(e).call(e,((t,r)=>{if("oauth2"===t.get("type")){const o=a.get(r);let l=t.get("scopes");var s;if(u.List.isList(o)&&u.Map.isMap(l))(0,n.default)(s=l.keySeq()).call(s,(e=>{o.contains(e)||(l=l.delete(e))})),e=e.set(r,t.set("scopes",l))}})),o=o.push(e))})),o}},g=(0,c.createSelector)(d,(e=>e.get("authorized")||(0,u.Map)())),y=(e,t)=>e=>{var a;let{authSelectors:n}=e,r=n.authorized();return u.List.isList(t)?!!(0,s.default)(a=t.toJS()).call(a,(e=>{var t,a;return-1===(0,o.default)(t=(0,l.default)(a=(0,i.default)(e)).call(a,(e=>!!r.get(e)))).call(t,!1)})).length:null},v=(0,c.createSelector)(d,(e=>e.get("configs")))},489:(e,t,a)=>{a.r(t),a.d(t,{execute:()=>n});const n=(e,t)=>{let{authSelectors:a,specSelectors:n}=t;return t=>{let{path:r,method:s,operation:o,extras:l}=t,i={authorized:a.authorized()&&a.authorized().toJS(),definitions:n.securityDefinitions()&&n.securityDefinitions().toJS(),specSecurity:n.security()&&n.security().toJS()};return e({path:r,method:s,operation:o,securities:i,...l})}}},2849:(e,t,a)=>{a.r(t),a.d(t,{authorize:()=>o,logout:()=>l});var n=a(374),r=a(4163),s=a(29);const o=(e,t)=>a=>{e(a);if(t.getConfigs().persistAuthorization)try{const[{schema:e,value:t}]=(0,n.default)(a),r="apiKey"===e.get("type"),s="cookie"===e.get("in");r&&s&&(document.cookie=`${e.get("name")}=${t}; SameSite=None; Secure`)}catch(e){console.error("Error persisting cookie based apiKey in document.cookie.",e)}},l=(e,t)=>a=>{const n=t.getConfigs(),o=t.authSelectors.authorized();try{n.persistAuthorization&&(0,r.default)(a)&&(0,s.default)(a).call(a,(e=>{const t=o.get(e,{}),a="apiKey"===t.getIn(["schema","type"]),n="cookie"===t.getIn(["schema","in"]);if(a&&n){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(a)}},714:(e,t,a)=>{a.r(t),a.d(t,{TOGGLE_CONFIGS:()=>r,UPDATE_CONFIGS:()=>n,loaded:()=>l,toggle:()=>o,update:()=>s});const n="configs_update",r="configs_toggle";function s(e,t){return{type:n,payload:{[e]:t}}}function o(e){return{type:r,payload:e}}const l=()=>()=>{}},2256:(e,t,a)=>{a.r(t),a.d(t,{parseYamlConfig:()=>r});var n=a(3772);const r=(e,t)=>{try{return n.default.load(e)}catch(e){return t&&t.errActions.newThrownErr(new Error(e)),{}}}},6709:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var n=a(2256),r=a(714),s=a(2698),o=a(9018),l=a(7743);const i={getLocalConfig:()=>(0,n.parseYamlConfig)('---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n')};function c(){return{statePlugins:{spec:{actions:s,selectors:i},configs:{reducers:l.default,actions:r,selectors:o}}}}},7743:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(9725),r=a(714);const s={[r.UPDATE_CONFIGS]:(e,t)=>e.merge((0,n.fromJS)(t.payload)),[r.TOGGLE_CONFIGS]:(e,t)=>{const a=t.payload,n=e.get(a);return e.set(a,!n)}}},9018:(e,t,a)=>{a.r(t),a.d(t,{get:()=>r});var n=a(4163);const r=(e,t)=>e.getIn((0,n.default)(t)?t:[t])},2698:(e,t,a)=>{a.r(t),a.d(t,{downloadConfig:()=>r,getConfigByUrl:()=>s});var n=a(2256);const r=e=>t=>{const{fn:{fetch:a}}=t;return a(e)},s=(e,t)=>a=>{let{specActions:r}=a;if(e)return r.downloadConfig(e).then(s,s);function s(a){a instanceof Error||a.status>=400?(r.updateLoadingStatus("failedConfig"),r.updateLoadingStatus("failedConfig"),r.updateUrl(""),console.error(a.statusText+" "+e.url),t(null)):t((0,n.parseYamlConfig)(a.text))}}},1970:(e,t,a)=>{a.r(t),a.d(t,{setHash:()=>n});const n=e=>e?history.pushState(null,null,`#${e}`):window.location.hash=""},4980:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var n=a(5858),r=a(877),s=a(4584);function o(){return[n.default,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>function(){e(...arguments);const a=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(a)}}}},wrapComponents:{operation:r.default,OperationTag:s.default}}]}},5858:(e,t,a)=>{a.r(t),a.d(t,{clearScrollTo:()=>E,default:()=>S,parseDeepLinkHash:()=>g,readyToScroll:()=>y,scrollTo:()=>h,scrollToElement:()=>v,show:()=>f});var r=a(4163),s=a(8136),o=a(2565),l=a(8818),i=a(1970);const c=(e=>{var t={};return a.d(t,e),t})({default:()=>n.default});var u=a(6561),d=a(9725);const p="layout_scroll_to",m="layout_clear_scroll",f=(e,t)=>{let{getConfigs:a,layoutSelectors:n}=t;return function(){for(var t=arguments.length,s=new Array(t),o=0;o
content
","application/*":()=>(0,r.bytes)(25).toString("binary")}},4342:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(5202);const r={"audio/*":()=>(0,n.bytes)(25).toString("binary")}},6724:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(5202);const r={"image/*":()=>(0,n.bytes)(25).toString("binary")}},5378:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"content
","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'