From 9b81740de431edbf9ee6e743eb7ca1d98aab5eaa Mon Sep 17 00:00:00 2001 From: Owncast Date: Fri, 6 Nov 2020 02:40:57 +0000 Subject: [PATCH] Commit updated API documentation --- doc/api/index.html | 860 ++++++++++++++++++++++----------------------- 1 file changed, 430 insertions(+), 430 deletions(-) diff --git a/doc/api/index.html b/doc/api/index.html index 208f869ce..3a8a71390 100644 --- a/doc/api/index.html +++ b/doc/api/index.html @@ -106,150 +106,150 @@ e.exports=function(e,t){e||(e=document),t||(t=window);var n,r,o=[],i=!1,a=e.docu * Licensed under MIT */ function Jo(e){return getComputedStyle(e)}function Zo(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function ei(e){var t=document.createElement("div");return t.className=e,t}var ti="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ni(e,t){if(!ti)throw new Error("No element matching method supported");return ti.call(e,t)}function ri(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function oi(e,t){return Array.prototype.filter.call(e.children,(function(e){return ni(e,t)}))}var ii="ps",ai="ps__rtl",si={thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},li={focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}},ci={x:null,y:null};function ui(e,t){var n=e.element.classList,r=li.scrolling(t);n.contains(r)?clearTimeout(ci[t]):n.add(r)}function pi(e,t){ci[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(li.scrolling(t))}),e.settings.scrollingThreshold)}var fi=function(e){this.element=e,this.handlers={}},di={isEmpty:{configurable:!0}};fi.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},fi.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)}))},fi.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},di.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(fi.prototype,di);var hi=function(){this.eventElements=[]};function mi(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 gi(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(mi("ps-scroll-"+l)),t<0?p.dispatchEvent(mi("ps-scroll-"+c)):t>0&&p.dispatchEvent(mi("ps-scroll-"+u)),r&&function(e,t){ui(e,t),pi(e,t)}(e,l));e.reach[l]&&(t||o)&&p.dispatchEvent(mi("ps-"+l+"-reach-"+e.reach[l]))}(e,n,i,r,o)}function vi(e){return parseInt(e,10)||0}hi.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new fi(e),this.eventElements.push(t)),t},hi.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},hi.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)},hi.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},hi.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 yi={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 bi(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)||(oi(t,si.rail("x")).forEach((function(e){return ri(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(oi(t,si.rail("y")).forEach((function(e){return ri(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r;Zo(t.scrollbarXRail,n);var o={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?o.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:o.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?o.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:o.left=t.scrollbarYLeft+e.scrollLeft;Zo(t.scrollbarYRail,o),Zo(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Zo(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(li.active("x")):(t.classList.remove(li.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(li.active("y")):(t.classList.remove(li.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function xi(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function wi(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],p=e.element,f=null,d=null,h=null;function m(t){t.touches&&t.touches[0]&&(t[o]=t.touches[0].pageY),p[l]=f+h*(t[o]-d),ui(e,c),bi(e),t.stopPropagation(),t.preventDefault()}function g(){pi(e,c),e[u].classList.remove(li.clicking),e.event.unbind(e.ownerDocument,"mousemove",m)}function v(t,a){f=p[l],a&&t.touches&&(t[o]=t.touches[0].pageY),d=t[o],h=(e[r]-e[n])/(e[i]-e[s]),a?e.event.bind(e.ownerDocument,"touchmove",m):(e.event.bind(e.ownerDocument,"mousemove",m),e.event.once(e.ownerDocument,"mouseup",g),t.preventDefault()),e[u].classList.add(li.clicking),t.stopPropagation()}e.event.bind(e[a],"mousedown",(function(e){v(e)})),e.event.bind(e[a],"touchstart",(function(e){v(e,!0)}))}var _i={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,bi(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,bi(e),t.stopPropagation()}))},"drag-thumb":function(e){wi(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),wi(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(ni(t,":hover")||ni(e.scrollbarX,":focus")||ni(e.scrollbarY,":focus"))){var r,o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(ni(r=o,"input,[contenteditable]")||ni(r,"select,[contenteditable]")||ni(r,"textarea,[contenteditable]")||ni(r,"button,[contenteditable]"))return}var i=0,a=0;switch(n.which){case 37:i=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:i=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==i||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=i,bi(e),function(n,r){var o=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===o&&r>0||o>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var i=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===i&&n<0||i>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(i,a)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var r=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),o=r[0],i=r[1];if(!function(e,n,r){if(!yi.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(si.consuming))return!0;var i=Jo(o);if(r&&i.overflowY.match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(a>0&&(o.scrollTop>0&&r<0||o.scrollTop0))return!0}if(n&&i.overflowX.match(/(scroll|auto)/)){var s=o.scrollWidth-o.clientWidth;if(s>0&&(o.scrollLeft>0&&n<0||o.scrollLeft0))return!0}o=o.parentNode}return!1}(n.target,o,i)){var a=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(i?t.scrollTop-=i*e.settings.wheelSpeed:t.scrollTop+=o*e.settings.wheelSpeed,a=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(o?t.scrollLeft+=o*e.settings.wheelSpeed:t.scrollLeft-=i*e.settings.wheelSpeed,a=!0):(t.scrollTop-=i*e.settings.wheelSpeed,t.scrollLeft+=o*e.settings.wheelSpeed),bi(e),(a=a||function(n,r){var o=Math.floor(t.scrollTop),i=0===t.scrollTop,a=o+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?i||a:s||l)||!e.settings.wheelPropagation}(o,i))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(yi.supportsTouch||yi.supportsIePointer){var t=e.element,n={},r=0,o={},i=null;yi.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",p)):yi.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",p)))}function a(n,r){t.scrollTop-=r,t.scrollLeft-=n,bi(e)}function s(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!(!e.targetTouches||1!==e.targetTouches.length)||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function c(e){if(l(e)){var t=s(e);n.pageX=t.pageX,n.pageY=t.pageY,r=(new Date).getTime(),null!==i&&clearInterval(i)}}function u(i){if(l(i)){var c=s(i),u={pageX:c.pageX,pageY:c.pageY},p=u.pageX-n.pageX,f=u.pageY-n.pageY;if(function(e,n,r){if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(si.consuming))return!0;var i=Jo(o);if(r&&i.overflowY.match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(a>0&&(o.scrollTop>0&&r<0||o.scrollTop0))return!0}if(n&&i.overflowX.match(/(scroll|auto)/)){var s=o.scrollWidth-o.clientWidth;if(s>0&&(o.scrollLeft>0&&n<0||o.scrollLeft0))return!0}o=o.parentNode}return!1}(i.target,p,f))return;a(p,f),n=u;var d=(new Date).getTime(),h=d-r;h>0&&(o.x=p/h,o.y=f/h,r=d),function(n,r){var o=Math.floor(t.scrollTop),i=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&o===e.contentHeight-e.containerHeight||r>0&&0===o)return 0===window.scrollY&&r>0&&yi.isChrome}else if(a>s&&(n<0&&i===e.contentWidth-e.containerWidth||n>0&&0===i))return!0;return!0}(p,f)&&i.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(i),i=setInterval((function(){e.isInitialized?clearInterval(i):o.x||o.y?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?clearInterval(i):(a(30*o.x,30*o.y),o.x*=.8,o.y*=.8):clearInterval(i)}),10))}}},ki=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=e,e.classList.add(ii),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[r]=t[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o,i,a=function(){return e.classList.add(li.focus)},s=function(){return e.classList.remove(li.focus)};this.isRtl="rtl"===Jo(e).direction,!0===this.isRtl&&e.classList.add(ai),this.isNegativeScroll=(i=e.scrollLeft,e.scrollLeft=-1,o=e.scrollLeft<0,e.scrollLeft=i,o),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new hi,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=ei(si.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=ei(si.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Jo(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=vi(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=vi(l.borderLeftWidth)+vi(l.borderRightWidth),Zo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=vi(l.marginLeft)+vi(l.marginRight),Zo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=ei(si.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=ei(si.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Jo(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=vi(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=Jo(e);return vi(t.width)+vi(t.paddingLeft)+vi(t.paddingRight)+vi(t.borderLeftWidth)+vi(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=vi(c.borderTopWidth)+vi(c.borderBottomWidth),Zo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=vi(c.marginTop)+vi(c.marginBottom),Zo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return _i[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),bi(this)};ki.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Zo(this.scrollbarXRail,{display:"block"}),Zo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=vi(Jo(this.scrollbarXRail).marginLeft)+vi(Jo(this.scrollbarXRail).marginRight),this.railYMarginHeight=vi(Jo(this.scrollbarYRail).marginTop)+vi(Jo(this.scrollbarYRail).marginBottom),Zo(this.scrollbarXRail,{display:"none"}),Zo(this.scrollbarYRail,{display:"none"}),bi(this),gi(this,"top",0,!1,!0),gi(this,"left",0,!1,!0),Zo(this.scrollbarXRail,{display:""}),Zo(this.scrollbarYRail,{display:""}))},ki.prototype.onScroll=function(e){this.isAlive&&(bi(this),gi(this,"top",this.element.scrollTop-this.lastScrollTop),gi(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ki.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),ri(this.scrollbarX),ri(this.scrollbarY),ri(this.scrollbarXRail),ri(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ki.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")};var Oi,Ei,Si=ki,Ti=n(98),ji=n.n(Ti),Ai=Si||r,Ci=ke(Oi||(Oi=Object(o.__makeTemplateObject)(["",""],["",""])),ji.a&&ji.a.toString()),Ii=Te.div(Ei||(Ei=Object(o.__makeTemplateObject)(["\n position: relative;\n"],["\n position: relative;\n"]))),Pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRef=function(e){t._container=e},t}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new Ai(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)},t.prototype.componentDidUpdate=function(){this.inst.update()},t.prototype.componentWillUnmount=function(){this.inst.destroy()},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.updateFn;return r&&r(this.componentDidUpdate.bind(this)),i.createElement(i.Fragment,null,i.createElement(Ci,null),i.createElement(Ii,{className:"scrollbar-container "+n,ref:this.handleRef},t))},t}(i.Component);function Ri(e){return i.createElement(ze.Consumer,null,(function(t){return t.nativeScrollbars?i.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):i.createElement(Pi,Object(o.__assign)({},e),e.children)}))}var Ni=function(e,t,n){this.operations=[];var r=e.deref(n||{});e.exitRef(n);for(var i=0,a=Object.keys(r);i --\x3e";e.info.description=function(e,t,n){var r=new RegExp("(^|\\n)#\\s?"+t+"\\s*\\n","i"),o=new RegExp("((\\n|^)#\\s*"+t+"\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)","i");if(r.test(e))return e.replace(o,"$1\n\n"+n+"\n$4");var i=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return""+e+i+"# "+t+"\n\n"+n}(t,"Authentication",n)}}},e.prototype.isRef=function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)},e.prototype.resetVisited=function(){this._refCounter=new Di},e.prototype.exitRef=function(e){this.isRef(e)&&this._refCounter.exit(e.$ref)},e.prototype.deref=function(e,t){if(void 0===t&&(t=!1),this.isRef(e)){var n=pt(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{type:"object",title:n};var r=this.byRef(e.$ref),o=this._refCounter.visited(e.$ref);if(this._refCounter.visit(e.$ref),o&&!t)return Object.assign({},r,{"x-circular-ref":!0});if(this.isRef(r)){var i=this.deref(r);return this.exitRef(r),i}return r}return e},e.prototype.shalowDeref=function(e){return this.isRef(e)?this.byRef(e.$ref):e},e.prototype.mergeAllOf=function(e,t,n,r){var i=this;if(void 0===n&&(n=!1),void 0===r&&(r=new Set),t&&r.add(t),void 0===(e=this.hoistOneOfs(e)).allOf)return e;var a=Object(o.__assign)(Object(o.__assign)({},e),{allOf:void 0,parentRefs:[],title:e.title||pt(t)});void 0!==a.properties&&"object"==typeof a.properties&&(a.properties=Object(o.__assign)({},a.properties)),void 0!==a.items&&"object"==typeof a.items&&(a.items=Object(o.__assign)({},a.items));for(var s=0,l=e.allOf.map((function(e){var t;if(!(e&&e.$ref&&r.has(e.$ref))){var o=i.deref(e,n),s=e.$ref||void 0,l=i.mergeAllOf(o,s,n,r);return(t=a.parentRefs).push.apply(t,l.parentRefs||[]),{$ref:s,schema:l}}})).filter((function(e){return void 0!==e}));s-1}))&&(t["#/components/schemas/"+r]=[o["x-discriminator-value"]||r])}return t},e.prototype.exitParents=function(e){for(var t=0,n=e.parentRefs||[];t0?o.push.apply(o,e.getTagGroupsItems(t,void 0,r["x-tagGroups"],i,n)):o.push.apply(o,e.getTagsItems(t,i,void 0,void 0,n)),o},e.addMarkdownItems=function(e,t,n,r){var o=new Nt(r).extractHeadings(e||"");o.length&&t&&t.description&&(t.description=Nt.getTextBeforeHading(t.description,o[0].name));var i=function(e,t,n){return void 0===n&&(n=1),t.map((function(t){var r,o=new Ui("section",t,e);return o.depth=n,t.items&&(o.items=i(o,t.items,n+1)),Nt.containsComponent(o.description||"","security-definitions")&&(r=o.id+"/",vt=r),o}))};return i(t,o,n)},e.getTagGroupsItems=function(t,n,r,o,i){for(var a=[],s=0,l=r;s=s.flatItems.length-1&&e);){if(e){var r=s.getElementAtOrFirstChild(n+1);if(s.scroll.isElementBellow(r))break}else{r=s.getElementAt(n);if(s.scroll.isElementAbove(r))break}n+=t}s.activate(s.flatItems[n],!0,!0)},this.updateOnHistory=function(e){var t;(void 0===e&&(e=s.history.currentId),e)&&((t=s.flatItems.find((function(t){return t.id===e})))?s.activateAndScroll(t,!1):(e.startsWith(vt)&&(t=s.flatItems.find((function(e){return vt.startsWith(e.id)})),s.activate(t)),s.scroll.scrollIntoViewBySelector("["+$i+'="'+e+'"]')))},this.getItemById=function(e){return s.flatItems.find((function(t){return t.id===e}))},Object(l.n)(this),this.items=e.contentItems,this.flatItems=(r=this.items||[],o="items",i=[],(a=function(e){for(var t=0,n=e;tthis.options.scrollYOffset()},e.prototype.isElementAbove=function(e){if(null!==e){var t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}},e.prototype.subscribe=function(e){var t=this._emiter.addListener("scroll",e);return function(){return t.removeListener("scroll",e)}},e.prototype.scrollIntoView=function(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))},e.prototype.scrollIntoViewBySelector=function(e){var t=re(e);this.scrollIntoView(t)},e.prototype.handleScroll=function(){var e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit("scroll",e)},Object(o.__decorate)([Ve.bind,_t(100)],e.prototype,"handleScroll",null),e}();var Hi=function(){function e(){this.searchWorker=function(){var e;if(ne)try{e=n(320)}catch(t){e=n(149).default}else e=n(149).default;return new e}()}return e.prototype.indexItems=function(e){var t=this,n=function(e){e.forEach((function(e){"group"!==e.type&&t.add(e.name,e.description||"",e.id),n(e.items)}))};n(e),this.searchWorker.done()},e.prototype.add=function(e,t,n){this.searchWorker.add(e,t,n)},e.prototype.dispose=function(){this.searchWorker.terminate(),this.searchWorker.dispose()},e.prototype.search=function(e){return this.searchWorker.search(e)},e.prototype.toJS=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return[2,this.searchWorker.toJS()]}))}))},e.prototype.load=function(e){this.searchWorker.load(e)},e.prototype.fromExternalJS=function(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)},e}();function Vi(e){var t=e.Label,n=void 0===t?fo:t,r=e.Dropdown,a=void 0===r?po:r;return 1===e.options.length?i.createElement(n,null,e.options[0].value):i.createElement(a,Object(o.__assign)({},e,{searchable:!1}))}var Yi,Gi,Qi=n(157),Xi=_e(Yi||(Yi=Object(o.__makeTemplateObject)(["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"],["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.typography.links.color}),(function(e){return e.theme.typography.links.visited}),(function(e){return e.theme.typography.links.hover})),Ki=Te(Go)(Gi||(Gi=Object(o.__makeTemplateObject)(["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: ",";\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"],["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: ",";\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"])),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.typography.fontWeightRegular}),(function(e){return e.theme.typography.lineHeight}),(function(e){return e.compact&&"\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n "}),(function(e){return e.inline&&" p {\n display: inline-block;\n }"}),kn(1),(function(e){return e.theme.colors.primary.main}),kn(2),(function(e){return e.theme.colors.text.primary}),(function(e){return e.theme.typography.code.color}),(function(e){return e.theme.typography.code.backgroundColor}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.spacing.unit}),(function(e){return e.theme.typography.code.fontSize}),(function(e){return e.theme.typography.code.fontWeight}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),(function(e){return e.theme.codeBlock.backgroundColor}),(function(e){return 4*e.theme.spacing.unit}),(function(e){return e.theme.schema.nestedBackground}),Rn(".share-link"),Xi,je("Markdown")),Ji=Ki.withComponent("span");function Zi(e){var t=e.inline?Ji:Ki;return i.createElement(Be,null,(function(n){return i.createElement(t,Object(o.__assign)({className:"redoc-markdown "+(e.className||""),dangerouslySetInnerHTML:{__html:(r=n.untrustedSpec,a=e.html,r?Qi.sanitize(a):a)},"data-role":e["data-role"]},e));var r,a}))}var ea,ta,na,ra,oa,ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.source,n=e.inline,r=e.compact,o=e.className,a=e["data-role"],s=new Nt;return i.createElement(Zi,{html:s.renderMd(t),inline:n,compact:r,className:o,"data-role":a})},t}(i.Component),aa=Te.div(ea||(ea=Object(o.__makeTemplateObject)(["\n position: relative;\n"],["\n position: relative;\n"]))),sa=Te.div(ta||(ta=Object(o.__makeTemplateObject)(["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"],["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"]))),la=Te.div(na||(na=Object(o.__makeTemplateObject)(["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"],["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"]))),ca=Te.div(ra||(ra=Object(o.__makeTemplateObject)(["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"],["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"]))),ua=Te.div(oa||(oa=Object(o.__makeTemplateObject)(["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"],["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"]))),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.open,n=e.title,r=e.children;return i.createElement(aa,null,r,t&&i.createElement(sa,null,i.createElement(la,null,n),i.createElement(ca,null),i.createElement(ua,null)))},t}(i.Component),fa="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy"),da=function(){function e(){}return e.isSupported=function(){return fa},e.selectElement=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},e.deselect=function(){if(document.selection)document.selection.empty();else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges()}},e.copySelected=function(){var e;try{e=document.execCommand("copy")}catch(t){e=!1}return e},e.copyElement=function(t){e.selectElement(t);var n=e.copySelected();return n&&e.deselect(),n},e.copyCustom=function(t){var n=document.createElement("textarea");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="2em",n.style.height="2em",n.style.padding="0",n.style.border="none",n.style.outline="none",n.style.boxShadow="none",n.style.background="transparent",n.value=t,document.body.appendChild(n),n.select();var r=e.copySelected();return document.body.removeChild(n),r},e}(),ha=function(e){function t(t){var n=e.call(this,t)||this;return n.copy=function(){var e="string"==typeof n.props.data?n.props.data:JSON.stringify(n.props.data,null,2);da.copyCustom(e),n.showTooltip()},n.renderCopyButton=function(){return i.createElement("button",{onClick:n.copy},i.createElement(pa,{title:da.isSupported()?"Copied":"Not supported in your browser",open:n.state.tooltipShown},"Copy"))},n.state={tooltipShown:!1},n}return Object(o.__extends)(t,e),t.prototype.render=function(){return this.props.children({renderCopyButton:this.renderCopyButton})},t.prototype.showTooltip=function(){var e=this;this.setState({tooltipShown:!0}),setTimeout((function(){e.setState({tooltipShown:!1})}),1500)},t}(i.PureComponent),ma=1;function ga(e,t){ma=1;var n="";return n+='
',n+="",n+=wa(e,t),n+="",n+="
"}function va(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(//g,">"):""}function ya(e){return JSON.stringify(e).slice(1,-1)}function ba(e,t){return''+va(e)+""}function xa(e){return''+e+""}function wa(e,t){var n=typeof e,r="";return null==e?r+=ba("null","token keyword"):e&&e.constructor===Array?(ma++,r+=function(e,t){for(var n=ma>t?"collapsed":"",r=''+xa("[")+'
    ',o=!1,i=e.length,a=0;a
    ',r+=wa(e[a],t),a";r+="
"+xa("]"),o||(r=xa("[ ]"));return r}(e,t),ma--):e&&e.constructor===Date?r+=ba('"'+e.toISOString()+'"',"token string"):"object"===n?(ma++,r+=function(e,t){for(var n=ma>t?"collapsed":"",r=Object.keys(e),o=r.length,i=''+xa("{")+'
    ',a=!1,s=0;s
    ',i+='"'+va(l)+'": ',i+=wa(e[l],t),s"}i+="
"+xa("}"),a||(i=xa("{ }"));return i}(e,t),ma--):"number"===n?r+=ba(e,"token number"):"string"===n?/^(http|https):\/\/[^\s]+$/.test(e)?r+=ba('"',"token string")+''+va(ya(e))+""+ba('"',"token string"):r+=ba('"'+ya(e)+'"',"token string"):"boolean"===n&&(r+=ba(e,"token boolean")),r}var _a,ka,Oa,Ea=_e(_a||(_a=Object(o.__makeTemplateObject)(["\n .redoc-json code > .collapser {\n display: none;\n pointer-events: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' … ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n background-color: transparent;\n border: 0;\n color: #fff;\n font-family: ",";\n font-size: ",";\n padding-right: 6px;\n padding-left: 6px;\n padding-top: 0;\n padding-bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 15px;\n height: 15px;\n position: absolute;\n top: 4px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n padding: 2px;\n &:focus {\n outline-color: #fff;\n outline-style: dotted;\n outline-width: 1px;\n }\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n"],["\n .redoc-json code > .collapser {\n display: none;\n pointer-events: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' … ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n background-color: transparent;\n border: 0;\n color: #fff;\n font-family: ",";\n font-size: ",";\n padding-right: 6px;\n padding-left: 6px;\n padding-top: 0;\n padding-bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 15px;\n height: 15px;\n position: absolute;\n top: 4px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n padding: 2px;\n &:focus {\n outline-color: #fff;\n outline-style: dotted;\n outline-width: 1px;\n }\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n"])),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.typography.code.fontSize}),(function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.typography.code.fontSize})),Sa=Te.div(ka||(ka=Object(o.__makeTemplateObject)(["\n &:hover > "," {\n opacity: 1;\n }\n"],["\n &:hover > "," {\n opacity: 1;\n }\n"])),Qo),Ta=Te(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderInner=function(e){var n=e.renderCopyButton;return i.createElement(Sa,null,i.createElement(Qo,null,n(),i.createElement("button",{onClick:t.expandAll}," Expand all "),i.createElement("button",{onClick:t.collapseAll}," Collapse all ")),i.createElement(ze.Consumer,null,(function(e){return i.createElement(Go,{className:t.props.className,ref:function(e){return t.node=e},dangerouslySetInnerHTML:{__html:ga(t.props.data,e.jsonSampleExpandLevel)}})})))},t.expandAll=function(){for(var e=t.node.getElementsByClassName("collapsible"),n=0,r=Array.prototype.slice.call(e);n1){var a=o.map((function(e,n){return{value:t[e].summary||e,idx:n}})),s=(l=t[o[e]]).description;return i.createElement(Ha,null,i.createElement(Ba,null,i.createElement(Ua,null,"Example"),this.props.renderDropdown({value:a[e].value,options:a,onChange:this.switchMedia,ariaLabel:"Example"})),i.createElement("div",null,s&&i.createElement(ia,{source:s}),i.createElement(Ia,{example:l,mimeType:n})))}var l=t[o[0]];return i.createElement(Ha,null,l.description&&i.createElement(ia,{source:l.description}),i.createElement(Ia,{example:l,mimeType:n}))},t}(i.Component),Ha=Te.div(Fa||(Fa=Object(o.__makeTemplateObject)(["\n margin-top: 15px;\n"],["\n margin-top: 15px;\n"]))),Va=n(7),Ya=0;var Ga={};function Qa(e){return Ga[e]||(Ga[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+Ya+")";return Ya++,t}(e)),Ga[e]}function Xa(e,t){if(Ka(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i",o=e.bind(this),a=!1,s=new l.b(r+".render()",(function(){if(!a&&(a=!0,!0!==t[is])){var e=!0;try{Ja(t,ss,!0),t[as]||i.Component.prototype.forceUpdate.call(t),e=!1}finally{Ja(t,ss,!1),e&&s.dispose()}}}));function c(){a=!1;var e=void 0,t=void 0;if(s.track((function(){try{t=Object(l.c)(!1,o)}catch(t){e=t}})),e)throw e;return t}return s.reactComponent=this,c[os]=s,this.render=c,c.call(this)}function us(e,t){return Object(Va.b)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!Xa(this.props,e)}function ps(e,t){var n=Qa("reactProp_"+t+"_valueHolder"),r=Qa("reactProp_"+t+"_atomHolder");function o(){return this[r]||Ja(this,r,Object(l.i)("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return l.e&&l.d&&(e=Object(l.e)(!0)),o.call(this).reportObserved(),l.e&&l.d&&Object(l.d)(e),this[n]},set:function(e){this[ss]||Xa(this[n],e)?Ja(this,n,e):(Ja(this,n,e),Ja(this,as,!0),o.call(this).reportChanged(),Ja(this,as,!1))}})}var fs="function"==typeof Symbol&&Symbol.for,ds=fs?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&Object(i.forwardRef)((function(e){return null})).$$typeof,hs=fs?Symbol.for("react.memo"):"function"==typeof i.memo&&Object(i.memo)((function(e){return null})).$$typeof;function ms(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),hs&&e.$$typeof===hs)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(ds&&e.$$typeof===ds){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(i.forwardRef)((function(){var e=arguments;return Object(i.createElement)(Va.a,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?ls(e):Object(Va.c)(e)}if(!i.Component)throw new Error("mobx-react requires React to be available");if(!l.o)throw new Error("mobx-react requires mobx to be available");var gs,vs,ys,bs,xs,ws,_s,ks,Os,Es,Ss,Ts,js,As,Cs,Is,Ps,Rs,Ns,Ls=Te(hr)(gs||(gs=Object(o.__makeTemplateObject)(["\n button {\n background-color: transparent;\n border: 0;\n outline: 0;\n font-size: 13px;\n font-family: ",";\n cursor: pointer;\n padding: 0;\n color: ",";\n &:focus {\n font-weight: ",";\n }\n }\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n button {\n background-color: transparent;\n border: 0;\n outline: 0;\n font-size: 13px;\n font-family: ",";\n cursor: pointer;\n padding: 0;\n color: ",";\n &:focus {\n font-weight: ",";\n }\n }\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.colors.text.primary}),(function(e){return e.theme.typography.fontWeightBold}),lr,(function(e){return e.theme.schema.arrow.size}),(function(e){return e.theme.schema.arrow.size}),(function(e){return e.theme.schema.arrow.color})),Ms=Te.span(vs||(vs=Object(o.__makeTemplateObject)(["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"],["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"])),(function(e){return e.theme.typography.code.fontSize})),Ds=Te(Ms)(ys||(ys=Object(o.__makeTemplateObject)(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return Z(.1,e.theme.schema.typeNameColor)})),Fs=Te(Ms)(bs||(bs=Object(o.__makeTemplateObject)(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.schema.typeNameColor})),zs=Te(Ms)(xs||(xs=Object(o.__makeTemplateObject)(["\n color: ",";\n word-break: break-word;\n"],["\n color: ",";\n word-break: break-word;\n"])),(function(e){return e.theme.schema.typeTitleColor})),Us=Fs,Bs=Te(Ms.withComponent("div"))(ws||(ws=Object(o.__makeTemplateObject)(["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"],["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"])),(function(e){return e.theme.schema.requireLabelColor}),(function(e){return e.theme.schema.labelsTextSize})),$s=Te(Ms)(_s||(_s=Object(o.__makeTemplateObject)(["\n color: ",";\n font-size: 13px;\n"],["\n color: ",";\n font-size: 13px;\n"])),(function(e){return e.theme.colors.warning.main})),Ws=Te(Ms)(ks||(ks=Object(o.__makeTemplateObject)(["\n color: #0e7c86;\n font-size: 13px;\n"],["\n color: #0e7c86;\n font-size: 13px;\n"]))),qs=Te(Ms)(Os||(Os=Object(o.__makeTemplateObject)(["\n color: #0e7c86;\n &::before,\n &::after {\n font-weight: bold;\n }\n"],["\n color: #0e7c86;\n &::before,\n &::after {\n font-weight: bold;\n }\n"]))),Hs=Te(Ms)(Es||(Es=Object(o.__makeTemplateObject)(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),(function(e){var t=e.theme;return"\n background-color: "+Z(.95,t.colors.text.primary)+";\n color: "+Z(.1,t.colors.text.primary)+";\n\n padding: 0 "+t.spacing.unit+"px;\n border: 1px solid "+Z(.9,t.colors.text.primary)+";\n font-family: "+t.typography.code.fontFamily+";\n}"}),je("ExampleValue")),Vs=Te(Hs)(Ss||(Ss=Object(o.__makeTemplateObject)([""],[""]))),Ys=Te(Ms)(Ts||(Ts=Object(o.__makeTemplateObject)(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),(function(e){var t=e.theme;return"\n background-color: "+Z(.95,t.colors.primary.light)+";\n color: "+Z(.1,t.colors.primary.main)+";\n\n margin: 0 "+t.spacing.unit+"px;\n padding: 0 "+t.spacing.unit+"px;\n border: 1px solid "+Z(.9,t.colors.primary.main)+";\n font-family: "+t.typography.code.fontFamily+";\n}"}),je("ConstraintItem")),Gs=Te.button(js||(js=Object(o.__makeTemplateObject)(["\n background-color: transparent;\n border: 0;\n color: ",";\n margin-left: ","px;\n border-radius: 2px;\n cursor: pointer;\n outline-color: ",";\n font-size: 12px;\n"],["\n background-color: transparent;\n border: 0;\n color: ",";\n margin-left: ","px;\n border-radius: 2px;\n cursor: pointer;\n outline-color: ",";\n font-size: 12px;\n"])),(function(e){return e.theme.colors.text.secondary}),(function(e){return e.theme.spacing.unit}),(function(e){return e.theme.colors.text.secondary})),Qs=Te.div(As||(As=Object(o.__makeTemplateObject)(["\n ",";\n ","\n"],["\n ",";\n ","\n"])),Xi,(function(e){return e.compact?"":"margin: 1em 0"})),Xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.externalDocs;return e&&e.url?i.createElement(Qs,{compact:this.props.compact},i.createElement("a",{href:e.url},e.description||e.url)):null},t=Object(o.__decorate)([ms],t)}(i.Component),Ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={collapsed:!0},t}return Object(o.__extends)(t,e),t.prototype.toggle=function(){this.setState({collapsed:!this.state.collapsed})},t.prototype.render=function(){var e=this,t=this.props,n=t.values,r=t.type,o=this.state.collapsed,a=this.context,s=a.enumSkipQuotes,l=a.maxDisplayedEnumValues;if(!n.length)return null;var c=this.state.collapsed&&l?n.slice(0,l):n,u=!!l&&n.length>l,p=l?o?"… "+(n.length-l)+" more":"Hide":"";return i.createElement("div",null,i.createElement(Ms,null,"array"===r?me("enumArray"):""," ",1===n.length?me("enumSingleValue"):me("enum"),":")," ",c.map((function(e,t){var n=s?e:JSON.stringify(e);return i.createElement(i.Fragment,{key:t},i.createElement(Hs,null,n)," ")})),u?i.createElement(Js,{onClick:function(){e.toggle()}},p):null)},t.contextType=ze,t}(i.PureComponent),Js=Te.span(Cs||(Cs=Object(o.__makeTemplateObject)(["\n color: ",";\n vertical-align: middle;\n font-size: 13px;\n line-height: 20px;\n padding: 0 5px;\n cursor: pointer;\n"],["\n color: ",";\n vertical-align: middle;\n font-size: 13px;\n line-height: 20px;\n padding: 0 5px;\n cursor: pointer;\n"])),(function(e){return e.theme.colors.primary.main})),Zs=Te(Ki)(Is||(Is=Object(o.__makeTemplateObject)(["\n margin: 2px 0;\n"],["\n margin: 2px 0;\n"]))),el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.extensions;return i.createElement(ze.Consumer,null,(function(t){return i.createElement(i.Fragment,null,t.showExtensions&&Object.keys(e).map((function(t){return i.createElement(Zs,{key:t},i.createElement(Ms,null," ",t.substring(2),": ")," ",i.createElement(Vs,null,"string"==typeof e[t]?e[t]:JSON.stringify(e[t])))})))}))},t}(i.PureComponent),tl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){return 0===this.props.constraints.length?null:i.createElement("span",null," ",this.props.constraints.map((function(e){return i.createElement(Ys,{key:e}," ",e," ")})))},t}(i.PureComponent),nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){if(void 0===this.props.value)return null;var e=this.props.raw?this.props.value:JSON.stringify(this.props.value);return i.createElement("div",null,i.createElement(Ms,null," ",this.props.label," ")," ",i.createElement(Hs,null,e))},t}(i.PureComponent),rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={patternShown:!1},t.togglePattern=function(){t.setState({patternShown:!t.state.patternShown})},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.showExamples,n=e.field,r=e.renderDiscriminatorSwitch,a=this.state.patternShown,s=this.context,l=s.enumSkipQuotes,c=s.hideSchemaTitles,u=n.schema,p=n.description,f=n.example,d=n.deprecated,h=!!l||"header"===n.in,m=null;if(t&&void 0!==f){var g=me("example")+":";if(n.in&&(n.style||n.serializationMime)){var v=decodeURIComponent(ct(n,f));m=i.createElement(nl,{label:g,value:v,raw:!0})}else m=i.createElement(nl,{label:g,value:f})}return i.createElement("div",null,i.createElement("div",null,i.createElement(Ds,null,u.typePrefix),i.createElement(Fs,null,u.displayType),u.displayFormat&&i.createElement(Us,null," ","<",u.displayFormat,">"," "),u.title&&!c&&i.createElement(zs,null," (",u.title,") "),i.createElement(tl,{constraints:u.constraints}),u.nullable&&i.createElement(Ws,null," ",me("nullable")," "),u.pattern&&i.createElement(i.Fragment,null,i.createElement(qs,null,a||u.pattern.length<45?u.pattern:u.pattern.substr(0,45)+"..."),u.pattern.length>45&&i.createElement(Gs,{onClick:this.togglePattern},a?"Hide pattern":"Show pattern")),u.isCircular&&i.createElement($s,null," ",me("recursive")," ")),d&&i.createElement("div",null,i.createElement(cr,{type:"warning"}," ",me("deprecated")," ")),i.createElement(nl,{raw:h,label:me("default")+":",value:u.default}),!r&&i.createElement(Ks,{type:u.type,values:u.enum})," ",m,i.createElement(el,{extensions:Object(o.__assign)(Object(o.__assign)({},n.extensions),u.extensions)}),i.createElement("div",null,i.createElement(ia,{compact:!0,source:p})),u.externalDocs&&i.createElement(Xs,{externalDocs:u.externalDocs,compact:!0}),r&&r(this.props)||null)},t.contextType=ze,t}(i.PureComponent),ol=Te.div(Ps||(Ps=Object(o.__makeTemplateObject)(["\n padding-left: ","px;\n"],["\n padding-left: ","px;\n"])),(function(e){return 2*e.theme.spacing.unit})),il=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.schema.items,t=dt(function(e,t){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),{type:"array",minItems:e,maxItems:t}}(e.schema.minItems,e.schema.maxItems));return i.createElement("div",null,i.createElement(_r,null," Array (",t,")"),i.createElement(ol,null,i.createElement(pl,Object(o.__assign)({},this.props,{schema:e}))),i.createElement(kr,null))},t}(i.PureComponent),al=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggle=function(){void 0===t.props.field.expanded&&t.props.expandByDefault?t.props.field.expanded=!1:t.props.field.toggle()},t.handleKeyPress=function(e){"Enter"===e.key&&(e.preventDefault(),t.toggle())},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.field,r=e.isLast,a=e.expandByDefault,s=n.name,l=n.deprecated,c=n.required,u=n.kind,p=!n.schema.isPrimitive&&!n.schema.isCircular,f=void 0===n.expanded?a:n.expanded,d=p?i.createElement(Ls,{className:l?"deprecated":"",kind:u,title:s},i.createElement(gr,null),i.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label":"expand properties"},i.createElement("span",null,s),i.createElement(lr,{direction:f?"down":"right"})),c&&i.createElement(Bs,null," required ")):i.createElement(hr,{className:l?"deprecated":void 0,kind:u,title:s},i.createElement(gr,null),i.createElement("span",null,s),c&&i.createElement(Bs,null," required "));return i.createElement(i.Fragment,null,i.createElement("tr",{className:r?"last "+t:t},d,i.createElement(mr,null,i.createElement(rl,Object(o.__assign)({},this.props)))),f&&p&&i.createElement("tr",{key:n.name+"inner"},i.createElement(dr,{colSpan:2},i.createElement(vr,null,i.createElement(pl,{schema:n.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle})))))},t=Object(o.__decorate)([ms],t)}(i.Component),sl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeActiveChild=function(e){t.props.parent.activateOneOf(e.idx)},t}return Object(o.__extends)(t,e),t.prototype.sortOptions=function(e,t){if(0!==t.length){var n={};t.forEach((function(e,t){n[e]=t})),e.sort((function(e,t){return n[e.value]>n[t.value]?1:-1}))}},t.prototype.render=function(){var e=this.props,t=e.parent,n=e.enumValues;if(void 0===t.oneOf)return null;var r=t.oneOf.map((function(e,t){return{value:e.title,idx:t}})),o=r[t.activeOneOf].value;return this.sortOptions(r,n),i.createElement(uo,{value:o,options:r,onChange:this.changeActiveChild})},t=Object(o.__decorate)([ms],t)}(i.Component),ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"parentSchema",{get:function(){return this.props.discriminator.parentSchema},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.schema.fields,r=void 0===n?[]:n,o=t.showTitle,a=t.discriminator,s=this.props.skipReadOnly||this.props.skipWriteOnly?r.filter((function(t){return!(e.props.skipReadOnly&&t.schema.readOnly||e.props.skipWriteOnly&&t.schema.writeOnly)})):r,l=this.context.expandSingleSchemaField&&1===s.length;return i.createElement(yr,null,o&&i.createElement(pr,null,this.props.schema.title),i.createElement("tbody",null,se(s,(function(t,n){return i.createElement(al,{key:t.name,isLast:n,field:t,expandByDefault:l,renderDiscriminatorSwitch:a&&a.fieldName===t.name&&function(){return i.createElement(sl,{parent:e.parentSchema,enumValues:t.schema.enum})}||void 0,className:t.expanded?"expanded":void 0,showExamples:!1,skipReadOnly:e.props.skipReadOnly,skipWriteOnly:e.props.skipWriteOnly,showTitle:e.props.showTitle})}))))},t.contextType=ze,t=Object(o.__decorate)([ms],t)}(i.Component),cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activateOneOf=function(){t.props.schema.activateOneOf(t.props.idx)},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.idx,n=e.schema,r=e.subSchema;return i.createElement(wr,{active:t===n.activeOneOf,onClick:this.activateOneOf},r.title||r.typePrefix+r.displayType)},t=Object(o.__decorate)([ms],t)}(i.Component),ul=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.schema.oneOf,n=e.schema;return void 0===t?null:i.createElement("div",null,i.createElement(xr,null," ",n.oneOfType," "),i.createElement(br,null,t.map((function(e,t){return i.createElement(cl,{key:e.pointer,schema:n,subSchema:e,idx:t})}))),i.createElement(pl,Object(o.__assign)({},this.props,{schema:t[n.activeOneOf]})))},t=Object(o.__decorate)([ms],t)}(i.Component),pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e,t=this.props.schema;if(!t)return i.createElement("em",null," Schema not provided ");var n=t.type,r=t.oneOf,a=t.discriminatorProp;if(t.isCircular)return i.createElement("div",null,i.createElement(Fs,null,t.displayType),t.title&&i.createElement(zs,null," ",t.title," "),i.createElement($s,null," ",me("recursive")," "));if(void 0!==a)return r&&r.length?i.createElement(ll,Object(o.__assign)({},Object(o.__assign)(Object(o.__assign)({},this.props),{schema:r[t.activeOneOf]}),{discriminator:{fieldName:a,parentSchema:t}})):(console.warn("Looks like you are using discriminator wrong: you don't have any definition inherited from the "+t.title),null);if(void 0!==r)return i.createElement(ul,Object(o.__assign)({schema:t},this.props));switch(n){case"object":if(null===(e=t.fields)||void 0===e?void 0:e.length)return i.createElement(ll,Object(o.__assign)({},this.props));break;case"array":return i.createElement(il,Object(o.__assign)({},this.props))}var s={schema:t,name:"",required:!1,description:t.description,externalDocs:t.externalDocs,deprecated:!1,toggle:function(){return null},expanded:!1};return i.createElement("div",null,i.createElement(rl,{field:s}))},t=Object(o.__decorate)([ms],t)}(i.Component),fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Vi,Object(o.__assign)({Label:fo,Dropdown:$a},e))},t}return Object(o.__extends)(t,e),t.getMediaType=function(e,t){if(!e)return{};var n={schema:{$ref:e}};return t&&(n.examples={example:{$ref:t}}),n},Object.defineProperty(t.prototype,"mediaModel",{get:function(){var e=this.props,n=e.parser,r=e.schemaRef,o=e.exampleRef,i=e.options;return this._mediaModel||(this._mediaModel=new Vt(n,"json",!1,t.getMediaType(r,o),i)),this._mediaModel},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.showReadOnly,n=void 0===t||t,r=e.showWriteOnly,o=void 0!==r&&r;return i.createElement(yn,null,i.createElement(wn,null,i.createElement(vn,null,i.createElement(pl,{skipWriteOnly:!o,skipReadOnly:!n,schema:this.mediaModel.schema})),i.createElement(xn,null,i.createElement(dl,null,i.createElement(qa,{renderDropdown:this.renderDropdown,mediaType:this.mediaModel})))))},t}(i.PureComponent),dl=Te.div(Rs||(Rs=Object(o.__makeTemplateObject)(["\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n"],["\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n"])),(function(e){return e.theme.codeBlock.backgroundColor}),(function(e){return 4*e.theme.spacing.unit})),hl={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"},ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.flow;return i.createElement("tr",null,i.createElement("th",null," ",t," OAuth Flow "),i.createElement("td",null,"implicit"===t||"authorizationCode"===t?i.createElement("div",null,i.createElement("strong",null," Authorization URL: "),n.authorizationUrl):null,"password"===t||"clientCredentials"===t||"authorizationCode"===t?i.createElement("div",null,i.createElement("strong",null," Token URL: "),n.tokenUrl):null,n.refreshUrl&&i.createElement("div",null,i.createElement("strong",null," Refresh URL: "),n.refreshUrl),i.createElement("div",null,i.createElement("strong",null," Scopes: ")),i.createElement("ul",null,Object.keys(n.scopes||{}).map((function(e){return i.createElement("li",{key:e},i.createElement("code",null,e)," - ",i.createElement(ia,{inline:!0,source:n.scopes[e]||""}))})))))},t}(i.PureComponent),gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){return this.props.securitySchemes.schemes.map((function(e){return i.createElement(yn,{id:e.sectionId,key:e.id},i.createElement(wn,null,i.createElement(vn,null,i.createElement(En,null,i.createElement(Dn,{to:e.sectionId}),e.id),i.createElement(ia,{source:e.description||""}),i.createElement(Ki,null,i.createElement("table",{className:"security-details"},i.createElement("tbody",null,i.createElement("tr",null,i.createElement("th",null," Security Scheme Type "),i.createElement("td",null," ",hl[e.type]||e.type," ")),e.apiKey?i.createElement("tr",null,i.createElement("th",null," ",(t=e.apiKey.in||"").charAt(0).toUpperCase()+t.slice(1)," parameter name:"),i.createElement("td",null," ",e.apiKey.name," ")):e.http?[i.createElement("tr",{key:"scheme"},i.createElement("th",null," HTTP Authorization Scheme "),i.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&i.createElement("tr",{key:"bearer"},i.createElement("th",null," Bearer format "),i.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?i.createElement("tr",null,i.createElement("th",null," Connect URL "),i.createElement("td",null,i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map((function(t){return i.createElement(ml,{key:t,type:t,flow:e.flows[t]})})):null))))));var t}))},t}(i.PureComponent);var vl,yl,bl,xl,wl,_l,kl,Ol,El=function(){function e(e,t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=!0),this.marker=new Ct,this.disposer=null,this.rawOptions=n,this.options=new ye(n,Sl),this.scroll=new qi(this.options),Wi.updateOnHistory(jt.currentId,this.scroll),this.spec=new zi(e,t,this.options),this.menu=new Wi(this.spec,this.scroll,jt),this.options.disableSearch||(this.search=new Hi,r&&this.search.indexItems(this.menu.items),this.disposer=Object(l.p)(this.menu,"activeItemIdx",(function(e){o.updateMarkOnMenu(e.newValue)})))}return e.fromJS=function(t){var n=new e(t.spec.data,t.spec.url,t.options,!1);return n.menu.activeItemIdx=t.menu.activeItemIdx||0,n.menu.activate(n.menu.flatItems[n.menu.activeItemIdx]),n.options.disableSearch||n.search.load(t.searchIndex),n},e.prototype.onDidMount=function(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)},e.prototype.dispose=function(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),null!=this.disposer&&this.disposer()},e.prototype.toJS=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return e={menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec}},this.search?[4,this.search.toJS()]:[3,2];case 1:return t=n.sent(),[3,3];case 2:t=void 0,n.label=3;case 3:return[2,(e.searchIndex=t,e.options=this.rawOptions,e)]}}))}))},e.prototype.updateMarkOnMenu=function(e){for(var t=Math.max(0,e),n=Math.min(this.menu.flatItems.length,t+5),r=[],o=t;o1?q(.1,n.sidebar.backgroundColor):1===e?q(.05,n.sidebar.backgroundColor):""}var Bl,$l,Wl,ql,Hl,Vl,Yl,Gl,Ql,Xl,Kl,Jl,Zl,ec,tc,nc,rc,oc,ic,ac,sc,lc=Te.ul($l||($l=Object(o.__makeTemplateObject)(["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"],["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"])),(function(e){return e.expanded?"":"display: none;"})),cc=Te.li(Wl||(Wl=Object(o.__makeTemplateObject)(["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"],["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"])),(function(e){return 0===e.depth?"margin-top: 15px":""})),uc={0:_e(ql||(ql=Object(o.__makeTemplateObject)(["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "],["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "])),(function(e){return e.theme.sidebar.groupItems.textTransform}),(function(e){return e.theme.sidebar.textColor})),1:_e(Hl||(Hl=Object(o.__makeTemplateObject)(["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "],["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "])),(function(e){return e.theme.sidebar.level1Items.textTransform}),(function(e){return e.theme.sidebar.activeTextColor})),2:_e(Vl||(Vl=Object(o.__makeTemplateObject)(["\n color: ",";\n "],["\n color: ",";\n "])),(function(e){return e.theme.sidebar.textColor}))},pc=Te.label.attrs((function(e){return{role:"menuitem",className:Fl("-depth"+e.depth,{active:e.active})}}))(Yl||(Yl=Object(o.__makeTemplateObject)(["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),(function(e){return e.active?e.theme.sidebar.activeTextColor:e.theme.sidebar.textColor}),(function(e){return 4*e.theme.spacing.unit}),(function(e){var t=e.depth,n=e.type,r=e.theme;return"section"===n&&t>1&&"padding-left: "+8*r.spacing.unit+"px;"||""}),(function(e){return e.theme.typography.headings.fontFamily}),(function(e){return uc[e.depth]}),(function(e){return e.active?Ul(e.depth,e):""}),(function(e){return e.deprecated&&ur||""}),(function(e){return Ul(e.depth,e)}),lr,(function(e){return e.theme.sidebar.arrow.size}),(function(e){return e.theme.sidebar.arrow.size}),(function(e){return e.theme.sidebar.arrow.color})),fc=Te.span(Gl||(Gl=Object(o.__makeTemplateObject)(["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"])),(function(e){return e.width?e.width:"auto"})),dc=Te.div(Ql||(Ql=Object(o.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme;return"\n font-size: 0.8em;\n margin-top: "+2*t.spacing.unit+"px;\n padding: 0 "+4*t.spacing.unit+"px;\n text-align: left;\n\n opacity: 0.7;\n\n a,\n a:visited,\n a:hover {\n color: "+t.sidebar.textColor+" !important;\n border-top: 1px solid "+q(.1,t.sidebar.backgroundColor)+";\n padding: "+t.spacing.unit+"px 0;\n display: block;\n }\n"})),hc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.name,n=e.opened,r=e.className,o=e.onClick,a=e.httpVerb,s=e.deprecated;return i.createElement(mc,{className:r,onClick:o||void 0},i.createElement(vc,{type:a},yt(a)),i.createElement(lr,{size:"1.5em",direction:n?"down":"right",float:"left"}),i.createElement(gc,{deprecated:s},t),s?i.createElement(cr,{type:"warning"}," ",me("deprecated")," "):null)},t}(i.PureComponent),mc=Te.button(Xl||(Xl=Object(o.__makeTemplateObject)(["\n border: 0;\n width: 100%;\n text-align: left;\n & > * {\n vertical-align: middle;\n }\n\n "," {\n polygon {\n fill: ",";\n }\n }\n"],["\n border: 0;\n width: 100%;\n text-align: left;\n & > * {\n vertical-align: middle;\n }\n\n "," {\n polygon {\n fill: ",";\n }\n }\n"])),lr,(function(e){var t=e.theme;return q(t.colors.tonalOffset,t.colors.gray[100])})),gc=Te.span(Kl||(Kl=Object(o.__makeTemplateObject)(["\n text-decoration: ",";\n margin-right: 8px;\n"],["\n text-decoration: ",";\n margin-right: 8px;\n"])),(function(e){return e.deprecated?"line-through":"none"})),vc=Te(zl)(Jl||(Jl=Object(o.__makeTemplateObject)(["\n margin: 0px 5px 0px 0px;\n"],["\n margin: 0px 5px 0px 0px;\n"]))),yc=Te(hc)(Zl||(Zl=Object(o.__makeTemplateObject)(["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: ",";\n cursor: pointer;\n outline-color: ",";\n"],["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: ",";\n cursor: pointer;\n outline-color: ",";\n"])),(function(e){return e.theme.colors.gray[100]}),(function(e){var t=e.theme;return q(t.colors.tonalOffset,t.colors.gray[100])})),bc=Te.div(ec||(ec=Object(o.__makeTemplateObject)(["\n padding: 10px 25px;\n background-color: ",";\n margin-bottom: 5px;\n margin-top: 5px;\n"],["\n padding: 10px 25px;\n background-color: ",";\n margin-bottom: 5px;\n margin-top: 5px;\n"])),(function(e){return e.theme.colors.gray[50]})),xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectElement=function(){da.selectElement(t.child)},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.children;return i.createElement("div",{ref:function(t){return e.child=t},onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},t)},t}(i.PureComponent),wc=Te.div(tc||(tc=Object(o.__makeTemplateObject)(["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"],["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"]))),_c=Te.span(nc||(nc=Object(o.__makeTemplateObject)(["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"],["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])),(function(e){return e.theme.typography.code.fontFamily})),kc=Te.button(rc||(rc=Object(o.__makeTemplateObject)(["\n outline: 0;\n color: inherit;\n width: 100%;\n text-align: left;\n cursor: pointer;\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n &:focus {\n box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(128, 128, 128, 0.25);\n }\n"],["\n outline: 0;\n color: inherit;\n width: 100%;\n text-align: left;\n cursor: pointer;\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n &:focus {\n box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(128, 128, 128, 0.25);\n }\n"])),(function(e){return e.inverted?"10px":"20px"}),(function(e){return e.inverted?"0":"4px 4px 0 0"}),(function(e){return e.inverted?"transparent":e.theme.codeBlock.backgroundColor}),(function(e){return e.inverted?"0":"1px solid transparent"}),(function(e){return e.inverted?"1px solid #ccc":"0"}),(function(e){return e.expanded&&!e.inverted&&"border-color: "+e.theme.colors.border.dark+";"||""}),_c,(function(e){return e.inverted?e.theme.colors.text.primary:"#ffffff"})),Oc=Te.span.attrs((function(e){return{className:"http-verb "+e.type}}))(oc||(oc=Object(o.__makeTemplateObject)(["\n font-size: ",";\n line-height: ",";\n background-color: ",";\n color: #ffffff;\n padding: ",";\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"],["\n font-size: ",";\n line-height: ",";\n background-color: ",";\n color: #ffffff;\n padding: ",";\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"])),(function(e){return e.compact?"0.8em":"0.929em"}),(function(e){return e.compact?"18px":"20px"}),(function(e){return e.theme.colors.http[e.type]||"#999999"}),(function(e){return e.compact?"2px 8px":"3px 10px"}),(function(e){return e.theme.typography.headings.fontFamily})),Ec=Te.div(ic||(ic=Object(o.__makeTemplateObject)(["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n visibility: hidden;\n ","\n"],["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n visibility: hidden;\n ","\n"])),(function(e){return e.expanded?"visibility: visible;":"transform: translateY(-50%) scaleY(0);"})),Sc=Te.div(ac||(ac=Object(o.__makeTemplateObject)(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),Tc=Te.div(sc||(sc=Object(o.__makeTemplateObject)(["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"],["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary.main}),(function(e){return e.theme.colors.text.primary})),jc=function(e){function t(t){var n=e.call(this,t)||this;return n.toggle=function(){n.setState({expanded:!n.state.expanded})},n.state={expanded:!1},n}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.operation,r=t.inverted,o=t.hideHostname,a=this.state.expanded;return i.createElement(ze.Consumer,null,(function(t){return i.createElement(wc,null,i.createElement(kc,{onClick:e.toggle,expanded:a,inverted:r},i.createElement(Oc,{type:n.httpVerb,compact:e.props.compact},n.httpVerb),i.createElement(_c,null,n.path),i.createElement(lr,{float:"right",color:r?"black":"white",size:"20px",direction:a?"up":"down",style:{marginRight:"-25px"}})),i.createElement(Ec,{expanded:a,"aria-hidden":!a},n.servers.map((function(e){var r,a,s=t.expandDefaultServerVariables?(r=e.url,void 0===(a=e.variables)&&(a={}),r.replace(/(?:{)([\w-.]+)(?:})/g,(function(e,t){return a[t]&&a[t].default||e}))):e.url;return i.createElement(Sc,{key:s},i.createElement(ia,{source:e.description||"",compact:!0}),i.createElement(xc,null,i.createElement(Tc,null,i.createElement("span",null,o||t.hideHostname?function(e){try{return de(e).pathname}catch(t){return e}}(s):s),n.path)))}))))}))},t}(i.Component),Ac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.place,n=e.parameters;return n&&n.length?i.createElement("div",{key:t},i.createElement(Tn,null,t," Parameters"),i.createElement(yr,null,i.createElement("tbody",null,se(n,(function(e,t){return i.createElement(al,{key:e.name,isLast:t,field:e,showExamples:!0})}))))):null},t}(i.PureComponent),Cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.switchMedia=function(e){var n=e.idx;t.props.content&&t.props.content.activate(n)},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.content;if(!t||!t.mediaTypes||!t.mediaTypes.length)return null;var n=t.activeMimeIdx,r=t.mediaTypes.map((function(e,t){return{value:e.name,idx:t}}));return i.createElement(i.Fragment,null,i.createElement((function(t){var n=t.children;return e.props.withLabel?i.createElement(Ba,null,i.createElement(Ua,null,"Content type"),n):n}),null,this.props.renderDropdown({value:r[n].value,options:r,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(t.active))},t=Object(o.__decorate)([ms],t)}(i.Component);var Ic=["path","query","cookie","header"],Pc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.orderParams=function(e){var t={};return e.forEach((function(e){var n,r,o;n=t,r=e.in,o=e,n[r]||(n[r]=[]),n[r].push(o)})),t},t.prototype.render=function(){var e=this.props,t=e.body,n=e.parameters,r=void 0===n?[]:n;if(void 0===t&&void 0===r)return null;var o=this.orderParams(r),a=r.length>0?Ic:[],s=t&&t.content,l=t&&t.description;return i.createElement(i.Fragment,null,a.map((function(e){return i.createElement(Ac,{key:e,place:e,parameters:o[e]})})),s&&i.createElement(Nc,{content:s,description:l}))},t}(i.PureComponent);function Rc(e){return i.createElement(Tn,{key:"header"},"Request Body schema: ",i.createElement(Vi,Object(o.__assign)({},e)))}function Nc(e){var t=e.content,n=e.description;return i.createElement(Cc,{content:t,renderDropdown:Rc},(function(e){var t=e.schema;return i.createElement(i.Fragment,null,void 0!==n&&i.createElement(ia,{source:n}),i.createElement(pl,{skipReadOnly:!0,key:"schema",schema:t}))}))}var Lc,Mc,Dc,Fc,zc,Uc,Bc,$c,Wc,qc,Hc,Vc,Yc,Gc,Qc,Xc,Kc,Jc,Zc,eu,tu,nu,ru=Te(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.type,r=e.empty,o=e.code,a=e.opened,s=e.className,l=e.onClick;return i.createElement("button",{className:s,onClick:!r&&l||void 0,"aria-expanded":a,disabled:r},!r&&i.createElement(lr,{size:"1.5em",color:n,direction:a?"down":"right",float:"left"}),i.createElement(au,null,o," "),i.createElement(ia,{compact:!0,inline:!0,source:t}))},t}(i.PureComponent))(Lc||(Lc=Object(o.__makeTemplateObject)(["\n display: block;\n border: 0;\n width: 100%;\n text-align: left;\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n &:focus {\n outline: auto;\n outline-color: ",";\n }\n ",";\n"],["\n display: block;\n border: 0;\n width: 100%;\n text-align: left;\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n &:focus {\n outline: auto;\n outline-color: ",";\n }\n ",";\n"])),(function(e){return e.theme.colors.responses[e.type].color}),(function(e){return e.theme.colors.responses[e.type].backgroundColor}),(function(e){return e.theme.colors.responses[e.type].color}),(function(e){return 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':""})),ou=Te.div(Mc||(Mc=Object(o.__makeTemplateObject)(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),iu=Te(Tn.withComponent("caption"))(Dc||(Dc=Object(o.__makeTemplateObject)(["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"],["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"]))),au=Te.strong(Fc||(Fc=Object(o.__makeTemplateObject)(["\n vertical-align: top;\n"],["\n vertical-align: top;\n"]))),su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.headers;return void 0===e||0===e.length?null:i.createElement(yr,null,i.createElement(iu,null," Response Headers "),i.createElement("tbody",null,se(e,(function(e,t){return i.createElement(al,{isLast:t,key:e.name,field:e,showExamples:!0})}))))},t}(i.PureComponent),lu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Tn,{key:"header"},"Response Schema: ",i.createElement(Vi,Object(o.__assign)({},e)))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.response,t=e.description,n=e.headers,r=e.content;return i.createElement(i.Fragment,null,t&&i.createElement(ia,{source:t}),i.createElement(su,{headers:n}),i.createElement(Cc,{content:r,renderDropdown:this.renderDropdown},(function(e){var t=e.schema;return i.createElement(pl,{skipWriteOnly:!0,key:"schema",schema:t})})))},t}(i.PureComponent),cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggle=function(){t.props.response.toggle()},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.response,t=e.headers,n=e.type,r=e.summary,o=e.description,a=e.code,s=e.expanded,l=e.content,c=void 0===l?[]:l.mediaTypes.filter((function(e){return void 0!==e.schema})),u=0===t.length&&0===c.length&&!o;return i.createElement("div",null,i.createElement(ru,{onClick:this.toggle,type:n,empty:u,title:r||"",code:a,opened:s}),s&&!u&&i.createElement(ou,null,i.createElement(lu,{response:this.props.response})))},t=Object(o.__decorate)([ms],t)}(i.Component),uu=Te.h3(zc||(zc=Object(o.__makeTemplateObject)(["\n font-size: 1.3em;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: ",";\n font-weight: normal;\n"],["\n font-size: 1.3em;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: ",";\n font-weight: normal;\n"])),(function(e){return e.theme.colors.text.primary})),pu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.responses,n=e.isCallback;return t&&0!==t.length?i.createElement("div",null,i.createElement(uu,null,n?"Callback responses":"Responses"),t.map((function(e){return i.createElement(cu,{key:e.code,response:e})}))):null},t}(i.PureComponent),fu=Te.code(Uc||(Uc=Object(o.__makeTemplateObject)(["\n font-size: ",";\n font-family: ",";\n border: 1px solid ",";\n margin: 0 3px;\n padding: 0.2em;\n display: inline-block;\n line-height: 1;\n\n &:after {\n content: ',';\n }\n &:last-child:after {\n content: none;\n }\n"],["\n font-size: ",";\n font-family: ",";\n border: 1px solid ",";\n margin: 0 3px;\n padding: 0.2em;\n display: inline-block;\n line-height: 1;\n\n &:after {\n content: ',';\n }\n &:last-child:after {\n content: none;\n }\n"])),(function(e){return e.theme.typography.code.fontSize}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.colors.border.dark})),du=Te.span(Bc||(Bc=Object(o.__makeTemplateObject)(["\n &:after {\n content: ' AND ';\n font-weight: bold;\n }\n\n &:last-child:after {\n content: none;\n }\n\n ",";\n"],["\n &:after {\n content: ' AND ';\n font-weight: bold;\n }\n\n &:last-child:after {\n content: none;\n }\n\n ",";\n"])),Xi),hu=Te.span($c||($c=Object(o.__makeTemplateObject)(["\n &:before {\n content: '( ';\n font-weight: bold;\n }\n &:after {\n content: ' ) OR ';\n font-weight: bold;\n }\n &:last-child:after {\n content: ' )';\n }\n\n &:only-child:before,\n &:only-child:after {\n content: none;\n }\n\n ",";\n"],["\n &:before {\n content: '( ';\n font-weight: bold;\n }\n &:after {\n content: ' ) OR ';\n font-weight: bold;\n }\n &:last-child:after {\n content: ' )';\n }\n\n &:only-child:before,\n &:only-child:after {\n content: none;\n }\n\n ",";\n"])),Xi),mu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.security;return i.createElement(hu,null,e.schemes.map((function(e){return i.createElement(du,{key:e.id},i.createElement(Ln,{to:e.sectionId},e.id),e.scopes.length>0&&" (",e.scopes.map((function(e){return i.createElement(fu,{key:e},e)})),e.scopes.length>0&&") ")})))},t}(i.PureComponent),gu=Te.div(Wc||(Wc=Object(o.__makeTemplateObject)(["\n flex: 1 1 auto;\n"],["\n flex: 1 1 auto;\n"]))),vu=Te.div(Hc||(Hc=Object(o.__makeTemplateObject)(["\n width: ",";\n ","\n"],["\n width: ",";\n ","\n"])),(function(e){return e.theme.schema.defaultDetailsWidth}),Se("small")(qc||(qc=Object(o.__makeTemplateObject)(["\n margin-top: 10px;\n "],["\n margin-top: 10px;\n "])))),yu=Te(Tn)(Vc||(Vc=Object(o.__makeTemplateObject)(["\n display: inline-block;\n margin: 0;\n"],["\n display: inline-block;\n margin: 0;\n"]))),bu=Te.div(Gc||(Gc=Object(o.__makeTemplateObject)(["\n width: 100%;\n display: flex;\n margin: 1em 0;\n\n ","\n"],["\n width: 100%;\n display: flex;\n margin: 1em 0;\n\n ","\n"])),Se("small")(Yc||(Yc=Object(o.__makeTemplateObject)(["\n flex-direction: column;\n "],["\n flex-direction: column;\n "])))),xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.securities;return e.length?i.createElement(bu,null,i.createElement(gu,null,i.createElement(yu,null,"Authorizations: ")),i.createElement(vu,null,e.map((function(e,t){return i.createElement(mu,{key:t,security:e})})))):null},t}(i.PureComponent),wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation,t=e.description,n=e.externalDocs,r=!(!t&&!n);return i.createElement(bc,null,r&&i.createElement(_u,null,void 0!==t&&i.createElement(ia,{source:t}),n&&i.createElement(Xs,{externalDocs:n})),i.createElement(jc,{operation:this.props.operation,inverted:!0,compact:!0}),i.createElement(el,{extensions:e.extensions}),i.createElement(xu,{securities:e.security}),i.createElement(Pc,{parameters:e.parameters,body:e.requestBody}),i.createElement(pu,{responses:e.responses,isCallback:e.isCallback}))},t=Object(o.__decorate)([ms],t)}(i.Component),_u=Te.div(Qc||(Qc=Object(o.__makeTemplateObject)(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),(function(e){return 3*e.theme.spacing.unit})),ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggle=function(){t.props.callbackOperation.toggle()},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.callbackOperation,t=e.name,n=e.expanded,r=e.httpVerb,o=e.deprecated;return i.createElement(i.Fragment,null,i.createElement(yc,{onClick:this.toggle,name:t,opened:n,httpVerb:r,deprecated:o}),n&&i.createElement(wu,{operation:this.props.callbackOperation}))},t=Object(o.__decorate)([ms],t)}(i.Component),Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.callbacks;return e&&0!==e.length?i.createElement("div",null,i.createElement(Eu,null," Callbacks "),e.map((function(e){return e.operations.map((function(t,n){return i.createElement(ku,{key:e.name+"_"+n,callbackOperation:t})}))}))):null},t}(i.PureComponent),Eu=Te.h3(Xc||(Xc=Object(o.__makeTemplateObject)(["\n font-size: 1.3em;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: ",";\n font-weight: normal;\n"],["\n font-size: 1.3em;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: ",";\n font-weight: normal;\n"])),(function(e){return e.theme.colors.text.primary})),Su=function(e){function t(t){var n=e.call(this,t)||this;return n.switchItem=function(e){var t=e.idx;n.props.items&&n.setState({activeItemIdx:t})},n.state={activeItemIdx:0},n}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.items;if(!t||!t.length)return null;return i.createElement(i.Fragment,null,i.createElement((function(t){var n=t.children;return e.props.label?i.createElement(Ba,null,i.createElement(Ua,null,e.props.label),n):n}),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(t[this.state.activeItemIdx]))},t=Object(o.__decorate)([ms],t)}(i.Component),Tu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Vi,Object(o.__assign)({Label:za,Dropdown:$a},e))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.content;return void 0===t?null:i.createElement(Cc,{content:t,renderDropdown:this.renderDropdown,withLabel:!0},(function(t){return i.createElement(qa,{key:"samples",mediaType:t,renderDropdown:e.renderDropdown})}))},t=Object(o.__decorate)([ms],t)}(i.Component),ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.callback.codeSamples.find((function(e){return Xt(e)}));return e?i.createElement(Au,null,i.createElement(Tu,{content:e.requestBodyContent})):null},t}(i.Component),Au=Te.div(Kc||(Kc=Object(o.__makeTemplateObject)(["\n margin-top: 15px;\n"],["\n margin-top: 15px;\n"]))),Cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Vi,Object(o.__assign)({Label:za,Dropdown:$a},e))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.callbacks;if(!t||0===t.length)return null;var n=t.map((function(e){return e.operations.map((function(e){return e}))})).reduce((function(e,t){return e.concat(t)}),[]);if(!n.some((function(e){return e.codeSamples.length>0})))return null;var r=n.map((function(e,t){return{value:e.httpVerb.toUpperCase()+": "+e.name,idx:t}}));return i.createElement("div",null,i.createElement(Sn,null," Callback payload samples "),i.createElement(Iu,null,i.createElement(Su,{items:n,renderDropdown:this.renderDropdown,label:"Callback",options:r},(function(t){return i.createElement(ju,{key:"callbackPayloadSample",callback:t,renderDropdown:e.renderDropdown})}))))},t.contextType=ze,t=Object(o.__decorate)([ms],t)}(i.Component),Iu=Te.div(Jc||(Jc=Object(o.__makeTemplateObject)(["\n background: ",";\n padding: ","px;\n"],["\n background: ",";\n padding: ","px;\n"])),(function(e){return e.theme.codeBlock.backgroundColor}),(function(e){return 4*e.theme.spacing.unit})),Pu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation.codeSamples,t=e.length>0,n=1===e.length&&this.context.hideSingleRequestSampleTab;return t&&i.createElement("div",null,i.createElement(Sn,null," Request samples "),i.createElement(Yo,{defaultIndex:0},i.createElement(Mo,{hidden:n},e.map((function(e){return i.createElement(Fo,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)}))),e.map((function(e){return i.createElement(Uo,{key:e.lang+"_"+(e.label||"")},Xt(e)?i.createElement("div",null,i.createElement(Tu,{content:e.requestBodyContent})):i.createElement(Aa,{lang:e.lang,source:e.source}))}))))||null},t.contextType=ze,t=Object(o.__decorate)([ms],t)}(i.Component),Ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation.responses.filter((function(e){return e.content&&e.content.hasSample}));return e.length>0&&i.createElement("div",null,i.createElement(Sn,null," Response samples "),i.createElement(Yo,{defaultIndex:0},i.createElement(Mo,null,e.map((function(e){return i.createElement(Fo,{className:"tab-"+e.type,key:e.code},e.code)}))),e.map((function(e){return i.createElement(Uo,{key:e.code},i.createElement("div",null,i.createElement(Tu,{content:e.content})))}))))||null},t=Object(o.__decorate)([ms],t)}(i.Component),Nu=Te(wn)(Zc||(Zc=Object(o.__makeTemplateObject)(["\n backface-visibility: hidden;\n contain: content;\n overflow: hidden;\n"],["\n backface-visibility: hidden;\n contain: content;\n overflow: hidden;\n"]))),Lu=Te.div(eu||(eu=Object(o.__makeTemplateObject)(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),(function(e){return 6*e.theme.spacing.unit})),Mu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation,t=e.name,n=e.description,r=e.deprecated,o=e.externalDocs,a=e.isWebhook,s=!(!n&&!o);return i.createElement(ze.Consumer,null,(function(l){return i.createElement(Nu,null,i.createElement(vn,null,i.createElement(En,null,i.createElement(Dn,{to:e.id}),t," ",r&&i.createElement(cr,{type:"warning"}," Deprecated "),a&&i.createElement(cr,{type:"primary"}," Webhook ")),l.pathInMiddlePanel&&!a&&i.createElement(jc,{operation:e,inverted:!0}),s&&i.createElement(Lu,null,void 0!==n&&i.createElement(ia,{source:n}),o&&i.createElement(Xs,{externalDocs:o})),i.createElement(el,{extensions:e.extensions}),i.createElement(xu,{securities:e.security}),i.createElement(Pc,{parameters:e.parameters,body:e.requestBody}),i.createElement(pu,{responses:e.responses}),i.createElement(Ou,{callbacks:e.callbacks})),i.createElement(xn,null,!l.pathInMiddlePanel&&!a&&i.createElement(jc,{operation:e}),i.createElement(Pu,{operation:e}),i.createElement(Ru,{operation:e}),i.createElement(Cu,{callbacks:e.callbacks})))}))},t=Object(o.__decorate)([ms],t)}(i.Component),Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.items;return 0===e.length?null:e.map((function(e){return i.createElement(Fu,{key:e.id,item:e})}))},t=Object(o.__decorate)([ms],t)}(i.Component),Fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e,t=this.props.item;switch(t.type){case"group":e=null;break;case"tag":case"section":e=i.createElement(Uu,Object(o.__assign)({},this.props));break;case"operation":e=i.createElement(Bu,{item:t});break;default:e=i.createElement(Uu,Object(o.__assign)({},this.props))}return i.createElement(i.Fragment,null,e&&i.createElement(yn,{id:t.id,underlined:"operation"===t.type},e),t.items&&i.createElement(Du,{items:t.items}))},t=Object(o.__decorate)([ms],t)}(i.Component),zu=function(e){return i.createElement(vn,{compact:!0},e)},Uu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.item,t=e.name,n=e.description,r=e.externalDocs,o=2===e.level?En:On;return i.createElement(i.Fragment,null,i.createElement(wn,null,i.createElement(vn,{compact:!1},i.createElement(o,null,i.createElement(Dn,{to:this.props.item.id}),t))),i.createElement(Dl,{source:n||"",htmlWrap:zu}),r&&i.createElement(wn,null,i.createElement(vn,null,i.createElement(Xs,{externalDocs:r}))))},t=Object(o.__decorate)([ms],t)}(i.Component),Bu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){return i.createElement(Mu,{operation:this.props.item})},t=Object(o.__decorate)([ms],t)}(i.Component),$u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=i.createRef(),t.activate=function(e){t.props.onActivate(t.props.item),e.stopPropagation()},t}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this.scrollIntoViewIfActive()},t.prototype.componentDidUpdate=function(){this.scrollIntoViewIfActive()},t.prototype.scrollIntoViewIfActive=function(){this.props.item.active&&this.ref.current&&this.ref.current.scrollIntoViewIfNeeded()},t.prototype.render=function(){var e=this.props,t=e.item,n=e.withoutChildren;return i.createElement(cc,{onClick:this.activate,depth:t.depth,"data-item-id":t.id},"operation"===t.type?i.createElement(Wu,Object(o.__assign)({},this.props,{item:t})):i.createElement(pc,{depth:t.depth,active:t.active,type:t.type,ref:this.ref},i.createElement(fc,{title:t.name},t.name,this.props.children),t.depth>0&&t.items.length>0&&i.createElement(lr,{float:"right",direction:t.expanded?"down":"right"})||null),!n&&t.items&&t.items.length>0&&i.createElement(qu,{expanded:t.expanded,items:t.items,onActivate:this.props.onActivate}))},t=Object(o.__decorate)([ms],t)}(i.Component),Wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=i.createRef(),t}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(){this.props.item.active&&this.ref.current&&this.ref.current.scrollIntoViewIfNeeded()},t.prototype.render=function(){var e=this.props.item;return i.createElement(pc,{depth:e.depth,active:e.active,deprecated:e.deprecated,ref:this.ref},e.isWebhook?i.createElement(zl,{type:"hook"},me("webhook")):i.createElement(zl,{type:e.httpVerb},yt(e.httpVerb)),i.createElement(fc,{width:"calc(100% - 38px)"},e.name,this.props.children))},t=Object(o.__decorate)([ms],t)}(i.Component),qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.items,r=t.root,a=t.className,s=null==this.props.expanded||this.props.expanded;return i.createElement(lc,Object(o.__assign)({className:a,style:this.props.style,expanded:s},r?{role:"navigation"}:{}),n.map((function(t,n){return i.createElement($u,{key:n,item:t,onActivate:e.props.onActivate})})))},t=Object(o.__decorate)([ms],t)}(i.Component),Hu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activate=function(e){if(e&&e.active&&t.context.menuToggle)return e.expanded?e.collapse():e.expand();t.props.menu.activateAndScroll(e,!0),setTimeout((function(){t._updateScroll&&t._updateScroll()}))},t.saveScrollUpdate=function(e){t._updateScroll=e},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.menu;return i.createElement(Ri,{updateFn:this.saveScrollUpdate,className:this.props.className,options:{wheelPropagation:!1}},i.createElement(qu,{items:e.items,onActivate:this.activate,root:!0}),i.createElement(dc,null,i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/Redocly/redoc"},"Documentation Powered by ReDoc")))},t.contextType=ze,t=Object(o.__decorate)([ms],t)}(i.Component),Vu=function(e){var t=e.open?8:-4;return i.createElement(Gu,null,i.createElement(Yu,{size:15,style:{transform:"translate(2px, "+t+"px) rotate(180deg)",transition:"transform 0.2s ease"}}),i.createElement(Yu,{size:15,style:{transform:"translate(2px, "+(0-t)+"px)",transition:"transform 0.2s ease"}}))},Yu=function(e){var t=e.size,n=void 0===t?10:t,r=e.className,o=void 0===r?"":r,a=e.style;return i.createElement("svg",{className:o,style:a||{},viewBox:"0 0 926.23699 573.74994",version:"1.1",x:"0px",y:"0px",width:n,height:n},i.createElement("g",{transform:"translate(904.92214,-879.1482)"},i.createElement("path",{d:"\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ",fill:"currentColor"})))},Gu=Te.div(tu||(tu=Object(o.__makeTemplateObject)(["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"],["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"])),(function(e){return e.theme.colors.primary.main}));ne&&(nu=n(322));var Qu,Xu,Ku,Ju,Zu,ep,tp,np,rp,op,ip,ap,sp,lp,cp=nu&&nu(),up=Te.div(Xu||(Xu=Object(o.__makeTemplateObject)(["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n /* contain: strict; TODO: breaks layout since Chrome 80*/\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"],["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n /* contain: strict; TODO: breaks layout since Chrome 80*/\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"])),(function(e){return e.theme.sidebar.width}),(function(e){return e.theme.sidebar.backgroundColor}),Se("small")(Qu||(Qu=Object(o.__makeTemplateObject)(["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: ",";\n display: ",";\n "],["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: ",";\n display: ",";\n "])),(function(e){return e.theme.sidebar.backgroundColor}),(function(e){return e.open?"flex":"none"}))),pp=Te.div(Ju||(Ju=Object(o.__makeTemplateObject)(["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"],["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"])),(function(e){return e.theme.colors.primary.main}),Se("small")(Ku||(Ku=Object(o.__makeTemplateObject)(["\n display: flex;\n "],["\n display: flex;\n "])))),fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={offsetTop:"0px"},t.toggleNavMenu=function(){t.props.menu.toggleSidebar()},t}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){cp&&cp.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})},t.prototype.componentWillUnmount=function(){cp&&cp.remove(this.stickyElement)},t.prototype.getScrollYOffset=function(e){return(void 0!==this.props.scrollYOffset?ye.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset())+"px"},t.prototype.render=function(){var e=this,t=this.props.menu.sideBarOpened,n=this.state.offsetTop;return i.createElement(i.Fragment,null,i.createElement(up,{open:t,className:this.props.className,style:{top:n,height:"calc(100vh - "+n+")"},ref:function(t){e.stickyElement=t}},this.props.children),i.createElement(pp,{onClick:this.toggleNavMenu},i.createElement(Vu,{open:t})))},t.contextType=ze,t=Object(o.__decorate)([ms],t)}(i.Component),dp=Te.div(Zu||(Zu=Object(o.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme;return"\n font-family: "+t.typography.fontFamily+";\n font-size: "+t.typography.fontSize+";\n font-weight: "+t.typography.fontWeightRegular+";\n line-height: "+t.typography.lineHeight+";\n color: "+t.colors.text.primary+";\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: "+t.typography.smoothing+";\n font-smoothing: "+t.typography.smoothing+";\n "+(t.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"})),hp=Te.div(tp||(tp=Object(o.__makeTemplateObject)(["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"],["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"])),(function(e){return e.theme.sidebar.width}),Se("small",!0)(ep||(ep=Object(o.__makeTemplateObject)(["\n width: 100%;\n "],["\n width: 100%;\n "])))),mp=Te.div(rp||(rp=Object(o.__makeTemplateObject)(["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"],["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"])),(function(e){return e.theme.rightPanel.backgroundColor}),(function(e){var t=e.theme;if(t.rightPanel.width.endsWith("%")){var n=parseInt(t.rightPanel.width,10);return"calc((100% - "+t.sidebar.width+") * "+n/100+")"}return t.rightPanel.width}),Se("medium",!0)(np||(np=Object(o.__makeTemplateObject)(["\n display: none;\n "],["\n display: none;\n "])))),gp=Te.div(op||(op=Object(o.__makeTemplateObject)(["\n padding: 5px 0;\n"],["\n padding: 5px 0;\n"]))),vp=Te.input.attrs((function(){return{className:"search-input"}}))(ip||(ip=Object(o.__makeTemplateObject)(["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid\n ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"],["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid\n ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"])),(function(e){return 8*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit}),(function(e){return 2*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit}),(function(e){var t=e.theme;return(Y(t.sidebar.backgroundColor)>.5?q:X)(.1,t.sidebar.backgroundColor)}),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.sidebar.textColor})),yp=Te((function(e){return i.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},i.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"})(ap||(ap=Object(o.__makeTemplateObject)(["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"],["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"])),(function(e){return 4*e.theme.spacing.unit}),(function(e){return e.theme.sidebar.textColor})),bp=Te.div(sp||(sp=Object(o.__makeTemplateObject)(["\n padding: ","px 0;\n background-color: ","};\n color: ",";\n min-height: 150px;\n max-height: 250px;\n border-top: ","};\n border-bottom: ","};\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover,\n &.active {\n background-color: ",";\n }\n\n > svg {\n display: none;\n }\n }\n"],["\n padding: ","px 0;\n background-color: ","};\n color: ",";\n min-height: 150px;\n max-height: 250px;\n border-top: ","};\n border-bottom: ","};\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover,\n &.active {\n background-color: ",";\n }\n\n > svg {\n display: none;\n }\n }\n"])),(function(e){return e.theme.spacing.unit}),(function(e){var t=e.theme;return q(.05,t.sidebar.backgroundColor)}),(function(e){return e.theme.sidebar.textColor}),(function(e){var t=e.theme;return q(.1,t.sidebar.backgroundColor)}),(function(e){var t=e.theme;return q(.1,t.sidebar.backgroundColor)}),pc,(function(e){var t=e.theme;return q(.1,t.sidebar.backgroundColor)})),xp=Te.i(lp||(lp=Object(o.__makeTemplateObject)(["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"],["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"])),(function(e){return 2*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit})),wp=function(e){function t(t){var n=e.call(this,t)||this;return n.activeItemRef=null,n.clear=function(){n.setState({results:[],term:"",activeItemIdx:-1}),n.props.marker.unmark()},n.handleKeyDown=function(e){if(27===e.keyCode&&n.clear(),40===e.keyCode&&(n.setState({activeItemIdx:Math.min(n.state.activeItemIdx+1,n.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(n.setState({activeItemIdx:Math.max(0,n.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){var t=n.state.results[n.state.activeItemIdx];if(t){var r=n.props.getItemById(t.meta);r&&n.props.onActivate(r)}}},n.search=function(e){var t=e.target.value;t.length<3?n.clearResults(t):n.setState({term:t},(function(){return n.searchCallback(n.state.term)}))},n.state={results:[],term:"",activeItemIdx:-1},n}return Object(o.__extends)(t,e),t.prototype.clearResults=function(e){this.setState({results:[],term:e}),this.props.marker.unmark()},t.prototype.setResults=function(e,t){this.setState({results:e}),this.props.marker.mark(t)},t.prototype.searchCallback=function(e){var t=this;this.props.search.search(e).then((function(n){t.setResults(n,e)}))},t.prototype.render=function(){var e=this,t=this.state.activeItemIdx,n=this.state.results.map((function(t){return{item:e.props.getItemById(t.meta),score:t.score}}));return n.sort((function(e,t){return t.score-e.score})),i.createElement(gp,{role:"search"},this.state.term&&i.createElement(xp,{onClick:this.clear},"×"),i.createElement(yp,null),i.createElement(vp,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...",type:"text",onChange:this.search}),n.length>0&&i.createElement(Ri,{options:{wheelPropagation:!1}},i.createElement(bp,{"data-role":"search:results"},n.map((function(n,r){return i.createElement($u,{item:Object.create(n.item,{active:{value:r===t}}),onActivate:e.props.onActivate,withoutChildren:!0,key:n.item.id,"data-role":"search:result"})})))))},Object(o.__decorate)([Ve.bind,Object(Ve.debounce)(400)],t.prototype,"searchCallback",null),t}(i.PureComponent),_p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.store.onDidMount()},t.prototype.componentWillUnmount=function(){this.props.store.dispose()},t.prototype.render=function(){var e=this.props.store,t=e.spec,n=e.menu,r=e.options,o=e.search,a=e.marker,s=this.props.store;return i.createElement(Ee,{theme:r.theme},i.createElement(Cn,{value:this.props.store},i.createElement(Ue,{value:r},i.createElement(dp,{className:"redoc-wrap"},i.createElement(fp,{menu:n,className:"menu-content"},i.createElement(Ml,{info:t.info}),!r.disableSearch&&i.createElement(wp,{search:o,marker:a,getItemById:n.getItemById,onActivate:n.activateAndScroll})||null,i.createElement(Hu,{menu:n})),i.createElement(hp,{className:"api-content"},i.createElement(Pl,{store:s}),i.createElement(Du,{items:n.items})),i.createElement(mp,null)))))},t.propTypes={store:c.instanceOf(El).isRequired},t}(i.Component),kp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.spec,n=e.specUrl,r=e.options,o=void 0===r?{}:r,a=e.onLoaded,s=void 0!==o.hideLoading,l=new ye(o);return i.createElement(Ne,null,i.createElement(Pn,{spec:t,specUrl:n,options:o,onLoaded:a},(function(e){var t=e.loading,n=e.store;return t?s?null:i.createElement(Fe,{color:l.theme.colors.primary.main}):i.createElement(_p,{store:n})})))},t.propTypes={spec:function(e,t,n){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+n+"'.")},specUrl:function(e,t,n){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+n+"'.")},options:c.any,onLoaded:c.any},t}(i.PureComponent);Object(l.h)({useProxies:"ifavailable"});var Op="2.0.0-rc.45",Ep="aa53416d";function Sp(e){var t=function(e){for(var t={},n=e.attributes,r=0;r tag is not found on the page');var a,l;"string"==typeof e?a=e:"object"==typeof e&&(l=e),Object(s.render)(i.createElement(kp,{spec:l,onLoaded:r,specUrl:a,options:Object(o.__assign)(Object(o.__assign)({},t),Sp(n))},["Loading..."]),n)}function jp(e,t,n){void 0===t&&(t=re("redoc")),kt();var r=El.fromJS(e);Ot(),setTimeout((function(){kt(),Object(s.hydrate)(i.createElement(_p,{store:r}),t,n),Ot()}),0)}!function(){var e=re("redoc");if(e){var t=e.getAttribute("spec-url");t&&Tp(t,{},e)}}()}])})); -//# sourceMappingURL=redoc.standalone.js.map -

Owncast (0.0.3-development)

Download OpenAPI specification:Download

Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software. The following APIs represent the state in the development master branch.

-

Authentication

AdminBasicAuth

The username for admin basic auth is admin and the password is the stream key.

-
Security Scheme Type HTTP
HTTP Authorization Scheme basic

Admin

Admin operations requiring authentication.

-

Broadcaster Details

Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "",
  • "broadcaster": {
    }
}

Disconnect Broadcaster

Disconnect the active inbound stream, if one exists, and terminate the broadcast.

-
Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "inbound stream disconnected"
}

Return a list of currently connected clients

Return a list of currently connected clients with optional geo details.

-
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Return recent log entries

Returns server logs.

-
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Return recent warning and error logs.

Return recent warning and error logs.

-
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Update Stream Key. Pre-release, do not use.

Change the stream key in memory, but not in the config file. This will require all broadcasters to be reconfigured to connect again.

-
Authorizations:
Request Body schema: application/json
key
string

Responses

Request samples

Content type
application/json
{
  • "key": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Change the extra page content. Pre-release, do not use.

Change the extra page content in memory, but not on disk.

-
Authorizations:
Request Body schema: application/json
content
string

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Server Configuration

Get the current configuration of the Owncast server.

-
Authorizations:

Responses

Response samples

Content type
application/json
{
  • "instanceDetails": {
    },
  • "ffmpegPath": "string",
  • "webServerPort": 0,
  • "s3": {
    },
  • "videoSettings": {
    },
  • "yp": {
    }
}

Viewers Over Time

Get the tracked viewer count over the collected period.

-
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Hardware Stats

Get the CPU, Memory and Disk utilization levels over the collected period.

-
Authorizations:

Responses

Response samples

Content type
application/json
{
  • "cpu": [
    ],
  • "memory": [
    ],
  • "disk": [
    ]
}

Chat

Endpoints related to the chat interface.

-

Historical Chat Messages

Used to get all chat messages prior to connecting to the websocket.

-

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get Custom Emoji

Get a list of custom emoji that are supported in chat.

-

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Server

Information

The client configuration. Information useful for the user interface.

-

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "title": "string",
  • "summary": "string",
  • "logo": {
    },
  • "tags": [
    ],
  • "socialHandles": [],
  • "extraPageContent": "<p>This page is <strong>super</strong> cool!",
  • "version": "Owncast v0.0.3-macOS (ef3796a033b32a312ebf5b334851cbf9959e7ecb)"
}

Current Status

This endpoint is used to discover when a server is broadcasting, the number of active viewers as well as other useful information for updating the user interface.

-

Responses

Response samples

Content type
application/json
{
  • "lastConnectTime": "2020-10-03T21:36:22-05:00",
  • "lastDisconnectTime": null,
  • "online": true,
  • "overallMaxViewerCount": 420,
  • "sessionMaxViewerCount": 12,
  • "viewerCount": 7
}

Yellow Pages Information

Information to be used in the Yellow Pages service, a global directory of Owncast servers.

-

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "logo": "string",
  • "nsfw": true,
  • "tags": [
    ],
  • "online": true,
  • "viewerCount": 0,
  • "overallMaxViewerCount": 0,
  • "sessionMaxViewerCount": 0,
  • "lastConnectTime": "2019-08-24T14:15:22Z"
}

