rapidoc 9.3.7 → 9.3.8

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.
package/dist/rapidoc.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  * @preserve
4
- * RapiDoc 9.3.7 - WebComponent to View OpenAPI docs
4
+ * RapiDoc 9.3.8 - WebComponent to View OpenAPI docs
5
5
  * License: MIT
6
6
  * Repo : https://github.com/rapi-doc/RapiDoc
7
7
  * Author : Mrinmoy Majumdar
@@ -16,7 +16,7 @@
16
16
 
17
17
  // UNUSED EXPORTS: JsonSchemaViewer, OAuthReceiver, RapiDocMini, default
18
18
 
19
- ;// CONCATENATED MODULE: ./node_modules/@lit/reactive-element/css-tag.js
19
+ ;// ./node_modules/@lit/reactive-element/css-tag.js
20
20
  /**
21
21
  * @license
22
22
  * Copyright 2019 Google LLC
@@ -25,7 +25,7 @@
25
25
  const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;
26
26
  //# sourceMappingURL=css-tag.js.map
27
27
 
28
- ;// CONCATENATED MODULE: ./node_modules/@lit/reactive-element/reactive-element.js
28
+ ;// ./node_modules/@lit/reactive-element/reactive-element.js
29
29
 
30
30
  /**
31
31
  * @license
@@ -34,7 +34,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
34
34
  */const{is:reactive_element_i,defineProperty:reactive_element_e,getOwnPropertyDescriptor:reactive_element_r,getOwnPropertyNames:h,getOwnPropertySymbols:reactive_element_o,getPrototypeOf:reactive_element_n}=Object,a=globalThis,reactive_element_c=a.trustedTypes,l=reactive_element_c?reactive_element_c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!reactive_element_i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&reactive_element_e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=reactive_element_r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=reactive_element_n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...reactive_element_o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c(s))}else void 0!==s&&i.push(c(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
35
35
  //# sourceMappingURL=reactive-element.js.map
36
36
 
37
- ;// CONCATENATED MODULE: ./node_modules/lit-html/lit-html.js
37
+ ;// ./node_modules/lit-html/lit-html.js
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2017 Google LLC
@@ -43,7 +43,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
43
43
  const lit_html_n=globalThis,lit_html_c=lit_html_n.trustedTypes,lit_html_h=lit_html_c?lit_html_c.createPolicy("lit-html",{createHTML:t=>t}):void 0,lit_html_f="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,m="?"+v,_=`<${m}>`,w=document,lt=()=>w.createComment(""),st=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,$=t=>g(t)||"function"==typeof t?.[Symbol.iterator],x="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,k=/>/g,O=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),lit_html_S=/'/g,j=/"/g,M=/^(?:script|style|textarea|title)$/i,P=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),ke=P(1),Oe=P(2),Se=P(3),R=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),V=new WeakMap,I=w.createTreeWalker(w,129);function N(t,i){if(!g(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==lit_html_h?lit_html_h.createHTML(i):i}const U=(t,i)=>{const s=t.length-1,e=[];let h,o=2===i?"<svg>":3===i?"<math>":"",n=T;for(let i=0;i<s;i++){const s=t[i];let r,l,c=-1,a=0;for(;a<s.length&&(n.lastIndex=a,l=n.exec(s),null!==l);)a=n.lastIndex,n===T?"!--"===l[1]?n=E:void 0!==l[1]?n=k:void 0!==l[2]?(M.test(l[2])&&(h=RegExp("</"+l[2],"g")),n=O):void 0!==l[3]&&(n=O):n===O?">"===l[0]?(n=h??T,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,r=l[1],n=void 0===l[3]?O:'"'===l[3]?j:lit_html_S):n===j||n===lit_html_S?n=O:n===E||n===k?n=T:(n=O,h=void 0);const u=n===O&&t[i+1].startsWith("/>")?" ":"";o+=n===T?s+_:c>=0?(e.push(r),s.slice(0,c)+lit_html_f+s.slice(c)+v+u):s+v+(-2===c?i:u)}return[N(t,o+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class B{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let h=0,o=0;const n=t.length-1,r=this.parts,[l,a]=U(t,i);if(this.el=B.createElement(l,s),I.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(e=I.nextNode())&&r.length<n;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(lit_html_f)){const i=a[o++],s=e.getAttribute(t).split(v),n=/([.?@])?(.*)/.exec(i);r.push({type:1,index:h,name:n[2],strings:s,ctor:"."===n[1]?Y:"?"===n[1]?Z:"@"===n[1]?q:G}),e.removeAttribute(t)}else t.startsWith(v)&&(r.push({type:6,index:h}),e.removeAttribute(t));if(M.test(e.tagName)){const t=e.textContent.split(v),i=t.length-1;if(i>0){e.textContent=lit_html_c?lit_html_c.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],lt()),I.nextNode(),r.push({type:2,index:++h});e.append(t[i],lt())}}}else if(8===e.nodeType)if(e.data===m)r.push({type:2,index:h});else{let t=-1;for(;-1!==(t=e.data.indexOf(v,t+1));)r.push({type:7,index:h}),t+=v.length-1}h++}}static createElement(t,i){const s=w.createElement("template");return s.innerHTML=t,s}}function z(t,i,s=t,e){if(i===R)return i;let h=void 0!==e?s.o?.[e]:s.l;const o=st(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s.o??=[])[e]=h:s.l=h),void 0!==h&&(i=z(t,h._$AS(t,i.values),h,e)),i}class F{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??w).importNode(i,!0);I.currentNode=e;let h=I.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new et(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new K(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=I.nextNode(),o++)}return I.currentNode=w,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class et{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,i,s,e){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this.v=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=z(this,t,i),st(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):$(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==D&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(w.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=B.createElement(N(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new F(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new B(t)),i}k(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new et(this.O(lt()),this.O(lt()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this.v=t,this._$AP?.(t))}}class G{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=D}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=z(this,t,i,0),o=!st(t)||t!==this._$AH&&t!==R,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=z(this,e[s+n],i,n),r===R&&(r=this._$AH[n]),o||=!st(r)||r!==this._$AH[n],r===D?t=D:t!==D&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Y extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}class Z extends G{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==D)}}class q extends G{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=z(this,t,i,0)??D)===R)return;const s=this._$AH,e=t===D&&s!==D||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==D&&(s===D||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}}const si={M:lit_html_f,P:v,A:m,C:1,L:U,R:F,D:$,V:z,I:et,H:G,N:Z,U:q,B:Y,F:K},Re=lit_html_n.litHtmlPolyfillSupport;Re?.(B,et),(lit_html_n.litHtmlVersions??=[]).push("3.2.0");const Q=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new et(i.insertBefore(lt(),t),t,void 0,s??{})}return h._$AI(t),h};
44
44
  //# sourceMappingURL=lit-html.js.map
45
45
 
46
- ;// CONCATENATED MODULE: ./node_modules/lit-element/lit-element.js
46
+ ;// ./node_modules/lit-element/lit-element.js
47
47
 
48
48
  /**
49
49
  * @license
@@ -52,11 +52,11 @@ const lit_html_n=globalThis,lit_html_c=lit_html_n.trustedTypes,lit_html_h=lit_ht
52
52
  */class lit_element_h extends b{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Q(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return R}}lit_element_h._$litElement$=!0,lit_element_h["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:lit_element_h});const lit_element_f=globalThis.litElementPolyfillSupport;lit_element_f?.({LitElement:lit_element_h});const lit_element_x={_$AK:(t,e,s)=>{t._$AK(e,s)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.1.0");
53
53
  //# sourceMappingURL=lit-element.js.map
54
54
 
55
- ;// CONCATENATED MODULE: ./node_modules/lit/index.js
55
+ ;// ./node_modules/lit/index.js
56
56
 
57
57
  //# sourceMappingURL=index.js.map
58
58
 
59
- ;// CONCATENATED MODULE: ./node_modules/marked/lib/marked.esm.js
59
+ ;// ./node_modules/marked/lib/marked.esm.js
60
60
  /**
61
61
  * marked v4.3.0 - a markdown parser
62
62
  * Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
@@ -2966,7 +2966,7 @@ var prism_python = __webpack_require__(342);
2966
2966
  var prism_http = __webpack_require__(784);
2967
2967
  // EXTERNAL MODULE: ./node_modules/prismjs/components/prism-csharp.js
2968
2968
  var prism_csharp = __webpack_require__(651);
2969
- ;// CONCATENATED MODULE: ./src/styles/font-styles.js
2969
+ ;// ./src/styles/font-styles.js
2970
2970
 
2971
2971
  /* harmony default export */ const font_styles = (i`
2972
2972
  .hover-bg:hover {
@@ -3234,7 +3234,7 @@ var prism_csharp = __webpack_require__(651);
3234
3234
  border: 1px solid var(--border-color);
3235
3235
  }
3236
3236
  `);
3237
- ;// CONCATENATED MODULE: ./src/styles/input-styles.js
3237
+ ;// ./src/styles/input-styles.js
3238
3238
 
3239
3239
 
3240
3240
  /* eslint-disable max-len */
@@ -3252,10 +3252,10 @@ var prism_csharp = __webpack_require__(651);
3252
3252
  white-space: nowrap;
3253
3253
  border: 2px solid var(--primary-color);
3254
3254
  background-color:transparent;
3255
- transition: background-color 0.2s;
3256
3255
  user-select: none;
3257
3256
  cursor: pointer;
3258
3257
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
3258
+ transition-duration: 0.75s;
3259
3259
  }
3260
3260
  .m-btn.primary {
3261
3261
  background-color: var(--primary-color);
@@ -3281,6 +3281,11 @@ var prism_csharp = __webpack_require__(651);
3281
3281
  cursor: not-allowed;
3282
3282
  opacity: 0.4;
3283
3283
  }
