redoc/redoc-demo.bundle.js

1864 lines
874 KiB
JavaScript
Raw Normal View History

2021-07-01 12:47:52 +03:00
/*! For license information please see redoc-demo.bundle.js.LICENSE.txt */
2022-02-04 13:00:46 +03:00
(()=>{var e={3675:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.bundleDocument=t.bundle=t.OasVersion=void 0;const o=n(2307),i=n(4182),a=n(8065),s=n(5241),l=n(388),c=n(2608),u=n(5220),p=n(9443),d=n(1510),f=n(7468),h=n(5030),m=n(348),g=n(771);var y;function b(e){return r(this,void 0,void 0,(function*(){const{document:t,config:n,customTypes:r,externalRefResolver:o,dereference:f=!1}=e,m=d.detectOpenAPI(t.parsed),g=d.openAPIMajor(m),b=n.getRulesForOasVersion(g),v=u.normalizeTypes(n.extendTypes((null!=r?r:g===d.OasMajorVersion.Version3)?m===y.Version3_1?c.Oas3_1Types:s.Oas3Types:l.Oas2Types,m),n),w=h.initRules(b,n,"preprocessors",m),k=h.initRules(b,n,"decorators",m),E={problems:[],oasVersion:m},O=a.normalizeVisitors([...w,{severity:"error",ruleId:"bundler",visitor:x(g,f,t)},...k],v),S=yield i.resolveDocument({rootDocument:t,rootType:v.DefinitionRoot,externalRefResolver:o});return p.walkDocument({document:t,rootType:v.DefinitionRoot,normalizedVisitors:O,resolvedRefMap:S,ctx:E}),{bundle:t,problems:E.problems.map((e=>n.addProblemToIgnore(e))),fileDependencies:o.getFiles()}}))}function v(e,t){switch(t){case d.OasMajorVersion.Version3:switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case d.OasMajorVersion.Version2:switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}}}function x(e,t,n){let r;const i={ref:{leave(r,o,i){if(!i.location||void 0===i.node)return void m.reportUnresolvedRef(i,o.report,o.location);if(i.location.source===n.source&&i.location.source===o.location.source&&"scalar"!==o.type.name&&!t)return;const l=v(o.type.name,e);l?t?(s(l,i,o),a(r,i,o)):r.$ref=s(l,i,o):a(r,i,o)}},DefinitionRoot:{enter(t){e===d.OasMajorVersion.Version3?r=t.components=t.components||{}:e===d.OasMajorVersion.Version2&&(r=t)}}};function a(e,t,n){g.isPlainObject(t.node)?(delete e.$ref,Object.assign(e,t.node)):n.parent[n.key]=t.node}function s(t,n,i){r[t]=r[t]||{};const a=function(e,t,n){const[i,a]=[e.location.source.absoluteRef,e.location.pointer],s=r[t];let l="";const c=a.slice(2).split("/").filter(Boolean);for(;c.length>0;)if(l=c.pop()+(l?`-${l}`:""),!s||!s[l]||o(s[l],e.node))return l;if(l=f.refBaseName(i)+(l?`_${l}`:""),!s[l]||o(s[l],e.node))return l;const u=l;let p=2;for(;s[l]&&!o(s[l],e.node);)l=`${u}-${p}`,p++;return s[l]||n.report({message:`Two schemas are referenced with the same name but different content. Renamed ${u} to ${l}.`,location:n.location,forceSeverity:"warn"}),l}(n,t,i);return r[t][a]=n.node,e===d.OasMajorVersion.Version3?`#/components/${t}/${a}`:`#/${t}/${a}`}return e===d.OasMajorVersion.Version3&&(i.DiscriminatorMapping={leave(n,r){for(const o of Object.keys(n)){const i=n[o],a=r.resolve({$ref:i});if(!a.location||void 0===a.node)return void m.reportUnresolvedRef(a,r.report,r.location.child(o));const l=v("Schema",e);t?s(l,a,r):n[o]=s(l,a,r)}}}),i}!function(e){e.Version2="oas2",e.Version3_0="oas3_0",e.Version3_1="oas3_1"}(y=t.OasVersion||(t.OasVersion={})),t.bundle=function(e){return r(this,void 0,void 0,(function*(){const{ref:t,doc:n,externalRefResolver:r=new i.BaseResolver(e.config.resolve),base:o=null}=e;if(!t&&!n)throw new Error("Document or reference is required.\n");const a=void 0!==n?n:yield r.resolveDocument(o,t,!0);if(a instanceof Error)throw a;return b(Object.assign(Object.assign({document:a},e),{config:e.config.lint,externalRefResolver:r}))}))},t.bundleDocument=b},3777:(e,t,n)=>{"use strict";t.De=t.bD=void 0;const r=n(51
@media ${t?"print, ":""} screen and (max-width: ${t=>t.theme.breakpoints[e]}) ${n||""} {
${kn(...r)};
}
`,An=wn;function Cn(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const Rn=An.div`
padding: 20px;
color: red;
`;class Tn extends r.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?r.createElement(Rn,null,r.createElement("h1",null,"Something went wrong..."),r.createElement("small",null," ",this.state.error.message," "),r.createElement("p",null,r.createElement("details",null,r.createElement("summary",null,"Stack trace"),r.createElement("pre",null,this.state.error.stack))),r.createElement("small",null," ReDoc Version: ","2.0.0-rc.63")," ",r.createElement("br",null),r.createElement("small",null," Commit: ","da4e4ad6")):r.Children.only(this.props.children)}}const Pn=On`
0% {
transform: rotate(0deg); }
100% {
transform: rotate(360deg);
}
`,In=An((e=>r.createElement("svg",{className:e.className,version:"1.1",width:"512",height:"512",viewBox:"0 0 512 512"},r.createElement("path",{d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z"}),r.createElement("path",{d:"M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z"}),r.createElement("path",{d:"M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z"}),r.createElement("path",{d:"M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z"}),r.createElement("path",{d:"M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z"}),r.createElement("path",{d:"M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z"}),r.createElement("path",{d:"M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z"}),r.createElement("path",{d:"M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"}))))`
animation: 2s ${Pn} linear infinite;
width: 50px;
height: 50px;
content: '';
display: inline-block;
margin-left: -25px;
path {
fill: ${e=>e.color};
}
`,jn=An.div`
font-family: helvetica, sans;
width: 100%;
text-align: center;
font-size: 25px;
margin: 30px 0 20px 0;
color: ${e=>e.color};
`;class Nn extends r.PureComponent{render(){return r.createElement("div",{style:{textAlign:"center"}},r.createElement(jn,{color:this.props.color},"Loading ..."),r.createElement(In,{color:this.props.color}))}}var Ln=n(5697);const $n=r.createContext(new xn({})),Dn=$n.Provider,Mn=$n.Consumer;function Fn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var zn={};function Un(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:zn}var Bn=Object.assign,qn=Object.getOwnPropertyDescriptor,Wn=Object.defineProperty,Vn=Object.prototype,Hn=[];Object.freeze(Hn);var Yn={};Object.freeze(Yn);var Qn="undefined"!=typeof Proxy,Gn=Object.toString();function Xn(){Qn||Fn("Proxy not available")}function Kn(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Zn=function(){};function Jn(e){return"function"==typeof e}function er(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function tr(e){return null!==e&&"object"==typeof e}function nr(e){var t;if(!tr(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===Gn}function rr(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function or(e,t,n){Wn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ir(e,t,n){Wn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ar(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return tr(e)&&!0===e[n]}}function sr(e){return e instanceof Map}function lr(e){return e instanceof Set}var cr=void 0!==Object.getOwnPropertySymbols,ur="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:cr?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function pr(e){return null===e?null:"object"==typeof e?""+e:e}function dr(e,t){return Vn.hasOwnProperty.call(e,t)}var fr=Object.getOwnPropertyDescriptors||function(e){var t={};return ur(e).forEach((function(n){t[n]=qn(e,n)})),t};function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t,n){return t&&hr(e.prototype,t),n&&hr(e,n),e}function gr(){return(gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var wr=Symbol("mobx-stored-annotations");function kr(e){return Object.assign((function(t,n){Er(t,n,e)}),e)}function Er(e,t,n){dr(e,wr)||or(e,wr,gr({},e[wr])),function(e){return e.annotationType_===Pr}(n)||(e[wr][t]=n)}var Or=Symbol("mobx administration"),Sr=
width: calc(100% - ${e=>e.theme.rightPanel.width});
padding: 0 ${e=>e.theme.spacing.sectionHorizontal}px;
${({compact:e,theme:t})=>_n("medium",!0)`
width: 100%;
padding: ${`${e?0:t.spacing.sectionVertical}px ${t.spacing.sectionHorizontal}px`};
`};
`,hp=An.div.attrs((e=>({"data-section-id":e.id})))`
padding: ${e=>e.theme.spacing.sectionVertical}px 0;
&:last-child {
min-height: calc(100vh + 1px);
}
& > &:last-child {
min-height: initial;
}
${_n("medium",!0)`
padding: 0;
`}
${e=>e.underlined?"\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n ":""}
`,mp=An(An.div`
width: ${e=>e.theme.rightPanel.width};
color: ${({theme:e})=>e.rightPanel.textColor};
background-color: ${e=>e.theme.rightPanel.backgroundColor};
padding: 0 ${e=>e.theme.spacing.sectionHorizontal}px;
${_n("medium",!0)`
width: 100%;
padding: ${e=>`${e.theme.spacing.sectionVertical}px ${e.theme.spacing.sectionHorizontal}px`};
`};
`)`
background-color: ${e=>e.theme.rightPanel.backgroundColor};
`,gp=An.div`
display: flex;
width: 100%;
padding: 0;
${_n("medium",!0)`
flex-direction: column;
`};
`,yp={1:"1.85714em",2:"1.57143em",3:"1.27em"},bp=e=>kn`
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
font-weight: ${({theme:e})=>e.typography.headings.fontWeight};
font-size: ${yp[e]};
line-height: ${({theme:e})=>e.typography.headings.lineHeight};
`,vp=An.h1`
${bp(1)};
color: ${({theme:e})=>e.colors.primary.main};
${Cn("H1")};
`,xp=An.h2`
${bp(2)};
color: black;
${Cn("H2")};
`,wp=(An.h2`
${bp(3)};
color: black;
${Cn("H3")};
`,An.h3`
color: ${({theme:e})=>e.rightPanel.textColor};
${Cn("RightPanelHeader")};
`),kp=An.h5`
border-bottom: 1px solid rgba(38, 50, 56, 0.3);
margin: 1em 0 1em 0;
color: rgba(38, 50, 56, 0.5);
font-weight: normal;
text-transform: uppercase;
font-size: 0.929em;
line-height: 20px;
${Cn("UnderlinedHeader")};
`,Ep=(0,r.createContext)(void 0),{Provider:Op,Consumer:Sp}=Ep;function _p(e){const{spec:t,specUrl:o,options:i,onLoaded:a,children:s}=e,[l,c]=r.useState(null);r.useEffect((()=>{!function(){return e=this,null,r=function*(){if(!t&&!o)return;c(null);const e=yield function(e){return t=this,r=function*(){const t=new Ia.De({}),r={config:t,base:Ft?window.location.href:process.cwd()};Ft&&(t.resolve.http.customFetch=n.g.fetch),"object"==typeof e&&null!==e?r.doc={source:{absoluteRef:""},parsed:e}:r.ref=e;const{bundle:{parsed:o}}=yield(0,Pa.bundle)(r);return void 0!==o.swagger?(i=o,console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),new Promise(((e,t)=>(0,ja.convertObj)(i,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((n,r)=>{if(n)return t(n);e(r&&r.openapi)}))))):o;var i},new Promise(((e,n)=>{var o=e=>{try{a(r.next(e))}catch(e){n(e)}},i=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);a((r=r.apply(t,null)).next())}));var t,r}(t||o);c(e)},new Promise(((t,n)=>{var o=e=>{try{a(r.next(e))}catch(e){n(e)}},i=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,i);a((r=r.apply(e,null)).next())}));var e,r}()}),[t,o]);const u=r.useMemo((()=>{if(!l)return null;try{return new vy(l,o,i)}catch(e){throw a&&a(e),e}}),[l,o,i]);return r.useEffect((()=>{u&&a&&a()}),[u,a]),s({loading:!u,store:u})}const Ap=e=>kn`
${e} {
cursor: pointer;
margin-left: -20px;
padding: 0;
line-height: 1;
width: 20px;
display: inline-block;
outline: 0;
}
${e}:before {
content: '';
width: 15px;
height: 15px;
background-size: contain;
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');
opacity: 0.5;
visibility: hidden;
display: inline-block;
vertical-align: middle;
}
h1:hover > ${e}::before, h2:hover > ${e}::before, ${e}:hover::before {
visibility: visible;
}
`;function Cp(e){const t=r.useContext(Ep),n=r.useCallback((n=>{t&&function(e,t,n){t.defaultPrevented||0!==t.button||(e=>!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(t)||(t.preventDefault(),e.replace(n))}(t.menu.history,n,e.to)}),[t,e.to]);return t?r.createElement("a",{className:e.className,href:t.menu.history.linkForId(e.to),onClick:n,"aria-label":e.to},e.children):null}const Rp=An(Cp)`
${Ap("&")};
`;function Tp(e){return r.createElement(Rp,{to:e.to})}const Pp={left:"90deg",right:"-90deg",up:"-180deg",down:"0"};class Ip extends r.PureComponent{render(){return r.createElement("svg",{className:this.props.className,style:this.props.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0","aria-hidden":"true"},r.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "}))}}const jp=An(Ip)`
height: ${e=>e.size||"18px"};
width: ${e=>e.size||"18px"};
vertical-align: middle;
float: ${e=>e.float||""};
transition: transform 0.2s ease-out;
transform: rotateZ(${e=>Pp[e.direction||"down"]});
polygon {
fill: ${({color:e,theme:t})=>e&&t.colors.responses[e]&&t.colors.responses[e].color||e};
}
`,Np=An.span`
display: inline-block;
padding: 2px 8px;
margin: 0;
background-color: ${e=>e.theme.colors[e.type].main};
color: ${e=>e.theme.colors[e.type].contrastText};
font-size: ${e=>e.theme.typography.code.fontSize};
vertical-align: middle;
line-height: 1.6;
border-radius: 4px;
font-weight: ${({theme:e})=>e.typography.fontWeightBold};
font-size: 12px;
+ span[type] {
margin-left: 4px;
}
`,Lp=kn`
text-decoration: line-through;
color: #707070;
`,$p=An.caption`
text-align: right;
font-size: 0.9em;
font-weight: normal;
color: ${e=>e.theme.colors.text.secondary};
`,Dp=An.td`
border-left: 1px solid ${e=>e.theme.schema.linesColor};
box-sizing: border-box;
position: relative;
padding: 10px 10px 10px 0;
${_n("small")`
display: block;
overflow: hidden;
`}
tr:first-of-type > &,
tr.last > & {
border-left-width: 0;
background-position: top left;
background-repeat: no-repeat;
background-size: 1px 100%;
}
tr:first-of-type > & {
background-image: linear-gradient(
to bottom,
transparent 0%,
transparent 22px,
${e=>e.theme.schema.linesColor} 22px,
${e=>e.theme.schema.linesColor} 100%
);
}
tr.last > & {
background-image: linear-gradient(
to bottom,
${e=>e.theme.schema.linesColor} 0%,
${e=>e.theme.schema.linesColor} 22px,
transparent 22px,
transparent 100%
);
}
tr.last + tr > & {
border-left-color: transparent;
}
tr.last:first-child > & {
background: none;
border-left-color: transparent;
}
`,Mp=An(Dp)`
padding: 0;
`,Fp=An(Dp)`
vertical-align: top;
line-height: 20px;
white-space: nowrap;
font-size: 13px;
font-family: ${e=>e.theme.typography.code.fontFamily};
&.deprecated {
${Lp};
}
${({kind:e})=>"field"!==e?"font-style: italic":""};
${Cn("PropertyNameCell")};
`,zp=An.td`
border-bottom: 1px solid #9fb4be;
padding: 10px 0;
width: ${e=>e.theme.schema.defaultDetailsWidth};
box-sizing: border-box;
tr.expanded & {
border-bottom: none;
}
${_n("small")`
padding: 0 20px;
border-bottom: none;
border-left: 1px solid ${e=>e.theme.schema.linesColor};
tr.last > & {
border-left: none;
}
`}
${Cn("PropertyDetailsCell")};
`,Up=An.span`
color: ${e=>e.theme.schema.linesColor};
font-family: ${e=>e.theme.typography.code.fontFamily};
margin-right: 10px;
&::before {
content: '';
display: inline-block;
vertical-align: middle;
width: 10px;
height: 1px;
background: ${e=>e.theme.schema.linesColor};
}
&::after {
content: '';
display: inline-block;
vertical-align: middle;
width: 1px;
background: ${e=>e.theme.schema.linesColor};
height: 7px;
}
`,Bp=An.div`
padding: ${({theme:e})=>e.schema.nestingSpacing};
`,qp=An.table`
border-collapse: separate;
border-radius: 3px;
font-size: ${e=>e.theme.typography.fontSize};
border-spacing: 0;
width: 100%;
> tr {
vertical-align: middle;
}
${_n("small")`
display: block;
> tr, > tbody > tr {
display: block;
}
`}
${_n("small",!1," and (-ms-high-contrast:none)")`
td {
float: left;
width: 100%;
}
`}
&
${Bp},
&
${Bp}
${Bp}
${Bp},
&
${Bp}
${Bp}
${Bp}
${Bp}
${Bp} {
margin: ${({theme:e})=>e.schema.nestingSpacing};
margin-right: 0;
background: ${({theme:e})=>e.schema.nestedBackground};
}
&
${Bp}
${Bp},
&
${Bp}
${Bp}
${Bp}
${Bp},
&
${Bp}
${Bp}
${Bp}
${Bp}
${Bp}
${Bp} {
background: #ffffff;
}
`,Wp=An.div`
margin: 0 0 3px 0;
display: inline-block;
`,Vp=An.span`
font-size: 0.9em;
margin-right: 10px;
color: ${e=>e.theme.colors.primary.main};
font-family: ${e=>e.theme.typography.headings.fontFamily};
}
`,Hp=An.button`
display: inline-block;
margin-right: 10px;
margin-bottom: 5px;
font-size: 0.8em;
cursor: pointer;
border: 1px solid ${e=>e.theme.colors.primary.main};
padding: 2px 10px;
line-height: 1.5em;
outline: none;
&:focus {
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary.main};
}
${e=>e.active?`\n color: white;\n background-color: ${e.theme.colors.primary.main};\n &:focus {\n box-shadow: none;\n background-color: ${_t(.15,e.theme.colors.primary.main)};\n }\n `:`\n color: ${e.theme.colors.primary.main};\n background-color: white;\n `}
`,Yp=An.div`
font-size: 0.9em;
font-family: ${e=>e.theme.typography.code.fontFamily};
&::after {
content: ' [';
}
`,Qp=An.div`
font-size: 0.9em;
font-family: ${e=>e.theme.typography.code.fontFamily};
&::after {
content: ']';
}
`;var Gp,Xp,Kp,Zp=function(){return(Zp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};(Kp=Gp||(Gp={})).Arrow="Arrow",Kp.DropdownSelector="DropdownSelector",Kp.DropdownWrapper="DropdownWrapper",Kp.SelectorSearch="SelectorSearch",Kp.SelectedValue="SelectedValue",Kp.Placeholder="Placeholder",Kp.GroupContainer="GroupContainer",Kp.GroupDivider="GroupDivider",Kp.GroupHeading="GroupHeading",Kp.OptionContainer="OptionContainer",Kp.OptionItem="OptionItem",function(e){e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.ENTER=13]="ENTER",e[e.ESCAPE=27]="ESCAPE",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.PAGE_UP=33]="PAGE_UP",e[e.TAB=9]="TAB",e[e.UP_ARROW=38]="UP_ARROW",e[e.SPACE=32]="SPACE"}(Xp||(Xp={}));var Jp=[Xp.ESCAPE,Xp.UP_ARROW,Xp.DOWN_ARROW,Xp.PAGE_UP,Xp.PAGE_DOWN],ed="#808080",td="#7C7C7C",nd="#6e6d6d",rd="#CECECE",od="#f5f5f5",id="#0080bc";function ad(e){return void 0!==e.groupOptions}var sd=function(e,t){return ad(t)?e.concat(t.groupOptions):e.concat(t)},ld=function(e,t){return Zp(Zp({},e),{groupOptions:e.groupOptions.filter((function(e){return e.value.toLowerCase().includes(t)}))})};function cd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).map((function(e){return"string"==typeof e?e:e?Object.keys(e).filter((function(t){return e[t]})).join(" "):""})).join(" ")}var ud=Ve.div((function(e){var t=e.width,n=e.height,r=e.disabled,o=e.open,i=e.dropdownFocused;return{backgroundColor:r?rd:od,border:"2px solid "+(o||i?id:td),borderRadius:"7",cursor:r?"not-allowed":"pointer",display:"flex",flexDirection:"column",fontSize:"1em",height:n,position:"relative",width:t,"&:hover":{border:"2px solid "+(o||i?id:nd)},"&:disabled":{backgroundColor:"#ededed",cursor:"unset"}}})),pd=Ve.div((function(e){var t=e.searchable;return{alignItems:"center",boxSizing:"border-box",cursor:e.open&&t?"text":"inherit",display:"flex",height:"32px",padding:"0 11px",position:"relative",width:"100%",input:{backgroundColor:"inherit",border:"none",fontSize:"inherit",height:"30px",outline:"none",width:"100%"}}})),dd=Ve.span((function(){return{bottom:0,left:"11px",position:"absolute",right:"25px",top:0}})),fd={bottom:0,left:"11px",lineHeight:"30px",overflow:"hidden",position:"absolute",right:"25px",textOverflow:"ellipsis",top:0,whiteSpace:"nowrap"},hd=Ve.span((function(e){return Zp({textAlign:e.centerText?"center":"left",color:e.value&&!e.open?"black":ed},fd)})),md=Ve.span((function(e){var t=e.centerText;return Zp({color:ed,textAlign:t?"center":"left"},fd)})),gd=Ve.div((function(){return{alignItems:"center",bottom:0,color:ed,display:"flex",position:"absolute",right:"10px",top:0}})),yd=Ve.span((function(e){var t=e.openUp,n=e.maxContentHeight;return{backgroundColor:"#ffffff",border:"2px solid #6e6d6d",borderRadius:"4px",bottom:t?"105%":void 0,boxShadow:"0px "+(t?"-4px":"4px")+" 4px rgba(0, 0, 0, 0.25)",boxSizing:"border-box",color:"black",display:e.open?"block":"none",left:"0",listStyleType:"none",margin:"0",maxHeight:n||"175px",overflowX:"hidden",overflowY:"auto",padding:"2px 0",position:"absolute",top:t?void 0:"100%",width:"100%",zIndex:9999,".dropdown-selector-content--empty":{alignItems:"center",color:ed,display:"flex",flexDirection:"column",justifyContent:"center",padding:"4px 0"},"&::-webkit-scrollbar":{width:"5px"},"&::-webkit-scrollbar-track":{background:"#ddd"},"&::-webkit-scrollbar-thumb":{background:"#666"}}})),bd=Ve.div((function(){return{padding:"1em 0 0 0"}})),vd=Ve.div((function(){return{color:"grey",display:"flex",flexDirection:"row",fontSize:"0.9em",padding:"0 10px 3px 5px"}})),xd=Ve.div((function(){return{borderBottom:"1px solid #7C7C7C",margin:"auto",paddingTop:10,width:"85%"}})),wd=Ve.div((function(e){var t=e.selected,n=e.focused,r=od,o="inherit";return n&&t?(r=td,o=od):n?r="#e0e0e0":t&&(r=rd),{backgroundColor:r,border:"none",color:o,cursor:"pointer",fontSize:"0.95em",overflow:"hidden",padding:"5px 10px",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",display:"flex",alignItems:"center","&:hov
&& {
box-sizing: border-box;
min-width: 100px;
outline: none;
display: inline-block;
border-radius: 2px;
border: 1px solid rgba(38, 50, 56, 0.5);
vertical-align: bottom;
padding: 2px 0px 2px 6px;
position: relative;
width: auto;
background: white;
color: #263238;
font-family: ${e=>e.theme.typography.headings.fontFamily};
font-size: 0.929em;
line-height: 1.5em;
cursor: pointer;
transition: border 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
&:hover,
&:focus-within {
border: 1px solid ${e=>e.theme.colors.primary.main};
color: ${e=>e.theme.colors.primary.main};
box-shadow: 0px 0px 0px 1px ${e=>e.theme.colors.primary.main};
}
.dropdown-selector {
display: inline-flex;
padding: 0;
height: auto;
padding-right: 20px;
position: relative;
margin-bottom: 5px;
}
.dropdown-selector-value {
font-family: ${e=>e.theme.typography.headings.fontFamily};
position: relative;
font-size: 0.929em;
width: 100%;
line-height: 1;
vertical-align: middle;
color: #263238;
left: 0;
transition: color 0.25s ease, text-shadow 0.25s ease;
}
.dropdown-arrow {
position: absolute;
right: 3px;
top: 50%;
transform: translateY(-50%);
border-color: ${e=>e.theme.colors.primary.main} transparent transparent;
border-style: solid;
border-width: 0.35em 0.35em 0;
width: 0;
svg {
display: none;
}
}
.dropdown-selector-content {
position: absolute;
margin-top: 2px;
left: -2px;
right: 0;
z-index: 10;
min-width: 100px;
background: white;
border: 1px solid rgba(38, 50, 56, 0.2);
box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);
max-height: 220px;
overflow: auto;
}
.dropdown-option {
font-size: 0.9em;
color: #263238;
cursor: pointer;
padding: 0.4em;
background-color: #ffffff;
&[aria-selected='true'] {
background-color: rgba(0, 0, 0, 0.05);
}
&:hover {
background-color: rgba(38, 50, 56, 0.12);
}
}
input {
cursor: pointer;
height: 1px;
background-color: transparent;
}
}
`,Nd=An(jd)`
&& {
margin-left: 10px;
text-transform: none;
font-size: 0.969em;
font-size: 1em;
border: none;
padding: 0 1.2em 0 0;
background: transparent;
&:hover,
&:focus-within {
border: none;
box-shadow: none;
.dropdown-selector-value {
color: ${e=>e.theme.colors.primary.main};
text-shadow: 0px 0px 0px ${e=>e.theme.colors.primary.main};
}
}
}
`,Ld=An.span`
margin-left: 10px;
text-transform: none;
font-size: 0.929em;
color: black;
`;function $d(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var Dd=$d("Tab"),Md=$d("TabList"),Fd=$d("TabPanel");function zd(){return(zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ud(e,t){return r.Children.map(e,(function(e){return null===e?null:function(e){return Dd(e)||Md(e)||Fd(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,r.cloneElement)(e,zd({},e.props,{children:Ud(e.props.children,t)})):e}))}function Bd(e,t){return r.Children.forEach(e,(function(e){null!==e&&(Dd(e)||Fd(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(Md(e)&&t(e),Bd(e.props.children,t)))}))}function qd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=qd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Wd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=qd(e))&&(r&&(r+=" "),r+=t);return r}var Vd,Hd=0;function Yd(){return"react-tabs-"+Hd++}function Qd(e){var t=0;return Bd(e,(function(e){Dd(e)&&t++})),t}function Gd(){return(Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xd(e,t){return(Xd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kd(e){return e&&"getAttribute"in e}function Zd(e){return Kd(e)&&"tab"===e.getAttribute("role")}function Jd(e){return Kd(e)&&"true"===e.getAttribute("aria-disabled")}var ef=function(e){var t,n;function o(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).tabNodes=[],t.handleKeyDown=function(e){var n=t.props,r=n.direction,o=n.disableUpDownKeys;if(t.isTabFromContainer(e.target)){var i=t.props.selectedIndex,a=!1,s=!1;32!==e.keyCode&&13!==e.keyCode||(a=!0,s=!1,t.handleClick(e)),37===e.keyCode||!o&&38===e.keyCode?(i="rtl"===r?t.getNextTab(i):t.getPrevTab(i),a=!0,s=!0):39===e.keyCode||!o&&40===e.keyCode?(i="rtl"===r?t.getPrevTab(i):t.getNextTab(i),a=!0,s=!0):35===e.keyCode?(i=t.getLastTab(),a=!0,s=!0):36===e.keyCode&&(i=t.getFirstTab(),a=!0,s=!0),a&&e.preventDefault(),s&&t.setSelected(i,e)}},t.handleClick=function(e){var n=e.target;do{if(t.isTabFromContainer(n)){if(Jd(n))return;var r=[].slice.call(n.parentNode.children).filter(Zd).indexOf(n);return void t.setSelected(r,e)}}while(null!=(n=n.parentNode))},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,Xd(t,n);var i=o.prototype;return i.setSelected=function(e,t){if(!(e<0||e>=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},i.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;n<t;n++)if(!Jd(this.getTab(n)))return n;for(var r=0;r<e;r++)if(!Jd(this.getTab(r)))return r;return e},i.getPrevTab=function(e){for(var t=e;t--;)if(!Jd(this.getTab(t)))return t;for(t=this.getTabsCount();t-- >e;)if(!Jd(this.getTab(t)))return t;return e},i.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t<e;t++)if(!Jd(this.getTab(t)))return t;return null},i.getLastTab=function(){for(var e=this.getTabsCount();e--;)if(!Jd(this.getTab(e)))return e;return null},i.getTabsCount=function(){return Qd(this.props.children)},i.getPanelsCount=function(){return e=this.props.children,t=0,Bd(e,(function(e){Fd(e)&&t++})),t;var e,t},i.getTab=function(e){return this.tabNodes["tabs-"+e]},i.getChildren=function(){var e=this,t=0,n=this.props,o=n.children,i=n.disabledTabClassName,a=n.focus,s=n.forceRenderTabPanel,l=n.selectedIndex,c=n.selectedTabClassName,u=n.selectedTabPanelClassName,p=n.environment;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var d=this.tabIds.length-this.getTabsCount();d++<0;)this.tabIds.push(Yd()),this.panelIds.push(Yd());return Ud(o,(function(n){var o=n;if(Md(n)){var d=0,f=!1;null==Vd&&function(e){var t=e||("undefined"!=
> ul {
list-style: none;
padding: 0;
margin: 0;
margin: 0 -5px;
> li {
padding: 5px 10px;
display: inline-block;
background-color: ${({theme:e})=>e.codeBlock.backgroundColor};
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
cursor: pointer;
text-align: center;
outline: none;
color: ${({theme:e})=>_t(e.colors.tonalOffset,e.rightPanel.textColor)};
margin: 0
${({theme:e})=>`${e.spacing.unit}px ${e.spacing.unit}px ${e.spacing.unit}px`};
border: 1px solid ${({theme:e})=>_t(.05,e.codeBlock.backgroundColor)};
border-radius: 5px;
min-width: 60px;
font-size: 0.9em;
font-weight: bold;
&.react-tabs__tab--selected {
color: ${e=>e.theme.colors.text.primary};
background: ${({theme:e})=>e.rightPanel.textColor};
&:focus {
outline: auto;
}
}
&:only-child {
flex: none;
min-width: 100px;
}
&.tab-success {
color: ${e=>e.theme.colors.responses.success.tabTextColor};
}
&.tab-redirect {
color: ${e=>e.theme.colors.responses.redirect.tabTextColor};
}
&.tab-info {
color: ${e=>e.theme.colors.responses.info.tabTextColor};
}
&.tab-error {
color: ${e=>e.theme.colors.responses.error.tabTextColor};
}
}
}
> .react-tabs__tab-panel {
background: ${({theme:e})=>e.codeBlock.backgroundColor};
& > div,
& > pre {
padding: ${e=>4*e.theme.spacing.unit}px;
margin: 0;
}
& > div > pre {
padding: 0;
}
}
`,mf=(An(hf)`
> ul {
display: block;
> li {
padding: 2px 5px;
min-width: auto;
margin: 0 15px 0 0;
font-size: 13px;
font-weight: normal;
border-bottom: 1px dashed;
color: ${({theme:e})=>_t(e.colors.tonalOffset,e.rightPanel.textColor)};
border-radius: 0;
background: none;
&:last-child {
margin-right: 0;
}
&.react-tabs__tab--selected {
color: ${({theme:e})=>e.rightPanel.textColor};
background: none;
}
}
}
> .react-tabs__tab-panel {
& > div,
& > pre {
padding: ${e=>2*e.theme.spacing.unit}px 0;
}
}
`,An.div`
/**
* Based on prism-dark.css
*/
code[class*='language-'],
pre[class*='language-'] {
/* color: white;
background: none; */
text-shadow: 0 -0.1em 0.2em black;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
@media print {
code[class*='language-'],
pre[class*='language-'] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: hsl(30, 20%, 50%);
}
.token.punctuation {
opacity: 0.7;
}
.namespace {
opacity: 0.7;
}
.token.property,
.token.tag,
.token.number,
.token.constant,
.token.symbol {
color: #4a8bb3;
}
.token.boolean {
color: #e64441;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #a0fbaa;
& + a,
& + a:visited {
color: #4ed2ba;
text-decoration: underline;
}
}
.token.property.string {
color: white;
}
.token.operator,
.token.entity,
.token.url,
.token.variable {
color: hsl(40, 90%, 60%);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: hsl(350, 40%, 70%);
}
.token.regex,
.token.important {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.deleted {
color: red;
}
${Cn("Prism")};
`),gf=An.div`
opacity: 0.7;
transition: opacity 0.3s ease;
text-align: right;
&:focus-within {
opacity: 1;
}
> button {
background-color: transparent;
border: 0;
color: inherit;
padding: 2px 10px;
font-family: ${({theme:e})=>e.typography.fontFamily};
font-size: ${({theme:e})=>e.typography.fontSize};
line-height: ${({theme:e})=>e.typography.lineHeight};
cursor: pointer;
outline: 0;
:hover,
:focus {
background: rgba(255, 255, 255, 0.1);
}
}
`,yf=An.div`
&:hover ${gf} {
opacity: 1;
}
`,bf=An(mf.withComponent("pre"))`
font-family: ${e=>e.theme.typography.code.fontFamily};
font-size: ${e=>e.theme.typography.code.fontSize};
overflow-x: auto;
margin: 0;
white-space: ${({theme:e})=>e.typography.code.wrap?"pre-wrap":"pre"};
`;function vf(e){return getComputedStyle(e)}function xf(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function wf(e){var t=document.createElement("div");return t.className=e,t}var kf="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Ef(e,t){if(!kf)throw new Error("No element matching method supported");return kf.call(e,t)}function Of(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Sf(e,t){return Array.prototype.filter.call(e.children,(function(e){return Ef(e,t)}))}var _f=function(e){return"ps__thumb-"+e},Af=function(e){return"ps__rail-"+e},Cf="ps__child--consume",Rf="ps--focus",Tf="ps--clicking",Pf=function(e){return"ps--active-"+e},If=function(e){return"ps--scrolling-"+e},jf={x:null,y:null};function Nf(e,t){var n=e.element.classList,r=If(t);n.contains(r)?clearTimeout(jf[t]):n.add(r)}function Lf(e,t){jf[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(If(t))}),e.settings.scrollingThreshold)}var $f=function(e){this.element=e,this.handlers={}},Df={isEmpty:{configurable:!0}};$f.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},$f.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},$f.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},Df.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties($f.prototype,Df);var Mf=function(){this.eventElements=[]};function Ff(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function zf(e,t,n,r,o){var i;if(void 0===r&&(r=!0),void 0===o&&(o=!1),"top"===t)i=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");i=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,o){var i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0),void 0===o&&(o=!1);var p=e.element;e.reach[l]=null,p[s]<1&&(e.reach[l]="start"),p[s]>e[i]-e[a]-1&&(e.reach[l]="end"),t&&(p.dispatchEvent(Ff("ps-scroll-"+l)),t<0?p.dispatchEvent(Ff("ps-scroll-"+c)):t>0&&p.dispatchEvent(Ff("ps-scroll-"+u)),r&&function(e,t){Nf(e,t),Lf(e,t)}(e,l)),e.reach[l]&&(t||o)&&p.dispatchEvent(Ff("ps-"+l+"-reach-"+e.reach[l]))}(e,n,i,r,o)}function Uf(e){return parseInt(e,10)||0}Mf.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new $f(e),this.eventElements.push(t)),t},Mf.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Mf.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Mf.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},Mf.prototype.once=function(e,t,n){var r=this.eventElement(e),o=function(e){r.unbind(t,o),n(e)};r.bind(t,o)};var Bf={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function qf(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.ceil(r.width),e.containerHeight=Math.ceil(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Sf(t,Af("x")).forEach((function(
position: relative;
`;class oh extends r.Component{constructor(){super(...arguments),this.handleRef=e=>{this._container=e}}componentDidMount(){const e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new eh(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)}componentDidUpdate(){this.inst.update()}componentWillUnmount(){this.inst.destroy()}render(){const{children:e,className:t,updateFn:n}=this.props;return n&&n(this.componentDidUpdate.bind(this)),r.createElement(r.Fragment,null,th&&r.createElement(nh,null),r.createElement(rh,{className:`scrollbar-container ${t}`,ref:this.handleRef},e))}}function ih(e){return r.createElement($n.Consumer,null,(t=>t.nativeScrollbars?r.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):r.createElement(oh,((e,t)=>{for(var n in t||(t={}))Kf.call(t,n)&&Jf(e,n,t[n]);if(Xf)for(var n of Xf(t))Zf.call(t,n)&&Jf(e,n,t[n]);return e})({},e),e.children)))}var ah=Object.defineProperty,sh=Object.defineProperties,lh=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,dh=(e,t,n)=>t in e?ah(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function fh(e){const{Label:t=Ld,Dropdown:n=Nd}=e;return 1===e.options.length?r.createElement(t,null,e.options[0].value):r.createElement(n,(o=((e,t)=>{for(var n in t||(t={}))uh.call(t,n)&&dh(e,n,t[n]);if(ch)for(var n of ch(t))ph.call(t,n)&&dh(e,n,t[n]);return e})({},e),sh(o,lh({searchable:!1}))));var o}var hh=n(7856);const mh=kn`
a {
text-decoration: none;
color: ${e=>e.theme.typography.links.color};
&:visited {
color: ${e=>e.theme.typography.links.visited};
}
&:hover {
color: ${e=>e.theme.typography.links.hover};
}
}
`,gh=An(mf)`
font-family: ${e=>e.theme.typography.fontFamily};
font-weight: ${e=>e.theme.typography.fontWeightRegular};
line-height: ${e=>e.theme.typography.lineHeight};
p {
&:last-child {
margin-bottom: 0;
}
}
${({compact:e})=>e&&"\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n "}
${({inline:e})=>e&&" p {\n display: inline-block;\n }"}
h1 {
${bp(1)};
color: ${e=>e.theme.colors.primary.main};
margin-top: 0;
}
h2 {
${bp(2)};
color: ${e=>e.theme.colors.text.primary};
}
code {
color: ${({theme:e})=>e.typography.code.color};
background-color: ${({theme:e})=>e.typography.code.backgroundColor};
font-family: ${e=>e.theme.typography.code.fontFamily};
border-radius: 2px;
border: 1px solid rgba(38, 50, 56, 0.1);
padding: 0 ${({theme:e})=>e.spacing.unit}px;
font-size: ${e=>e.theme.typography.code.fontSize};
font-weight: ${({theme:e})=>e.typography.code.fontWeight};
word-break: break-word;
}
pre {
font-family: ${e=>e.theme.typography.code.fontFamily};
white-space: ${({theme:e})=>e.typography.code.wrap?"pre-wrap":"pre"};
background-color: ${({theme:e})=>e.codeBlock.backgroundColor};
color: white;
padding: ${e=>4*e.theme.spacing.unit}px;
overflow-x: auto;
line-height: normal;
border-radius: 0px;
border: 1px solid rgba(38, 50, 56, 0.1);
code {
background-color: transparent;
color: white;
padding: 0;
&:before,
&:after {
content: none;
}
}
}
blockquote {
margin: 0;
margin-bottom: 1em;
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
img {
max-width: 100%;
box-sizing: content-box;
}
ul,
ol {
padding-left: 2em;
margin: 0;
margin-bottom: 1em;
ul,
ol {
margin-bottom: 0;
margin-top: 0;
}
}
table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
border-collapse: collapse;
border-spacing: 0;
margin-top: 1.5em;
margin-bottom: 1.5em;
}
table tr {
background-color: #fff;
border-top: 1px solid #ccc;
&:nth-child(2n) {
background-color: ${({theme:e})=>e.schema.nestedBackground};
}
}
table th,
table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
table th {
text-align: left;
font-weight: bold;
}
${Ap(".share-link")};
${mh}
${Cn("Markdown")};
`;var yh=Object.defineProperty,bh=Object.getOwnPropertySymbols,vh=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,wh=(e,t,n)=>t in e?yh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const kh=gh.withComponent("span");function Eh(e){const t=e.inline?kh:gh;return r.createElement(Mn,null,(n=>{return r.createElement(t,((e,t)=>{for(var n in t||(t={}))vh.call(t,n)&&wh(e,n,t[n]);if(bh)for(var n of bh(t))xh.call(t,n)&&wh(e,n,t[n]);return e})({className:"redoc-markdown "+(e.className||""),dangerouslySetInnerHTML:{__html:(o=n.untrustedSpec,i=e.html,o?hh.sanitize(i):i)},"data-role":e["data-role"]},e));var o,i}))}class Oh extends r.Component{render(){const{source:e,inline:t,compact:n,className:o,"data-role":i}=this.props,a=new Dl;return r.createElement(Eh,{html:a.renderMd(e),inline:t,compact:n,className:o,"data-role":i})}}const Sh=An.div`
position: relative;
`,_h=An.div`
position: absolute;
min-width: 80px;
max-width: 500px;
background: #fff;
bottom: 100%;
left: 50%;
margin-bottom: 10px;
transform: translateX(-50%);
border-radius: 4px;
padding: 0.3em 0.6em;
text-align: center;
box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
`,Ah=An.div`
background: #fff;
color: #000;
display: inline;
font-size: 0.85em;
white-space: nowrap;
`,Ch=An.div`
position: absolute;
width: 0;
height: 0;
bottom: -5px;
left: 50%;
margin-left: -5px;
border-left: solid transparent 5px;
border-right: solid transparent 5px;
border-top: solid #fff 5px;
`,Rh=An.div`
position: absolute;
width: 100%;
height: 20px;
bottom: -20px;
`;class Th extends r.Component{render(){const{open:e,title:t,children:n}=this.props;return r.createElement(Sh,null,n,e&&r.createElement(_h,null,r.createElement(Ah,null,t),r.createElement(Ch,null),r.createElement(Rh,null)))}}const Ph="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy");class Ih{static isSupported(){return Ph}static selectElement(e){let t,n;document.body.createTextRange?(t=document.body.createTextRange(),t.moveToElementText(e),t.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),t=document.createRange(),t.selectNodeContents(e),n.removeAllRanges(),n.addRange(t))}static deselect(){if(document.selection)document.selection.empty();else if(window.getSelection){const e=window.getSelection();e&&e.removeAllRanges()}}static copySelected(){let e;try{e=document.execCommand("copy")}catch(t){e=!1}return e}static copyElement(e){Ih.selectElement(e);const t=Ih.copySelected();return t&&Ih.deselect(),t}static copyCustom(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="2em",t.style.height="2em",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.select();const n=Ih.copySelected();return document.body.removeChild(t),n}}class jh extends r.PureComponent{constructor(e){super(e),this.copy=()=>{const e="string"==typeof this.props.data?this.props.data:JSON.stringify(this.props.data,null,2);Ih.copyCustom(e),this.showTooltip()},this.renderCopyButton=()=>r.createElement("button",{onClick:this.copy},r.createElement(Th,{title:Ih.isSupported()?"Copied":"Not supported in your browser",open:this.state.tooltipShown},"Copy")),this.state={tooltipShown:!1}}render(){return this.props.children({renderCopyButton:this.renderCopyButton})}showTooltip(){this.setState({tooltipShown:!0}),setTimeout((()=>{this.setState({tooltipShown:!1})}),1500)}}let Nh=1;function Lh(e,t){Nh=1;let n="";return n+='<div class="redoc-json">',n+="<code>",n+=zh(e,t),n+="</code>",n+="</div>",n}function $h(e){return void 0!==e?e.toString().replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}function Dh(e){return JSON.stringify(e).slice(1,-1)}function Mh(e,t){return'<span class="'+t+'">'+$h(e)+"</span>"}function Fh(e){return'<span class="token punctuation">'+e+"</span>"}function zh(e,t){const n=typeof e;let r="";return null==e?r+=Mh("null","token keyword"):e&&e.constructor===Array?(Nh++,r+=function(e,t){const n=Nh>t?"collapsed":"";let r=`<button class="collapser" aria-label="${Nh>t+1?"expand":"collapse"}"></button>${Fh("[")}<span class="ellipsis"></span><ul class="array collapsible">`,o=!1;const i=e.length;for(let a=0;a<i;a++)o=!0,r+='<li><div class="hoverable '+n+'">',r+=zh(e[a],t),a<i-1&&(r+=","),r+="</div></li>";return r+=`</ul>${Fh("]")}`,o||(r=Fh("[ ]")),r}(e,t),Nh--):e&&e.constructor===Date?r+=Mh('"'+e.toISOString()+'"',"token string"):"object"===n?(Nh++,r+=function(e,t){const n=Nh>t?"collapsed":"",r=Object.keys(e),o=r.length;let i=`<button class="collapser" aria-label="${Nh>t+1?"expand":"collapse"}"></button>${Fh("{")}<span class="ellipsis"></span><ul class="obj collapsible">`,a=!1;for(let s=0;s<o;s++){const l=r[s];a=!0,i+='<li><div class="hoverable '+n+'">',i+='<span class="property token string">"'+$h(l)+'"</span>: ',i+=zh(e[l],t),s<o-1&&(i+=Fh(",")),i+="</div></li>"}return i+=`</ul>${Fh("}")}`,a||(i=Fh("{ }")),i}(e,t),Nh--):"number"===n?r+=Mh(e,"token number"):"string"===n?/^(http|https):\/\/[^\s]+$/.test(e)?r+=Mh('"',"token string")+'<a href="'+encodeURI(e)+'">'+$h(Dh(e))+"</a>"+Mh('"',"token string"):r+=Mh('"'+Dh(e)+'"',"token string"):"boolean"===n&&(r+=Mh(e,"token boolean")),r}const Uh=kn`
.redoc-json code > .collapser {
display: none;
pointer-events: none;
}
font-family: ${e=>e.theme.typography.code.fontFamily};
font-size: ${e=>e.theme.typography.code.fontSize};
white-space: ${({theme:e})=>e.typography.code.wrap?"pre-wrap":"pre"};
contain: content;
overflow-x: auto;
.callback-function {
color: gray;
}
.collapser:after {
content: '-';
cursor: pointer;
}
.collapsed > .collapser:after {
content: '+';
cursor: pointer;
}
.ellipsis:after {
content: ' … ';
}
.collapsible {
margin-left: 2em;
}
.hoverable {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 2px;
padding-right: 2px;
border-radius: 2px;
}
.hovered {
background-color: rgba(235, 238, 249, 1);
}
.collapser {
background-color: transparent;
border: 0;
color: #fff;
font-family: ${e=>e.theme.typography.code.fontFamily};
font-size: ${e=>e.theme.typography.code.fontSize};
padding-right: 6px;
padding-left: 6px;
padding-top: 0;
padding-bottom: 0;
display: flex;
align-items: center;
justify-content: center;
width: 15px;
height: 15px;
position: absolute;
top: 4px;
left: -1.5em;
cursor: default;
user-select: none;
-webkit-user-select: none;
padding: 2px;
&:focus {
outline-color: #fff;
outline-style: dotted;
outline-width: 1px;
}
}
ul {
list-style-type: none;
padding: 0px;
margin: 0px 0px 0px 26px;
}
li {
position: relative;
display: block;
}
.hoverable {
display: inline-block;
}
.selected {
outline-style: solid;
outline-width: 1px;
outline-style: dotted;
}
.collapsed > .collapsible {
display: none;
}
.ellipsis {
display: none;
}
.collapsed > .ellipsis {
display: inherit;
}
`,Bh=An.div`
&:hover > ${gf} {
opacity: 1;
}
`;class qh extends r.PureComponent{constructor(){super(...arguments),this.renderInner=({renderCopyButton:e})=>r.createElement(Bh,null,r.createElement(gf,null,e(),r.createElement("button",{onClick:this.expandAll}," Expand all "),r.createElement("button",{onClick:this.collapseAll}," Collapse all ")),r.createElement($n.Consumer,null,(e=>r.createElement(mf,{className:this.props.className,ref:e=>this.node=e,dangerouslySetInnerHTML:{__html:Lh(this.props.data,e.jsonSampleExpandLevel)}})))),this.expandAll=()=>{const e=this.node.getElementsByClassName("collapsible");for(const t of Array.prototype.slice.call(e)){const e=t.parentNode;e.classList.remove("collapsed"),e.querySelector(".collapser").setAttribute("aria-label","collapse")}},this.collapseAll=()=>{const e=this.node.getElementsByClassName("collapsible"),t=Array.prototype.slice.call(e,1);for(const e of t){const t=e.parentNode;t.classList.add("collapsed"),t.querySelector(".collapser").setAttribute("aria-label","expand")}},this.collapseElement=e=>{let t;"collapser"===e.className&&(t=e.parentElement.getElementsByClassName("collapsible")[0],t.parentElement.classList.contains("collapsed")?(t.parentElement.classList.remove("collapsed"),e.setAttribute("aria-label","collapse")):(t.parentElement.classList.add("collapsed"),e.setAttribute("aria-label","expand")))},this.clickListener=e=>{this.collapseElement(e.target)},this.focusListener=e=>{"Enter"===e.key&&this.collapseElement(e.target)}}render(){return r.createElement(jh,{data:this.props.data},this.renderInner)}componentDidMount(){this.node.addEventListener("click",this.clickListener),this.node.addEventListener("focus",this.focusListener)}componentWillUnmount(){this.node.removeEventListener("click",this.clickListener),this.node.removeEventListener("focus",this.focusListener)}}const Wh=An(qh)`
${Uh};
`;class Vh extends r.PureComponent{render(){const{source:e,lang:t}=this.props;return r.createElement(bf,{dangerouslySetInnerHTML:{__html:Es(e,t)}})}}class Hh extends r.Component{render(){return r.createElement(jh,{data:this.props.source},(({renderCopyButton:e})=>r.createElement(yf,null,r.createElement(gf,null,e()),r.createElement(Vh,{lang:this.props.lang,source:this.props.source}))))}}function Yh({value:e,mimeType:t}){return rs(t)?r.createElement(Wh,{data:e}):("object"==typeof e&&(e=JSON.stringify(e,null,2)),r.createElement(Hh,{lang:(n=t,-1!==n.search(/xml/i)?"xml":"clike"),source:e}));var n}function Qh({example:e,mimeType:t}){return void 0===e.value&&e.externalValueUrl?r.createElement(Gh,{example:e,mimeType:t}):r.createElement(Yh,{value:e.value,mimeType:t})}function Gh({example:e,mimeType:t}){const n=function(e,t){const[,n]=(0,r.useState)(!0),o=(0,r.useRef)(void 0),i=(0,r.useRef)(void 0);return i.current!==e&&(o.current=void 0),i.current=e,(0,r.useEffect)((()=>{(()=>{return r=this,i=function*(){n(!0);try{o.current=yield e.getExternalValue(t)}catch(e){o.current=e}n(!1)},new Promise(((e,t)=>{var n=e=>{try{a(i.next(e))}catch(e){t(e)}},o=e=>{try{a(i.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,o);a((i=i.apply(r,null)).next())}));var r,i})()}),[e,t]),o.current}(e,t);return void 0===n?r.createElement("span",null,"Loading..."):n instanceof Error?r.createElement(bf,null,"Error loading external example: ",r.createElement("br",null),r.createElement("a",{className:"token string",href:e.externalValueUrl,target:"_blank",rel:"noopener noreferrer"},e.externalValueUrl)):r.createElement(Yh,{value:n,mimeType:t})}const Xh=An.div`
padding: 0.9em;
background-color: ${({theme:e})=>$t(.6,e.rightPanel.backgroundColor)};
margin: 0 0 10px 0;
display: block;
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
font-size: 0.929em;
line-height: 1.5em;
`,Kh=An.span`
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
font-size: 12px;
position: absolute;
z-index: 1;
top: -11px;
left: 12px;
font-weight: ${({theme:e})=>e.typography.fontWeightBold};
color: ${({theme:e})=>$t(.3,e.rightPanel.textColor)};
`,Zh=An.div`
position: relative;
`,Jh=An(jd)`
&& {
margin-left: 10px;
text-transform: none;
font-size: 0.929em;
margin: 0 0 10px 0;
display: block;
background-color: ${({theme:e})=>$t(.6,e.rightPanel.backgroundColor)};
font-size: 1em;
border: none;
padding: 0.9em 1.6em 0.9em 0.9em;
box-shadow: none;
&:hover,
&:focus-within {
border: none;
box-shadow: none;
}
&:focus-within {
background-color: ${({theme:e})=>$t(.3,e.rightPanel.backgroundColor)};
}
.dropdown-arrow {
border-top-color: ${({theme:e})=>e.rightPanel.textColor};
}
.dropdown-selector-value {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
color: ${({theme:e})=>e.rightPanel.textColor};
}
.dropdown-selector-content {
margin: 0;
margin-top: 2px;
.dropdown-option {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
}
`,em=An.div`
font-family: ${e=>e.theme.typography.code.fontFamily};
font-size: 12px;
color: #ee807f;
`;class tm extends r.Component{constructor(){super(...arguments),this.state={activeIdx:0},this.switchMedia=({idx:e})=>{this.setState({activeIdx:e})}}render(){const{activeIdx:e}=this.state,t=this.props.mediaType.examples||{},n=this.props.mediaType.name,o=r.createElement(em,null,"No sample"),i=Object.keys(t);if(0===i.length)return o;if(i.length>1){const o=i.map(((e,n)=>({value:t[e].summary||e,idx:n}))),a=t[i[e]],s=a.description;return r.createElement(nm,null,r.createElement(Zh,null,r.createElement(Kh,null,"Example"),this.props.renderDropdown({value:o[e].value,options:o,onChange:this.switchMedia,ariaLabel:"Example"})),r.createElement("div",null,s&&r.createElement(Oh,{source:s}),r.createElement(Qh,{example:a,mimeType:n})))}{const e=t[i[0]];return r.createElement(nm,null,e.description&&r.createElement(Oh,{source:e.description}),r.createElement(Qh,{example:e,mimeType:n}))}}}const nm=An.div`
margin-top: 15px;
`;if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Li)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function rm(e){e()}var om=[];function im(e){return gi(ka(e,t));var t}var am="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function sm(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+lm}}var lm=1e4,cm=am?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,o,i){var a=n++;return r.register(i,a,e),e.current=sm(o),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(am):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,o){var i;return e.current=sm(r),i=e,t.add(i),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),um=cm.addReactionToTrack,pm=cm.recordReactionAsCommitted,dm=(cm.resetCleanupScheduleForTests,cm.forceCleanupTimerToRunNowForTests,!1);function fm(){return dm}function hm(e){return"observer"+e}var mm=function(){};function gm(e,t){if(void 0===t&&(t="observed"),fm())return e();var n,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(r.useState(new mm),1)[0],i=(n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}((0,r.useState)(0),2)[1],(0,r.useCallback)((function(){n((function(e){return e+1}))}),om)),a=r.useRef(null);if(!a.current)var s=new Go(hm(t),(function(){l.mounted?i():l.changedBeforeMount=!0})),l=um(a,s,o);var c,u,p=a.current.reaction;if(r.useDebugValue(p,im),r.useEffect((function(){return pm(a),a.current?(a.current.mounted=!0,a.current.changedBeforeMount&&(a.current.changedBeforeMount=!1,i())):(a.current={reaction:new Go(hm(t),(function(){i()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},i()),function(){a.current.reaction.dispose(),a.current=null}}),[]),p.track((function(){try{c=e()}catch(e){u=e}})),u)throw u;return c}var ym=function(){return(ym=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var bm={$$typeof:!0,render:!0,compare:!0,type:!0};function vm(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:gm(r)}vm.displayName="Observer",function(e){e||(e=rm),mi({reactionScheduler:e})}(o.unstable_batchedUpdates);var xm=0,wm={};function km(e){return wm[e]||(wm[e]=function(e){if("function"==typeof Symbol)return Symb
button {
background-color: transparent;
border: 0;
outline: 0;
font-size: 13px;
font-family: ${e=>e.theme.typography.code.fontFamily};
cursor: pointer;
padding: 0;
color: ${e=>e.theme.colors.text.primary};
&:focus {
font-weight: ${({theme:e})=>e.typography.fontWeightBold};
}
}
${jp} {
height: ${({theme:e})=>e.schema.arrow.size};
width: ${({theme:e})=>e.schema.arrow.size};
polygon {
fill: ${({theme:e})=>e.schema.arrow.color};
}
}
`,Ym=An.span`
vertical-align: middle;
font-size: ${({theme:e})=>e.typography.code.fontSize};
line-height: 20px;
`,Qm=An(Ym)`
color: ${e=>$t(.1,e.theme.schema.typeNameColor)};
`,Gm=An(Ym)`
color: ${e=>e.theme.schema.typeNameColor};
`,Xm=An(Ym)`
color: ${e=>e.theme.schema.typeTitleColor};
word-break: break-word;
`,Km=Gm,Zm=An(Ym.withComponent("div"))`
color: ${e=>e.theme.schema.requireLabelColor};
font-size: ${e=>e.theme.schema.labelsTextSize};
font-weight: normal;
margin-left: 20px;
line-height: 1;
`,Jm=An(Ym)`
color: ${({theme:e})=>e.colors.warning.main};
font-size: 13px;
`,eg=An(Ym)`
color: #0e7c86;
&::before,
&::after {
font-weight: bold;
}
`,tg=An(Ym)`
border-radius: 2px;
${({theme:e})=>`\n background-color: ${$t(.95,e.colors.text.primary)};\n color: ${$t(.1,e.colors.text.primary)};\n\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${$t(.9,e.colors.text.primary)};\n font-family: ${e.typography.code.fontFamily};\n}`};
& + & {
margin-left: 0;
}
${Cn("ExampleValue")};
`,ng=An(tg)``,rg=An(Ym)`
border-radius: 2px;
${({theme:e})=>`\n background-color: ${$t(.95,e.colors.primary.light)};\n color: ${$t(.1,e.colors.primary.main)};\n\n margin: 0 ${e.spacing.unit}px;\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${$t(.9,e.colors.primary.main)};\n}`};
& + & {
margin-left: 0;
}
${Cn("ConstraintItem")};
`,og=An.button`
background-color: transparent;
border: 0;
color: ${({theme:e})=>e.colors.text.secondary};
margin-left: ${({theme:e})=>e.spacing.unit}px;
border-radius: 2px;
cursor: pointer;
outline-color: ${({theme:e})=>e.colors.text.secondary};
font-size: 12px;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;const ig=An.div`
${mh};
${({compact:e})=>e?"":"margin: 1em 0"}
`;let ag=class extends r.Component{render(){const{externalDocs:e}=this.props;return e&&e.url?r.createElement(ig,{compact:this.props.compact},r.createElement("a",{href:e.url},e.description||e.url)):null}};ag=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],ag);class sg extends r.PureComponent{constructor(){super(...arguments),this.state={collapsed:!0}}toggle(){this.setState({collapsed:!this.state.collapsed})}render(){const{values:e,isArrayType:t}=this.props,{collapsed:n}=this.state,{enumSkipQuotes:o,maxDisplayedEnumValues:i}=this.context;if(!e.length)return null;const a=this.state.collapsed&&i?e.slice(0,i):e,s=!!i&&e.length>i,l=i?n?` ${e.length-i} more`:"Hide":"";return r.createElement("div",null,r.createElement(Ym,null,t?ln("enumArray"):""," ",1===e.length?ln("enumSingleValue"):ln("enum"),":")," ",a.map(((e,t)=>{const n=o?String(e):JSON.stringify(e);return r.createElement(r.Fragment,{key:t},r.createElement(tg,null,n)," ")})),s?r.createElement(lg,{onClick:()=>{this.toggle()}},l):null)}}sg.contextType=$n;const lg=An.span`
color: ${e=>e.theme.colors.primary.main};
vertical-align: middle;
font-size: 13px;
line-height: 20px;
padding: 0 5px;
cursor: pointer;
`,cg=An(gh)`
margin: 2px 0;
`;class ug extends r.PureComponent{render(){const e=this.props.extensions;return r.createElement($n.Consumer,null,(t=>r.createElement(r.Fragment,null,t.showExtensions&&Object.keys(e).map((t=>r.createElement(cg,{key:t},r.createElement(Ym,null," ",t.substring(2),": ")," ",r.createElement(ng,null,"string"==typeof e[t]?e[t]:JSON.stringify(e[t]))))))))}}function pg({field:e}){return e.examples?r.createElement(r.Fragment,null,r.createElement(Ym,null," ",ln("examples"),": "),r.createElement(dg,null,Object.values(e.examples).map(((t,n)=>r.createElement("li",{key:n},r.createElement(tg,null,ls(e,t.value))," -"," ",t.summary||t.description))))):null}const dg=An.ul`
margin-top: 1em;
padding-left: 0;
list-style-position: inside;
`;class fg extends r.PureComponent{render(){return 0===this.props.constraints.length?null:r.createElement("span",null," ",this.props.constraints.map((e=>r.createElement(rg,{key:e}," ",e," "))))}}const hg=r.memo((function({value:e,label:t,raw:n}){if(void 0===e)return null;const o=n?String(e):JSON.stringify(e);return r.createElement("div",null,r.createElement(Ym,null," ",t," ")," ",r.createElement(tg,null,o))}));function mg(e){const t=e.schema.pattern,{hideSchemaPattern:n}=r.useContext($n),[o,i]=r.useState(!1),a=r.useCallback((()=>i(!o)),[o]);return!t||n?null:r.createElement(r.Fragment,null,r.createElement(eg,null,o||t.length<45?t:`${t.substr(0,45)}...`),t.length>45&&r.createElement(og,{onClick:a},o?"Hide pattern":"Show pattern"))}function gg({schema:e}){return!e||"string"===e.type&&!e.constraints.length?null:r.createElement(yg,null,"[ items",e.displayFormat&&r.createElement(Km,null,` &lt;${e.displayFormat}&gt; `),r.createElement(fg,{constraints:e.constraints}),r.createElement(mg,{schema:e}),e.items&&r.createElement(gg,{schema:e.items})," ]")}const yg=An(Qm)`
margin: 0 5px;
vertical-align: text-top;
`;var bg=Object.defineProperty,vg=Object.getOwnPropertySymbols,xg=Object.prototype.hasOwnProperty,wg=Object.prototype.propertyIsEnumerable,kg=(e,t,n)=>t in e?bg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eg=(e,t)=>{for(var n in t||(t={}))xg.call(t,n)&&kg(e,n,t[n]);if(vg)for(var n of vg(t))wg.call(t,n)&&kg(e,n,t[n]);return e};const Og=r.memo((function(e){const{enumSkipQuotes:t,hideSchemaTitles:n}=r.useContext($n),{showExamples:o,field:i,renderDiscriminatorSwitch:a}=e,{schema:s,description:l,deprecated:c,extensions:u,in:p,const:d}=i,f="array"===s.type,h=t||"header"===p,m=r.useMemo((()=>!o||void 0===i.example&&void 0===i.examples?null:void 0!==i.examples?r.createElement(pg,{field:i}):r.createElement(hg,{label:ln("example")+":",value:ls(i,i.example),raw:Boolean(i.in)})),[i,o]);return r.createElement("div",null,r.createElement("div",null,r.createElement(Qm,null,s.typePrefix),r.createElement(Gm,null,s.displayType),s.displayFormat&&r.createElement(Km,null," ","<",s.displayFormat,">"," "),s.contentEncoding&&r.createElement(Km,null," ","<",s.contentEncoding,">"," "),s.contentMediaType&&r.createElement(Km,null," ","<",s.contentMediaType,">"," "),s.title&&!n&&r.createElement(Xm,null," (",s.title,") "),r.createElement(fg,{constraints:s.constraints}),r.createElement(mg,{schema:s}),s.isCircular&&r.createElement(Jm,null," ",ln("recursive")," "),f&&s.items&&r.createElement(gg,{schema:s.items})),c&&r.createElement("div",null,r.createElement(Np,{type:"warning"}," ",ln("deprecated")," ")),r.createElement(hg,{raw:h,label:ln("default")+":",value:s.default}),!a&&r.createElement(sg,{isArrayType:f,values:s.enum})," ",m,r.createElement(ug,{extensions:Eg(Eg({},u),s.extensions)}),r.createElement("div",null,r.createElement(Oh,{compact:!0,source:l})),s.externalDocs&&r.createElement(ag,{externalDocs:s.externalDocs,compact:!0}),a&&a(e)||null,d&&r.createElement(hg,{label:ln("const")+":",value:d})||null)}));var Sg=Object.defineProperty,_g=Object.defineProperties,Ag=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,Rg=Object.prototype.hasOwnProperty,Tg=Object.prototype.propertyIsEnumerable,Pg=(e,t,n)=>t in e?Sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ig=An.div`
padding-left: ${({theme:e})=>2*e.spacing.unit}px;
`;class jg extends r.PureComponent{render(){const e=this.props.schema,t=e.items,n=void 0===e.minItems&&void 0===e.maxItems?"":`(${fs(e)})`;return!e.displayType||t||n.length?r.createElement("div",null,r.createElement(Yp,null," Array ",n),r.createElement(Ig,null,r.createElement(ly,((e,t)=>_g(e,Ag(t)))(((e,t)=>{for(var n in t||(t={}))Rg.call(t,n)&&Pg(e,n,t[n]);if(Cg)for(var n of Cg(t))Tg.call(t,n)&&Pg(e,n,t[n]);return e})({},this.props),{schema:t}))),r.createElement(Qp,null)):r.createElement("div",null,r.createElement(Gm,null,e.displayType))}}var Ng=Object.defineProperty,Lg=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),$g=Object.prototype.hasOwnProperty,Dg=Object.prototype.propertyIsEnumerable,Mg=(e,t,n)=>t in e?Ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Fg=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{void 0===this.props.field.expanded&&this.props.expandByDefault?this.props.field.collapse():this.props.field.toggle()},this.handleKeyPress=e=>{"Enter"===e.key&&(e.preventDefault(),this.toggle())}}render(){const{className:e,field:t,isLast:n,expandByDefault:o}=this.props,{name:i,deprecated:a,required:s,kind:l}=t,c=!t.schema.isPrimitive&&!t.schema.isCircular,u=void 0===t.expanded?o:t.expanded,p=c?r.createElement(Hm,{className:a?"deprecated":"",kind:l,title:i},r.createElement(Up,null),r.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label":"expand properties"},r.createElement("span",null,i),r.createElement(jp,{direction:u?"down":"right"})),s&&r.createElement(Zm,null," required ")):r.createElement(Fp,{className:a?"deprecated":void 0,kind:l,title:i},r.createElement(Up,null),r.createElement("span",null,i),s&&r.createElement(Zm,null," required "));return r.createElement(r.Fragment,null,r.createElement("tr",{className:n?"last "+e:e},p,r.createElement(zp,null,r.createElement(Og,((e,t)=>{for(var n in t||(t={}))$g.call(t,n)&&Mg(e,n,t[n]);if(Lg)for(var n of Lg(t))Dg.call(t,n)&&Mg(e,n,t[n]);return e})({},this.props)))),u&&c&&r.createElement("tr",{key:t.name+"inner"},r.createElement(Mp,{colSpan:2},r.createElement(Bp,null,r.createElement(ly,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle,level:this.props.level})))))}};Fg=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],Fg);Object.defineProperty,Object.getOwnPropertyDescriptor;let zg=class extends r.Component{constructor(){super(...arguments),this.changeActiveChild=e=>{this.props.parent.activateOneOf(e.idx)}}sortOptions(e,t){if(0===t.length)return;const n={};t.forEach(((e,t)=>{n[e]=t})),e.sort(((e,t)=>n[e.value]>n[t.value]?1:-1))}render(){const{parent:e,enumValues:t}=this.props;if(void 0===e.oneOf)return null;const n=e.oneOf.map(((e,t)=>({value:e.title,idx:t}))),o=n[e.activeOneOf].value;return this.sortOptions(n,t),r.createElement(jd,{value:o,options:n,onChange:this.changeActiveChild,ariaLabel:"Example"})}};zg=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],zg);const Ug=Vm((({schema:{fields:e=[],title:t},showTitle:n,discriminator:o,skipReadOnly:i,skipWriteOnly:a,level:s})=>{const{expandSingleSchemaField:l,showObjectSchemaExamples:c,schemaExpansionLevel:u}=r.useContext($n),p=r.useMemo((()=>i||a?e.filter((e=>!(i&&e.schema.readOnly||a&&e.schema.writeOnly))):e),[i,a,e]),d=l&&1===p.length||u>=s;return r.createElement(qp,null,n&&r.createElement($p,null,t),r.createElement("tbody",null,Kt(p,((e,t)=>r.createElement(Fg,{key:e.name,isLast:t,field:e,expandByDefault:d,renderDiscriminatorSwitch:(null==o?void 0:o.fieldName)===e.name?()=>r.createElement(zg,{parent:o.parentSchema,enumValues:e.schema.enum}):void 0,className:e.expanded?"expanded":void 0,showExamples:c,skipReadOnly:i,skipWriteOnly:a,showTitle:n,level:s})))))}));var Bg=Object.defineProperty,qg=Object.defineProperties,Wg=Object.getOwnPropertyDescriptor,Vg=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertySymbols,Yg=Object.prototype.hasOwnProperty,Qg=Object.prototype.propertyIsEnumer
background: ${({theme:e})=>e.codeBlock.backgroundColor};
& > div,
& > pre {
padding: ${e=>4*e.theme.spacing.unit}px;
margin: 0;
}
& > div > pre {
padding: 0;
}
`,gy={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"};class yy extends r.PureComponent{render(){const{type:e,flow:t}=this.props;return r.createElement("tr",null,r.createElement("th",null," ",e," OAuth Flow "),r.createElement("td",null,"implicit"===e||"authorizationCode"===e?r.createElement("div",null,r.createElement("strong",null," Authorization URL: "),t.authorizationUrl):null,"password"===e||"clientCredentials"===e||"authorizationCode"===e?r.createElement("div",null,r.createElement("strong",null," Token URL: "),t.tokenUrl):null,t.refreshUrl&&r.createElement("div",null,r.createElement("strong",null," Refresh URL: "),t.refreshUrl),r.createElement("div",null,r.createElement("strong",null," Scopes: ")),r.createElement("ul",null,Object.keys(t.scopes||{}).map((e=>r.createElement("li",{key:e},r.createElement("code",null,e)," - ",r.createElement(Oh,{inline:!0,source:t.scopes[e]||""})))))))}}class by extends r.PureComponent{render(){return this.props.securitySchemes.schemes.map((e=>{return r.createElement(hp,{id:e.sectionId,key:e.id},r.createElement(gp,null,r.createElement(fp,null,r.createElement(xp,null,r.createElement(Tp,{to:e.sectionId}),e.id),r.createElement(Oh,{source:e.description||""}),r.createElement(gh,null,r.createElement("table",{className:"security-details"},r.createElement("tbody",null,r.createElement("tr",null,r.createElement("th",null," Security Scheme Type "),r.createElement("td",null," ",gy[e.type]||e.type," ")),e.apiKey?r.createElement("tr",null,r.createElement("th",null," ",(t=e.apiKey.in||"").charAt(0).toUpperCase()+t.slice(1)," parameter name:"),r.createElement("td",null," ",e.apiKey.name," ")):e.http?[r.createElement("tr",{key:"scheme"},r.createElement("th",null," HTTP Authorization Scheme "),r.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&r.createElement("tr",{key:"bearer"},r.createElement("th",null," Bearer format "),r.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?r.createElement("tr",null,r.createElement("th",null," Connect URL "),r.createElement("td",null,r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map((t=>r.createElement(yy,{key:t,type:t,flow:e.flows[t]}))):null))))));var t}))}}class vy{constructor(e,t,n={},r=!0){var o,i,a,s;this.marker=new Bs,this.disposer=null,this.rawOptions=n,this.options=new xn(n,xy),this.scroll=new pp(this.options),sp.updateOnHistory(zs.currentId,this.scroll),this.spec=new qu(e,t,this.options),this.menu=new sp(this.spec,this.scroll,zs),this.options.disableSearch||(this.search=new dp,r&&this.search.indexItems(this.menu.items),this.disposer=(o=this.menu,i="activeItemIdx",Jn(a=e=>{this.updateMarkOnMenu(e.newValue)})?function(e,t,n,r){return Ea(e,t).observe_(n,r)}(o,i,a,s):function(e,t,n){return Ea(e).observe_(t,n)}(o,i,a)))}static fromJS(e){const t=new vy(e.spec.data,e.spec.url,e.options,!1);return t.menu.activeItemIdx=e.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(e.searchIndex),t}onDidMount(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),null!=this.disposer&&this.disposer()}toJS(){return e=this,t=null,n=function*(){return{menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions}},new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));var e,t,n}updateMarkOnMenu(e){const t=Math.max(0,e),n=Math.min(this.menu.flatItems.length,t+5),r=[];for(let e=t;e<n;e++){const t=this.menu.getElementAt(e);t&&r.push(t)}if(-1===e&&Ft){const e=document.querySelector('[data-role="redoc-description"]'),t=document.querySelector('[data-role="redoc-summary"]');e&&r.pu
margin-top: 0;
margin-bottom: 0.5em;
${Cn("ApiHeader")};
`,ky=An.a`
border: 1px solid ${e=>e.theme.colors.primary.main};
color: ${e=>e.theme.colors.primary.main};
font-weight: normal;
margin-left: 0.5em;
padding: 4px 8px 4px;
display: inline-block;
text-decoration: none;
cursor: pointer;
${Cn("DownloadButton")};
`,Ey=An.span`
&::before {
content: '|';
display: inline-block;
opacity: 0.5;
width: ${15}px;
text-align: center;
}
&:last-child::after {
display: none;
}
`,Oy=An.div`
overflow: hidden;
`,Sy=An.div`
display: flex;
flex-wrap: wrap;
// hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
margin-left: -${15}px;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let _y=class extends r.Component{constructor(){super(...arguments),this.handleDownloadClick=e=>{e.target.href||(e.target.href=this.props.store.spec.info.downloadLink)}}render(){const{store:e}=this.props,{info:t,externalDocs:n}=e.spec,o=e.options.hideDownloadButton,i=t.downloadFileName,a=t.downloadLink,s=t.license&&r.createElement(Ey,null,"License:"," ",t.license.identifier?t.license.identifier:r.createElement("a",{href:t.license.url},t.license.name))||null,l=t.contact&&t.contact.url&&r.createElement(Ey,null,"URL: ",r.createElement("a",{href:t.contact.url},t.contact.url))||null,c=t.contact&&t.contact.email&&r.createElement(Ey,null,t.contact.name||"E-mail",":"," ",r.createElement("a",{href:"mailto:"+t.contact.email},t.contact.email))||null,u=t.termsOfService&&r.createElement(Ey,null,r.createElement("a",{href:t.termsOfService},"Terms of Service"))||null,p=t.version&&r.createElement("span",null,"(",t.version,")")||null;return r.createElement(hp,null,r.createElement(gp,null,r.createElement(fp,{className:"api-info"},r.createElement(wy,null,t.title," ",p),!o&&r.createElement("p",null,ln("downloadSpecification"),":",r.createElement(ky,{download:i||!0,target:"_blank",href:a,onClick:this.handleDownloadClick},ln("download"))),r.createElement(gh,null,(t.license||t.contact||t.termsOfService)&&r.createElement(Oy,null,r.createElement(Sy,null,c," ",l," ",s," ",u))||null),r.createElement(Oh,{source:e.spec.info.summary,"data-role":"redoc-summary"}),r.createElement(Oh,{source:e.spec.info.description,"data-role":"redoc-description"}),n&&r.createElement(ag,{externalDocs:n}))))}};_y=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],_y);const Ay=An.img`
max-height: ${e=>e.theme.logo.maxHeight};
max-width: ${e=>e.theme.logo.maxWidth};
padding: ${e=>e.theme.logo.gutter};
width: 100%;
display: block;
`,Cy=An.div`
text-align: center;
`,Ry=An.a`
display: inline-block;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ty=class extends r.Component{render(){const{info:e}=this.props,t=e["x-logo"];if(!t||!t.url)return null;const n=t.href||e.contact&&e.contact.url,o=t.altText?t.altText:"logo",i=r.createElement(Ay,{src:t.url,alt:o});return r.createElement(Cy,{style:{backgroundColor:t.backgroundColor}},n?(a=n,e=>r.createElement(Ry,{href:a},e))(i):i);var a}};Ty=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],Ty);var Py=Object.defineProperty,Iy=Object.getOwnPropertySymbols,jy=Object.prototype.hasOwnProperty,Ny=Object.prototype.propertyIsEnumerable,Ly=(e,t,n)=>t in e?Py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$y=(e,t)=>{for(var n in t||(t={}))jy.call(t,n)&&Ly(e,n,t[n]);if(Iy)for(var n of Iy(t))Ny.call(t,n)&&Ly(e,n,t[n]);return e};class Dy extends r.Component{render(){return r.createElement(Mn,null,(e=>r.createElement(Sp,null,(t=>this.renderWithOptionsAndStore(e,t)))))}renderWithOptionsAndStore(e,t){const{source:n,htmlWrap:o=(e=>e)}=this.props;if(!t)throw new Error("When using components in markdown, store prop must be provided");const i=new Dl(e).renderMdWithComponents(n);return i.length?i.map(((e,n)=>"string"==typeof e?r.cloneElement(o(r.createElement(Eh,{html:e,inline:!1,compact:!1})),{key:n}):r.createElement(e.component,$y({key:n},$y($y({},e.props),e.propsSelector(t)))))):null}}var My=n(4184),Fy=n.n(My);const zy=An.span.attrs((e=>({className:`operation-type ${e.type}`})))`
width: 9ex;
display: inline-block;
height: ${e=>e.theme.typography.code.fontSize};
line-height: ${e=>e.theme.typography.code.fontSize};
background-color: #333;
border-radius: 3px;
background-repeat: no-repeat;
background-position: 6px 4px;
font-size: 7px;
font-family: Verdana, sans-serif; // web-safe
color: white;
text-transform: uppercase;
text-align: center;
font-weight: bold;
vertical-align: middle;
margin-right: 6px;
margin-top: 2px;
&.get {
background-color: ${e=>e.theme.colors.http.get};
}
&.post {
background-color: ${e=>e.theme.colors.http.post};
}
&.put {
background-color: ${e=>e.theme.colors.http.put};
}
&.options {
background-color: ${e=>e.theme.colors.http.options};
}
&.patch {
background-color: ${e=>e.theme.colors.http.patch};
}
&.delete {
background-color: ${e=>e.theme.colors.http.delete};
}
&.basic {
background-color: ${e=>e.theme.colors.http.basic};
}
&.link {
background-color: ${e=>e.theme.colors.http.link};
}
&.head {
background-color: ${e=>e.theme.colors.http.head};
}
&.hook {
background-color: ${e=>e.theme.colors.primary.main};
}
`;function Uy(e,{theme:t}){return e>1?_t(.1,t.sidebar.backgroundColor):1===e?_t(.05,t.sidebar.backgroundColor):""}const By=An.ul`
margin: 0;
padding: 0;
& & {
font-size: 0.929em;
}
${e=>e.expanded?"":"display: none;"};
`,qy=An.li`
list-style: none inside none;
overflow: hidden;
text-overflow: ellipsis;
padding: 0;
${e=>0===e.depth?"margin-top: 15px":""};
`,Wy={0:kn`
opacity: 0.7;
text-transform: ${({theme:e})=>e.sidebar.groupItems.textTransform};
font-size: 0.8em;
padding-bottom: 0;
cursor: default;
color: ${e=>e.theme.sidebar.textColor};
`,1:kn`
font-size: 0.929em;
text-transform: ${({theme:e})=>e.sidebar.level1Items.textTransform};
&:hover {
color: ${e=>e.theme.sidebar.activeTextColor};
}
`,2:kn`
color: ${e=>e.theme.sidebar.textColor};
`},Vy=An.label.attrs((e=>({role:"menuitem",className:Fy()("-depth"+e.depth,{active:e.active})})))`
cursor: pointer;
color: ${e=>e.active?e.theme.sidebar.activeTextColor:e.theme.sidebar.textColor};
margin: 0;
padding: 12.5px ${e=>4*e.theme.spacing.unit}px;
${({depth:e,type:t,theme:n})=>"section"===t&&e>1&&"padding-left: "+8*n.spacing.unit+"px;"||""}
display: flex;
justify-content: space-between;
font-family: ${e=>e.theme.typography.headings.fontFamily};
${e=>Wy[e.depth]};
background-color: ${e=>e.active?Uy(e.depth,e):""};
${e=>e.deprecated&&Lp||""};
&:hover {
background-color: ${e=>Uy(e.depth,e)};
}
${jp} {
height: ${({theme:e})=>e.sidebar.arrow.size};
width: ${({theme:e})=>e.sidebar.arrow.size};
polygon {
fill: ${({theme:e})=>e.sidebar.arrow.color};
}
}
`,Hy=An.span`
display: inline-block;
vertical-align: middle;
width: ${e=>e.width?e.width:"auto"};
overflow: hidden;
text-overflow: ellipsis;
`,Yy=An.div`
${({theme:e})=>`\n font-size: 0.8em;\n margin-top: ${2*e.spacing.unit}px;\n padding: 0 ${4*e.spacing.unit}px;\n text-align: left;\n\n opacity: 0.7;\n\n a,\n a:visited,\n a:hover {\n color: ${e.sidebar.textColor} !important;\n border-top: 1px solid ${_t(.1,e.sidebar.backgroundColor)};\n padding: ${e.spacing.unit}px 0;\n display: block;\n }\n`};
`;class Qy extends r.PureComponent{render(){const{name:e,opened:t,className:n,onClick:o,httpVerb:i,deprecated:a}=this.props;return r.createElement(Gy,{className:n,onClick:o||void 0},r.createElement(Ky,{type:i},xs(i)),r.createElement(jp,{size:"1.5em",direction:t?"down":"right",float:"left"}),r.createElement(Xy,{deprecated:a},e),a?r.createElement(Np,{type:"warning"}," ",ln("deprecated")," "):null)}}const Gy=An.button`
border: 0;
width: 100%;
text-align: left;
& > * {
vertical-align: middle;
}
${jp} {
polygon {
fill: ${({theme:e})=>_t(e.colors.tonalOffset,e.colors.gray[100])};
}
}
`,Xy=An.span`
text-decoration: ${e=>e.deprecated?"line-through":"none"};
margin-right: 8px;
`,Ky=An(zy)`
margin: 0 5px 0 0;
`,Zy=An(Qy)`
padding: 10px;
border-radius: 2px;
margin-bottom: 4px;
line-height: 1.5em;
background-color: ${({theme:e})=>e.colors.gray[100]};
cursor: pointer;
outline-color: ${({theme:e})=>_t(e.colors.tonalOffset,e.colors.gray[100])};
`,Jy=An.div`
padding: 10px 25px;
background-color: ${({theme:e})=>e.colors.gray[50]};
margin-bottom: 5px;
margin-top: 5px;
`;class eb extends r.PureComponent{constructor(){super(...arguments),this.selectElement=()=>{Ih.selectElement(this.child)}}render(){const{children:e}=this.props;return r.createElement("div",{ref:e=>this.child=e,onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},e)}}const tb=An.div`
cursor: pointer;
position: relative;
margin-bottom: 5px;
`,nb=An.span`
font-family: ${e=>e.theme.typography.code.fontFamily};
margin-left: 10px;
flex: 1;
overflow-x: hidden;
text-overflow: ellipsis;
`,rb=An.button`
outline: 0;
color: inherit;
width: 100%;
text-align: left;
cursor: pointer;
padding: 10px 30px 10px ${e=>e.inverted?"10px":"20px"};
border-radius: ${e=>e.inverted?"0":"4px 4px 0 0"};
background-color: ${e=>e.inverted?"transparent":e.theme.codeBlock.backgroundColor};
display: flex;
white-space: nowrap;
align-items: center;
border: ${e=>e.inverted?"0":"1px solid transparent"};
border-bottom: ${e=>e.inverted?"1px solid #ccc":"0"};
transition: border-color 0.25s ease;
${e=>e.expanded&&!e.inverted&&`border-color: ${e.theme.colors.border.dark};`||""}
.${nb} {
color: ${e=>e.inverted?e.theme.colors.text.primary:"#ffffff"};
}
&:focus {
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(128, 128, 128, 0.25);
}
`,ob=An.span.attrs((e=>({className:`http-verb ${e.type}`})))`
font-size: ${e=>e.compact?"0.8em":"0.929em"};
line-height: ${e=>e.compact?"18px":"20px"};
background-color: ${e=>e.theme.colors.http[e.type]||"#999999"};
color: #ffffff;
padding: ${e=>e.compact?"2px 8px":"3px 10px"};
text-transform: uppercase;
font-family: ${e=>e.theme.typography.headings.fontFamily};
margin: 0;
`,ib=An.div`
position: absolute;
width: 100%;
z-index: 100;
background: #fafafa;
color: #263238;
box-sizing: border-box;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);
overflow: hidden;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
transition: all 0.25s ease;
visibility: hidden;
${e=>e.expanded?"visibility: visible;":"transform: translateY(-50%) scaleY(0);"}
`,ab=An.div`
padding: 10px;
`,sb=An.div`
padding: 5px;
border: 1px solid #ccc;
background: #fff;
word-break: break-all;
color: ${e=>e.theme.colors.primary.main};
> span {
color: ${e=>e.theme.colors.text.primary};
}
`;class lb extends r.Component{constructor(e){super(e),this.toggle=()=>{this.setState({expanded:!this.state.expanded})},this.state={expanded:!1}}render(){const{operation:e,inverted:t,hideHostname:n}=this.props,{expanded:o}=this.state;return r.createElement($n.Consumer,null,(i=>r.createElement(tb,null,r.createElement(rb,{onClick:this.toggle,expanded:o,inverted:t},r.createElement(ob,{type:e.httpVerb,compact:this.props.compact},e.httpVerb),r.createElement(nb,null,e.path),r.createElement(jp,{float:"right",color:t?"black":"white",size:"20px",direction:o?"up":"down",style:{marginRight:"-25px"}})),r.createElement(ib,{expanded:o,"aria-hidden":!o},e.servers.map((t=>{const o=i.expandDefaultServerVariables?function(e,t={}){return e.replace(/(?:{)([\w-.]+)(?:})/g,((e,n)=>t[n]&&t[n].default||e))}(t.url,t.variables):t.url,a=function(e){try{return an(e).pathname}catch(t){return e}}(o);return r.createElement(ab,{key:o},r.createElement(Oh,{source:t.description||"",compact:!0}),r.createElement(eb,null,r.createElement(sb,null,r.createElement("span",null,n||i.hideHostname?"/"===a?"":a:o),e.path)))}))))))}}class cb extends r.PureComponent{render(){const{place:e,parameters:t}=this.props;return t&&t.length?r.createElement("div",{key:e},r.createElement(kp,null,e," Parameters"),r.createElement(qp,null,r.createElement("tbody",null,Kt(t,((e,t)=>r.createElement(Fg,{key:e.name,isLast:t,field:e,showExamples:!0})))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let ub=class extends r.Component{constructor(){super(...arguments),this.switchMedia=({idx:e})=>{this.props.content&&this.props.content.activate(e)}}render(){const{content:e}=this.props;if(!e||!e.mediaTypes||!e.mediaTypes.length)return null;const t=e.activeMimeIdx,n=e.mediaTypes.map(((e,t)=>({value:e.name,idx:t}))),o=({children:e})=>this.props.withLabel?r.createElement(Zh,null,r.createElement(Kh,null,"Content type"),e):e;return r.createElement(r.Fragment,null,r.createElement(o,null,this.props.renderDropdown({value:n[t].value,options:n,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(e.active))}};ub=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],ub);var pb=Object.defineProperty,db=Object.getOwnPropertySymbols,fb=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,mb=(e,t,n)=>t in e?pb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const gb=["path","query","cookie","header"];class yb extends r.PureComponent{orderParams(e){const t={};return e.forEach((e=>{var n,r,o;o=e,(n=t)[r=e.in]||(n[r]=[]),n[r].push(o)})),t}render(){const{body:e,parameters:t=[]}=this.props;if(void 0===e&&void 0===t)return null;const n=this.orderParams(t),o=t.length>0?gb:[],i=e&&e.content,a=e&&e.description;return r.createElement(r.Fragment,null,o.map((e=>r.createElement(cb,{key:e,place:e,parameters:n[e]}))),i&&r.createElement(vb,{content:i,description:a}))}}function bb(e){return r.createElement(kp,{key:"header"},"Request Body schema: ",r.createElement(fh,((e,t)=>{for(var n in t||(t={}))fb.call(t,n)&&mb(e,n,t[n]);if(db)for(var n of db(t))hb.call(t,n)&&mb(e,n,t[n]);return e})({},e)))}function vb(e){const{content:t,description:n}=e,{isRequestType:o}=t;return r.createElement(ub,{content:t,renderDropdown:bb},(({schema:e})=>r.createElement(r.Fragment,null,void 0!==n&&r.createElement(Oh,{source:n}),r.createElement(ly,{skipReadOnly:o,skipWriteOnly:!o,key:"schema",schema:e}))))}const xb=An(r.memo((function({title:e,type:t,empty:n,code:o,opened:i,className:a,onClick:s}){return r.createElement("button",{className:a,onClick:!n&&s||void 0,"aria-expanded":i,disabled:n},!n&&r.createElement(jp,{size:"1.5em",color:t,direction:i?"down":"right",float:"left"}),r.createElement(Eb,null,o," "),r.createElement(Oh,{compact:!0,inline:!0,source:e}))})))`
display: block;
border: 0;
width: 100%;
text-align: left;
padding: 10px;
border-radius: 2px;
margin-bottom: 4px;
line-height: 1.5em;
cursor: pointer;
color: ${e=>e.theme.colors.responses[e.type].color};
background-color: ${e=>e.theme.colors.responses[e.type].backgroundColor};
&:focus {
outline: auto ${e=>e.theme.colors.responses[e.type].color};
}
${e=>e.empty?'\ncursor: default;\n&::before {\n content: "—";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n}\n&:focus {\n outline: 0;\n}\n':""};
`,wb=An.div`
padding: 10px;
`,kb=An(kp.withComponent("caption"))`
text-align: left;
margin-top: 1em;
caption-side: top;
`,Eb=An.strong`
vertical-align: top;
`;class Ob extends r.PureComponent{render(){const{headers:e}=this.props;return void 0===e||0===e.length?null:r.createElement(qp,null,r.createElement(kb,null," Response Headers "),r.createElement("tbody",null,Kt(e,((e,t)=>r.createElement(Fg,{isLast:t,key:e.name,field:e,showExamples:!0})))))}}var Sb=Object.defineProperty,_b=Object.getOwnPropertySymbols,Ab=Object.prototype.hasOwnProperty,Cb=Object.prototype.propertyIsEnumerable,Rb=(e,t,n)=>t in e?Sb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Tb extends r.PureComponent{constructor(){super(...arguments),this.renderDropdown=e=>r.createElement(kp,{key:"header"},"Response Schema: ",r.createElement(fh,((e,t)=>{for(var n in t||(t={}))Ab.call(t,n)&&Rb(e,n,t[n]);if(_b)for(var n of _b(t))Cb.call(t,n)&&Rb(e,n,t[n]);return e})({},e)))}render(){const{description:e,extensions:t,headers:n,content:o}=this.props.response;return r.createElement(r.Fragment,null,e&&r.createElement(Oh,{source:e}),r.createElement(ug,{extensions:t}),r.createElement(Ob,{headers:n}),r.createElement(ub,{content:o,renderDropdown:this.renderDropdown},(({schema:e})=>r.createElement(ly,{skipWriteOnly:!0,key:"schema",schema:e}))))}}const Pb=Vm((({response:e})=>{const{extensions:t,headers:n,type:o,summary:i,description:a,code:s,expanded:l,content:c}=e,u=r.useMemo((()=>void 0===c?[]:c.mediaTypes.filter((e=>void 0!==e.schema))),[c]),p=r.useMemo((()=>!(t&&0!==Object.keys(t).length||0!==n.length||0!==u.length||a)),[t,n,u,a]);return r.createElement("div",null,r.createElement(xb,{onClick:()=>e.toggle(),type:o,empty:p,title:i||"",code:s,opened:l}),l&&!p&&r.createElement(wb,null,r.createElement(Tb,{response:e})))})),Ib=An.h3`
font-size: 1.3em;
padding: 0.2em 0;
margin: 3em 0 1.1em;
color: ${({theme:e})=>e.colors.text.primary};
font-weight: normal;
`;class jb extends r.PureComponent{render(){const{responses:e,isCallback:t}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(Ib,null,ln(t?"callbackResponses":"responses")),e.map((e=>r.createElement(Pb,{key:e.code,response:e})))):null}}const Nb=An.code`
font-size: ${e=>e.theme.typography.code.fontSize};
font-family: ${e=>e.theme.typography.code.fontFamily};
border: 1px solid ${({theme:e})=>e.colors.border.dark};
margin: 0 3px;
padding: 0.2em;
display: inline-block;
line-height: 1;
&:after {
content: ',';
}
&:last-child:after {
content: none;
}
`,Lb=An.span`
&:after {
content: ' AND ';
font-weight: bold;
}
&:last-child:after {
content: none;
}
${mh};
`,$b=An.span`
&:before {
content: '( ';
font-weight: bold;
}
&:after {
content: ' ) OR ';
font-weight: bold;
}
&:last-child:after {
content: ' )';
}
&:only-child:before,
&:only-child:after {
content: none;
}
${mh};
`;class Db extends r.PureComponent{render(){const e=this.props.security;return r.createElement($b,null,e.schemes.length?e.schemes.map((e=>r.createElement(Lb,{key:e.id},r.createElement(Cp,{to:e.sectionId},e.id),e.scopes.length>0&&" (",e.scopes.map((e=>r.createElement(Nb,{key:e},e))),e.scopes.length>0&&") "))):r.createElement(Lb,null,"None"))}}const Mb=An.div`
flex: 1 1 auto;
`,Fb=An.div`
width: ${e=>e.theme.schema.defaultDetailsWidth};
${_n("small")`
margin-top: 10px;
`}
`,zb=An(kp)`
display: inline-block;
margin: 0;
`,Ub=An.div`
width: 100%;
display: flex;
margin: 1em 0;
${_n("small")`
flex-direction: column;
`}
`;class Bb extends r.PureComponent{render(){const e=this.props.securities;return e.length?r.createElement(Ub,null,r.createElement(Mb,null,r.createElement(zb,null,"Authorizations: ")),r.createElement(Fb,null,e.map(((e,t)=>r.createElement(Db,{key:t,security:e}))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let qb=class extends r.Component{render(){const{operation:e}=this.props,{description:t,externalDocs:n}=e,o=!(!t&&!n);return r.createElement(Jy,null,o&&r.createElement(Wb,null,void 0!==t&&r.createElement(Oh,{source:t}),n&&r.createElement(ag,{externalDocs:n})),r.createElement(lb,{operation:this.props.operation,inverted:!0,compact:!0}),r.createElement(ug,{extensions:e.extensions}),r.createElement(Bb,{securities:e.security}),r.createElement(yb,{parameters:e.parameters,body:e.requestBody}),r.createElement(jb,{responses:e.responses,isCallback:e.isCallback}))}};qb=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],qb);const Wb=An.div`
margin-bottom: ${({theme:e})=>3*e.spacing.unit}px;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Vb=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{this.props.callbackOperation.toggle()}}render(){const{name:e,expanded:t,httpVerb:n,deprecated:o}=this.props.callbackOperation;return r.createElement(r.Fragment,null,r.createElement(Zy,{onClick:this.toggle,name:e,opened:t,httpVerb:n,deprecated:o}),t&&r.createElement(qb,{operation:this.props.callbackOperation}))}};Vb=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],Vb);class Hb extends r.PureComponent{render(){const{callbacks:e}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(Yb,null," Callbacks "),e.map((e=>e.operations.map(((t,n)=>r.createElement(Vb,{key:`${e.name}_${n}`,callbackOperation:t})))))):null}}const Yb=An.h3`
font-size: 1.3em;
padding: 0.2em 0;
margin: 3em 0 1.1em;
color: ${({theme:e})=>e.colors.text.primary};
font-weight: normal;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Qb=class extends r.Component{constructor(e){super(e),this.switchItem=({idx:e})=>{this.props.items&&this.setState({activeItemIdx:e})},this.state={activeItemIdx:0}}render(){const{items:e}=this.props;if(!e||!e.length)return null;const t=({children:e})=>this.props.label?r.createElement(Zh,null,r.createElement(Kh,null,this.props.label),e):e;return r.createElement(r.Fragment,null,r.createElement(t,null,this.props.renderDropdown({value:this.props.options[this.state.activeItemIdx].value,options:this.props.options,onChange:this.switchItem,ariaLabel:this.props.label||"Callback"})),this.props.children(e[this.state.activeItemIdx]))}};Qb=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],Qb);var Gb=Object.defineProperty,Xb=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),Kb=Object.prototype.hasOwnProperty,Zb=Object.prototype.propertyIsEnumerable,Jb=(e,t,n)=>t in e?Gb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ev=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>r.createElement(fh,((e,t)=>{for(var n in t||(t={}))Kb.call(t,n)&&Jb(e,n,t[n]);if(Xb)for(var n of Xb(t))Zb.call(t,n)&&Jb(e,n,t[n]);return e})({Label:Xh,Dropdown:Jh},e))}render(){const e=this.props.content;return void 0===e?null:r.createElement(ub,{content:e,renderDropdown:this.renderDropdown,withLabel:!0},(e=>r.createElement(tm,{key:"samples",mediaType:e,renderDropdown:this.renderDropdown})))}};ev=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],ev);class tv extends r.Component{render(){const e=this.props.callback.codeSamples.find((e=>du(e)));return e?r.createElement(nv,null,r.createElement(ev,{content:e.requestBodyContent})):null}}const nv=An.div`
margin-top: 15px;
`;var rv=Object.defineProperty,ov=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),iv=Object.prototype.hasOwnProperty,av=Object.prototype.propertyIsEnumerable,sv=(e,t,n)=>t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let lv=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>r.createElement(fh,((e,t)=>{for(var n in t||(t={}))iv.call(t,n)&&sv(e,n,t[n]);if(ov)for(var n of ov(t))av.call(t,n)&&sv(e,n,t[n]);return e})({Label:Xh,Dropdown:Jh},e))}render(){const{callbacks:e}=this.props;if(!e||0===e.length)return null;const t=e.map((e=>e.operations.map((e=>e)))).reduce(((e,t)=>e.concat(t)),[]);if(!t.some((e=>e.codeSamples.length>0)))return null;const n=t.map(((e,t)=>({value:`${e.httpVerb.toUpperCase()}: ${e.name}`,idx:t})));return r.createElement("div",null,r.createElement(wp,null," Callback payload samples "),r.createElement(cv,null,r.createElement(Qb,{items:t,renderDropdown:this.renderDropdown,label:"Callback",options:n},(e=>r.createElement(tv,{key:"callbackPayloadSample",callback:e,renderDropdown:this.renderDropdown})))))}};lv.contextType=$n,lv=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],lv);const cv=An.div`
background: ${({theme:e})=>e.codeBlock.backgroundColor};
padding: ${e=>4*e.theme.spacing.unit}px;
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let uv=class extends r.Component{render(){const{operation:e}=this.props,t=e.codeSamples,n=t.length>0,o=1===t.length&&this.context.hideSingleRequestSampleTab;return n&&r.createElement("div",null,r.createElement(wp,null," ",ln("requestSamples")," "),r.createElement(hf,{defaultIndex:0},r.createElement(af,{hidden:o},t.map((e=>r.createElement(uf,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)))),t.map((e=>r.createElement(ff,{key:e.lang+"_"+(e.label||"")},du(e)?r.createElement("div",null,r.createElement(ev,{content:e.requestBodyContent})):r.createElement(Hh,{lang:e.lang,source:e.source}))))))||null}};uv.contextType=$n,uv=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],uv);Object.defineProperty,Object.getOwnPropertyDescriptor;let pv=class extends r.Component{render(){const{operation:e}=this.props,t=e.responses.filter((e=>e.content&&e.content.hasSample));return t.length>0&&r.createElement("div",null,r.createElement(wp,null," ",ln("responseSamples")," "),r.createElement(hf,{defaultIndex:0},r.createElement(af,null,t.map((e=>r.createElement(uf,{className:"tab-"+e.type,key:e.code},e.code)))),t.map((e=>r.createElement(ff,{key:e.code},r.createElement("div",null,r.createElement(ev,{content:e.content})))))))||null}};pv=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],pv);Object.defineProperty,Object.getOwnPropertyDescriptor;const dv=An.div`
margin-bottom: ${({theme:e})=>6*e.spacing.unit}px;
`;let fv=class extends r.Component{render(){const{operation:e}=this.props,{name:t,description:n,deprecated:o,externalDocs:i,isWebhook:a}=e,s=!(!n&&!i);return r.createElement($n.Consumer,null,(l=>r.createElement(gp,null,r.createElement(fp,null,r.createElement(xp,null,r.createElement(Tp,{to:e.id}),t," ",o&&r.createElement(Np,{type:"warning"}," Deprecated "),a&&r.createElement(Np,{type:"primary"}," Webhook ")),l.pathInMiddlePanel&&!a&&r.createElement(lb,{operation:e,inverted:!0}),s&&r.createElement(dv,null,void 0!==n&&r.createElement(Oh,{source:n}),i&&r.createElement(ag,{externalDocs:i})),r.createElement(ug,{extensions:e.extensions}),r.createElement(Bb,{securities:e.security}),r.createElement(yb,{parameters:e.parameters,body:e.requestBody}),r.createElement(jb,{responses:e.responses}),r.createElement(Hb,{callbacks:e.callbacks})),r.createElement(mp,null,!l.pathInMiddlePanel&&!a&&r.createElement(lb,{operation:e}),r.createElement(uv,{operation:e}),r.createElement(pv,{operation:e}),r.createElement(lv,{callbacks:e.callbacks})))))}};fv=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],fv);var hv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,gv=Object.getOwnPropertySymbols,yv=Object.prototype.hasOwnProperty,bv=Object.prototype.propertyIsEnumerable,vv=(e,t,n)=>t in e?hv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xv=(e,t)=>{for(var n in t||(t={}))yv.call(t,n)&&vv(e,n,t[n]);if(gv)for(var n of gv(t))bv.call(t,n)&&vv(e,n,t[n]);return e},wv=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?mv(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&hv(t,n,i),i};let kv=class extends r.Component{render(){const e=this.props.items;return 0===e.length?null:e.map((e=>r.createElement(Ev,{key:e.id,item:e})))}};kv=wv([Vm],kv);let Ev=class extends r.Component{render(){const e=this.props.item;let t;const{type:n}=e;switch(n){case"group":t=null;break;case"tag":case"section":t=r.createElement(Sv,xv({},this.props));break;case"operation":t=r.createElement(_v,{item:e});break;default:t=r.createElement(Sv,xv({},this.props))}return r.createElement(r.Fragment,null,t&&r.createElement(hp,{id:e.id,underlined:"operation"===e.type},t),e.items&&r.createElement(kv,{items:e.items}))}};Ev=wv([Vm],Ev);const Ov=e=>r.createElement(fp,{compact:!0},e);let Sv=class extends r.Component{render(){const{name:e,description:t,externalDocs:n,level:o}=this.props.item,i=2===o?xp:vp;return r.createElement(r.Fragment,null,r.createElement(gp,null,r.createElement(fp,{compact:!1},r.createElement(i,null,r.createElement(Tp,{to:this.props.item.id}),e))),r.createElement(Dy,{source:t||"",htmlWrap:Ov}),n&&r.createElement(gp,null,r.createElement(fp,null,r.createElement(ag,{externalDocs:n}))))}};Sv=wv([Vm],Sv);let _v=class extends r.Component{render(){return r.createElement(fv,{operation:this.props.item})}};_v=wv([Vm],_v);var Av=Object.defineProperty,Cv=Object.defineProperties,Rv=Object.getOwnPropertyDescriptor,Tv=Object.getOwnPropertyDescriptors,Pv=Object.getOwnPropertySymbols,Iv=Object.prototype.hasOwnProperty,jv=Object.prototype.propertyIsEnumerable,Nv=(e,t,n)=>t in e?Av(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lv=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Rv(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Av(t,n,i),i};let $v=class extends r.Component{constructor(){super(...arguments),this.ref=r.createRef(),this.activate=e=>{this.props.onActivate(this.props.item),e.stopPropagation()}}componentDidMount(){this.scrollIntoViewIfActive()}componentDidUpdate(){this.scrollIntoViewIfActive()}scrollIntoViewIfActive(){this.props.item.active&&this.ref.current&&Ut(this.ref.current)}render(){const{item:e,withoutChildren:t}=this.props;return r.createElement(qy,{onClick:this.activate,depth:e.depth,"data-item-id":e.id},"operation"===e.type?r.createElement(Dv,((e,t)=>Cv(e,Tv(t)))(((e,t)=>{for(var n in t||(t={}))Iv.call(t,n)&&Nv(e,n,t[n]);if(Pv)for(var n of Pv(t))jv.call(t,n)&&Nv(e,n,t[n]);return e})({},this.props),{item:e})):r.createElement(Vy,{depth:e.depth,active:e.active,type:e.type,re
user-select: none;
width: 20px;
height: 20px;
align-self: center;
display: flex;
flex-direction: column;
color: ${e=>e.theme.colors.primary.main};
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Qv;Ft&&(Qv=n(5114));const Gv=Qv&&Qv(),Xv=An.div`
width: ${e=>e.theme.sidebar.width};
background-color: ${e=>e.theme.sidebar.backgroundColor};
overflow: hidden;
display: flex;
flex-direction: column;
backface-visibility: hidden;
/* contain: strict; TODO: breaks layout since Chrome 80*/
height: 100vh;
position: sticky;
position: -webkit-sticky;
top: 0;
${_n("small")`
position: fixed;
z-index: 20;
width: 100%;
background: ${({theme:e})=>e.sidebar.backgroundColor};
display: ${e=>e.open?"flex":"none"};
`};
@media print {
display: none;
}
`,Kv=An.div`
outline: none;
user-select: none;
background-color: #f2f2f2;
color: ${e=>e.theme.colors.primary.main};
display: none;
cursor: pointer;
position: fixed;
right: 20px;
z-index: 100;
border-radius: 50%;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
${_n("small")`
display: flex;
`};
bottom: 44px;
width: 60px;
height: 60px;
padding: 0 20px;
@media print {
display: none;
}
`;let Zv=class extends r.Component{constructor(){super(...arguments),this.state={offsetTop:"0px"},this.toggleNavMenu=()=>{this.props.menu.toggleSidebar()}}componentDidMount(){Gv&&Gv.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})}componentWillUnmount(){Gv&&Gv.remove(this.stickyElement)}getScrollYOffset(e){let t;return t=void 0!==this.props.scrollYOffset?xn.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset(),t+"px"}render(){const e=this.props.menu.sideBarOpened,t=this.state.offsetTop;return r.createElement(r.Fragment,null,r.createElement(Xv,{open:e,className:this.props.className,style:{top:t,height:`calc(100vh - ${t})`},ref:e=>{this.stickyElement=e}},this.props.children),r.createElement(Kv,{onClick:this.toggleNavMenu},r.createElement(Vv,{open:e})))}};Zv.contextType=$n,Zv=((e,t,n,r)=>{for(var o,i=t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(i)||i);return i})([Vm],Zv);const Jv=An.div`
${({theme:e})=>`\n font-family: ${e.typography.fontFamily};\n font-size: ${e.typography.fontSize};\n font-weight: ${e.typography.fontWeightRegular};\n line-height: ${e.typography.lineHeight};\n color: ${e.colors.text.primary};\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: ${e.typography.smoothing};\n font-smoothing: ${e.typography.smoothing};\n ${e.typography.optimizeSpeed?"text-rendering: optimizeSpeed !important":""};\n\n tap-highlight-color: rgba(0, 0, 0, 0);\n text-size-adjust: 100%;\n\n * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n`};
`,ex=An.div`
z-index: 1;
position: relative;
overflow: hidden;
width: calc(100% - ${e=>e.theme.sidebar.width});
${_n("small",!0)`
width: 100%;
`};
contain: layout;
`,tx=An.div`
background: ${({theme:e})=>e.rightPanel.backgroundColor};
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: ${({theme:e})=>{if(e.rightPanel.width.endsWith("%")){const t=parseInt(e.rightPanel.width,10);return`calc((100% - ${e.sidebar.width}) * ${t/100})`}return e.rightPanel.width}};
${_n("medium",!0)`
display: none;
`};
`,nx=An.div`
padding: 5px 0;
`,rx=An.input.attrs((()=>({className:"search-input"})))`
width: calc(100% - ${e=>8*e.theme.spacing.unit}px);
box-sizing: border-box;
margin: 0 ${e=>4*e.theme.spacing.unit}px;
padding: 5px ${e=>2*e.theme.spacing.unit}px 5px
${e=>4*e.theme.spacing.unit}px;
border: 0;
border-bottom: 1px solid
${({theme:e})=>(Rt(e.sidebar.backgroundColor)>.5?_t:Pt)(.1,e.sidebar.backgroundColor)};
font-family: ${({theme:e})=>e.typography.fontFamily};
font-weight: bold;
font-size: 13px;
color: ${e=>e.theme.sidebar.textColor};
background-color: transparent;
outline: none;
`,ox=An((e=>r.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},r.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"})))).attrs({className:"search-icon"})`
position: absolute;
left: ${e=>4*e.theme.spacing.unit}px;
height: 1.8em;
width: 0.9em;
path {
fill: ${e=>e.theme.sidebar.textColor};
}
`,ix=An.div`
padding: ${e=>e.theme.spacing.unit}px 0;
background-color: ${({theme:e})=>_t(.05,e.sidebar.backgroundColor)}};
color: ${e=>e.theme.sidebar.textColor};
min-height: 150px;
max-height: 250px;
border-top: ${({theme:e})=>_t(.1,e.sidebar.backgroundColor)}};
border-bottom: ${({theme:e})=>_t(.1,e.sidebar.backgroundColor)}};
margin-top: 10px;
line-height: 1.4;
font-size: 0.9em;
li {
background-color: inherit;
}
${Vy} {
padding-top: 6px;
padding-bottom: 6px;
&:hover,
&.active {
background-color: ${({theme:e})=>_t(.1,e.sidebar.backgroundColor)};
}
> svg {
display: none;
}
}
`,ax=An.i`
position: absolute;
display: inline-block;
width: ${e=>2*e.theme.spacing.unit}px;
text-align: center;
right: ${e=>4*e.theme.spacing.unit}px;
line-height: 2em;
vertical-align: middle;
margin-right: 2px;
cursor: pointer;
font-style: normal;
color: '#666';
`;var sx=Object.defineProperty,lx=Object.getOwnPropertyDescriptor;class cx extends r.PureComponent{constructor(e){super(e),this.activeItemRef=null,this.clear=()=>{this.setState({results:[],noResults:!1,term:"",activeItemIdx:-1}),this.props.marker.unmark()},this.handleKeyDown=e=>{if(27===e.keyCode&&this.clear(),40===e.keyCode&&(this.setState({activeItemIdx:Math.min(this.state.activeItemIdx+1,this.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(this.setState({activeItemIdx:Math.max(0,this.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){const e=this.state.results[this.state.activeItemIdx];if(e){const t=this.props.getItemById(e.meta);t&&this.props.onActivate(t)}}},this.search=e=>{const t=e.target.value;t.length<3?this.clearResults(t):this.setState({term:t},(()=>this.searchCallback(this.state.term)))},this.state={results:[],noResults:!1,term:"",activeItemIdx:-1}}clearResults(e){this.setState({results:[],noResults:!1,term:e}),this.props.marker.unmark()}setResults(e,t){this.setState({results:e,noResults:0===e.length}),this.props.marker.mark(t)}searchCallback(e){this.props.search.search(e).then((t=>{this.setResults(t,e)}))}render(){const{activeItemIdx:e}=this.state,t=this.state.results.map((e=>({item:this.props.getItemById(e.meta),score:e.score})));return t.sort(((e,t)=>t.score-e.score)),r.createElement(nx,{role:"search"},this.state.term&&r.createElement(ax,{onClick:this.clear},"×"),r.createElement(ox,null),r.createElement(rx,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...","aria-label":"Search",type:"text",onChange:this.search}),t.length>0&&r.createElement(ih,{options:{wheelPropagation:!1}},r.createElement(ix,{"data-role":"search:results"},t.map(((t,n)=>r.createElement($v,{item:Object.create(t.item,{active:{value:n===e}}),onActivate:this.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"}))))),this.state.term&&this.state.noResults?r.createElement(ix,{"data-role":"search:results"},ln("noResultsFound")):null)}}((e,t,n,r)=>{for(var o,i=lx(t,n),a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);i&&sx(t,n,i)})([Na.bind,(0,Na.debounce)(400)],cx.prototype,"searchCallback");class ux extends r.Component{componentDidMount(){this.props.store.onDidMount()}componentWillUnmount(){this.props.store.dispose()}render(){const{store:{spec:e,menu:t,options:n,search:o,marker:i}}=this.props,a=this.props.store;return r.createElement(Sn,{theme:n.theme},r.createElement(Op,{value:a},r.createElement(Dn,{value:n},r.createElement(Jv,{className:"redoc-wrap"},r.createElement(Zv,{menu:t,className:"menu-content"},r.createElement(Ty,{info:e.info}),!n.disableSearch&&r.createElement(cx,{search:o,marker:i,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,r.createElement(Wv,{menu:t})),r.createElement(ex,{className:"api-content"},r.createElement(_y,{store:a}),r.createElement(kv,{items:t.items})),r.createElement(tx,null)))))}}ux.propTypes={store:Ln.instanceOf(vy).isRequired};const px=function(e){const{spec:t,specUrl:n,options:o={},onLoaded:i}=e,a=bn(o.hideLoading,!1),s=new xn(o);return r.createElement(Tn,null,r.createElement(_p,{spec:t,specUrl:n,options:o,onLoaded:i},(({loading:e,store:t})=>e?a?null:r.createElement(Nn,{color:s.theme.colors.primary.main}):r.createElement(ux,{store:t}))))},dx=An.li`
${e=>e.active?"background-color: #eee":""};
padding: 13px 16px;
&:hover {
background-color: #eee;
}
cursor: pointer;
text-overflow: ellipsis;
overflow: hidden;
`,fx=An.ul`
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12),
0 3px 1px -2px rgba(0, 0, 0, 0.2);
background: #fff;
border-radius: 0 0 2px 2px;
top: 100%;
left: 0;
right: 0;
z-index: 200;
overflow: hidden;
position: absolute;
list-style: none;
margin: 4px 0 0 0;
padding: 5px 0;
font-family: Roboto,sans-serif;
overflow: hidden;
`,hx=An.div`
position: relative;
width: 100%;
max-width: 500px;
display: flex;
`,mx=An.input`
box-sizing: border-box;
width: 100%;
padding: 0 10px;
color: #555;
background-color: #fff;
border: 1px solid #ccc;
font-size: 16px;
height: 28px;
box-sizing: border-box;
vertical-align: middle;
line-height: 1;
outline: none;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
&:focus {
border-color: #66afe9;
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
`,gx=An.button`
background-color: #fff;
color: #333;
padding: 2px 10px;
touch-action: manipulation;
cursor: pointer;
user-select: none;
border: 1px solid #ccc;
border-left: 0;
font-size: 16px;
height: 28px;
box-sizing: border-box;
vertical-align: middle;
line-height: 1;
outline: none;
width: 80px;
white-space: nowrap;
@media screen and (max-width: 450px) {
display: none;
}
`;class yx extends r.Component{constructor(){super(...arguments),this.state={open:!1,value:this.props.value||"",activeItemIdx:-1},this.open=()=>{this.setState({open:!0})},this.close=()=>{this.setState({open:!1,activeItemIdx:-1})},this.handleChange=e=>{this.updateValue(e.currentTarget.value)},this.handleTryItClick=()=>{this.handleSelect(this.state.value)},this.handleKeyPress=e=>{if(13===e.keyCode)this.handleSelect(e.currentTarget.value);else if(40===e.keyCode){const t=Math.min(this.props.options.length-1,++this.state.activeItemIdx);this.setState({open:!0,activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else if(38===e.keyCode){const t=Math.max(0,--this.state.activeItemIdx);this.setState({activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else 27===e.keyCode&&this.close()},this.handleBlur=()=>{setTimeout((()=>this.close()),100)},this.handleItemClick=(e,t)=>{this.handleSelect(e),this.setState({activeItemIdx:t})},this.renderOption=(e,t)=>r.createElement(dx,{active:t===this.state.activeItemIdx,key:e.value,onMouseDown:()=>{this.handleItemClick(e.value,t)}},r.createElement("small",null,r.createElement("strong",null,e.label)),r.createElement("br",null),e.value)}updateValue(e){this.setState({value:e,activeItemIdx:-1})}handleSelect(e){this.updateValue(e),this.props.onChange&&this.props.onChange(e),this.close()}render(){const{open:e,value:t}=this.state,{options:n,placeholder:o}=this.props;return r.createElement(hx,null,r.createElement(mx,{placeholder:o,onChange:this.handleChange,value:t,onFocus:this.open,onBlur:this.handleBlur,onKeyDown:this.handleKeyPress,"aria-label":"URL to an OpenAPI definition to try"}),r.createElement(gx,{onClick:this.handleTryItClick}," TRY IT "),e&&r.createElement(fx,null,n.map(this.renderOption)))}}var bx=function(e){return"object"==typeof e&&null!==e},vx=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},xx=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e};function wx(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function kx(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=wx(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}kx.prototype=Object.create(Error.prototype),kx.prototype.constructor=kx,kx.prototype.toString=function(e){return this.name+": "+wx(this,e)};var Ex=kx;function Ox(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(t=r-s+(i=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function Sx(e,t){return vx(" ",t-e.length)+e}var _x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ax=["scalar","sequence","mapping"],Cx=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===_x.indexOf(t))throw new Ex('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===Ax.indexOf(this.kind))throw new Ex('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Rx(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function Tx(e){return this.extend(e)}Tx.prototype.extend=function(e){var t=[],n=[];if(e instanceof Cx)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.impli
background-color: #fff;
color: #333;
padding: 2px 10px;
touch-action: manipulation;
cursor: pointer;
user-select: none;
border: 1px solid #ccc;
font-size: 16px;
height: 28px;
box-sizing: border-box;
vertical-align: middle;
line-height: 1;
outline: none;
white-space: nowrap;
@media (max-width: 699px) {
display: none;
}
`,qw=function(e){const t=(0,r.useRef)(null);return r.createElement("span",null,r.createElement(Bw,{onClick:()=>{t&&t.current&&t.current.click()}},"Upload a file"),r.createElement("input",{type:"file",style:{display:"none"},onChange:t=>{const n=t.target.files[0],r=new FileReader;r.onload=()=>{e.onUpload(Uw(r.result))},r.readAsText(n)},ref:t}))},Ww="openapi.yaml",Vw="openapi-3-1.yaml",Hw=[{value:Vw,label:"Petstore OpenAPI 3.1"},{value:"https://api.apis.guru/v2/specs/instagram.com/1.0.0/swagger.yaml",label:"Instagram"},{value:"https://api.apis.guru/v2/specs/googleapis.com/calendar/v3/openapi.yaml",label:"Google Calendar"},{value:"https://api.apis.guru/v2/specs/slack.com/1.7.0/openapi.yaml",label:"Slack"},{value:"https://api.apis.guru/v2/specs/zoom.us/2.0.0/openapi.yaml",label:"Zoom.us"},{value:"https://docs.graphhopper.com/openapi.json",label:"GraphHopper"}];class Yw extends r.Component{constructor(e){super(e),this.handleUploadFile=e=>{this.setState({spec:e,specUrl:""})},this.handleChange=e=>{e===Vw&&this.setState({cors:!1}),this.setState({specUrl:e}),window.history.pushState(void 0,"",Zw(location.search,"url",e))},this.toggleCors=e=>{const t=e.currentTarget.checked;this.setState({cors:t}),window.history.pushState(void 0,"",Zw(location.search,"nocors",t?void 0:""))};let t=window.location.search.match(/url=([^&]+)/),n=Ww;t&&t.length>1&&(n=decodeURIComponent(t[1])),t=window.location.search.match(/[?&]nocors(&|#|$)/);let r=!0;t&&t.length>1&&(r=!1),this.state={spec:void 0,specUrl:n,dropdownOpen:!1,cors:r}}render(){const{specUrl:e,cors:t}=this.state;let n=e;return e!==Ww&&(n=t?"\\\\cors.redoc.ly/"+(0,He.resolve)(window.location.href,e):e),r.createElement(r.Fragment,null,r.createElement(Xw,null,r.createElement("a",{href:"."},r.createElement(Kw,{src:"https://github.com/Redocly/redoc/raw/master/docs/images/redoc-logo.png",alt:"Redoc logo"})),r.createElement(Qw,null,r.createElement(qw,{onUpload:this.handleUploadFile}),r.createElement(yx,{placeholder:"URL to a spec to try",options:Hw,onChange:this.handleChange,value:e===Ww?"":e}),r.createElement(Gw,{title:"Use CORS proxy"},r.createElement("input",{id:"cors_checkbox",type:"checkbox",onChange:this.toggleCors,checked:t}),r.createElement("label",{htmlFor:"cors_checkbox"},"CORS"))),r.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=Redocly&repo=redoc&type=star&count=true&size=large",frameBorder:"0",scrolling:"0",width:"160px",height:"30px"})),r.createElement(px,{spec:this.state.spec,specUrl:n,options:{scrollYOffset:"nav",untrustedSpec:!0}}))}}const Qw=Ve.div`
display: flex;
justify-content: center;
flex: 1;
margin: 0 15px;
align-items: center;
`,Gw=Ve.div`
margin-left: 10px;
white-space: nowrap;
label {
font-size: 13px;
}
@media screen and (max-width: 550px) {
display: none;
}
`,Xw=Ve.nav`
position: sticky;
top: 0;
width: 100%;
height: 50px;
box-sizing: border-box;
background: white;
border-bottom: 1px solid #cccccc;
z-index: 10;
padding: 5px;
display: flex;
align-items: center;
font-family: Roboto, sans-serif;
`,Kw=Ve.img`
height: 40px;
width: 124px;
display: inline-block;
margin-right: 15px;
@media screen and (max-width: 950px) {
display: none;
}
`;function Zw(e,t,n){const r=""===n?t:t+"="+n,o=new RegExp("([?|&])"+t+"=?.*?(&|#|$)","i");if(e.match(o))return void 0!==n?e.replace(o,"$1"+r+"$2"):e.replace(o,((e,t,n)=>(n.startsWith("&")&&(n=n.substring(1)),"&"===t?n:t+n)));{if(void 0===n)return e;let t="";-1!==e.indexOf("#")&&(t=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));const o=-1!==e.indexOf("?")?"&":"?";return e+o+r+t}}(0,o.render)(r.createElement(Yw,null),document.getElementById("container"))})()})();