@redocly/openapi-docs 3.0.0-alpha.68 → 3.0.0-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.69"
|
|
6
6
|
*/(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{29641:(x,N,f)=>{(function(v){v(f(46944))})(function(v){var C={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},E=v.Pos;v.defineOption("autoCloseBrackets",!1,function(M,S,I){I&&I!=v.Init&&(M.removeKeyMap(D),M.state.closeBrackets=null),S&&(R(P(S,"pairs")),M.state.closeBrackets=S,M.addKeyMap(D))});function P(M,S){return S=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[S]!=null?M[S]:C[S]}var D={Backspace:Z,Enter:de};function R(M){for(var S=0;S<M.length;S++){var I=M.charAt(S),F="'"+I+"'";D[F]||(D[F]=V(I))}}R(C.pairs+"`");function V(M){return function(S){return $(S,M)}}function Q(M){var S=M.state.closeBrackets;if(!S||S.override)return S;var I=M.getModeAt(M.getCursor());return I.closeBrackets||S}function Z(M){var S=Q(M);if(!S||M.getOption("disableInput"))return v.Pass;for(var I=P(S,"pairs"),F=M.listSelections(),K=0;K<F.length;K++){if(!F[K].empty())return v.Pass;var te=T(M,F[K].head);if(!te||I.indexOf(te)%2!=0)return v.Pass}for(var K=F.length-1;K>=0;K--){var j=F[K].head;M.replaceRange("",E(j.line,j.ch-1),E(j.line,j.ch+1),"+delete")}}function de(M){var S=Q(M),I=S&&P(S,"explode");if(!I||M.getOption("disableInput"))return v.Pass;for(var F=M.listSelections(),K=0;K<F.length;K++){if(!F[K].empty())return v.Pass;var te=T(M,F[K].head);if(!te||I.indexOf(te)%2!=0)return v.Pass}M.operation(function(){var j=M.lineSeparator()||`
|
|
7
7
|
`;M.replaceSelection(j+j,null),re(M,-1),F=M.listSelections();for(var ie=0;ie<F.length;ie++){var H=F[ie].head.line;M.indentLine(H,null,!0),M.indentLine(H+1,null,!0)}})}function re(M,S){for(var I=[],F=M.listSelections(),K=0,te=0;te<F.length;te++){var j=F[te];j.head==M.getCursor()&&(K=te);var ie=j.head.ch||S>0?{line:j.head.line,ch:j.head.ch+S}:{line:j.head.line-1};I.push({anchor:ie,head:ie})}M.setSelections(I,K)}function se(M){var S=v.cmpPos(M.anchor,M.head)>0;return{anchor:new E(M.anchor.line,M.anchor.ch+(S?-1:1)),head:new E(M.head.line,M.head.ch+(S?1:-1))}}function $(M,S){var I=Q(M);if(!I||M.getOption("disableInput"))return v.Pass;var F=P(I,"pairs"),K=F.indexOf(S);if(K==-1)return v.Pass;for(var te=P(I,"closeBefore"),j=P(I,"triples"),ie=F.charAt(K+1)==S,H=M.listSelections(),Y=K%2==0,ce,ge=0;ge<H.length;ge++){var G=H[ge],ve=G.head,ee,He=M.getRange(ve,E(ve.line,ve.ch+1));if(Y&&!G.empty())ee="surround";else if((ie||!Y)&&He==S)ie&&J(M,ve)?ee="both":j.indexOf(S)>=0&&M.getRange(ve,E(ve.line,ve.ch+3))==S+S+S?ee="skipThree":ee="skip";else if(ie&&ve.ch>1&&j.indexOf(S)>=0&&M.getRange(E(ve.line,ve.ch-2),ve)==S+S){if(ve.ch>2&&/\bstring/.test(M.getTokenTypeAt(E(ve.line,ve.ch-2))))return v.Pass;ee="addFour"}else if(ie){var _e=ve.ch==0?" ":M.getRange(E(ve.line,ve.ch-1),ve);if(!v.isWordChar(He)&&_e!=S&&!v.isWordChar(_e))ee="both";else return v.Pass}else if(Y&&(He.length===0||/\s/.test(He)||te.indexOf(He)>-1))ee="both";else return v.Pass;if(!ce)ce=ee;else if(ce!=ee)return v.Pass}var ze=K%2?F.charAt(K-1):S,dt=K%2?S:F.charAt(K+1);M.operation(function(){if(ce=="skip")re(M,1);else if(ce=="skipThree")re(M,3);else if(ce=="surround"){for(var ft=M.getSelections(),at=0;at<ft.length;at++)ft[at]=ze+ft[at]+dt;M.replaceSelections(ft,"around"),ft=M.listSelections().slice();for(var at=0;at<ft.length;at++)ft[at]=se(ft[at]);M.setSelections(ft)}else ce=="both"?(M.replaceSelection(ze+dt,null),M.triggerElectric(ze+dt),re(M,-1)):ce=="addFour"&&(M.replaceSelection(ze+ze+ze+ze,"before"),re(M,1))})}function T(M,S){var I=M.getRange(E(S.line,S.ch-1),E(S.line,S.ch+1));return I.length==2?I:null}function J(M,S){var I=M.getTokenAt(E(S.line,S.ch+1));return/\bstring/.test(I.type)&&I.start==S.ch&&(S.ch==0||!/\bstring/.test(M.getTokenTypeAt(S)))}})},82518:(x,N,f)=>{(function(v){v(f(46944))})(function(v){var C=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),E=v.Pos,P={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function D(re){return re&&re.bracketRegex||/[(){}[\]]/}function R(re,se,$){var T=re.getLineHandle(se.line),J=se.ch-1,M=$&&$.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(re.getWrapperElement().className));var S=D($),I=!M&&J>=0&&S.test(T.text.charAt(J))&&P[T.text.charAt(J)]||S.test(T.text.charAt(J+1))&&P[T.text.charAt(++J)];if(!I)return null;var F=I.charAt(1)==">"?1:-1;if($&&$.strict&&F>0!=(J==se.ch))return null;var K=re.getTokenTypeAt(E(se.line,J+1)),te=V(re,E(se.line,J+(F>0?1:0)),F,K,$);return te==null?null:{from:E(se.line,J),to:te&&te.pos,match:te&&te.ch==I.charAt(0),forward:F>0}}function V(re,se,$,T,J){for(var M=J&&J.maxScanLineLength||1e4,S=J&&J.maxScanLines||1e3,I=[],F=D(J),K=$>0?Math.min(se.line+S,re.lastLine()+1):Math.max(re.firstLine()-1,se.line-S),te=se.line;te!=K;te+=$){var j=re.getLine(te);if(j){var ie=$>0?0:j.length-1,H=$>0?j.length:-1;if(!(j.length>M))for(te==se.line&&(ie=se.ch-($<0?1:0));ie!=H;ie+=$){var Y=j.charAt(ie);if(F.test(Y)&&(T===void 0||(re.getTokenTypeAt(E(te,ie+1))||"")==(T||""))){var ce=P[Y];if(ce&&ce.charAt(1)==">"==$>0)I.push(Y);else if(I.length)I.pop();else return{pos:E(te,ie),ch:Y}}}}}return te-$==($>0?re.lastLine():re.firstLine())?!1:null}function Q(re,se,$){for(var T=re.state.matchBrackets.maxHighlightLineLength||1e3,J=$&&$.highlightNonMatching,M=[],S=re.listSelections(),I=0;I<S.length;I++){var F=S[I].empty()&&R(re,S[I].head,$);if(F&&(F.match||J!==!1)&&re.getLine(F.from.line).length<=T){var K=F.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(re.markText(F.from,E(F.from.line,F.from.ch+1),{className:K})),F.to&&re.getLine(F.to.line).length<=T&&M.push(re.markText(F.to,E(F.to.line,F.to.ch+1),{className:K}))}}if(M.length){C&&re.state.focused&&re.focus();var te=function(){re.operation(function(){for(var j=0;j<M.length;j++)M[j].clear()})};if(se)setTimeout(te,800);else return te}}function Z(re){re.operation(function(){re.state.matchBrackets.currentlyHighlighted&&(re.state.matchBrackets.currentlyHighlighted(),re.state.matchBrackets.currentlyHighlighted=null),re.state.matchBrackets.currentlyHighlighted=Q(re,!1,re.state.matchBrackets)})}function de(re){re.state.matchBrackets&&re.state.matchBrackets.currentlyHighlighted&&(re.state.matchBrackets.currentlyHighlighted(),re.state.matchBrackets.currentlyHighlighted=null)}v.defineOption("matchBrackets",!1,function(re,se,$){$&&$!=v.Init&&(re.off("cursorActivity",Z),re.off("focus",Z),re.off("blur",de),de(re)),se&&(re.state.matchBrackets=typeof se=="object"?se:{},re.on("cursorActivity",Z),re.on("focus",Z),re.on("blur",de))}),v.defineExtension("matchBrackets",function(){Q(this,!0)}),v.defineExtension("findMatchingBracket",function(re,se,$){return($||typeof se=="boolean")&&($?($.strict=se,se=$):se=se?{strict:!0}:null),R(this,re,se)}),v.defineExtension("scanForBracket",function(re,se,$,T){return V(this,re,se,$,T)})})},77436:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C="CodeMirror-hint",E="CodeMirror-hint-active";v.showHint=function(M,S,I){if(!S)return M.showHint(I);I&&I.async&&(S.async=!0);var F={hint:S};if(I)for(var K in I)F[K]=I[K];return M.showHint(F)},v.defineExtension("showHint",function(M){M=V(this,this.getCursor("start"),M);var S=this.listSelections();if(!(S.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var I=0;I<S.length;I++)if(S[I].head.line!=S[I].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var F=this.state.completionActive=new P(this,M);F.options.hint&&(v.signal(this,"startCompletion",this),F.update(!0))}}),v.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function P(M,S){if(this.cm=M,this.options=S,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var I=this;M.on("cursorActivity",this.activityFunc=function(){I.cursorActivity()})}}var D=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},R=window.cancelAnimationFrame||clearTimeout;P.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&v.signal(this.data,"close"),this.widget&&this.widget.close(),v.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,S){var I=M.list[S],F=this;this.cm.operation(function(){I.hint?I.hint(F.cm,M,I):F.cm.replaceRange(Q(I),I.from||M.from,I.to||M.to,"complete"),v.signal(M,"pick",I),F.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(R(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var S=this.cm.getCursor(),I=this.cm.getLine(S.line);if(S.line!=this.startPos.line||I.length-S.ch!=this.startLen-this.startPos.ch||S.ch<M.ch||this.cm.somethingSelected()||!S.ch||this.options.closeCharacters.test(I.charAt(S.ch-1)))this.close();else{var F=this;this.debounce=D(function(){F.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var S=this,I=++this.tick;$(this.options.hint,this.cm,this.options,function(F){S.tick==I&&S.finishUpdate(F,M)})}},finishUpdate:function(M,S){this.data&&v.signal(this.data,"update");var I=this.widget&&this.widget.picked||S&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(I&&M.list.length==1?this.pick(M,0):(this.widget=new re(this,M),v.signal(M,"shown")))}};function V(M,S,I){var F=M.options.hintOptions,K={};for(var te in J)K[te]=J[te];if(F)for(var te in F)F[te]!==void 0&&(K[te]=F[te]);if(I)for(var te in I)I[te]!==void 0&&(K[te]=I[te]);return K.hint.resolve&&(K.hint=K.hint.resolve(M,S)),K}function Q(M){return typeof M=="string"?M:M.text}function Z(M,S){var I={Up:function(){S.moveFocus(-1)},Down:function(){S.moveFocus(1)},PageUp:function(){S.moveFocus(-S.menuSize()+1,!0)},PageDown:function(){S.moveFocus(S.menuSize()-1,!0)},Home:function(){S.setFocus(0)},End:function(){S.setFocus(S.length-1)},Enter:S.pick,Tab:S.pick,Esc:S.close},F=/Mac/.test(navigator.platform);F&&(I["Ctrl-P"]=function(){S.moveFocus(-1)},I["Ctrl-N"]=function(){S.moveFocus(1)});var K=M.options.customKeys,te=K?{}:I;function j(Y,ce){var ge;typeof ce!="string"?ge=function(G){return ce(G,S)}:I.hasOwnProperty(ce)?ge=I[ce]:ge=ce,te[Y]=ge}if(K)for(var ie in K)K.hasOwnProperty(ie)&&j(ie,K[ie]);var H=M.options.extraKeys;if(H)for(var ie in H)H.hasOwnProperty(ie)&&j(ie,H[ie]);return te}function de(M,S){for(;S&&S!=M;){if(S.nodeName.toUpperCase()==="LI"&&S.parentNode==M)return S;S=S.parentNode}}function re(M,S){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=S,this.picked=!1;var I=this,F=M.cm,K=F.getInputField().ownerDocument,te=K.defaultView||K.parentWindow,j=this.hints=K.createElement("ul");j.setAttribute("role","listbox"),j.setAttribute("aria-expanded","true"),j.id=this.id;var ie=M.cm.options.theme;j.className="CodeMirror-hints "+ie,this.selectedHint=S.selectedHint||0;for(var H=S.list,Y=0;Y<H.length;++Y){var ce=j.appendChild(K.createElement("li")),ge=H[Y],G=C+(Y!=this.selectedHint?"":" "+E);ge.className!=null&&(G=ge.className+" "+G),ce.className=G,Y==this.selectedHint&&ce.setAttribute("aria-selected","true"),ce.id=this.id+"-"+Y,ce.setAttribute("role","option"),ge.render?ge.render(ce,S,ge):ce.appendChild(K.createTextNode(ge.displayText||Q(ge))),ce.hintId=Y}var ve=M.options.container||K.body,ee=F.cursorCoords(M.options.alignWithWord?S.from:null),He=ee.left,_e=ee.bottom,ze=!0,dt=0,ft=0;if(ve!==K.body){var at=["absolute","relative","fixed"].indexOf(te.getComputedStyle(ve).position)!==-1,Gt=at?ve:ve.offsetParent,ht=Gt.getBoundingClientRect(),Ot=K.body.getBoundingClientRect();dt=ht.left-Ot.left-Gt.scrollLeft,ft=ht.top-Ot.top-Gt.scrollTop}j.style.left=He-dt+"px",j.style.top=_e-ft+"px";var nt=te.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),Ue=te.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);ve.appendChild(j),F.getInputField().setAttribute("aria-autocomplete","list"),F.getInputField().setAttribute("aria-owns",this.id),F.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Fe=M.options.moveOnOverlap?j.getBoundingClientRect():new DOMRect,Re=M.options.paddingForScrollbar?j.scrollHeight>j.clientHeight+1:!1,it;setTimeout(function(){it=F.getScrollInfo()});var Dt=Fe.bottom-Ue;if(Dt>0){var qe=Fe.bottom-Fe.top,St=Fe.top-(ee.bottom-ee.top)-2;Ue-Fe.top<St?(qe>St&&(j.style.height=(qe=St)+"px"),j.style.top=(_e=ee.top-qe)+ft+"px",ze=!1):j.style.height=Ue-Fe.top-2+"px"}var Kt=Fe.right-nt;if(Re&&(Kt+=F.display.nativeBarWidth),Kt>0&&(Fe.right-Fe.left>nt&&(j.style.width=nt-5+"px",Kt-=Fe.right-Fe.left-nt),j.style.left=(He=Math.max(ee.left-Kt-dt,0))+"px"),Re)for(var Jt=j.firstChild;Jt;Jt=Jt.nextSibling)Jt.style.paddingRight=F.display.nativeBarWidth+"px";if(F.addKeyMap(this.keyMap=Z(M,{moveFocus:function(xt,Lt){I.changeActive(I.selectedHint+xt,Lt)},setFocus:function(xt){I.changeActive(xt)},menuSize:function(){return I.screenAmount()},length:H.length,close:function(){M.close()},pick:function(){I.pick()},data:S})),M.options.closeOnUnfocus){var pr;F.on("blur",this.onBlur=function(){pr=setTimeout(function(){M.close()},100)}),F.on("focus",this.onFocus=function(){clearTimeout(pr)})}F.on("scroll",this.onScroll=function(){var xt=F.getScrollInfo(),Lt=F.getWrapperElement().getBoundingClientRect();it||(it=F.getScrollInfo());var Or=_e+it.top-xt.top,Ft=Or-(te.pageYOffset||(K.documentElement||K.body).scrollTop);if(ze||(Ft+=j.offsetHeight),Ft<=Lt.top||Ft>=Lt.bottom)return M.close();j.style.top=Or+"px",j.style.left=He+it.left-xt.left+"px"}),v.on(j,"dblclick",function(xt){var Lt=de(j,xt.target||xt.srcElement);Lt&&Lt.hintId!=null&&(I.changeActive(Lt.hintId),I.pick())}),v.on(j,"click",function(xt){var Lt=de(j,xt.target||xt.srcElement);Lt&&Lt.hintId!=null&&(I.changeActive(Lt.hintId),M.options.completeOnSingleClick&&I.pick())}),v.on(j,"mousedown",function(){setTimeout(function(){F.focus()},20)});var Je=this.getSelectedHintRange();return(Je.from!==0||Je.to!==0)&&this.scrollToActive(),v.signal(S,"select",H[this.selectedHint],j.childNodes[this.selectedHint]),!0}re.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.removeAttribute("aria-owns");var S=this.completion.cm;this.completion.options.closeOnUnfocus&&(S.off("blur",this.onBlur),S.off("focus",this.onFocus)),S.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,S){if(M>=this.data.list.length?M=S?this.data.list.length-1:0:M<0&&(M=S?0:this.data.list.length-1),this.selectedHint!=M){var I=this.hints.childNodes[this.selectedHint];I&&(I.className=I.className.replace(" "+E,""),I.removeAttribute("aria-selected")),I=this.hints.childNodes[this.selectedHint=M],I.className+=" "+E,I.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",I.id),this.scrollToActive(),v.signal(this.data,"select",this.data.list[this.selectedHint],I)}},scrollToActive:function(){var M=this.getSelectedHintRange(),S=this.hints.childNodes[M.from],I=this.hints.childNodes[M.to],F=this.hints.firstChild;S.offsetTop<this.hints.scrollTop?this.hints.scrollTop=S.offsetTop-F.offsetTop:I.offsetTop+I.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=I.offsetTop+I.offsetHeight-this.hints.clientHeight+F.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function se(M,S){if(!M.somethingSelected())return S;for(var I=[],F=0;F<S.length;F++)S[F].supportsSelection&&I.push(S[F]);return I}function $(M,S,I,F){if(M.async)M(S,F,I);else{var K=M(S,I);K&&K.then?K.then(F):F(K)}}function T(M,S){var I=M.getHelpers(S,"hint"),F;if(I.length){var K=function(te,j,ie){var H=se(te,I);function Y(ce){if(ce==H.length)return j(null);$(H[ce],te,ie,function(ge){ge&&ge.list.length>0?j(ge):Y(ce+1)})}Y(0)};return K.async=!0,K.supportsSelection=!0,K}else return(F=M.getHelper(M.getCursor(),"hintWords"))?function(te){return v.hint.fromList(te,{words:F})}:v.hint.anyword?function(te,j){return v.hint.anyword(te,j)}:function(){}}v.registerHelper("hint","auto",{resolve:T}),v.registerHelper("hint","fromList",function(M,S){var I=M.getCursor(),F=M.getTokenAt(I),K,te=v.Pos(I.line,F.start),j=I;F.start<I.ch&&/\w/.test(F.string.charAt(I.ch-F.start-1))?K=F.string.substr(0,I.ch-F.start):(K="",te=I);for(var ie=[],H=0;H<S.words.length;H++){var Y=S.words[H];Y.slice(0,K.length)==K&&ie.push(Y)}if(ie.length)return{list:ie,from:te,to:j}}),v.commands.autocomplete=v.showHint;var J={hint:v.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};v.defineOption("hintOptions",null)})},33201:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C="CodeMirror-lint-markers",E="CodeMirror-lint-line-";function P(j,ie,H){var Y=document.createElement("div");Y.className="CodeMirror-lint-tooltip cm-s-"+j.options.theme,Y.appendChild(H.cloneNode(!0)),j.state.lint.options.selfContain?j.getWrapperElement().appendChild(Y):document.body.appendChild(Y);function ce(ge){if(!Y.parentNode)return v.off(document,"mousemove",ce);Y.style.top=Math.max(0,ge.clientY-Y.offsetHeight-5)+"px",Y.style.left=ge.clientX+5+"px"}return v.on(document,"mousemove",ce),ce(ie),Y.style.opacity!=null&&(Y.style.opacity=1),Y}function D(j){j.parentNode&&j.parentNode.removeChild(j)}function R(j){j.parentNode&&(j.style.opacity==null&&D(j),j.style.opacity=0,setTimeout(function(){D(j)},600))}function V(j,ie,H,Y){var ce=P(j,ie,H);function ge(){v.off(Y,"mouseout",ge),ce&&(R(ce),ce=null)}var G=setInterval(function(){if(ce)for(var ve=Y;;ve=ve.parentNode){if(ve&&ve.nodeType==11&&(ve=ve.host),ve==document.body)return;if(!ve){ge();break}}if(!ce)return clearInterval(G)},400);v.on(Y,"mouseout",ge)}function Q(j,ie,H){this.marked=[],ie instanceof Function&&(ie={getAnnotations:ie}),(!ie||ie===!0)&&(ie={}),this.options={},this.linterOptions=ie.options||{};for(var Y in Z)this.options[Y]=Z[Y];for(var Y in ie)Z.hasOwnProperty(Y)?ie[Y]!=null&&(this.options[Y]=ie[Y]):ie.options||(this.linterOptions[Y]=ie[Y]);this.timeout=null,this.hasGutter=H,this.onMouseOver=function(ce){te(j,ce)},this.waitingFor=0}var Z={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function de(j){var ie=j.state.lint;ie.hasGutter&&j.clearGutter(C),ie.options.highlightLines&&re(j);for(var H=0;H<ie.marked.length;++H)ie.marked[H].clear();ie.marked.length=0}function re(j){j.eachLine(function(ie){var H=ie.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ie.wrapClass);H&&j.removeLineClass(ie,"wrap",H[0])})}function se(j,ie,H,Y,ce){var ge=document.createElement("div"),G=ge;return ge.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+H,Y&&(G=ge.appendChild(document.createElement("div")),G.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ce!=!1&&v.on(G,"mouseover",function(ve){V(j,ve,ie,G)}),ge}function $(j,ie){return j=="error"?j:ie}function T(j){for(var ie=[],H=0;H<j.length;++H){var Y=j[H],ce=Y.from.line;(ie[ce]||(ie[ce]=[])).push(Y)}return ie}function J(j){var ie=j.severity;ie||(ie="error");var H=document.createElement("div");return H.className="CodeMirror-lint-message CodeMirror-lint-message-"+ie,typeof j.messageHTML<"u"?H.innerHTML=j.messageHTML:H.appendChild(document.createTextNode(j.message)),H}function M(j,ie){var H=j.state.lint,Y=++H.waitingFor;function ce(){Y=-1,j.off("change",ce)}j.on("change",ce),ie(j.getValue(),function(ge,G){j.off("change",ce),H.waitingFor==Y&&(G&&ge instanceof v&&(ge=G),j.operation(function(){I(j,ge)}))},H.linterOptions,j)}function S(j){var ie=j.state.lint;if(ie){var H=ie.options,Y=H.getAnnotations||j.getHelper(v.Pos(0,0),"lint");if(Y)if(H.async||Y.async)M(j,Y);else{var ce=Y(j.getValue(),ie.linterOptions,j);if(!ce)return;ce.then?ce.then(function(ge){j.operation(function(){I(j,ge)})}):j.operation(function(){I(j,ce)})}}}function I(j,ie){var H=j.state.lint;if(H){var Y=H.options;de(j);for(var ce=T(ie),ge=0;ge<ce.length;++ge){var G=ce[ge];if(G){var ve=[];G=G.filter(function(ft){return ve.indexOf(ft.message)>-1?!1:ve.push(ft.message)});for(var ee=null,He=H.hasGutter&&document.createDocumentFragment(),_e=0;_e<G.length;++_e){var ze=G[_e],dt=ze.severity;dt||(dt="error"),ee=$(ee,dt),Y.formatAnnotation&&(ze=Y.formatAnnotation(ze)),H.hasGutter&&He.appendChild(J(ze)),ze.to&&H.marked.push(j.markText(ze.from,ze.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+dt,__annotation:ze}))}H.hasGutter&&j.setGutterMarker(ge,C,se(j,He,ee,ce[ge].length>1,Y.tooltips)),Y.highlightLines&&j.addLineClass(ge,"wrap",E+ee)}}Y.onUpdateLinting&&Y.onUpdateLinting(ie,ce,j)}}function F(j){var ie=j.state.lint;ie&&(clearTimeout(ie.timeout),ie.timeout=setTimeout(function(){S(j)},ie.options.delay))}function K(j,ie,H){for(var Y=H.target||H.srcElement,ce=document.createDocumentFragment(),ge=0;ge<ie.length;ge++){var G=ie[ge];ce.appendChild(J(G))}V(j,H,ce,Y)}function te(j,ie){var H=ie.target||ie.srcElement;if(/\bCodeMirror-lint-mark-/.test(H.className)){for(var Y=H.getBoundingClientRect(),ce=(Y.left+Y.right)/2,ge=(Y.top+Y.bottom)/2,G=j.findMarksAt(j.coordsChar({left:ce,top:ge},"client")),ve=[],ee=0;ee<G.length;++ee){var He=G[ee].__annotation;He&&ve.push(He)}ve.length&&K(j,ve,ie)}}v.defineOption("lint",!1,function(j,ie,H){if(H&&H!=v.Init&&(de(j),j.state.lint.options.lintOnChange!==!1&&j.off("change",F),v.off(j.getWrapperElement(),"mouseover",j.state.lint.onMouseOver),clearTimeout(j.state.lint.timeout),delete j.state.lint),ie){for(var Y=j.getOption("gutters"),ce=!1,ge=0;ge<Y.length;++ge)Y[ge]==C&&(ce=!0);var G=j.state.lint=new Q(j,ie,ce);G.options.lintOnChange&&j.on("change",F),G.options.tooltips!=!1&&G.options.tooltips!="gutter"&&v.on(j.getWrapperElement(),"mouseover",G.onMouseOver),S(j)}}),v.defineExtension("performLint",function(){S(this)})})},71628:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C=v.Pos;function E(S){var I=S.flags;return I??(S.ignoreCase?"i":"")+(S.global?"g":"")+(S.multiline?"m":"")}function P(S,I){for(var F=E(S),K=F,te=0;te<I.length;te++)K.indexOf(I.charAt(te))==-1&&(K+=I.charAt(te));return F==K?S:new RegExp(S.source,K)}function D(S){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(S.source)}function R(S,I,F){I=P(I,"g");for(var K=F.line,te=F.ch,j=S.lastLine();K<=j;K++,te=0){I.lastIndex=te;var ie=S.getLine(K),H=I.exec(ie);if(H)return{from:C(K,H.index),to:C(K,H.index+H[0].length),match:H}}}function V(S,I,F){if(!D(I))return R(S,I,F);I=P(I,"gm");for(var K,te=1,j=F.line,ie=S.lastLine();j<=ie;){for(var H=0;H<te&&!(j>ie);H++){var Y=S.getLine(j++);K=K==null?Y:K+`
|
|
8
8
|
`+Y}te=te*2,I.lastIndex=F.ch;var ce=I.exec(K);if(ce){var ge=K.slice(0,ce.index).split(`
|
package/dist/oauth2-redirect.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.69"
|
|
6
6
|
*/(function(Dr,dr){typeof exports=="object"&&typeof module=="object"?module.exports=dr():typeof define=="function"&&define.amd?define([],dr):typeof exports=="object"?exports.RedoclyOpenAPIDocs=dr():Dr.RedoclyOpenAPIDocs=dr()})(this,()=>(()=>{var it={40312:(n,c,r)=>{var t=r(37235),o=r(22734),a=TypeError;n.exports=function(e){if(t(e))return e;throw a(o(e)+" is not a function")}},87725:(n,c,r)=>{var t=r(37235),o=String,a=TypeError;n.exports=function(e){if(typeof e=="object"||t(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},84102:(n,c,r)=>{var t=r(23967),o=r(36101),a=r(99051).f,e=t("unscopables"),s=Array.prototype;s[e]==null&&a(s,e,{configurable:!0,value:o(null)}),n.exports=function(i){s[e][i]=!0}},61507:(n,c,r)=>{var t=r(56471),o=TypeError;n.exports=function(a,e){if(t(e,a))return a;throw o("Incorrect invocation")}},86347:(n,c,r)=>{var t=r(82951),o=String,a=TypeError;n.exports=function(e){if(t(e))return e;throw a(o(e)+" is not an object")}},65335:(n,c,r)=>{"use strict";var t=r(58495),o=r(71970),a=r(72296),e=r(16429),s=r(38861),i=r(19106),l=r(2312),f=r(13980),d=r(53401),p=r(30205),g=Array;n.exports=function(x){var P=a(x),R=i(this),L=arguments.length,C=L>1?arguments[1]:void 0,D=C!==void 0;D&&(C=t(C,L>2?arguments[2]:void 0));var O=p(P),T=0,U,$,rr,nr,K,k;if(O&&!(this===g&&s(O)))for(nr=d(P,O),K=nr.next,$=R?new this:[];!(rr=o(K,nr)).done;T++)k=D?e(nr,C,[rr.value,T],!0):rr.value,f($,T,k);else for(U=l(P),$=R?new this(U):g(U);U>T;T++)k=D?C(P[T],T):P[T],f($,T,k);return $.length=T,$}},10752:(n,c,r)=>{var t=r(11884),o=r(83260),a=r(2312),e=function(s){return function(i,l,f){var d=t(i),p=a(d),g=o(f,p),m;if(s&&l!=l){for(;p>g;)if(m=d[g++],m!=m)return!0}else for(;p>g;g++)if((s||g in d)&&d[g]===l)return s||g||0;return!s&&-1}};n.exports={includes:e(!0),indexOf:e(!1)}},17401:(n,c,r)=>{var t=r(83260),o=r(2312),a=r(13980),e=Array,s=Math.max;n.exports=function(i,l,f){for(var d=o(i),p=t(l,d),g=t(f===void 0?d:f,d),m=e(s(g-p,0)),x=0;p<g;p++,x++)a(m,x,i[p]);return m.length=x,m}},5515:(n,c,r)=>{var t=r(17401),o=Math.floor,a=function(i,l){var f=i.length,d=o(f/2);return f<8?e(i,l):s(i,a(t(i,0,d),l),a(t(i,d),l),l)},e=function(i,l){for(var f=i.length,d=1,p,g;d<f;){for(g=d,p=i[d];g&&l(i[g-1],p)>0;)i[g]=i[--g];g!==d++&&(i[g]=p)}return i},s=function(i,l,f,d){for(var p=l.length,g=f.length,m=0,x=0;m<p||x<g;)i[m+x]=m<p&&x<g?d(l[m],f[x])<=0?l[m++]:f[x++]:m<p?l[m++]:f[x++];return i};n.exports=a},16429:(n,c,r)=>{var t=r(86347),o=r(16177);n.exports=function(a,e,s,i){try{return i?e(t(s)[0],s[1]):e(s)}catch(l){o(a,"throw",l)}}},20237:(n,c,r)=>{var t=r(29027),o=t({}.toString),a=t("".slice);n.exports=function(e){return a(o(e),8,-1)}},95032:(n,c,r)=>{var t=r(65727),o=r(37235),a=r(20237),e=r(23967),s=e("toStringTag"),i=Object,l=a(function(){return arguments}())=="Arguments",f=function(d,p){try{return d[p]}catch{}};n.exports=t?a:function(d){var p,g,m;return d===void 0?"Undefined":d===null?"Null":typeof(g=f(p=i(d),s))=="string"?g:l?a(p):(m=a(p))=="Object"&&o(p.callee)?"Arguments":m}},20292:(n,c,r)=>{var t=r(85831),o=r(42231),a=r(80381),e=r(99051);n.exports=function(s,i,l){for(var f=o(i),d=e.f,p=a.f,g=0;g<f.length;g++){var m=f[g];!t(s,m)&&!(l&&t(l,m))&&d(s,m,p(i,m))}}},40328:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},9401:n=>{n.exports=function(c,r){return{value:c,done:r}}},70235:(n,c,r)=>{var t=r(76986),o=r(99051),a=r(99829);n.exports=t?function(e,s,i){return o.f(e,s,a(1,i))}:function(e,s,i){return e[s]=i,e}},99829:n=>{n.exports=function(c,r){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:r}}},13980:(n,c,r)=>{"use strict";var t=r(47568),o=r(99051),a=r(99829);n.exports=function(e,s,i){var l=t(s);l in e?o.f(e,l,a(0,i)):e[l]=i}},16317:(n,c,r)=>{var t=r(49578),o=r(99051);n.exports=function(a,e,s){return s.get&&t(s.get,e,{getter:!0}),s.set&&t(s.set,e,{setter:!0}),o.f(a,e,s)}},62072:(n,c,r)=>{var t=r(37235),o=r(99051),a=r(49578),e=r(8108);n.exports=function(s,i,l,f){f||(f={});var d=f.enumerable,p=f.name!==void 0?f.name:i;if(t(l)&&a(l,p,f),f.global)d?s[i]=l:e(i,l);else{try{f.unsafe?s[i]&&(d=!0):delete s[i]}catch{}d?s[i]=l:o.f(s,i,{value:l,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return s}},64266:(n,c,r)=>{var t=r(62072);n.exports=function(o,a,e){for(var s in a)t(o,s,a[s],e);return o}},8108:(n,c,r)=>{var t=r(80376),o=Object.defineProperty;n.exports=function(a,e){try{o(t,a,{value:e,configurable:!0,writable:!0})}catch{t[a]=e}return e}},76986:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},74401:n=>{var c=typeof document=="object"&&document.all,r=typeof c>"u"&&c!==void 0;n.exports={all:c,IS_HTMLDDA:r}},30030:(n,c,r)=>{var t=r(80376),o=r(82951),a=t.document,e=o(a)&&o(a.createElement);n.exports=function(s){return e?a.createElement(s):{}}},96229:n=>{n.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},81150:(n,c,r)=>{var t=r(80376),o=r(96229),a=t.process,e=t.Deno,s=a&&a.versions||e&&e.version,i=s&&s.v8,l,f;i&&(l=i.split("."),f=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!f&&o&&(l=o.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=o.match(/Chrome\/(\d+)/),l&&(f=+l[1]))),n.exports=f},68671:n=>{n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},59401:(n,c,r)=>{var t=r(80376),o=r(80381).f,a=r(70235),e=r(62072),s=r(8108),i=r(20292),l=r(74039);n.exports=function(f,d){var p=f.target,g=f.global,m=f.stat,x,P,R,L,C,D;if(g?P=t:m?P=t[p]||s(p,{}):P=(t[p]||{}).prototype,P)for(R in d){if(C=d[R],f.dontCallGetSet?(D=o(P,R),L=D&&D.value):L=P[R],x=l(g?R:p+(m?".":"#")+R,f.forced),!x&&L!==void 0){if(typeof C==typeof L)continue;i(C,L)}(f.sham||L&&L.sham)&&a(C,"sham",!0),e(P,R,C,f)}}},59769:n=>{n.exports=function(c){try{return!!c()}catch{return!0}}},58495:(n,c,r)=>{var t=r(44914),o=r(40312),a=r(71945),e=t(t.bind);n.exports=function(s,i){return o(s),i===void 0?s:a?e(s,i):function(){return s.apply(i,arguments)}}},71945:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){var o=function(){}.bind();return typeof o!="function"||o.hasOwnProperty("prototype")})},71970:(n,c,r)=>{var t=r(71945),o=Function.prototype.call;n.exports=t?o.bind(o):function(){return o.apply(o,arguments)}},34157:(n,c,r)=>{var t=r(76986),o=r(85831),a=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,s=o(a,"name"),i=s&&function(){}.name==="something",l=s&&(!t||t&&e(a,"name").configurable);n.exports={EXISTS:s,PROPER:i,CONFIGURABLE:l}},12352:(n,c,r)=>{var t=r(29027),o=r(40312);n.exports=function(a,e,s){try{return t(o(Object.getOwnPropertyDescriptor(a,e)[s]))}catch{}}},44914:(n,c,r)=>{var t=r(20237),o=r(29027);n.exports=function(a){if(t(a)==="Function")return o(a)}},29027:(n,c,r)=>{var t=r(71945),o=Function.prototype,a=o.call,e=t&&o.bind.bind(a,a);n.exports=t?e:function(s){return function(){return a.apply(s,arguments)}}},49023:(n,c,r)=>{var t=r(80376),o=r(37235),a=function(e){return o(e)?e:void 0};n.exports=function(e,s){return arguments.length<2?a(t[e]):t[e]&&t[e][s]}},30205:(n,c,r)=>{var t=r(95032),o=r(63953),a=r(51246),e=r(90857),s=r(23967),i=s("iterator");n.exports=function(l){if(!a(l))return o(l,i)||o(l,"@@iterator")||e[t(l)]}},53401:(n,c,r)=>{var t=r(71970),o=r(40312),a=r(86347),e=r(22734),s=r(30205),i=TypeError;n.exports=function(l,f){var d=arguments.length<2?s(l):f;if(o(d))return a(t(d,l));throw i(e(l)+" is not iterable")}},63953:(n,c,r)=>{var t=r(40312),o=r(51246);n.exports=function(a,e){var s=a[e];return o(s)?void 0:t(s)}},80376:(n,c,r)=>{var t=function(o){return o&&o.Math==Math&&o};n.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof r.g=="object"&&r.g)||function(){return this}()||Function("return this")()},85831:(n,c,r)=>{var t=r(29027),o=r(72296),a=t({}.hasOwnProperty);n.exports=Object.hasOwn||function(s,i){return a(o(s),i)}},33804:n=>{n.exports={}},18673:(n,c,r)=>{var t=r(49023);n.exports=t("document","documentElement")},74690:(n,c,r)=>{var t=r(76986),o=r(59769),a=r(30030);n.exports=!t&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},60144:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(20237),e=Object,s=t("".split);n.exports=o(function(){return!e("z").propertyIsEnumerable(0)})?function(i){return a(i)=="String"?s(i,""):e(i)}:e},96441:(n,c,r)=>{var t=r(29027),o=r(37235),a=r(58797),e=t(Function.toString);o(a.inspectSource)||(a.inspectSource=function(s){return e(s)}),n.exports=a.inspectSource},92569:(n,c,r)=>{var t=r(63545),o=r(80376),a=r(82951),e=r(70235),s=r(85831),i=r(58797),l=r(41506),f=r(33804),d="Object already initialized",p=o.TypeError,g=o.WeakMap,m,x,P,R=function(O){return P(O)?x(O):m(O,{})},L=function(O){return function(T){var U;if(!a(T)||(U=x(T)).type!==O)throw p("Incompatible receiver, "+O+" required");return U}};if(t||i.state){var C=i.state||(i.state=new g);C.get=C.get,C.has=C.has,C.set=C.set,m=function(O,T){if(C.has(O))throw p(d);return T.facade=O,C.set(O,T),T},x=function(O){return C.get(O)||{}},P=function(O){return C.has(O)}}else{var D=l("state");f[D]=!0,m=function(O,T){if(s(O,D))throw p(d);return T.facade=O,e(O,D,T),T},x=function(O){return s(O,D)?O[D]:{}},P=function(O){return s(O,D)}}n.exports={set:m,get:x,has:P,enforce:R,getterFor:L}},38861:(n,c,r)=>{var t=r(23967),o=r(90857),a=t("iterator"),e=Array.prototype;n.exports=function(s){return s!==void 0&&(o.Array===s||e[a]===s)}},37235:(n,c,r)=>{var t=r(74401),o=t.all;n.exports=t.IS_HTMLDDA?function(a){return typeof a=="function"||a===o}:function(a){return typeof a=="function"}},19106:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(37235),e=r(95032),s=r(49023),i=r(96441),l=function(){},f=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,g=t(p.exec),m=!p.exec(l),x=function(L){if(!a(L))return!1;try{return d(l,f,L),!0}catch{return!1}},P=function(L){if(!a(L))return!1;switch(e(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!g(p,i(L))}catch{return!0}};P.sham=!0,n.exports=!d||o(function(){var R;return x(x.call)||!x(Object)||!x(function(){R=!0})||R})?P:x},74039:(n,c,r)=>{var t=r(59769),o=r(37235),a=/#|\.prototype\./,e=function(d,p){var g=i[s(d)];return g==f?!0:g==l?!1:o(p)?t(p):!!p},s=e.normalize=function(d){return String(d).replace(a,".").toLowerCase()},i=e.data={},l=e.NATIVE="N",f=e.POLYFILL="P";n.exports=e},51246:n=>{n.exports=function(c){return c==null}},82951:(n,c,r)=>{var t=r(37235),o=r(74401),a=o.all;n.exports=o.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:t(e)||e===a}:function(e){return typeof e=="object"?e!==null:t(e)}},68264:n=>{n.exports=!1},47082:(n,c,r)=>{var t=r(49023),o=r(37235),a=r(56471),e=r(19366),s=Object;n.exports=e?function(i){return typeof i=="symbol"}:function(i){var l=t("Symbol");return o(l)&&a(l.prototype,s(i))}},16177:(n,c,r)=>{var t=r(71970),o=r(86347),a=r(63953);n.exports=function(e,s,i){var l,f;o(e);try{if(l=a(e,"return"),!l){if(s==="throw")throw i;return i}l=t(l,e)}catch(d){f=!0,l=d}if(s==="throw")throw i;if(f)throw l;return o(l),i}},21811:(n,c,r)=>{"use strict";var t=r(74929).IteratorPrototype,o=r(36101),a=r(99829),e=r(65746),s=r(90857),i=function(){return this};n.exports=function(l,f,d,p){var g=f+" Iterator";return l.prototype=o(t,{next:a(+!p,d)}),e(l,g,!1,!0),s[g]=i,l}},48710:(n,c,r)=>{"use strict";var t=r(59401),o=r(71970),a=r(68264),e=r(34157),s=r(37235),i=r(21811),l=r(74972),f=r(90331),d=r(65746),p=r(70235),g=r(62072),m=r(23967),x=r(90857),P=r(74929),R=e.PROPER,L=e.CONFIGURABLE,C=P.IteratorPrototype,D=P.BUGGY_SAFARI_ITERATORS,O=m("iterator"),T="keys",U="values",$="entries",rr=function(){return this};n.exports=function(nr,K,k,gr,ir,N,H){i(k,K,gr);var G=function(tr){if(tr===ir&&V)return V;if(!D&&tr in W)return W[tr];switch(tr){case T:return function(){return new k(this,tr)};case U:return function(){return new k(this,tr)};case $:return function(){return new k(this,tr)}}return function(){return new k(this)}},F=K+" Iterator",Y=!1,W=nr.prototype,z=W[O]||W["@@iterator"]||ir&&W[ir],V=!D&&z||G(ir),ur=K=="Array"&&W.entries||z,X,Q,ar;if(ur&&(X=l(ur.call(new nr)),X!==Object.prototype&&X.next&&(!a&&l(X)!==C&&(f?f(X,C):s(X[O])||g(X,O,rr)),d(X,F,!0,!0),a&&(x[F]=rr))),R&&ir==U&&z&&z.name!==U&&(!a&&L?p(W,"name",U):(Y=!0,V=function(){return o(z,this)})),ir)if(Q={values:G(U),keys:N?V:G(T),entries:G($)},H)for(ar in Q)(D||Y||!(ar in W))&&g(W,ar,Q[ar]);else t({target:K,proto:!0,forced:D||Y},Q);return(!a||H)&&W[O]!==V&&g(W,O,V,{name:ir}),x[K]=V,Q}},74929:(n,c,r)=>{"use strict";var t=r(59769),o=r(37235),a=r(82951),e=r(36101),s=r(74972),i=r(62072),l=r(23967),f=r(68264),d=l("iterator"),p=!1,g,m,x;[].keys&&(x=[].keys(),"next"in x?(m=s(s(x)),m!==Object.prototype&&(g=m)):p=!0);var P=!a(g)||t(function(){var R={};return g[d].call(R)!==R});P?g={}:f&&(g=e(g)),o(g[d])||i(g,d,function(){return this}),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:p}},90857:n=>{n.exports={}},2312:(n,c,r)=>{var t=r(65346);n.exports=function(o){return t(o.length)}},49578:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(37235),e=r(85831),s=r(76986),i=r(34157).CONFIGURABLE,l=r(96441),f=r(92569),d=f.enforce,p=f.get,g=String,m=Object.defineProperty,x=t("".slice),P=t("".replace),R=t([].join),L=s&&!o(function(){return m(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),D=n.exports=function(O,T,U){x(g(T),0,7)==="Symbol("&&(T="["+P(g(T),/^Symbol\(([^)]*)\)/,"$1")+"]"),U&&U.getter&&(T="get "+T),U&&U.setter&&(T="set "+T),(!e(O,"name")||i&&O.name!==T)&&(s?m(O,"name",{value:T,configurable:!0}):O.name=T),L&&U&&e(U,"arity")&&O.length!==U.arity&&m(O,"length",{value:U.arity});try{U&&e(U,"constructor")&&U.constructor?s&&m(O,"prototype",{writable:!1}):O.prototype&&(O.prototype=void 0)}catch{}var $=d(O);return e($,"source")||($.source=R(C,typeof T=="string"?T:"")),O};Function.prototype.toString=D(function(){return a(this)&&p(this).source||l(this)},"toString")},79498:n=>{var c=Math.ceil,r=Math.floor;n.exports=Math.trunc||function(o){var a=+o;return(a>0?r:c)(a)}},55993:(n,c,r)=>{"use strict";var t=r(76986),o=r(29027),a=r(71970),e=r(59769),s=r(75070),i=r(54207),l=r(53749),f=r(72296),d=r(60144),p=Object.assign,g=Object.defineProperty,m=o([].concat);n.exports=!p||e(function(){if(t&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x={},P={},R=Symbol(),L="abcdefghijklmnopqrst";return x[R]=7,L.split("").forEach(function(C){P[C]=C}),p({},x)[R]!=7||s(p({},P)).join("")!=L})?function(P,R){for(var L=f(P),C=arguments.length,D=1,O=i.f,T=l.f;C>D;)for(var U=d(arguments[D++]),$=O?m(s(U),O(U)):s(U),rr=$.length,nr=0,K;rr>nr;)K=$[nr++],(!t||a(T,U,K))&&(L[K]=U[K]);return L}:p},36101:(n,c,r)=>{var t=r(86347),o=r(2041),a=r(68671),e=r(33804),s=r(18673),i=r(30030),l=r(41506),f=">",d="<",p="prototype",g="script",m=l("IE_PROTO"),x=function(){},P=function(O){return d+g+f+O+d+"/"+g+f},R=function(O){O.write(P("")),O.close();var T=O.parentWindow.Object;return O=null,T},L=function(){var O=i("iframe"),T="java"+g+":",U;return O.style.display="none",s.appendChild(O),O.src=String(T),U=O.contentWindow.document,U.open(),U.write(P("document.F=Object")),U.close(),U.F},C,D=function(){try{C=new ActiveXObject("htmlfile")}catch{}D=typeof document<"u"?document.domain&&C?R(C):L():R(C);for(var O=a.length;O--;)delete D[p][a[O]];return D()};e[m]=!0,n.exports=Object.create||function(T,U){var $;return T!==null?(x[p]=t(T),$=new x,x[p]=null,$[m]=T):$=D(),U===void 0?$:o.f($,U)}},2041:(n,c,r)=>{var t=r(76986),o=r(30774),a=r(99051),e=r(86347),s=r(11884),i=r(75070);c.f=t&&!o?Object.defineProperties:function(f,d){e(f);for(var p=s(d),g=i(d),m=g.length,x=0,P;m>x;)a.f(f,P=g[x++],p[P]);return f}},99051:(n,c,r)=>{var t=r(76986),o=r(74690),a=r(30774),e=r(86347),s=r(47568),i=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",g="writable";c.f=t?a?function(x,P,R){if(e(x),P=s(P),e(R),typeof x=="function"&&P==="prototype"&&"value"in R&&g in R&&!R[g]){var L=f(x,P);L&&L[g]&&(x[P]=R.value,R={configurable:p in R?R[p]:L[p],enumerable:d in R?R[d]:L[d],writable:!1})}return l(x,P,R)}:l:function(x,P,R){if(e(x),P=s(P),e(R),o)try{return l(x,P,R)}catch{}if("get"in R||"set"in R)throw i("Accessors not supported");return"value"in R&&(x[P]=R.value),x}},80381:(n,c,r)=>{var t=r(76986),o=r(71970),a=r(53749),e=r(99829),s=r(11884),i=r(47568),l=r(85831),f=r(74690),d=Object.getOwnPropertyDescriptor;c.f=t?d:function(g,m){if(g=s(g),m=i(m),f)try{return d(g,m)}catch{}if(l(g,m))return e(!o(a.f,g,m),g[m])}},6099:(n,c,r)=>{var t=r(86360),o=r(68671),a=o.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(s){return t(s,a)}},54207:(n,c)=>{c.f=Object.getOwnPropertySymbols},74972:(n,c,r)=>{var t=r(85831),o=r(37235),a=r(72296),e=r(41506),s=r(40328),i=e("IE_PROTO"),l=Object,f=l.prototype;n.exports=s?l.getPrototypeOf:function(d){var p=a(d);if(t(p,i))return p[i];var g=p.constructor;return o(g)&&p instanceof g?g.prototype:p instanceof l?f:null}},56471:(n,c,r)=>{var t=r(29027);n.exports=t({}.isPrototypeOf)},86360:(n,c,r)=>{var t=r(29027),o=r(85831),a=r(11884),e=r(10752).indexOf,s=r(33804),i=t([].push);n.exports=function(l,f){var d=a(l),p=0,g=[],m;for(m in d)!o(s,m)&&o(d,m)&&i(g,m);for(;f.length>p;)o(d,m=f[p++])&&(~e(g,m)||i(g,m));return g}},75070:(n,c,r)=>{var t=r(86360),o=r(68671);n.exports=Object.keys||function(e){return t(e,o)}},53749:(n,c)=>{"use strict";var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,o=t&&!r.call({1:2},1);c.f=o?function(e){var s=t(this,e);return!!s&&s.enumerable}:r},90331:(n,c,r)=>{var t=r(12352),o=r(86347),a=r(87725);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,s={},i;try{i=t(Object.prototype,"__proto__","set"),i(s,[]),e=s instanceof Array}catch{}return function(f,d){return o(f),a(d),e?i(f,d):f.__proto__=d,f}}():void 0)},97963:(n,c,r)=>{var t=r(71970),o=r(37235),a=r(82951),e=TypeError;n.exports=function(s,i){var l,f;if(i==="string"&&o(l=s.toString)&&!a(f=t(l,s))||o(l=s.valueOf)&&!a(f=t(l,s))||i!=="string"&&o(l=s.toString)&&!a(f=t(l,s)))return f;throw e("Can't convert object to primitive value")}},42231:(n,c,r)=>{var t=r(49023),o=r(29027),a=r(6099),e=r(54207),s=r(86347),i=o([].concat);n.exports=t("Reflect","ownKeys")||function(f){var d=a.f(s(f)),p=e.f;return p?i(d,p(f)):d}},41537:(n,c,r)=>{var t=r(80376);n.exports=t},88224:(n,c,r)=>{var t=r(51246),o=TypeError;n.exports=function(a){if(t(a))throw o("Can't call method on "+a);return a}},65746:(n,c,r)=>{var t=r(99051).f,o=r(85831),a=r(23967),e=a("toStringTag");n.exports=function(s,i,l){s&&!l&&(s=s.prototype),s&&!o(s,e)&&t(s,e,{configurable:!0,value:i})}},41506:(n,c,r)=>{var t=r(54377),o=r(73380),a=t("keys");n.exports=function(e){return a[e]||(a[e]=o(e))}},58797:(n,c,r)=>{var t=r(80376),o=r(8108),a="__core-js_shared__",e=t[a]||o(a,{});n.exports=e},54377:(n,c,r)=>{var t=r(68264),o=r(58797);(n.exports=function(a,e){return o[a]||(o[a]=e!==void 0?e:{})})("versions",[]).push({version:"3.29.1",mode:t?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},80273:(n,c,r)=>{var t=r(29027),o=r(11835),a=r(72100),e=r(88224),s=t("".charAt),i=t("".charCodeAt),l=t("".slice),f=function(d){return function(p,g){var m=a(e(p)),x=o(g),P=m.length,R,L;return x<0||x>=P?d?"":void 0:(R=i(m,x),R<55296||R>56319||x+1===P||(L=i(m,x+1))<56320||L>57343?d?s(m,x):R:d?l(m,x,x+2):(R-55296<<10)+(L-56320)+65536)}};n.exports={codeAt:f(!1),charAt:f(!0)}},70603:(n,c,r)=>{var t=r(29027),o=2147483647,a=36,e=1,s=26,i=38,l=700,f=72,d=128,p="-",g=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,x="Overflow: input needs wider integers to process",P=a-e,R=RangeError,L=t(m.exec),C=Math.floor,D=String.fromCharCode,O=t("".charCodeAt),T=t([].join),U=t([].push),$=t("".replace),rr=t("".split),nr=t("".toLowerCase),K=function(N){for(var H=[],G=0,F=N.length;G<F;){var Y=O(N,G++);if(Y>=55296&&Y<=56319&&G<F){var W=O(N,G++);(W&64512)==56320?U(H,((Y&1023)<<10)+(W&1023)+65536):(U(H,Y),G--)}else U(H,Y)}return H},k=function(N){return N+22+75*(N<26)},gr=function(N,H,G){var F=0;for(N=G?C(N/l):N>>1,N+=C(N/H);N>P*s>>1;)N=C(N/P),F+=a;return C(F+(P+1)*N/(N+i))},ir=function(N){var H=[];N=K(N);var G=N.length,F=d,Y=0,W=f,z,V;for(z=0;z<N.length;z++)V=N[z],V<128&&U(H,D(V));var ur=H.length,X=ur;for(ur&&U(H,p);X<G;){var Q=o;for(z=0;z<N.length;z++)V=N[z],V>=F&&V<Q&&(Q=V);var ar=X+1;if(Q-F>C((o-Y)/ar))throw R(x);for(Y+=(Q-F)*ar,F=Q,z=0;z<N.length;z++){if(V=N[z],V<F&&++Y>o)throw R(x);if(V==F){for(var tr=Y,cr=a;;){var hr=cr<=W?e:cr>=W+s?s:cr-W;if(tr<hr)break;var lr=tr-hr,Lr=a-hr;U(H,D(k(hr+lr%Lr))),tr=C(lr/Lr),cr+=a}U(H,D(k(tr))),W=gr(Y,ar,X==ur),Y=0,X++}}Y++,F++}return T(H,"")};n.exports=function(N){var H=[],G=rr($(nr(N),m,"."),"."),F,Y;for(F=0;F<G.length;F++)Y=G[F],U(H,L(g,Y)?"xn--"+ir(Y):Y);return T(H,".")}},52727:(n,c,r)=>{var t=r(81150),o=r(59769);n.exports=!!Object.getOwnPropertySymbols&&!o(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})},83260:(n,c,r)=>{var t=r(11835),o=Math.max,a=Math.min;n.exports=function(e,s){var i=t(e);return i<0?o(i+s,0):a(i,s)}},11884:(n,c,r)=>{var t=r(60144),o=r(88224);n.exports=function(a){return t(o(a))}},11835:(n,c,r)=>{var t=r(79498);n.exports=function(o){var a=+o;return a!==a||a===0?0:t(a)}},65346:(n,c,r)=>{var t=r(11835),o=Math.min;n.exports=function(a){return a>0?o(t(a),9007199254740991):0}},72296:(n,c,r)=>{var t=r(88224),o=Object;n.exports=function(a){return o(t(a))}},30799:(n,c,r)=>{var t=r(71970),o=r(82951),a=r(47082),e=r(63953),s=r(97963),i=r(23967),l=TypeError,f=i("toPrimitive");n.exports=function(d,p){if(!o(d)||a(d))return d;var g=e(d,f),m;if(g){if(p===void 0&&(p="default"),m=t(g,d,p),!o(m)||a(m))return m;throw l("Can't convert object to primitive value")}return p===void 0&&(p="number"),s(d,p)}},47568:(n,c,r)=>{var t=r(30799),o=r(47082);n.exports=function(a){var e=t(a,"string");return o(e)?e:e+""}},65727:(n,c,r)=>{var t=r(23967),o=t("toStringTag"),a={};a[o]="z",n.exports=String(a)==="[object z]"},72100:(n,c,r)=>{var t=r(95032),o=String;n.exports=function(a){if(t(a)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(a)}},22734:n=>{var c=String;n.exports=function(r){try{return c(r)}catch{return"Object"}}},73380:(n,c,r)=>{var t=r(29027),o=0,a=Math.random(),e=t(1 .toString);n.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+e(++o+a,36)}},9269:(n,c,r)=>{var t=r(59769),o=r(23967),a=r(76986),e=r(68264),s=o("iterator");n.exports=!t(function(){var i=new URL("b?a=1&b=2&c=3","http://a"),l=i.searchParams,f="";return i.pathname="c%20d",l.forEach(function(d,p){l.delete("b"),f+=p+d}),e&&!i.toJSON||!l.size&&(e||!a)||!l.sort||i.href!=="http://a/c%20d?a=1&c=3"||l.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!l[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},19366:(n,c,r)=>{var t=r(52727);n.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},30774:(n,c,r)=>{var t=r(76986),o=r(59769);n.exports=t&&o(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},31238:n=>{var c=TypeError;n.exports=function(r,t){if(r<t)throw c("Not enough arguments");return r}},63545:(n,c,r)=>{var t=r(80376),o=r(37235),a=t.WeakMap;n.exports=o(a)&&/native code/.test(String(a))},23967:(n,c,r)=>{var t=r(80376),o=r(54377),a=r(85831),e=r(73380),s=r(52727),i=r(19366),l=t.Symbol,f=o("wks"),d=i?l.for||l:l&&l.withoutSetter||e;n.exports=function(p){return a(f,p)||(f[p]=s&&a(l,p)?l[p]:d("Symbol."+p)),f[p]}},46861:(n,c,r)=>{"use strict";var t=r(11884),o=r(84102),a=r(90857),e=r(92569),s=r(99051).f,i=r(48710),l=r(9401),f=r(68264),d=r(76986),p="Array Iterator",g=e.set,m=e.getterFor(p);n.exports=i(Array,"Array",function(P,R){g(this,{type:p,target:t(P),index:0,kind:R})},function(){var P=m(this),R=P.target,L=P.kind,C=P.index++;return!R||C>=R.length?(P.target=void 0,l(void 0,!0)):L=="keys"?l(C,!1):L=="values"?l(R[C],!1):l([C,R[C]],!1)},"values");var x=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!f&&d&&x.name!=="values")try{s(x,"name",{value:"values"})}catch{}},19711:(n,c,r)=>{"use strict";var t=r(80273).charAt,o=r(72100),a=r(92569),e=r(48710),s=r(9401),i="String Iterator",l=a.set,f=a.getterFor(i);e(String,"String",function(d){l(this,{type:i,string:o(d),index:0})},function(){var p=f(this),g=p.string,m=p.index,x;return m>=g.length?s(void 0,!0):(x=t(g,m),p.index+=x.length,s(x,!1))})},16321:(n,c,r)=>{"use strict";r(46861);var t=r(59401),o=r(80376),a=r(71970),e=r(29027),s=r(76986),i=r(9269),l=r(62072),f=r(16317),d=r(64266),p=r(65746),g=r(21811),m=r(92569),x=r(61507),P=r(37235),R=r(85831),L=r(58495),C=r(95032),D=r(86347),O=r(82951),T=r(72100),U=r(36101),$=r(99829),rr=r(53401),nr=r(30205),K=r(31238),k=r(23967),gr=r(5515),ir=k("iterator"),N="URLSearchParams",H=N+"Iterator",G=m.set,F=m.getterFor(N),Y=m.getterFor(H),W=Object.getOwnPropertyDescriptor,z=function(E){if(!s)return o[E];var b=W(o,E);return b&&b.value},V=z("fetch"),ur=z("Request"),X=z("Headers"),Q=ur&&ur.prototype,ar=X&&X.prototype,tr=o.RegExp,cr=o.TypeError,hr=o.decodeURIComponent,lr=o.encodeURIComponent,Lr=e("".charAt),Br=e([].join),Ir=e([].push),Cr=e("".replace),Jr=e([].shift),Hr=e([].splice),Gr=e("".split),$r=e("".slice),Xr=/\+/g,zr=Array(4),Qr=function(E){return zr[E-1]||(zr[E-1]=tr("((?:%[\\da-f]{2}){"+E+"})","gi"))},Zr=function(E){try{return hr(E)}catch{return E}},Kr=function(E){var b=Cr(E,Xr," "),j=4;try{return hr(b)}catch{for(;j;)b=Cr(b,Qr(j--),Zr);return b}},sr=/[!'()~]|%20/g,kr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},qr=function(E){return kr[E]},Yr=function(E){return Cr(lr(E),sr,qr)},Or=g(function(b,j){G(this,{type:H,iterator:rr(F(b).entries),kind:j})},"Iterator",function(){var b=Y(this),j=b.kind,M=b.iterator.next(),B=M.value;return M.done||(M.value=j==="keys"?B.key:j==="values"?B.value:[B.key,B.value]),M},!0),Ur=function(E){this.entries=[],this.url=null,E!==void 0&&(O(E)?this.parseObject(E):this.parseQuery(typeof E=="string"?Lr(E,0)==="?"?$r(E,1):E:T(E)))};Ur.prototype={type:N,bindURL:function(E){this.url=E,this.update()},parseObject:function(E){var b=nr(E),j,M,B,J,mr,Ar,pr;if(b)for(j=rr(E,b),M=j.next;!(B=a(M,j)).done;){if(J=rr(D(B.value)),mr=J.next,(Ar=a(mr,J)).done||(pr=a(mr,J)).done||!a(mr,J).done)throw cr("Expected sequence with length 2");Ir(this.entries,{key:T(Ar.value),value:T(pr.value)})}else for(var Sr in E)R(E,Sr)&&Ir(this.entries,{key:Sr,value:T(E[Sr])})},parseQuery:function(E){if(E)for(var b=Gr(E,"&"),j=0,M,B;j<b.length;)M=b[j++],M.length&&(B=Gr(M,"="),Ir(this.entries,{key:Kr(Jr(B)),value:Kr(Br(B,"="))}))},serialize:function(){for(var E=this.entries,b=[],j=0,M;j<E.length;)M=E[j++],Ir(b,Yr(M.key)+"="+Yr(M.value));return Br(b,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var br=function(){x(this,Pr);var b=arguments.length>0?arguments[0]:void 0,j=G(this,new Ur(b));s||(this.length=j.entries.length)},Pr=br.prototype;if(d(Pr,{append:function(b,j){K(arguments.length,2);var M=F(this);Ir(M.entries,{key:T(b),value:T(j)}),s||this.length++,M.updateURL()},delete:function(E){K(arguments.length,1);for(var b=F(this),j=b.entries,M=T(E),B=0;B<j.length;)j[B].key===M?Hr(j,B,1):B++;s||(this.length=j.length),b.updateURL()},get:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=0;B<j.length;B++)if(j[B].key===M)return j[B].value;return null},getAll:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=[],J=0;J<j.length;J++)j[J].key===M&&Ir(B,j[J].value);return B},has:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=0;B<j.length;)if(j[B++].key===M)return!0;return!1},set:function(b,j){K(arguments.length,1);for(var M=F(this),B=M.entries,J=!1,mr=T(b),Ar=T(j),pr=0,Sr;pr<B.length;pr++)Sr=B[pr],Sr.key===mr&&(J?Hr(B,pr--,1):(J=!0,Sr.value=Ar));J||Ir(B,{key:mr,value:Ar}),s||(this.length=B.length),M.updateURL()},sort:function(){var b=F(this);gr(b.entries,function(j,M){return j.key>M.key?1:-1}),b.updateURL()},forEach:function(b){for(var j=F(this).entries,M=L(b,arguments.length>1?arguments[1]:void 0),B=0,J;B<j.length;)J=j[B++],M(J.value,J.key,this)},keys:function(){return new Or(this,"keys")},values:function(){return new Or(this,"values")},entries:function(){return new Or(this,"entries")}},{enumerable:!0}),l(Pr,ir,Pr.entries,{name:"entries"}),l(Pr,"toString",function(){return F(this).serialize()},{enumerable:!0}),s&&f(Pr,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),p(br,N),t({global:!0,constructor:!0,forced:!i},{URLSearchParams:br}),!i&&P(X)){var Mr=e(ar.has),yr=e(ar.set),jr=function(E){if(O(E)){var b=E.body,j;if(C(b)===N)return j=E.headers?new X(E.headers):new X,Mr(j,"content-type")||yr(j,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),U(E,{body:$(0,T(b)),headers:$(0,j)})}return E};if(P(V)&&t({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(b){return V(b,arguments.length>1?jr(arguments[1]):{})}}),P(ur)){var Rr=function(b){return x(this,Q),new ur(b,arguments.length>1?jr(arguments[1]):{})};Q.constructor=Rr,Rr.prototype=Q,t({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Rr})}}n.exports={URLSearchParams:br,getState:F}},86337:(n,c,r)=>{r(16321)},97138:(n,c,r)=>{"use strict";var t=r(76986),o=r(29027),a=r(16317),e=URLSearchParams.prototype,s=o(e.forEach);t&&!("size"in e)&&a(e,"size",{get:function(){var l=0;return s(this,function(){l++}),l},configurable:!0,enumerable:!0})},6217:(n,c,r)=>{"use strict";r(19711);var t=r(59401),o=r(76986),a=r(9269),e=r(80376),s=r(58495),i=r(29027),l=r(62072),f=r(16317),d=r(61507),p=r(85831),g=r(55993),m=r(65335),x=r(17401),P=r(80273).codeAt,R=r(70603),L=r(72100),C=r(65746),D=r(31238),O=r(16321),T=r(92569),U=T.set,$=T.getterFor("URL"),rr=O.URLSearchParams,nr=O.getState,K=e.URL,k=e.TypeError,gr=e.parseInt,ir=Math.floor,N=Math.pow,H=i("".charAt),G=i(/./.exec),F=i([].join),Y=i(1 .toString),W=i([].pop),z=i([].push),V=i("".replace),ur=i([].shift),X=i("".split),Q=i("".slice),ar=i("".toLowerCase),tr=i([].unshift),cr="Invalid authority",hr="Invalid scheme",lr="Invalid host",Lr="Invalid port",Br=/[a-z]/i,Ir=/[\d+-.a-z]/i,Cr=/\d/,Jr=/^0x/i,Hr=/^[0-7]+$/,Gr=/^\d+$/,$r=/^[\da-f]+$/i,Xr=/[\0\t\n\r #%/:<>?@[\\\]^|]/,zr=/[\0\t\n\r #/:<>?@[\\\]^|]/,Qr=/^[\u0000-\u0020]+/,Zr=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kr=/[\t\n\r]/g,sr,kr=function(v){var I=X(v,"."),h,u,y,w,A,Z,q;if(I.length&&I[I.length-1]==""&&I.length--,h=I.length,h>4)return v;for(u=[],y=0;y<h;y++){if(w=I[y],w=="")return v;if(A=10,w.length>1&&H(w,0)=="0"&&(A=G(Jr,w)?16:8,w=Q(w,A==8?1:2)),w==="")Z=0;else{if(!G(A==10?Gr:A==8?Hr:$r,w))return v;Z=gr(w,A)}z(u,Z)}for(y=0;y<h;y++)if(Z=u[y],y==h-1){if(Z>=N(256,5-h))return null}else if(Z>255)return null;for(q=W(u),y=0;y<u.length;y++)q+=u[y]*N(256,3-y);return q},qr=function(v){var I=[0,0,0,0,0,0,0,0],h=0,u=null,y=0,w,A,Z,q,er,fr,S,_=function(){return H(v,y)};if(_()==":"){if(H(v,1)!=":")return;y+=2,h++,u=h}for(;_();){if(h==8)return;if(_()==":"){if(u!==null)return;y++,h++,u=h;continue}for(w=A=0;A<4&&G($r,_());)w=w*16+gr(_(),16),y++,A++;if(_()=="."){if(A==0||(y-=A,h>6))return;for(Z=0;_();){if(q=null,Z>0)if(_()=="."&&Z<4)y++;else return;if(!G(Cr,_()))return;for(;G(Cr,_());){if(er=gr(_(),10),q===null)q=er;else{if(q==0)return;q=q*10+er}if(q>255)return;y++}I[h]=I[h]*256+q,Z++,(Z==2||Z==4)&&h++}if(Z!=4)return;break}else if(_()==":"){if(y++,!_())return}else if(_())return;I[h++]=w}if(u!==null)for(fr=h-u,h=7;h!=0&&fr>0;)S=I[h],I[h--]=I[u+fr-1],I[u+--fr]=S;else if(h!=8)return;return I},Yr=function(v){for(var I=null,h=1,u=null,y=0,w=0;w<8;w++)v[w]!==0?(y>h&&(I=u,h=y),u=null,y=0):(u===null&&(u=w),++y);return y>h&&(I=u,h=y),I},Or=function(v){var I,h,u,y;if(typeof v=="number"){for(I=[],h=0;h<4;h++)tr(I,v%256),v=ir(v/256);return F(I,".")}else if(typeof v=="object"){for(I="",u=Yr(v),h=0;h<8;h++)y&&v[h]===0||(y&&(y=!1),u===h?(I+=h?":":"::",y=!0):(I+=Y(v[h],16),h<7&&(I+=":")));return"["+I+"]"}return v},Ur={},br=g({},Ur,{" ":1,'"':1,"<":1,">":1,"`":1}),Pr=g({},br,{"#":1,"?":1,"{":1,"}":1}),Mr=g({},Pr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),yr=function(v,I){var h=P(v,0);return h>32&&h<127&&!p(I,v)?v:encodeURIComponent(v)},jr={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Rr=function(v,I){var h;return v.length==2&&G(Br,H(v,0))&&((h=H(v,1))==":"||!I&&h=="|")},E=function(v){var I;return v.length>1&&Rr(Q(v,0,2))&&(v.length==2||(I=H(v,2))==="/"||I==="\\"||I==="?"||I==="#")},b=function(v){return v==="."||ar(v)==="%2e"},j=function(v){return v=ar(v),v===".."||v==="%2e."||v===".%2e"||v==="%2e%2e"},M={},B={},J={},mr={},Ar={},pr={},Sr={},lt={},Vr={},Wr={},_r={},rt={},tt={},et={},vt={},nt={},Nr={},xr={},ft={},wr={},Tr={},at=function(v,I,h){var u=L(v),y,w,A;if(I){if(w=this.parse(u),w)throw k(w);this.searchParams=null}else{if(h!==void 0&&(y=new at(h,!0)),w=this.parse(u,null,y),w)throw k(w);A=nr(new rr),A.bindURL(this),this.searchParams=A}};at.prototype={type:"URL",parse:function(v,I,h){var u=this,y=I||M,w=0,A="",Z=!1,q=!1,er=!1,fr,S,_,Er;for(v=L(v),I||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,v=V(v,Qr,""),v=V(v,Zr,"$1")),v=V(v,Kr,""),fr=m(v);w<=fr.length;){switch(S=fr[w],y){case M:if(S&&G(Br,S))A+=ar(S),y=B;else{if(I)return hr;y=J;continue}break;case B:if(S&&(G(Ir,S)||S=="+"||S=="-"||S=="."))A+=ar(S);else if(S==":"){if(I&&(u.isSpecial()!=p(jr,A)||A=="file"&&(u.includesCredentials()||u.port!==null)||u.scheme=="file"&&!u.host))return;if(u.scheme=A,I){u.isSpecial()&&jr[u.scheme]==u.port&&(u.port=null);return}A="",u.scheme=="file"?y=et:u.isSpecial()&&h&&h.scheme==u.scheme?y=mr:u.isSpecial()?y=lt:fr[w+1]=="/"?(y=Ar,w++):(u.cannotBeABaseURL=!0,z(u.path,""),y=ft)}else{if(I)return hr;A="",y=J,w=0;continue}break;case J:if(!h||h.cannotBeABaseURL&&S!="#")return hr;if(h.cannotBeABaseURL&&S=="#"){u.scheme=h.scheme,u.path=x(h.path),u.query=h.query,u.fragment="",u.cannotBeABaseURL=!0,y=Tr;break}y=h.scheme=="file"?et:pr;continue;case mr:if(S=="/"&&fr[w+1]=="/")y=Vr,w++;else{y=pr;continue}break;case Ar:if(S=="/"){y=Wr;break}else{y=xr;continue}case pr:if(u.scheme=h.scheme,S==sr)u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query=h.query;else if(S=="/"||S=="\\"&&u.isSpecial())y=Sr;else if(S=="?")u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query="",y=wr;else if(S=="#")u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query=h.query,u.fragment="",y=Tr;else{u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.path.length--,y=xr;continue}break;case Sr:if(u.isSpecial()&&(S=="/"||S=="\\"))y=Vr;else if(S=="/")y=Wr;else{u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,y=xr;continue}break;case lt:if(y=Vr,S!="/"||H(A,w+1)!="/")continue;w++;break;case Vr:if(S!="/"&&S!="\\"){y=Wr;continue}break;case Wr:if(S=="@"){Z&&(A="%40"+A),Z=!0,_=m(A);for(var ot=0;ot<_.length;ot++){var pt=_[ot];if(pt==":"&&!er){er=!0;continue}var dt=yr(pt,Mr);er?u.password+=dt:u.username+=dt}A=""}else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()){if(Z&&A=="")return cr;w-=m(A).length+1,A="",y=_r}else A+=S;break;case _r:case rt:if(I&&u.scheme=="file"){y=nt;continue}else if(S==":"&&!q){if(A=="")return lr;if(Er=u.parseHost(A),Er)return Er;if(A="",y=tt,I==rt)return}else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()){if(u.isSpecial()&&A=="")return lr;if(I&&A==""&&(u.includesCredentials()||u.port!==null))return;if(Er=u.parseHost(A),Er)return Er;if(A="",y=Nr,I)return;continue}else S=="["?q=!0:S=="]"&&(q=!1),A+=S;break;case tt:if(G(Cr,S))A+=S;else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()||I){if(A!=""){var st=gr(A,10);if(st>65535)return Lr;u.port=u.isSpecial()&&st===jr[u.scheme]?null:st,A=""}if(I)return;y=Nr;continue}else return Lr;break;case et:if(u.scheme="file",S=="/"||S=="\\")y=vt;else if(h&&h.scheme=="file")if(S==sr)u.host=h.host,u.path=x(h.path),u.query=h.query;else if(S=="?")u.host=h.host,u.path=x(h.path),u.query="",y=wr;else if(S=="#")u.host=h.host,u.path=x(h.path),u.query=h.query,u.fragment="",y=Tr;else{E(F(x(fr,w),""))||(u.host=h.host,u.path=x(h.path),u.shortenPath()),y=xr;continue}else{y=xr;continue}break;case vt:if(S=="/"||S=="\\"){y=nt;break}h&&h.scheme=="file"&&!E(F(x(fr,w),""))&&(Rr(h.path[0],!0)?z(u.path,h.path[0]):u.host=h.host),y=xr;continue;case nt:if(S==sr||S=="/"||S=="\\"||S=="?"||S=="#"){if(!I&&Rr(A))y=xr;else if(A==""){if(u.host="",I)return;y=Nr}else{if(Er=u.parseHost(A),Er)return Er;if(u.host=="localhost"&&(u.host=""),I)return;A="",y=Nr}continue}else A+=S;break;case Nr:if(u.isSpecial()){if(y=xr,S!="/"&&S!="\\")continue}else if(!I&&S=="?")u.query="",y=wr;else if(!I&&S=="#")u.fragment="",y=Tr;else if(S!=sr&&(y=xr,S!="/"))continue;break;case xr:if(S==sr||S=="/"||S=="\\"&&u.isSpecial()||!I&&(S=="?"||S=="#")){if(j(A)?(u.shortenPath(),S!="/"&&!(S=="\\"&&u.isSpecial())&&z(u.path,"")):b(A)?S!="/"&&!(S=="\\"&&u.isSpecial())&&z(u.path,""):(u.scheme=="file"&&!u.path.length&&Rr(A)&&(u.host&&(u.host=""),A=H(A,0)+":"),z(u.path,A)),A="",u.scheme=="file"&&(S==sr||S=="?"||S=="#"))for(;u.path.length>1&&u.path[0]==="";)ur(u.path);S=="?"?(u.query="",y=wr):S=="#"&&(u.fragment="",y=Tr)}else A+=yr(S,Pr);break;case ft:S=="?"?(u.query="",y=wr):S=="#"?(u.fragment="",y=Tr):S!=sr&&(u.path[0]+=yr(S,Ur));break;case wr:!I&&S=="#"?(u.fragment="",y=Tr):S!=sr&&(S=="'"&&u.isSpecial()?u.query+="%27":S=="#"?u.query+="%23":u.query+=yr(S,Ur));break;case Tr:S!=sr&&(u.fragment+=yr(S,br));break}w++}},parseHost:function(v){var I,h,u;if(H(v,0)=="["){if(H(v,v.length-1)!="]"||(I=qr(Q(v,1,-1)),!I))return lr;this.host=I}else if(this.isSpecial()){if(v=R(v),G(Xr,v)||(I=kr(v),I===null))return lr;this.host=I}else{if(G(zr,v))return lr;for(I="",h=m(v),u=0;u<h.length;u++)I+=yr(h[u],Ur);this.host=I}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},includesCredentials:function(){return this.username!=""||this.password!=""},isSpecial:function(){return p(jr,this.scheme)},shortenPath:function(){var v=this.path,I=v.length;I&&(this.scheme!="file"||I!=1||!Rr(v[0],!0))&&v.length--},serialize:function(){var v=this,I=v.scheme,h=v.username,u=v.password,y=v.host,w=v.port,A=v.path,Z=v.query,q=v.fragment,er=I+":";return y!==null?(er+="//",v.includesCredentials()&&(er+=h+(u?":"+u:"")+"@"),er+=Or(y),w!==null&&(er+=":"+w)):I=="file"&&(er+="//"),er+=v.cannotBeABaseURL?A[0]:A.length?"/"+F(A,"/"):"",Z!==null&&(er+="?"+Z),q!==null&&(er+="#"+q),er},setHref:function(v){var I=this.parse(v);if(I)throw k(I);this.searchParams.update()},getOrigin:function(){var v=this.scheme,I=this.port;if(v=="blob")try{return new Fr(v.path[0]).origin}catch{return"null"}return v=="file"||!this.isSpecial()?"null":v+"://"+Or(this.host)+(I!==null?":"+I:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(v){this.parse(L(v)+":",M)},getUsername:function(){return this.username},setUsername:function(v){var I=m(L(v));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var h=0;h<I.length;h++)this.username+=yr(I[h],Mr)}},getPassword:function(){return this.password},setPassword:function(v){var I=m(L(v));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var h=0;h<I.length;h++)this.password+=yr(I[h],Mr)}},getHost:function(){var v=this.host,I=this.port;return v===null?"":I===null?Or(v):Or(v)+":"+I},setHost:function(v){this.cannotBeABaseURL||this.parse(v,_r)},getHostname:function(){var v=this.host;return v===null?"":Or(v)},setHostname:function(v){this.cannotBeABaseURL||this.parse(v,rt)},getPort:function(){var v=this.port;return v===null?"":L(v)},setPort:function(v){this.cannotHaveUsernamePasswordPort()||(v=L(v),v==""?this.port=null:this.parse(v,tt))},getPathname:function(){var v=this.path;return this.cannotBeABaseURL?v[0]:v.length?"/"+F(v,"/"):""},setPathname:function(v){this.cannotBeABaseURL||(this.path=[],this.parse(v,Nr))},getSearch:function(){var v=this.query;return v?"?"+v:""},setSearch:function(v){v=L(v),v==""?this.query=null:(H(v,0)=="?"&&(v=Q(v,1)),this.query="",this.parse(v,wr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var v=this.fragment;return v?"#"+v:""},setHash:function(v){if(v=L(v),v==""){this.fragment=null;return}H(v,0)=="#"&&(v=Q(v,1)),this.fragment="",this.parse(v,Tr)},update:function(){this.query=this.searchParams.serialize()||null}};var Fr=function(I){var h=d(this,or),u=D(arguments.length,1)>1?arguments[1]:void 0,y=U(h,new at(I,!1,u));o||(h.href=y.serialize(),h.origin=y.getOrigin(),h.protocol=y.getProtocol(),h.username=y.getUsername(),h.password=y.getPassword(),h.host=y.getHost(),h.hostname=y.getHostname(),h.port=y.getPort(),h.pathname=y.getPathname(),h.search=y.getSearch(),h.searchParams=y.getSearchParams(),h.hash=y.getHash())},or=Fr.prototype,vr=function(v,I){return{get:function(){return $(this)[v]()},set:I&&function(h){return $(this)[I](h)},configurable:!0,enumerable:!0}};if(o&&(f(or,"href",vr("serialize","setHref")),f(or,"origin",vr("getOrigin")),f(or,"protocol",vr("getProtocol","setProtocol")),f(or,"username",vr("getUsername","setUsername")),f(or,"password",vr("getPassword","setPassword")),f(or,"host",vr("getHost","setHost")),f(or,"hostname",vr("getHostname","setHostname")),f(or,"port",vr("getPort","setPort")),f(or,"pathname",vr("getPathname","setPathname")),f(or,"search",vr("getSearch","setSearch")),f(or,"searchParams",vr("getSearchParams")),f(or,"hash",vr("getHash","setHash"))),l(or,"toJSON",function(){return $(this).serialize()},{enumerable:!0}),l(or,"toString",function(){return $(this).serialize()},{enumerable:!0}),K){var ct=K.createObjectURL,ht=K.revokeObjectURL;ct&&l(Fr,"createObjectURL",s(ct,K)),ht&&l(Fr,"revokeObjectURL",s(ht,K))}C(Fr,"URL"),t({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Fr})},42294:(n,c,r)=>{r(6217)},5721:(n,c,r)=>{"use strict";var t=r(59401),o=r(71970);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},77303:(n,c,r)=>{r(42294),r(5721),r(86337),r(97138);var t=r(41537);n.exports=t.URL}},Dr={};function dr(n){var c=Dr[n];if(c!==void 0)return c.exports;var r=Dr[n]={exports:{}};return it[n](r,r.exports,dr),r.exports}dr.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),dr.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var ut={};return(()=>{"use strict";dr.r(ut);var n=dr(77303);const c="Something went wrong, please, try again.";function r(e){return e&&e.replace(/=+$/,"")}function t(e,s){return!!e&&!!s&&r(e)===r(s)}function o(e){let s;if(/code|token|error/.test(window.location.hash)?s=window.location.hash.substring(1):s=location.search.substring(1),!s)throw console.error("No query string in OAuth 2 redirect URL"),new Error(c);const i=new URLSearchParams(s),l=i.get("access_token"),f=i.get("code"),d=i.get("token_type"),p=i.get("expires_in"),g=i.get("state"),m=i.get("error"),x=i.get("error_description")||c;if(m)throw new Error(x);if(!t(g,e?.state))throw new Error("Outdated OAuth2 state");if(e?.flow==="implicit"){if(!l)throw new Error(`Your OAuth2 authentication service provider redirected you without an "access_token".
|
|
7
7
|
Please, try again or make sure your OAuth2 settings are correct.`);if(!d)throw new Error(`Your OAuth2 authentication service provider redirected you without a "token_type".
|
|
8
8
|
Please, try again or make sure your OAuth2 settings are correct.`);e?.successCallback({access_token:l,token_type:d,expires_in:p,auth_code:""})}if(e?.flow==="authorizationCode"){if(!f)throw new Error(`Your OAuth2 authentication service provider redirected you without authorization "code".
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.69"
|
|
6
6
|
*/(function(xd,nu){typeof exports=="object"&&typeof module=="object"?module.exports=nu(require("null")):typeof define=="function"&&define.amd?define(["null"],nu):typeof exports=="object"?exports.RedoclyOpenAPIDocs=nu(require("null")):xd.RedoclyOpenAPIDocs=nu(xd.null)})(this,Vd=>(()=>{var xd={37837:function(k,v,e){"use strict";var t=this&&this.__awaiter||function(T,$,A,j){function W(ne){return ne instanceof A?ne:new A(function(z){z(ne)})}return new(A||(A=Promise))(function(ne,z){function Y(ve){try{ke(j.next(ve))}catch(K){z(K)}}function ue(ve){try{ke(j.throw(ve))}catch(K){z(K)}}function ke(ve){ve.done?ne(ve.value):W(ve.value).then(Y,ue)}ke((j=j.apply(T,$||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.mapTypeToComponent=v.bundleDocument=v.bundle=v.OasVersion=void 0;const o=e(17361),d=e(89062),l=e(51922),i=e(6076),m=e(1700),f=e(55910),u=e(55396),h=e(26517),p=e(39967),g=e(61331),E=e(53685),x=e(69579),a=e(91155),w=e(86942),P=e(58666),S=e(26353);var C;(function(T){T.Version2="oas2",T.Version3_0="oas3_0",T.Version3_1="oas3_1"})(C=v.OasVersion||(v.OasVersion={}));function O(T){return t(this,void 0,void 0,function*(){const{ref:$,doc:A,externalRefResolver:j=new d.BaseResolver(T.config.resolve),base:W=null}=T;if(!($||A))throw new Error(`Document or reference is required.
|
|
7
7
|
`);const ne=A!==void 0?A:yield j.resolveDocument(W,$,!0);if(ne instanceof Error)throw ne;return D(Object.assign(Object.assign({document:ne},T),{config:T.config.styleguide,externalRefResolver:j}))})}v.bundle=O;function D(T){return t(this,void 0,void 0,function*(){const{document:$,config:A,customTypes:j,externalRefResolver:W,dereference:ne=!1,skipRedoclyRegistryRefs:z=!1,removeUnusedComponents:Y=!1,keepUrlRefs:ue=!1}=T,ke=p.detectOpenAPI($.parsed),ve=p.openAPIMajor(ke),K=A.getRulesForOasVersion(ve),ce=u.normalizeTypes(A.extendTypes(j??ve===p.OasMajorVersion.Version3?ke===C.Version3_1?f.Oas3_1Types:i.Oas3Types:m.Oas2Types,ke),A),V=E.initRules(K,A,"preprocessors",ke),J=E.initRules(K,A,"decorators",ke),M={problems:[],oasVersion:ke,refTypes:new Map,visitorsData:{}};Y&&J.push({severity:"error",ruleId:"remove-unused-components",visitor:ve===p.OasMajorVersion.Version2?P.RemoveUnusedComponents({}):S.RemoveUnusedComponents({})});let se=yield d.resolveDocument({rootDocument:$,rootType:ce.Root,externalRefResolver:W});V.length>0&&(h.walkDocument({document:$,rootType:ce.Root,normalizedVisitors:l.normalizeVisitors(V,ce),resolvedRefMap:se,ctx:M}),se=yield d.resolveDocument({rootDocument:$,rootType:ce.Root,externalRefResolver:W}));const le=l.normalizeVisitors([{severity:"error",ruleId:"bundler",visitor:_(ve,ne,z,$,se,ue)},...J],ce);return h.walkDocument({document:$,rootType:ce.Root,normalizedVisitors:le,resolvedRefMap:se,ctx:M}),{bundle:$,problems:M.problems.map(ie=>A.addProblemToIgnore(ie)),fileDependencies:W.getFiles(),rootType:ce.Root,refTypes:M.refTypes,visitorsData:M.visitorsData}})}v.bundleDocument=D;function R(T,$){switch($){case p.OasMajorVersion.Version3:switch(T){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case p.OasMajorVersion.Version2:switch(T){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}}}v.mapTypeToComponent=R;function _(T,$,A,j,W,ne){let z,Y;const ue={ref:{leave(J,M,se){if(!se.location||se.node===void 0){x.reportUnresolvedRef(se,M.report,M.location);return}if(se.location.source===j.source&&se.location.source===M.location.source&&M.type.name!=="scalar"&&!$||A&&w.isRedoclyRegistryURL(J.$ref)||ne&&g.isAbsoluteUrl(J.$ref))return;const le=R(M.type.name,T);le?$?(K(le,se,M),ve(J,se,M)):(J.$ref=K(le,se,M),ke(J,se,M)):ve(J,se,M)}},Root:{enter(J,M){Y=M.location,T===p.OasMajorVersion.Version3?z=J.components=J.components||{}:T===p.OasMajorVersion.Version2&&(z=J)}}};T===p.OasMajorVersion.Version3&&(ue.DiscriminatorMapping={leave(J,M){for(const se of Object.keys(J)){const le=J[se],ie=M.resolve({$ref:le});if(!ie.location||ie.node===void 0){x.reportUnresolvedRef(ie,M.report,M.location.child(se));return}const Oe=R("Schema",T);$?K(Oe,ie,M):J[se]=K(Oe,ie,M)}}});function ke(J,M,se){const le=d.makeRefId(se.location.source.absoluteRef,J.$ref);W.set(le,{document:j,isRemote:!1,node:M.node,nodePointer:J.$ref,resolved:!0})}function ve(J,M,se){if(!a.isPlainObject(M.node))se.parent[se.key]=M.node;else{delete J.$ref;const le=Object.assign({},M.node,J);Object.assign(J,le)}}function K(J,M,se){z[J]=z[J]||{};const le=V(M,J,se);return z[J][le]=M.node,T===p.OasMajorVersion.Version3?`#/components/${J}/${le}`:`#/${J}/${le}`}function ce(J,M,se){var le;return g.isRef(J)&&((le=se.resolve(J,Y.absolutePointer).location)===null||le===void 0?void 0:le.absolutePointer)===M.location.absolutePointer?!0:o(J,M.node)}function V(J,M,se){const[le,ie]=[J.location.source.absoluteRef,J.location.pointer],Oe=z[M];let te="";const fe=ie.slice(2).split("/").filter(a.isTruthy);for(;fe.length>0;)if(te=fe.pop()+(te?`-${te}`:""),!Oe||!Oe[te]||ce(Oe[te],J,se))return te;if(te=g.refBaseName(le)+(te?`_${te}`:""),!Oe[te]||ce(Oe[te],J,se))return te;const xe=te;let Ye=2;for(;Oe[te]&&!ce(Oe[te],J,se);)te=`${xe}-${Ye}`,Ye++;return Oe[te]||se.report({message:`Two schemas are referenced with the same name but different content. Renamed ${xe} to ${te}.`,location:se.location,forceSeverity:"warn"}),te}return ue}},96244:(k,v,e)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.Config=v.StyleguideConfig=v.AVAILABLE_REGIONS=v.DOMAINS=v.DEFAULT_REGION=v.IGNORE_FILE=void 0;const t=e(93879),o=e(77410),d=e(89787),l=e(91155),i=e(39967),m=e(98189),f=e(68040),u=e(61331);v.IGNORE_FILE=".redocly.lint-ignore.yaml";const h=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
8
8
|
# See https://redoc.ly/docs/cli/ for more information.
|
|
@@ -8907,7 +8907,7 @@ box-sizing: border-box;
|
|
|
8907
8907
|
* Redocly OpenAPI Docs
|
|
8908
8908
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
8909
8909
|
* -------------------------------------------------------------
|
|
8910
|
-
* Version: "3.0.0-alpha.
|
|
8910
|
+
* Version: "3.0.0-alpha.69"
|
|
8911
8911
|
*/(()=>{var Y={818:(x,E,T)=>{var j,C;/**
|
|
8912
8912
|
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
|
|
8913
8913
|
* Copyright (C) 2020 Oliver Nightingale
|
|
@@ -9485,7 +9485,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
9485
9485
|
border-bottom: none;
|
|
9486
9486
|
padding-bottom: 0;
|
|
9487
9487
|
}
|
|
9488
|
-
`,ki=["path","query","cookie","header"];function Nt({body:F,parameters:Z=[]}){if(F===void 0&&Z===void 0)return null;const Ke=(ir=>{const qt={};return ir.forEach(fn=>{Ko(qt,fn.in,fn)}),qt})(Z),ct=Z.length>0?ki:[],{content:Dt,description:$t,required:Jt}=F||{};return a.createElement(a.Fragment,null,ct.map(ir=>a.createElement(ts,{key:ir,place:ir,parameters:Ke[ir]})),Dt&&a.createElement(ps,{content:Dt,description:$t,required:Jt}))}function Ko(F,Z="",re){F[Z]||(F[Z]=[]),F[Z].push(re)}const Us=({pointer:F,hideSamples:Z})=>{const{options:re,parser:Ke}=useRecoilValue(globalStoreSelector),ct=useRecoilValue(layoutSelector),Dt=getOperation(Ke,{pointer:F,pathName:"",httpVerb:"",pathParameters:[],pathServers:[],isWebhook:!1,responses:{}},void 0,re,""),{content:$t,description:Jt,required:ir}=getRequestBody({parser:Ke,infoOrRef:{$ref:F},options:re,operation:Dt})||{},qt=Z?FullWidthPanel:SamplesMiddlePanel;return React.createElement(Row,{layout:ct},React.createElement(qt,null,$t&&React.createElement(BodyContent,{content:$t,description:Jt,required:ir})),!Z&&React.createElement(SamplesPanel,null,React.createElement(SamplesWrap,null,$t&&React.createElement(PayloadSamples,{content:$t})))||React.createElement("span",null))};var rs=Object.defineProperty,wo=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,en=(F,Z,re)=>Z in F?rs(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,un=(F,Z)=>{for(var re in Z||(Z={}))_e.call(Z,re)&&en(F,re,Z[re]);if(B)for(var re of B(Z))st.call(Z,re)&&en(F,re,Z[re]);return F},jr=(F,Z)=>wo(F,Mi(Z)),Fr=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});const hr=({options:F,children:Z,customOptions:re={}})=>{const Ke=un(un({},F),re),ct=(0,a.useMemo)(()=>({mediaQueries:Ke.mediaQueries,showAtBreakpoint:Ke.showAtBreakpoint}),[Ke.mediaQueries,Ke.showAtBreakpoint]);return a.createElement(_.f6,{theme:ct},Z)},or=({definitions:F,options:Z,definitionUrl:re,definition:Ke,activeSampleLanguage:ct,children:Dt})=>{const[,$t]=(0,a.useState)(),[Jt,ir]=(0,a.useState)(!0),[qt,fn]=(0,a.useState)(null);(0,a.useEffect)(()=>{function Vn(){return Fr(this,null,function*(){ir(!0);try{fn(F?yield vr(F):yield Mr(Ke,re,Z))}catch(Nn){$t(()=>{throw Nn})}})}Vn()},[F,Ke,re,Z]);const pn=(0,a.useMemo)(()=>{var Vn,Nn,$o;if(qt)return(Vn=Z?.hooks)!=null&&Vn.onInit&&(($o=(Nn=Z.hooks)==null?void 0:Nn.onInit)==null||$o.call(Nn,{store:{definition:qt,options:Z,definitionUrl:re,activeSampleLanguage:ct}})),{definition:qt,options:Z,definitionUrl:re,activeSampleLanguage:ct}},oo([qt,Z,re]));return(0,a.useEffect)(()=>{pn&&ir(!1)},[pn]),pn?Jt?(0,S.m9)(Z?.hideLoading,!1)?null:a.createElement(ra,{color:"--loading-spinner-color"}):a.isValidElement(Dt)?a.cloneElement(Dt,{store:pn}):null:null},Lr={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:Un.uH.breakpoints,showAtBreakpoint:Un.uH.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"
|
|
9488
|
+
`,ki=["path","query","cookie","header"];function Nt({body:F,parameters:Z=[]}){if(F===void 0&&Z===void 0)return null;const Ke=(ir=>{const qt={};return ir.forEach(fn=>{Ko(qt,fn.in,fn)}),qt})(Z),ct=Z.length>0?ki:[],{content:Dt,description:$t,required:Jt}=F||{};return a.createElement(a.Fragment,null,ct.map(ir=>a.createElement(ts,{key:ir,place:ir,parameters:Ke[ir]})),Dt&&a.createElement(ps,{content:Dt,description:$t,required:Jt}))}function Ko(F,Z="",re){F[Z]||(F[Z]=[]),F[Z].push(re)}const Us=({pointer:F,hideSamples:Z})=>{const{options:re,parser:Ke}=useRecoilValue(globalStoreSelector),ct=useRecoilValue(layoutSelector),Dt=getOperation(Ke,{pointer:F,pathName:"",httpVerb:"",pathParameters:[],pathServers:[],isWebhook:!1,responses:{}},void 0,re,""),{content:$t,description:Jt,required:ir}=getRequestBody({parser:Ke,infoOrRef:{$ref:F},options:re,operation:Dt})||{},qt=Z?FullWidthPanel:SamplesMiddlePanel;return React.createElement(Row,{layout:ct},React.createElement(qt,null,$t&&React.createElement(BodyContent,{content:$t,description:Jt,required:ir})),!Z&&React.createElement(SamplesPanel,null,React.createElement(SamplesWrap,null,$t&&React.createElement(PayloadSamples,{content:$t})))||React.createElement("span",null))};var rs=Object.defineProperty,wo=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,en=(F,Z,re)=>Z in F?rs(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,un=(F,Z)=>{for(var re in Z||(Z={}))_e.call(Z,re)&&en(F,re,Z[re]);if(B)for(var re of B(Z))st.call(Z,re)&&en(F,re,Z[re]);return F},jr=(F,Z)=>wo(F,Mi(Z)),Fr=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});const hr=({options:F,children:Z,customOptions:re={}})=>{const Ke=un(un({},F),re),ct=(0,a.useMemo)(()=>({mediaQueries:Ke.mediaQueries,showAtBreakpoint:Ke.showAtBreakpoint}),[Ke.mediaQueries,Ke.showAtBreakpoint]);return a.createElement(_.f6,{theme:ct},Z)},or=({definitions:F,options:Z,definitionUrl:re,definition:Ke,activeSampleLanguage:ct,children:Dt})=>{const[,$t]=(0,a.useState)(),[Jt,ir]=(0,a.useState)(!0),[qt,fn]=(0,a.useState)(null);(0,a.useEffect)(()=>{function Vn(){return Fr(this,null,function*(){ir(!0);try{fn(F?yield vr(F):yield Mr(Ke,re,Z))}catch(Nn){$t(()=>{throw Nn})}})}Vn()},[F,Ke,re,Z]);const pn=(0,a.useMemo)(()=>{var Vn,Nn,$o;if(qt)return(Vn=Z?.hooks)!=null&&Vn.onInit&&(($o=(Nn=Z.hooks)==null?void 0:Nn.onInit)==null||$o.call(Nn,{store:{definition:qt,options:Z,definitionUrl:re,activeSampleLanguage:ct}})),{definition:qt,options:Z,definitionUrl:re,activeSampleLanguage:ct}},oo([qt,Z,re]));return(0,a.useEffect)(()=>{pn&&ir(!1)},[pn]),pn?Jt?(0,S.m9)(Z?.hideLoading,!1)?null:a.createElement(ra,{color:"--loading-spinner-color"}):a.isValidElement(Dt)?a.cloneElement(Dt,{store:pn}):null:null},Lr={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:Un.uH.breakpoints,showAtBreakpoint:Un.uH.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"},"openapi-response":{render:"RedocResponse",attributes:{pointer:{type:String},hideSamples:{type:Boolean},htmlWrap:{type:String,default:!1}}},pullRight:{render:"PullRight",attributes:{htmlWrap:{type:String,default:!1}}},schemaDefinition:{render:"SchemaDefinition",attributes:{schemaRef:{type:String},exampleRef:{type:String},showReadOnly:{type:Boolean},showWriteOnly:{type:Boolean},htmlWrap:{type:String,default:!1}}}},nodes:{heading:{children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1}},transform(F,Z){const re=F.transformAttributes(Z),Ke=F.transformChildren(Z),ct=typeof re.id=="string"?re.id:ko(Ke);return new tr.Vp("Heading",jr(un({},re),{id:ct,level:F.attributes.level}),Ke)}}},components:{SecurityDefinitions:ht,SchemaDefinition:it,RedocResponse:oc,PullRight:vt,Heading:C.Heading}}},xr=(0,a.memo)(({children:F,options:Z,definitionUrl:re,definition:Ke,activeSampleLanguage:ct,portalOptions:Dt})=>{const $t=a.useRef(),Jt=a.useCallback(()=>{var qt;const fn=(0,Qe.normalizeOptions)(un({},Z),Lr),pn=Qr(Ke)?((qt=Ke.versions)==null?void 0:qt.map(({spec:Vn,id:Nn,title:$o,url:go},oa)=>{if(Vn){const Qn=Nn||`Definition_${oa}`;return{id:Qn,title:$o||`Definition_${oa}`,url:go,parser:new Qe.OpenAPIParser(Vn,void 0,jr(un({},fn),{versionId:Qn}))}}}).filter(Boolean))||[]:[{url:re,parser:new Qe.OpenAPIParser(Ke,re,fn)}];return{options:fn,versions:pn}},[Ke,re,Z]),ir=({set:qt})=>{$t.current=qt;const fn=Jt(),pn=fn.options,Vn=JSON.parse((0,S.Y9)("appLocalStore")||"{}"),Nn=JSON.parse((0,S.YQ)("appSessionStore")||"{}");if(qt(fa.zD,{showRightPanelToggle:Nn.showRightPanelToggle||pn.showRightPanelToggle,activeVersionIdx:0}),qt(fa.VB,{layout:Vn.layout||pn.layout,activeSampleLanguage:ct||Vn.activeSampleLanguage||pn.defaultSampleLanguage}),qt(fe.cr,fn),qt(fa.Up,{isSidebarOpened:!1,tryItOperation:void 0,isLoading:!1,activeMimeName:Dt?.defaultMimeType||"",menuNextLinks:[]}),Dt?.operation){const{pointer:$o,activeExampleName:go,activeServer:oa}=Dt.operation;qt((0,Ce.N)($o),{activeExampleName:go,activeOneOf:0,activeServer:oa,requestValues:{}})}};return(0,a.useEffect)(()=>{$t.current&&setTimeout(()=>{$t.current(fe.cr,Jt())},0)},[Jt,Ke]),a.createElement(R.Wh,{initializeState:ir,key:Dt?.definitionId||"openapi"},a.createElement(P.ZP,null),F)}),Qr=F=>"versions"in F,Kt="Invalid license key",Zr=Kt+": missing key",lr="Invalid license key: expired",Pn=lr,Xn="Invalid license key: host not allowed",qn=({licenseInfo:F})=>{const[Z,re]=(0,a.useState)(null),[Ke,ct]=(0,a.useState)(-1),[Dt,$t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{var Jt;if(F.local){$t(!0);return}F.valid?F.allowed?F.expired&&re(F.t?lr:Pn):re(Xn):re(F.valid===!1?Kt+(F.cryptoMissing?": works only with https":""):Zr),F.t&&ct(Math.ceil((((Jt=F?.e)!=null?Jt:0)-Date.now()/1e3)/60/60/24))},[F]),Dt?a.createElement(_o,null,a.createElement("a",{href:"https://redoc.ly"},"Redocly API reference docs")," preview"):!Z&&Ke>-1?a.createElement(_o,null," Trial version: ",Ke," days remaining "):Z?a.createElement(Sn,null,a.createElement("span",null,Z," ",a.createElement("br",null),a.createElement("small",null,"Please contact ",a.createElement("a",{href:"mailto:team@redoc.ly"},"team@redoc.ly")," to remedy the problem."," "))):null},_o=_.ZP.div`
|
|
9489
9489
|
padding: 10px 40px;
|
|
9490
9490
|
position: fixed;
|
|
9491
9491
|
text-align: right;
|
|
@@ -9769,4 +9769,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
9769
9769
|
margin-left: -${Xi}px;
|
|
9770
9770
|
`;var Gu=Jr(51584),Hc=Jr(91885),Qu=Jr(26096),Eu=Jr(84988),Yu=Jr(77703);const _c=["title","description"];function Ju([F,Z]){return _c.includes(F)?null:Array.isArray(Z)?{key:F,value:Z.filter(re=>typeof re!="object").join(", ")}:typeof Z=="object"?null:{key:F,value:Z}}function xu({metadata:F}){const Z=(0,a.useMemo)(()=>Object.entries(F||{}).map(Ju).filter(S.K0),[F]);return F?a.createElement(C.MarkdownWrapper,null,a.createElement(C.H3,null,"Metadata"),a.createElement("table",{className:"md"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",{scope:"col"},"Key"),a.createElement("th",{scope:"col"},"Value"))),a.createElement("tbody",null,Z.map(({key:re,value:Ke})=>a.createElement("tr",{key:re},a.createElement("td",null,re),a.createElement("td",null,`${Ke}`)))))):null}function Xu({item:{infoDefinition:F}}){const{options:{markdownHeadingsAnchorLevel:Z,hooks:re,hideDownloadButton:Ke,expandDefaultServerVariables:ct,mockServer:Dt,hideInfoSection:$t,hideInfoDescription:Jt,showMetadata:ir},parser:{definition:qt,definitionUrl:fn}}=(0,R.sJ)(fe.cS),pn=(0,R.sJ)(fa.JV),Vn=(0,R.sJ)(fa.QL);if(!F||$t)return null;const Nn=Jt?null:(0,Gu.t)((0,Hc.Hm)(F,"description")||"",Z),$o=(0,Hc.Hm)(F,"summary")||void 0,go=qt?.externalDocs,oa=(0,Yu.Dm)(fn,(0,Vc.E$)(qt.servers||[],Dt)),Qn=F.license&&a.createElement(Dc,null,"License:"," ",F.license.identifier?F.license.identifier:a.createElement("a",{href:F.license.url},F.license.name))||null,Pa=F.contact&&F.contact.url&&a.createElement(Dc,null,"URL: ",a.createElement("a",{href:F.contact.url},F.contact.url))||null,Za=F.contact&&F.contact.email&&a.createElement(Dc,null,F.contact.name||"E-mail",":"," ",a.createElement("a",{href:"mailto:"+F.contact.email},F.contact.email))||null,ai=F.termsOfService&&a.createElement(Dc,null,a.createElement("a",{href:F.termsOfService},"Terms of Service"))||null,la=F.version&&a.createElement("span",null,"(",F.version,")")||null;return a.createElement(O.$0,null,a.createElement(O.X2,{layout:Vn},a.createElement(O.K3,{className:"api-info"},a.createElement(Ku,null,F.title," ",la),a.createElement(zt.Q,{Hook:C.AfterOpenApiTitle||re?.AfterApiTitle,props:{info:F}}),!Ke&&a.createElement(Vs.C,{wrapped:!0}),a.createElement(C.MarkdownWrapper,null,(F.license||F.contact||F.termsOfService)&&a.createElement(Zu,null,a.createElement(bu,null,Za," ",Pa," ",Qn," ",ai))||null),$o&&a.createElement(Qo.Markdown,{source:$o,"data-role":"redoc-summary"}),Nn&&a.createElement(Qo.Markdown,{source:Nn,"data-role":"redoc-description"}),go&&a.createElement(bo,{externalDocs:go}),ir&&a.createElement(xu,{metadata:F["x-metadata"]})),pn&&oa.length?a.createElement(qu,{"data-cy":"samples-block"},a.createElement(Eu.s,{className:"panel-try-it",header:"Servers",expanded:!0},a.createElement(Qu.S,{servers:oa,path:"/",expandVariables:!!ct,hideHostname:!1}))):null))}const qu=(0,_.ZP)(O.od)`
|
|
9771
9771
|
margin-top: calc(var(--h1-font-size) * 1.5);
|
|
9772
|
-
`,ed={group:null,tag:os,section:il,schema:os,operation:wd,root:Xu};function Kc({item:F,withChildren:Z=!0}){var re;const Ke=ed[(0,qa.E2)(F)?"root":F.type];return a.createElement(a.Fragment,null,Ke&&a.createElement(O.$0,{id:F.id,sectionId:F.id,underlined:F.type==="operation"||F.type==="schema"},a.createElement(Ke,{item:F})),Z&&!!((re=F.items)!=null&&re.length)&&a.createElement(Od,{items:F.items}))}const cc=(0,a.memo)(Kc);function Cl({showNextButton:F,nextSectionLink:Z,pagination:re}){const{hooks:{MiddlePanelFooter:Ke}}=(0,R.sJ)(fe.lk);switch(!0){case!!Ke:return a.createElement(zt.Q,{Hook:Ke,props:void 0});case!!C.OpenApiFooter:return a.createElement(C.OpenApiFooter,null);case!!(F&&Z):return a.createElement(D,{href:Z?.href||"",label:Z?.name,pagination:re});default:return null}}const Su=(0,a.memo)(Cl);function uc({items:F,pagination:Z,nextSectionLink:re,showNextButton:Ke,hideFooterAndHeader:ct}){const Dt=(0,a.useMemo)(()=>Z===Qe.Pagination.None?F:F?.filter(qt=>qt.type==="section"),[F,Z]),{hooks:{MiddlePanelHeader:$t}}=(0,R.sJ)(fe.lk),Jt=(0,a.useMemo)(()=>ct?null:a.createElement(rt.a_,null,a.createElement(Su,{showNextButton:Ke,pagination:Z,nextSectionLink:re})),[re,Z,Ke,ct]),ir=(0,a.useMemo)(()=>ct||!C.OpenApiHeader&&!$t?null:a.createElement(rt.a_,null,$t?a.createElement(zt.Q,{Hook:$t,props:void 0}):a.createElement(C.OpenApiHeader,null)),[$t,ct]);return Dt.length===0?null:a.createElement(a.Fragment,null,ir,Dt.map(qt=>a.createElement(cc,{key:qt.id,item:qt})),Jt)}function Zc({tag:F,nextSectionLink:Z,pagination:re,showNextButton:Ke}){const{hooks:{MiddlePanelHeader:ct}}=(0,R.sJ)(fe.lk),Dt=(0,a.useMemo)(()=>{const Jt=a.createElement(Su,{showNextButton:Ke,pagination:re,nextSectionLink:Z});return Jt?a.createElement(rt.a_,null,Jt):null},[Z,re,Ke]),$t=(0,a.useMemo)(()=>!C.OpenApiHeader&&!ct?null:a.createElement(rt.a_,null,ct?a.createElement(zt.Q,{Hook:ct,props:void 0}):a.createElement(C.OpenApiHeader,null)),[ct]);return a.createElement(a.Fragment,null,$t,a.createElement(cc,{key:F.id,item:F,withChildren:re!==Qe.Pagination.Item}),re===Qe.Pagination.Item&&a.createElement(uc,{hideFooterAndHeader:!0,items:F.items||[],pagination:re,showNextButton:!1}),Dt)}function td(F){const Z=(0,hn.TH)();(0,a.useEffect)(()=>{if(F)return;let re;return S.Qg&&(Z.hash===""?window.scrollTo(0,0):re=setTimeout(()=>{const Ke=Z.hash.replace("#",""),ct=document.getElementById(decodeURIComponent(Ke));ct&&ct.scrollIntoView()},0)),()=>{clearTimeout(re)}},[F,Z])}let dc=!0;function rd({items:F,root:Z=!1}){const{pagination:re,showNextButton:Ke,disablePaginationLoadingAnimation:ct}=(0,R.sJ)(fe.lk),[Dt,$t]=(0,a.useState)(S.Qg&&!dc&&!ct),Jt=(0,R.sJ)(fa.MO),ir=(0,R.sJ)(fa.Wo);(0,a.useEffect)(()=>{const Qn=setTimeout(()=>{$t(!1)},200);return dc=!1,()=>{clearTimeout(Qn)}},[]),td(Dt);const qt=Jt?`/${Jt}/`:"/",{groupItems:fn,tagItems:pn,operationItems:Vn,rootItem:Nn}=(0,qa.XM)(F),$o=!Z||Nn?qt:(0,qa.X6)(F,qt),go=(0,a.useCallback)(Qn=>Qn?.map(Pa=>{var Za;const ai=(0,qa.Lj)({flatItems:ir,item:Pa});switch(re){case Qe.Pagination.Item:return a.createElement(hn.AW,{key:Pa.id,path:Pa.id},a.createElement(hn.AW,{index:!0,element:Pa.type==="operation"?a.createElement(cc,{key:Pa.id,item:Pa}):a.createElement(Zc,{tag:Pa,nextSectionLink:ai,pagination:re,showNextButton:Ke})}),(Za=Pa.items)==null?void 0:Za.map(la=>a.createElement(hn.AW,{key:la.id,path:la.id,element:a.createElement(Zc,{tag:la,nextSectionLink:(0,qa.Lj)({flatItems:ir,item:la}),pagination:re,showNextButton:Ke})})));case Qe.Pagination.Section:return a.createElement(hn.AW,{key:Pa.id,path:Pa.id,element:a.createElement(Zc,{tag:Pa,nextSectionLink:ai,pagination:re,showNextButton:Ke})});default:return null}}),[ir,re,Ke]),oa=(0,a.useMemo)(()=>a.createElement(hn.Z5,null,Nn&&a.createElement(hn.AW,{path:Nn.href||qt,element:a.createElement(uc,{items:F,nextSectionLink:(0,qa.Lj)({flatItems:ir,item:Nn}),pagination:re,showNextButton:Ke})}),fn.length?fn.map(Qn=>go(Qn.items)):go(pn),Vn.length&&go(Vn),a.createElement(hn.AW,{path:"*",element:a.createElement(hn.Fg,{to:$o,replace:!0})})),[Nn,qt,F,ir,re,Ke,fn,go,pn,Vn,$o]);return Z&&!F.length?a.createElement(hn.Z5,null,a.createElement(hn.AW,{path:"*",element:a.createElement(uc,{items:F,pagination:re,showNextButton:!1})})):F.length?Dt?a.createElement("div",{style:{flex:1,width:"100%"}},a.createElement(O.Od,null)):a.createElement(a.Fragment,null,Z?a.createElement(a.Fragment,null,oa,re===Qe.Pagination.Section&&!!Vn.length&&Vn.map(Qn=>a.createElement(cc,{key:Qn.id,item:Qn}))):F.map(Qn=>a.createElement(cc,{key:Qn.id,item:Qn}))):null}const Od=(0,a.memo)(rd);function bs(F){return F.displayName||F.name||"Component"}var wu=Object.defineProperty,Gc=Object.defineProperties,nd=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,od=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,ad=(F,Z,re)=>Z in F?wu(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Ou=(F,Z)=>{for(var re in Z||(Z={}))od.call(Z,re)&&ad(F,re,Z[re]);if(Fl)for(var re of Fl(Z))Cu.call(Z,re)&&ad(F,re,Z[re]);return F},Pd=(F,Z)=>Gc(F,nd(Z)),id=(F,Z)=>{var re={};for(var Ke in F)od.call(F,Ke)&&Z.indexOf(Ke)<0&&(re[Ke]=F[Ke]);if(F!=null&&Fl)for(var Ke of Fl(F))Z.indexOf(Ke)<0&&Cu.call(F,Ke)&&(re[Ke]=F[Ke]);return re};function sd(F){const Z=re=>{var Ke=re,{enableRouter:ct=!0}=Ke,Dt=id(Ke,["enableRouter"]),$t,Jt;const ir=($t=Dt.basePath)!=null?$t:"/",qt=(Jt=Dt.router)!=null?Jt:"history",{Router:fn,routerProps:pn}=(0,le.tv)(qt,ir);return S.Qg&&ct?a.createElement(fn,Pd(Ou({},pn),{key:ir}),a.createElement(F,Ou({},Dt))):a.createElement(F,Ou({},Dt))};return Z.displayName=`WithRouter(${bs(F)})`,Z}var ld=Object.defineProperty,cd=Object.defineProperties,Pu=Object.getOwnPropertyDescriptors,Lc=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,Ru=(F,Z,re)=>Z in F?ld(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Yc=(F,Z)=>{for(var re in Z||(Z={}))Au.call(Z,re)&&Ru(F,re,Z[re]);if(Lc)for(var re of Lc(Z))Qc.call(Z,re)&&Ru(F,re,Z[re]);return F},Ad=(F,Z)=>cd(F,Pu(Z)),fc=(F,Z)=>{var re={};for(var Ke in F)Au.call(F,Ke)&&Z.indexOf(Ke)<0&&(re[Ke]=F[Ke]);if(F!=null&&Lc)for(var Ke of Lc(F))Z.indexOf(Ke)<0&&Qc.call(F,Ke)&&(re[Ke]=F[Ke]);return re};function Jc(F){return re=>{var Ke=re,{portalOptions:ct}=Ke,Dt=fc(Ke,["portalOptions"]);const[$t,Jt]=(0,R.FV)(fa.QL),[ir,qt]=(0,R.FV)(fa.JV),[fn,pn]=(0,R.FV)(fa.Bk),{options:Vn,versions:Nn}=(0,R.sJ)(fe.cr);(0,a.useEffect)(()=>{ct?.layout&&Jt(ct.layout)},[ct?.layout,Jt]),(0,a.useEffect)(()=>{typeof ct?.collapsedSidebar=="boolean"&&pn(ct.collapsedSidebar)},[ct?.collapsedSidebar,pn]),(0,a.useEffect)(()=>{typeof ct?.showRightPanelToggle=="boolean"&&qt(ct.showRightPanelToggle)},[ct?.showRightPanelToggle,qt]);const[$o,go]=(0,R.FV)(fa.TK),[oa,Qn]=(0,R.FV)(fa.MO),Pa=(0,hn.s0)(),Za=(0,hn.TH)(),ai=(0,a.useCallback)(({idx:yi})=>{if(yi!==void 0){const Es=Nn[yi].id;if(br.Qg&&Es){const{hash:Di,pathname:Oi,search:Pi}=Za;Pa(`${Oi}${Pi}${Di}`.replace(oa,Es))}go(yi)}},[Za,Pa,go,oa,Nn]),{parser:la}=Nn?.[$o]||{};return(0,a.useEffect)(()=>{la?.versionPath&&Qn(la.versionPath)},[la?.versionPath,Qn]),!la||!Nn.length?null:a.createElement(F,Ad(Yc({},Dt),{options:Vn,versions:Nn,layout:$t,showRightPanelToggle:ir,activeVersionIdx:$o,onChangeActiveVersion:ai,collapsedSidebar:fn,parser:la}))}}var Bo=Jr(26225),Zi=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});function gi(F){return"then"in F?F:new Promise(Z=>{F.oncomplete=re=>{Z(re.target.result)}})}function Bi(F){const Z=new ArrayBuffer(F.length),re=new Uint8Array(Z);for(let Ke=0,ct=F.length;Ke<ct;Ke++)re[Ke]=F.charCodeAt(Ke);return Z}const ec=()=>{var F;const Z=Bi(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return gi((F=Bo.EA)==null?void 0:F.subtle.importKey("spki",Z,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function Tu(F){if(window.TextEncoder)return new TextEncoder().encode(F);const Z=unescape(encodeURIComponent(F)),re=new Uint8Array(Z.length);for(let Ke=0;Ke<Z.length;Ke++)re[Ke]=Z.charCodeAt(Ke);return re}function $i(F,Z){return Zi(this,null,function*(){var re;return gi((re=Bo.EA)==null?void 0:re.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield ec(),Bi(atob(Z)),Tu(F)))})}function Mc(F,Z){return Z===!0?!0:Array.isArray(Z)&&typeof window<"u"?F==="localhost"||F==="127.0.0.1"||F.endsWith(".localhost")||Z.find(re=>re===F||F.endsWith("."+re))?!0:!!Z.find(re=>{if(re.indexOf("*")!==re.lastIndexOf("*"))return;const[Ke,ct]=re.split("*");return ct&&F.startsWith(Ke)&&F.endsWith(ct)&&ct.split(".").length>2}):!1}function pc(F){return Zi(this,null,function*(){const Z=window.location.hostname;if(!F)return Z==="localhost"||Z==="127.0.0.1"||Z.endsWith(".localhost")?{local:!0}:{};const[re,Ke]=F.split(".");let ct;try{if(!(yield $i(atob(re),Ke)))return{valid:!1};ct=JSON.parse(atob(re))}catch{return{valid:!1,cryptoMissing:!0}}return ct.valid=!0,(!ct.e||Date.now()/1e3>ct.e)&&(ct.expired=!0),ct.allowed=Mc(Z,ct.h),ct})}var hc=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});function mc(F){const[Z,re]=(0,a.useState)({});return(0,a.useEffect)(()=>{function Ke(){return hc(this,null,function*(){const ct=yield pc(F);re(ct)})}Ke()},[F]),{licenseInfo:Z,isValid:ku(Z)}}function ku(F){return F.valid&&F.allowed&&!F.expired||!!F.local}var Iu=Object.defineProperty,Fc=Object.getOwnPropertySymbols,tc=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,eo=(F,Z,re)=>Z in F?Iu(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Xc=(F,Z)=>{for(var re in Z||(Z={}))tc.call(Z,re)&&eo(F,re,Z[re]);if(Fc)for(var re of Fc(Z))ll.call(Z,re)&&eo(F,re,Z[re]);return F};const qc=(0,S.qC)(sd,Jc,a.memo)(({licenseKey:F,onLoaded:Z,children:re,options:Ke,versions:ct,layout:Dt,showRightPanelToggle:$t,activeVersionIdx:Jt,onChangeActiveVersion:ir,collapsedSidebar:qt,parser:fn})=>{var pn,Vn,Nn,$o,go;const oa=(0,R.N1)();globalThis.__redoclyPostSsrCleanUp=()=>{if(!oa.current)return;const kl=oa.current;(0,R.G9)(kl)};const Qn=(0,a.useRef)(null),{isValid:Pa,licenseInfo:Za}=mc(F);(0,C.useMount)(()=>{Z?.()});const{disableSidebar:ai,whiteLabel:la,hideLogo:yi,hideFab:Es,scrollYOffset:Di}=Ke||{},{flatItems:Oi,contentItems:Pi}=(0,le.le)({parser:fn,options:Ke}),Ui=(Vn=(pn=fn.definition)==null?void 0:pn.info)==null?void 0:Vn["x-logo"];return a.createElement(hr,{options:Ke},a.createElement(C.GlobalStyle,null),a.createElement(yl,{className:"redoc-wrap",ref:Qn},!Pa&&a.createElement(qn,{licenseInfo:Za}),a.createElement(hs,{whiteLabel:la,showRightPanelToggle:$t,layout:Dt}),!ai&&a.createElement(ns,{hideFab:Es,scrollYOffset:Di,className:"menu-content",collapsedSidebar:!qt},!yi&&a.createElement(C.SidebarLogo,{imageUrl:Ui?.url,href:Ui?.href||((go=($o=(Nn=fn.definition)==null?void 0:Nn.info)==null?void 0:$o.contact)==null?void 0:go.url),altText:Ui?.altText,backgroundColor:Ui?.backgroundColor}),ct.length>1&&a.createElement(pa,{versions:ct,activeVersionIdx:Jt,onChange:ir}),a.createElement(ft,{contentItems:Pi,flatItems:Oi,options:Ke}),a.createElement(We,{items:Pa?Pi:[]})),a.createElement(wi,{className:"api-content",id:"api-content",layout:Dt===C.LayoutVariant.THREE_PANEL&&$t?C.LayoutVariant.THREE_PANEL:C.LayoutVariant.STACKED,collapsedSidebar:qt},$t&&Dt!==C.LayoutVariant.STACKED&&a.createElement(gl,null),a.createElement(Od,{root:!0,items:Pa?Pi:[]}),re),$t&&Dt!==C.LayoutVariant.STACKED&&a.createElement(Ci,null)))});function ji({onLoaded:F,children:Z,store:re}){var Ke,ct,Dt;return re?.definition?a.createElement(xr,Xc({},re),a.createElement(qc,{onLoaded:F,basePath:(Ke=re.options)==null?void 0:Ke.routingBasePath,licenseKey:(ct=re.options)==null?void 0:ct.licenseKey,enableRouter:(Dt=re.options)==null?void 0:Dt.enableRouter,portalOptions:re?.portalOptions},Z)):null}function Nl({definition:F,definitionUrl:Z,options:re={},activeItemId:Ke,activeSampleLanguage:ct,activeDeepLink:Dt}){const $t=a.createElement(or,{definition:F,definitionUrl:Z,options:re,activeItemId:Ke,activeSampleLanguage:ct,activeDeepLink:Dt},a.createElement(ji,null));return re.disableErrorBoundary?$t:a.createElement(oi,null,$t)}var vc=Jr(82828),gc=Jr(7964),rc=Jr(64393);function eu({definitions:F,options:Z={}}){return a.createElement(oi,null,a.createElement(or,{definitions:F,options:Z},a.createElement(ji,null)))}var Ol=Object.defineProperty,Ws=Object.defineProperties,cl=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,bc=(F,Z,re)=>Z in F?Ol(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Al=(F,Z)=>{for(var re in Z||(Z={}))Pl.call(Z,re)&&bc(F,re,Z[re]);if(yc)for(var re of yc(Z))tu.call(Z,re)&&bc(F,re,Z[re]);return F},as=(F,Z)=>Ws(F,cl(Z));function Rl(F){const Z=(0,P.$l)(fa.VB);(0,P.z8)(fa.VB,as(Al({},Z),{layout:F}))}function Bl(F){const Z=(0,P.$l)(fa.zD);(0,P.z8)(fa.zD,as(Al({},Z),{showRightPanelToggle:F}))}const Nc=(0,S.uW)(),Gi=Nc?(0,x.dirname)(Nc)+"/":"";function ud(F){const Z={},re=F.attributes;for(let Ke=0;Ke<re.length;Ke++){const ct=re[Ke];Z[ct.name]=ct.value}return Z}function Tl(F){const Z=ud(F),re={};for(const Ke in Z){const ct=Ke.replace(/-(.)/g,(Dt,$t)=>$t.toUpperCase());re[ct]=Z[Ke]}return re}function Du(F,Z=document.querySelector("redoc")){(0,w.hydrate)(a.createElement(ji,{store:F}),Z)}function _u(F,Z={},re=(0,S.R2)("redoc"),Ke){if(re===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ct,Dt;if(typeof F=="object"&&"versions"in F){(0,w.render)(a.createElement(eu,{definitions:F,options:Al(Al({},Z),Tl(re))},["Loading..."]),re,Ke);return}typeof F=="string"?ct=F:typeof F=="object"&&(Dt=F),(0,w.render)(a.createElement(Nl,{definition:Dt,definitionUrl:ct,options:Al(Al({},Z),Tl(re))},["Loading..."]),re,Ke)}function Lu(F){Jr.p=F}const dd="3.0.0-alpha.68",ru="3874ddb08";function Mu(){const F=(0,S.R2)("redoc");if(!F)return;const Z=F.getAttribute("spec-url");Z&&_u(Z,{},F)}S.Qg&&Lu(Gi),Mu()})(),Ld})());
|
|
9772
|
+
`,ed={group:null,tag:os,section:il,schema:os,operation:wd,root:Xu};function Kc({item:F,withChildren:Z=!0}){var re;const Ke=ed[(0,qa.E2)(F)?"root":F.type];return a.createElement(a.Fragment,null,Ke&&a.createElement(O.$0,{id:F.id,sectionId:F.id,underlined:F.type==="operation"||F.type==="schema"},a.createElement(Ke,{item:F})),Z&&!!((re=F.items)!=null&&re.length)&&a.createElement(Od,{items:F.items}))}const cc=(0,a.memo)(Kc);function Cl({showNextButton:F,nextSectionLink:Z,pagination:re}){const{hooks:{MiddlePanelFooter:Ke}}=(0,R.sJ)(fe.lk);switch(!0){case!!Ke:return a.createElement(zt.Q,{Hook:Ke,props:void 0});case!!C.OpenApiFooter:return a.createElement(C.OpenApiFooter,null);case!!(F&&Z):return a.createElement(D,{href:Z?.href||"",label:Z?.name,pagination:re});default:return null}}const Su=(0,a.memo)(Cl);function uc({items:F,pagination:Z,nextSectionLink:re,showNextButton:Ke,hideFooterAndHeader:ct}){const Dt=(0,a.useMemo)(()=>Z===Qe.Pagination.None?F:F?.filter(qt=>qt.type==="section"),[F,Z]),{hooks:{MiddlePanelHeader:$t}}=(0,R.sJ)(fe.lk),Jt=(0,a.useMemo)(()=>ct?null:a.createElement(rt.a_,null,a.createElement(Su,{showNextButton:Ke,pagination:Z,nextSectionLink:re})),[re,Z,Ke,ct]),ir=(0,a.useMemo)(()=>ct||!C.OpenApiHeader&&!$t?null:a.createElement(rt.a_,null,$t?a.createElement(zt.Q,{Hook:$t,props:void 0}):a.createElement(C.OpenApiHeader,null)),[$t,ct]);return Dt.length===0?null:a.createElement(a.Fragment,null,ir,Dt.map(qt=>a.createElement(cc,{key:qt.id,item:qt})),Jt)}function Zc({tag:F,nextSectionLink:Z,pagination:re,showNextButton:Ke}){const{hooks:{MiddlePanelHeader:ct}}=(0,R.sJ)(fe.lk),Dt=(0,a.useMemo)(()=>{const Jt=a.createElement(Su,{showNextButton:Ke,pagination:re,nextSectionLink:Z});return Jt?a.createElement(rt.a_,null,Jt):null},[Z,re,Ke]),$t=(0,a.useMemo)(()=>!C.OpenApiHeader&&!ct?null:a.createElement(rt.a_,null,ct?a.createElement(zt.Q,{Hook:ct,props:void 0}):a.createElement(C.OpenApiHeader,null)),[ct]);return a.createElement(a.Fragment,null,$t,a.createElement(cc,{key:F.id,item:F,withChildren:re!==Qe.Pagination.Item}),re===Qe.Pagination.Item&&a.createElement(uc,{hideFooterAndHeader:!0,items:F.items||[],pagination:re,showNextButton:!1}),Dt)}function td(F){const Z=(0,hn.TH)();(0,a.useEffect)(()=>{if(F)return;let re;return S.Qg&&(Z.hash===""?window.scrollTo(0,0):re=setTimeout(()=>{const Ke=Z.hash.replace("#",""),ct=document.getElementById(decodeURIComponent(Ke));ct&&ct.scrollIntoView()},0)),()=>{clearTimeout(re)}},[F,Z])}let dc=!0;function rd({items:F,root:Z=!1}){const{pagination:re,showNextButton:Ke,disablePaginationLoadingAnimation:ct}=(0,R.sJ)(fe.lk),[Dt,$t]=(0,a.useState)(S.Qg&&!dc&&!ct),Jt=(0,R.sJ)(fa.MO),ir=(0,R.sJ)(fa.Wo);(0,a.useEffect)(()=>{const Qn=setTimeout(()=>{$t(!1)},200);return dc=!1,()=>{clearTimeout(Qn)}},[]),td(Dt);const qt=Jt?`/${Jt}/`:"/",{groupItems:fn,tagItems:pn,operationItems:Vn,rootItem:Nn}=(0,qa.XM)(F),$o=!Z||Nn?qt:(0,qa.X6)(F,qt),go=(0,a.useCallback)(Qn=>Qn?.map(Pa=>{var Za;const ai=(0,qa.Lj)({flatItems:ir,item:Pa});switch(re){case Qe.Pagination.Item:return a.createElement(hn.AW,{key:Pa.id,path:Pa.id},a.createElement(hn.AW,{index:!0,element:Pa.type==="operation"?a.createElement(cc,{key:Pa.id,item:Pa}):a.createElement(Zc,{tag:Pa,nextSectionLink:ai,pagination:re,showNextButton:Ke})}),(Za=Pa.items)==null?void 0:Za.map(la=>a.createElement(hn.AW,{key:la.id,path:la.id,element:a.createElement(Zc,{tag:la,nextSectionLink:(0,qa.Lj)({flatItems:ir,item:la}),pagination:re,showNextButton:Ke})})));case Qe.Pagination.Section:return a.createElement(hn.AW,{key:Pa.id,path:Pa.id,element:a.createElement(Zc,{tag:Pa,nextSectionLink:ai,pagination:re,showNextButton:Ke})});default:return null}}),[ir,re,Ke]),oa=(0,a.useMemo)(()=>a.createElement(hn.Z5,null,Nn&&a.createElement(hn.AW,{path:Nn.href||qt,element:a.createElement(uc,{items:F,nextSectionLink:(0,qa.Lj)({flatItems:ir,item:Nn}),pagination:re,showNextButton:Ke})}),fn.length?fn.map(Qn=>go(Qn.items)):go(pn),Vn.length&&go(Vn),a.createElement(hn.AW,{path:"*",element:a.createElement(hn.Fg,{to:$o,replace:!0})})),[Nn,qt,F,ir,re,Ke,fn,go,pn,Vn,$o]);return Z&&!F.length?a.createElement(hn.Z5,null,a.createElement(hn.AW,{path:"*",element:a.createElement(uc,{items:F,pagination:re,showNextButton:!1})})):F.length?Dt?a.createElement("div",{style:{flex:1,width:"100%"}},a.createElement(O.Od,null)):a.createElement(a.Fragment,null,Z?a.createElement(a.Fragment,null,oa,re===Qe.Pagination.Section&&!!Vn.length&&Vn.map(Qn=>a.createElement(cc,{key:Qn.id,item:Qn}))):F.map(Qn=>a.createElement(cc,{key:Qn.id,item:Qn}))):null}const Od=(0,a.memo)(rd);function bs(F){return F.displayName||F.name||"Component"}var wu=Object.defineProperty,Gc=Object.defineProperties,nd=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,od=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,ad=(F,Z,re)=>Z in F?wu(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Ou=(F,Z)=>{for(var re in Z||(Z={}))od.call(Z,re)&&ad(F,re,Z[re]);if(Fl)for(var re of Fl(Z))Cu.call(Z,re)&&ad(F,re,Z[re]);return F},Pd=(F,Z)=>Gc(F,nd(Z)),id=(F,Z)=>{var re={};for(var Ke in F)od.call(F,Ke)&&Z.indexOf(Ke)<0&&(re[Ke]=F[Ke]);if(F!=null&&Fl)for(var Ke of Fl(F))Z.indexOf(Ke)<0&&Cu.call(F,Ke)&&(re[Ke]=F[Ke]);return re};function sd(F){const Z=re=>{var Ke=re,{enableRouter:ct=!0}=Ke,Dt=id(Ke,["enableRouter"]),$t,Jt;const ir=($t=Dt.basePath)!=null?$t:"/",qt=(Jt=Dt.router)!=null?Jt:"history",{Router:fn,routerProps:pn}=(0,le.tv)(qt,ir);return S.Qg&&ct?a.createElement(fn,Pd(Ou({},pn),{key:ir}),a.createElement(F,Ou({},Dt))):a.createElement(F,Ou({},Dt))};return Z.displayName=`WithRouter(${bs(F)})`,Z}var ld=Object.defineProperty,cd=Object.defineProperties,Pu=Object.getOwnPropertyDescriptors,Lc=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,Ru=(F,Z,re)=>Z in F?ld(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Yc=(F,Z)=>{for(var re in Z||(Z={}))Au.call(Z,re)&&Ru(F,re,Z[re]);if(Lc)for(var re of Lc(Z))Qc.call(Z,re)&&Ru(F,re,Z[re]);return F},Ad=(F,Z)=>cd(F,Pu(Z)),fc=(F,Z)=>{var re={};for(var Ke in F)Au.call(F,Ke)&&Z.indexOf(Ke)<0&&(re[Ke]=F[Ke]);if(F!=null&&Lc)for(var Ke of Lc(F))Z.indexOf(Ke)<0&&Qc.call(F,Ke)&&(re[Ke]=F[Ke]);return re};function Jc(F){return re=>{var Ke=re,{portalOptions:ct}=Ke,Dt=fc(Ke,["portalOptions"]);const[$t,Jt]=(0,R.FV)(fa.QL),[ir,qt]=(0,R.FV)(fa.JV),[fn,pn]=(0,R.FV)(fa.Bk),{options:Vn,versions:Nn}=(0,R.sJ)(fe.cr);(0,a.useEffect)(()=>{ct?.layout&&Jt(ct.layout)},[ct?.layout,Jt]),(0,a.useEffect)(()=>{typeof ct?.collapsedSidebar=="boolean"&&pn(ct.collapsedSidebar)},[ct?.collapsedSidebar,pn]),(0,a.useEffect)(()=>{typeof ct?.showRightPanelToggle=="boolean"&&qt(ct.showRightPanelToggle)},[ct?.showRightPanelToggle,qt]);const[$o,go]=(0,R.FV)(fa.TK),[oa,Qn]=(0,R.FV)(fa.MO),Pa=(0,hn.s0)(),Za=(0,hn.TH)(),ai=(0,a.useCallback)(({idx:yi})=>{if(yi!==void 0){const Es=Nn[yi].id;if(br.Qg&&Es){const{hash:Di,pathname:Oi,search:Pi}=Za;Pa(`${Oi}${Pi}${Di}`.replace(oa,Es))}go(yi)}},[Za,Pa,go,oa,Nn]),{parser:la}=Nn?.[$o]||{};return(0,a.useEffect)(()=>{la?.versionPath&&Qn(la.versionPath)},[la?.versionPath,Qn]),!la||!Nn.length?null:a.createElement(F,Ad(Yc({},Dt),{options:Vn,versions:Nn,layout:$t,showRightPanelToggle:ir,activeVersionIdx:$o,onChangeActiveVersion:ai,collapsedSidebar:fn,parser:la}))}}var Bo=Jr(26225),Zi=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});function gi(F){return"then"in F?F:new Promise(Z=>{F.oncomplete=re=>{Z(re.target.result)}})}function Bi(F){const Z=new ArrayBuffer(F.length),re=new Uint8Array(Z);for(let Ke=0,ct=F.length;Ke<ct;Ke++)re[Ke]=F.charCodeAt(Ke);return Z}const ec=()=>{var F;const Z=Bi(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return gi((F=Bo.EA)==null?void 0:F.subtle.importKey("spki",Z,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function Tu(F){if(window.TextEncoder)return new TextEncoder().encode(F);const Z=unescape(encodeURIComponent(F)),re=new Uint8Array(Z.length);for(let Ke=0;Ke<Z.length;Ke++)re[Ke]=Z.charCodeAt(Ke);return re}function $i(F,Z){return Zi(this,null,function*(){var re;return gi((re=Bo.EA)==null?void 0:re.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield ec(),Bi(atob(Z)),Tu(F)))})}function Mc(F,Z){return Z===!0?!0:Array.isArray(Z)&&typeof window<"u"?F==="localhost"||F==="127.0.0.1"||F.endsWith(".localhost")||Z.find(re=>re===F||F.endsWith("."+re))?!0:!!Z.find(re=>{if(re.indexOf("*")!==re.lastIndexOf("*"))return;const[Ke,ct]=re.split("*");return ct&&F.startsWith(Ke)&&F.endsWith(ct)&&ct.split(".").length>2}):!1}function pc(F){return Zi(this,null,function*(){const Z=window.location.hostname;if(!F)return Z==="localhost"||Z==="127.0.0.1"||Z.endsWith(".localhost")?{local:!0}:{};const[re,Ke]=F.split(".");let ct;try{if(!(yield $i(atob(re),Ke)))return{valid:!1};ct=JSON.parse(atob(re))}catch{return{valid:!1,cryptoMissing:!0}}return ct.valid=!0,(!ct.e||Date.now()/1e3>ct.e)&&(ct.expired=!0),ct.allowed=Mc(Z,ct.h),ct})}var hc=(F,Z,re)=>new Promise((Ke,ct)=>{var Dt=ir=>{try{Jt(re.next(ir))}catch(qt){ct(qt)}},$t=ir=>{try{Jt(re.throw(ir))}catch(qt){ct(qt)}},Jt=ir=>ir.done?Ke(ir.value):Promise.resolve(ir.value).then(Dt,$t);Jt((re=re.apply(F,Z)).next())});function mc(F){const[Z,re]=(0,a.useState)({});return(0,a.useEffect)(()=>{function Ke(){return hc(this,null,function*(){const ct=yield pc(F);re(ct)})}Ke()},[F]),{licenseInfo:Z,isValid:ku(Z)}}function ku(F){return F.valid&&F.allowed&&!F.expired||!!F.local}var Iu=Object.defineProperty,Fc=Object.getOwnPropertySymbols,tc=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,eo=(F,Z,re)=>Z in F?Iu(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Xc=(F,Z)=>{for(var re in Z||(Z={}))tc.call(Z,re)&&eo(F,re,Z[re]);if(Fc)for(var re of Fc(Z))ll.call(Z,re)&&eo(F,re,Z[re]);return F};const qc=(0,S.qC)(sd,Jc,a.memo)(({licenseKey:F,onLoaded:Z,children:re,options:Ke,versions:ct,layout:Dt,showRightPanelToggle:$t,activeVersionIdx:Jt,onChangeActiveVersion:ir,collapsedSidebar:qt,parser:fn})=>{var pn,Vn,Nn,$o,go;const oa=(0,R.N1)();globalThis.__redoclyPostSsrCleanUp=()=>{if(!oa.current)return;const kl=oa.current;(0,R.G9)(kl)};const Qn=(0,a.useRef)(null),{isValid:Pa,licenseInfo:Za}=mc(F);(0,C.useMount)(()=>{Z?.()});const{disableSidebar:ai,whiteLabel:la,hideLogo:yi,hideFab:Es,scrollYOffset:Di}=Ke||{},{flatItems:Oi,contentItems:Pi}=(0,le.le)({parser:fn,options:Ke}),Ui=(Vn=(pn=fn.definition)==null?void 0:pn.info)==null?void 0:Vn["x-logo"];return a.createElement(hr,{options:Ke},a.createElement(C.GlobalStyle,null),a.createElement(yl,{className:"redoc-wrap",ref:Qn},!Pa&&a.createElement(qn,{licenseInfo:Za}),a.createElement(hs,{whiteLabel:la,showRightPanelToggle:$t,layout:Dt}),!ai&&a.createElement(ns,{hideFab:Es,scrollYOffset:Di,className:"menu-content",collapsedSidebar:!qt},!yi&&a.createElement(C.SidebarLogo,{imageUrl:Ui?.url,href:Ui?.href||((go=($o=(Nn=fn.definition)==null?void 0:Nn.info)==null?void 0:$o.contact)==null?void 0:go.url),altText:Ui?.altText,backgroundColor:Ui?.backgroundColor}),ct.length>1&&a.createElement(pa,{versions:ct,activeVersionIdx:Jt,onChange:ir}),a.createElement(ft,{contentItems:Pi,flatItems:Oi,options:Ke}),a.createElement(We,{items:Pa?Pi:[]})),a.createElement(wi,{className:"api-content",id:"api-content",layout:Dt===C.LayoutVariant.THREE_PANEL&&$t?C.LayoutVariant.THREE_PANEL:C.LayoutVariant.STACKED,collapsedSidebar:qt},$t&&Dt!==C.LayoutVariant.STACKED&&a.createElement(gl,null),a.createElement(Od,{root:!0,items:Pa?Pi:[]}),re),$t&&Dt!==C.LayoutVariant.STACKED&&a.createElement(Ci,null)))});function ji({onLoaded:F,children:Z,store:re}){var Ke,ct,Dt;return re?.definition?a.createElement(xr,Xc({},re),a.createElement(qc,{onLoaded:F,basePath:(Ke=re.options)==null?void 0:Ke.routingBasePath,licenseKey:(ct=re.options)==null?void 0:ct.licenseKey,enableRouter:(Dt=re.options)==null?void 0:Dt.enableRouter,portalOptions:re?.portalOptions},Z)):null}function Nl({definition:F,definitionUrl:Z,options:re={},activeItemId:Ke,activeSampleLanguage:ct,activeDeepLink:Dt}){const $t=a.createElement(or,{definition:F,definitionUrl:Z,options:re,activeItemId:Ke,activeSampleLanguage:ct,activeDeepLink:Dt},a.createElement(ji,null));return re.disableErrorBoundary?$t:a.createElement(oi,null,$t)}var vc=Jr(82828),gc=Jr(7964),rc=Jr(64393);function eu({definitions:F,options:Z={}}){return a.createElement(oi,null,a.createElement(or,{definitions:F,options:Z},a.createElement(ji,null)))}var Ol=Object.defineProperty,Ws=Object.defineProperties,cl=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,bc=(F,Z,re)=>Z in F?Ol(F,Z,{enumerable:!0,configurable:!0,writable:!0,value:re}):F[Z]=re,Al=(F,Z)=>{for(var re in Z||(Z={}))Pl.call(Z,re)&&bc(F,re,Z[re]);if(yc)for(var re of yc(Z))tu.call(Z,re)&&bc(F,re,Z[re]);return F},as=(F,Z)=>Ws(F,cl(Z));function Rl(F){const Z=(0,P.$l)(fa.VB);(0,P.z8)(fa.VB,as(Al({},Z),{layout:F}))}function Bl(F){const Z=(0,P.$l)(fa.zD);(0,P.z8)(fa.zD,as(Al({},Z),{showRightPanelToggle:F}))}const Nc=(0,S.uW)(),Gi=Nc?(0,x.dirname)(Nc)+"/":"";function ud(F){const Z={},re=F.attributes;for(let Ke=0;Ke<re.length;Ke++){const ct=re[Ke];Z[ct.name]=ct.value}return Z}function Tl(F){const Z=ud(F),re={};for(const Ke in Z){const ct=Ke.replace(/-(.)/g,(Dt,$t)=>$t.toUpperCase());re[ct]=Z[Ke]}return re}function Du(F,Z=document.querySelector("redoc")){(0,w.hydrate)(a.createElement(ji,{store:F}),Z)}function _u(F,Z={},re=(0,S.R2)("redoc"),Ke){if(re===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ct,Dt;if(typeof F=="object"&&"versions"in F){(0,w.render)(a.createElement(eu,{definitions:F,options:Al(Al({},Z),Tl(re))},["Loading..."]),re,Ke);return}typeof F=="string"?ct=F:typeof F=="object"&&(Dt=F),(0,w.render)(a.createElement(Nl,{definition:Dt,definitionUrl:ct,options:Al(Al({},Z),Tl(re))},["Loading..."]),re,Ke)}function Lu(F){Jr.p=F}const dd="3.0.0-alpha.69",ru="4c903a8";function Mu(){const F=(0,S.R2)("redoc");if(!F)return;const Z=F.getAttribute("spec-url");Z&&_u(Z,{},F)}S.Qg&&Lu(Gi),Mu()})(),Ld})());
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&__createBinding(t,e,i);return __setModuleDefault(t,e),t},__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StoreProvider=exports.AppProvider=exports.ThemeProviders=void 0;const styled_components_1=require("styled-components"),react_1=__importStar(require("react")),markdoc_1=require("@markdoc/markdoc"),theme_1=require("@redocly/theme"),recoil_1=require("@redocly/recoil"),nexus_1=__importDefault(require("../../recoil/nexus")),services_1=require("../../services"),utils_1=require("./utils"),utils_2=require("../../utils"),Loading_1=require("../Loading"),constants_1=require("../../constants"),SecurityRequirement_1=require("../SecurityRequirement"),SchemaDefinition_1=require("../SchemaDefinition"),pluggable_1=require("../pluggable"),app_1=require("../../recoil/app"),store_1=require("../../recoil/store"),operation_1=require("../../recoil/operation"),ThemeProviders=({options:e,children:t,customOptions:i={}})=>{const r=Object.assign(Object.assign({},e),i),n=(0,react_1.useMemo)((()=>({mediaQueries:r.mediaQueries,showAtBreakpoint:r.showAtBreakpoint})),[r.mediaQueries,r.showAtBreakpoint]);return react_1.default.createElement(styled_components_1.ThemeProvider,{theme:n},t)};exports.ThemeProviders=ThemeProviders;const AppProvider=({definitions:e,options:t,definitionUrl:i,definition:r,activeSampleLanguage:n,children:o})=>{const[,a]=(0,react_1.useState)(),[s,l]=(0,react_1.useState)(!0),[u,c]=(0,react_1.useState)(null);(0,react_1.useEffect)((()=>{!function(){__awaiter(this,void 0,void 0,(function*(){l(!0);try{c(e?yield(0,utils_1.loadMany)(e):yield(0,utils_1.loadSingle)(r,i,t))}catch(e){a((()=>{throw e}))}}))}()}),[e,r,i,t]);const d=(0,react_1.useMemo)((()=>{var e,r,o;if(u)return(null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.onInit)&&(null===(o=null===(r=t.hooks)||void 0===r?void 0:r.onInit)||void 0===o||o.call(r,{store:{definition:u,options:t,definitionUrl:i,activeSampleLanguage:n}})),{definition:u,options:t,definitionUrl:i,activeSampleLanguage:n}}),(0,utils_1.useDeepCompareMemoize)([u,t,i]));return(0,react_1.useEffect)((()=>{d&&l(!1)}),[d]),d?s?(0,utils_2.argValueToBoolean)(null==t?void 0:t.hideLoading,!1)?null:react_1.default.createElement(Loading_1.Loading,{color:"--loading-spinner-color"}):react_1.default.isValidElement(o)?react_1.default.cloneElement(o,{store:d}):null:null};exports.AppProvider=AppProvider;const DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:constants_1.defaultTheme.breakpoints,showAtBreakpoint:constants_1.defaultTheme.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&__createBinding(t,e,i);return __setModuleDefault(t,e),t},__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StoreProvider=exports.AppProvider=exports.ThemeProviders=void 0;const styled_components_1=require("styled-components"),react_1=__importStar(require("react")),markdoc_1=require("@markdoc/markdoc"),theme_1=require("@redocly/theme"),recoil_1=require("@redocly/recoil"),nexus_1=__importDefault(require("../../recoil/nexus")),services_1=require("../../services"),utils_1=require("./utils"),utils_2=require("../../utils"),Loading_1=require("../Loading"),constants_1=require("../../constants"),SecurityRequirement_1=require("../SecurityRequirement"),SchemaDefinition_1=require("../SchemaDefinition"),pluggable_1=require("../pluggable"),app_1=require("../../recoil/app"),store_1=require("../../recoil/store"),operation_1=require("../../recoil/operation"),ThemeProviders=({options:e,children:t,customOptions:i={}})=>{const r=Object.assign(Object.assign({},e),i),n=(0,react_1.useMemo)((()=>({mediaQueries:r.mediaQueries,showAtBreakpoint:r.showAtBreakpoint})),[r.mediaQueries,r.showAtBreakpoint]);return react_1.default.createElement(styled_components_1.ThemeProvider,{theme:n},t)};exports.ThemeProviders=ThemeProviders;const AppProvider=({definitions:e,options:t,definitionUrl:i,definition:r,activeSampleLanguage:n,children:o})=>{const[,a]=(0,react_1.useState)(),[s,l]=(0,react_1.useState)(!0),[u,c]=(0,react_1.useState)(null);(0,react_1.useEffect)((()=>{!function(){__awaiter(this,void 0,void 0,(function*(){l(!0);try{c(e?yield(0,utils_1.loadMany)(e):yield(0,utils_1.loadSingle)(r,i,t))}catch(e){a((()=>{throw e}))}}))}()}),[e,r,i,t]);const d=(0,react_1.useMemo)((()=>{var e,r,o;if(u)return(null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.onInit)&&(null===(o=null===(r=t.hooks)||void 0===r?void 0:r.onInit)||void 0===o||o.call(r,{store:{definition:u,options:t,definitionUrl:i,activeSampleLanguage:n}})),{definition:u,options:t,definitionUrl:i,activeSampleLanguage:n}}),(0,utils_1.useDeepCompareMemoize)([u,t,i]));return(0,react_1.useEffect)((()=>{d&&l(!1)}),[d]),d?s?(0,utils_2.argValueToBoolean)(null==t?void 0:t.hideLoading,!1)?null:react_1.default.createElement(Loading_1.Loading,{color:"--loading-spinner-color"}):react_1.default.isValidElement(o)?react_1.default.cloneElement(o,{store:d}):null:null};exports.AppProvider=AppProvider;const DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:constants_1.defaultTheme.breakpoints,showAtBreakpoint:constants_1.defaultTheme.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"},"openapi-response":{render:"RedocResponse",attributes:{pointer:{type:String},hideSamples:{type:Boolean},htmlWrap:{type:String,default:!1}}},pullRight:{render:"PullRight",attributes:{htmlWrap:{type:String,default:!1}}},schemaDefinition:{render:"SchemaDefinition",attributes:{schemaRef:{type:String},exampleRef:{type:String},showReadOnly:{type:Boolean},showWriteOnly:{type:Boolean},htmlWrap:{type:String,default:!1}}}},nodes:{heading:{children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1}},transform(e,t){const i=e.transformAttributes(t),r=e.transformChildren(t),n="string"==typeof i.id?i.id:(0,utils_1.getMarkdownHeaderId)(r);return new markdoc_1.Tag("Heading",Object.assign(Object.assign({},i),{id:n,level:e.attributes.level}),r)}}},components:{SecurityDefinitions:SecurityRequirement_1.SecurityDefs,SchemaDefinition:SchemaDefinition_1.SchemaDefinition,RedocResponse:pluggable_1.RedocResponse,PullRight:pluggable_1.PullRight,Heading:theme_1.Heading}}};exports.StoreProvider=(0,react_1.memo)((({children:e,options:t,definitionUrl:i,definition:r,activeSampleLanguage:n,portalOptions:o})=>{const a=react_1.default.useRef(),s=react_1.default.useCallback((()=>{var e;const n=(0,services_1.normalizeOptions)(Object.assign({},t),DEFAULT_OPTIONS),o=isVersioned(r)?(null===(e=r.versions)||void 0===e?void 0:e.map((({spec:e,id:t,title:i,url:r},o)=>{if(e){const a=t||`Definition_${o}`;return{id:a,title:i||`Definition_${o}`,url:r,parser:new services_1.OpenAPIParser(e,void 0,Object.assign(Object.assign({},n),{versionId:a}))}}})).filter(Boolean))||[]:[{url:i,parser:new services_1.OpenAPIParser(r,i,n)}];return{options:n,versions:o}}),[r,i,t]);return(0,react_1.useEffect)((()=>{a.current&&setTimeout((()=>{a.current(store_1.globalStore,s())}),0)}),[s,r]),react_1.default.createElement(recoil_1.RecoilRoot,{initializeState:({set:e})=>{a.current=e;const t=s(),i=t.options,r=JSON.parse((0,utils_2.fromLocalStorage)("appLocalStore")||"{}"),l=JSON.parse((0,utils_2.fromSessionStorage)("appSessionStore")||"{}");if(e(app_1.appSessionStore,{showRightPanelToggle:l.showRightPanelToggle||i.showRightPanelToggle,activeVersionIdx:0}),e(app_1.appLocalStore,{layout:r.layout||i.layout,activeSampleLanguage:n||r.activeSampleLanguage||i.defaultSampleLanguage}),e(store_1.globalStore,t),e(app_1.appStore,{isSidebarOpened:!1,tryItOperation:void 0,isLoading:!1,activeMimeName:(null==o?void 0:o.defaultMimeType)||"",menuNextLinks:[]}),null==o?void 0:o.operation){const{pointer:t,activeExampleName:i,activeServer:r}=o.operation;e((0,operation_1.operationStore)(t),{activeExampleName:i,activeOneOf:0,activeServer:r,requestValues:{}})}},key:(null==o?void 0:o.definitionId)||"openapi"},react_1.default.createElement(nexus_1.default,null),e)}));const isVersioned=e=>"versions"in e;
|
|
2
2
|
//# sourceMappingURL=Providers.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,o,i){return new(o||(o=Promise))((function(n,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};import{ThemeProvider}from"styled-components";import React,{memo,useEffect,useMemo,useState}from"react";import{Tag}from"@markdoc/markdoc";import{Heading}from"@redocly/theme";import{RecoilRoot}from"@redocly/recoil";import RecoilNexus from"../../recoil/nexus";import{normalizeOptions,OpenAPIParser}from"../../services";import{getMarkdownHeaderId,loadMany,loadSingle,useDeepCompareMemoize}from"./utils";import{argValueToBoolean,fromLocalStorage,fromSessionStorage}from"../../utils";import{Loading}from"../Loading";import{defaultTheme}from"../../constants";import{SecurityDefs}from"../SecurityRequirement";import{SchemaDefinition}from"../SchemaDefinition";import{PullRight,RedocResponse}from"../pluggable";import{appLocalStore,appSessionStore,appStore}from"../../recoil/app";import{globalStore}from"../../recoil/store";import{operationStore}from"../../recoil/operation";export const ThemeProviders=({options:e,children:t,customOptions:o={}})=>{const i=Object.assign(Object.assign({},e),o),n=useMemo((()=>({mediaQueries:i.mediaQueries,showAtBreakpoint:i.showAtBreakpoint})),[i.mediaQueries,i.showAtBreakpoint]);return React.createElement(ThemeProvider,{theme:n},t)};export const AppProvider=({definitions:e,options:t,definitionUrl:o,definition:i,activeSampleLanguage:n,children:r})=>{const[,a]=useState(),[s,l]=useState(!0),[p,c]=useState(null);useEffect((()=>{!function(){__awaiter(this,void 0,void 0,(function*(){l(!0);try{c(e?yield loadMany(e):yield loadSingle(i,o,t))}catch(e){a((()=>{throw e}))}}))}()}),[e,i,o,t]);const m=useMemo((()=>{var e,i,r;if(p)return(null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.onInit)&&(null===(r=null===(i=t.hooks)||void 0===i?void 0:i.onInit)||void 0===r||r.call(i,{store:{definition:p,options:t,definitionUrl:o,activeSampleLanguage:n}})),{definition:p,options:t,definitionUrl:o,activeSampleLanguage:n}}),useDeepCompareMemoize([p,t,o]));return useEffect((()=>{m&&l(!1)}),[m]),m?s?argValueToBoolean(null==t?void 0:t.hideLoading,!1)?null:React.createElement(Loading,{color:"--loading-spinner-color"}):React.isValidElement(r)?React.cloneElement(r,{store:m}):null:null};const DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:defaultTheme.breakpoints,showAtBreakpoint:defaultTheme.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,i){return new(o||(o=Promise))((function(n,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};import{ThemeProvider}from"styled-components";import React,{memo,useEffect,useMemo,useState}from"react";import{Tag}from"@markdoc/markdoc";import{Heading}from"@redocly/theme";import{RecoilRoot}from"@redocly/recoil";import RecoilNexus from"../../recoil/nexus";import{normalizeOptions,OpenAPIParser}from"../../services";import{getMarkdownHeaderId,loadMany,loadSingle,useDeepCompareMemoize}from"./utils";import{argValueToBoolean,fromLocalStorage,fromSessionStorage}from"../../utils";import{Loading}from"../Loading";import{defaultTheme}from"../../constants";import{SecurityDefs}from"../SecurityRequirement";import{SchemaDefinition}from"../SchemaDefinition";import{PullRight,RedocResponse}from"../pluggable";import{appLocalStore,appSessionStore,appStore}from"../../recoil/app";import{globalStore}from"../../recoil/store";import{operationStore}from"../../recoil/operation";export const ThemeProviders=({options:e,children:t,customOptions:o={}})=>{const i=Object.assign(Object.assign({},e),o),n=useMemo((()=>({mediaQueries:i.mediaQueries,showAtBreakpoint:i.showAtBreakpoint})),[i.mediaQueries,i.showAtBreakpoint]);return React.createElement(ThemeProvider,{theme:n},t)};export const AppProvider=({definitions:e,options:t,definitionUrl:o,definition:i,activeSampleLanguage:n,children:r})=>{const[,a]=useState(),[s,l]=useState(!0),[p,c]=useState(null);useEffect((()=>{!function(){__awaiter(this,void 0,void 0,(function*(){l(!0);try{c(e?yield loadMany(e):yield loadSingle(i,o,t))}catch(e){a((()=>{throw e}))}}))}()}),[e,i,o,t]);const m=useMemo((()=>{var e,i,r;if(p)return(null===(e=null==t?void 0:t.hooks)||void 0===e?void 0:e.onInit)&&(null===(r=null===(i=t.hooks)||void 0===i?void 0:i.onInit)||void 0===r||r.call(i,{store:{definition:p,options:t,definitionUrl:o,activeSampleLanguage:n}})),{definition:p,options:t,definitionUrl:o,activeSampleLanguage:n}}),useDeepCompareMemoize([p,t,o]));return useEffect((()=>{m&&l(!1)}),[m]),m?s?argValueToBoolean(null==t?void 0:t.hideLoading,!1)?null:React.createElement(Loading,{color:"--loading-spinner-color"}):React.isValidElement(r)?React.cloneElement(r,{store:m}):null:null};const DEFAULT_OPTIONS={ignoreNamedSchemas:["java.io.ObjectStreamField"],breakpoints:defaultTheme.breakpoints,showAtBreakpoint:defaultTheme.showAtBreakpoint,allowedMdComponents:{tags:{securityDefinitions:{render:"SecurityDefinitions"},"openapi-response":{render:"RedocResponse",attributes:{pointer:{type:String},hideSamples:{type:Boolean},htmlWrap:{type:String,default:!1}}},pullRight:{render:"PullRight",attributes:{htmlWrap:{type:String,default:!1}}},schemaDefinition:{render:"SchemaDefinition",attributes:{schemaRef:{type:String},exampleRef:{type:String},showReadOnly:{type:Boolean},showWriteOnly:{type:Boolean},htmlWrap:{type:String,default:!1}}}},nodes:{heading:{children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1}},transform(e,t){const o=e.transformAttributes(t),i=e.transformChildren(t),n="string"==typeof o.id?o.id:getMarkdownHeaderId(i);return new Tag("Heading",Object.assign(Object.assign({},o),{id:n,level:e.attributes.level}),i)}}},components:{SecurityDefinitions:SecurityDefs,SchemaDefinition:SchemaDefinition,RedocResponse:RedocResponse,PullRight:PullRight,Heading:Heading}}};export const StoreProvider=memo((({children:e,options:t,definitionUrl:o,definition:i,activeSampleLanguage:n,portalOptions:r})=>{const a=React.useRef(),s=React.useCallback((()=>{var e;const n=normalizeOptions(Object.assign({},t),DEFAULT_OPTIONS),r=isVersioned(i)?(null===(e=i.versions)||void 0===e?void 0:e.map((({spec:e,id:t,title:o,url:i},r)=>{if(e){const a=t||`Definition_${r}`;return{id:a,title:o||`Definition_${r}`,url:i,parser:new OpenAPIParser(e,void 0,Object.assign(Object.assign({},n),{versionId:a}))}}})).filter(Boolean))||[]:[{url:o,parser:new OpenAPIParser(i,o,n)}];return{options:n,versions:r}}),[i,o,t]);return useEffect((()=>{a.current&&setTimeout((()=>{a.current(globalStore,s())}),0)}),[s,i]),React.createElement(RecoilRoot,{initializeState:({set:e})=>{a.current=e;const t=s(),o=t.options,i=JSON.parse(fromLocalStorage("appLocalStore")||"{}"),l=JSON.parse(fromSessionStorage("appSessionStore")||"{}");if(e(appSessionStore,{showRightPanelToggle:l.showRightPanelToggle||o.showRightPanelToggle,activeVersionIdx:0}),e(appLocalStore,{layout:i.layout||o.layout,activeSampleLanguage:n||i.activeSampleLanguage||o.defaultSampleLanguage}),e(globalStore,t),e(appStore,{isSidebarOpened:!1,tryItOperation:void 0,isLoading:!1,activeMimeName:(null==r?void 0:r.defaultMimeType)||"",menuNextLinks:[]}),null==r?void 0:r.operation){const{pointer:t,activeExampleName:o,activeServer:i}=r.operation;e(operationStore(t),{activeExampleName:o,activeOneOf:0,activeServer:i,requestValues:{}})}},key:(null==r?void 0:r.definitionId)||"openapi"},React.createElement(RecoilNexus,null),e)}));const isVersioned=e=>"versions"in e;
|
|
2
2
|
//# sourceMappingURL=Providers.js.map
|