Pre-release

Update Stream Key. Pre-release, do not use.

Change the stream key in memory, but not in the config file. This will require all broadcasters to be reconfigured to connect again.

-
Authorizations:
Request Body schema: application/json
key
string

Responses

Request samples

Content type
application/json
{
  • "key": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Change the extra page content. Pre-release, do not use.

Change the extra page content in memory, but not on disk.

-
Authorizations:
Request Body schema: application/json
content
string

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}
+ " fill="currentColor">

Owncast (0.0.3-development)

Download OpenAPI specification:Download

Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software. The following APIs represent the state in the development master branch.

+

Authentication

AdminBasicAuth

The username for admin basic auth is admin and the password is the stream key.

+
Security Scheme Type HTTP
HTTP Authorization Scheme basic

Admin

Admin operations requiring authentication.

+

Server status and broadcaster

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "broadcaster": {
    },
  • "online": true,
  • "viewerCount": 3,
  • "overallPeakViewerCount": 4,
  • "sessionPeakViewerCount": 4,
  • "versionNumber": "0.0.3",
  • "disableUpgradeChecks": false
}

Disconnect Broadcaster

Disconnect the active inbound stream, if one exists, and terminate the broadcast.

+
Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "inbound stream disconnected"
}

Return a list of currently connected clients

Return a list of currently connected clients with optional geo details.