3284
+ .m-btn:active {
3285
+ filter: brightness(75%);
3286
+ transform: scale(0.95);
3287
+ transition:scale 0s;
3288
+ }
3284
3289
  .toolbar-btn {
3285
3290
  cursor: pointer;
3286
3291
  padding: 4px;
@@ -3437,7 +3442,7 @@ input[type="checkbox"]:checked:after {
3437
3442
  right: 1px;
3438
3443
  transition: border .25s, left .15s .25s, right .25s .175s;
3439
3444
  }`);
3440
- ;// CONCATENATED MODULE: ./src/styles/flex-styles.js
3445
+ ;// ./src/styles/flex-styles.js
3441
3446
 
3442
3447
  /* harmony default export */ const flex_styles = (i`
3443
3448
  .row, .col {
@@ -3452,7 +3457,7 @@ input[type="checkbox"]:checked:after {
3452
3457
  flex-direction: column;
3453
3458
  }
3454
3459
  `);
3455
- ;// CONCATENATED MODULE: ./src/styles/table-styles.js
3460
+ ;// ./src/styles/table-styles.js
3456
3461
 
3457
3462
  /* harmony default export */ const table_styles = (i`
3458
3463
  .m-table {
@@ -3510,7 +3515,7 @@ input[type="checkbox"]:checked:after {
3510
3515
  margin: 12px 0 4px 0;
3511
3516
  }
3512
3517
  `);
3513
- ;// CONCATENATED MODULE: ./src/styles/endpoint-styles.js
3518
+ ;// ./src/styles/endpoint-styles.js
3514
3519
 
3515
3520
  /* harmony default export */ const endpoint_styles = (i`
3516
3521
  :host {
@@ -3712,7 +3717,7 @@ api-response.view-mode {
3712
3717
  }
3713
3718
  }
3714
3719
  `);
3715
- ;// CONCATENATED MODULE: ./src/styles/prism-styles.js
3720
+ ;// ./src/styles/prism-styles.js
3716
3721
 
3717
3722
  /* harmony default export */ const prism_styles = (i`
3718
3723
  code[class*="language-"],
@@ -3817,7 +3822,7 @@ pre[class*="language-"] {
3817
3822
  color: green;
3818
3823
  }
3819
3824
  `);
3820
- ;// CONCATENATED MODULE: ./src/styles/tab-styles.js
3825
+ ;// ./src/styles/tab-styles.js
3821
3826
 
3822
3827
  /* harmony default export */ const tab_styles = (i`
3823
3828
  .tab-panel {
@@ -3864,7 +3869,7 @@ pre[class*="language-"] {
3864
3869
  min-height: 50px;
3865
3870
  }
3866
3871
  `);
3867
- ;// CONCATENATED MODULE: ./src/styles/nav-styles.js
3872
+ ;// ./src/styles/nav-styles.js
3868
3873
 
3869
3874
  /* harmony default export */ const nav_styles = (i`
3870
3875
  .nav-bar-info:focus-visible,
@@ -4062,7 +4067,7 @@ pre[class*="language-"] {
4062
4067
  background-color:var(--nav-hover-bg-color);
4063
4068
  }
4064
4069
  `);
4065
- ;// CONCATENATED MODULE: ./src/styles/info-styles.js
4070
+ ;// ./src/styles/info-styles.js
4066
4071
 
4067
4072
  /* harmony default export */ const info_styles = (i`
4068
4073
  #api-info {
@@ -4083,7 +4088,7 @@ pre[class*="language-"] {
4083
4088
  width: 0px;
4084
4089
  }
4085
4090
  `);
4086
- ;// CONCATENATED MODULE: ./src/styles/custom-styles.js
4091
+ ;// ./src/styles/custom-styles.js
4087
4092
 
4088
4093
 
4089
4094
  /*
@@ -4094,7 +4099,7 @@ customize their theme. Simply add your css to this file and yarn build.
4094
4099
  /* harmony default export */ const custom_styles = (i`
4095
4100
 
4096
4101
  `);
4097
- ;// CONCATENATED MODULE: ./src/utils/common-utils.js
4102
+ ;// ./src/utils/common-utils.js
4098
4103
  /* For Delayed Event Handler Execution */
4099
4104
  function debounce(fn, delay) {
4100
4105
  let timeoutID = null;
@@ -4254,7 +4259,7 @@ function viewResource(url) {
4254
4259
  a.remove();
4255
4260
  }
4256
4261
  }
4257
- ;// CONCATENATED MODULE: ./node_modules/@apitools/openapi-parser/dist/openapi-parser.mjs
4262
+ ;// ./node_modules/@apitools/openapi-parser/dist/openapi-parser.mjs
4258
4263
  const openapi_parser_e=Object.freeze({url:"/"}),{fetch:openapi_parser_t,Response:openapi_parser_r,Headers:openapi_parser_n,Request:openapi_parser_s,FormData:openapi_parser_i,File:openapi_parser_o,Blob:openapi_parser_c}=globalThis;function openapi_parser_a(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function openapi_parser_u(e,t){return Array.isArray(e)&&e.some((e=>openapi_parser_a(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=openapi_parser_t),void 0===globalThis.Headers&&(globalThis.Headers=openapi_parser_n),void 0===globalThis.Request&&(globalThis.Request=openapi_parser_s),void 0===globalThis.Response&&(globalThis.Response=openapi_parser_r),void 0===globalThis.FormData&&(globalThis.FormData=openapi_parser_i),void 0===globalThis.File&&(globalThis.File=openapi_parser_o),void 0===globalThis.Blob&&(globalThis.Blob=openapi_parser_c);class openapi_parser_l extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function openapi_parser_h(e,t="reserved"){return[...e].map((e=>{if((e=>/^[a-z0-9\-._~]+$/i.test(e))(e))return e;if((e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1)(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function openapi_parser_f(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){if("simple"===r)return t.map((e=>openapi_parser_p(e,s))).join(",");if("label"===r)return`.${t.map((e=>openapi_parser_p(e,s))).join(".")}`;if("matrix"===r)return t.map((e=>openapi_parser_p(e,s))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>openapi_parser_p(e,s))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>openapi_parser_p(e,s))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>openapi_parser_p(e,s))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e},`:""}${r}${n?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e}.`:"."}${r}${n?"=":"."}${i}`}),"");if("matrix"===r&&n)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${openapi_parser_p(t[r],s)}`),"");if("matrix"===r)return i.reduce(((r,n)=>{const i=openapi_parser_p(t[n],s);return`${r?`${r},`:`;${e}=`}${n},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){if("simple"===r)return openapi_parser_p(t,n);if("label"===r)return`.${openapi_parser_p(t,n)}`;if("matrix"===r)return`;${e}=${openapi_parser_p(t,n)}`;if("form"===r)return openapi_parser_p(t,n);if("deepObject"===r)return openapi_parser_p(t,n);return}(e)}function openapi_parser_p(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?openapi_parser_h(e,t):e}const openapi_parser_d={form:",",spaceDelimited:"%20",pipeDelimited:"|"},openapi_parser_m={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function openapi_parser_v(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,c="object"!=typeof t||Array.isArray(t)?t:t.value,h=r?e=>e.toString():e=>encodeURIComponent(e),f=h(e);if(void 0===c&&s)return[[f,""]];if(openapi_parser_a(c)||openapi_parser_u(c))return[[f,c]];if(i)return openapi_parser_y(e,c,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return openapi_parser_y(e,c,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=h("string"==typeof c?c:JSON.stringify(c));return[[f,new openapi_parser_l(e,"blob",{type:o.contentType})]]}const e=h(String(c));return[[f,new openapi_parser_l(e,"blob",{type:o.contentType})]]}return"object"!=typeof c?[[f,h(c)]]:Array.isArray(c)&&c.every((e=>"object"!=typeof e))?[[f,c.map(h).join(",")]]:[[f,h(JSON.stringify(c))]]}return"object"!=typeof c?[[f,h(c)]]:Array.isArray(c)?"multi"===n?[[f,c.map(h)]]:[[f,c.map(h).join(openapi_parser_m[n||"csv"])]]:[[f,""]]}function openapi_parser_y(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),c=e=>openapi_parser_p(e,o),a=r?e=>e:e=>c(e);return"object"!=typeof t?[[a(e),c(t)]]:Array.isArray(t)?i?[[a(e),t.map(c)]]:[[a(e),t.map(c).join(openapi_parser_d[s])]]:"deepObject"===s?Object.keys(t).map((r=>[a(`${e}[${r}]`),c(t[r])])):i?Object.keys(t).map((e=>[a(e),c(t[e])])):[[a(e),Object.keys(t).map((e=>[`${a(e)},${c(t[e])}`])).join(",")]]}function openapi_parser_b(e){return((e,{encode:t=!0}={})=>{const r=(e,t,n)=>(null==n?e.append(t,""):Array.isArray(n)?n.reduce(((n,s)=>r(e,t,s)),e):n instanceof Date?e.append(t,n.toISOString()):"object"==typeof n?Object.entries(n).reduce(((n,[s,i])=>r(e,`${t}[${s}]`,i)),e):e.append(t,n),e),n=Object.entries(e).reduce(((e,[t,n])=>r(e,t,n)),new URLSearchParams),s=String(n);return t?s:decodeURIComponent(s)})(Object.keys(e).reduce(((t,r)=>{for(const[n,s]of openapi_parser_v(r,e[r]))t[n]=s instanceof openapi_parser_l?s.valueOf():s;return t}),{}),{encode:!1})}function openapi_parser_g(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return openapi_parser_a(t)||openapi_parser_u(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,[t,r])=>{for(const[n,s]of openapi_parser_v(t,r,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(n,r)}else e.append(n,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(n,t)}else e.append(n,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=openapi_parser_b(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=new URLSearchParams(s);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,openapi_parser_b(r));e.url=n+o,delete e.query}return e}
4259
4264
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function openapi_parser_w(e){return null==e}var openapi_parser_x=function(e,t){var r,n,s,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[s=i[r]]=t[s];return e},openapi_parser_j={isNothing:openapi_parser_w,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:openapi_parser_w(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:openapi_parser_x};function openapi_parser_E(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 openapi_parser_$(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=openapi_parser_E(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}openapi_parser_$.prototype=Object.create(Error.prototype),openapi_parser_$.prototype.constructor=openapi_parser_$,openapi_parser_$.prototype.toString=function(e){return this.name+": "+openapi_parser_E(this,e)};var openapi_parser_O=openapi_parser_$;function openapi_parser_S(e,t,r,n,s){var i="",o="",c=Math.floor(s/2)-1;return n-t>c&&(t=n-c+(i=" ... ").length),r-n>c&&(r=n+c-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function A(e,t){return openapi_parser_j.repeat(" ",t-e.length)+e}var openapi_parser_P=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,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var c,a,u="",l=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+l+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)a=openapi_parser_S(e.buffer,s[o-c],i[o-c],e.position-(s[o]-s[o-c]),h),u=openapi_parser_j.repeat(" ",t.indent)+A((e.line-c+1).toString(),l)+" | "+a.str+"\n"+u;for(a=openapi_parser_S(e.buffer,s[o],i[o],e.position,h),u+=openapi_parser_j.repeat(" ",t.indent)+A((e.line+1).toString(),l)+" | "+a.str+"\n",u+=openapi_parser_j.repeat("-",t.indent+l+3+a.pos)+"^\n",c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)a=openapi_parser_S(e.buffer,s[o+c],i[o+c],e.position-(s[o]-s[o+c]),h),u+=openapi_parser_j.repeat(" ",t.indent)+A((e.line+c+1).toString(),l)+" | "+a.str+"\n";return u.replace(/\n$/,"")},openapi_parser_T=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],openapi_parser_k=["scalar","sequence","mapping"];var openapi_parser_F=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===openapi_parser_T.indexOf(t))throw new openapi_parser_O('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===openapi_parser_k.indexOf(this.kind))throw new openapi_parser_O('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function openapi_parser_I(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 openapi_parser_R(e){return this.extend(e)}openapi_parser_R.prototype.extend=function(e){var t=[],r=[];if(e instanceof openapi_parser_F)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 openapi_parser_O("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 openapi_parser_F))throw new openapi_parser_O("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new openapi_parser_O("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 openapi_parser_O("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 openapi_parser_F))throw new openapi_parser_O("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(openapi_parser_R.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=openapi_parser_I(n,"implicit"),n.compiledExplicit=openapi_parser_I(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 openapi_parser_D=openapi_parser_R,openapi_parser_=new openapi_parser_F("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),C=new openapi_parser_F("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),openapi_parser_M=new openapi_parser_F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),openapi_parser_N=new openapi_parser_D({explicit:[openapi_parser_,C,openapi_parser_M]});var openapi_parser_q=new openapi_parser_F("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 openapi_parser_B=new openapi_parser_F("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 L(e){return 48<=e&&e<=55}function openapi_parser_U(e){return 48<=e&&e<=57}var J=new openapi_parser_F("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,i=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!L(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!openapi_parser_U(e.charCodeAt(s)))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&&!openapi_parser_j.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"]}}),openapi_parser_V=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var openapi_parser_G=/^[-+]?[0-9]+e/;var H=new openapi_parser_F("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!openapi_parser_V.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||openapi_parser_j.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(openapi_parser_j.isNegativeZero(e))return"-0.0";return r=e.toString(10),openapi_parser_G.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),openapi_parser_z=openapi_parser_N.extend({implicit:[openapi_parser_q,openapi_parser_B,J,H]}),X=openapi_parser_z,W=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),openapi_parser_Y=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 openapi_parser_Z=new openapi_parser_F("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==W.exec(e)||null!==openapi_parser_Y.exec(e))},construct:function(e){var t,r,n,s,i,o,c,a,u=0,l=null;if(null===(t=W.exec(e))&&(t=openapi_parser_Y.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),a=new Date(Date.UTC(r,n,s,i,o,c,u)),l&&a.setTime(a.getTime()-l),a},instanceOf:Date,represent:function(e){return e.toISOString()}});var openapi_parser_K=new openapi_parser_F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),openapi_parser_Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ee=new openapi_parser_F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=openapi_parser_Q;for(r=0;r<s;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,""),s=n.length,i=openapi_parser_Q,o=0,c=[];for(t=0;t<s;t++)t%4==0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)):18===r?(c.push(o>>10&255),c.push(o>>2&255)):12===r&&c.push(o>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=openapi_parser_Q;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]),s=(s<<8)+e[t];return 0===(r=i%3)?(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]):2===r?(n+=o[s>>10&63],n+=o[s>>4&63],n+=o[s<<2&63],n+=o[64]):1===r&&(n+=o[s>>2&63],n+=o[s<<4&63],n+=o[64],n+=o[64]),n}}),te=Object.prototype.hasOwnProperty,re=Object.prototype.toString;var ne=new openapi_parser_F("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],c=e;for(t=0,r=c.length;t<r;t+=1){if(n=c[t],i=!1,"[object Object]"!==re.call(n))return!1;for(s in n)if(te.call(n,s)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(s))return!1;o.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),se=Object.prototype.toString;var ie=new openapi_parser_F("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==se.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;i[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],s=Object.keys(n),i[t]=[s[0],n[s[0]]];return i}}),oe=Object.prototype.hasOwnProperty;var ce=new openapi_parser_F("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(oe.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ae=X.extend({implicit:[openapi_parser_Z,openapi_parser_K],explicit:[ee,ne,ie,ce]}),ue=Object.prototype.hasOwnProperty,le=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,he=/[\x85\u2028\u2029]/,fe=/[,\[\]\{\}]/,pe=/^(?:!|!!|![a-z\-]+!)$/i,de=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function me(e){return Object.prototype.toString.call(e)}function ve(e){return 10===e||13===e}function ye(e){return 9===e||32===e}function be(e){return 9===e||32===e||10===e||13===e}function ge(e){return 44===e||91===e||93===e||123===e||125===e}function we(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function xe(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 je(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Ee=new Array(256),$e=new Array(256),openapi_parser_Oe=0;openapi_parser_Oe<256;openapi_parser_Oe++)Ee[openapi_parser_Oe]=xe(openapi_parser_Oe)?1:0,$e[openapi_parser_Oe]=xe(openapi_parser_Oe);function openapi_parser_Se(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ae,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 Ae(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=openapi_parser_P(r),new openapi_parser_O(t,r)}function Pe(e,t){throw Ae(e,t)}function Te(e,t){e.onWarning&&e.onWarning.call(null,Ae(e,t))}var openapi_parser_ke={YAML:function(e,t,r){var n,s,i;null!==e.version&&Pe(e,"duplication of %YAML directive"),1!==r.length&&Pe(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Pe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Pe(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Te(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Pe(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],pe.test(n)||Pe(e,"ill-formed tag handle (first argument) of the TAG directive"),ue.call(e.tagMap,n)&&Pe(e,'there is a previously declared suffix for "'+n+'" tag handle'),de.test(s)||Pe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Pe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Fe(e,t,r,n){var s,i,o,c;if(t<r){if(c=e.input.slice(t,r),n)for(s=0,i=c.length;s<i;s+=1)9===(o=c.charCodeAt(s))||32<=o&&o<=1114111||Pe(e,"expected valid JSON character");else le.test(c)&&Pe(e,"the stream contains non-printable characters");e.result+=c}}function Ie(e,t,r,n){var s,i,o,c;for(openapi_parser_j.isObject(r)||Pe(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,c=(s=Object.keys(r)).length;o<c;o+=1)i=s[o],ue.call(t,i)||(t[i]=r[i],n[i]=!0)}function openapi_parser_Re(e,t,r,n,s,i,o,c,a){var u,l;if(Array.isArray(s))for(u=0,l=(s=Array.prototype.slice.call(s)).length;u<l;u+=1)Array.isArray(s[u])&&Pe(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===me(s[u])&&(s[u]="[object Object]");if("object"==typeof s&&"[object Object]"===me(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(u=0,l=i.length;u<l;u+=1)Ie(e,t,i[u],r);else Ie(e,t,i,r);else e.json||ue.call(r,s)||!ue.call(t,s)||(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=a||e.position,Pe(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function De(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Pe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _e(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;ye(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!ve(s))break;for(De(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&Te(e,"deficient indentation"),n}function Ce(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))&&!be(t)))}function Me(e,t){1===t?e.result+=" ":t>1&&(e.result+=openapi_parser_j.repeat("\n",t-1))}function Ne(e,t){var r,n,s=e.tag,i=e.anchor,o=[],c=!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,Pe(e,"tab characters must not be used in indentation")),45===n)&&be(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,_e(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Le(e,t,3,!1,!0),o.push(e.result),_e(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Pe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!c&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function qe(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Pe(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Pe(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!be(s);)33===s&&(o?Pe(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),pe.test(r)||Pe(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),fe.test(n)&&Pe(e,"tag suffix cannot contain flow indicator characters")}n&&!de.test(n)&&Pe(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Pe(e,"tag name is malformed: "+n)}return i?e.tag=n:ue.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Pe(e,'undeclared tag handle "'+r+'"'),!0}function Be(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Pe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!be(r)&&!ge(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Le(e,t,r,n,s){var i,o,c,a,u,l,h,f,p,d=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=c=4===r||3===r,n&&_e(e,!0,-1)&&(m=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;qe(e)||Be(e);)_e(e,!0,-1)?(m=!0,c=i,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):c=!1;if(c&&(c=m||s),1!==d&&4!==r||(f=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===d?c&&(Ne(e,p)||function(e,t,r){var n,s,i,o,c,a,u,l=e.tag,h=e.anchor,f={},p=Object.create(null),d=null,m=null,v=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),u=e.input.charCodeAt(e.position);0!==u;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Pe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==u&&58!==u||!be(n)){if(o=e.line,c=e.lineStart,a=e.position,!Le(e,r,2,!1,!0))break;if(e.line===i){for(u=e.input.charCodeAt(e.position);ye(u);)u=e.input.charCodeAt(++e.position);if(58===u)be(u=e.input.charCodeAt(++e.position))||Pe(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(openapi_parser_Re(e,f,p,d,m,null,o,c,a),d=m=v=null),b=!0,y=!1,s=!1,d=e.tag,m=e.result;else{if(!b)return e.tag=l,e.anchor=h,!0;Pe(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=l,e.anchor=h,!0;Pe(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(y&&(openapi_parser_Re(e,f,p,d,m,null,o,c,a),d=m=v=null),b=!0,y=!0,s=!0):y?(y=!1,s=!0):Pe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;if((e.line===i||e.lineIndent>t)&&(y&&(o=e.line,c=e.lineStart,a=e.position),Le(e,t,4,!0,s)&&(y?m=e.result:v=e.result),y||(openapi_parser_Re(e,f,p,d,m,v,o,c,a),d=m=v=null),_e(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==u)Pe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&openapi_parser_Re(e,f,p,d,m,null,o,c,a),b&&(e.tag=l,e.anchor=h,e.kind="mapping",e.result=f),b}(e,p,f))||function(e,t){var r,n,s,i,o,c,a,u,l,h,f,p,d=!0,m=e.tag,v=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,i=[];else{if(123!==p)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(_e(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=i,!0;d?44===p&&Pe(e,"expected the node content, but found ','"):Pe(e,"missed comma between flow collection entries"),f=null,c=a=!1,63===p&&be(e.input.charCodeAt(e.position+1))&&(c=a=!0,e.position++,_e(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Le(e,t,1,!1,!0),h=e.tag,l=e.result,_e(e,!0,t),p=e.input.charCodeAt(e.position),!a&&e.line!==r||58!==p||(c=!0,p=e.input.charCodeAt(++e.position),_e(e,!0,t),Le(e,t,1,!1,!0),f=e.result),u?openapi_parser_Re(e,i,y,h,l,f,r,n,s):c?i.push(openapi_parser_Re(e,null,y,h,l,f,r,n,s)):i.push(l),_e(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}Pe(e,"unexpected end of the stream within a flow collection")}(e,f)?v=!0:(o&&function(e,t){var r,n,s,i,o,c=1,a=!1,u=!1,l=t,h=0,f=!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===c?c=43===i?3:2:Pe(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Pe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?Pe(e,"repeat of an indentation width identifier"):(l=t+s-1,u=!0)}if(ye(i)){do{i=e.input.charCodeAt(++e.position)}while(ye(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ve(i)&&0!==i)}for(;0!==i;){for(De(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!u||e.lineIndent<l)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>l&&(l=e.lineIndent),ve(i))h++;else{if(e.lineIndent<l){3===c?e.result+=openapi_parser_j.repeat("\n",a?1+h:h):1===c&&a&&(e.result+="\n");break}for(n?ye(i)?(f=!0,e.result+=openapi_parser_j.repeat("\n",a?1+h:h)):f?(f=!1,e.result+=openapi_parser_j.repeat("\n",h+1)):0===h?a&&(e.result+=" "):e.result+=openapi_parser_j.repeat("\n",h):e.result+=openapi_parser_j.repeat("\n",a?1+h:h),a=!0,u=!0,h=0,r=e.position;!ve(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Fe(e,r,e.position,!1)}}return!0}(e,f)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Fe(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ve(r)?(Fe(e,n,s,!0),Me(e,_e(e,!1,t)),n=s=e.position):e.position===e.lineStart&&Ce(e)?Pe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Pe(e,"unexpected end of the stream within a single quoted scalar")}(e,f)||function(e,t){var r,n,s,i,o,c,a;if(34!==(c=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(c=e.input.charCodeAt(e.position));){if(34===c)return Fe(e,r,e.position,!0),e.position++,!0;if(92===c){if(Fe(e,r,e.position,!0),ve(c=e.input.charCodeAt(++e.position)))_e(e,!1,t);else if(c<256&&Ee[c])e.result+=$e[c],e.position++;else if((o=120===(a=c)?2:117===a?4:85===a?8:0)>0){for(s=o,i=0;s>0;s--)(o=we(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Pe(e,"expected hexadecimal character");e.result+=je(i),e.position++}else Pe(e,"unknown escape sequence");r=n=e.position}else ve(c)?(Fe(e,r,n,!0),Me(e,_e(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ce(e)?Pe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Pe(e,"unexpected end of the stream within a double quoted scalar")}(e,f)?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&&!be(n)&&!ge(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ue.call(e.anchorMap,r)||Pe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],_e(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,c,a,u,l,h=e.kind,f=e.result;if(be(l=e.input.charCodeAt(e.position))||ge(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)&&(be(n=e.input.charCodeAt(e.position+1))||r&&ge(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==l;){if(58===l){if(be(n=e.input.charCodeAt(e.position+1))||r&&ge(n))break}else if(35===l){if(be(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ce(e)||r&&ge(l))break;if(ve(l)){if(c=e.line,a=e.lineStart,u=e.lineIndent,_e(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=a,e.lineIndent=u;break}}o&&(Fe(e,s,i,!1),Me(e,e.line-c),s=i=e.position,o=!1),ye(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return Fe(e,s,i,!1),!!e.result||(e.kind=h,e.result=f,!1)}(e,f,1===r)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||Pe(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(v=c&&Ne(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Pe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),a=0,u=e.implicitTypes.length;a<u;a+=1)if((h=e.implicitTypes[a]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ue.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,a=0,u=(l=e.typeMap.multi[e.kind||"fallback"]).length;a<u;a+=1)if(e.tag.slice(0,l[a].tag.length)===l[a].tag){h=l[a];break}h||Pe(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&Pe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Pe(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 Ue(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(_e(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Pe(e,"directive name must not be less than one character in length");0!==s;){for(;ye(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ve(s));break}if(ve(s))break;for(t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&De(e),ue.call(openapi_parser_ke,r)?openapi_parser_ke[r](e,r,n):Te(e,'unknown document directive "'+r+'"')}_e(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,_e(e,!0,-1)):o&&Pe(e,"directives end mark is expected"),Le(e,e.lineIndent-1,4,!1,!0),_e(e,!0,-1),e.checkLineBreaks&&he.test(e.input.slice(i,e.position))&&Te(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ce(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,_e(e,!0,-1)):e.position<e.length-1&&Pe(e,"end of the stream or a document separator is expected")}function Je(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 openapi_parser_Se(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Pe(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;)Ue(r);return r.documents}var Ve=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Je(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},Ge={loadAll:Ve,load:function(e,t){var r=Je(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new openapi_parser_O("expected a single document in the stream, but found more")}}},He=Object.prototype.toString,ze=Object.prototype.hasOwnProperty,Xe={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"},We=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ye=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ze(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 openapi_parser_O("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+openapi_parser_j.repeat("0",n-t.length)+t}function Ke(e){this.schema=e.schema||ae,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=openapi_parser_j.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,c,a;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],c=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(a=e.compiledTypeMap.fallback[o])&&ze.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c;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 Qe(e,t){for(var r,n=openapi_parser_j.repeat(" ",t),s=0,i=-1,o="",c=e.length;s<c;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=c):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function openapi_parser_et(e,t){return"\n"+openapi_parser_j.repeat(" ",e.indent*t)}function tt(e){return 32===e||9===e}function rt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function nt(e){return rt(e)&&65279!==e&&13!==e&&10!==e}function openapi_parser_st(e,t,r){var n=nt(e),s=n&&!tt(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!s)||nt(t)&&!tt(t)&&35===e||58===t&&s}function it(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 ot(e){return/^\n* /.test(e)}function ct(e,t,r,n,s,i,o,c){var a,u,l=0,h=null,f=!1,p=!1,d=-1!==n,m=-1,v=rt(u=it(e,0))&&65279!==u&&!tt(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!tt(e)&&58!==e}(it(e,e.length-1));if(t||o)for(a=0;a<e.length;l>=65536?a+=2:a++){if(!rt(l=it(e,a)))return 5;v=v&&openapi_parser_st(l,h,c),h=l}else{for(a=0;a<e.length;l>=65536?a+=2:a++){if(10===(l=it(e,a)))f=!0,d&&(p=p||a-m-1>n&&" "!==e[m+1],m=a);else if(!rt(l))return 5;v=v&&openapi_parser_st(l,h,c),h=l}p=p||d&&a-m-1>n&&" "!==e[m+1]}return f||p?r>9&&ot(e)?5:o?2===i?5:2:p?4:3:!v||o||s(e)?2===i?5:2:1}function at(e,t,r,n,s){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==We.indexOf(t)||Ye.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),c=n||e.flowLevel>-1&&r>=e.flowLevel;switch(ct(t,c,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,s)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+ut(t,e.indent)+openapi_parser_lt(Qe(t,i));case 4:return">"+ut(t,e.indent)+openapi_parser_lt(Qe(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,s.lastIndex=c,ht(e.slice(0,c),t)),o="\n"===e[0]||" "===e[0];var c;for(;n=s.exec(e);){var a=n[1],u=n[2];r=" "===u[0],i+=a+(o||r||""===u?"":"\n")+ht(u,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=it(e,s),!(t=Xe[n])&&rt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Ze(n);return r}(t)+'"';default:throw new openapi_parser_O("impossible error: invalid scalar style")}}()}function ut(e,t){var r=ot(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function openapi_parser_lt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ht(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,c=0,a="";r=s.exec(e);)(c=r.index)-i>t&&(n=o>i?o:c,a+="\n"+e.slice(i,n),i=n+1),o=c;return a+="\n",e.length-i>t&&o>i?a+=e.slice(i,o)+"\n"+e.slice(o+1):a+=e.slice(i),a.slice(1)}function ft(e,t,r,n){var s,i,o,c="",a=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(dt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&dt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===c||(c+=openapi_parser_et(e,t)),e.dump&&10===e.dump.charCodeAt(0)?c+="-":c+="- ",c+=e.dump);e.tag=a,e.dump=c||"[]"}function pt(e,t,r){var n,s,i,o,c,a;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((c=s[i]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===He.call(c.represent))n=c.represent(t,a);else{if(!ze.call(c.represent,a))throw new openapi_parser_O("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');n=c.represent[a](t,a)}e.dump=n}return!0}return!1}function dt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,pt(e,r,!1)||pt(e,r,!0);var c,a=He.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,h,f="[object Object]"===a||"[object Array]"===a;if(f&&(h=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(s=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===a)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,c,a,u,l="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new openapi_parser_O("sortKeys must be a boolean or a function");for(s=0,i=f.length;s<i;s+=1)u="",n&&""===l||(u+=openapi_parser_et(e,t)),c=r[o=f[s]],e.replacer&&(c=e.replacer.call(r,o,c)),dt(e,t+1,o,!0,!0,!0)&&((a=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,a&&(u+=openapi_parser_et(e,t)),dt(e,t+1,c,!0,a)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",l+=u+=e.dump));e.tag=h,e.dump=l||"{}"}(e,t,e.dump,s),h&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,s,i,o,c,a="",u=e.tag,l=Object.keys(r);for(n=0,s=l.length;n<s;n+=1)c="",""!==a&&(c+=", "),e.condenseFlow&&(c+='"'),o=r[i=l[n]],e.replacer&&(o=e.replacer.call(r,i,o)),dt(e,t,i,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),dt(e,t,o,!1,!1)&&(a+=c+=e.dump));e.tag=u,e.dump="{"+a+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===a)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ft(e,t-1,e.dump,s):ft(e,t,e.dump,s),h&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,s,i,o="",c=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(dt(e,t,i,!1,!1)||void 0===i&&dt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=c,e.dump="["+o+"]"}(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else{if("[object String]"!==a){if("[object Undefined]"===a)return!1;if(e.skipInvalid)return!1;throw new openapi_parser_O("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&at(e,e.dump,t,i,u)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function mt(e,t){var r,n,s=[],i=[];for(vt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function vt(e,t,r){var n,s,i;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)vt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)vt(e[n[s]],t,r)}function yt(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.")}}var bt=openapi_parser_F,gt=openapi_parser_D,wt=openapi_parser_N,xt=openapi_parser_z,jt=X,Et=ae,$t=Ge.load,Ot=Ge.loadAll,St={dump:function(e,t){var r=new Ke(t=t||{});r.noRefs||mt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),dt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,At=openapi_parser_O,Pt={binary:ee,float:H,map:openapi_parser_M,null:openapi_parser_q,pairs:ie,set:ce,timestamp:openapi_parser_Z,bool:openapi_parser_B,int:J,merge:openapi_parser_K,omap:ne,seq:C,str:openapi_parser_},Tt=yt("safeLoad","load"),kt=yt("safeLoadAll","loadAll"),Ft=yt("safeDump","dump"),It={Type:bt,Schema:gt,FAILSAFE_SCHEMA:wt,JSON_SCHEMA:xt,CORE_SCHEMA:jt,DEFAULT_SCHEMA:Et,load:$t,loadAll:Ot,dump:St,YAMLException:At,types:Pt,safeLoad:Tt,safeLoadAll:kt,safeDump:Ft};function Rt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Dt(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Rt(e.headers)},s=n.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):It.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}async function _t(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=openapi_parser_g(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Dt(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}function Ct(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:"application/json, application/yaml"},credentials:s}).then((e=>e.body))}const Mt=e=>{var t,r;const{baseDoc:n,url:s}=e,i=null!==(t=null!=n?n:s)&&void 0!==t?t:"";return"string"==typeof(null===(r=globalThis.document)||void 0===r?void 0:r.baseURI)?String(new URL(i,globalThis.document.baseURI)):i},Nt=e=>{const{fetch:t,http:r}=e;return t||r||_t};
4260
4265
  /*!
@@ -4276,7 +4281,7 @@ var qt,Bt=(qt=function(e,t){return qt=Object.setPrototypeOf||{__proto__:[]}insta
4276
4281
  */
4277
4282
  parse:function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||SI,s=0;for(;s<e.length;){var i=e.indexOf("=",s);if(-1===i)break;var o=e.indexOf(";",s);if(-1===o)o=e.length;else if(o<i){s=e.lastIndexOf(";",i-1)+1;continue}var c=e.slice(s,i).trim();if(void 0===r[c]){var a=e.slice(i+1,o).trim();34===a.charCodeAt(0)&&(a=a.slice(1,-1)),r[c]=PI(a,n)}s=o+1}return r},serialize:function(e,t,r){var n=r||{},s=n.encode||AI;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!OI.test(e))throw new TypeError("argument name is invalid");var i=s(t);if(i&&!OI.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(null!=n.maxAge){var c=n.maxAge-0;if(isNaN(c)||!isFinite(c))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(c)}if(n.domain){if(!OI.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!OI.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){var a=n.expires;if(!function(e){return"[object Date]"===$I.call(e)||e instanceof Date}(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+a.toUTCString()}n.httpOnly&&(o+="; HttpOnly");n.secure&&(o+="; Secure");n.partitioned&&(o+="; Partitioned");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}},$I=Object.prototype.toString,OI=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function SI(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function AI(e){return encodeURIComponent(e)}function PI(e,t){try{return t(e)}catch(t){return e}}const TI=function(){const e=II,t=FI,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,i,o,c,a,u,l,h=0,f=0,p=0,d=0,m=0,v=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(y,b,w,x)=>{const j=`${n}parse(): `;h=0,f=0,p=0,d=0,m=0,s=void 0,i=void 0,o=void 0,c=void 0,v.refresh(),a=void 0,u=void 0,l=void 0,c=t.stringToChars(w),s=y.rules,i=y.udts;const E=b.toLowerCase();let $;for(const e in s)if(s.hasOwnProperty(e)&&E===s[e].lower){$=s[e].index;break}if(void 0===$)throw new Error(`${j}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],u=[],t=0;t<s.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)u[t]=void 0;const c=[];for(t=0;t<s.length;t+=1)c.push(s[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in r.callbacks)if(r.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?a[t]=o:u[t-s.length]=o}})(),r.trace&&r.trace.init(s,i,c),r.stats&&r.stats.init(s,i),r.ast&&r.ast.init(s,i,c),l=x,o=[{type:e.RNM,index:$}],g(0,0),o=void 0;let O=!1;switch(v.state){case e.ACTIVE:throw new Error(`${j}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=v.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:v.state,stateName:e.idName(v.state),length:c.length,matched:v.phraseLength,maxMatched:m,maxTreeDepth:p,nodeHits:d}};const y=(t,r,s,i)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},b=(t,a)=>{let f,p,d;const m=o[t],y=i[m.index];v.UdtIndex=y.index,h||(d=r.ast&&r.ast.udtDefined(m.index),d&&(p=s.length+m.index,f=r.ast.getLength(),r.ast.down(p,y.name)));const b=c.length-a;u[m.index](v,c,a,l),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(y,v,b),h||d&&(v.state===e.NOMATCH?r.ast.setLength(f):r.ast.up(p,y.name,a,v.phraseLength))},g=(t,i)=>{const u=`${n}opExecute(): `,w=o[t];switch(d+=1,f>p&&(p=f),f+=1,v.refresh(),r.trace&&r.trace.down(w,i),w.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(g(n.children[t],r),v.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let s,i,c,a;const u=o[t];r.ast&&(i=r.ast.getLength()),s=!0,c=n,a=0;for(let t=0;t<u.children.length;t+=1){if(g(u.children[t],c),v.state===e.NOMATCH){s=!1;break}c+=v.phraseLength,a+=v.phraseLength}s?(v.state=0===a?e.EMPTY:e.MATCH,v.phraseLength=a):(v.state=e.NOMATCH,v.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let s,i,a,u;const l=o[t];if(0===l.max)return v.state=e.EMPTY,void(v.phraseLength=0);for(i=n,a=0,u=0,r.ast&&(s=r.ast.getLength());!(i>=c.length)&&(g(t+1,i),v.state!==e.NOMATCH)&&v.state!==e.EMPTY&&(u+=1,a+=v.phraseLength,i+=v.phraseLength,u!==l.max););v.state===e.EMPTY||u>=l.min?(v.state=0===a?e.EMPTY:e.MATCH,v.phraseLength=a):(v.state=e.NOMATCH,v.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,i);break;case e.RNM:((t,n)=>{let i,u,f;const p=o[t],d=s[p.index],m=a[d.index];if(h||(u=r.ast&&r.ast.ruleDefined(p.index),u&&(i=r.ast.getLength(),r.ast.down(p.index,s[p.index].name))),m){const t=c.length-n;m(v,c,n,l),y(d,v,t,!0),v.state===e.ACTIVE&&(f=o,o=d.opcodes,g(0,n),o=f,m(v,c,n,l),y(d,v,t,!1))}else f=o,o=d.opcodes,g(0,n),o=f;h||u&&(v.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(p.index,d.name,n,v.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const n=o[t];v.state=e.NOMATCH,r<c.length&&n.min<=c[r]&&c[r]<=n.max&&(v.state=e.MATCH,v.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const n=o[t],s=n.string.length;if(v.state=e.NOMATCH,r+s<=c.length){for(let e=0;e<s;e+=1)if(c[r+e]!==n.string[e])return;v.state=e.MATCH,v.phraseLength=s}})(t,i);break;case e.TLS:((t,r)=>{let n;const s=o[t];v.state=e.NOMATCH;const i=s.string.length;if(0!==i){if(r+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;v.state=e.MATCH,v.phraseLength=i}}else v.state=e.EMPTY})(t,i);break;case e.UDT:b(t,i);break;case e.AND:((t,r)=>{switch(h+=1,g(t+1,r),h-=1,v.phraseLength=0,v.state){case e.EMPTY:case e.MATCH:v.state=e.EMPTY;break;case e.NOMATCH:v.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${v.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(h+=1,g(t+1,r),h-=1,v.phraseLength=0,v.state){case e.EMPTY:case e.MATCH:v.state=e.NOMATCH;break;case e.NOMATCH:v.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${v.state}`)}})(t,i);break;default:throw new Error(`${u}unrecognized operator`)}h||i+v.phraseLength>m&&(m=i+v.phraseLength),r.stats&&r.stats.collect(w,v),r.trace&&r.trace.up(w,v.state,i,v.phraseLength),f-=1}},kI=function(){const e=II,t=FI,r=this;let n,s,i,o=0;const c=[],a=[],u=[];function l(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,l)=>{let h;a.length=0,u.length=0,o=0,n=e,s=t,i=l;const f=[];for(h=0;h<n.length;h+=1)f.push(n[h].lower);for(h=0;h<s.length;h+=1)f.push(s[h].lower);for(o=n.length+s.length,h=0;h<o;h+=1)c[h]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(h=f.indexOf(t),h<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);c[h]=r.callbacks[e]}},r.ruleDefined=e=>!!c[e],r.udtDefined=e=>!!c[n.length+e],r.down=(t,r)=>{const n=u.length;return a.push(n),u.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:a.length}),n},r.up=(t,r,n,s)=>{const i=u.length,o=a.pop();return u.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:a.length}),u[o].thatIndex=i,u[o].phraseIndex=n,u[o].phraseLength=s,i},r.translate=t=>{let r,n;for(let s=0;s<u.length;s+=1)n=u[s],r=c[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,i,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,i,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{u.length=e,a.length=e>0?u[e-1].stack:0},r.getLength=()=>u.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${u.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=l(n+2),r+=t.charsToString(i),r+="\n",u.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=l(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=l(n+2),r+=t.charsToString(i,s.phraseIndex,s.phraseLength),r+="\n"):(r+=l(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},FI={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},II={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case II.ALT:return"ALT";case II.CAT:return"CAT";case II.REP:return"REP";case II.RNM:return"RNM";case II.TRG:return"TRG";case II.TBS:return"TBS";case II.TLS:return"TLS";case II.UDT:return"UDT";case II.AND:return"AND";case II.NOT:return"NOT";case II.ACTIVE:return"ACTIVE";case II.EMPTY:return"EMPTY";case II.MATCH:return"MATCH";case II.NOMATCH:return"NOMATCH";case II.SEM_PRE:return"SEM_PRE";case II.SEM_POST:return"SEM_POST";case II.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}},RI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-url-template",FI.charsToString(t,r,n)])}return II.SEM_OK},DI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable",FI.charsToString(t,r,n)])}return II.SEM_OK},_I=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable-name",FI.charsToString(t,r,n)])}return II.SEM_OK},CI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["literals",FI.charsToString(t,r,n)])}return II.SEM_OK},MI=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"ALPHA",lower:"alpha",index:4,isBkr:!1},this.rules[5]={name:"DIGIT",lower:"digit",index:5,isBkr:!1},this.rules[6]={name:"HEXDIG",lower:"hexdig",index:6,isBkr:!1},this.rules[7]={name:"pct-encoded",lower:"pct-encoded",index:7,isBkr:!1},this.rules[8]={name:"unreserved",lower:"unreserved",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ucschar",lower:"ucschar",index:10,isBkr:!1},this.rules[11]={name:"iprivate",lower:"iprivate",index:11,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[2].opcodes[2]={type:4,index:8},this.rules[2].opcodes[3]={type:4,index:7},this.rules[2].opcodes[4]={type:4,index:9},this.rules[2].opcodes[5]={type:7,string:[58]},this.rules[2].opcodes[6]={type:7,string:[64]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13,14]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:6,string:[38]},this.rules[3].opcodes[5]={type:5,min:40,max:59},this.rules[3].opcodes[6]={type:6,string:[61]},this.rules[3].opcodes[7]={type:5,min:63,max:91},this.rules[3].opcodes[8]={type:6,string:[93]},this.rules[3].opcodes[9]={type:6,string:[95]},this.rules[3].opcodes[10]={type:5,min:97,max:122},this.rules[3].opcodes[11]={type:6,string:[126]},this.rules[3].opcodes[12]={type:4,index:10},this.rules[3].opcodes[13]={type:4,index:11},this.rules[3].opcodes[14]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:65,max:90},this.rules[4].opcodes[2]={type:5,min:97,max:122},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[6].opcodes[1]={type:4,index:5},this.rules[6].opcodes[2]={type:7,string:[97]},this.rules[6].opcodes[3]={type:7,string:[98]},this.rules[6].opcodes[4]={type:7,string:[99]},this.rules[6].opcodes[5]={type:7,string:[100]},this.rules[6].opcodes[6]={type:7,string:[101]},this.rules[6].opcodes[7]={type:7,string:[102]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2,3]},this.rules[7].opcodes[1]={type:7,string:[37]},this.rules[7].opcodes[2]={type:4,index:6},this.rules[7].opcodes[3]={type:4,index:6},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[8].opcodes[1]={type:4,index:4},this.rules[8].opcodes[2]={type:4,index:5},this.rules[8].opcodes[3]={type:7,string:[45]},this.rules[8].opcodes[4]={type:7,string:[46]},this.rules[8].opcodes[5]={type:7,string:[95]},this.rules[8].opcodes[6]={type:7,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[10].opcodes[1]={type:5,min:160,max:55295},this.rules[10].opcodes[2]={type:5,min:63744,max:64975},this.rules[10].opcodes[3]={type:5,min:65008,max:65519},this.rules[10].opcodes[4]={type:5,min:65536,max:131069},this.rules[10].opcodes[5]={type:5,min:131072,max:196605},this.rules[10].opcodes[6]={type:5,min:196608,max:262141},this.rules[10].opcodes[7]={type:5,min:262144,max:327677},this.rules[10].opcodes[8]={type:5,min:327680,max:393213},this.rules[10].opcodes[9]={type:5,min:393216,max:458749},this.rules[10].opcodes[10]={type:5,min:458752,max:524285},this.rules[10].opcodes[11]={type:5,min:524288,max:589821},this.rules[10].opcodes[12]={type:5,min:589824,max:655357},this.rules[10].opcodes[13]={type:5,min:655360,max:720893},this.rules[10].opcodes[14]={type:5,min:720896,max:786429},this.rules[10].opcodes[15]={type:5,min:786432,max:851965},this.rules[10].opcodes[16]={type:5,min:851968,max:917501},this.rules[10].opcodes[17]={type:5,min:921600,max:983037},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3]},this.rules[11].opcodes[1]={type:5,min:57344,max:63743},this.rules[11].opcodes[2]={type:5,min:983040,max:1048573},this.rules[11].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable )\n",e+='server-variable = "{" server-variable-name "}"\n',e+='server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; Characters definitions (from RFC 6570)\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+=" ; case-insensitive\n",e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},NI=e=>{const t=new TI;t.ast=new kI,t.ast.callbacks["server-url-template"]=RI,t.ast.callbacks["server-variable"]=DI,t.ast.callbacks["server-variable-name"]=_I,t.ast.callbacks.literals=CI;return{result:t.parse(MI,"server-url-template",e),ast:t.ast}},qI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),BI=["literals","server-variable-name"];const LI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["slash",FI.charsToString(t,r,n)]),II.SEM_OK),UI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["path-template",FI.charsToString(t,r,n)])}return II.SEM_OK},JI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["path",FI.charsToString(t,r,n)]),II.SEM_OK),VI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["path-literal",FI.charsToString(t,r,n)]),II.SEM_OK),GI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["query",FI.charsToString(t,r,n)]),II.SEM_OK),HI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["query-marker",FI.charsToString(t,r,n)]),II.SEM_OK),zI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["fragment",FI.charsToString(t,r,n)]),II.SEM_OK),XI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["fragment-marker",FI.charsToString(t,r,n)]),II.SEM_OK),WI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["template-expression",FI.charsToString(t,r,n)]),II.SEM_OK),YI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["template-expression-param-name",FI.charsToString(t,r,n)]),II.SEM_OK),ZI=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"ALPHA",lower:"alpha",index:16,isBkr:!1},this.rules[17]={name:"DIGIT",lower:"digit",index:17,isBkr:!1},this.rules[18]={name:"HEXDIG",lower:"hexdig",index:18,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:15},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:15},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:16},this.rules[13].opcodes[2]={type:4,index:17},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:18},this.rules[14].opcodes[3]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2]},this.rules[16].opcodes[1]={type:5,min:65,max:90},this.rules[16].opcodes[2]={type:5,min:97,max:122},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:48,max:57},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[18].opcodes[1]={type:4,index:17},this.rules[18].opcodes[2]={type:7,string:[97]},this.rules[18].opcodes[3]={type:7,string:[98]},this.rules[18].opcodes[4]={type:7,string:[99]},this.rules[18].opcodes[5]={type:7,string:[100]},this.rules[18].opcodes[6]={type:7,string:[101]},this.rules[18].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},KI=e=>{const t=new TI;t.ast=new kI,t.ast.callbacks["path-template"]=UI,t.ast.callbacks.path=JI,t.ast.callbacks.query=GI,t.ast.callbacks["query-marker"]=HI,t.ast.callbacks.fragment=zI,t.ast.callbacks["fragment-marker"]=XI,t.ast.callbacks.slash=LI,t.ast.callbacks["path-literal"]=VI,t.ast.callbacks["template-expression"]=WI,t.ast.callbacks["template-expression-param-name"]=YI;return{result:t.parse(ZI,"path-template",e),ast:t.ast}},QI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),eR=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],tR=(e,t,r={})=>{const n={...{encoder:QI},...r},s=KI(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>eR.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?n.encoder(t[r],r):`{${r}}`:r));return o.join("")},rR={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:n}){if(void 0!==t){const s=e.url.replace(n,""),i=tR(s,{[r.name]:t});e.url=n+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function nR(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}const sR=["accept","authorization","content-type"];const iR=Object.freeze(Object.defineProperty({__proto__:null,cookie:function({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${nR(r,n)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const s="object"===n&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=s+openapi_parser_f({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}},header:function({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(sR.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=nR(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=openapi_parser_f({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))},path:function({req:e,value:t,parameter:r,baseURL:n}){const{name:s,style:i,explode:o,content:c}=r;if(void 0===t)return;const a=e.url.replace(n,"");let u;if(c){const e=Object.keys(c)[0];u=tR(a,{[s]:t},{encoder:t=>openapi_parser_h(nR(t,e))})}else u=tR(a,{[s]:t},{encoder:e=>openapi_parser_f({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=n+u},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const n=nR(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:n,explode:s,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}},Symbol.toStringTag,{value:"Module"})),oR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:cR}=oR;function aR(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:c}=e;t=function({request:e,securities:t={},operation:r={},spec:n}){var s;const i={...e},{authorized:o={}}=t,c=r.security||n.security||[],a=o&&!!Object.keys(o).length,u=(null==n||null===(s=n.components)||void 0===s?void 0:s.securitySchemes)||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=u[e];if(!t)return;const n=t.value||t,{type:s}=r;if(t)if("apiKey"===s)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===s){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=cR(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===s||"openIdConnect"===s){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),i.headers.Authorization=`${s} ${n}`}}))})),i}({request:t,securities:s,operation:r,spec:i});const a=r.requestBody||{},u=Object.keys(a.content||{}),l=c&&u.indexOf(c)>-1;if(n||o){if(c&&l)t.headers["Content-Type"]=c;else if(!c){const e=u[0];e&&(t.headers["Content-Type"]=e,c=e)}}else c&&l&&(t.headers["Content-Type"]=c);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&em(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(c){if(u.indexOf(c)>-1)if("application/x-www-form-urlencoded"===c||"multipart/form-data"===c)if("object"==typeof n){var h,f;const e=null!==(h=null===(f=a.content[c])||void 0===f?void 0:f.encoding)&&void 0!==h?h:{};t.form={},Object.keys(n).forEach((r=>{let s;try{s=JSON.parse(n[r])}catch{s=n[r]}t.form[r]={value:s,encoding:e[r]||{}}}))}else if("string"==typeof n){var p,d;const e=null!==(p=null===(d=a.content[c])||void 0===d?void 0:d.encoding)&&void 0!==p?p:{};try{t.form={};const r=JSON.parse(n);Object.entries(r).forEach((([r,n])=>{t.form[r]={value:n,encoding:e[r]||{}}}))}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function uR(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:c}=e;if(t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={},specSecurity:o=[]}=t,c=r.security||o,a=i&&!!Object.keys(i).length,u=n.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,n=t.value||t,o=u[e],{type:c}=o,a=o["x-tokenName"]||"access_token",l=r&&r[a];let h=r&&r.token_type;if(t)if("apiKey"===c){const e="query"===o.in?"query":"headers";s[e]=s[e]||{},s[e][o.name]=n}else if("basic"===c)if(n.header)s.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=cR(`${e}:${t}`),s.headers.authorization=`Basic ${n.base64}`}else"oauth2"===c&&l&&(h=h&&"bearer"!==h.toLowerCase()?h:"Bearer",s.headers.authorization=`${h} ${l}`)}))})),s}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||c)i?t.headers["Content-Type"]=i:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}const lR=e=>Array.isArray(e)?e:[],hR=e=>{try{return new URL(e)}catch{const t=new URL(e,"https://swagger.io"),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class fR extends Ih{}const pR={buildRequest:dR};function dR(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:c,userFetch:a,server:u,serverVariables:l,http:h,signal:f,serverVariableEncoder:p}=e;let{parameters:d,parameterBuilders:m}=e;const v=J$(t);m||(m=v?iR:rR);let y={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(y.signal=f),i&&(y.requestInterceptor=i),o&&(y.responseInterceptor=o),a&&(y.userFetch=a);const b=gI(t,r);if(!b)throw new fR(`Operation ${r} not found`);const{operation:w={},method:x,pathName:j}=b,E=vR({spec:t,scheme:s,contextUrl:c,server:u,serverVariables:l,pathName:j,method:x,serverVariableEncoder:p});if(y.url+=E,!r)return delete y.cookies,y;y.url+=j,y.method=`${x}`.toUpperCase(),d=d||{};const $=t.paths[j]||{};n&&(y.headers.accept=n);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(lR(w.parameters)).concat(lR($.parameters)));O.forEach((e=>{const r=m[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=d),n=e&&e.name&&d[e.name],void 0===n?n=e&&e.name&&d[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(v&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:y,parameter:e,value:n,operation:w,spec:t,baseURL:E})}}));const S={...e,operation:w};if(y=v?aR(S,y):uR(S,y),y.cookies&&Object.keys(y.cookies).length){const e=Object.keys(y.cookies).reduce(((e,t)=>{const r=y.cookies[t];return e+(e?"&":"")+EI.serialize(t,r)}),"");y.headers.Cookie=e}return y.cookies&&delete y.cookies,openapi_parser_g(y)}const mR=e=>e?e.replace(/\W/g,""):null;function vR(t){return J$(t.spec)?function({spec:t,pathName:r,method:n,server:s,contextUrl:i,serverVariables:o={},serverVariableEncoder:c}){var a,u;let l,h=[],f="";const p=null==t||null===(a=t.paths)||void 0===a||null===(a=a[r])||void 0===a||null===(a=a[(n||"").toLowerCase()])||void 0===a?void 0:a.servers,d=null==t||null===(u=t.paths)||void 0===u||null===(u=u[r])||void 0===u?void 0:u.servers,m=null==t?void 0:t.servers;h=yR(p)?p:yR(d)?d:yR(m)?m:[openapi_parser_e],s&&(l=h.find((e=>e.url===s)),l&&(f=s));f||([l]=h,f=l.url);if(((e,{strict:t=!1}={})=>{try{const r=NI(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const s=n.some((([e])=>"server-variable"===e));if(!t&&!s)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||s}catch{return!1}})(f,{strict:!0})){const e=Object.entries({...l.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});f=((e,t,r={})=>{const n={encoder:qI,...r},s=NI(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>BI.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?n.encoder(t[r],r):`{${r}}`:r));return o.join("")})(f,{...e,...o},{encoder:"function"==typeof c?c:jp})}return function(e="",t=""){const r=hR(e&&t?Xm(t,e):e),n=hR(t),s=mR(r.protocol)||mR(n.protocol),i=r.host||n.host,o=r.pathname;let c;c=s&&i?`${s}://${i+o}`:o;return"/"===c[c.length-1]?c.slice(0,-1):c}(f,i)}(t):function({spec:e,scheme:t,contextUrl:r=""}){const n=hR(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||s||mR(n.protocol)||"http",o=e.host||n.host||"",c=e.basePath||"";let a;a=i&&o?`${i}://${o+c}`:c;return"/"===a[a.length-1]?a.slice(0,-1):a}(t)}const yR=e=>Array.isArray(e)&&e.length>0;function bR(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof bR))return new bR(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,bR.makeApisTagOperation(this)),this)));return r.client=this,r}bR.http=_t,bR.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),n=openapi_parser_g(n),n=t(n),r(e(n)))}.bind(null,bR.http),bR.resolveStrategies={"openapi-3-1-apidom":vI,"openapi-3-0":G$,"openapi-2-0":V$,generic:q$},bR.resolve=H$({strategies:[bR.resolveStrategies["openapi-3-1-apidom"],bR.resolveStrategies["openapi-3-0"],bR.resolveStrategies["openapi-2-0"],bR.resolveStrategies.generic]}),bR.resolveSubtree=(e=>async(t,r,n={})=>(async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:l}=r,h={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:l},f=l.find((t=>t.match(e))).normalize(e),p=await z$({spec:f,...h,allowMetaPatches:!0,skipNormalization:!U$(e)});return!n&&Array.isArray(t)&&t.length&&(p.spec=t.reduce(((e,t)=>null==e?void 0:e[t]),p.spec)||null),p})(t,r,{...e,...n}))({strategies:[bR.resolveStrategies["openapi-3-1-apidom"],bR.resolveStrategies["openapi-3-0"],bR.resolveStrategies["openapi-2-0"],bR.resolveStrategies.generic]}),bR.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:c,...a}){const u=e||t||_t;s&&i&&!n&&(n=bI(s,i));const l=pR.buildRequest({spec:r,operationId:n,parameters:o,securities:c,http:u,...a});return l.body&&(em(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),u(l)},bR.serializeRes=Dt,bR.serializeHeaders=Rt,bR.clearCache=function(){D$.refs.clearCache()},bR.makeApisTagOperation=function(e={}){const t=jI.makeExecute(e);return{apis:jI.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},bR.buildRequest=dR,bR.helpers={opId:M$},bR.getBaseUrl=vR,bR.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:_F}},parse:{parsers:{JsonParser:CF,YamlParser:MF,OpenApiJson3_1Parser:NF,OpenApiYaml3_1Parser:qF}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:fI}}},bR.prototype={http:_t,execute(e){return this.applyDefaults(),bR.execute({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(e={}){return bR.resolve({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,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},bR.prototype.applyDefaults=function(){const{spec:t}=this,r=this.url;if(B$(t)&&wI(r)){const e=new URL(r);t.host||(t.host=e.host),t.schemes||(t.schemes=[e.protocol.replace(":","")]),t.basePath||(t.basePath="/")}else if(J$(t)){const r=Array.isArray(t.servers)&&0===t.servers.length;t.servers&&!r||(t.servers=[openapi_parser_e])}};function gR(e){const t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}const wR={parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],uniqueOnly:function(e,t,r){return r.indexOf(e)===t},createHash:function(e){let t,r=0;if(0===e.length)return r;for(let n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},sanitise:gR,sanitiseAll:function(e){return gR(e.split("/").join("_"))},camelize:function(e){return e.toLowerCase().replace(/[-_ \/\.](.)/g,((e,t)=>t.toUpperCase()))},clone:function(e){return JSON.parse(JSON.stringify(e))},circularClone:function e(t,r=null){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);let n;try{n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map((n=>({[n]:e(t[n],r)}))))}};function xR(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}const jR={getDefaultState:xR,walkSchema:function e(t,r,n,s){if(void 0===n.depth&&(n=xR()),null==t)return t;if(n.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t={...t.allOf[0],...t})?.allOf,t?.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t={...t.anyOf[0],...t})?.anyOf,t?.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t={...t.oneOf[0],...t})?.oneOf),s(t,r,n),n.seen.has(t))return t;if("object"==typeof t&&null!==t&&n.seen.set(t,!0),n.top=!1,n.depth++,void 0!==t?.items&&(n.property="items",e(t.items,t,n,s)),t?.additionalItems&&"object"==typeof t.additionalItems&&(n.property="additionalItems",e(t.additionalItems,t,n,s)),t?.additionalProperties&&"object"==typeof t.additionalProperties&&(n.property="additionalProperties",e(t.additionalProperties,t,n,s)),t?.properties)for(const r in t.properties){const i=t.properties[r];n.property=`properties/${r}`,e(i,t,n,s)}if(t?.patternProperties)for(const r in t.patternProperties){const i=t.patternProperties[r];n.property=`patternProperties/${r}`,e(i,t,n,s)}if(t?.allOf)for(const r in t.allOf){const i=t.allOf[r];n.property=`allOf/${r}`,e(i,t,n,s)}if(t?.anyOf)for(const r in t.anyOf){const i=t.anyOf[r];n.property=`anyOf/${r}`,e(i,t,n,s)}if(t?.oneOf)for(const r in t.oneOf){const i=t.oneOf[r];n.property=`oneOf/${r}`,e(i,t,n,s)}return t?.not&&(n.property="not",e(t.not,t,n,s)),n.depth--,t}};function ER(e,t,r){if(t||(t={depth:0}),t.depth||(t={path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1,...t}),"object"!=typeof e)return;const n=t.path;for(const s in e){if(t.key=s,t.path=`${t.path}/${encodeURIComponent(s)}`,t.identityPath=t.seen.get(e[s]),t.identity=void 0!==t.identityPath,e.hasOwnProperty(s)&&r(e,s,t),"object"==typeof e[s]&&!t.identity){t.identityDetection&&!Array.isArray(e[s])&&null!==e[s]&&t.seen.set(e[s],t.path);const n={};n.parent=e,n.path=t.path,n.depth=t.depth?t.depth+1:1,n.pkey=s,n.payload=t.payload,n.seen=t.seen,n.identity=!1,n.identityDetection=t.identityDetection,ER(e[s],n,r)}t.path=n}}let $R;function OR(e,t){for(const r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function SR(e,t){jR.walkSchema(e,{},{},((e,r)=>{!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(const t in e.discriminator.mapping){const r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(r.patches++,r.warnings.push("(Patchable) schema type must not be an array"),0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(const t of e.type){const r={};if("null"===t)e.nullable=!0;else{r.type=t;for(const t of wR.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&(r.patches++,r.warnings.push("Lost properties from oneOf")),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),e.allowEmptyValue&&(delete e.allowEmptyValue,r.patches++,r.warnings.push("(Patchable): deleted schema.allowEmptyValue"))}(e,r,t)}))}function AR(e){for(const t in e)for(const r in e[t]){const n=wR.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function PR(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){const r={};let n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),"string"==typeof e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,e.name&&(delete e.name,t.patches++,t.warnings.push("(Patchable) oauth2 securitySchemes should not have name property"))}}function TR(e){return e&&!e["x-s2o-delete"]}function kR(e,t){if(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type){if(e.items.collectionFormat!==e.collectionFormat)return t.errCount++,void t.errors.push({message:"Nested collectionFormats are not supported",pointer:"/.../responses/header"});delete e.items.collectionFormat}"array"===e.type?("ssv"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:ssv is no longer supported for headers")):"pipes"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:pipes is no longer supported for headers")):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(e["x-collectionFormat"]="tsv",t.patches++,t.warnings.push("collectionFormat:tsv is no longer supported")):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(delete e.collectionFormat,t.patches++,t.warnings.push("(Patchable) collectionFormat is only applicable to header.type array")),delete e.type;for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(const t of wR.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}function FR(e,t,r,n,s,i,o){const c={};let a,u=!0;t&&t.consumes&&"string"==typeof t.consumes&&(t.consumes=[t.consumes],o.patches++,o.warnings.push("(Patchable) operation.consumes must be an array")),Array.isArray(i.consumes)||delete i.consumes;const l=((t?t.consumes:null)||i.consumes||[]).filter(wR.uniqueOnly);if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(e.type="string",o.patches++,o.warnings.push("(Patchable) parameter.type is mandatory for non-body parameters")),"file"===e.type&&(e["x-s2o-originalType"]=e.type,a=e.type),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(delete e.collectionFormat,o.patches++,o.warnings.push("(Patchable) collectionFormat is only applicable to param.type array")),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":o.warnings.push(`${e.name} collectionFormat:ssv is no longer supported except for in:query parameters`)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":o.warnings.push(`${e.name} collectionFormat:pipes is no longer supported except for in:query parameters`)),"multi"===t&&(e.explode=!0),"tsv"===t&&(o.warnings.push("collectionFormat:tsv is no longer supported"),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)o.warnings.push(`${e.name} parameter has array,items and schema`);else{e.schema&&o.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,ER(e.schema.items,null,((r,n)=>{"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&o.warnings.push(`${e.name} Nested collectionFormats are not supported`),delete r[n])})));for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&SR(e.schema,o),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(l.length&&l.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema;else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};const r=c.content[t].schema,n=c.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),c.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==a&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),OR(e,n)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",OR(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?wR.sanitiseAll(t.operationId):"")+wR.camelize(`_${e.name}`)),e.description&&(c.description=e.description),e.required&&(c.required=e.required),l.length||l.push("application/json");for(const t of l)c.content[t]={},c.content[t].schema=wR.clone(e.schema||{}),SR(c.content[t].schema,o);OR(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0;const e=t.operationId||s;o.warnings.push(`Operation ${e} has multiple requestBodies`)}else t.requestBody||(t=function(e,t){const r={};for(const n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,o),r[n]=t),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||t.operationId&&(t.requestBody["x-s2o-name"]=wR.sanitiseAll(t.operationId)));if(e&&!e["x-s2o-delete"]){delete e.type;for(const t of wR.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(e.required=!0,o.patches++,o.warnings.push(`(Patchable) path parameters must be required:true [${e.name} in ${s}]`))}return t}function IR(e,t,r,n){if(!e)return!1;if(e.description||"object"!=typeof e||Array.isArray(e)||(n.patches++,n.warnings.push("(Patchable) response.description is mandatory")),void 0!==e.schema){SR(e.schema,n),t&&t.produces&&"string"==typeof t.produces&&(t.produces=[t.produces],n.patches++,n.warnings.push("(Patchable) operation.produces must be an array")),r.produces&&!Array.isArray(r.produces)&&delete r.produces;const s=((t?t.produces:null)||r.produces||[]).filter(wR.uniqueOnly);s.length||s.push("*/*"),e.content={};for(const t of s){if(e.content[t]={},e.content[t].schema=wR.clone(e.schema),e.examples&&e.examples[t]){const r={};r.value=e.examples[t],e.content[t].examples={},e.content[t].examples.response=r,delete e.examples[t]}"file"===e.content[t].schema.type&&(e.content[t].schema={type:"string",format:"binary"})}delete e.schema}for(const t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(const t in e.headers)"status code"===t.toLowerCase()?(delete e.headers[t],n.patches++,n.warnings.push('(Patchable) "Status Code" is not a valid header')):kR(e.headers[t],n)}function RR(e,t,r,n,s){for(const i in e){const o=e[i];o&&o["x-trace"]&&"object"==typeof o["x-trace"]&&(o.trace=o["x-trace"],delete o["x-trace"]),o&&o["x-summary"]&&"string"==typeof o["x-summary"]&&(o.summary=o["x-summary"],delete o["x-summary"]),o&&o["x-description"]&&"string"==typeof o["x-description"]&&(o.description=o["x-description"],delete o["x-description"]),o&&o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]);for(const e in o)if(wR.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let c=o[e];if(c&&c.parameters&&Array.isArray(c.parameters)){if(o.parameters)for(const t of o.parameters){c.parameters.find((e=>e.name===t.name&&e.in===t.in))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(c=FR(t,c,o,e,i,s,r))}for(const t of c.parameters)c=FR(t,c,o,e,`${e}: ${i}`,s,r);c.parameters&&(c.parameters=c.parameters.filter(TR))}if(c&&c.security&&AR(c.security),"object"==typeof c){if(!c.responses){const e={description:"Default response"};c.responses={default:e}}for(const e in c.responses){IR(c.responses[e],c,s,r)}}if(c&&c["x-servers"]&&Array.isArray(c["x-servers"]))c.servers=c["x-servers"],delete c["x-servers"];else if(c&&c.schemes&&c.schemes.length)for(const e of c.schemes)if((!s.schemes||s.schemes.indexOf(e)<0)&&(c.servers||(c.servers=[]),Array.isArray(s.servers)))for(const e of s.servers){const t=wR.clone(e);c.servers.push(t)}if(c){if(delete c.consumes,delete c.produces,delete c.schemes,c["x-ms-examples"]){for(const e in c["x-ms-examples"]){const t=c["x-ms-examples"][e],r=wR.sanitiseAll(e);if(t.parameters)for(const r in t.parameters){const n=t.parameters[r];for(const t of(c.parameters||[]).concat(o.parameters||[]))t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(const n in t.responses){if(t.responses[n].headers)for(const e in t.responses[n].headers){const r=t.responses[n].headers[e];for(const t in c.responses[n].headers)if(t===e){c.responses[n].headers[t].example=r}}if(t.responses[n].body&&(s.components.examples[r]={value:wR.clone(t.responses[n].body)},c.responses[n]&&c.responses[n].content))for(const t in c.responses[n].content){const s=c.responses[n].content[t];s.examples||(s.examples={}),s.examples[e]={$ref:`#/components/examples/${r}`}}}}delete c["x-ms-examples"]}if(c.parameters&&0===c.parameters.length&&delete c.parameters,c.requestBody){const r=c.operationId?wR.sanitiseAll(c.operationId):wR.camelize(wR.sanitiseAll(e+i)),s=wR.sanitise(c.requestBody["x-s2o-name"]||r||"");delete c.requestBody["x-s2o-name"];const o=JSON.stringify(c.requestBody),a=wR.createHash(o);if(!n[a]){const e={};e.name=s,e.body=c.requestBody,e.refs=[],n[a]=e}const u=`#/${t}/${encodeURIComponent(i)}/${e}/requestBody`;n[a].refs.push(u)}}}if(o&&o.parameters){for(const e in o.parameters){FR(o.parameters[e],null,o,null,i,s,r)}Array.isArray(o.parameters)&&(o.parameters=o.parameters.filter(TR))}}}function DR(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,((t,r)=>{e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function _R(e,t){void 0!==e.info&&null!==e.info||(e.info={version:"",title:""},t.patches++,t.warnings.push("(Patchable) info object is mandatory")),("object"!=typeof e.info||Array.isArray(e.info))&&(t.errCount++,t.errors.push({message:"info must be an object",pointer:"/info"})),e.info&&(void 0===e.info.title&&(t.patches++,e.info.title="",t.warnings.push({message:"(Patchable) info.title cannot be null",pointer:"/info/title",patchable:!0})),void 0===e.info.version?(t.patches++,e.info.version="",t.warnings.push("(Patchable) info.version cannot be null")):"string"!=typeof e.info.version&&(t.patches++,e.info.version=e.info.version.toString(),t.warnings.push("(Patchable) info.version must be a string")))}function CR(e,t){e.paths||(t.patches++,e.paths={},t.warnings.push("(Patchable) paths object is mandatory"))}function MR(e={}){const t={original:e,openapi:{},patches:0,warnings:[],errCount:0,errors:[]};if(e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=wR.circularClone(e),_R(t.openapi,t),CR(t.openapi,t),t;if("2.0"!==e.swagger)return t.errCount++,t.errors.push({message:`Unsupported swagger/OpenAPI version: ${e.openapi?e.openapi:e.swagger}`,pointer:"/swagger"}),t;if(t.openapi=wR.circularClone(e),t.openapi.openapi="3.0.0",delete t.openapi.swagger,ER(t.openapi,{},((e,t,r)=>{null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)(e.schemes||[]).forEach((r=>{const n={},s=(e.basePath||"").replace(/\/$/,"");n.url=`${r?`${r}:`:""}//${e.host}${s}`,DR(n),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(n)}));else if(e.basePath){const r={};r.url=e.basePath,DR(r),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(r)}if(delete t.openapi.host,delete t.openapi.basePath,e["x-ms-parameterized-host"]){const r=e["x-ms-parameterized-host"],n={};n.url=r.hostTemplate+(e.basePath?e.basePath:""),n.variables={};const s=n.url.match(/\{\w+\}/g);for(const e in r.parameters){const t=r.parameters[e];e.startsWith("x-")||(delete t.required,delete t.type,delete t.in,void 0===t.default&&(t.enum?t.default=t.enum[0]:t.default="none"),t.name||(t.name=s[e].replace("{","").replace("}","")),n.variables[t.name]=t,delete t.name)}t.openapi.servers||(t.openapi.servers=[]),!1===r.useSchemePrefix?t.openapi.servers.push(n):e.schemes.forEach((e=>{t.openapi.servers.push({...n,url:`${e}://${n.url}`})})),delete t.openapi["x-ms-parameterized-host"]}return _R(t.openapi,t),CR(t.openapi,t),"string"==typeof t.openapi.consumes&&(t.openapi.consumes=[t.openapi.consumes]),"string"==typeof t.openapi.produces&&(t.openapi.produces=[t.openapi.produces]),t.openapi.components={},t.openapi["x-callbacks"]&&(t.openapi.components.callbacks=t.openapi["x-callbacks"],delete t.openapi["x-callbacks"]),t.openapi.components.examples={},t.openapi.components.headers={},t.openapi["x-links"]&&(t.openapi.components.links=t.openapi["x-links"],delete t.openapi["x-links"]),t.openapi.components.parameters=t.openapi.parameters||{},t.openapi.components.responses=t.openapi.responses||{},t.openapi.components.requestBodies={},t.openapi.components.securitySchemes=t.openapi.securityDefinitions||{},t.openapi.components.schemas=t.openapi.definitions||{},delete t.openapi.definitions,delete t.openapi.responses,delete t.openapi.parameters,delete t.openapi.securityDefinitions,function(e){const t=e.openapi,r={};$R={schemas:{}},t.security&&AR(t.security);for(const r in t.components.securitySchemes){const n=wR.sanitise(r);if(r!==n){if(t.components.securitySchemes[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised securityScheme name ${n}`,pointer:`/components/securitySchemes/${n}`}),e;t.components.securitySchemes[n]=t.components.securitySchemes[r],delete t.components.securitySchemes[r]}PR(t.components.securitySchemes[n],e)}for(const r in t.components.schemas){const n=wR.sanitiseAll(r);let s=0;if(r!==n){for(;t.components.schemas[n+s];)s=s?++s:2;t.components.schemas[n+s]=t.components.schemas[r],delete t.components.schemas[r]}$R.schemas[r]=n+s,SR(t.components.schemas[`${n}${s}`],e)}for(const r in t.components.parameters){const n=wR.sanitise(r);if(r!==n){if(t.components.parameters[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised parameter name ${n}`,pointer:`/components/parameters/${n}`}),e;t.components.parameters[n]=t.components.parameters[r],delete t.components.parameters[r]}FR(t.components.parameters[n],null,null,null,n,t,e)}for(const r in t.components.responses){const n=wR.sanitise(r);if(r!==n){if(t.components.responses[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised response name ${n}`,pointer:`/components/responses/${n}`}),e;t.components.responses[n]=t.components.responses[r],delete t.components.responses[r]}const s=t.components.responses[n];if(IR(s,null,t,e),s.headers)for(const t in s.headers)"status code"===t.toLowerCase()?(delete s.headers[t],e.patches++,e.warnings.push('(Patchable) "Status Code" is not a valid header')):kR(s.headers[t],e)}for(const e in t.components.requestBodies){const n=t.components.requestBodies[e],s=JSON.stringify(n),i=wR.createHash(s),o={};o.name=e,o.body=n,o.refs=[],r[i]=o}RR(t.paths,"paths",e,r,t),t["x-ms-paths"]&&RR(t["x-ms-paths"],"x-ms-paths",e,r,t);for(const e in t.components.parameters)t.components.parameters[e]["x-s2o-delete"]&&delete t.components.parameters[e];return delete t.consumes,delete t.produces,delete t.schemes,t.components.requestBodies={},t.components.responses&&0===Object.keys(t.components.responses).length&&delete t.components.responses,t.components.parameters&&0===Object.keys(t.components.parameters).length&&delete t.components.parameters,t.components.examples&&0===Object.keys(t.components.examples).length&&delete t.components.examples,t.components.requestBodies&&0===Object.keys(t.components.requestBodies).length&&delete t.components.requestBodies,t.components.securitySchemes&&0===Object.keys(t.components.securitySchemes).length&&delete t.components.securitySchemes,t.components.headers&&0===Object.keys(t.components.headers).length&&delete t.components.headers,t.components.schemas&&0===Object.keys(t.components.schemas).length&&delete t.components.schemas,t.components&&0===Object.keys(t.components).length&&delete t.components,e}(t)}function NR(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}const qR={convertObj:MR,resolve:function(e){return new Promise((async t=>{try{const r=await bR.resolve(e,NR);if(r.errors&&r.errors.length>0)t(r);else{r.spec.openapi&&(r.resolvedSpec=r.spec,t(r));const e=MR(r.spec);e.errors&&e.errors.length>0&&(Array.isArray(r.errors)?r.errors.concat(r.errors):r.errors=e.errors),e.warnings&&e.warnings.length>0&&(r.warnings=e.warnings),r.resolvedSpec=r.spec,r.spec=e.openapi,t(r)}}catch(e){t(e)}}))}};
4278
4283
 
4279
- ;// CONCATENATED MODULE: ./src/utils/spec-parser.js
4284
+ ;// ./src/utils/spec-parser.js
4280
4285
  /* eslint-disable no-use-before-define */
4281
4286
 
4282
4287
 
@@ -4744,7 +4749,7 @@ function groupByTags(openApiSpec, sortEndpointsBy, generateMissingTags = false,
4744
4749
  });
4745
4750
  return sortTags ? tagsWithSortedPaths.sort((a, b) => a.name.localeCompare(b.name)) : tagsWithSortedPaths;
4746
4751
  }
4747
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directive.js
4752
+ ;// ./node_modules/lit-html/directive.js
4748
4753
  /**
4749
4754
  * @license
4750
4755
  * Copyright 2017 Google LLC
@@ -4753,7 +4758,7 @@ function groupByTags(openApiSpec, sortEndpointsBy, generateMissingTags = false,
4753
4758
  const directive_t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},directive_e=t=>(...e)=>({_$litDirective$:t,values:e});class directive_i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this.t=t,this._$AM=e,this.i=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
4754
4759
  //# sourceMappingURL=directive.js.map
4755
4760
 
4756
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directives/unsafe-html.js
4761
+ ;// ./node_modules/lit-html/directives/unsafe-html.js
4757
4762
 
4758
4763
  /**
4759
4764
  * @license
@@ -4762,11 +4767,11 @@ const directive_t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,EL
4762
4767
  */class unsafe_html_le extends directive_i{constructor(i){if(super(i),this.it=D,i.type!==directive_t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||null==t)return this._t=void 0,this.it=t;if(t===R)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}unsafe_html_le.directiveName="unsafeHTML",unsafe_html_le.resultType=1;const unsafe_html_ae=directive_e(unsafe_html_le);
4763
4768
  //# sourceMappingURL=unsafe-html.js.map
4764
4769
 
4765
- ;// CONCATENATED MODULE: ./node_modules/lit/directives/unsafe-html.js
4770
+ ;// ./node_modules/lit/directives/unsafe-html.js
4766
4771
 
4767
4772
  //# sourceMappingURL=unsafe-html.js.map
4768
4773
 
4769
- ;// CONCATENATED MODULE: ./src/templates/security-scheme-template.js
4774
+ ;// ./src/templates/security-scheme-template.js
4770
4775
  /* provided dependency */ var Buffer = __webpack_require__(287)["hp"];
4771
4776
  /* eslint-disable arrow-body-style */
4772
4777
 
@@ -5157,7 +5162,9 @@ function securitySchemeTemplate() {
5157
5162
  </div>
5158
5163
  ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0 ? ke`
5159
5164
  <table role="presentation" id="auth-table" class='m-table padded-12' style="width:100%;">
5160
- ${this.resolvedSpec.securitySchemes.map(v => ke`
5165
+ ${this.resolvedSpec.securitySchemes.filter(v => v.type).map(v => {
5166
+ var _v$scheme, _v$scheme2;
5167
+ return ke`
5161
5168
  <tr id="security-scheme-${v.securitySchemeId}" class="${v.type.toLowerCase()}">
5162
5169
  <td style="max-width:500px; overflow-wrap: break-word;">
5163
5170
  <div style="line-height:28px; margin-bottom:5px;">
@@ -5165,8 +5172,8 @@ function securitySchemeTemplate() {
5165
5172
  ${v.finalKeyValue ? ke`
5166
5173
  <span class='blue-text'> ${v.finalKeyValue ? 'Key Applied' : ''} </span>
5167
5174
  <button class="m-btn thin-border small" part="btn btn-outline" @click=${() => {
5168
- removeApiKey.call(this, v.securitySchemeId);
5169
- }}>REMOVE</button>
5175
+ removeApiKey.call(this, v.securitySchemeId);
5176
+ }}>REMOVE</button>
5170
5177
  ` : ''}
5171
5178
  </div>
5172
5179
  ${v.description ? ke`
@@ -5174,7 +5181,7 @@ function securitySchemeTemplate() {
5174
5181
  ${unsafe_html_ae(marked(v.description || ''))}
5175
5182
  </div>` : ''}
5176
5183
 
5177
- ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer' ? ke`
5184
+ ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && ((_v$scheme = v.scheme) === null || _v$scheme === void 0 ? void 0 : _v$scheme.toLowerCase()) === 'bearer' ? ke`
5178
5185
  <div style="margin-bottom:5px">
5179
5186
  ${v.type.toLowerCase() === 'apikey' ? ke`Send <code>${v.name}</code> in <code>${v.in}</code>` : ke`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`}
5180
5187
  </div>
@@ -5184,12 +5191,12 @@ function securitySchemeTemplate() {
5184
5191
  <button class="m-btn thin-border" style = "margin-left:5px;"
5185
5192
  part = "btn btn-outline"
5186
5193
  @click="${e => {
5187
- onApiKeyChange.call(this, v.securitySchemeId, e);
5188
- }}">
5194
+ onApiKeyChange.call(this, v.securitySchemeId, e);
5195
+ }}">
5189
5196
  ${v.finalKeyValue ? 'UPDATE' : 'SET'}
5190
5197
  </button>` : ke`<span class="gray-text" style="font-size::var(--font-size-small)"> cookies cannot be set from here</span>`}
5191
5198
  </div>` : ''}
5192
- ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic' ? ke`
5199
+ ${v.type.toLowerCase() === 'http' && ((_v$scheme2 = v.scheme) === null || _v$scheme2 === void 0 ? void 0 : _v$scheme2.toLowerCase()) === 'basic' ? ke`
5193
5200
  <div style="margin-bottom:5px">
5194
5201
  Send <code>Authorization</code> in <code>header</code> containing the word <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>.
5195
5202
  </div>
@@ -5198,8 +5205,8 @@ function securitySchemeTemplate() {
5198
5205
  <input type="password" value = "${v.password}" placeholder="password" spellcheck="false" class="${v.type} ${v.securitySchemeId} api-key-password" style = "width:100px; margin:0 5px;" id = "input-${v.type}-${v.securitySchemeId}-api-key-password">
5199
5206
  <button class="m-btn thin-border"
5200
5207
  @click="${e => {
5201
- onApiKeyChange.call(this, v.securitySchemeId, e);
5202
- }}"
5208
+ onApiKeyChange.call(this, v.securitySchemeId, e);
5209
+ }}"
5203
5210
  part = "btn btn-outline"
5204
5211
  >
5205
5212
  ${v.finalKeyValue ? 'UPDATE' : 'SET'}
@@ -5214,7 +5221,8 @@ function securitySchemeTemplate() {
5214
5221
  </td>
5215
5222
  </tr>
5216
5223
  ` : ''}
5217
- `)}
5224
+ `;
5225
+ })}
5218
5226
  </table>` : ''}
5219
5227
  <slot name="auth"></slot>
5220
5228
  </section>
@@ -5314,7 +5322,7 @@ function pathSecurityTemplate(pathSecurity) {
5314
5322
  }
5315
5323
 
5316
5324
  /* eslint-enable indent */
5317
- ;// CONCATENATED MODULE: ./src/templates/code-samples-template.js
5325
+ ;// ./src/templates/code-samples-template.js
5318
5326
 
5319
5327
  // eslint-disable-line import/extensions
5320
5328
 
@@ -5324,7 +5332,7 @@ function pathSecurityTemplate(pathSecurity) {
5324
5332
  function codeSamplesTemplate(xCodeSamples) {
5325
5333
  return ke`
5326
5334
  <section class="table-title" style="margin-top:24px;">CODE SAMPLES</div>
5327
- <div class="tab-panel col"
5335
+ <div part="tab-panel" class="tab-panel col"
5328
5336
  @click="${e => {
5329
5337
  if (!e.target.classList.contains('tab-btn')) {
5330
5338
  return;
@@ -5337,8 +5345,8 @@ function codeSamplesTemplate(xCodeSamples) {
5337
5345
  tabBodyEl.style.display = tabBodyEl.dataset.tab === clickedTab ? 'block' : 'none';
5338
5346
  });
5339
5347
  }}">
5340
- <div class="tab-buttons row" style="width:100; overflow">
5341
- ${xCodeSamples.map((v, i) => ke`<button class="tab-btn ${i === 0 ? 'active' : ''}" data-tab = '${v.lang}${i}'> ${v.label || v.lang} </button>`)}
5348
+ <div part="tab-btn-row" class="tab-buttons row" style="width:100; overflow">
5349
+ ${xCodeSamples.map((v, i) => ke`<button part="tab-btn" class="tab-btn ${i === 0 ? 'active' : ''}" data-tab = '${v.lang}${i}'> ${v.label || v.lang} </button>`)}
5342
5350
  </div>
5343
5351
  ${xCodeSamples.map((v, i) => {
5344
5352
  var _v$lang, _v$lang2, _v$lang3;
@@ -5354,7 +5362,7 @@ function codeSamplesTemplate(xCodeSamples) {
5354
5362
  </section>`;
5355
5363
  }
5356
5364
  /* eslint-enable indent */
5357
- ;// CONCATENATED MODULE: ./src/templates/callback-template.js
5365
+ ;// ./src/templates/callback-template.js
5358
5366
 
5359
5367
 
5360
5368
  /* eslint-disable indent */
@@ -5399,6 +5407,7 @@ function callbackTemplate(callbacks) {
5399
5407
  schema-hide-write-only = "${this.schemaHideWriteOnly === 'never' ? 'false' : 'true'}"
5400
5408
  fetch-credentials = "${this.fetchCredentials}"
5401
5409
  exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
5410
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
5402
5411
  file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
5403
5412
  anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
5404
5413
  > </api-request>
@@ -5417,7 +5426,8 @@ function callbackTemplate(callbacks) {
5417
5426
  schema-hide-read-only = "${this.schemaHideReadOnly === 'never' ? 'false' : 'true'}"
5418
5427
  schema-hide-write-only = "false"
5419
5428
  exportparts = "btn:btn, btn-response-status:btn-response-status, btn-selected-response-status:btn-selected-response-status, btn-fill:btn-fill, btn-copy:btn-copy,
5420
- schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
5429
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
5430
+ schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
5421
5431
  > </api-response>
5422
5432
  </div>
5423
5433
  </div>
@@ -5431,7 +5441,7 @@ function callbackTemplate(callbacks) {
5431
5441
  `;
5432
5442
  }
5433
5443
  /* eslint-enable indent */
5434
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directives/guard.js
5444
+ ;// ./node_modules/lit-html/directives/guard.js
5435
5445
 
5436
5446
  /**
5437
5447
  * @license
@@ -5441,11 +5451,11 @@ function callbackTemplate(callbacks) {
5441
5451
  const guard_Vt={},guard_It=directive_e(class extends directive_i{constructor(){super(...arguments),this.ot=guard_Vt}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every(((r,t)=>r===this.ot[t])))return R}else if(this.ot===t)return R;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});
5442
5452
  //# sourceMappingURL=guard.js.map
5443
5453
 
5444
- ;// CONCATENATED MODULE: ./node_modules/lit/directives/guard.js
5454
+ ;// ./node_modules/lit/directives/guard.js
5445
5455
 
5446
5456
  //# sourceMappingURL=guard.js.map
5447
5457
 
5448
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directive-helpers.js
5458
+ ;// ./node_modules/lit-html/directive-helpers.js
5449
5459
 
5450
5460
  /**
5451
5461
  * @license
@@ -5454,7 +5464,7 @@ const guard_Vt={},guard_It=directive_e(class extends directive_i{constructor(){s
5454
5464
  */const{I:directive_helpers_et}=si,directive_helpers_st=o=>null===o||"object"!=typeof o&&"function"!=typeof o,directive_helpers_no={HTML:1,SVG:2,MATHML:3},directive_helpers_nt=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,directive_helpers_ot=o=>null!=o?._$litType$?.h,directive_helpers_eo=o=>void 0!==o?._$litDirective$,directive_helpers_lo=o=>o?._$litDirective$,directive_helpers_rt=o=>void 0===o.strings,directive_helpers_lt=()=>document.createComment(""),directive_helpers_at=(o,t,i)=>{const n=o._$AA.parentNode,e=void 0===t?o._$AB:t._$AA;if(void 0===i){const t=n.insertBefore(directive_helpers_lt(),e),l=n.insertBefore(directive_helpers_lt(),e);i=new directive_helpers_et(t,l,o,o.options)}else{const t=i._$AB.nextSibling,l=i._$AM,c=l!==o;if(c){let t;i._$AQ?.(o),i._$AM=o,void 0!==i._$AP&&(t=o._$AU)!==l._$AU&&i._$AP(t)}if(t!==e||c){let o=i._$AA;for(;o!==t;){const t=o.nextSibling;n.insertBefore(o,e),o=t}}}return i},directive_helpers_ct=(o,t,i=o)=>(o._$AI(t,i),o),directive_helpers_ht={},directive_helpers_dt=(o,t=directive_helpers_ht)=>o._$AH=t,directive_helpers_ut=o=>o._$AH,directive_helpers_pt=o=>{o._$AP?.(!1,!0);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}},directive_helpers_ft=o=>{o._$AR()};
5455
5465
  //# sourceMappingURL=directive-helpers.js.map
5456
5466
 
5457
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directives/live.js
5467
+ ;// ./node_modules/lit-html/directives/live.js
5458
5468
 
5459
5469
  /**
5460
5470
  * @license
@@ -5463,11 +5473,11 @@ const guard_Vt={},guard_It=directive_e(class extends directive_i{constructor(){s
5463
5473
  */const live_Ft=directive_e(class extends directive_i{constructor(r){if(super(r),r.type!==directive_t.PROPERTY&&r.type!==directive_t.ATTRIBUTE&&r.type!==directive_t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!directive_helpers_rt(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(r,[e]){if(e===R||e===D)return e;const i=r.element,n=r.name;if(r.type===directive_t.PROPERTY){if(e===i[n])return R}else if(r.type===directive_t.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(n))return R}else if(r.type===directive_t.ATTRIBUTE&&i.getAttribute(n)===e+"")return R;return directive_helpers_dt(r),e}});
5464
5474
  //# sourceMappingURL=live.js.map
5465
5475
 
5466
- ;// CONCATENATED MODULE: ./node_modules/lit/directives/live.js
5476
+ ;// ./node_modules/lit/directives/live.js
5467
5477
 
5468
5478
  //# sourceMappingURL=live.js.map
5469
5479
 
5470
- ;// CONCATENATED MODULE: ./node_modules/lit-html/directives/if-defined.js
5480
+ ;// ./node_modules/lit-html/directives/if-defined.js
5471
5481
 
5472
5482
  /**
5473
5483
  * @license
@@ -5476,14 +5486,14 @@ const guard_Vt={},guard_It=directive_e(class extends directive_i{constructor(){s
5476
5486
  */const if_defined_to=t=>t??D;
5477
5487
  //# sourceMappingURL=if-defined.js.map
5478
5488
 
5479
- ;// CONCATENATED MODULE: ./node_modules/lit/directives/if-defined.js
5489
+ ;// ./node_modules/lit/directives/if-defined.js
5480
5490
 
5481
5491
  //# sourceMappingURL=if-defined.js.map
5482
5492
 
5483
5493
  // EXTERNAL MODULE: ./node_modules/xml-but-prettier/dist/index.js
5484
5494
  var dist = __webpack_require__(657);
5485
5495
  var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
5486
- ;// CONCATENATED MODULE: ./src/styles/border-styles.js
5496
+ ;// ./src/styles/border-styles.js
5487
5497
 
5488
5498
  /* harmony default export */ const border_styles = (i`
5489
5499
  .border-top {
@@ -5510,7 +5520,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
5510
5520
  // EXTERNAL MODULE: ./node_modules/randexp/lib/randexp.js
5511
5521
  var randexp = __webpack_require__(859);
5512
5522
  var randexp_default = /*#__PURE__*/__webpack_require__.n(randexp);
5513
- ;// CONCATENATED MODULE: ./src/utils/schema-utils.js
5523
+ ;// ./src/utils/schema-utils.js
5514
5524
 
5515
5525
 
5516
5526
  // Make RandExp determinist
@@ -6634,7 +6644,7 @@ function getSchemaFromParam(param) {
6634
6644
  }
6635
6645
  return [null, null, null];
6636
6646
  }
6637
- ;// CONCATENATED MODULE: ./src/components/json-tree.js
6647
+ ;// ./src/components/json-tree.js
6638
6648
 
6639
6649
 
6640
6650
 
@@ -6741,7 +6751,7 @@ class JsonTree extends lit_element_h {
6741
6751
  }
6742
6752
  generateTree(data, isLast = false) {
6743
6753
  if (data === null) {
6744
- return ke`<div class="null" style="display:inline;">null</div>`;
6754
+ return ke`<span class="null">null</span>${isLast ? '' : ','}`;
6745
6755
  }
6746
6756
  if (typeof data === 'object' && data instanceof Date === false) {
6747
6757
  const detailType = Array.isArray(data) ? 'array' : 'pure_object';
@@ -6779,7 +6789,7 @@ class JsonTree extends lit_element_h {
6779
6789
  }
6780
6790
  // Register the element with the browser
6781
6791
  customElements.define('json-tree', JsonTree);
6782
- ;// CONCATENATED MODULE: ./src/styles/schema-styles.js
6792
+ ;// ./src/styles/schema-styles.js
6783
6793
 
6784
6794
  /* harmony default export */ const schema_styles = (i`
6785
6795
 
@@ -6900,7 +6910,7 @@ customElements.define('json-tree', JsonTree);
6900
6910
  }
6901
6911
  }
6902
6912
  `);
6903
- ;// CONCATENATED MODULE: ./src/components/schema-tree.js
6913
+ ;// ./src/components/schema-tree.js
6904
6914
 
6905
6915
  // eslint-disable-line import/extensions
6906
6916
 
@@ -6969,9 +6979,6 @@ class SchemaTree extends lit_element_h {
6969
6979
  .tree .key {
6970
6980
  max-width: 300px;
6971
6981
  }
6972
- .key.deprecated .key-label {
6973
- color: var(--red);
6974
- }
6975
6982
  .tr.expanded:hover > .td.key > .open-bracket {
6976
6983
  color: var(--primary-color);
6977
6984
  }
@@ -7118,7 +7125,7 @@ class SchemaTree extends lit_element_h {
7118
7125
  <div class="tr ${schemaLevel < this.schemaExpandLevel || (_data$Type2 = data['::type']) !== null && _data$Type2 !== void 0 && _data$Type2.startsWith('xxx-of') ? 'expanded' : 'collapsed'} ${data['::type'] || 'no-type-info'}${data['::nullable'] ? ' nullable' : ''}" title="${isDeprecated || data['::deprecated'] ? 'Deprecated' : ''}">
7119
7126
  <div class="td key ${isDeprecated || data['::deprecated'] ? 'deprecated' : ''}" style='min-width:${minFieldColWidth}px'>
7120
7127
  ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? ke`<span class='key-label xxx-of-key'> ${keyLabel}</span><span class="xxx-of-descr">${keyDescr}</span>` : keyLabel === '::props' || keyLabel === '::ARRAY~OF' ? '' : schemaLevel > 0 ? ke`<span class="key-label" title="${readOrWrite === 'readonly' ? 'Read-Only' : readOrWrite === 'writeonly' ? 'Write-Only' : ''}">
7121
- ${isDeprecated || data['::deprecated'] ? '✗' : ''}
7128
+ ${isDeprecated || data['::deprecated'] ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''}
7122
7129
  ${keyLabel.replace(/\*$/, '')}${keyLabel.endsWith('*') ? ke`<span style="color:var(--red)">*</span>` : ''}${readOrWrite === 'readonly' ? ke` 🆁` : readOrWrite === 'writeonly' ? ke` 🆆` : readOrWrite}:
7123
7130
  </span>` : ''}
7124
7131
  ${openBracket}
@@ -7170,7 +7177,7 @@ class SchemaTree extends lit_element_h {
7170
7177
  return ke`
7171
7178
  <div class = "tr primitive" title="${deprecated ? 'Deprecated' : ''}">
7172
7179
  <div class="td key ${isDeprecated || deprecated}" style='min-width:${minFieldColWidth}px'>
7173
- ${isDeprecated || deprecated ? ke`<span style='color:var(--red);'>✗</span>` : ''}
7180
+ ${isDeprecated || deprecated ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''}
7174
7181
  ${keyLabel.endsWith('*') ? ke`<span class="key-label">${keyLabel.substring(0, keyLabel.length - 1)}</span><span style='color:var(--red);'>*</span>:` : key.startsWith('::OPTION') ? ke`<span class='key-label xxx-of-key'>${keyLabel}</span><span class="xxx-of-descr">${keyDescr}</span>` : ke`<span class="key-label">${keyLabel}:</span>`}
7175
7182
  <span class="${dataTypeCss}" title="${finalReadWriteTip}">
7176
7183
  ${dataType === 'array' ? `[${type}]` : `${type}`}
@@ -7217,7 +7224,7 @@ class SchemaTree extends lit_element_h {
7217
7224
  }
7218
7225
  }
7219
7226
  customElements.define('schema-tree', SchemaTree);
7220
- ;// CONCATENATED MODULE: ./src/components/tag-input.js
7227
+ ;// ./src/components/tag-input.js
7221
7228
 
7222
7229
  class TagInput extends lit_element_h {
7223
7230
  /* eslint-disable indent */
@@ -7349,7 +7356,7 @@ class TagInput extends lit_element_h {
7349
7356
  }
7350
7357
  // Register the element with the browser
7351
7358
  customElements.define('tag-input', TagInput);
7352
- ;// CONCATENATED MODULE: ./src/components/api-request.js
7359
+ ;// ./src/components/api-request.js
7353
7360
 
7354
7361
  // eslint-disable-line import/extensions
7355
7362
  // eslint-disable-line import/extensions
@@ -7622,6 +7629,8 @@ class ApiRequest extends lit_element_h {
7622
7629
  }
7623
7630
  `, custom_styles];
7624
7631
  }
7632
+
7633
+ /* eslint-disable indent */
7625
7634
  render() {
7626
7635
  return ke`
7627
7636
  <div class="col regular-font request-panel ${'read focused'.includes(this.renderStyle) || this.callback === 'true' ? 'read-mode' : 'view-mode'}">
@@ -7689,8 +7698,6 @@ class ApiRequest extends lit_element_h {
7689
7698
  this.requestUpdate();
7690
7699
  }
7691
7700
  }
7692
-
7693
- /* eslint-disable indent */
7694
7701
  renderExample(example, paramType, paramName) {
7695
7702
  var _example$value, _example$value2;
7696
7703
  return ke`
@@ -7793,7 +7800,7 @@ class ApiRequest extends lit_element_h {
7793
7800
  <tr title="${param.deprecated ? 'Deprecated' : ''}">
7794
7801
  <td rowspan="${this.allowTry === 'true' ? '1' : '2'}" style="width:${labelColWidth}; min-width:100px;">
7795
7802
  <div class="param-name ${param.deprecated ? 'deprecated' : ''}" >
7796
- ${param.deprecated ? ke`<span style='color:var(--red);'>✗</span>` : ''}
7803
+ ${param.deprecated ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''}
7797
7804
  ${param.required ? ke`<span style='color:var(--red)'>*</span>` : ''}
7798
7805
  ${param.name}
7799
7806
  </div>
@@ -7819,8 +7826,8 @@ class ApiRequest extends lit_element_h {
7819
7826
  .value="${param['x-fill-example'] === 'no' ? [] : live_Ft(this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : [])}"
7820
7827
  >
7821
7828
  </tag-input>` : paramSchema.type === 'object' ? ke`
7822
- <div class="tab-panel col" style="border-width:0 0 1px 0;">
7823
- <div class="tab-buttons row" @click="${e => {
7829
+ <div part="tab-panel" class="tab-panel col" style="border-width:0 0 1px 0;">
7830
+ <div part="tab-btn-row" class="tab-buttons row" @click="${e => {
7824
7831
  if (e.target.tagName.toLowerCase() === 'button') {
7825
7832
  const newState = {
7826
7833
  ...this.activeParameterSchemaTabs
@@ -7829,11 +7836,11 @@ class ApiRequest extends lit_element_h {
7829
7836
  this.activeParameterSchemaTabs = newState;
7830
7837
  }
7831
7838
  }}">
7832
- <button class="tab-btn ${this.activeParameterSchemaTabs[param.name] === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
7833
- <button class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
7839
+ <button part="tab-btn" class="tab-btn ${this.activeParameterSchemaTabs[param.name] === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
7840
+ <button part="tab-btn" class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
7834
7841
  </div>
7835
7842
 
7836
- ${ke`<div class="tab-content col" data-tab = 'example' style="display:${this.activeParameterSchemaTabs[param.name] === 'example' ? 'block' : 'none'}; padding-left:5px; width:100%">
7843
+ ${ke`<div part="tab-content" class="tab-content col" data-tab = 'example' style="display:${this.activeParameterSchemaTabs[param.name] === 'example' ? 'block' : 'none'}; padding-left:5px; width:100%">
7837
7844
  <textarea
7838
7845
  id = "textarea-request-param-${param.name}"
7839
7846
  class = "textarea request-param"
@@ -7854,7 +7861,7 @@ class ApiRequest extends lit_element_h {
7854
7861
  }}
7855
7862
  ></textarea>
7856
7863
  </div>`}
7857
- ${ke`<div class="tab-content col" data-tab = 'schema' style="display:${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
7864
+ ${ke`<div part="tab-content" class="tab-content col" data-tab = 'schema' style="display:${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
7858
7865
  <schema-tree
7859
7866
  class = 'json'
7860
7867
  style = 'display: block'
@@ -8141,17 +8148,17 @@ class ApiRequest extends lit_element_h {
8141
8148
  ${this.request_body.description ? ke`<div class="m-markdown" style="margin-bottom:12px">${unsafe_html_ae(marked(this.request_body.description))}</div>` : ''}
8142
8149
 
8143
8150
  ${this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose') ? ke`
8144
- <div class="tab-panel col" style="border-width:0 0 1px 0;">
8145
- <div class="tab-buttons row" @click="${e => {
8151
+ <div part="tab-panel" class="tab-panel col" style="border-width:0 0 1px 0;">
8152
+ <div part="tab-btn-row" class="tab-buttons row" @click="${e => {
8146
8153
  if (e.target.tagName.toLowerCase() === 'button') {
8147
8154
  this.activeSchemaTab = e.target.dataset.tab;
8148
8155
  }
8149
8156
  }}">
8150
- <button class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE</button>
8151
- <button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
8157
+ <button part="tab-btn" class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE</button>
8158
+ <button part="tab-btn" class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
8152
8159
  </div>
8153
- ${ke`<div class="tab-content col" style="display:${this.activeSchemaTab === 'example' ? 'block' : 'none'};"> ${reqBodyExampleHtml}</div>`}
8154
- ${ke`<div class="tab-content col" style="display:${this.activeSchemaTab === 'example' ? 'none' : 'block'};"> ${reqBodySchemaHtml}</div>`}
8160
+ ${ke`<div part="tab-content" class="tab-content col" style="display:${this.activeSchemaTab === 'example' ? 'block' : 'none'};"> ${reqBodyExampleHtml}</div>`}
8161
+ ${ke`<div part="tab-content" class="tab-content col" style="display:${this.activeSchemaTab === 'example' ? 'none' : 'block'};"> ${reqBodySchemaHtml}</div>`}
8155
8162
  </div>` : ke`
8156
8163
  ${reqBodyFileInputHtml}
8157
8164
  ${reqBodyFormHtml}`}
@@ -8168,7 +8175,7 @@ class ApiRequest extends lit_element_h {
8168
8175
  // eslint-disable-line no-unneeded-ternary
8169
8176
  'text', false);
8170
8177
  return ke`
8171
- <div class="tab-panel row" style="min-height:220px; border-left: 6px solid var(--light-border-color); align-items: stretch;">
8178
+ <div part="tab-panel" class="tab-panel row" style="min-height:220px; border-left: 6px solid var(--light-border-color); align-items: stretch;">
8172
8179
  <div style="width:24px; background-color:var(--light-border-color)">
8173
8180
  <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 => {
8174
8181
  if (e.target.classList.contains('v-tab-btn')) {
@@ -8385,19 +8392,19 @@ class ApiRequest extends lit_element_h {
8385
8392
  <div style="flex:1"></div>
8386
8393
  <button class="m-btn" part="btn btn-outline btn-clear-response" @click="${this.clearResponseData}">CLEAR RESPONSE</button>
8387
8394
  </div>
8388
- <div class="tab-panel col" style="border-width:0 0 1px 0;">
8389
- <div id="tab_buttons" class="tab-buttons row" @click="${e => {
8395
+ <div part="tab-panel" class="tab-panel col" style="border-width:0 0 1px 0;">
8396
+ <div id="tab_buttons" part="tab-btn-row" class="tab-buttons row" @click="${e => {
8390
8397
  if (e.target.classList.contains('tab-btn') === false) {
8391
8398
  return;
8392
8399
  }
8393
8400
  this.activeResponseTab = e.target.dataset.tab;
8394
8401
  }}">
8395
- <button class="tab-btn ${this.activeResponseTab === 'response' ? 'active' : ''}" data-tab = 'response' > RESPONSE</button>
8396
- <button class="tab-btn ${this.activeResponseTab === 'headers' ? 'active' : ''}" data-tab = 'headers' > RESPONSE HEADERS</button>
8397
- ${this.showCurlBeforeTry === 'true' ? '' : ke`<button class="tab-btn ${this.activeResponseTab === 'curl' ? 'active' : ''}" data-tab = 'curl'>CURL</button>`}
8402
+ <button part="tab-btn" class="tab-btn ${this.activeResponseTab === 'response' ? 'active' : ''}" data-tab = 'response' > RESPONSE</button>
8403
+ <button part="tab-btn" class="tab-btn ${this.activeResponseTab === 'headers' ? 'active' : ''}" data-tab = 'headers' > RESPONSE HEADERS</button>
8404
+ ${this.showCurlBeforeTry === 'true' ? '' : ke`<button part="tab-btn" class="tab-btn ${this.activeResponseTab === 'curl' ? 'active' : ''}" data-tab = 'curl'>CURL</button>`}
8398
8405
  </div>
8399
8406
  ${this.responseIsBlob ? ke`
8400
- <div class="tab-content col" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};">
8407
+ <div part="tab-content" class="tab-content col" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};">
8401
8408
  ${this.responseBlobType === 'image' ? ke`<img style="max-height:var(--resp-area-height, 400px); object-fit:contain;" class="mar-top-8" src="${if_defined_to(this.responseBlobUrl)}"></img>` : ''}
8402
8409
  <button class="m-btn thin-border mar-top-8" style="width:135px" @click='${e => {
8403
8410
  downloadResource(this.responseBlobUrl, this.respContentDisposition, e);
@@ -8408,13 +8415,13 @@ class ApiRequest extends lit_element_h {
8408
8415
  viewResource(this.responseBlobUrl, e);
8409
8416
  }}' part="btn btn-outline">VIEW (NEW TAB)</button>` : ''}
8410
8417
  </div>` : ke`
8411
- <div class="tab-content col m-markdown" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};" >
8418
+ <div part="tab-content" class="tab-content col m-markdown" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};" >
8412
8419
  <button class="toolbar-btn" style="position:absolute; top:12px; right:8px" @click='${e => {
8413
8420
  copyToClipboard(this.responseText, e);
8414
8421
  }}' part="btn btn-fill"> Copy </button>
8415
8422
  <pre style="white-space:pre; min-height:50px; height:var(--resp-area-height, 400px); resize:vertical; overflow:auto">${responseContent}</pre>
8416
8423
  </div>`}
8417
- <div class="tab-content col m-markdown" style="flex:1; display:${this.activeResponseTab === 'headers' ? 'flex' : 'none'};" >
8424
+ <div part="tab-content" class="tab-content col m-markdown" style="flex:1; display:${this.activeResponseTab === 'headers' ? 'flex' : 'none'};" >
8418
8425
  <button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${e => {
8419
8426
  copyToClipboard(this.responseHeaders, e);
8420
8427
  }}' part="btn btn-fill"> Copy </button>
@@ -8841,11 +8848,12 @@ class ApiRequest extends lit_element_h {
8841
8848
  respHeadersObj[hdr] = hdrVal;
8842
8849
  this.responseHeaders = `${this.responseHeaders}${hdr}: ${hdrVal}\n`;
8843
8850
  });
8844
- const contentType = fetchResponse.headers.get('content-type').split(';')[0].trim();
8851
+ let contentType = fetchResponse.headers.get('content-type');
8845
8852
  const respEmpty = (await fetchResponse.clone().text()).length === 0;
8846
8853
  if (respEmpty) {
8847
8854
  this.responseText = '';
8848
8855
  } else if (contentType) {
8856
+ contentType = contentType.split(';')[0].trim();
8849
8857
  if (contentType === 'application/x-ndjson') {
8850
8858
  this.responseText = await fetchResponse.text();
8851
8859
  } else if (contentType.includes('json')) {
@@ -8889,16 +8897,18 @@ class ApiRequest extends lit_element_h {
8889
8897
  }
8890
8898
  }
8891
8899
  if (this.responseIsBlob) {
8892
- const contentDisposition = fetchResponse.headers.get('content-disposition');
8900
+ const contentDisposition = fetchResponse.headers.get('content-disposition') || '';
8893
8901
  let filenameFromContentDeposition = 'filename';
8894
- const filenameStarRegexMatch = contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/); // Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
8895
- if (filenameStarRegexMatch) {
8896
- filenameFromContentDeposition = decodeURIComponent(filenameStarRegexMatch[1]); // the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
8897
- } else {
8898
- // Fallback to the regular filename format
8899
- const filenameMatch = contentDisposition.match(/filename="?([^"]+)"?/); // Content-Disposition: attachment; filename=example.pdf
8900
- if (filenameMatch) {
8901
- filenameFromContentDeposition = filenameMatch[1];
8902
+ if (contentDisposition) {
8903
+ const filenameStarRegexMatch = contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/); // Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
8904
+ if (filenameStarRegexMatch) {
8905
+ filenameFromContentDeposition = decodeURIComponent(filenameStarRegexMatch[1]); // the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
8906
+ } else {
8907
+ // Fallback to the regular filename format
8908
+ const filenameMatch = contentDisposition.match(/filename="?([^"]+)"?/); // Content-Disposition: attachment; filename=example.pdf
8909
+ if (filenameMatch) {
8910
+ filenameFromContentDeposition = filenameMatch[1];
8911
+ }
8902
8912
  }
8903
8913
  }
8904
8914
  this.respContentDisposition = filenameFromContentDeposition;
@@ -9085,7 +9095,7 @@ class ApiRequest extends lit_element_h {
9085
9095
 
9086
9096
  // Register the element with the browser
9087
9097
  customElements.define('api-request', ApiRequest);
9088
- ;// CONCATENATED MODULE: ./src/components/schema-table.js
9098
+ ;// ./src/components/schema-table.js
9089
9099
 
9090
9100
  // eslint-disable-line import/extensions
9091
9101
 
@@ -9290,7 +9300,7 @@ class SchemaTable extends lit_element_h {
9290
9300
  <span class='obj-toggle ${newSchemaLevel < this.schemaExpandLevel ? 'expanded' : 'collapsed'}' data-obj='${keyLabel}'>
9291
9301
  ${schemaLevel < this.schemaExpandLevel ? '-' : '+'}
9292
9302
  </span>` : ''}
9293
- ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? ke`<span class="xxx-of-key" style="margin-left:-6px">${keyLabel}</span><span class="${isOneOfLabel ? 'xxx-of-key' : 'xxx-of-descr'}">${keyDescr}</span>` : keyLabel.endsWith('*') ? ke`<span class="key-label" style="display:inline-block; margin-left:-6px;">${isDeprecated || data['::deprecated'] ? '✗' : ''} ${keyLabel.substring(0, keyLabel.length - 1)}</span><span style='color:var(--red);'>*</span>` : ke`<span class="key-label" style="display:inline-block; margin-left:-6px;">${isDeprecated || data['::deprecated'] ? '✗' : ''} ${keyLabel === '::props' ? '' : keyLabel}</span>`}
9303
+ ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? ke`<span class="xxx-of-key" style="margin-left:-6px">${keyLabel}</span><span class="${isOneOfLabel ? 'xxx-of-key' : 'xxx-of-descr'}">${keyDescr}</span>` : keyLabel.endsWith('*') ? ke`<span class="key-label" style="display:inline-block; margin-left:-6px;">${isDeprecated || data['::deprecated'] ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''} ${keyLabel.substring(0, keyLabel.length - 1)}</span><span style='color:var(--red);'>*</span>` : ke`<span class="key-label" style="display:inline-block; margin-left:-6px;">${isDeprecated || data['::deprecated'] ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''} ${keyLabel === '::props' ? '' : keyLabel}</span>`}
9294
9304
  ${data['::type'] === 'xxx-of' && dataType === 'array' ? ke`<span style="color:var(--primary-color)">ARRAY</span>` : ''}
9295
9305
  </div>
9296
9306
  <div class='td key-type' title="${data['::readwrite'] === 'readonly' ? 'Read-Only' : data['::readwrite'] === 'writeonly' ? 'Write-Only' : ''}">
@@ -9346,7 +9356,7 @@ class SchemaTable extends lit_element_h {
9346
9356
  return ke`
9347
9357
  <div class = "tr primitive" title="${isDeprecated || deprecated ? 'Deprecated' : ''}">
9348
9358
  <div class="td key ${isDeprecated || deprecated ? 'deprecated' : ''}" style='padding-left:${leftPadding}px'>
9349
- ${isDeprecated || deprecated ? ke`<span style='color:var(--red);'>✗</span>` : ''}
9359
+ ${isDeprecated || deprecated ? ke`<svg viewBox="0 0 10 10" width="10" height="10" style="stroke:var(--red); margin-right:-6px"><path d="M2 2L8 8M2 8L8 2"/></svg>` : ''}
9350
9360
  ${(_keyLabel = keyLabel) !== null && _keyLabel !== void 0 && _keyLabel.endsWith('*') ? ke`
9351
9361
  <span class="key-label">${keyLabel.substring(0, keyLabel.length - 1)}</span>
9352
9362
  <span style='color:var(--red);'>*</span>` : key.startsWith('::OPTION') ? ke`<span class='xxx-of-key'>${keyLabel}</span><span class="xxx-of-descr">${keyDescr}</span>` : ke`${keyLabel ? ke`<span class="key-label"> ${keyLabel}</span>` : ke`<span class="xxx-of-descr">${schemaTitle}</span>`}`}
@@ -9393,7 +9403,7 @@ class SchemaTable extends lit_element_h {
9393
9403
  }
9394
9404
  }
9395
9405
  customElements.define('schema-table', SchemaTable);
9396
- ;// CONCATENATED MODULE: ./src/components/api-response.js
9406
+ ;// ./src/components/api-response.js
9397
9407
 
9398
9408
  // eslint-disable-line import/extensions
9399
9409
 
@@ -9595,20 +9605,20 @@ class ApiResponse extends lit_element_h {
9595
9605
  ${this.headersForEachRespStatus[status] && ((_this$headersForEachR = this.headersForEachRespStatus[status]) === null || _this$headersForEachR === void 0 ? void 0 : _this$headersForEachR.length) > 0 ? ke`${this.responseHeaderListTemplate(this.headersForEachRespStatus[status])}` : ''}
9596
9606
  </div>
9597
9607
  ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 0 ? '' : ke`
9598
- <div class="tab-panel col">
9599
- <div class="tab-buttons row" @click="${e => {
9608
+ <div part="tab-panel" class="tab-panel col">
9609
+ <div part="tab-btn-row" class="tab-buttons row" @click="${e => {
9600
9610
  if (e.target.tagName.toLowerCase() === 'button') {
9601
9611
  this.activeSchemaTab = e.target.dataset.tab;
9602
9612
  }
9603
9613
  }}" >
9604
- <button class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
9605
- <button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema' >SCHEMA</button>
9614
+ <button part="tab-btn" class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
9615
+ <button part="tab-btn" class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema' >SCHEMA</button>
9606
9616
  <div style="flex:1"></div>
9607
9617
  ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 1 ? ke`<span class='small-font-size gray-text' style='align-self:center; margin-top:8px;'> ${Object.keys(this.mimeResponsesForEachStatus[status])[0]} </span>` : ke`${this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[status]))}`}
9608
9618
  </div>
9609
- ${this.activeSchemaTab === 'example' ? ke`<div class ='tab-content col' style = 'flex:1;'>
9619
+ ${this.activeSchemaTab === 'example' ? ke`<div part="tab-content" class ='tab-content col' style = 'flex:1;'>
9610
9620
  ${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}
9611
- </div>` : ke`<div class ='tab-content col' style = 'flex:1;'>
9621
+ </div>` : ke`<div part="tab-content" class ='tab-content col' style = 'flex:1;'>
9612
9622
  ${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}
9613
9623
  </div>`}
9614
9624
  </div>
@@ -9731,7 +9741,7 @@ class ApiResponse extends lit_element_h {
9731
9741
 
9732
9742
  // Register the element with the browser
9733
9743
  customElements.define('api-response', ApiResponse);
9734
- ;// CONCATENATED MODULE: ./src/templates/expanded-endpoint-template.js
9744
+ ;// ./src/templates/expanded-endpoint-template.js
9735
9745
 
9736
9746
  // eslint-disable-line import/extensions
9737
9747
 
@@ -9857,6 +9867,7 @@ function expandedEndpointBodyTemplate(path, tagName = '', tagDescription = '') {
9857
9867
  schema-hide-write-only = "${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'true' : 'false'}"
9858
9868
  fetch-credentials = "${this.fetchCredentials}"
9859
9869
  exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
9870
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
9860
9871
  file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
9861
9872
  anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
9862
9873
  > </api-request>
@@ -9878,7 +9889,8 @@ function expandedEndpointBodyTemplate(path, tagName = '', tagDescription = '') {
9878
9889
  schema-hide-write-only = "${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'false' : 'true'}"
9879
9890
  selected-status = "${Object.keys(path.responses || {})[0] || ''}"
9880
9891
  exportparts = "btn:btn, btn-response-status:btn-response-status, btn-selected-response-status:btn-selected-response-status, btn-fill:btn-fill, btn-copy:btn-copy,
9881
- schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
9892
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
9893
+ schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
9882
9894
  > </api-response>
9883
9895
  </div>
9884
9896
  </div>
@@ -9909,7 +9921,7 @@ function expandedEndpointTemplate() {
9909
9921
  `;
9910
9922
  }
9911
9923
  /* eslint-enable indent */
9912
- ;// CONCATENATED MODULE: ./src/templates/components-template.js
9924
+ ;// ./src/templates/components-template.js
9913
9925
 
9914
9926
  // eslint-disable-line import/extensions
9915
9927
 
@@ -9979,7 +9991,7 @@ function componentsTemplate() {
9979
9991
  `;
9980
9992
  }
9981
9993
  /* eslint-enable indent */
9982
- ;// CONCATENATED MODULE: ./src/templates/overview-template.js
9994
+ ;// ./src/templates/overview-template.js
9983
9995
 
9984
9996
  // eslint-disable-line import/extensions
9985
9997
 
@@ -10036,7 +10048,7 @@ function overviewTemplate() {
10036
10048
  `;
10037
10049
  }
10038
10050
  /* eslint-enable indent */
10039
- ;// CONCATENATED MODULE: ./src/templates/server-template.js
10051
+ ;// ./src/templates/server-template.js
10040
10052
 
10041
10053
  // eslint-disable-line import/extensions
10042
10054
 
@@ -10147,7 +10159,7 @@ function serverTemplate() {
10147
10159
  </section>`;
10148
10160
  }
10149
10161
  /* eslint-enable indent */
10150
- ;// CONCATENATED MODULE: ./src/templates/navbar-template.js
10162
+ ;// ./src/templates/navbar-template.js
10151
10163
 
10152
10164
 
10153
10165
 
@@ -10367,7 +10379,7 @@ function navbarTemplate() {
10367
10379
  `;
10368
10380
  }
10369
10381
  /* eslint-enable indent */
10370
- ;// CONCATENATED MODULE: ./src/templates/focused-endpoint-template.js
10382
+ ;// ./src/templates/focused-endpoint-template.js
10371
10383
 
10372
10384
  // eslint-disable-line import/extensions
10373
10385
 
@@ -10467,7 +10479,7 @@ function focusedEndpointTemplate() {
10467
10479
  return focusedTemplate;
10468
10480
  }
10469
10481
  /* eslint-enable indent */
10470
- ;// CONCATENATED MODULE: ./src/templates/endpoint-template.js
10482
+ ;// ./src/templates/endpoint-template.js
10471
10483
 
10472
10484
  // eslint-disable-line import/extensions
10473
10485
 
@@ -10602,6 +10614,7 @@ function endpointBodyTemplate(path) {
10602
10614
  schema-hide-write-only = "${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'true' : 'false'}"
10603
10615
  fetch-credentials = "${this.fetchCredentials}"
10604
10616
  exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
10617
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
10605
10618
  file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
10606
10619
  anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
10607
10620
  > </api-request>
@@ -10624,8 +10637,9 @@ function endpointBodyTemplate(path) {
10624
10637
  schema-hide-write-only = "${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'false' : 'true'}"
10625
10638
  selected-status = "${Object.keys(path.responses || {})[0] || ''}"
10626
10639
  exportparts = "btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, file-input:file-input,
10627
- textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, anchor:anchor, anchor-param-example:anchor-param-example, btn-clear-resp:btn-clear-resp,
10628
- schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
10640
+ textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, anchor:anchor, anchor-param-example:anchor-param-example, btn-clear-resp:btn-clear-resp,
10641
+ tab-panel:tab-panel, tab-btn:tab-btn, tab-btn-row:tab-btn-row, tab-coontent:tab-content,
10642
+ schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
10629
10643
  > </api-response>
10630
10644
  </div>
10631
10645
  </div>`;
@@ -10689,14 +10703,14 @@ function endpointTemplate(isMini = false, pathsExpanded = false) {
10689
10703
  `)}`;
10690
10704
  }
10691
10705
  /* eslint-enable indent */
10692
- ;// CONCATENATED MODULE: ./src/templates/logo-template.js
10706
+ ;// ./src/templates/logo-template.js
10693
10707
 
10694
10708
 
10695
10709
  /* eslint-disable indent */
10696
10710
  function logoTemplate(style) {
10697
10711
  return ke`
10698
10712
  <div style=${style}>
10699
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="1 0 511 512">
10713
+ <svg viewBox="1 0 511 512">
10700
10714
  <path d="M351 411a202 202 0 01-350 0 203 203 0 01333-24 203 203 0 0117 24zm0 0" fill="#adc165"/>
10701
10715
  <path d="M334 387a202 202 0 01-216-69 202 202 0 01216 69zm78 32H85a8 8 0 01-8-8 8 8 0 018-8h327a8 8 0 017 8 8 8 0 01-7 8zm0 0" fill="#99aa52"/>
10702
10716
  <path d="M374 338l-5 30a202 202 0 01-248-248 203 203 0 01253 218zm0 0" fill="#ffc73b"/>
@@ -10708,7 +10722,7 @@ function logoTemplate(style) {
10708
10722
  `;
10709
10723
  }
10710
10724
  /* eslint-enable indent */
10711
- ;// CONCATENATED MODULE: ./src/templates/header-template.js
10725
+ ;// ./src/templates/header-template.js
10712
10726
 
10713
10727
 
10714
10728
 
@@ -10763,7 +10777,7 @@ function headerTemplate() {
10763
10777
  </header>`;
10764
10778
  }
10765
10779
  /* eslint-enable indent */
10766
- ;// CONCATENATED MODULE: ./src/styles/dialog-box-styles.js
10780
+ ;// ./src/styles/dialog-box-styles.js
10767
10781
 
10768
10782
  /* harmony default export */ const dialog_box_styles = (i`
10769
10783
  *, *:before, *:after { box-sizing: border-box; }
@@ -10838,7 +10852,7 @@ function headerTemplate() {
10838
10852
  font-size:24px;
10839
10853
  }
10840
10854
  `);
10841
- ;// CONCATENATED MODULE: ./src/components/dialog-box.js
10855
+ ;// ./src/components/dialog-box.js
10842
10856
 
10843
10857
 
10844
10858
  class DialogBox extends lit_element_h {
@@ -10910,7 +10924,7 @@ class DialogBox extends lit_element_h {
10910
10924
  }
10911
10925
  }
10912
10926
  customElements.define('dialog-box', DialogBox);
10913
- ;// CONCATENATED MODULE: ./src/templates/advance-search-template.js
10927
+ ;// ./src/templates/advance-search-template.js
10914
10928
 
10915
10929
 
10916
10930
 
@@ -10982,7 +10996,7 @@ function searchByPropertiesModalTemplate() {
10982
10996
  `;
10983
10997
  }
10984
10998
  /* eslint-enable indent */
10985
- ;// CONCATENATED MODULE: ./src/utils/color-utils.js
10999
+ ;// ./src/utils/color-utils.js
10986
11000
  /* harmony default export */ const color_utils = ({
10987
11001
  color: {
10988
11002
  inputReverseFg: '#fff',
@@ -11036,7 +11050,7 @@ function searchByPropertiesModalTemplate() {
11036
11050
  function isValidHexColor(colorCode) {
11037
11051
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/i.test(colorCode);
11038
11052
  }
11039
- ;// CONCATENATED MODULE: ./src/utils/theme.js
11053
+ ;// ./src/utils/theme.js
11040
11054
 
11041
11055
 
11042
11056
  /* Generates an schema object containing type and constraint info */
@@ -11314,7 +11328,7 @@ function setTheme(baseTheme, theme = {}) {
11314
11328
  }
11315
11329
  </style>`;
11316
11330
  }
11317
- ;// CONCATENATED MODULE: ./src/templates/main-body-template.js
11331
+ ;// ./src/templates/main-body-template.js
11318
11332
 
11319
11333
 
11320
11334
  // Templates
@@ -11350,23 +11364,11 @@ function mainBodyTemplate(isMini = false, pathsExpanded = false) {
11350
11364
  };
11351
11365
  /* eslint-disable indent */
11352
11366
  if (this.resolvedSpec.specLoadError) {
11353
- if (isMini) {
11354
- return ke`
11355
- ${this.theme === 'dark' ? setTheme.call(this, 'dark', newTheme) : setTheme.call(this, 'light', newTheme)}
11356
- <div style='display:flex; align-items:center; border:1px dashed var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)'> ${this.resolvedSpec.info.description} </div>
11357
- `;
11358
- }
11359
11367
  return ke`
11360
11368
  ${this.theme === 'dark' ? setTheme.call(this, 'dark', newTheme) : setTheme.call(this, 'light', newTheme)}
11361
- <!-- Header -->
11362
- ${headerTemplate.call(this)}
11363
- <main class='main-content regular-font' part='section-main-content'>
11364
- <slot></slot>
11365
- <div style='margin:24px; text-align: center;'>
11366
- <h1 style='color: var(--red)'> ${this.resolvedSpec.info.title} </h1>
11367
- <div style='font-family:var(--font-mono)'> ${this.resolvedSpec.info.description} </div>
11368
- </div>
11369
- </main>
11369
+ <div id="spec-not-found" style='display:flex; align-items:center; justify-content: center; border:1px dashed var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)'>
11370
+ ${this.resolvedSpec.info.description}
11371
+ </div>
11370
11372
  `;
11371
11373
  }
11372
11374
  if (this.resolvedSpec.isSpecLoading) {
@@ -11420,7 +11422,7 @@ function mainBodyTemplate(isMini = false, pathsExpanded = false) {
11420
11422
  `;
11421
11423
  }
11422
11424
  /* eslint-enable indent */
11423
- ;// CONCATENATED MODULE: ./src/rapidoc.js
11425
+ ;// ./src/rapidoc.js
11424
11426
 
11425
11427
 
11426
11428
 
@@ -11781,6 +11783,7 @@ class RapiDoc extends lit_element_h {
11781
11783
  static get styles() {
11782
11784
  return [font_styles, input_styles, flex_styles, table_styles, endpoint_styles, prism_styles, tab_styles, nav_styles, info_styles, i`
11783
11785
  :host {
11786
+ all: initial;
11784
11787
  display:flex;
11785
11788
  flex-direction: column;
11786
11789
  min-width:360px;
@@ -11797,7 +11800,7 @@ class RapiDoc extends lit_element_h {
11797
11800
  }
11798
11801
  :where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
11799
11802
  :where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
11800
- .body {
11803
+ .body {
11801
11804
  display:flex;
11802
11805
  height:100%;
11803
11806
  width:100%;
@@ -12760,7 +12763,7 @@ class RapiDoc extends lit_element_h {
12760
12763
  }
12761
12764
  }
12762
12765
  customElements.define('rapi-doc', RapiDoc);
12763
- ;// CONCATENATED MODULE: ./src/rapidoc-mini.js
12766
+ ;// ./src/rapidoc-mini.js
12764
12767
 
12765
12768
 
12766
12769
 
@@ -12879,6 +12882,10 @@ class RapiDocMini extends lit_element_h {
12879
12882
  type: String,
12880
12883
  attribute: 'allow-try'
12881
12884
  },
12885
+ showCurlBeforeTry: {
12886
+ type: String,
12887
+ attribute: 'show-curl-before-try'
12888
+ },
12882
12889
  // Main Colors and Font
12883
12890
  theme: {
12884
12891
  type: String
@@ -12938,6 +12945,7 @@ class RapiDocMini extends lit_element_h {
12938
12945
  static get styles() {
12939
12946
  return [font_styles, input_styles, flex_styles, table_styles, endpoint_styles, prism_styles, tab_styles, nav_styles, info_styles, i`
12940
12947
  :host {
12948
+ all: initial;
12941
12949
  display:flex;
12942
12950
  flex-direction: column;
12943
12951
  min-width:360px;
@@ -13227,7 +13235,7 @@ class RapiDocMini extends lit_element_h {
13227
13235
  }
13228
13236
  }
13229
13237
  customElements.define('rapi-doc-mini', RapiDocMini);
13230
- ;// CONCATENATED MODULE: ./src/oauth-receiver.js
13238
+ ;// ./src/oauth-receiver.js
13231
13239
  class OauthReceiver extends HTMLElement {
13232
13240
  connectedCallback() {
13233
13241
  this.receiveAuthParms();
@@ -13287,7 +13295,7 @@ class OauthReceiver extends HTMLElement {
13287
13295
  }
13288
13296
  }
13289
13297
  customElements.define('oauth-receiver', OauthReceiver);
13290
- ;// CONCATENATED MODULE: ./src/templates/json-schema-viewer-template.js
13298
+ ;// ./src/templates/json-schema-viewer-template.js
13291
13299
 
13292
13300
  // eslint-disable-line import/extensions
13293
13301
 
@@ -13462,7 +13470,7 @@ function jsonSchemaViewerTemplate(isMini = false) {
13462
13470
  `;
13463
13471
  }
13464
13472
  /* eslint-enable indent */
13465
- ;// CONCATENATED MODULE: ./src/json-schema-viewer.js
13473
+ ;// ./src/json-schema-viewer.js
13466
13474
 
13467
13475
 
13468
13476
 
@@ -13593,6 +13601,7 @@ class JsonSchemaViewer extends lit_element_h {
13593
13601
  static get styles() {
13594
13602
  return [font_styles, input_styles, flex_styles, table_styles, endpoint_styles, prism_styles, tab_styles, nav_styles, info_styles, i`
13595
13603
  :host {
13604
+ all: initial;
13596
13605
  display:flex;
13597
13606
  flex-direction: column;
13598
13607
  min-width:360px;
@@ -13860,7 +13869,7 @@ class JsonSchemaViewer extends lit_element_h {
13860
13869
  }
13861
13870
  }
13862
13871
  customElements.define('json-schema-viewer', JsonSchemaViewer);
13863
- ;// CONCATENATED MODULE: ./src/index.js
13872
+ ;// ./src/index.js
13864
13873
 
13865
13874
 
13866
13875
 
@@ -20609,7 +20618,7 @@ function getType(str) {
20609
20618
  /******/
20610
20619
  /******/ /* webpack/runtime/getFullHash */
20611
20620
  /******/ (() => {
20612
- /******/ __webpack_require__.h = () => ("ab239753a7c115a89c24")
20621
+ /******/ __webpack_require__.h = () => ("2337278d415d81467132")
20613
20622
  /******/ })();
20614
20623
  /******/
20615
20624
  /******/ /* webpack/runtime/global */