openapi-explorer 0.7.247 → 0.7.248
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! OpenAPI Explorer 0.7.
|
|
1
|
+
/*! OpenAPI Explorer 0.7.248 | Author - Rhosys Developers | License information can be found in openapi-explorer.min.js.LICENSE.txt */
|
|
2
2
|
(()=>{var e,t,r={66419:(e,t,r)=>{e.exports=r(27698)},77766:(e,t,r)=>{e.exports=r(8065)},72119:(e,t,r)=>{e.exports=r(57448)},20116:(e,t,r)=>{e.exports=r(11955)},94473:(e,t,r)=>{e.exports=r(61577)},78580:(e,t,r)=>{e.exports=r(33778)},2991:(e,t,r)=>{e.exports=r(61798)},3649:(e,t,r)=>{e.exports=r(82073)},92762:(e,t,r)=>{e.exports=r(2348)},59340:(e,t,r)=>{e.exports=r(8933)},51942:(e,t,r)=>{e.exports=r(63383)},26295:(e,t,r)=>{e.exports=r(86209)},86902:(e,t,r)=>{e.exports=r(23059)},93476:(e,t,r)=>{e.exports=r(27460)},52424:(e,t,r)=>{e.exports=r(72010)},53592:(e,t,r)=>{e.exports=r(27385)},78363:(e,t,r)=>{e.exports=r(81522)},19996:(e,t,r)=>{e.exports=r(32209)},30699:(e,t,r)=>{e.exports=r(44442)},28834:(e,t,r)=>{e.exports=r(57152)},95683:(e,t,r)=>{e.exports=r(69447)},95238:(e,t,r)=>{e.exports=r(81493)},189:(e,t,r)=>{e.exports=r(76094)},32752:(e,t,r)=>{e.exports=r(70573)},44341:(e,t,r)=>{e.exports=r(73685)},58377:(e,t,r)=>{e.exports=r(27533)},13038:(e,t,r)=>{e.exports=r(39057)},63263:(e,t,r)=>{e.exports=r(84710)},24889:(e,t,r)=>{e.exports=r(74303)},89356:(e,t,r)=>{e.exports=r(93799)},79542:(e,t,r)=>{e.exports=r(55122)},69798:(e,t,r)=>{e.exports=r(29531)},13535:(e,t,r)=>{e.exports=r(10856)},83863:(e,t,r)=>{e.exports=r(31524)},51446:(e,t,r)=>{e.exports=r(86600)},23882:(e,t,r)=>{e.exports=r(9759)},63109:(e,t,r)=>{e.exports=r(35666)},37642:e=>{var t={"&":"&",'"':""","'":"'","<":"<",">":">"};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,r){return t[r]})):e}},95148:(e,t,r)=>{var n=r(37642),a=r(53086).Stream;function i(e,t,r){r=r||0;var a,o,s=(a=t,new Array(r||0).join(a||"")),u=e;if("object"==typeof e&&((u=e[o=Object.keys(e)[0]])&&u._elem))return u._elem.name=o,u._elem.icount=r,u._elem.indent=t,u._elem.indents=s,u._elem.interrupt=u,u._elem;var c,l=[],p=[];function d(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+'="'+n(t)+'"'}(t,e[t]))}))}switch(typeof u){case"object":if(null===u)break;u._attr&&d(u._attr),u._cdata&&p.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(c=!1,p.push(""),u.forEach((function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?d(e._attr):p.push(i(e,t,r+1)):(p.pop(),c=!0,p.push(n(e)))})),c||p.push(""));break;default:p.push(n(u))}return{name:o,interrupt:!1,attributes:l,content:p,icount:r,indents:s,indent:t}}function o(e,t,r){if("object"!=typeof t)return e(!1,t);var n=t.interrupt?1:t.content.length;function a(){for(;t.content.length;){var a=t.content.shift();if(void 0!==a){if(i(a))return;o(e,a)}}e(!1,(n>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!r?"\n":"")),r&&r()}function i(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=a,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),!n)return e(!1,t.indent?"\n":"");i(t)||a()}e.exports=function(e,t){"object"!=typeof t&&(t={indent:t});var r,n,s=t.stream?new a:null,u="",c=!1,l=t.indent?!0===t.indent?" ":t.indent:"",p=!0;function d(e){p?process.nextTick(e):e()}function f(e,t){if(void 0!==t&&(u+=t),e&&!c&&(s=s||new a,c=!0),e&&c){var r=u;d((function(){s.emit("data",r)})),u=""}}function h(e,t){o(f,i(e,l,l?1:0),t)}function m(){if(s){var e=u;d((function(){s.emit("data",e),s.emit("end"),s.readable=!1,s.emit("close")}))}}return d((function(){p=!1})),t.declaration&&(r=t.declaration,n={version:"1.0",encoding:r.encoding||"UTF-8"},r.standalone&&(n.standalone=r.standalone),h({"?xml":{_attr:n}}),u=u.replace("/>","?>")),e&&e.forEach?e.forEach((function(t,r){var n;r+1===e.length&&(n=m),h(t,n)})):h(e,m),s?(s.readable=!0,s):u},e.exports.element=e.exports.Element=function(){var e=Array.prototype.slice.call(arguments),t={_elem:i(e),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this._elem.indent;o(this.append,i(e,r,this._elem.icount+(r?1:0)),(function(){t.append(!0)}))},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return t}},47478:(e,t,r)=>{"use strict";var n={};r.r(n),r.d(n,{JsonPatchError:()=>Br,_areEquals:()=>Vr,applyOperation:()=>zr,applyPatch:()=>Ur,applyReducer:()=>qr,deepClone:()=>Nr,getValueByPointer:()=>Mr,validate:()=>Jr,validator:()=>Hr});var a={};r.r(a),r.d(a,{compare:()=>en,generate:()=>Zr,observe:()=>Yr,unobserve:()=>Kr});var i={};r.r(i),r.d(i,{cookie:()=>Ha,header:()=>qa,path:()=>Ma,query:()=>za});const o=new WeakMap,s=e=>"function"==typeof e&&o.has(e),u="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,c=(e,t,r=null)=>{for(;t!==r;){const r=t.nextSibling;e.removeChild(t),t=r}},l={},p={},d=`{{lit-${String(Math.random()).slice(2)}}}`,f=`\x3c!--${d}--\x3e`,h=new RegExp(`${d}|${f}`),m="$lit$";class v{constructor(e,t){this.parts=[],this.element=t;const r=[],n=[],a=document.createTreeWalker(t.content,133,null,!1);let i=0,o=-1,s=0;const{strings:u,values:{length:c}}=e;for(;s<c;){const e=a.nextNode();if(null!==e){if(o++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:r}=t;let n=0;for(let e=0;e<r;e++)g(t[e].name,m)&&n++;for(;n-- >0;){const t=u[s],r=b.exec(t)[2],n=r.toLowerCase()+m,a=e.getAttribute(n);e.removeAttribute(n);const i=a.split(h);this.parts.push({type:"attribute",index:o,name:r,strings:i}),s+=i.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),a.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(d)>=0){const n=e.parentNode,a=t.split(h),i=a.length-1;for(let t=0;t<i;t++){let r,i=a[t];if(""===i)r=y();else{const e=b.exec(i);null!==e&&g(e[2],m)&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-m.length)+e[3]),r=document.createTextNode(i)}n.insertBefore(r,e),this.parts.push({type:"node",index:++o})}""===a[i]?(n.insertBefore(y(),e),r.push(e)):e.data=a[i],s+=i}}else if(8===e.nodeType)if(e.data===d){const t=e.parentNode;null!==e.previousSibling&&o!==i||(o++,t.insertBefore(y(),e)),i=o,this.parts.push({type:"node",index:o}),null===e.nextSibling?e.data="":(r.push(e),o--),s++}else{let t=-1;for(;-1!==(t=e.data.indexOf(d,t+1));)this.parts.push({type:"node",index:-1}),s++}}else a.currentNode=n.pop()}for(const e of r)e.parentNode.removeChild(e)}}const g=(e,t)=>{const r=e.length-t.length;return r>=0&&e.slice(r)===t},x=e=>-1!==e.index,y=()=>document.createComment(""),b=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class w{constructor(e,t,r){this.__parts=[],this.template=e,this.processor=t,this.options=r}update(e){let t=0;for(const r of this.__parts)void 0!==r&&r.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=u?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],r=this.template.parts,n=document.createTreeWalker(e,133,null,!1);let a,i=0,o=0,s=n.nextNode();for(;i<r.length;)if(a=r[i],x(a)){for(;o<a.index;)o++,"TEMPLATE"===s.nodeName&&(t.push(s),n.currentNode=s.content),null===(s=n.nextNode())&&(n.currentNode=t.pop(),s=n.nextNode());if("node"===a.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(s.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(s,a.name,a.strings,this.options));i++}else this.__parts.push(void 0),i++;return u&&(document.adoptNode(e),customElements.upgrade(e)),e}}const k=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),A=` ${d} `;class D{constructor(e,t,r,n){this.strings=e,this.values=t,this.type=r,this.processor=n}getHTML(){const e=this.strings.length-1;let t="",r=!1;for(let n=0;n<e;n++){const e=this.strings[n],a=e.lastIndexOf("\x3c!--");r=(a>-1||r)&&-1===e.indexOf("--\x3e",a+1);const i=b.exec(e);t+=null===i?e+(r?A:f):e.substr(0,i.index)+i[1]+i[2]+m+i[3]+d}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==k&&(t=k.createHTML(t)),e.innerHTML=t,e}}const E=e=>null===e||!("object"==typeof e||"function"==typeof e),S=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class C{constructor(e,t,r){this.dirty=!0,this.element=e,this.name=t,this.strings=r,this.parts=[];for(let e=0;e<r.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new F(this)}_getValue(){const e=this.strings,t=e.length-1,r=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=r[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!S(e))return e}let n="";for(let a=0;a<t;a++){n+=e[a];const t=r[a];if(void 0!==t){const e=t.value;if(E(e)||!S(e))n+="string"==typeof e?e:String(e);else for(const t of e)n+="string"==typeof t?t:String(t)}}return n+=e[t],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class F{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===l||E(e)&&e===this.value||(this.value=e,s(e)||(this.committer.dirty=!0))}commit(){for(;s(this.value);){const e=this.value;this.value=l,e(this)}this.value!==l&&this.committer.commit()}}class _{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(y()),this.endNode=e.appendChild(y())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=y()),e.__insert(this.endNode=y())}insertAfterPart(e){e.__insert(this.startNode=y()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}const e=this.__pendingValue;e!==l&&(E(e)?e!==this.value&&this.__commitText(e):e instanceof D?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):S(e)?this.__commitIterable(e):e===p?(this.value=p,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,r="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=r:this.__commitNode(document.createTextNode(r)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof w&&this.value.template===t)this.value.update(e.values);else{const r=new w(t,e.processor,this.options),n=r._clone();r.update(e.values),this.__commitNode(n),this.value=r}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let r,n=0;for(const a of e)r=t[n],void 0===r&&(r=new _(this.options),t.push(r),0===n?r.appendIntoPart(this):r.insertAfterPart(t[n-1])),r.setValue(a),r.commit(),n++;n<t.length&&(t.length=n,this.clear(r&&r.endNode))}clear(e=this.startNode){c(this.startNode.parentNode,e.nextSibling,this.endNode)}}class O{constructor(e,t,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=r}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}if(this.__pendingValue===l)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=l}}class T extends C{constructor(e,t,r){super(e,t,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new j(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class j extends F{}let $=!1;(()=>{try{const e={get capture(){return $=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class P{constructor(e,t,r){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=r,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}if(this.__pendingValue===l)return;const e=this.__pendingValue,t=this.value,r=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),n=null!=e&&(null==t||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=I(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=l}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const I=e=>e&&($?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);const B=new class{handleAttributeExpressions(e,t,r,n){const a=t[0];if("."===a){return new T(e,t.slice(1),r).parts}if("@"===a)return[new P(e,t.slice(1),n.eventContext)];if("?"===a)return[new O(e,t.slice(1),r)];return new C(e,t,r).parts}handleTextExpression(e){return new _(e)}};function N(e){let t=R.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},R.set(e.type,t));let r=t.stringsArray.get(e.strings);if(void 0!==r)return r;const n=e.strings.join(d);return r=t.keyString.get(n),void 0===r&&(r=new v(e,e.getTemplateElement()),t.keyString.set(n,r)),t.stringsArray.set(e.strings,r),r}const R=new Map,L=new WeakMap;"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const M=(e,...t)=>new D(e,t,"html",B);window.JSCompiler_renameProperty=(e,t)=>e;const z={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},U=(e,t)=>t!==e&&(t==t||e==e),q={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:U},H="finalized";class J extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach(((t,r)=>{const n=this._attributeNameForProperty(r,t);void 0!==n&&(this._attributeToPropertyMap.set(n,r),e.push(n))})),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach(((e,t)=>this._classProperties.set(t,e)))}}static createProperty(e,t=q){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const r="symbol"==typeof e?Symbol():`__${e}`,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdateInternal(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||q}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(H)||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const r of t)this.createProperty(r,e[r])}}static _attributeNameForProperty(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,r=U){return r(e,t)}static _propertyValueFromAttribute(e,t){const r=t.type,n=t.converter||z,a="function"==typeof n?n:n.fromAttribute;return a?a(e,r):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const r=t.type,n=t.converter;return(n&&n.toAttribute||z.toAttribute)(e,r)}initialize(){this._updateState=0,this._updatePromise=new Promise((e=>this._enableUpdatingResolver=e)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((e,t)=>this[t]=e)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,r){t!==r&&this._attributeToProperty(e,r)}_propertyToAttribute(e,t,r=q){const n=this.constructor,a=n._attributeNameForProperty(e,r);if(void 0!==a){const e=n._propertyValueToAttribute(t,r);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(a):this.setAttribute(a,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const r=this.constructor,n=r._attributeToPropertyMap.get(e);if(void 0!==n){const e=r.getPropertyOptions(n);this._updateState=16|this._updateState,this[n]=r._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,r){let n=!0;if(void 0!==e){const a=this.constructor;r=r||a.getPropertyOptions(e),a._valueHasChanged(this[e],t,r.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==r.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,r))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((e,t)=>this._propertyToAttribute(t,this[t],e))),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}J.finalized=!0;const V=Element.prototype;V.msMatchesSelector||V.webkitMatchesSelector;const G=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol();class X{constructor(e,t){if(t!==W)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(G?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const K=e=>new X(String(e),W),Y=(e,...t)=>{const r=t.reduce(((t,r,n)=>t+(e=>{if(e instanceof X)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(r)+e[n+1]),e[0]);return new X(r,W)};(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const Z={};class Q extends J{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,r)=>e.reduceRight(((e,r)=>Array.isArray(r)?t(r,e):(e.add(r),e)),r),r=t(e,new Set),n=[];r.forEach((e=>n.unshift(e))),this._styles=n}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map((e=>{if(e instanceof CSSStyleSheet&&!G){const t=Array.prototype.slice.call(e.cssRules).reduce(((e,t)=>e+t.cssText),"");return K(t)}return e}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?G?this.renderRoot.adoptedStyleSheets=e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((e=>e.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==Z&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)})))}render(){return Z}}Q.finalized=!0,Q.render=(e,t,r)=>{let n=L.get(t);void 0===n&&(c(t,t.firstChild),L.set(t,n=new _(Object.assign({templateFactory:N},r))),n.appendInto(t)),n.setValue(e),n.commit()};var ee=r(47084),te=r.n(ee),re=r(15660),ne=r.n(re);r(15251),r(73358),r(27046),r(52503),r(74277),r(57874),r(80366),r(50057),r(79016);const ae=Y`.hover-bg:hover{background:var(--bg3)}::selection{background:var(--selection-bg);color:var(--selection-fg)}.regular-font{font-family:var(--font-regular)}.mono-font{font-family:var(--font-mono)}.title{font-size:calc(var(--font-size-small) + 18px);font-weight:400}.sub-title{font-size:20px}.req-res-title{font-family:var(--font-regular);font-size:calc(var(--font-size-small) + 4px);font-weight:700}.tiny-title{font-size:calc(var(--font-size-small) + 1px);font-weight:700}.regular-font-size{font-size:var(--font-size-regular)}.small-font-size{font-size:var(--font-size-small)}.upper{text-transform:uppercase}.primary-text{color:var(--primary-color)}.bold-text{font-weight:700}.gray-text{color:var(--light-fg)}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.multiline{overflow:scroll;max-height:var(--resp-area-height,300px);color:var(--fg3)}.method-fg.put{color:var(--orange)}.method-fg.post{color:var(--green)}.method-fg.get,.method-fg.head{color:var(--blue)}.method-fg.delete{color:var(--red)}.method-fg.options{color:var(--purple)}.method-fg.patch{color:var(--yellow)}h1{font-family:var(--font-regular);font-size:28px;padding-top:10px;letter-spacing:normal;font-weight:400}h2{font-family:var(--font-regular);font-size:24px;padding-top:10px;letter-spacing:normal;font-weight:400}h3{font-family:var(--font-regular);font-size:18px;padding-top:10px;letter-spacing:normal;font-weight:400}h4{font-family:var(--font-regular);font-size:16px;padding-top:10px;letter-spacing:normal;font-weight:400}h5{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h6{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h1,h2,h3,h4,h5{margin-block-end:.2em}h3{margin-top:0}p{margin-block-start:.5em}a{color:var(--blue);cursor:pointer}a.inactive-link{color:var(--fg);text-decoration:none;cursor:text}code,pre{margin:0;font-family:var(--font-mono);font-size:calc(var(--font-size-mono) - 1px)}.m-markdown,.m-markdown-small{display:block}.m-markdown li,.m-markdown p,.m-markdown span{font-size:var(--font-size-regular);line-height:calc(var(--font-size-regular) + 6px)}.m-markdown-small li,.m-markdown-small p,.m-markdown-small span{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 6px)}.m-markdown p:not(:first-child){margin-block-start:24px}.m-markdown-small p:not(:first-child){margin-block-start:12px}.m-markdown-small p:first-child{margin-block-start:0}.m-markdown p,.m-markdown-small p{margin-block-end:0}.m-markdown code span{font-size:var(--font-size-mono)}.m-markdown code,.m-markdown-small code{padding:1px 6px;border-radius:2px;color:var(--inline-code-fg);background-color:var(--bg3);font-size:calc(var(--font-size-mono));line-height:1.2}.m-markdown-small code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown pre,.m-markdown-small pre{white-space:pre-wrap;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid var(--code-border-color)}.m-markdown pre{padding:8px;background-color:var(--code-bg);color:var(--code-fg)}.m-markdown-small pre{margin-top:4px;padding:2px 4px;background-color:var(--bg3);color:var(--fg2)}.m-markdown pre code,.m-markdown-small pre code{border:none;padding:0}.m-markdown pre code{color:var(--code-fg);background-color:var(--code-bg);background-color:transparent}.m-markdown-small pre code{color:var(--fg2);background-color:var(--bg3)}.m-markdown ol,.m-markdown ul{padding-inline-start:30px}.m-markdown-small ol,.m-markdown-small ul{padding-inline-start:20px}.m-markdown a,.m-markdown-small a{color:var(--blue)}.m-markdown img,.m-markdown-small img{max-width:100%}.m-markdown table,.m-markdown-small table{border-spacing:0;margin:10px 0;border-collapse:separate;border:1px solid var(--border-color);border-radius:var(--border-radius);font-size:calc(var(--font-size-small) + 1px);line-height:calc(var(--font-size-small) + 4px);max-width:100%}.m-markdown-small table{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 2px);margin:8px 0}.m-markdown td,.m-markdown th,.m-markdown-small td,.m-markdown-small th{vertical-align:top;border-top:1px solid var(--border-color);line-height:calc(var(--font-size-small) + 4px)}.m-markdown tr:first-child th,.m-markdown-small tr:first-child th{border-top:0 none}.m-markdown td,.m-markdown th{padding:10px 12px}.m-markdown-small td,.m-markdown-small th{padding:8px 8px}.m-markdown th,.m-markdown-small th{font-weight:600;background-color:var(--bg2);vertical-align:middle}.m-markdown-small table code{font-size:calc(var(--font-size-mono) - 2px)}.m-markdown table code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown blockquote,.m-markdown-small blockquote{margin-inline-start:0;margin-inline-end:0;border-left:3px solid var(--border-color);padding:6px 0 6px 6px}`,ie=Y`.m-btn{border-radius:var(--border-radius);font-weight:600;display:inline-block;padding:6px 16px;font-size:var(--font-size-small);outline:0;line-height:1;text-align:center;white-space:nowrap;border:2px solid var(--primary-color);background-color:transparent;transition:background-color .2s;user-select:none;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.m-btn.primary{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.thin-border{border-width:1px}.m-btn.large{padding:8px 14px}.m-btn.small{padding:5px 12px}.m-btn.tiny{padding:5px 6px}.m-btn.circle{border-radius:50%}.m-btn:hover{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.nav{border:2px solid var(--secondary-color)}.m-btn.nav:hover{background-color:var(--secondary-color)}.m-btn:disabled{background-color:var(--bg3);color:var(--fg3);border-color:var(--fg3);cursor:progress;opacity:.4}.toolbar-btn{cursor:pointer;padding:4px;margin:0 2px;font-size:var(--font-size-small);min-width:50px;color:var(--primary-btn-text-color);border-radius:2px;border:none;background-color:var(--primary-color)}.tab-content .toolbar-btn{position:absolute;top:8px;right:8px}button,input,pre,select,textarea{color:var(--fg);outline:0;background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}button{font-family:var(--font-regular)}input[type=file],input[type=password],input[type=text],pre,select,textarea{font-family:var(--font-mono);font-weight:400;font-size:var(--font-size-small);transition:border .2s;padding:6px 5px}select{font-family:var(--font-regular);padding-right:30px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");background-position:calc(100% - 5px) center;background-repeat:no-repeat;background-size:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}select:hover{border-color:var(--primary-color)}input[type=password]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:var(--placeholder-color);opacity:1}input[type=password]:active,input[type=password]:focus,input[type=text]:active,input[type=text]:focus,select:focus,textarea:active,textarea:focus{border:1px solid var(--primary-color)}input[type=file]{font-family:var(--font-regular);padding:2px;cursor:pointer;border:1px solid var(--primary-color);min-height:calc(var(--font-size-small) + 18px)}input[type=file]::-webkit-file-upload-button{font-family:var(--font-regular);font-size:var(--font-size-small);outline:0;cursor:pointer;padding:3px 8px;border:1px solid var(--primary-color);background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:var(--border-radius);-webkit-appearance:none}pre,textarea{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--input-bg)}pre::-webkit-scrollbar,textarea::-webkit-scrollbar{width:8px;height:8px}pre::-webkit-scrollbar-track,textarea::-webkit-scrollbar-track{background:var(--input-bg)}pre::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--border-color)}.link{font-size:var(--font-size-small);text-decoration:underline;color:var(--blue);font-family:var(--font-mono);margin-bottom:2px}input[type=checkbox]:focus{outline:0}input[type=checkbox]{appearance:none;display:inline-block;background-color:var(--light-bg);border-radius:9px;cursor:pointer;height:18px;position:relative;transition:border .15s,padding .25s;min-width:36px;width:36px;vertical-align:top}input[type=checkbox]:after{position:absolute;background-color:var(--bg);border-radius:8px;content:'';top:0;left:0;right:16px;display:block;height:16px;transition:left .25s .1s,right .15s .175s}input[type=checkbox]:checked{box-shadow:inset 0 0 0 13px var(--primary-color);border-color:var(--primary-color)}input[type=checkbox]:checked:after{border:1px solid var(--primary-color);left:16px;right:1px;transition:border .25s,left .15s .25s,right .25s .175s}input.oauth-client-id{flex-grow:1;max-width:300px}input.oauth-client-secret{flex-grow:1;max-width:300px}`,oe=Y`.col,.row{display:flex}.row{align-items:center;flex-direction:row}.col{align-items:stretch;flex-direction:column}`,se=Y`.m-table{border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.m-table tr:first-child td,.m-table tr:first-child th{border-top:0 none}.m-table td,.m-table th{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 4px);padding:4px 5px 4px;vertical-align:top}.m-table td:not([align]),.m-table th:not([align]){text-align:left}.m-table th{color:var(--fg2);font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 18px);font-weight:600;letter-spacing:normal;background-color:var(--bg2);vertical-align:bottom;border-bottom:1px solid var(--light-border-color)}.m-table>tbody>tr>td,.m-table>tr>td{border-top:1px solid var(--light-border-color)}.table-title{font-size:var(--font-size-small);font-weight:700;vertical-align:middle;margin:12px 0 4px 0}`,ue=Y`.only-large-screen{display:none}.endpoint-head .path{display:flex;font-family:var(--font-mono);font-size:var(--font-size-small);align-items:center;overflow-wrap:break-word;word-break:break-all}.endpoint-head .descr{font-size:var(--font-size-small);color:var(--light-fg);font-weight:400;align-items:center;overflow-wrap:break-word;word-break:break-all;display:none}.m-endpoint.expanded{margin-bottom:16px}.m-endpoint>.endpoint-head{border-width:1px 1px 1px 5px;border-style:solid;border-color:transparent;border-top-color:var(--light-border-color);display:flex;padding:6px 16px;align-items:center;cursor:pointer}.m-endpoint>.endpoint-head.put.expanded,.m-endpoint>.endpoint-head.put:hover{border-color:var(--orange);background-color:var(--light-orange)}.m-endpoint>.endpoint-head.post.expanded,.m-endpoint>.endpoint-head.post:hover{border-color:var(--green);background-color:var(--light-green)}.m-endpoint>.endpoint-head.get.expanded,.m-endpoint>.endpoint-head.get:hover,.m-endpoint>.endpoint-head.head.expanded,.m-endpoint>.endpoint-head.head:hover{border-color:var(--blue);background-color:var(--light-blue)}.m-endpoint>.endpoint-head.delete.expanded,.m-endpoint>.endpoint-head.delete:hover{border-color:var(--red);background-color:var(--light-red)}.m-endpoint>.endpoint-head.patch.expanded,.m-endpoint>.endpoint-head.patch:hover{border-color:var(--yellow);background-color:var(--light-yellow)}.m-endpoint>.endpoint-head.options.expanded,.m-endpoint>.endpoint-head.options:hover{border-color:var(--purple);background-color:var(--light-purple)}.m-endpoint .endpoint-body{word-break:break-word;flex-wrap:wrap;padding:16px 0 0 0;border-width:0 1px 1px 5px;border-style:solid;box-shadow:0 4px 3px -3px rgba(0,0,0,.15)}.m-endpoint .endpoint-body.delete{border-color:var(--red)}.m-endpoint .endpoint-body.put{border-color:var(--orange)}.m-endpoint .endpoint-body.post{border-color:var(--green)}.m-endpoint .endpoint-body.get,.m-endpoint .endpoint-body.head{border-color:var(--blue)}.m-endpoint .endpoint-body.patch{border-color:var(--yellow)}.m-endpoint .endpoint-body.options{border-color:var(--purple)}.summary{padding:8px 8px}.summary .title{font-size:calc(var(--font-size-regular) + 2px);margin-bottom:6px;word-break:break-word}.method{padding:2px 5px;vertical-align:middle;font-size:var(--font-size-small);height:calc(var(--font-size-small) + 16px);line-height:calc(var(--font-size-small) + 8px);width:68px;flex-shrink:0;border-radius:2px;display:inline-block;text-align:center;font-weight:700;text-transform:uppercase;margin-right:5px}.method.delete{border:2px solid var(--red)}.method.put{border:2px solid var(--orange)}.method.post{border:2px solid var(--green)}.method.get,.method.head{border:2px solid var(--blue)}.method.patch{border:2px solid var(--yellow)}.method.options{border:2px solid var(--purple)}.req-resp-container{display:flex;margin-top:16px;align-items:stretch;flex-wrap:wrap;flex-direction:column}.view-request{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden;border-width:0;border-style:dashed}.request,.response{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden}.request{border-width:0 0 1px 0;border-style:dashed}.patch .request{border-top:1px dashed var(--yellow);border-color:var(--yellow)}.options .request{border-top:1px dashed var(--purple);border-color:var(--purple)}.put .request{border-top:1px dashed var(--orange);border-color:var(--orange)}.post .request{border-top:1px dashed var(--green);border-color:var(--green)}.get .request,.head .request{border-top:1px dashed var(--blue);border-color:var(--blue)}.delete .request{border-top:1px dashed var(--red);border-color:var(--red)}@media only screen and (min-width:1024px){.only-large-screen{display:block}.endpoint-head .path{font-size:var(--font-size-regular);min-width:400px}.endpoint-head .descr{display:flex}.descr .m-markdown-small,.endpoint-head .m-markdown-small{display:block}.req-resp-container{flex-direction:var(--layout,row)}.request{border-width:0 1px 0 0;padding:16px}.response{padding:16px}.summary{padding:8px 16px}}.security-info-button{position:absolute;top:3px;right:2px;font-size:var(--font-size-small);line-height:1.5}@media only screen and (max-width:768px){.security-info-button{display:none}}pre.code-sample{padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small)}`,ce=Y`code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:var(--light-fg)}.token.punctuation{color:var(--fg)}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:var(--pink)}.token.function-name{color:var(--blue)}.token.boolean,.token.function,.token.number{color:var(--red)}.token.class-name,.token.constant,.token.property,.token.symbol{color:var(--code-property-color)}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:var(--code-keyword-color)}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:var(--green);white-space:pre-wrap;line-break:anywhere}.token.entity,.token.operator,.token.url{color:var(--code-operator-color)}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}`,le=Y`.tab-panel{border:none}.tab-buttons{height:30px;border-bottom:1px solid var(--light-border-color);align-items:stretch;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}.tab-buttons::-webkit-scrollbar{height:1px;background-color:var(--border-color)}.tab-btn{border:none;border-bottom:3px solid transparent;color:var(--light-fg);background-color:transparent;white-space:nowrap;cursor:pointer;outline:0;font-family:var(--font-regular);font-size:var(--font-size-small);margin-right:16px;padding:1px}.tab-btn.active{border-bottom:3px solid var(--primary-color);font-weight:700;color:var(--primary-color)}.tab-btn:hover{color:var(--primary-color)}.tab-content{position:relative}`,pe=Y`.nav-bar{width:0;height:100%;overflow:hidden;color:var(--nav-text-color);background-color:var(--nav-bg-color);background-blend-mode:multiply;line-height:calc(var(--font-size-small) + 4px);display:none;position:relative;flex-direction:column;flex-wrap:nowrap;word-break:break-word}.nav-scroll{overflow-x:hidden;overflow-y:auto;overflow-y:overlay;scrollbar-width:thin;scrollbar-color:var(--nav-hover-bg-color) transparent}.nav-bar-tag{display:flex;align-items:center;justify-content:space-between;flex-direction:row}.nav-bar.read .nav-bar-tag-icon{display:none}.nav-bar-tag-icon{color:var(--nav-text-color);font-size:20px;margin-right:-16px}.nav-bar-tag-icon:hover{color:var(--nav-hover-text-color)}.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-paths-under-tag{display:none}.nav-bar.focused .nav-bar-tag-and-paths .nav-bar-tag-icon::after{content:'▸';font-size:16px;text-align:center;display:inline-block}.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after{transform:rotate(90deg)}.nav-bar.focused,.nav-scroll{border-top:1px solid var(--secondary-color)}.nav-scroll::-webkit-scrollbar{width:10px}.nav-scroll::-webkit-scrollbar-track{background:0 0}.nav-scroll::-webkit-scrollbar-thumb{background-color:var(--nav-hover-bg-color)}.nav-bar-tag{font-size:var(--font-size-regular);color:var(--secondary-color);border-left:4px solid transparent;font-weight:700;padding:15px 30px 15px 10px;text-transform:capitalize}.nav-bar-components,.nav-bar-h1,.nav-bar-h2,.nav-bar-info,.nav-bar-path,.nav-bar-tag,slot[name=nav-section]::slotted(*){display:flex;cursor:pointer;border-left:4px solid transparent}.nav-bar-h1,.nav-bar-h2,.nav-bar-path{font-size:calc(var(--font-size-small) + 1px);padding:var(--nav-item-padding)}.nav-bar-path.small-font{font-size:var(--font-size-small)}.nav-bar-info,slot[name=nav-section]::slotted(*){font-size:var(--font-size-regular);padding:16px 10px;font-weight:700}.nav-bar-section{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--font-size-small);color:var(--nav-text-color);padding:15px 15px 5px 5px;filter:opacity(.5);font-weight:700;border-bottom:1px solid var(--nav-text-color)}.nav-bar-h2{margin-left:12px}.nav-bar-h1.active,.nav-bar-h1.active:hover,.nav-bar-h2.active,.nav-bar-h2.active:hover,.nav-bar-info.active,.nav-bar-info.active:hover,.nav-bar-path.active,.nav-bar-path.active:hover,.nav-bar-tag.active,.nav-bar-tag.active:hover,slot[name=nav-section]::slotted(.active),slot[name=nav-section]::slotted(.active:hover){border-left:4px solid var(--secondary-color);color:var(--secondary-color);background-color:var(--nav-hover-bg-color)}.nav-bar-h1:hover,.nav-bar-h2:hover,.nav-bar-info:hover,.nav-bar-path:hover,.nav-bar-tag:hover,slot[name=nav-section]::slotted(:hover){color:var(--nav-hover-text-color);background-color:var(--nav-hover-bg-color)}`,de=Y`#api-info{font-size:calc(var(--font-size-regular) - 1px);margin-top:8px margin-left: -15px}#api-info span:before{content:"|";display:inline-block;opacity:.5;width:15px;text-align:center}#api-info span:first-child:before{content:"";width:0}`,fe=Y`*,:after,:before{box-sizing:border-box}.dialog-box-overlay{background-color:var(--overlay-bg);position:fixed;left:0;top:0;width:100vw;height:100vh;overflow:hidden;z-index:var(--dialog-z-index)}.dialog-box{position:fixed;top:100px;left:50%;transform:translate(-50%,0);display:flex;flex-direction:column;width:50vw;background-color:var(--bg2);color:var(--fg2);border-radius:4px;overflow:hidden;border:1px solid var(--border-color);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.dialog-box-header{position:sticky;top:0;align-self:stretch;display:flex;align-items:center;padding:0 16px;min-height:60px;max-height:60px;border-bottom:1px solid var(--light-border-color);overflow:hidden}.dialog-box .m-btn{padding:1px 6px}.dialog-box-content{padding:16px;display:block}.dialog-box-title{flex-grow:1;font-size:20px}.advanced-search-dialog-input{width:100%}#advanced-search-dialog-input{width:100%}.advanced-search-locations{display:flex;flex-direction:column;margin:8px 0 24px}.advanced-search-locations label{font-size:var(--font-size-small)}.advanced-search-results{max-height:400px;overflow:auto}`;const he=new RegExp(/[\s#:?&={}]/,"g");function me(e){return new Promise((t=>setTimeout(t,e)))}function ve(e,t){const r=t.currentTarget,n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerText="Copied",setTimeout((()=>{r.innerText="Copy"}),5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(n)}function ge(e,t){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}function xe(e,t=new Set){return e?(Object.keys(e).forEach((r=>{t.add(r),e[r].properties?xe(e[r].properties,t):e[r].items&&e[r].items.properties&&xe(e[r].items.properties,t)})),t):t}function ye(){const e=(window.location.hash||"").split("?")[1],t=new URLSearchParams(e);return decodeURIComponent(t.get("route")||"")}function be(e){const t=e&&e.replace(/^#/,"")||"",r=(window.location.hash||"").split("?")[0].replace(/^#/,""),n=(window.location.hash||"").split("?")[1],a=new URLSearchParams(n);a.delete("route");const i=a.toString().length>1?`${a.toString()}&route=${t}`:`route=${t}`;window.history.replaceState(null,null,`#${r}?${i}`)}var we=r(89356),ke=r(63263),Ae=r(30699),De=r(58377),Ee=r(28834),Se=r(13038),Ce=r(32752),Fe=r(44341);function _e(e,t,r){return t in e?Fe(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oe(e,t){var r=we(e);if(ke){var n=ke(e);t&&(n=Ae(n).call(n,(function(t){return De(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)Ee(r=Oe(Object(n),!0)).call(r,(function(t){_e(e,t,n[t])}));else if(Se)Ce(e,Se(n));else{var a;Ee(a=Oe(Object(n))).call(a,(function(t){Fe(e,t,De(n,t))}))}}return e}var je=r(28583),$e=r.n(je),Pe=r(10240),Ie=r.n(Pe),Be=r(8575),Ne=r(51446),Re=r(19996),Le=r(78363),Me=r(95238),ze=r(53592);function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qe(e,t){var r;if(e){if("string"==typeof e)return Ue(e,t);var n=Me(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?ze(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(e,t):void 0}}function He(e,t){var r=void 0!==Ne&&Re(e)||e["@@iterator"];if(!r){if(Le(e)||(r=qe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}var Je=r(23882);function Ve(e){return(Ve="function"==typeof Ne&&"symbol"==typeof Je?function(e){return typeof e}:function(e){return e&&"function"==typeof Ne&&e.constructor===Ne&&e!==Ne.prototype?"symbol":typeof e})(e)}function Ge(e,t){return function(e){if(Le(e))return e}(e)||function(e,t){var r=e&&(void 0!==Ne&&Re(e)||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||qe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var We=r(69798);function Xe(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(e){return void r(e)}s.done?t(u):We.resolve(u).then(n,a)}function Ke(e){return function(){var t=this,r=arguments;return new We((function(n,a){var i=e.apply(t,r);function o(e){Xe(i,n,a,o,s,"next",e)}function s(e){Xe(i,n,a,o,s,"throw",e)}o(void 0)}))}}var Ye=r(63109),Ze=r.n(Ye),Qe=r(78580),et=r.n(Qe),tt=r(72119),rt=r.n(tt),nt=r(66419),at=r.n(nt),it=r(59340),ot=r.n(it),st=r(2991),ut=r.n(st),ct=r(86902),lt=r.n(ct),pt=r(77766),dt=r.n(pt),ft=r(26295),ht=r.n(ft),mt=r(20116),vt=r.n(mt),gt=(r(31905),r(92495)),xt=r.n(gt),yt=r(68125),bt=r.n(yt),wt=r(78718),kt=r.n(wt),At=r(23560),Dt=r.n(At),Et=r(48764);function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Fe(e,n.key,n)}}function Ft(e,t,r){return t&&Ct(e.prototype,t),r&&Ct(e,r),e}var _t=r(83863),Ot=r(79542),Tt=r(24889);function jt(e){return(jt=Ot?Tt:function(e){return e.__proto__||Tt(e)})(e)}function $t(e,t,r){return($t="undefined"!=typeof Reflect&&_t?_t:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jt(e)););return e}(e,t);if(n){var a=De(n,t);return a.get?a.get.call(r):a.value}})(e,t,r||e)}var Pt=r(189);function It(e,t){return(It=Ot||function(e,t){return e.__proto__=t,e})(e,t)}var Bt=r(13535);function Nt(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Bt)return!1;if(Bt.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Bt(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jt(e);if(t){var a=jt(this).constructor;r=Bt(n,arguments,a)}else r=n.apply(this,arguments);return Nt(this,r)}}var Lt=r(94473),Mt=r.n(Lt),zt=r(57514);const Ut=function(e){var t=function(e,t){return{name:e,value:t}};return Dt()(e.prototype.set)||Dt()(e.prototype.get)||Dt()(e.prototype.getAll)||Dt()(e.prototype.has)?e:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pt(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}(n,e);var r=Rt(n);function n(e){var t;return St(this,n),(t=r.call(this,e)).entryList=[],t}return Ft(n,[{key:"append",value:function(e,r,a){return this.entryList.push(t(e,r)),$t(jt(n.prototype),"append",this).call(this,e,r,a)}},{key:"set",value:function(e,r){var n,a=t(e,r);this.entryList=vt()(n=this.entryList).call(n,(function(t){return t.name!==e})),this.entryList.push(a)}},{key:"get",value:function(e){var t,r=Mt()(t=this.entryList).call(t,(function(t){return t.name===e}));return void 0===r?null:r}},{key:"getAll",value:function(e){var t,r;return ut()(t=vt()(r=this.entryList).call(r,(function(t){return t.name===e}))).call(t,(function(e){return e.value}))}},{key:"has",value:function(e){return this.entryList.some((function(t){return t.name===e}))}}]),n}(e)}(r.n(zt)());function qt(e){return function(e){if(Le(e))return Ue(e)}(e)||function(e){if(void 0!==Ne&&null!=Re(e)||null!=e["@@iterator"])return ze(e)}(e)||qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ht=r(3649),Jt=r.n(Ht),Vt=r(48764).Buffer,Gt=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},Wt=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function Xt(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.escape,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&n?a?JSON.parse(e):ut()(t=qt(e)).call(t,(function(e){var t,r;return Wt(e)||Gt(e)&&"unsafe"===n?e:ut()(t=ut()(r=Vt.from(e).toJSON().data||[]).call(r,(function(e){var t;return Jt()(t="0".concat(e.toString(16).toUpperCase())).call(t,-2)}))).call(t,(function(e){return"%".concat(e)})).join("")})).join(""):e}function Kt(e){var t=e.value;return Array.isArray(t)?function(e){var t=e.key,r=e.value,n=e.style,a=e.explode,i=e.escape,o=function(e){return Xt(e,{escape:i})};if("simple"===n)return ut()(r).call(r,(function(e){return o(e)})).join(",");if("label"===n)return".".concat(ut()(r).call(r,(function(e){return o(e)})).join("."));if("matrix"===n)return ut()(r).call(r,(function(e){return o(e)})).reduce((function(e,r){var n,i,o;return!e||a?dt()(i=dt()(o="".concat(e||"",";")).call(o,t,"=")).call(i,r):dt()(n="".concat(e,",")).call(n,r)}),"");if("form"===n){var s=a?"&".concat(t,"="):",";return ut()(r).call(r,(function(e){return o(e)})).join(s)}if("spaceDelimited"===n){var u=a?"".concat(t,"="):"";return ut()(r).call(r,(function(e){return o(e)})).join(" ".concat(u))}if("pipeDelimited"===n){var c=a?"".concat(t,"="):"";return ut()(r).call(r,(function(e){return o(e)})).join("|".concat(c))}return}(e):"object"===Ve(t)?function(e){var t=e.key,r=e.value,n=e.style,a=e.explode,i=e.escape,o=function(e){return Xt(e,{escape:i})},s=lt()(r);if("simple"===n)return s.reduce((function(e,t){var n,i,s,u=o(r[t]),c=a?"=":",",l=e?"".concat(e,","):"";return dt()(n=dt()(i=dt()(s="".concat(l)).call(s,t)).call(i,c)).call(n,u)}),"");if("label"===n)return s.reduce((function(e,t){var n,i,s,u=o(r[t]),c=a?"=":".",l=e?"".concat(e,"."):".";return dt()(n=dt()(i=dt()(s="".concat(l)).call(s,t)).call(i,c)).call(n,u)}),"");if("matrix"===n&&a)return s.reduce((function(e,t){var n,a,i=o(r[t]),s=e?"".concat(e,";"):";";return dt()(n=dt()(a="".concat(s)).call(a,t,"=")).call(n,i)}),"");if("matrix"===n)return s.reduce((function(e,n){var a,i,s=o(r[n]),u=e?"".concat(e,","):";".concat(t,"=");return dt()(a=dt()(i="".concat(u)).call(i,n,",")).call(a,s)}),"");if("form"===n)return s.reduce((function(e,t){var n,i,s,u,c=o(r[t]),l=e?dt()(n="".concat(e)).call(n,a?"&":","):"",p=a?"=":",";return dt()(i=dt()(s=dt()(u="".concat(l)).call(u,t)).call(s,p)).call(i,c)}),"");return}(e):function(e){var t,r=e.key,n=e.value,a=e.style,i=e.escape,o=function(e){return Xt(e,{escape:i})};if("simple"===a)return o(n);if("label"===a)return".".concat(o(n));if("matrix"===a)return dt()(t=";".concat(r,"=")).call(t,o(n));if("form"===a)return o(n);if("deepObject"===a)return o(n,{},!0);return}(e)}var Yt={serializeRes:rr,mergeInQueryOrForm:fr};function Zt(e){return Qt.apply(this,arguments)}function Qt(){return(Qt=Ke(Ze().mark((function e(t){var r,n,a,i,o,s=arguments;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},"object"===Ve(t)&&(t=(r=t).url),r.headers=r.headers||{},Yt.mergeInQueryOrForm(r),r.headers&<()(r.headers).forEach((function(e){var t=r.headers[e];"string"==typeof t&&(r.headers[e]=t.replace(/\n+/g," "))})),!r.requestInterceptor){e.next=12;break}return e.next=8,r.requestInterceptor(r);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=r;case 11:r=e.t0;case 12:return n=r.headers["content-type"]||r.headers["Content-Type"],/multipart\/form-data/i.test(n)&&(delete r.headers["content-type"],delete r.headers["Content-Type"]),e.prev=14,e.next=17,(r.userFetch||fetch)(r.url,r);case 17:return a=e.sent,e.next=20,Yt.serializeRes(a,t,r);case 20:if(a=e.sent,!r.responseInterceptor){e.next=28;break}return e.next=24,r.responseInterceptor(a);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=a;case 27:a=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),a){e.next=34;break}throw e.t2;case 34:throw(i=new Error(a.statusText)).status=a.status,i.statusCode=a.status,i.responseError=e.t2,i;case 39:if(a.ok){e.next=45;break}throw(o=new Error(a.statusText)).status=a.status,o.statusCode=a.status,o.response=a,o;case 45:return e.abrupt("return",a);case 46:case"end":return e.stop()}}),e,null,[[14,30]])})))).apply(this,arguments)}var er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function tr(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):bt().safeLoad(e)}function rr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.loadSpec,a=void 0!==n&&n,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:ar(e.headers)},o=i.headers["content-type"],s=a||er(o),u=s?e.text:e.blob||e.buffer;return u.call(e).then((function(e){if(i.text=e,i.data=e,s)try{var t=tr(e,o);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function nr(e){return et()(e).call(e,", ")?e.split(", "):e}function ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dt()(rt()(e))?at()(rt()(e).call(e)).reduce((function(e,t){var r=Ge(t,2),n=r[0],a=r[1];return e[n]=nr(a),e}),{}):{}}function ir(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==Ve(e)||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(void 0!==Et.Buffer&&e instanceof Et.Buffer||null!==e&&"object"===Ve(e)&&"function"==typeof e.pipe))}function or(e,t){return Array.isArray(e)&&e.some((function(e){return ir(e,t)}))}var sr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ur={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.collectionFormat,a=t.allowEmptyValue,i=t.serializationOption,o=t.encoding,s="object"!==Ve(t)||Array.isArray(t)?t:t.value,u=r?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},c=u(e);if(void 0===s&&a)return[[c,""]];if(ir(s)||or(s))return[[c,s]];if(i)return lr(e,s,r,i);if(o){if([Ve(o.style),Ve(o.explode),Ve(o.allowReserved)].some((function(e){return"undefined"!==e})))return lr(e,s,r,kt()(o,["style","explode","allowReserved"]));if(o.contentType){if("application/json"===o.contentType){var l="string"==typeof s?s:ot()(s);return[[c,u(l)]]}return[[c,u(s.toString())]]}return"object"!==Ve(s)?[[c,u(s)]]:Array.isArray(s)&&s.every((function(e){return"object"!==Ve(e)}))?[[c,ut()(s).call(s,u).join(",")]]:[[c,u(ot()(s))]]}return"object"!==Ve(s)?[[c,u(s)]]:Array.isArray(s)?"multi"===n?[[c,ut()(s).call(s,u)]]:[[c,ut()(s).call(s,u).join(ur[n||"csv"])]]:[[c,""]]}function lr(e,t,r,n){var a,i,o,s=n.style||"form",u=void 0===n.explode?"form"===s:n.explode,c=!r&&(n&&n.allowReserved?"unsafe":"reserved"),l=function(e){return Xt(e,{escape:c})},p=r?function(e){return e}:function(e){return Xt(e,{escape:c})};return"object"!==Ve(t)?[[p(e),l(t)]]:Array.isArray(t)?u?[[p(e),ut()(t).call(t,l)]]:[[p(e),ut()(t).call(t,l).join(sr[s])]]:"deepObject"===s?ut()(i=lt()(t)).call(i,(function(r){var n;return[p(dt()(n="".concat(e,"[")).call(n,r,"]")),l(t[r])]})):u?ut()(o=lt()(t)).call(o,(function(e){return[p(e),l(t[e])]})):[[p(e),ut()(a=lt()(t)).call(a,(function(e){var r;return[dt()(r="".concat(p(e),",")).call(r,l(t[e]))]})).join(",")]]}function pr(e){return ht()(e).reduce((function(e,t){var r,n=Ge(t,2),a=He(cr(n[0],n[1],!0));try{for(a.s();!(r=a.n()).done;){var i=Ge(r.value,2),o=i[0],s=i[1];if(Array.isArray(s)){var u,c=He(s);try{for(c.s();!(u=c.n()).done;){var l=u.value;e.append(o,l)}}catch(e){c.e(e)}finally{c.f()}}else e.append(o,s)}}catch(e){a.e(e)}finally{a.f()}return e}),new Ut)}function dr(e){var t=lt()(e).reduce((function(t,r){var n,a=He(cr(r,e[r]));try{for(a.s();!(n=a.n()).done;){var i=Ge(n.value,2),o=i[0],s=i[1];t[o]=s}}catch(e){a.e(e)}finally{a.f()}return t}),{});return xt().stringify(t,{encode:!1,indices:!1})||""}function fr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r=void 0===t?"":t,n=e.query,a=e.form,i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=vt()(t).call(t,(function(e){return e})).join("&");return n?"?".concat(n):""};if(a){var o=lt()(a).some((function(e){var t=a[e].value;return ir(t)||or(t)})),s=e.headers["content-type"]||e.headers["Content-Type"];o||/multipart\/form-data/i.test(s)?e.body=pr(e.form):e.body=dr(a),delete e.form}if(n){var u=r.split("?"),c=Ge(u,2),l=c[0],p=c[1],d="";if(p){var f=xt().parse(p),h=lt()(n);h.forEach((function(e){return delete f[e]})),d=xt().stringify(f,{encode:!0})}var m=i(d,dr(n));e.url=l+m,delete e.query}return e}var hr,mr=r(51942),vr=r.n(mr),gr=r(93476),xr=r.n(gr),yr=r(92762),br=r.n(yr),wr=r(13311),kr=r.n(wr),Ar=r(50308),Dr=r.n(Ar),Er=(hr=function(e,t){return(hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}hr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Sr=Object.prototype.hasOwnProperty;function Cr(e,t){return Sr.call(e,t)}function Fr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);t=[];for(var n in e)Cr(e,n)&&t.push(n);return t}function _r(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Or(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Tr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function jr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $r(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if($r(e[t]))return!0}else if("object"==typeof e){var n=Fr(e),a=n.length;for(t=0;t<a;t++)if($r(e[n[t]]))return!0}return!1}function Pr(e,t){var r=[e];for(var n in t){var a="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==a&&r.push(n+": "+a)}return r.join("\n")}var Ir=function(e){function t(t,r,n,a,i){var o=this.constructor,s=e.call(this,Pr(t,{name:r,index:n,operation:a,tree:i}))||this;return s.name=r,s.index=n,s.operation=a,s.tree=i,Object.setPrototypeOf(s,o.prototype),s.message=Pr(t,{name:r,index:n,operation:a,tree:i}),s}return Er(t,e),t}(Error),Br=Ir,Nr=_r,Rr={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=Mr(r,this.path);n&&(n=_r(n));var a=zr(r,{op:"remove",path:this.from}).removed;return zr(r,{op:"add",path:this.path,value:a}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=Mr(r,this.from);return zr(r,{op:"add",path:this.path,value:_r(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Vr(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Lr={add:function(e,t,r){return Or(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Rr.move,copy:Rr.copy,test:Rr.test,_get:Rr._get};function Mr(e,t){if(""==t)return e;var r={op:"_get",path:t};return zr(e,r),r.value}function zr(e,t,r,n,a,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===a&&(a=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):Hr(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=Mr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Vr(e,t.value),!1===o.test)throw new Br("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Br("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=_r(e));var s=(t.path||"").split("/"),u=e,c=1,l=s.length,p=void 0,d=void 0,f=void 0;for(f="function"==typeof r?r:Hr;;){if(d=s[c],a&&"__proto__"==d)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===u[d]?p=s.slice(0,c).join("/"):c==l-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),c++,Array.isArray(u)){if("-"===d)d=u.length;else{if(r&&!Or(d))throw new Br("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Or(d)&&(d=~~d)}if(c>=l){if(r&&"add"===t.op&&d>u.length)throw new Br("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=Lr[t.op].call(t,u,d,e)).test)throw new Br("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(d&&-1!=d.indexOf("~")&&(d=jr(d)),c>=l){if(!1===(o=Rr[t.op].call(t,u,d,e)).test)throw new Br("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}u=u[d]}}function Ur(e,t,r,n,a){if(void 0===n&&(n=!0),void 0===a&&(a=!0),r&&!Array.isArray(t))throw new Br("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=_r(e));for(var i=new Array(t.length),o=0,s=t.length;o<s;o++)i[o]=zr(e,t[o],r,!0,a,o),e=i[o].newDocument;return i.newDocument=e,i}function qr(e,t,r){var n=zr(e,t);if(!1===n.test)throw new Br("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Hr(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Br("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Rr[e.op])throw new Br("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Br("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Br('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Br("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Br("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&$r(e.value))throw new Br("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var a=e.path.split("/").length,i=n.split("/").length;if(a!==i+1&&a!==i)throw new Br("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new Br("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=Jr([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Br("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Jr(e,t,r){try{if(!Array.isArray(e))throw new Br("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ur(_r(t),_r(e),r||!0);else{r=r||Hr;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Br)return e;throw e}}function Vr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,a,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Vr(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var s=Object.keys(e);if((n=s.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(s[r]))return!1;for(r=n;0!=r--;)if(!Vr(e[a=s[r]],t[a]))return!1;return!0}return e!=e&&t!=t}var Gr=new WeakMap,Wr=function(e){this.observers=new Map,this.obj=e},Xr=function(e,t){this.callback=e,this.observer=t};function Kr(e,t){t.unobserve()}function Yr(e,t){var r,n=function(e){return Gr.get(e)}(e);if(n){var a=function(e,t){return e.observers.get(t)}(n,t);r=a&&a.observer}else n=new Wr(e),Gr.set(e,n);if(r)return r;if(r={},n.value=_r(e),t){r.callback=t,r.next=null;var i=function(){Zr(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){Zr(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new Xr(t,r)),r}function Zr(e,t){void 0===t&&(t=!1);var r=Gr.get(e.object);Qr(r.value,e.object,e.patches,"",t),e.patches.length&&Ur(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function Qr(e,t,r,n,a){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Fr(t),o=Fr(e),s=!1,u=o.length-1;u>=0;u--){var c=e[p=o[u]];if(!Cr(t,p)||void 0===t[p]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(a&&r.push({op:"test",path:n+"/"+Tr(p),value:_r(c)}),r.push({op:"remove",path:n+"/"+Tr(p)}),s=!0):(a&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var l=t[p];"object"==typeof c&&null!=c&&"object"==typeof l&&null!=l?Qr(c,l,r,n+"/"+Tr(p),a):c!==l&&(!0,a&&r.push({op:"test",path:n+"/"+Tr(p),value:_r(c)}),r.push({op:"replace",path:n+"/"+Tr(p),value:_r(l)}))}}if(s||i.length!=o.length)for(u=0;u<i.length;u++){var p;Cr(e,p=i[u])||void 0===t[p]||r.push({op:"add",path:n+"/"+Tr(p),value:_r(t[p])})}}}function en(e,t,r){void 0===r&&(r=!1);var n=[];return Qr(e,t,n,"",r),n}Object.assign({},n,a,{JsonPatchError:Ir,deepClone:_r,escapePathComponent:Tr,unescapePathComponent:jr});var tn=r(31312),rn=r.n(tn),nn=r(50361),an=r.n(nn);const on={add:function(e,t){return{op:"add",path:e,value:t}},replace:un,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((function(e,t){return void 0!==t&&e?e[t]:e}),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t=Te(Te({},t),{},{path:t.path&&sn(t.path)})).op){var n=wn(e,t.path);vr()(n,t.value),Ur(e,[un(t.path,n)])}else if("mergeDeep"===t.op){var a=wn(e,t.path);for(var i in t.value){var o=t.value[i],s=Array.isArray(o);if(s){var u=a[i]||[];a[i]=dt()(u).call(u,o)}else if(mn(o)&&!s){var c=Te({},a[i]);for(var l in o){if(Object.prototype.hasOwnProperty.call(c,l)){c=rn()(an()(c),o);break}vr()(c,_e({},l,o[l]))}a[i]=c}else a[i]=o}}else if("add"===t.op&&""===t.path&&mn(t.value)){var p=lt()(t.value).reduce((function(e,r){return e.push({op:"add",path:"/".concat(sn(r)),value:t.value[r]}),e}),[]);Ur(e,p)}else if("replace"===t.op&&""===t.path){var d=t.value;r.allowMetaPatches&&t.meta&&yn(t)&&(Array.isArray(t.value)||mn(t.value))&&(d=Te(Te({},d),t.meta)),e=d}else if(Ur(e,[t]),r.allowMetaPatches&&t.meta&&yn(t)&&(Array.isArray(t.value)||mn(t.value))){var f=Te(Te({},wn(e,t.path)),t.meta);Ur(e,[un(t.path,f)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(var r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:fn,fullyNormalizeArray:function(e){return hn(fn(dn(e)))},normalizeArray:dn,isPromise:function(e){return mn(e)&&vn(e.then)},forEachNew:function(e,t){try{return cn(e,pn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return cn(e,ln,t)}catch(e){return e}},isJsonPatch:gn,isContextPatch:function(e){return bn(e)&&"context"===e.type},isPatch:bn,isMutation:xn,isAdditiveMutation:yn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:vn,isObject:mn,isError:function(e){return e instanceof Error}};function sn(e){return Array.isArray(e)?e.length<1?"":"/".concat(ut()(e).call(e,(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")})).join("/")):e}function un(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function cn(e,t,r){var n;return hn(fn(ut()(n=vt()(e).call(e,yn)).call(n,(function(e){return t(e.value,r,e.path)}))||[]))}function ln(e,t,r){return r=r||[],Array.isArray(e)?ut()(e).call(e,(function(e,n){return ln(e,t,dt()(r).call(r,n))})):mn(e)?ut()(n=lt()(e)).call(n,(function(n){return ln(e[n],t,dt()(r).call(r,n))})):t(e,r[r.length-1],r);var n}function pn(e,t,r){var n=[];if((r=r||[]).length>0){var a=t(e,r[r.length-1],r);a&&(n=dt()(n).call(n,a))}if(Array.isArray(e)){var i=ut()(e).call(e,(function(e,n){return pn(e,t,dt()(r).call(r,n))}));i&&(n=dt()(n).call(n,i))}else if(mn(e)){var o,s=ut()(o=lt()(e)).call(o,(function(n){return pn(e[n],t,dt()(r).call(r,n))}));s&&(n=dt()(n).call(n,s))}return n=fn(n)}function dn(e){return Array.isArray(e)?e:[e]}function fn(e){var t;return dt()(t=[]).apply(t,qt(ut()(e).call(e,(function(e){return Array.isArray(e)?fn(e):e}))))}function hn(e){return vt()(e).call(e,(function(e){return void 0!==e}))}function mn(e){return e&&"object"===Ve(e)}function vn(e){return e&&"function"==typeof e}function gn(e){if(bn(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function xn(e){return gn(e)||bn(e)&&"mutation"===e.type}function yn(e){return xn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function bn(e){return e&&"object"===Ve(e)}function wn(e,t){try{return Mr(e,t)}catch(e){return console.error(e),{}}}var kn=r(52424),An=r.n(kn),Dn=r(54098),En=r(9779),Sn=r.n(En);function Cn(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this.message=r[0],t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var Fn=r(13692),_n=r.n(Fn),On=r(47037),Tn=r.n(On),jn=["properties"],$n=["properties"],Pn=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],In=["schema/example","items/example"];function Bn(e){var t=e[e.length-1],r=e[e.length-2],n=e.join("/");return jn.indexOf(t)>-1&&-1===$n.indexOf(r)||Pn.indexOf(n)>-1||In.some((function(e){return n.indexOf(e)>-1}))}function Nn(e,t){var r,n=Ge(e.split("#"),2),a=n[0],i=n[1],o=Be.resolve(a||"",t||"");return i?dt()(r="".concat(o,"#")).call(r,i):o}var Rn="application/json, application/yaml",Ln=new RegExp("^([a-z]+://|//)","i"),Mn=Cn("JSONRefError",(function(e,t,r){this.originalError=r,vr()(this,t||{})})),zn={},Un=new(An()),qn=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]}],Hn={key:"$ref",plugin:function(e,t,r,n){var a=n.getInstance(),i=Jt()(r).call(r,0,-1);if(!Bn(i)&&!function(e){return qn.some((function(t){return t(e)}))}(i)){var o=n.getContext(r).baseDoc;if("string"!=typeof e)return new Mn("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});var s,u,c,l=Xn(e),p=l[0],d=l[1]||"";try{s=o||p?Gn(p,o):null}catch(t){return Wn(t,{pointer:d,$ref:e,basePath:s,fullPath:r})}if(function(e,t,r,n){var a,i,o=Un.get(n);o||(o={},Un.set(n,o));var s=function(e){if(0===e.length)return"";return"/".concat(ut()(e).call(e,ta).join("/"))}(r),u=dt()(a="".concat(t||"<specmap-base>","#")).call(a,e),c=s.replace(/allOf\/\d+\/?/g,""),l=n.contextTree.get([]).baseDoc;if(t==l&&ra(c,e))return!0;var p="";if(r.some((function(e){var t;return p=dt()(t="".concat(p,"/")).call(t,ta(e)),o[p]&&o[p].some((function(e){return ra(e,u)||ra(u,e)}))})))return!0;return void(o[c]=dt()(i=o[c]||[]).call(i,u))}(d,s,i,n)&&!a.useCircularStructures){var f=Nn(e,s);return e===f?null:on.replace(r,f)}if(null==s?(c=Qn(d),void 0===(u=n.get(c))&&(u=new Mn("Could not resolve reference: ".concat(e),{pointer:d,$ref:e,baseDoc:o,fullPath:r}))):u=null!=(u=Kn(s,d)).__value?u.__value:u.catch((function(t){throw Wn(t,{pointer:d,$ref:e,baseDoc:o,fullPath:r})})),u instanceof Error)return[on.remove(r),u];var h=Nn(e,s),m=on.replace(i,u,{$$ref:h});if(s&&s!==o)return[m,on.context(i,{baseDoc:s})];try{if(!function(e,t){var r=[e];return t.path.reduce((function(e,t){return r.push(e[t]),e[t]}),e),n(t.value);function n(e){return on.isObject(e)&&(r.indexOf(e)>=0||lt()(e).some((function(t){return n(e[t])})))}}(n.state,m)||a.useCircularStructures)return m}catch(e){return null}}}},Jn=vr()(Hn,{docCache:zn,absoluteify:Gn,clearCache:function(e){void 0!==e?delete zn[e]:lt()(zn).forEach((function(e){delete zn[e]}))},JSONRefError:Mn,wrapError:Wn,getDoc:Yn,split:Xn,extractFromDoc:Kn,fetchJSON:function(e){return(0,Dn.fetch)(e,{headers:{Accept:Rn},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return bt().safeLoad(e)}))},extract:Zn,jsonPointerToArray:Qn,unescapeJsonPointerToken:ea});const Vn=Jn;function Gn(e,t){if(!Ln.test(e)){var r;if(!t)throw new Mn(dt()(r="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(r,t,"'"));return Be.resolve(t,e)}return e}function Wn(e,t){var r,n;e&&e.response&&e.response.body?r=dt()(n="".concat(e.response.body.code," ")).call(n,e.response.body.message):r=e.message;return new Mn("Could not resolve reference: ".concat(r),t,e)}function Xn(e){return(e+"").split("#")}function Kn(e,t){var r=zn[e];if(r&&!on.isPromise(r))try{var n=Zn(t,r);return vr()(xr().resolve(n),{__value:n})}catch(e){return xr().reject(e)}return Yn(e).then((function(e){return Zn(t,e)}))}function Yn(e){var t=zn[e];return t?on.isPromise(t)?t:xr().resolve(t):(zn[e]=Jn.fetchJSON(e).then((function(t){return zn[e]=t,t})),zn[e])}function Zn(e,t){var r=Qn(e);if(r.length<1)return t;var n=on.getIn(t,r);if(void 0===n)throw new Mn("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return n}function Qn(e){var t;if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(Ve(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:ut()(t=e.split("/")).call(t,ea)}function ea(e){return"string"!=typeof e?e:Sn().unescape(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function ta(e){return Sn().escape(e.replace(/~/g,"~0").replace(/\//g,"~1"))}function ra(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r,n=e.charAt(t.length),a=Jt()(t).call(t,-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==a}var na=r(41609),aa=r.n(na);const ia={key:"allOf",plugin:function(e,t,r,n,a){if(!a.meta||!a.meta.$$ref){var i=Jt()(r).call(r,0,-1);if(!Bn(i)){if(!Array.isArray(e)){var o=new TypeError("allOf must be an array");return o.fullPath=r,o}var s=!1,u=a.value;if(i.forEach((function(e){u&&(u=u[e])})),u=Te({},u),!aa()(u)){delete u.allOf;var c,l=[];if(l.push(n.replace(i,{})),e.forEach((function(e,t){if(!n.isObject(e)){if(s)return null;s=!0;var a=new TypeError("Elements in allOf must be objects");return a.fullPath=r,l.push(a)}l.push(n.mergeDeep(i,e));var o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.specmap,a=r.getBaseUrlForNodePath,i=void 0===a?function(e){var r;return n.getContext(dt()(r=[]).call(r,qt(t),qt(e))).baseDoc}:a,o=r.targetKeys,s=void 0===o?["$ref","$$ref"]:o,u=[];return _n()(e).forEach((function(){if(et()(s).call(s,this.key)&&Tn()(this.node)){var e=this.path,r=dt()(t).call(t,this.path),a=Nn(this.node,i(e));u.push(n.replace(r,a))}})),u}(e,Jt()(r).call(r,0,-1),{getBaseUrlForNodePath:function(e){var a;return n.getContext(dt()(a=[]).call(a,qt(r),[t],qt(e))).baseDoc},specmap:n});l.push.apply(l,qt(o))})),l.push(n.mergeDeep(i,u)),!u.$$ref)l.push(n.remove(dt()(c=[]).call(c,i,"$$ref")));return l}}}}},oa={key:"parameters",plugin:function(e,t,r,n){if(Array.isArray(e)&&e.length){var a=vr()([],e),i=Jt()(r).call(r,0,-1),o=Te({},on.getIn(n.spec,i));return e.forEach((function(e,t){try{a[t].default=n.parameterMacro(o,e)}catch(e){var i=new Error(e);return i.fullPath=r,i}})),on.replace(r,a)}return on.replace(r,e)}},sa={key:"properties",plugin:function(e,t,r,n){var a=Te({},e);for(var i in e)try{a[i].default=n.modelPropertyMacro(a[i])}catch(e){var o=new Error(e);return o.fullPath=r,o}return on.replace(r,a)}};var ua=function(){function e(t){St(this,e),this.root=ca(t||{})}return Ft(e,[{key:"set",value:function(e,t){var r=this.getParent(e,!0);if(r){var n=e[e.length-1],a=r.children;a[n]?la(a[n],t,r):a[n]=ca(t,r)}else la(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,r,n=this.root,a=0;a<e.length&&(r=e[a],(t=n.children)[r]);a+=1)n=t[r];return n&&n.protoValue}},{key:"getParent",value:function(e,t){return!e||e.length<1?null:e.length<2?this.root:Jt()(e).call(e,0,-1).reduce((function(e,r){if(!e)return e;var n=e.children;return!n[r]&&t&&(n[r]=ca(null,e)),n[r]}),this.root)}}]),e}();function ca(e,t){return la({children:{}},e,t)}function la(e,t,r){return e.value=t||{},e.protoValue=r?Te(Te({},r.protoValue),e.value):e.value,lt()(e.children).forEach((function(t){var r=e.children[t];e.children[t]=la(r,r.value,e)})),e}var pa=function(){function e(t){var r,n,a=this;St(this,e),vr()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ua,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:vr()(Object.create(this),on,{getInstance:function(){return a}}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=vt()(r=ut()(n=this.plugins).call(n,this.wrapPlugin.bind(this))).call(r,on.isFunction),this.patches.push(on.add([],this.spec)),this.patches.push(on.context([],this.context)),this.updatePatches(this.patches)}return Ft(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];(t=console).log.apply(t,n)}}},{key:"verbose",value:function(e){if("verbose"===this.debugLevel){for(var t,r,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];(t=console).log.apply(t,dt()(r=["[".concat(e,"] ")]).call(r,a))}}},{key:"wrapPlugin",value:function(e,t){var r,n,a,i=this.pathDiscriminator,o=null;return e[this.pluginProp]?(o=e,r=e[this.pluginProp]):on.isFunction(e)?r=e:on.isObject(e)&&(n=e,a=function(e,t){return!Array.isArray(e)||e.every((function(e,r){return e===t[r]}))},r=Ze().mark((function e(t,r){var o,s,u,c,l,p;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p=function(e,t,u){var c,l,d,f,h,m,v,g,x,y,b,w,k;return Ze().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(on.isObject(e)){o.next=6;break}if(n.key!==t[t.length-1]){o.next=4;break}return o.next=4,n.plugin(e,n.key,t,r);case 4:o.next=30;break;case 6:c=t.length-1,l=t[c],d=t.indexOf("properties"),f="properties"===l&&c===d,h=r.allowMetaPatches&&s[e.$$ref],m=0,v=lt()(e);case 12:if(!(m<v.length)){o.next=30;break}if(g=v[m],x=e[g],y=dt()(t).call(t,g),b=on.isObject(x),w=e.$$ref,h){o.next=22;break}if(!b){o.next=22;break}return r.allowMetaPatches&&w&&(s[w]=!0),o.delegateYield(p(x,y,u),"t0",22);case 22:if(f||g!==n.key){o.next=27;break}if(k=a(i,t),i&&!k){o.next=27;break}return o.next=27,n.plugin(x,g,y,r,u);case 27:m++,o.next=12;break;case 30:case"end":return o.stop()}}),o)},o=Ze().mark(p),s={},u=He(vt()(t).call(t,on.isAdditiveMutation)),e.prev=4,u.s();case 6:if((c=u.n()).done){e.next=11;break}return l=c.value,e.delegateYield(p(l.value,l.path,l),"t0",9);case 9:e.next=6;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),u.e(e.t1);case 16:return e.prev=16,u.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])}))),vr()(r.bind(o),{pluginName:e.name||t,isGenerator:on.isGenerator(r)})}},{key:"nextPlugin",value:function(){var e=this;return kr()(this.wrappedPlugins,(function(t){return e.getMutationsForPlugin(t).length>0}))}},{key:"nextPromisedPatch",value:function(){var e;if(this.promisedPatches.length>0)return xr().race(ut()(e=this.promisedPatches).call(e,(function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}},{key:"updatePatches",value:function(e){var t=this;on.normalizeArray(e).forEach((function(e){if(e instanceof Error)t.errors.push(e);else try{if(!on.isObject(e))return void t.debug("updatePatches","Got a non-object patch",e);if(t.showDebug&&t.allPatches.push(e),on.isPromise(e.value))return t.promisedPatches.push(e),void t.promisedPatchThen(e);if(on.isContextPatch(e))return void t.setContext(e.path,e.value);if(on.isMutation(e))return void t.updateMutations(e)}catch(e){console.error(e),t.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===Ve(e.value)&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=Te({},e.value));var t=on.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t,r=this.promisedPatches.indexOf(e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):br()(t=this.promisedPatches).call(t,r,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(r){var n=Te(Te({},e),{},{value:r});t.removePromisedPatch(e),t.updatePatches(n)})).catch((function(r){t.removePromisedPatch(e),t.updatePatches(r)})),e.value}},{key:"getMutations",value:function(e,t){var r;return e=e||0,"number"!=typeof t&&(t=this.mutations.length),Jt()(r=this.mutations).call(r,e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return on.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e,t=this,r=this,n=this.nextPlugin();if(!n){var a=this.nextPromisedPatch();if(a)return a.then((function(){return t.dispatch()})).catch((function(){return t.dispatch()}));var i={spec:this.state,errors:this.errors};return this.showDebug&&(i.patches=this.allPatches),xr().resolve(i)}if(r.pluginCount=r.pluginCount||{},r.pluginCount[n]=(r.pluginCount[n]||0)+1,r.pluginCount[n]>100)return xr().resolve({spec:r.state,errors:dt()(e=r.errors).call(e,new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(n!==this.currentPlugin&&this.promisedPatches.length){var o,s=ut()(o=this.promisedPatches).call(o,(function(e){return e.value}));return xr().all(ut()(s).call(s,(function(e){return e.then(Dr(),Dr())}))).then((function(){return t.dispatch()}))}return function(){r.currentPlugin=n;var e=r.getCurrentMutations(),t=r.mutations.length-1;try{if(n.isGenerator){var a,i=He(n(e,r.getLib()));try{for(i.s();!(a=i.n()).done;){u(a.value)}}catch(e){i.e(e)}finally{i.f()}}else{u(n(e,r.getLib()))}}catch(e){console.error(e),u([vr()(Object.create(e),{plugin:n})])}finally{r.updatePluginHistory(n,{mutationIndex:t})}return r.dispatch()}();function u(e){e&&(e=on.fullyNormalizeArray(e),r.updatePatches(e,n))}}}],[{key:"getPluginName",value:function(e){return e.pluginName}},{key:"getPatchesOfType",value:function(e,t){return vt()(e).call(e,t)}}]),e}();var da={refs:Vn,allOf:ia,parameters:oa,properties:sa},fa=r(13218),ha=r.n(fa),ma=function(e){return String.prototype.toLowerCase.call(e)},va=function(e){return e.replace(/[^\w]/gi,"_")};function ga(e){var t=e.openapi;return!!t&&Ie()(t,"3")}function xa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n.v2OperationIdCompatibilityMode;if(!e||"object"!==Ve(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?va(e.operationId):ya(t,r,{v2OperationIdCompatibilityMode:a})}function ya(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.v2OperationIdCompatibilityMode;if(a){var i,o,s=dt()(i="".concat(t.toLowerCase(),"_")).call(i,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(s=s||dt()(o="".concat(e.substring(1),"_")).call(o,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return dt()(r="".concat(ma(t))).call(r,va(e))}function ba(e,t){var r;return dt()(r="".concat(ma(t),"-")).call(r,e)}function wa(e,t){return e&&e.paths?function(e,t){return ka(e,t,!0)||null}(e,(function(e){var r=e.pathName,n=e.method,a=e.operation;if(!a||"object"!==Ve(a))return!1;var i=a.operationId;return[xa(a,r,n),ba(r,n),i].some((function(e){return e&&e===t}))})):null}function ka(e,t,r){if(!e||"object"!==Ve(e)||!e.paths||"object"!==Ve(e.paths))return null;var n=e.paths;for(var a in n)for(var i in n[a])if("PARAMETERS"!==i.toUpperCase()){var o=n[a][i];if(o&&"object"===Ve(o)){var s={spec:e,pathName:a,method:i.toUpperCase(),operation:o},u=t(s);if(r&&u)return s}}}function Aa(e){var t=e.spec,r=t.paths,n={};if(!r||t.$$normalized)return e;for(var a in r){var i=r[a];if(ha()(i)){var o=i.parameters,s=function(e){var r=i[e];if(!ha()(r))return"continue";var s=xa(r,a,e);if(s){n[s]?n[s].push(r):n[s]=[r];var u=n[s];if(u.length>1)u.forEach((function(e,t){var r;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=dt()(r="".concat(s)).call(r,t+1)}));else if(void 0!==r.operationId){var c=u[0];c.__originalOperationId=c.__originalOperationId||r.operationId,c.operationId=s}}if("parameters"!==e){var l=[],p={};for(var d in t)"produces"!==d&&"consumes"!==d&&"security"!==d||(p[d]=t[d],l.push(p));if(o&&(p.parameters=o,l.push(p)),l.length){var f,h=He(l);try{for(h.s();!(f=h.n()).done;){var m=f.value;for(var v in m)if(r[v]){if("parameters"===v){var g,x=He(m[v]);try{var y=function(){var e=g.value;r[v].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||r[v].push(e)};for(x.s();!(g=x.n()).done;)y()}catch(e){x.e(e)}finally{x.f()}}}else r[v]=m[v]}}catch(e){h.e(e)}finally{h.f()}}}};for(var u in i)s(u)}}return t.$$normalized=!0,e}function Da(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.requestInterceptor,n=t.responseInterceptor,a=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:Rn},credentials:a}).then((function(e){return e.body}))}}function Ea(e){var t=e.fetch,r=e.spec,n=e.url,a=e.mode,i=e.allowMetaPatches,o=void 0===i||i,s=e.pathDiscriminator,u=e.modelPropertyMacro,c=e.parameterMacro,l=e.requestInterceptor,p=e.responseInterceptor,d=e.skipNormalization,f=e.useCircularStructures,h=e.http,m=e.baseDoc;return m=m||n,h=t||h||Zt,r?v(r):Da(h,{requestInterceptor:l,responseInterceptor:p})(m).then(v);function v(e){m&&(da.refs.docCache[m]=e),da.refs.fetchJSON=Da(h,{requestInterceptor:l,responseInterceptor:p});var t,r=[da.refs];return"function"==typeof c&&r.push(da.parameters),"function"==typeof u&&r.push(da.properties),"strict"!==a&&r.push(da.allOf),(t={spec:e,context:{baseDoc:m},plugins:r,allowMetaPatches:o,pathDiscriminator:s,parameterMacro:c,modelPropertyMacro:u,useCircularStructures:f},new pa(t).dispatch()).then(d?function(){var e=Ke(Ze().mark((function e(t){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():Aa)}}var Sa=r(27361),Ca=r.n(Sa);function Fa(){return(Fa=Ke(Ze().mark((function e(t,r){var n,a,i,o,s,u,c,l,p,d,f,h,m=arguments;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=m.length>2&&void 0!==m[2]?m[2]:{},a=n.returnEntireTree,i=n.baseDoc,o=n.requestInterceptor,s=n.responseInterceptor,u=n.parameterMacro,c=n.modelPropertyMacro,l=n.useCircularStructures,p={pathDiscriminator:r,baseDoc:i,requestInterceptor:o,responseInterceptor:s,parameterMacro:u,modelPropertyMacro:c,useCircularStructures:l},d=Aa({spec:t}),f=d.spec,e.next=6,Ea(Te(Te({},p),{},{spec:f,allowMetaPatches:!0,skipNormalization:!0}));case 6:return h=e.sent,!a&&Array.isArray(r)&&r.length&&(h.spec=Ca()(h.spec,r)||null),e.abrupt("return",h);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _a=function(){return null},Oa={mapTagOperations:function(e){var t=e.spec,r=e.cb,n=void 0===r?_a:r,a=e.defaultTag,i=void 0===a?"default":a,o=e.v2OperationIdCompatibilityMode,s={},u={};return ka(t,(function(e){var r,a=e.pathName,c=e.method,l=e.operation;(l.tags?(r=l.tags,Array.isArray(r)?r:[r]):[i]).forEach((function(e){if("string"==typeof e){u[e]=u[e]||{};var r,i=u[e],p=xa(l,a,c,{v2OperationIdCompatibilityMode:o}),d=n({spec:t,pathName:a,method:c,operation:l,operationId:p});if(s[p])s[p]+=1,i[dt()(r="".concat(p)).call(r,s[p])]=d;else if(void 0!==i[p]){var f,h,m=s[p]||1;s[p]=m+1,i[dt()(f="".concat(p)).call(f,s[p])]=d;var v=i[p];delete i[p],i[dt()(h="".concat(p)).call(h,m)]=v}else i[p]=d}}))})),u},makeExecute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=t.pathName,n=t.method,a=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.execute(Te(Te({spec:e.spec},kt()(e,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:r,method:n,parameters:t,operationId:a},i))}}}};var Ta=r(95683);function ja(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=we(e);for(n=0;n<i.length;n++)r=i[n],Ta(t).call(t,r)>=0||(a[r]=e[r]);return a}(e,t);if(ke){var i=ke(e);for(n=0;n<i.length;n++)r=i[n],Ta(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var $a=r(68630),Pa=r.n($a),Ia=r(1469),Ba=r.n(Ia),Na=r(76489);const Ra={body:function(e){var t=e.req,r=e.value;t.body=r},header:function(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){var t=e.req,r=e.value,n=e.parameter;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){var a=n.name;t.query[a]=t.query[a]||{},t.query[a].allowEmptyValue=!0}},path:function(e){var t=e.req,r=e.value,n=e.parameter;t.url=t.url.split("{".concat(n.name,"}")).join(encodeURIComponent(r))},formData:function(e){var t=e.req,r=e.value,n=e.parameter;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function La(e,t){return et()(t).call(t,"application/json")?"string"==typeof e?e:ot()(e):e.toString()}function Ma(e){var t=e.req,r=e.value,n=e.parameter,a=n.name,i=n.style,o=n.explode,s=n.content;if(s){var u=lt()(s)[0];t.url=t.url.split("{".concat(a,"}")).join(Xt(La(r,u),{escape:!0}))}else{var c=Kt({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split("{".concat(a,"}")).join(c)}}function za(e){var t=e.req,r=e.value,n=e.parameter;if(t.query=t.query||{},n.content){var a=lt()(n.content)[0];t.query[n.name]=La(r,a)}else if(!1===r&&(r="false"),0===r&&(r="0"),r)t.query[n.name]={value:r,serializationOption:kt()(n,["style","explode","allowReserved"])};else if(n.allowEmptyValue&&void 0!==r){var i=n.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}}var Ua=["accept","authorization","content-type"];function qa(e){var t=e.req,r=e.parameter,n=e.value;if(t.headers=t.headers||{},!(Ua.indexOf(r.name.toLowerCase())>-1))if(r.content){var a=lt()(r.content)[0];t.headers[r.name]=La(n,a)}else void 0!==n&&(t.headers[r.name]=Kt({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Ha(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{};var a=Ve(n);if(r.content){var i,o=lt()(r.content)[0];t.headers.Cookie=dt()(i="".concat(r.name,"=")).call(i,La(n,o))}else if("undefined"!==a){var s="object"===a&&!Array.isArray(n)&&r.explode?"":"".concat(r.name,"=");t.headers.Cookie=s+Kt({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}var Ja=r(50706),Va=r.n(Ja);function Ga(e,t){var r=e.operation,n=e.requestBody,a=e.securities,i=e.spec,o=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,a=e.operation,i=void 0===a?{}:a,o=e.spec,s=$e()({},t),u=n.authorized,c=void 0===u?{}:u,l=i.security||o.security||[],p=c&&!!lt()(c).length,d=Ca()(o,["components","securitySchemes"])||{};if(s.headers=s.headers||{},s.query=s.query||{},!lt()(n).length||!p||!l||Array.isArray(i.security)&&!i.security.length)return t;return l.forEach((function(e){lt()(e).forEach((function(e){var t=c[e],r=d[e];if(t){var n=t.value||t,a=r.type;if(t)if("apiKey"===a)"query"===r.in&&(s.query[r.name]=n),"header"===r.in&&(s.headers[r.name]=n),"cookie"===r.in&&(s.cookies[r.name]=n);else if("http"===a){if(/^basic$/i.test(r.scheme)){var i,o=n.username||"",u=n.password||"",l=Va()(dt()(i="".concat(o,":")).call(i,u));s.headers.Authorization="Basic ".concat(l)}/^bearer$/i.test(r.scheme)&&(s.headers.Authorization="Bearer ".concat(n))}else if("oauth2"===a||"openIdConnect"===a){var p,f=t.token||{},h=f[r["x-tokenName"]||"access_token"],m=f.token_type;m&&"bearer"!==m.toLowerCase()||(m="Bearer"),s.headers.Authorization=dt()(p="".concat(m," ")).call(p,h)}}}))})),s}({request:t,securities:a,operation:r,spec:i});var u=r.requestBody||{},c=lt()(u.content||{}),l=s&&c.indexOf(s)>-1;if(n||o){if(s&&l)t.headers["Content-Type"]=s;else if(!s){var p=c[0];p&&(t.headers["Content-Type"]=p,s=p)}}else s&&l&&(t.headers["Content-Type"]=s);if(!e.responseContentType&&r.responses){var d,f=vt()(d=ht()(r.responses)).call(d,(function(e){var t=Ge(e,2),r=t[0],n=t[1],a=parseInt(r,10);return a>=200&&a<300&&Pa()(n.content)})).reduce((function(e,t){var r=Ge(t,2)[1];return dt()(e).call(e,lt()(r.content))}),[]);f.length>0&&(t.headers.accept=f.join(", "))}if(n)if(s){if(c.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===Ve(n)){var h=(u.content[s]||{}).encoding||{};t.form={},lt()(n).forEach((function(e){t.form[e]={value:n[e],encoding:h[e]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function Wa(e,t){var r,n,a=e.spec,i=e.operation,o=e.securities,s=e.requestContentType,u=e.responseContentType,c=e.attachContentTypeForEmptyPayload;if((t=function(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,a=e.operation,i=void 0===a?{}:a,o=e.spec,s=$e()({},t),u=n.authorized,c=void 0===u?{}:u,l=n.specSecurity,p=void 0===l?[]:l,d=i.security||p,f=c&&!!lt()(c).length,h=o.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!lt()(n).length||!f||!d||Array.isArray(i.security)&&!i.security.length)return t;return d.forEach((function(e){lt()(e).forEach((function(e){var t=c[e];if(t){var r=t.token,n=t.value||t,a=h[e],i=a.type,o=a["x-tokenName"]||"access_token",u=r&&r[o],l=r&&r.token_type;if(t)if("apiKey"===i){var p="query"===a.in?"query":"headers";s[p]=s[p]||{},s[p][a.name]=n}else if("basic"===i)if(n.header)s.headers.authorization=n.header;else{var d,f=n.username||"",m=n.password||"";n.base64=Va()(dt()(d="".concat(f,":")).call(d,m)),s.headers.authorization="Basic ".concat(n.base64)}else if("oauth2"===i&&u){var v;l=l&&"bearer"!==l.toLowerCase()?l:"Bearer",s.headers.authorization=dt()(v="".concat(l," ")).call(v,u)}}}))})),s}({request:t,securities:o,operation:i,spec:a})).body||t.form||c)if(s)t.headers["Content-Type"]=s;else if(Array.isArray(i.consumes)){var l=Ge(i.consumes,1);t.headers["Content-Type"]=l[0]}else if(Array.isArray(a.consumes)){var p=Ge(a.consumes,1);t.headers["Content-Type"]=p[0]}else i.parameters&&vt()(r=i.parameters).call(r,(function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":i.parameters&&vt()(n=i.parameters).call(n,(function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){var d,f,h=i.parameters&&vt()(d=i.parameters).call(d,(function(e){return"body"===e.in})).length>0,m=i.parameters&&vt()(f=i.parameters).call(f,(function(e){return"formData"===e.in})).length>0;(h||m)&&(t.headers["Content-Type"]=s)}return!u&&Array.isArray(i.produces)&&i.produces.length>0&&(t.headers.accept=i.produces.join(", ")),t}var Xa=function(e){return Array.isArray(e)?e:[]},Ka=Cn("OperationNotFoundError",(function(e,t,r){this.originalError=r,vr()(this,t||{})})),Ya={buildRequest:Za};function Za(e){var t,r,n=e.spec,a=e.operationId,o=e.responseContentType,s=e.scheme,u=e.requestInterceptor,c=e.responseInterceptor,l=e.contextUrl,p=e.userFetch,d=e.server,f=e.serverVariables,h=e.http,m=e.parameters,v=e.parameterBuilders,g=ga(n);v||(v=g?i:Ra);var x={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};u&&(x.requestInterceptor=u),c&&(x.responseInterceptor=c),p&&(x.userFetch=p);var y=wa(n,a);if(!y)throw new Ka("Operation ".concat(a," not found"));var b=y.operation,w=void 0===b?{}:b,k=y.method,A=y.pathName;if(x.url+=ei({spec:n,scheme:s,contextUrl:l,server:d,serverVariables:f,pathName:A,method:k}),!a)return delete x.cookies,x;x.url+=A,x.method="".concat(k).toUpperCase(),m=m||{};var D=n.paths[A]||{};o&&(x.headers.accept=o);var E=function(e){var t={};e.forEach((function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));var r=[];return lt()(t).forEach((function(e){lt()(t[e]).forEach((function(n){r.push(t[e][n])}))})),r}(dt()(t=dt()(r=[]).call(r,Xa(w.parameters))).call(t,Xa(D.parameters)));E.forEach((function(e){var t,r,a=v[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(t=m),void 0===(t=e&&e.name&&m[e.name]))t=e&&e.name&&m[dt()(r="".concat(e.in,".")).call(r,e.name)];else if(function(e,t){return vt()(t).call(t,(function(t){return t.name===e}))}(e.name,E).length>1){var i;console.warn(dt()(i="Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(i,e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(null!==t){if(void 0!==e.default&&void 0===t&&(t=e.default),void 0===t&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(g&&e.schema&&"object"===e.schema.type&&"string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}a&&a({req:x,parameter:e,value:t,operation:w,spec:n})}}));var S=Te(Te({},e),{},{operation:w});if((x=g?Ga(S,x):Wa(S,x)).cookies&<()(x.cookies).length){var C=lt()(x.cookies).reduce((function(e,t){var r=x.cookies[t];return e+(e?"&":"")+Na.serialize(t,r)}),"");x.headers.Cookie=C}return x.cookies&&delete x.cookies,fr(x),x}var Qa=function(e){return e?e.replace(/\W/g,""):null};function ei(e){return ga(e.spec)?function(e){var t=e.spec,r=e.pathName,n=e.method,a=e.server,i=e.contextUrl,o=e.serverVariables,s=void 0===o?{}:o,u=Ca()(t,["paths",r,(n||"").toLowerCase(),"servers"])||Ca()(t,["paths",r,"servers"])||Ca()(t,["servers"]),c="",l=null;if(a&&u&&u.length){var p=ut()(u).call(u,(function(e){return e.url}));p.indexOf(a)>-1&&(c=a,l=u[p.indexOf(a)])}if(!c&&u&&u.length){c=u[0].url;var d=Ge(u,1);l=d[0]}if(c.indexOf("{")>-1){(function(e){var t,r=[],n=/{([^}]+)}/g;for(;t=n.exec(e);)r.push(t[1]);return r})(c).forEach((function(e){if(l.variables&&l.variables[e]){var t=l.variables[e],r=s[e]||t.default,n=new RegExp("{".concat(e,"}"),"g");c=c.replace(n,r)}}))}return function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=r&&n?Be.parse(Be.resolve(n,r)):Be.parse(r),i=Be.parse(n),o=Qa(a.protocol)||Qa(i.protocol)||"",s=a.host||i.host,u=a.pathname||"";e=o&&s?dt()(t="".concat(o,"://")).call(t,s+u):u;return"/"===e[e.length-1]?Jt()(e).call(e,0,-1):e}(c,i)}(e):function(e){var t,r,n=e.spec,a=e.scheme,i=e.contextUrl,o=void 0===i?"":i,s=Be.parse(o),u=Array.isArray(n.schemes)?n.schemes[0]:null,c=a||u||Qa(s.protocol)||"http",l=n.host||s.host||"",p=n.basePath||"";t=c&&l?dt()(r="".concat(c,"://")).call(r,l+p):p;return"/"===t[t.length-1]?Jt()(t).call(t,0,-1):t}(e)}function ti(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?r.url=e:r=e,!(this instanceof ti))return new ti(r);$e()(this,r);var n=this.resolve().then((function(){return t.disableInterfaces||$e()(t,ti.makeApisTagOperation(t)),t}));return n.client=this,n}ti.http=Zt,ti.makeHttp=function(e,t,r){return r=r||function(e){return e},t=t||function(e){return e},function(n){return"string"==typeof n&&(n={url:n}),Yt.mergeInQueryOrForm(n),n=t(n),r(e(n))}}.bind(null,ti.http),ti.resolve=Ea,ti.resolveSubtree=function(e,t){return Fa.apply(this,arguments)},ti.execute=function(e){var t=e.http,r=e.fetch,n=e.spec,a=e.operationId,i=e.pathName,o=e.method,s=e.parameters,u=e.securities,c=ja(e,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),l=t||r||Zt;i&&o&&!a&&(a=ba(i,o));var p=Ya.buildRequest(Te({spec:n,operationId:a,parameters:s,securities:u,http:l},c));return p.body&&(Pa()(p.body)||Ba()(p.body))&&(p.body=ot()(p.body)),l(p)},ti.serializeRes=rr,ti.serializeHeaders=ar,ti.clearCache=function(){da.refs.clearCache()},ti.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Oa.makeExecute(e);return{apis:Oa.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},ti.buildRequest=Za,ti.helpers={opId:xa},ti.getBaseUrl=ei,ti.prototype={http:Zt,execute:function(e){return this.applyDefaults(),ti.execute(Te({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ti.resolve(Te({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},t)).then((function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e}))}},ti.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&Ie()(t,"http")){var r=Be.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};ti.helpers;const ri=ti;function ni(e){return null==e}var ai={isNothing:ni,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:ni(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,a,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[a=i[r]]=t[a];return e}};function ii(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function oi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ii(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}oi.prototype=Object.create(Error.prototype),oi.prototype.constructor=oi,oi.prototype.toString=function(e){return this.name+": "+ii(this,e)};var si=oi;function ui(e,t,r,n,a){var i="",o="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function ci(e,t){return ai.repeat(" ",t-e.length)+e}var li=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,a=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),a.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=a.length-2);o<0&&(o=a.length-1);var s,u,c="",l=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+l+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)u=ui(e.buffer,a[o-s],i[o-s],e.position-(a[o]-a[o-s]),p),c=ai.repeat(" ",t.indent)+ci((e.line-s+1).toString(),l)+" | "+u.str+"\n"+c;for(u=ui(e.buffer,a[o],i[o],e.position,p),c+=ai.repeat(" ",t.indent)+ci((e.line+1).toString(),l)+" | "+u.str+"\n",c+=ai.repeat("-",t.indent+l+3+u.pos)+"^\n",s=1;s<=t.linesAfter&&!(o+s>=i.length);s++)u=ui(e.buffer,a[o+s],i[o+s],e.position-(a[o]-a[o+s]),p),c+=ai.repeat(" ",t.indent)+ci((e.line+s+1).toString(),l)+" | "+u.str+"\n";return c.replace(/\n$/,"")},pi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],di=["scalar","sequence","mapping"];var fi=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===pi.indexOf(t))throw new si('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===di.indexOf(this.kind))throw new si('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function hi(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function mi(e){return this.extend(e)}mi.prototype.extend=function(e){var t=[],r=[];if(e instanceof fi)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new si("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof fi))throw new si("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new si("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new si("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof fi))throw new si("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(mi.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=hi(n,"implicit"),n.compiledExplicit=hi(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var vi=mi,gi=new fi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),xi=new fi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),yi=new fi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),bi=new vi({explicit:[gi,xi,yi]});var wi=new fi("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var ki=new fi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Ai(e){return 48<=e&&e<=55}function Di(e){return 48<=e&&e<=57}var Ei=new fi("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,i=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a<n;a++)if("_"!==(t=e[a])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(a++;a<n;a++)if("_"!==(t=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(a++;a<n;a++)if("_"!==(t=e[a])){if(!Ai(e.charCodeAt(a)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;a<n;a++)if("_"!==(t=e[a])){if(!Di(e.charCodeAt(a)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!ai.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Si=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Ci=/^[-+]?[0-9]+e/;var Fi=new fi("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Si.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||ai.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ai.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ci.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),_i=bi.extend({implicit:[wi,ki,Ei,Fi]}),Oi=_i,Ti=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ji=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var $i=new fi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Ti.exec(e)||null!==ji.exec(e))},construct:function(e){var t,r,n,a,i,o,s,u,c=0,l=null;if(null===(t=Ti.exec(e))&&(t=ji.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,n,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),u=new Date(Date.UTC(r,n,a,i,o,s,c)),l&&u.setTime(u.getTime()-l),u},instanceOf:Date,represent:function(e){return e.toISOString()}});var Pi=new fi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Bi=new fi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,a=e.length,i=Ii;for(r=0;r<a;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),a=n.length,i=Ii,o=0,s=[];for(t=0;t<a;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=a%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",a=0,i=e.length,o=Ii;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[a>>18&63],n+=o[a>>12&63],n+=o[a>>6&63],n+=o[63&a]),a=(a<<8)+e[t];return 0===(r=i%3)?(n+=o[a>>18&63],n+=o[a>>12&63],n+=o[a>>6&63],n+=o[63&a]):2===r?(n+=o[a>>10&63],n+=o[a>>4&63],n+=o[a<<2&63],n+=o[64]):1===r&&(n+=o[a>>2&63],n+=o[a<<4&63],n+=o[64],n+=o[64]),n}}),Ni=Object.prototype.hasOwnProperty,Ri=Object.prototype.toString;var Li=new fi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,a,i,o=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(n=s[t],i=!1,"[object Object]"!==Ri.call(n))return!1;for(a in n)if(Ni.call(n,a)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(a))return!1;o.push(a)}return!0},construct:function(e){return null!==e?e:[]}}),Mi=Object.prototype.toString;var zi=new fi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,a,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==Mi.call(n))return!1;if(1!==(a=Object.keys(n)).length)return!1;i[t]=[a[0],n[a[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,a,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],a=Object.keys(n),i[t]=[a[0],n[a[0]]];return i}}),Ui=Object.prototype.hasOwnProperty;var qi=new fi("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Ui.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Hi=Oi.extend({implicit:[$i,Pi],explicit:[Bi,Li,zi,qi]}),Ji=Object.prototype.hasOwnProperty,Vi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Gi=/[\x85\u2028\u2029]/,Wi=/[,\[\]\{\}]/,Xi=/^(?:!|!!|![a-z\-]+!)$/i,Ki=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yi(e){return Object.prototype.toString.call(e)}function Zi(e){return 10===e||13===e}function Qi(e){return 9===e||32===e}function eo(e){return 9===e||32===e||10===e||13===e}function to(e){return 44===e||91===e||93===e||123===e||125===e}function ro(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function no(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function ao(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var io=new Array(256),oo=new Array(256),so=0;so<256;so++)io[so]=no(so)?1:0,oo[so]=no(so);function uo(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Hi,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function co(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=li(r),new si(t,r)}function lo(e,t){throw co(e,t)}function po(e,t){e.onWarning&&e.onWarning.call(null,co(e,t))}var fo={YAML:function(e,t,r){var n,a,i;null!==e.version&&lo(e,"duplication of %YAML directive"),1!==r.length&&lo(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&lo(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),i=parseInt(n[2],10),1!==a&&lo(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&po(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&lo(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],Xi.test(n)||lo(e,"ill-formed tag handle (first argument) of the TAG directive"),Ji.call(e.tagMap,n)&&lo(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ki.test(a)||lo(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){lo(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function ho(e,t,r,n){var a,i,o,s;if(t<r){if(s=e.input.slice(t,r),n)for(a=0,i=s.length;a<i;a+=1)9===(o=s.charCodeAt(a))||32<=o&&o<=1114111||lo(e,"expected valid JSON character");else Vi.test(s)&&lo(e,"the stream contains non-printable characters");e.result+=s}}function mo(e,t,r,n){var a,i,o,s;for(ai.isObject(r)||lo(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(a=Object.keys(r)).length;o<s;o+=1)i=a[o],Ji.call(t,i)||(t[i]=r[i],n[i]=!0)}function vo(e,t,r,n,a,i,o,s,u){var c,l;if(Array.isArray(a))for(c=0,l=(a=Array.prototype.slice.call(a)).length;c<l;c+=1)Array.isArray(a[c])&&lo(e,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===Yi(a[c])&&(a[c]="[object Object]");if("object"==typeof a&&"[object Object]"===Yi(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(c=0,l=i.length;c<l;c+=1)mo(e,t,i[c],r);else mo(e,t,i,r);else e.json||Ji.call(r,a)||!Ji.call(t,a)||(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=u||e.position,lo(e,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[a]=i,delete r[a];return t}function go(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):lo(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function xo(e,t,r){for(var n=0,a=e.input.charCodeAt(e.position);0!==a;){for(;Qi(a);)9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do{a=e.input.charCodeAt(++e.position)}while(10!==a&&13!==a&&0!==a);if(!Zi(a))break;for(go(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&po(e,"deficient indentation"),n}function yo(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!eo(t)))}function bo(e,t){1===t?e.result+=" ":t>1&&(e.result+=ai.repeat("\n",t-1))}function wo(e,t){var r,n,a=e.tag,i=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,lo(e,"tab characters must not be used in indentation")),45===n)&&eo(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,xo(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Do(e,t,3,!1,!0),o.push(e.result),xo(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)lo(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=a,e.anchor=i,e.kind="sequence",e.result=o,!0)}function ko(e){var t,r,n,a,i=!1,o=!1;if(33!==(a=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&lo(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(i=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,r="!!",a=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&62!==a);e.position<e.length?(n=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):lo(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!eo(a);)33===a&&(o?lo(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Xi.test(r)||lo(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),Wi.test(n)&&lo(e,"tag suffix cannot contain flow indicator characters")}n&&!Ki.test(n)&&lo(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){lo(e,"tag name is malformed: "+n)}return i?e.tag=n:Ji.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:lo(e,'undeclared tag handle "'+r+'"'),!0}function Ao(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&lo(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eo(r)&&!to(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&lo(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Do(e,t,r,n,a){var i,o,s,u,c,l,p,d,f,h=1,m=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=s=4===r||3===r,n&&xo(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;ko(e)||Ao(e);)xo(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||a),1!==h&&4!==r||(d=1===r||2===r?t:t+1,f=e.position-e.lineStart,1===h?s&&(wo(e,f)||function(e,t,r){var n,a,i,o,s,u,c,l=e.tag,p=e.anchor,d={},f=Object.create(null),h=null,m=null,v=null,g=!1,x=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,lo(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!eo(n)){if(o=e.line,s=e.lineStart,u=e.position,!Do(e,r,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Qi(c);)c=e.input.charCodeAt(++e.position);if(58===c)eo(c=e.input.charCodeAt(++e.position))||lo(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(vo(e,d,f,h,m,null,o,s,u),h=m=v=null),x=!0,g=!1,a=!1,h=e.tag,m=e.result;else{if(!x)return e.tag=l,e.anchor=p,!0;lo(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return e.tag=l,e.anchor=p,!0;lo(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(g&&(vo(e,d,f,h,m,null,o,s,u),h=m=v=null),x=!0,g=!0,a=!0):g?(g=!1,a=!0):lo(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,u=e.position),Do(e,t,4,!0,a)&&(g?m=e.result:v=e.result),g||(vo(e,d,f,h,m,v,o,s,u),h=m=v=null),xo(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)lo(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&vo(e,d,f,h,m,null,o,s,u),x&&(e.tag=l,e.anchor=p,e.kind="mapping",e.result=d),x}(e,f,d))||function(e,t){var r,n,a,i,o,s,u,c,l,p,d,f,h=!0,m=e.tag,v=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,c=!1,i=[];else{if(123!==f)return!1;o=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(xo(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=v,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===f&&lo(e,"expected the node content, but found ','"):lo(e,"missed comma between flow collection entries"),d=null,s=u=!1,63===f&&eo(e.input.charCodeAt(e.position+1))&&(s=u=!0,e.position++,xo(e,!0,t)),r=e.line,n=e.lineStart,a=e.position,Do(e,t,1,!1,!0),p=e.tag,l=e.result,xo(e,!0,t),f=e.input.charCodeAt(e.position),!u&&e.line!==r||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),xo(e,!0,t),Do(e,t,1,!1,!0),d=e.result),c?vo(e,i,g,p,l,d,r,n,a):s?i.push(vo(e,null,g,p,l,d,r,n,a)):i.push(l),xo(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}lo(e,"unexpected end of the stream within a flow collection")}(e,d)?v=!0:(o&&function(e,t){var r,n,a,i,o,s=1,u=!1,c=!1,l=t,p=0,d=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===s?s=43===i?3:2:lo(e,"repeat of a chomping mode identifier");else{if(!((a=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===a?lo(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?lo(e,"repeat of an indentation width identifier"):(l=t+a-1,c=!0)}if(Qi(i)){do{i=e.input.charCodeAt(++e.position)}while(Qi(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Zi(i)&&0!==i)}for(;0!==i;){for(go(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<l)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>l&&(l=e.lineIndent),Zi(i))p++;else{if(e.lineIndent<l){3===s?e.result+=ai.repeat("\n",u?1+p:p):1===s&&u&&(e.result+="\n");break}for(n?Qi(i)?(d=!0,e.result+=ai.repeat("\n",u?1+p:p)):d?(d=!1,e.result+=ai.repeat("\n",p+1)):0===p?u&&(e.result+=" "):e.result+=ai.repeat("\n",p):e.result+=ai.repeat("\n",u?1+p:p),u=!0,c=!0,p=0,r=e.position;!Zi(i)&&0!==i;)i=e.input.charCodeAt(++e.position);ho(e,r,e.position,!1)}}return!0}(e,d)||function(e,t){var r,n,a;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(ho(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,a=e.position}else Zi(r)?(ho(e,n,a,!0),bo(e,xo(e,!1,t)),n=a=e.position):e.position===e.lineStart&&yo(e)?lo(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);lo(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,a,i,o,s,u;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return ho(e,r,e.position,!0),e.position++,!0;if(92===s){if(ho(e,r,e.position,!0),Zi(s=e.input.charCodeAt(++e.position)))xo(e,!1,t);else if(s<256&&io[s])e.result+=oo[s],e.position++;else if((o=120===(u=s)?2:117===u?4:85===u?8:0)>0){for(a=o,i=0;a>0;a--)(o=ro(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:lo(e,"expected hexadecimal character");e.result+=ao(i),e.position++}else lo(e,"unknown escape sequence");r=n=e.position}else Zi(s)?(ho(e,r,n,!0),bo(e,xo(e,!1,t)),r=n=e.position):e.position===e.lineStart&&yo(e)?lo(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}lo(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?v=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eo(n)&&!to(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&lo(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ji.call(e.anchorMap,r)||lo(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],xo(e,!0,-1),!0}(e)?function(e,t,r){var n,a,i,o,s,u,c,l,p=e.kind,d=e.result;if(eo(l=e.input.charCodeAt(e.position))||to(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(eo(n=e.input.charCodeAt(e.position+1))||r&&to(n)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,o=!1;0!==l;){if(58===l){if(eo(n=e.input.charCodeAt(e.position+1))||r&&to(n))break}else if(35===l){if(eo(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&yo(e)||r&&to(l))break;if(Zi(l)){if(s=e.line,u=e.lineStart,c=e.lineIndent,xo(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=u,e.lineIndent=c;break}}o&&(ho(e,a,i,!1),bo(e,e.line-s),a=i=e.position,o=!1),Qi(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return ho(e,a,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,d,1===r)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||lo(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&wo(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&lo(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,c=e.implicitTypes.length;u<c;u+=1)if((p=e.implicitTypes[u]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Ji.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,u=0,c=(l=e.typeMap.multi[e.kind||"fallback"]).length;u<c;u+=1)if(e.tag.slice(0,l[u].tag.length)===l[u].tag){p=l[u];break}p||lo(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&lo(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):lo(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function Eo(e){var t,r,n,a,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(xo(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(o=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!eo(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&lo(e,"directive name must not be less than one character in length");0!==a;){for(;Qi(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!Zi(a));break}if(Zi(a))break;for(t=e.position;0!==a&&!eo(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&go(e),Ji.call(fo,r)?fo[r](e,r,n):po(e,'unknown document directive "'+r+'"')}xo(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,xo(e,!0,-1)):o&&lo(e,"directives end mark is expected"),Do(e,e.lineIndent-1,4,!1,!0),xo(e,!0,-1),e.checkLineBreaks&&Gi.test(e.input.slice(i,e.position))&&po(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&yo(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,xo(e,!0,-1)):e.position<e.length-1&&lo(e,"end of the stream or a document separator is expected")}function So(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new uo(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,lo(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Eo(r);return r.documents}var Co={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=So(e,r);if("function"!=typeof t)return n;for(var a=0,i=n.length;a<i;a+=1)t(n[a])},load:function(e,t){var r=So(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new si("expected a single document in the stream, but found more")}}},Fo=Object.prototype.toString,_o=Object.prototype.hasOwnProperty,Oo=65279,To={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},jo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],$o=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Po(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new si("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+ai.repeat("0",n-t.length)+t}function Io(e){this.schema=e.schema||Hi,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ai.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,i,o,s,u;if(null===t)return{};for(r={},a=0,i=(n=Object.keys(t)).length;a<i;a+=1)o=n[a],s=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(u=e.compiledTypeMap.fallback[o])&&_o.call(u.styleAliases,s)&&(s=u.styleAliases[s]),r[o]=s;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Bo(e,t){for(var r,n=ai.repeat(" ",t),a=0,i=-1,o="",s=e.length;a<s;)-1===(i=e.indexOf("\n",a))?(r=e.slice(a),a=s):(r=e.slice(a,i+1),a=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function No(e,t){return"\n"+ai.repeat(" ",e.indent*t)}function Ro(e){return 32===e||9===e}function Lo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Oo||65536<=e&&e<=1114111}function Mo(e){return Lo(e)&&e!==Oo&&13!==e&&10!==e}function zo(e,t,r){var n=Mo(e),a=n&&!Ro(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!a)||Mo(t)&&!Ro(t)&&35===e||58===t&&a}function Uo(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function qo(e){return/^\n* /.test(e)}function Ho(e,t,r,n,a,i,o,s){var u,c,l=0,p=null,d=!1,f=!1,h=-1!==n,m=-1,v=Lo(c=Uo(e,0))&&c!==Oo&&!Ro(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&function(e){return!Ro(e)&&58!==e}(Uo(e,e.length-1));if(t||o)for(u=0;u<e.length;l>=65536?u+=2:u++){if(!Lo(l=Uo(e,u)))return 5;v=v&&zo(l,p,s),p=l}else{for(u=0;u<e.length;l>=65536?u+=2:u++){if(10===(l=Uo(e,u)))d=!0,h&&(f=f||u-m-1>n&&" "!==e[m+1],m=u);else if(!Lo(l))return 5;v=v&&zo(l,p,s),p=l}f=f||h&&u-m-1>n&&" "!==e[m+1]}return d||f?r>9&&qo(e)?5:o?2===i?5:2:f?4:3:!v||o||a(e)?2===i?5:2:1}function Jo(e,t,r,n,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==jo.indexOf(t)||$o.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Ho(t,s,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Vo(t,e.indent)+Go(Bo(t,i));case 4:return">"+Vo(t,e.indent)+Go(Bo(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,Wo(e.slice(0,s),t)),o="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var u=n[1],c=n[2];r=" "===c[0],i+=u+(o||r||""===c?"":"\n")+Wo(c,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",n=0,a=0;a<e.length;n>=65536?a+=2:a++)n=Uo(e,a),!(t=To[n])&&Lo(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||Po(n);return r}(t)+'"';default:throw new si("impossible error: invalid scalar style")}}()}function Vo(e,t){var r=qo(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Go(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Wo(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,i=0,o=0,s=0,u="";r=a.exec(e);)(s=r.index)-i>t&&(n=o>i?o:s,u+="\n"+e.slice(i,n),i=n+1),o=s;return u+="\n",e.length-i>t&&o>i?u+=e.slice(i,o)+"\n"+e.slice(o+1):u+=e.slice(i),u.slice(1)}function Xo(e,t,r,n){var a,i,o,s="",u=e.tag;for(a=0,i=r.length;a<i;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(Yo(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Yo(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=No(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=u,e.dump=s||"[]"}function Ko(e,t,r){var n,a,i,o,s,u;for(i=0,o=(a=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((s=a[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Fo.call(s.represent))n=s.represent(t,u);else{if(!_o.call(s.represent,u))throw new si("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');n=s.represent[u](t,u)}e.dump=n}return!0}return!1}function Yo(e,t,r,n,a,i,o){e.tag=null,e.dump=r,Ko(e,r,!1)||Ko(e,r,!0);var s,u=Fo.call(e.dump),c=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,p,d="[object Object]"===u||"[object Array]"===u;if(d&&(p=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(a=!1),p&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(d&&p&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===u)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var a,i,o,s,u,c,l="",p=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new si("sortKeys must be a boolean or a function");for(a=0,i=d.length;a<i;a+=1)c="",n&&""===l||(c+=No(e,t)),s=r[o=d[a]],e.replacer&&(s=e.replacer.call(r,o,s)),Yo(e,t+1,o,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=No(e,t)),Yo(e,t+1,s,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",l+=c+=e.dump));e.tag=p,e.dump=l||"{}"}(e,t,e.dump,a),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,a,i,o,s,u="",c=e.tag,l=Object.keys(r);for(n=0,a=l.length;n<a;n+=1)s="",""!==u&&(s+=", "),e.condenseFlow&&(s+='"'),o=r[i=l[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Yo(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Yo(e,t,o,!1,!1)&&(u+=s+=e.dump));e.tag=c,e.dump="{"+u+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===u)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Xo(e,t-1,e.dump,a):Xo(e,t,e.dump,a),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,a,i,o="",s=e.tag;for(n=0,a=r.length;n<a;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(Yo(e,t,i,!1,!1)||void 0===i&&Yo(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump));else{if("[object String]"!==u){if("[object Undefined]"===u)return!1;if(e.skipInvalid)return!1;throw new si("unacceptable kind of an object to dump "+u)}"?"!==e.tag&&Jo(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function Zo(e,t){var r,n,a=[],i=[];for(Qo(e,a,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(a[i[r]]);t.usedDuplicates=new Array(n)}function Qo(e,t,r){var n,a,i;if(null!==e&&"object"==typeof e)if(-1!==(a=t.indexOf(e)))-1===r.indexOf(a)&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,i=e.length;a<i;a+=1)Qo(e[a],t,r);else for(a=0,i=(n=Object.keys(e)).length;a<i;a+=1)Qo(e[n[a]],t,r)}function es(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const ts={Type:fi,Schema:vi,FAILSAFE_SCHEMA:bi,JSON_SCHEMA:_i,CORE_SCHEMA:Oi,DEFAULT_SCHEMA:Hi,load:Co.load,loadAll:Co.loadAll,dump:{dump:function(e,t){var r=new Io(t=t||{});r.noRefs||Zo(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Yo(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,YAMLException:si,types:{binary:Bi,float:Fi,map:yi,null:wi,pairs:zi,set:qi,timestamp:$i,bool:ki,int:Ei,merge:Pi,omap:Li,seq:xi,str:gi},safeLoad:es("safeLoad","load"),safeLoadAll:es("safeLoadAll","loadAll"),safeDump:es("safeDump","dump")};async function rs(e,t,r=""){let n;n=e?await ri(t):"string"==typeof t?await ri({spec:ts.load(t)}):await ri({spec:t});const a=n.spec;if("Not Found"===n.message||!a)throw Error("SpecificationNotFound");const i=function(e){const t=["get","put","post","delete","patch","head","options"],r=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(he,"-")}`,name:e.name,description:e.description||"",headers:e.description?ns(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],n=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",n[t]=r;for(const a in n){const i=n[a].parameters,o={servers:n[a].servers||[],parameters:n[a].parameters||[]},s="webhook"===n[a]._type;t.forEach((t=>{if(n[a][t]){const n=e.paths[a][t],u=n.tags||[];0===u.length&&u.push("General ⦂"),u.forEach((u=>{let c,l;e.tags&&(l=e.tags.find((e=>e.name.toLowerCase()===u.toLowerCase()))),c=r.find((e=>e.name===u)),c||(c={show:!0,elementId:`tag--${u.replace(he,"-")}`,name:u,description:l&&l.description||"",headers:l&&l.description?ns(l.description):[],paths:[],expanded:!l||!1!==l["x-tag-expanded"]},r.push(c));let p=(n.summary||n.description||`${t.toUpperCase()} ${a}`).trim();p.length>100&&(p=p.split(/[.|!|?]\s|[\r?\n]/)[0]);let d=[];if(d=i?n.parameters?i.filter((e=>{if(!n.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(n.parameters):i.slice(0):n.parameters?n.parameters.slice(0):[],n.callbacks)for(const[e,t]of Object.entries(n.callbacks)){const r=Object.entries(t),a=r.filter((e=>"object"==typeof e[1]))||[];n.callbacks[e]=Object.fromEntries(a),a.length!==r.length&&console.warn(`OpenAPI Explorer: Invalid Callback found in ${e}`)}c.paths.push({show:!0,expanded:!1,isWebhook:s,expandedAtLeastOnce:!1,summary:n.summary||"",description:n.description||"",shortSummary:p,method:t,path:a,operationId:n.operationId,elementId:`${t}-${a.replace(he,"-")}`,servers:n.servers?o.servers.concat(n.servers):o.servers,parameters:d,requestBody:n.requestBody,responses:n.responses,callbacks:n.callbacks,deprecated:n.deprecated,security:n.security,xCodeSamples:n["x-codeSamples"]||n["x-code-samples"]||""})}))}}))}return r.filter((e=>e.paths&&e.paths.length>0))}(a),o=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(he,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,i=r;switch(r){case"schemas":i="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":i="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":i="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":i="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":i="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":i="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":i="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":i="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":i="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:i=r,a=r}const o={show:!0,name:i,description:a,subComponents:n};t.push(o)}return t||[]}(a),s=a.info&&a.info.description?ns(a.info.description):[],u=[];a.components&&a.components.securitySchemes&&Object.entries(a.components.securitySchemes).forEach((e=>{const t={apiKeyId:e[0],...e[1]};t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.name="Authorization",t.clientId="",t.clientSecret=""),u.push(t)})),u.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay="OAuth2.0":e.typeDisplay=e.type}));let c=[];a.servers&&Array.isArray(a.servers)&&a.servers.length?(a.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),r&&a.servers.push({url:r,computedUrl:r})):r?a.servers=[{url:r,computedUrl:r}]:window.location.origin.startsWith("http")?a.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:a.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],c=a.servers;return{info:a.info,infoDescriptionHeaders:s,tags:i,components:o,externalDocs:a.externalDocs,securitySchemes:u,servers:c}}function ns(e){return te().lexer(e).filter((e=>"heading"===e.type&&e.depth<=2))||[]}const as=new WeakMap,is=(os=e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const r=as.get(t);if(void 0!==r&&E(e)&&e===r.value&&t.value===r.fragment)return;const n=document.createElement("template");n.innerHTML=e;const a=document.importNode(n.content,!0);t.setValue(a),as.set(t,{value:e,fragment:a})},(...e)=>{const t=os(...e);return o.set(t,!0),t});var os,ss=r(45772),us=r.n(ss),cs=r(92282),ls=r.n(cs);function ps(e,t){let r="";const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));if(!n)return;const a=t.target.closest("tr");if(n.type&&"http"===n.type&&n.scheme&&"basic"===n.scheme.toLowerCase()){const e=a.querySelector(".api-key-user").value.trim(),t=a.querySelector(".api-key-password").value.trim();t&&(r=`Basic ${btoa(`${e}:${t}`)}`)}else r=a.querySelector(".api-key-input").value.trim(),r&&n.scheme&&"bearer"===n.scheme.toLowerCase()&&(r=`Bearer ${r.replace(/^Bearer\s+/i,"")}`);n.finalKeyValue=r,this.requestUpdate()}function ds(){this.resolvedSpec.securitySchemes.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function fs(e,t="Bearer",r){const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e)),a=t&&"bearer"===t.toLowerCase()?"Bearer":t;n.finalKeyValue=`${a}${a?" ":""}${r}`,this.requestUpdate()}async function hs(e,t,r,n,a,i,o="header",s,u,c=null){const l=u?u.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,d=new Headers;p.append("grant_type",a),n&&p.append("redirect_uri",n),i&&p.append("code",i),"header"===o?d.set("Authorization",`Basic ${btoa(`${t}:${r}`)}`):(p.append("client_id",t),r&&p.append("client_secret",r)),c&&p.append("scope",c);const{codeVerifier:f}=JSON.parse(localStorage.getItem("openapi-explorer-oauth")||"{}");localStorage.removeItem("openapi-explorer-oauth"),f&&p.append("code_verifier",f);try{const t=await fetch(e,{method:"POST",headers:d,body:p}),r=await t.json();if(!t.ok)return void(l&&(l.innerHTML=`<span style="color:var(--red)">${r.error_description||r.error_description||"Unable to get access token"}</span>`));r.token_type&&r.access_token&&(fs.call(this,s,r.token_type,r.access_token),l&&(l.innerHTML='<span style="color:var(--green)">Access Token Received</span>'))}catch(e){l&&(l.innerHTML='<span style="color:var(--red)">Failed to get access token</span>')}}function ms(e){const t={},r=e&&e.entries()||[];for(const[e,n]of r)t[e]=n;return t}async function vs(e){const t=ms(new URLSearchParams(window.location.search)),r=ms(new URLSearchParams(window.location.hash.slice(1)));Object.assign(t,r);const n=new URL(window.location);if(n.searchParams.delete("nonce"),n.searchParams.delete("expires_in"),n.searchParams.delete("access_token"),n.searchParams.delete("token_type"),n.searchParams.delete("id_token"),n.searchParams.delete("state"),n.searchParams.delete("code"),n.searchParams.delete("iss"),n.searchParams.delete("scope"),n.searchParams.delete("prompt"),n.searchParams.delete("hd"),n.searchParams.delete("authuser"),n.searchParams.delete("redirect_auth"),!t.state)return;const a=n.toString().replace(/#((code|state|access_token|id_token|authuser|expires_in|hd|prompt|scope|token_type)=[^&]+&?)*$/gi,"");history.replaceState({},void 0,a);const{apiKeyId:i,flowId:o,url:s}=JSON.parse(us().decode(t.state));if(e&&s&&!t.redirect_auth){const e=new URL(s);return Object.keys(t).forEach((r=>e.searchParams.append(r,t[r]))),e.searchParams.append("redirect_auth",!0),void window.location.replace(e.toString())}if(t.code){const e=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===i)),r=e&&e.flows[o]&&new URL(e.flows[o].tokenUrl||"",this.selectedServer.computedUrl);await hs.call(this,r,e.clientId,e.clientSecret,e.redirectUri||window.location.href,"authorization_code",t.code,null,i)}else fs.call(this,i,t.token_type,t.access_token)}async function gs(e,t,r,n,a){const i=a.target.closest(".oauth-flow"),o=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",s=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",u=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",c=[...i.querySelectorAll('input[type="checkbox"]:checked')],l=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));let p="",d="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const n=new URL(r),a=new URLSearchParams(n.search);if("authorizationCode"===t){a.set("nonce",ls()(64).toString("hex")),p="authorization_code",d="code";const e=ls()(64).toString("hex"),t=await window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e)),r=us()(t);a.set("code_challenge",r),a.set("code_challenge_method","S256"),localStorage.setItem("openapi-explorer-oauth",JSON.stringify({codeVerifier:e}))}else"implicit"===t&&(d="token");const i=c.map((e=>e.value)).join(" ");i&&a.set("scope",i),a.set("client_id",o),a.set("redirect_uri",l.redirectUri||window.location.href),a.set("response_type",d),a.set("state",us().encode(JSON.stringify({apiKeyId:e,flowId:t,url:window.location.href}))),n.search=a.toString(),window.location.assign(n.toString())}else if("clientCredentials"===t){p="client_credentials";const t=c.map((e=>e.value)).join(" ");hs.call(this,n,o,s,"",p,"",u,e,i,t)}}function xs(e,t,r){const n=t.apiKeyId,a=e=>e?new URL(e,this.selectedServer.computedUrl):void 0,i=a(r.authorizationUrl,this.selectedServer.computedUrl),o=a(r.tokenUrl,this.selectedServer.computedUrl),s=a(r.refreshUrl,this.selectedServer.computedUrl);let u;return u="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":e,M` <div class="oauth-flow" style="padding:10px 0;margin-bottom:10px"> <div class="tiny-title upper" style="margin-bottom:5px">${u}</div> ${i?M`<div><span style="width:75px;display:inline-block">Auth URL</span> <span class="mono-font"> ${i} </span></div>`:""} ${o?M`<div><span style="width:75px;display:inline-block">Token URL</span> <span class="mono-font">${o}</span></div>`:""} ${s?M`<div><span style="width:75px;display:inline-block">Refresh URL</span> <span class="mono-font">${s}</span></div>`:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?M` ${r.scopes?M` <span> Scopes </span> <div class="oauth-scopes" part="section-auth-scopes" style="width:100%;display:flex;flex-direction:column;flex-wrap:wrap;margin:0 0 .125rem 0"> ${Object.entries(r.scopes).map(((t,r)=>M` <div class="m-checkbox" style="display:inline-flex;align-items:center"> <input type="checkbox" checked="checked" part="checkbox checkbox-auth-scope" id="${e}${r}" value="${t[0]}"> <label for="${e}${r}" style="margin-left:5px"> <span class="mono-font">${t[0]}</span> ${t[0]!==t[1]?` - ${t[1]||""}`:""} </label> </div> `))} </div> `:""} <div style="display:flex"> <input type="text" part="textbox textbox-auth-client-id" value="${t.clientId||""}" placeholder="Client ID" spellcheck="false" class="oauth-client-id"> ${"clientCredentials"===e?M` <input type="password" part="textbox textbox-auth-client-secret" value="" placeholder="Client Secret" spellcheck="false" class="oauth-client-secret" style="margin:0 5px"> <select style="margin-right:5px" class="oauth-send-client-secret-in"> <option value="header" selected="selected"> Authorization Header </option> <option value="request-body"> Request Body </option> </select>`:M`<div style="width:5px"></div>`} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?M` <button class="m-btn thin-border" part="btn btn-outline" @click="${t=>{gs.call(this,n,e,i,o,t)}}">GET TOKEN</button>`:""} </div> <div class="oauth-resp-display red-text small-font-size"></div> `:""} </div> `}function ys(){const e=this.resolvedSpec&&this.resolvedSpec.securitySchemes;if(!e)return;const t=e.filter((e=>e.finalKeyValue));return M` <section id="auth" part="section-auth" class="observe-me ${"read"===this.renderStyle?"section-gap--read-mode":"focused"===this.renderStyle?"section-gap--focused-mode":"section-gap"}"> <slot name="authentication"> <div class="section-padding"> <div class="sub-title regular-font">AUTHENTICATION</div> <div class="small-font-size" style="display:flex;align-items:center;min-height:30px"> ${t.length>0?M` <div class="blue-text"> ${t.length} API key applied </div> <div style="flex:1"></div> <button class="m-btn thin-border" part="btn btn-outline" @click="${()=>{ds.call(this)}}">CLEAR ALL API KEYS</button>`:M`<div class="red-text">No API key applied</div>`} </div> ${e.length>0?M` <table class="m-table" style="width:100%"> ${e.map((e=>M` <tr> <td style="max-width:500px;overflow-wrap:break-word"> <div style="min-height:24px"> <span style="font-weight:700">${e.typeDisplay}</span> ${e.finalKeyValue?M` <span class="blue-text"> ${e.finalKeyValue?"Key Applied":""} </span> <button class="m-btn thin-border small" part="btn btn-outline" @click="${()=>{e.finalKeyValue="",this.requestUpdate()}}">REMOVE</button> `:""} </div> ${e.description?M` <div class="m-markdown"> ${is(te()(e.description||""))} </div>`:""} </td> <td> ${e.type&&("apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&e.scheme&&"bearer"===e.scheme.toLowerCase())?M` ${"apikey"===e.type.toLowerCase()?M`Send <code>${e.name}</code> in <code>${e.in}</code> with the given value:`:M`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`} <div style="display:flex"> ${"cookie"===e.in?M` <div style="display:block"> <input type="text" value="${function(e){const t=(document.cookie||"").split(";").find((t=>t.split("=")[0]===e));return t&&t.split("=")[1]||""}(e.apiKeyId)}" disabled="disabled" class="api-key-input" placeholder="IygRVGf54B59e0GAkKmigGfuiVlp/uhFfk2ifA+jMMJzau2F1jPldc09gPTfnMw13BFBxqUZIFDm55DPfwkb0A==" spellcheck="false" style="resize:horizontal;width:100%"> <br> <small> <strong>Cookies</strong> are set and configured by the remote service, therefore it is not possible to configure them from the browser. </small> </div>`:M` <input type="text" value="${e.value}" class="api-key-input" placeholder="api-token" spellcheck="false"> <button class="m-btn thin-border" style="margin-left:5px" part="btn btn-outline" @click="${t=>{ps.call(this,e.apiKeyId,t)}}"> ${e.finalKeyValue?"UPDATE":"SET"} </button>`} </div>`:""} ${e.type&&"http"===e.type.toLowerCase()&&e.scheme&&"basic"===e.scheme.toLowerCase()?M` Send the <code>Authorization</code> header containing the type <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>. <div style="display:flex"> <input type="text" value="${e.user}" placeholder="username" spellcheck="false" class="api-key-user" style="width:100px"> <input type="password" value="${e.password}" placeholder="password" spellcheck="false" class="api-key-password" style="width:100px;margin:0 5px"> <button class="m-btn thin-border" @click="${t=>{ps.call(this,e.apiKeyId,t)}}" part="btn btn-outline"> ${e.finalKeyValue?"UPDATE":"SET"} </button> </div>`:""} </td> </tr> ${"oauth2"===e.type.toLowerCase()?M` <tr> <td colspan="2" style="border:none;padding-left:48px"> ${Object.keys(e.flows).map((t=>xs.call(this,t,e,e.flows[t])))} </td> </tr> `:""} `))} </table>`:""} </div> </slot> </section> `}function bs(e){return e&&e.length&&Array.isArray(e)?M` <div> <b>Required scopes:</b> <br> <div style="margin-left:8px"> ${e.map((e=>M`<span>${e}</span> `))} </div> </div>`:""}function ws(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return e.forEach((e=>{const r=[],n=[];Object.keys(e).forEach((t=>{const a=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===t));a&&(n.push(a.typeDisplay),r.push({...a,scopes:e[t]}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r})})),M`<div class="security-info-button" data-content-id="auth" @click="${e=>this.scrollToEventTarget(e,!1)}"> <div style="position:relative;display:flex;min-width:350px;max-width:700px;justify-content:flex-end"> <svg width="16" height="24" style="cursor:pointer"> <g> <path style="fill:var(--fg3)" d="m13.8,8.5l0,-2.6l0,0c0,-3.2 -2.6,-5.8 -5.8,-5.8s-5.8,2.6 -5.8,5.8l0,0l0,2.6l-2.1,0l0,11.2l16,0l0,-11.2l-2.1,0l-0,0l0,0l0,0l-0,0zm-9.8,-2.6c0,0 0,0 0,0c0,-2.2 1.8,-4 4,-4c2.2,0 4,1.8 4,4c0,0 0,0 0,0l0,2.6l-8.03,0l0,-2.6l0,0l0,0z"/> </g> </svg> ${t.map(((e,t)=>M` ${0!==t?M`<div style="padding:3px 4px"> OR </div>`:""} <div class="tooltip" style="cursor:pointer"> <div style="padding:2px 4px;white-space:nowrap;text-overflow:ellipsis;max-width:150px;overflow:hidden"> <span part="anchor anchor-operation-security"> ${e.securityTypes} </span> </div> <div class="tooltip-text" style="position:absolute;color:var(--fg);top:26px;right:0;border:1px solid var(--border-color);padding:2px 4px;display:block"> ${e.securityDefs.length>1?M`<div>Requires <b>all</b> of the following </div>`:""} <div style="padding-left:8px"> ${e.securityDefs.map(((t,r)=>M` ${"oauth2"===t.type?M` <div> ${e.securityDefs.length>1?M`<b>${r+1}.</b> `:M`Requires`} OAuth token (${t.apiKeyId}) in <b>Authorization header</b> ${bs(t.scopes)} </div>`:"http"===t.type?M` <div> ${e.securityDefs.length>1?M`<b>${r+1}.</b> `:M`Requires`} ${"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"} in <b>Authorization header</b> ${bs(t.scopes)} </div>`:M` <div> ${e.securityDefs.length>1?M`<b>${r+1}.</b> `:M`Requires`} Token in <b>${t.name} ${t.in}</b> ${bs(t.scopes)} </div>`} `))} </div> </div> </div> `))} </div> </div>`}return""}function ks(e){return M` <section class="table-title top-gap"> CODE SAMPLES <div class="tab-panel col" @click="${e=>{if(!e.target.classList.contains("tab-btn"))return;const t=e.target.dataset.tab,r=[...e.currentTarget.querySelectorAll(".tab-btn")],n=[...e.currentTarget.querySelectorAll(".tab-content")];r.forEach((e=>e.classList[e.dataset.tab===t?"add":"remove"]("active"))),n.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}"> <div class="tab-buttons row" style="width:100"> ${e.map(((e,t)=>M`<button class="tab-btn ${0===t?"active":""}" data-tab="${e.lang}${t}"> ${e.label||e.lang} </button>`))} </div> ${e.map(((e,t)=>M` <div class="tab-content m-markdown code-sample-wrapper" style="display:${0===t?"block":"none"}" data-tab="${e.lang}${t}"> <button class="toolbar-btn" @click="${t=>{ve(e.source,t)}}"> Copy </button> <pre style="white-space:pre;display:flex">
|
|
3
3
|
<code>${ne().languages[e.lang&&e.lang.toLowerCase()]?is(ne().highlight(e.source,ne().languages[e.lang&&e.lang.toLowerCase()],e.lang&&e.lang.toLowerCase())):e.source}</code>
|
|
4
4
|
</pre> </div>`))} </div></section>`}function As(e){return M` <div class="api-request col regular-font request-panel ${this.renderStyle}-mode"> ${Object.entries(e).map((e=>M` <div class="${this.renderStyle}-request"> <div class="req-res-title">CALLBACKS</div> <div class="table-title">${e[0]}</div> ${Object.entries(e[1]).map((e=>M` <div class="mono-font small-font-size" style="display:flex"> <div style="width:100%"> ${Object.entries(e[1]).map((t=>M` <div> <div style="margin-top:12px"> <div class="method method-fg ${t[0]}" style="width:70px;border:none;margin:0;padding:0;line-height:20px;vertical-align:baseline;text-align:left"> <span style="font-size:20px"> ⥄ </span> ${t[0]} </div> <span style="line-height:20px;vertical-align:baseline">${e[0]} </span> </div> <div class="expanded-req-resp-container"> <api-request class="request-panel" callback="true" method="${t[0]||""}" , path="${e[0]||""}" .parameters="${t[1]&&t[1].parameters||""}" .request_body="${t[1]&&t[1].requestBody||""}" fill-defaults="${this.fillRequestWithDefault}" enable-console="false" render-style="${this.renderStyle}" schema-style="${this.schemaStyle}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" allow-schema-description-expand-toggle="${this.allowSchemaDescriptionExpandToggle}" , schema-hide-read-only="${this.schemaHideReadOnly}" fetch-credentials="${this.fetchCredentials}" exportparts="btn btn-fill btn-outline btn-try"> </api-request> <api-response callback="true" .responses="${t[1]&&t[1].responses}" render-style="${this.renderStyle}" schema-style="${this.schemaStyle}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" allow-schema-description-expand-toggle="${this.allowSchemaDescriptionExpandToggle}" exportparts="btn--resp btn-fill--resp btn-outline--resp"> </api-response> </div> </div> `))} </div> </div> `))} </div> `))} </div> `}var Ds=r(80983),Es=r(83465),Ss=r.n(Es),Cs=r(26890);const Fs=r(95148);function _s(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else if(e.type){const r=Array.isArray(e.type)?e.type:"string"==typeof e.type?e.type.split("┃"):e.type;t=Array.isArray(r)?r.filter((e=>"null"!==e)).join("┃"):e.type,(e.format||e.enum)&&(t=t.replace("string",e.enum?"enum":e.format))}else t="{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:(e.readOnly?"🆁":e.writeOnly&&"🆆")||"",deprecated:e.deprecated?"❌":"",example:void 0===e.example?"":Array.isArray(e.example)?e.example:`${e.example}`,default:e.default||"",description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"===n.type&&(n.description=n.description||""),n.allowedValues=Array.isArray(e.enum)?e.enum.join("┃"):"","array"===t&&e.items){const t=e.items.type,r=void 0!==e.items.default?e.items.default:"";n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=Array.isArray(e.items.enum)?e.items.enum.join("┃"):""}if(t.match(/integer|number/g)){const t=void 0!==e.minimum?e.minimum:e.exclusiveMinimum,n=void 0!==e.maximum?e.maximum:e.exclusiveMaximum,a=void 0!==e.minimum?"[":"(",i=void 0!==e.maximum?"]":")";"number"!=typeof t&&"number"!=typeof n||(r=`Range: ${a}${t||""},${n||""}${i}`),void 0!==e.multipleOf&&(r+=`${r?", ":""}Multiples: ${e.multipleOf}`)}return t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`Min length: ${e.minLength}, Max length: ${e.maxLength}`:void 0!==e.minLength?r+=`Min length: ${e.minLength}`:void 0!==e.maxLength&&(r+=`Max length: ${e.maxLength}`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function Os(e,t){const r=e.examples?e.examples[0]:e.example;if(""===r)return"";if(null===r)return null;if(0===r)return 0;if(r)return r;if(e.default)return e.default;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;const n=Array.isArray(e.type)?e.type.filter((e=>"null"!==e))[0]:e.type;if(n.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),r=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),a=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?r||0:Number(e.exclusiveMinimum)+(n.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=a?t:a%t==0?a:Math.ceil(a/t)*t:a}if(n.match(/^boolean/g))return!1;if(n.match(/^null/g))return null;if(n.match(/^string/g)){if(e.enum)return e.enum[0];if(e.pattern){const r=e.pattern.replace(/[+*](?![^\][]*[\]])/g,"{8}").replace(/\{\d*,(\d+)?\}/g,"{8}");return(0,Cs.expandN)(r,1)[0]||t||"string"}if(!e.format)return t||"string";switch(e.format.toLowerCase()){case"url":return"https://example.com";case"uri":return"urn:namespace:type:example/resource";case"date":return(new Date).toISOString().split("T")[0];case"time":return(new Date).toISOString().split("T")[1];case"date-time":return(new Date).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"192.168.0.1";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return"4e0ba220-9575-11eb-a8b3-0242ac130003";default:return e.format}}return"?"}function Ts(e,t={}){if(!e)return[];const r={},n=[],{prefix:a,namespace:i}=e.xml||{};i&&(r[a?`xmlns:${a}`:"xmlns"]=i);const o=e.items&&e.items.xml&&e.items.xml.name||e.xml&&e.xml.name||t.propertyName||"root",s=a?`${a}:${o}`:o;if(e.allOf)return Ts(e.allOf[0],t);if(e.oneOf)return e.oneOf.map((e=>Ts(e,t))).flat(1);if(e.anyOf)return e.anyOf.map((e=>Ts(e,t))).flat(1);if("array"===e.type||e.items){if(!t.xml)return[Ts(e.items||{},t)];if(!e.xml||!e.xml.wrapped){const a=Ts(e.items||{},t);return n.push({[s]:a[0]},{_attr:r}),[n]}const a=Ts(e.items||{},{...t,propertyName:s});return n.push({[s]:a[0]},{_attr:r}),[n]}if("object"===e.type||e.properties){let o=[{}];return Object.keys(e.properties||{}).forEach((s=>{const u=e.properties[s];if(u.deprecated&&!t.includeDeprecated)return;if(u.readOnly&&!t.includeReadOnly)return;if(u.writeOnly&&!t.includeWriteOnly)return;const c=Ts(u,{...t,propertyName:s});o=function(e,t,r){return e.reduce(((e,n)=>{const a=r.slice(0,2).map((e=>({...Ss()(n),[t]:e})));return e.concat(...a)}),[]).slice(0,10)}(o,s,c),u.xml&&u.xml.namespace&&(r[u.xml.prefix?`xmlns:${u.xml.prefix}`:"xmlns"]=i);const l=u.xml&&u.xml.name||s||t.propertyName,p=a?`${a}:${l}`:l;u.xml&&u.xml.attribute?r[p]=c[0]:n.push({[p]:c[0]})})),Object.keys(r).length&&n.push({_attr:r}),t.xml?[n]:o}return[Os(e,t.propertyName)]}function js(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"];for(const t in e)js(e[t])}}function $s(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${_s(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",i=$s(e,{},r+1,a);Object.assign(n,i)}else if("array"===e.type||e.items){const t=$s(e,{},r+1);Object.assign(n,t)}else if(e.type){const t=`prop${Object.keys(n).length}`,r=_s(e);n[t]=`${r.html}`}})),t=n}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=$s(e.properties[n],{},r+1):t[n]=$s(e.properties[n],{},r+1)}const a={},i=e.anyOf?"anyOf":"oneOf";e[i].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=$s(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=$s(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${_s(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="xxx-of"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),a=[],i=[];let o;if(n.type.forEach((t=>{t.match(/integer|number|string|null|boolean/g)?a.push(t):"array"===t&&"string"==typeof(n.items&&n.items.type)&&e.items&&n.items.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?a.push(`${n.items.format}[]`):a.push(`${n.items.type}[]`):i.push(t)})),a.length>0&&(n.type=a.join("┃"),o=_s(n),0===i.length))return`${o&&o.html||""}`;if(i.length>0){t["::type"]="xxx-of";const a={"::type":"xxx-of-option"};i.forEach(((t,i)=>{if("null"===t)a[`::OPTION~${i+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=_s(n);a[`::OPTION~${i+1}`]=e.html}else if("object"===t){const t={"::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=$s(e.properties[n],{},r+1):t[n]=$s(e.properties[n],{},r+1);a[`::OPTION~${i+1}`]=t}else"array"===t&&(a[`::OPTION~${i+1}`]={"::description":e.description||"","::type":"array","::props":$s(e.items,{},r+1)})})),a[`::OPTION~${i.length+1}`]=o&&o.html||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object",t["::deprecated"]=e.deprecated||!1;for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=$s(e.properties[n],{},r+1):t[n]=$s(e.properties[n],{},r+1);e.additionalProperties&&(t["<any-key>"]=$s(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=_s(e);return t&&t.html?`${t.html}`:""}t["::description"]=e.description?e.description:e.items&&e.items.description?`array<${e.items.description}>`:"",t["::type"]="array",t["::props"]=$s(e.items,{},r+1)}return t}}function Ps(e,t,r,n,a=!0,i=!0,o){const s=n||"application/json",u=[];if(e)for(const t in e){let r="",n="json";if(s.toLowerCase().includes("json")){if("text"===o)r="string"==typeof e[t].value?e[t].value:JSON.stringify(e[t].value,void 0,2),n="text";else if(r=e[t].value,"string"==typeof e[t].value)try{const a=e[t].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');r=JSON.parse(a),n="json"}catch(a){n="text",r=e[t].value}}else r=e[t].value,n="text";u.push({exampleId:t,exampleSummary:e[t].summary||t,exampleDescription:e[t].description||"",exampleType:s,exampleValue:r,exampleFormat:n})}else if(t){let e="",r="json";if(s.toLowerCase().includes("json")){if("text"===o)e="string"==typeof t?t:JSON.stringify(t,void 0,2),r="text";else if("object"==typeof t)e=t,r="json";else if("string"==typeof t)try{e=JSON.parse(t),r="json"}catch(n){r="text",e=t}}else e=t,r="text";u.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:s,exampleValue:e,exampleFormat:r})}if(u.length)return u;if(r&&r.example)return[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:s,exampleValue:r.example,exampleFormat:s.toLowerCase().includes("json")&&"object"==typeof r.example?"json":"text"}];const c=function(e,t={}){if(t.xml)return Ts("object"===e.type?{properties:{_root:e}}:e,t).map((e=>e[0]));return Ts(e,t)}(r,{includeReadOnly:a,includeWriteOnly:i,includeDeprecated:!0,xml:s.toLowerCase().includes("xml")});return c&&(s.toLowerCase().includes("json")||s.toLowerCase().includes("text")||s.toLowerCase().includes("*/*")||s.toLowerCase().includes("xml"))?c.map(((e,t)=>{const r=e["::TITLE"]||`Example ${t+1}`,n=e["::DESCRIPTION"]||"";js(e);let a="";return a=s.toLowerCase().includes("xml")?Fs(e,{declaration:!0,indent:" "}):"text"===o?JSON.stringify(e,null,8):e,{exampleId:`Example-${t}`,exampleSummary:r,exampleDescription:n,exampleType:s,exampleFormat:s.toLowerCase().includes("xml")?"text":o,exampleValue:a}})).filter((e=>e)):[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:s,exampleValue:"",exampleFormat:"text"}]}const Is=Y`.border-top{border-top:1px solid var(--border-color)}.border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.pad-8-16{padding:8px 16px}.pad-top-8{padding-top:8px}.mar-top-8{margin-top:8px}`;class Bs extends Q{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[ae,Is,ie,Y`:host{display:flex}.json-tree{background:#333;color:#fff;padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small);overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket{padding-left:16px;border-left:1px dotted var(--border-color)}.open-bracket.collapsed+.inside-bracket,.open-bracket.collapsed+.inside-bracket+.close-bracket{display:none}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--orange)}.object{color:#fff}.toolbar{position:absolute;right:6px;display:flex;padding:2px;align-items:center}`]}render(){return M` <div class="json-tree"> <div class="toolbar"> <button class="toolbar-btn" part="btn btn-fill" @click="${e=>{ve(JSON.stringify(this.data,null,2),e)}}"> Copy </button> </div> ${this.generateTree(this.data,!0)} </div> `}generateTree(e,t=!1){if(null===e)return M`<div class="null" style="display:inline">null</div>`;if("object"==typeof e&&e instanceof Date==!1){const r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?M`${Array.isArray(e)?"[ ],":"{ },"}`:M` <div class="open-bracket expanded ${"array"===r?"array":"object"}" @click="${this.toggleExpand}"> ${"array"===r?"[":"{"}</div> <div class="inside-bracket"> ${Object.keys(e).map(((t,n,a)=>M` <div class="item"> ${"pure_object"===r?M`"${t}":`:""} ${this.generateTree(e[t],n===a.length-1)} </div>`))} </div> <div class="close-bracket">${"array"===r?"]":"}"}${t?"":","}</div> `}return"string"==typeof e||e instanceof Date?M`<span class="${typeof e}">"${e}"</span>${t?"":","}`:M`<span class="${typeof e}">${e}</span>${t?"":","}`}toggleExpand(e){const t=e.target;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}}customElements.get("openapi-explorer")||customElements.define("json-tree",Bs);const Ns=Y`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.collapsed-descr .key{overflow:hidden}.key-descr{font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none}.toolbar{display:none}.expanded-descr .key-descr{max-height:auto;overflow:hidden;display:none}.collapsed-descr .tr{max-height:20px}.tr.xxx-of{border-top:1px dotted var(--primary-color)}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;margin-bottom:1px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);color:var(--primary-color);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.byte,.date,.emai,.host,.ipv4,.pass,.stri,.string,.uri,.url,.uuid{color:var(--green)}.deci .blue,.doub,.floa,.int3,.int6,.inte,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.enum{color:var(--yellow)}.toolbar{width:100%;padding:2px 0;color:var(--primary-color)}.toolbar-item{cursor:pointer;padding:5px 0;margin:0 2px;color:#38b3f9}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:500px){.key-descr{display:block}.toolbar{display:flex}.expanded-descr .key-descr{display:block}}`;class Rs extends Q{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="true"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[ae,Ns,Is,Y`.tree{min-height:30px;background:#333;padding:10px;color:#fff;font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + 8px)}.collapsed-descr .m-markdown-small p{line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.key.deprecated .key-label{text-decoration:line-through}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.close-bracket{display:inline-block;font-family:var(--font-mono)}.tr.collapsed+.inside-bracket,.tr.collapsed+.inside-bracket+.close-bracket{display:none}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}`]}render(){return M` <div class="tree ${"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr"}"> <div class="toolbar"> ${"true"===this.allowSchemaDescriptionExpandToggle?M` <div style="flex:1"></div> <div class="toolbar-item" @click="${()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"}}"> ${"true"===this.schemaDescriptionExpanded?"Collapse description":"Expand description"} </div> `:""} </div> ${this.data&&this.data["::description"]?M`<span class="m-markdown"> ${is(te()(this.data["::description"]||""))}</span>`:""} ${this.data?M` ${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])}`:M`<span class="mono-font" style="color:var(--red)"> Schema not found </span>`} </div> `}generateTree(e,t="object",r="",n="",a=0,i=0){if(!e)return M`<div class="null" style="display:inline">null</div>`;if(0===Object.keys(e).length)return M`<span class="key object">${r}:{ }</span>`;let o="",s="";if(r.startsWith("::ONE~OF")||r.startsWith("::ANY~OF"))o=r.replace("::","").replace("~"," ");else if(r.startsWith("::OPTION")){const e=r.split("~");o=e[1],s=e[2]}else o=r;const u=250-16*i;let c="",l="";const p=e["::type"]&&e["::type"].startsWith("xxx-of")?a:a+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||r.startsWith("::OPTION")?i:i+1;if("object"===e["::type"]?"array"===t?(c=a<this.schemaExpandLevel?M`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{</span>`:M`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{...}]</span>`,l="}]"):(c=a<this.schemaExpandLevel?M`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{</span>`:M`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{...}</span>`,l="}"):"array"===e["::type"]&&("array"===t?(c=a<this.schemaExpandLevel?M`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[</span>`:M`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[...]]</span>`,l="]]"):(c=a<this.schemaExpandLevel?M`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[</span>`:M`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[...]</span>`,l="]")),"object"==typeof e)return M` <div class="tr ${a<this.schemaExpandLevel||e["::type"]&&e["::type"].startsWith("xxx-of")?"expanded":"collapsed"} ${e["::type"]||"no-type-info"}"> <div class="td key ${e["::deprecated"]?"deprecated":""}" style="min-width:${u}px"> ${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||r.startsWith("::OPTION")?M`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:o.endsWith("*")?M`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:"::props"===o||"::ARRAY~OF"===o?"":a>0?M`<span class="key-label">${o}:</span>`:""} ${"xxx-of"===e["::type"]&&"array"===t?M`<span style="color:var(--primary-color)">ARRAY</span>`:""} ${c} </div> <div class="td key-descr m-markdown-small">${is(te()(n||""))}</div> </div> <div class="inside-bracket ${e["::type"]||"no-type-info"}" style="padding-left:${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:16}px"> ${Array.isArray(e)&&e[0]?M`${this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",p,d)}`:M` ${Object.keys(e).map((t=>M` ${["::description","::type","::props","::deprecated"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?M`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],p,d)}`:"":M`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],p,d)}`} `))} `} </div> ${e["::type"]&&e["::type"].includes("xxx-of")?"":M`<div class="close-bracket"> ${l} </div>`} `;const[f,h,m,v,g,x,y,,b]=e.split("~|~");if("🆁"===h&&"true"===this.schemaHideReadOnly)return;if("🆆"===h&&"true"===this.schemaHideWriteOnly)return;const w=f.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+]/g,"").substring(0,4).toLowerCase();return M` <div class="tr primitive"> <div class="td key ${b||""}" style="min-width:${u}px"> ${o.endsWith("*")?M`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:r.startsWith("::OPTION")?M`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:a>0?M`<span class="key-label">${o}:</span>`:""} <span class="${w}"> ${"array"===t?`${f}[]`:`${f}`} </span> </div> <div class="td key-descr"> <span class="m-markdown-small" style="font-family:var(--font-mono);vertical-align:middle" title="${("🆁"===h?"Read only attribute":"🆆"===h&&"Write only attribute")||""}"> ${is(te()(`${h&&`${h} `||""}${"array"===t&&n||y||""}`))} </span> ${m?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Constraints: </span>${m}</div>`:""} ${v?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Default: </span>${v}</div>`:""} ${g?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Allowed: </span>${g}</div>`:""} ${x?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Pattern: </span>${x}</div>`:""} </div> </div> `}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}}customElements.get("openapi-explorer")||customElements.define("schema-tree",Rs);class Ls extends Q{render(){const e=M`${(this.value||[]).filter((e=>e.trim())).map((e=>M`<span class="tag">${e}</span>`))}`;return M` <div class="tags" tabindex="0"> ${e} <input type="text" class="editor" @paste="${e=>this.afterPaste(e)}" @keydown="${this.afterKeyDown}" placeholder="${this.placeholder||""}"> </div> `}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}connectedCallback(){super.connectedCallback(),Array.isArray(this.value)||(this.value=""!==this.value?[this.value]:[])}attributeChangedCallback(e,t,r){"value"===e&&r&&t!==r&&(this.value=r.split(",").filter((e=>e.trim()))),super.attributeChangedCallback(e,t,r)}afterPaste(e){const t=(e.clipboardData||window.clipboardData).getData("Text"),r=t&&t.split(",").filter((e=>e.trim()))||[];this.value=this.value.concat(r),e.preventDefault()}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),this.value=this.value.concat(e.target.value||[]),e.target.value=""):8===e.keyCode&&0===e.target.value.length&&(this.value=this.value.slice(0,-1))}static get styles(){return[Y`.tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,.tag{padding:3px;margin:2px}.tag{border:1px solid var(--border-color);background-color:var(--bg3);color:var(--fg3);border-radius:var(--border-radius);word-break:break-all;font-size:var(--font-size-small)}.tag:hover~#cursor{display:block}.editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}.editor::placeholder{color:var(--placeholder-color);opacity:1}`]}}customElements.get("openapi-explorer")||customElements.define("tag-input",Ls);const Ms=RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$|^application/vnd."),zs=RegExp("^audio/|^image/|^video/"),Us=(e,t)=>e&&e.length>t?`${e.substring(0,t-1)}…`:e;class qs extends Q{createRenderRoot(){return this}constructor(){super(),this.responseMessage="",this.responseStatus="",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},fillRequestWithDefault:{type:String,attribute:"fill-defaults"},allowTry:{type:String,attribute:"enable-console"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},fetchCredentials:{type:String,attribute:"fetch-credentials"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}render(){return M` <div class="api-request col regular-font request-panel ${"focused"===this.renderStyle||"true"===this.callback?"focused-mode":"view-mode"}"> <div class="${"true"===this.callback?"tiny-title":"req-res-title"}"> ${"true"===this.callback?"CALLBACK REQUEST":"REQUEST"} </div> <div> ${this.inputParametersTemplate("path")} ${this.inputParametersTemplate("query")} ${this.requestBodyTemplate()} ${this.inputParametersTemplate("header")} ${this.inputParametersTemplate("cookie")} ${"false"===this.allowTry?"":M`${this.apiCallTemplate()}`} </div> </div> `}updated(e){if("focused"!==this.renderStyle)return;if(1===e.size&&e.has("activeSchemaTab"))return;[...this.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{const t=this.querySelector(`textarea[data-pname='hidden-${e.dataset.pname}']`);t&&(e.value=t.value)}))}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter((t=>t.in===e)):[];if(0===t.length)return"";let r="";"path"===e?r="PATH PARAMETERS":"query"===e?r="QUERY-STRING PARAMETERS":"header"===e?r="REQUEST HEADERS":"cookie"===e&&(r="COOKIES");const n=[];for(const r of t){if(!r.schema)continue;const t=_s(r.schema);if(!t)continue;const a=Array.isArray(t.default)?t.default:`${t.default}`;let i="form",o=!0;"query"===e&&(r.style&&"form spaceDelimited pipeDelimited".includes(r.style)&&(i=r.style),"boolean"==typeof r.explode&&(o=r.explode)),n.push(M` <tr> <td style="width:160px;min-width:50px"> <div class="param-name ${t.deprecated?"deprecated":""}"> ${r.name}${!t.deprecated&&r.required?M`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type"> ${"array"===t.type?`${t.arrayType}`:`${t.format?t.format:t.type}`}${!t.deprecated&&r.required?M`<span style="opacity:0">*</span>`:""} </div> </td> ${"true"===this.allowTry?M` <td style="min-width:200px"> ${"array"===t.type?M` <tag-input class="request-param" style="width:100%" data-ptype="${e}" data-pname="${r.name}" data-default="${Array.isArray(a)?a.join("~|~"):a}" data-param-serialize-style="${i}" data-param-serialize-explode="${o}" data-array="true" placeholder="${t.example||(Array.isArray(a)?a[0]:a)||"add-multiple ↩"}" .value="${Array.isArray(a)?a:a.split(",")}"> </tag-input>`:"object"===t.type?M` <textarea class="textarea request-param" part="textarea textarea-param" data-ptype="${e}-object" data-pname="${r.name}" data-default="${a}" data-param-serialize-style="${i}" data-param-serialize-explode="${o}" spellcheck="false" placeholder="${t.example||a||""}" style="resize:vertical;width:100%;height:${"read focused".includes(this.renderStyle)?"180px":"120px"}">${"true"===this.fillRequestWithDefault?a:""}</textarea>`:M` <input type="${"password"===t.format?"password":"text"}" spellcheck="false" style="width:100%" placeholder="${t.example||a||""}" class="request-param" part="textbox textbox-param" data-ptype="${e}" data-pname="${r.name}" data-default="${Array.isArray(a)?a.join("~|~"):a}" data-array="false" @keyup="${this.requestParamFunction}" .value="${"true"===this.fillRequestWithDefault?a:""}">`} </td>`:""} ${"focused"===this.renderStyle?M` <td> ${t.default||t.constrain||t.allowedValues||t.pattern?M` <div class="param-constraint"> ${t.constrain?M`<span style="font-weight:700">Constraints: </span>${t.constrain}<br>`:""} ${t.pattern?M`<span style="font-weight:700">Pattern: </span>${Us(t.pattern,60)}<br>`:""} ${t.allowedValues&&t.allowedValues.split("┃").map(((e,n)=>M` ${n>0?"|":M`<span style="font-weight:700">Allowed: </span>`} ${M` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===t.type?t.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r.name}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td> `:""} </tr>`)}return M` <div class="table-title top-gap">${r}${"path"===e?M`<span style="color:var(--red)">*</span>`:""}</div> <div style="display:block;overflow-x:auto;max-width:100%"> <table class="m-table" style="width:100%;word-break:break-word"> ${n} </table> </div>`}resetRequestBodySelection(){this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.clearResponseData()}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;const t=e.target;window.setTimeout((e=>{const t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value}),0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;const t=e.target;this.selectedRequestBodyExample="",window.setTimeout((e=>{const t=e.closest(".request-body-container").querySelector(".request-body-param");if(t){e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value}}),0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";let e="",t="",r="",n="",a="";const i=[],o=this.request_body.content;for(const e in o)i.push({mimeType:e,schema:o[e].schema,example:o[e].example,examples:o[e].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=e);return e=1===i.length?"":M` <select style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onMimeTypeChange(e)}"> ${i.map((e=>M` <option value="${e.mimeType}" ?selected="${e.mimeType===this.selectedRequestBodyType}"> ${e.mimeType} </option> `))} </select> `,i.forEach((e=>{let i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(i=Ps(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text"),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=M` ${a} <div class="example-panel border-top pad-top-8"> ${1===i.length?"":M` <select style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onSelectExample(e)}"> ${i.map((e=>M`<option value="${e.exampleId}" ?selected="${e.exampleId===this.selectedRequestBodyExample}"> ${e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId} </option>`))} </select> `} ${i.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>M` <div class="example ${t.exampleId===this.selectedRequestBodyExample?"example-selected":""}" data-default="${t.exampleId}"> ${t.exampleSummary&&t.exampleSummary.length>80?M`<div style="padding:4px 0"> ${t.exampleSummary} </div>`:""} ${t.exampleDescription?M`<div class="m-markdown-small" style="padding:4px 0"> ${is(te()(t.exampleDescription||""))} </div>`:""} <textarea class="textarea request-body-param-user-input" part="textarea textarea-param" spellcheck="false" data-ptype="${e.mimeType}" data-default="${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}" data-default-format="${t.exampleFormat}" style="width:100%;resize:vertical">${"true"===this.fillRequestWithDefault?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8):""}</textarea> <textarea class="textarea is-hidden request-body-param ${e.mimeType.substring(e.mimeType.indexOf("/")+1)}" spellcheck="false" data-ptype="${e.mimeType}" style="width:100%;resize:vertical;display:none">${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}</textarea> </div> `))} </div> `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=Ps(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text");e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else(zs.test(this.selectedRequestBodyType)||Ms.test(this.selectedRequestBodyType))&&e.mimeType===this.selectedRequestBodyType&&(t=M` <div class="small-font-size bold-text row"> <input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${e.mimeType}" spellcheck="false"> </div> `);if(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")){const t=$s(e.schema,{});"table"===this.schemaStyle?n=M` ${n} <schema-table class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" allow-schema-description-expand-toggle="${this.allowSchemaDescriptionExpandToggle}" , schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-table> `:"tree"===this.schemaStyle&&(n=M` ${n} <schema-tree class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" allow-schema-description-expand-toggle="${this.allowSchemaDescriptionExpandToggle}" , schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-tree> `)}})),M` <div class="request-body-container" data-selected-request-body-type="${this.selectedRequestBodyType}"> <div class="table-title top-gap row"> REQUEST BODY ${this.request_body.required?M`<span class="mono-font" style="color:var(--red)">*</span>`:""} <span style="font-weight:400;margin-left:5px"> ${this.selectedRequestBodyType}</span> <span style="flex:1"></span> ${e} </div> ${this.request_body.description?M`<div class="m-markdown" style="margin-bottom:12px">${is(te()(this.request_body.description))}</div>`:""} ${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?M` <div class="tab-panel col" style="border-width:0 0 1px 0"> <div class="tab-buttons row" @click="${e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="example">BODY</button> </div> ${M`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"block":"none"}"> ${n}</div>`} ${M`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"none":"block"}"> ${a}</div>`} </div>`:M` ${t} ${r}`} </div> `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){const a=e.properties[r];if(a.readOnly)continue;const i=a.type,o=$s(a,{}),s=_s(a),u=Ps("",a.example?a.example:"",a,"json",!1,!0,"text");n.push(M` <tr> <td style="width:160px;min-width:100px"> <div class="param-name ${a.deprecated?"deprecated":""}"> ${r}${!a.deprecated&&(e.required&&e.required.includes(r)||a.required)?M`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type">${s.type}</div> </td> <td style="${"object"===i?"width:100%; padding:0;":"true"===this.allowTry?"":"display:none;"} min-width:100px" colspan="${"object"===i?2:1}"> ${"array"===i?a.items&&"binary"===a.items.format?M` <div class="file-input-container col" style="align-items:flex-end" @click="${e=>this.onAddRemoveFileInput(e,r,t)}"> <div class="input-set row"> <input type="file" part="file-input" style="width:100%" data-pname="${r}" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-array="false" data-file-array="true"> <button class="file-input-remove-btn"> ✕ </button> </div> <button class="m-btn primary file-input-add-btn" part="btn btn-fill" style="margin:2px 25px 0 0;padding:2px 6px">ADD</button> </div> `:M` <tag-input style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" data-array="true" placeholder="${(Array.isArray(s.example)?s.example[0]:s.example)||"add-multiple ↩"}" .value="${s.default||""}"> </tag-input> `:M` ${"object"===i?M` <div class="tab-panel row" style="min-height:220px;border-left:6px solid var(--light-border-color);align-items:stretch"> <div style="width:24px;background-color:var(--light-border-color)"> <div class="row" style="flex-direction:row-reverse;width:160px;height:24px;transform:rotate(270deg) translateX(-160px);transform-origin:top left;display:block" @click="${e=>{if(e.target.classList.contains("v-tab-btn")){const t=e.target.dataset.tab;if(t){const r=e.target.closest(".tab-panel"),n=r.querySelector(`.v-tab-btn[data-tab="${t}"]`),a=[...r.querySelectorAll(`.v-tab-btn:not([data-tab="${t}"])`)],i=r.querySelector(`.tab-content[data-tab="${t}"]`),o=[...r.querySelectorAll(`.tab-content:not([data-tab="${t}"])`)];n.classList.add("active"),i.style.display="block",a.forEach((e=>{e.classList.remove("active")})),o.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="v-tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="v-tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="body">REQUEST BODY</button> </div> </div> ${M` <div class="tab-content col" data-tab="model" style="display:${"model"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <schema-tree .data="${o}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" allow-schema-description-expand-toggle="${this.allowSchemaDescriptionExpandToggle}" ,> </schema-tree> </div>`} ${M` <div class="tab-content col" data-tab="example" style="display:${"body"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <textarea class="textarea" placeholder="${u[0]&&u[0].exampleValue||s.default||""}" part="textarea textarea-param" style="width:100%;border:none;resize:vertical" data-array="false" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" spellcheck="false">${"true"===this.fillRequestWithDefault?s.default:""}</textarea> <textarea data-pname="hidden-${r}" data-ptype="${t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data"}" class="is-hidden" style="display:none">${s.default}</textarea> </div>`} </div>`:M` ${"true"===this.allowTry?M`<input placeholder="${s.example||s.default||""}" .value="${"true"===this.fillRequestWithDefault&&s.default||""}" spellcheck="false" type="${"binary"===a.format?"file":"password"===a.format?"password":"text"}" part="textbox textbox-param" style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" data-array="false">`:""} `}`} </td> ${"object"===i?"":M` <td> ${s.default||s.constrain||s.allowedValues||s.pattern?M` <div class="param-constraint"> ${s.pattern?M`<span style="font-weight:700">Pattern: </span>${s.pattern}<br>`:""} ${s.constrain?M`<span style="font-weight:700">Constraints: </span>${s.constrain}<br>`:""} ${s.allowedValues&&s.allowedValues.split("┃").map(((e,t)=>M` ${t>0?"|":M`<span style="font-weight:700">Allowed: </span>`} ${M` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===s.type?s.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td>`} </tr> ${"object"===i?"":M` <tr> <td style="border:none"> </td> <td colspan="2" style="border:none;margin-top:0;padding:0 5px 8px 5px"> <span class="m-markdown-small">${is(te()(a.description||""))}</span> ${s.example?M` <span> <span style="font-weight:700"> Example: </span> ${"array"===s.type?"[ ":""} <a part="anchor anchor-param-example" class="${"true"===this.allowTry?"":"inactive-link"}" data-default-type="${"array"===s.type?s.type:"string"}" data-default="${Array.isArray(s.example)&&s.example.join("~|~")||s.example||""}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)}}"> ${"array"===s.type?s.example.join(", "):s.example} </a> ${"array"===s.type?"] ":""} </span>`:""} </td> </tr> `}`)}return M` <table style="width:100%" class="m-table"> ${n} </table> `}return M` <textarea class="textarea dynamic-form-param ${t}" part="textarea textarea-param" spellcheck="false" data-pname="dynamic-form" data-ptype="${t}" style="width:100%">${r}</textarea> ${e.description?M`<span class="m-markdown-small">${is(te()(e.description))}</span>`:""} `}apiResponseTabTemplate(){const e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return M` <div class="row" style="font-size:var(--font-size-small);margin:5px 0"> <div class="response-message ${this.responseStatus}">Response Status: ${this.responseMessage}</div> <div style="flex:1"></div> <button class="m-btn" part="btn btn-outline" @click="${this.clearResponseData}">CLEAR RESPONSE</button> </div> <div class="tab-panel col" style="border-width:0 0 1px 0"> <div id="tab_buttons" class="tab-buttons row" @click="${e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"response"===this.activeResponseTab?"active":""}" data-tab="response"> RESPONSE</button> <button class="tab-btn ${"headers"===this.activeResponseTab?"active":""}" data-tab="headers"> RESPONSE HEADERS</button> <button class="tab-btn ${"curl"===this.activeResponseTab?"active":""}" data-tab="curl">CURL</button> </div> ${this.responseIsBlob?M` <div class="tab-content col" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.downloadResponseBlob}" part="btn btn-outline">DOWNLOAD</button> ${"view"===this.responseBlobType?M`<button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.viewResponseBlob}" part="btn btn-outline">VIEW (NEW TAB)</button>`:""} </div>`:M` <div class="tab-content col m-markdown" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="toolbar-btn" @click="${e=>{ve(this.responseText,e)}}" part="btn btn-fill"> Copy </button> <pre style="white-space:pre;max-height:400px;overflow:auto">${e?M`<code>${is(ne().highlight(this.responseText,ne().languages[e],e))}</code>`:`${this.responseText}`}
|