+
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Return recent log entries

Returns server logs.

+
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Return recent warning and error logs.

Return recent warning and error logs.

+
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Update Stream Key. Pre-release, do not use.

Change the stream key in memory, but not in the config file. This will require all broadcasters to be reconfigured to connect again.

+
Authorizations:
Request Body schema: application/json
key
string

Responses

Request samples

Content type
application/json
{
  • "key": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Change the extra page content. Pre-release, do not use.

Change the extra page content in memory, but not on disk.

+
Authorizations:
Request Body schema: application/json
content
string

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Server Configuration

Get the current configuration of the Owncast server.

+
Authorizations:

Responses

Response samples

Content type
application/json
{
  • "instanceDetails": {
    },
  • "ffmpegPath": "string",
  • "webServerPort": 0,
  • "s3": {
    },
  • "videoSettings": {
    },
  • "yp": {
    }
}

Viewers Over Time

Get the tracked viewer count over the collected period.

+
Authorizations:

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Hardware Stats

Get the CPU, Memory and Disk utilization levels over the collected period.

+
Authorizations:

Responses

Response samples

Content type
application/json
{
  • "cpu": [
    ],
  • "memory": [
    ],
  • "disk": [
    ]
}

Chat

Endpoints related to the chat interface.

+

Historical Chat Messages

Used to get all chat messages prior to connecting to the websocket.

+

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get Custom Emoji

Get a list of custom emoji that are supported in chat.

+

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Server

Information

The client configuration. Information useful for the user interface.

+

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "title": "string",
  • "summary": "string",
  • "logo": {
    },
  • "tags": [
    ],
  • "socialHandles": [],
  • "extraPageContent": "<p>This page is <strong>super</strong> cool!",
  • "version": "Owncast v0.0.3-macOS (ef3796a033b32a312ebf5b334851cbf9959e7ecb)"
}

Current Status

This endpoint is used to discover when a server is broadcasting, the number of active viewers as well as other useful information for updating the user interface.

+

Responses

Response samples

Content type
application/json
{
  • "lastConnectTime": "2020-10-03T21:36:22-05:00",
  • "lastDisconnectTime": null,
  • "online": true,
  • "overallMaxViewerCount": 420,
  • "sessionMaxViewerCount": 12,
  • "viewerCount": 7
}

Yellow Pages Information

Information to be used in the Yellow Pages service, a global directory of Owncast servers.

+

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "logo": "string",
  • "nsfw": true,
  • "tags": [
    ],
  • "online": true,
  • "viewerCount": 0,
  • "overallMaxViewerCount": 0,
  • "sessionMaxViewerCount": 0,
  • "lastConnectTime": "2019-08-24T14:15:22Z"
}

Pre-release

Update Stream Key. Pre-release, do not use.

Change the stream key in memory, but not in the config file. This will require all broadcasters to be reconfigured to connect again.

+
Authorizations:
Request Body schema: application/json
key
string

Responses

Request samples

Content type
application/json
{
  • "key": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}

Change the extra page content. Pre-release, do not use.

Change the extra page content in memory, but not on disk.

+
Authorizations:
Request Body schema: application/json
content
string

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "changed"
}