@scalar/api-reference 1.22.52 → 1.22.53
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/CHANGELOG.md +9 -0
- package/dist/browser/standalone.js +4 -4
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/{index-CA53QuUy.js → index-Bb3Mdphw.js} +3 -3
- package/dist/{index-4p6mV9sm.cjs → index-DWM5ulzV.cjs} +2 -2
- package/dist/{index-fBCIYxPK.cjs → index-DmTHbZ53.cjs} +2 -2
- package/dist/{index-BEcGroQA.js → index-DwSL-6br.js} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -212,11 +212,11 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
|
|
|
212
212
|
|
|
213
213
|
`):f.map(h)}function Js(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:bD(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function wD(r){try{return x1(r),{valid:!0}}catch(e){return{valid:!1,errors:Js(r,e.message)}}}class jf{constructor(){Jr(this,"version"),Jr(this,"ajvValidators",{}),Jr(this,"externalRefs",{}),Jr(this,"errors"),Jr(this,"specificationVersion"),Jr(this,"specificationType"),Jr(this,"specification")}resolveReferences(e){return x1(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:Js(n,Bu.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[iI]=this.externalRefs);const{version:s,specificationType:a,specificationVersion:l}=S1(o);if(this.version=s,this.specificationVersion=l,this.specificationType=a,!s)return{valid:!1,errors:Js(n,Bu.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?wD(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:Js(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Js(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await g_(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=sI[t.$schema],o=new n({strict:!1});return dT(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}Jr(jf,"supportedVersions",Eb);function kD(){return{load:SD}}function SD(r){const e=w1(r);return{get:()=>e,details:()=>Pc(e),filter:t=>Ui(e,t),upgrade:()=>M1(e),validate:()=>Ff(e),resolve:()=>Bc(e),toJson:()=>Ki(e),toYaml:()=>Wi(e)}}function M1(r){const e=xM(r);return{get:()=>e,details:()=>Pc(e),filter:t=>Ui(e,t),validate:()=>Ff(e),resolve:()=>Bc(e),toJson:()=>Ki(e),toYaml:()=>Wi(e)}}async function Ff(r){return{...await CM(r),filter:e=>Ui(r,e),get:()=>r,details:()=>Pc(r),resolve:()=>Bc(r),toJson:()=>Ki(r),toYaml:()=>Wi(r)}}async function Bc(r){return{...await vM(r),filter:e=>Ui(r,e),toJson:()=>Ki(r),toYaml:()=>Wi(r)}}function Ui(r,e){const t=aI(r,e);return{get:()=>t,details:()=>Pc(t),filter:()=>Ui(t,e),upgrade:()=>M1(t),validate:()=>Ff(t),resolve:()=>Bc(t),toJson:()=>Ki(t),toYaml:()=>Wi(t)}}function Pc(r){return S1(r)}function Ki(r){return bM(r)}function Wi(r){return wM(r)}const D1=r=>new Promise(async(e,t)=>{var n;try{if(!r)return e(Ia(Hn()));const{schema:o,errors:s}=await kD().load(r).resolve();return s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
|
|
214
214
|
`,`Scalar OpenAPI Parser Warning:
|
|
215
|
-
`,s),o===void 0?(t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file."),e(Ia(Hn()))):e(Ia(o))}catch(o){t(o)}return e(Ia(Hn()))}),Ia=r=>{let e={};r&&typeof r=="object"?e=structuredClone(r):e=Hn(),e.tags||(e.tags=[]),e.paths||(e.paths={});const t={};return Object.keys(e.webhooks??{}).forEach(o=>{var s;Object.keys(((s=e.webhooks)==null?void 0:s[o])??{}).forEach(a=>{var c,d,u;const l=(c=e.webhooks)==null?void 0:c[o][a];(l==null?void 0:l["x-internal"])!==!0&&(t[o]===void 0&&(t[o]={}),t[o][a]={httpVerb:a,path:o,operationId:(l==null?void 0:l.operationId)||o,name:(l==null?void 0:l.summary)||o||"",description:(l==null?void 0:l.description)||"",pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters,information:{...l}})})}),Object.keys(e.paths).forEach(o=>{Object.keys(e.paths[o]).filter(a=>nh.includes(a.toUpperCase())).forEach(a=>{var d,u,h,f,p,m;const l=e.paths[o][a];if(l===void 0||l["x-internal"]===!0)return;const c={httpVerb:a,path:o,operationId:l.operationId||o,name:l.summary||o||"",description:l.description||"",information:{...l},pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters};if(!l.tags||l.tags.length===0){(h=e.tags)!=null&&h.find(g=>g.name==="default")||(f=e.tags)==null||f.push({name:"default",description:"",operations:[]});const y=(p=e.tags)==null?void 0:p.findIndex(g=>g.name==="default");y>=0&&((m=e.tags[y])==null||m.operations.push(c))}else l.tags.forEach(y=>{var b,w,S;const g=(b=e.tags)==null?void 0:b.findIndex(x=>x.name===y);g===-1&&((w=e.tags)==null||w.push({name:y,description:""}));const v=g!==-1?g:e.tags.length-1;typeof((S=e.tags[v])==null?void 0:S.operations)>"u"&&(e.tags[v].operations=[]),e.tags[v].operations.push(c)})})}),{...e,webhooks:t}},Ic=Symbol(),qf=Symbol(),_i=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},wr=r=>new Promise(e=>setTimeout(e,r)),xD=Symbol("downloadSpec"),zf=Xe.useEventBus(xD);function V1(r,e){const t=u0(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",a="spec"+s,l=e?e+s:a,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function R1(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}var CD=Object.defineProperty,ED=(r,e,t)=>e in r?CD(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ct=(r,e,t)=>(ED(r,typeof e!="symbol"?e+"":e,t),t);function $D(r){if(!r||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}$D("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let ju=1;class _D{constructor(){ct(this,"subscribers"),ct(this,"toasts"),ct(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),ct(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),ct(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),ct(this,"create",e=>{var t;const{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ju++,a=this.toasts.findIndex(c=>c.id===s),l=e.dismissible===void 0?!0:e.dismissible;return a!==-1?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...e,id:s,title:n}),{...c,...e,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...o,dismissible:l,id:s}),s}),ct(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),ct(this,"message",(e,t)=>this.create({...t,message:e})),ct(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),ct(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),ct(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),ct(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),ct(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),ct(this,"promise",(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));const o=e instanceof Promise?e:e();let s=n!==void 0;return o.then(a=>{if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(a):t.success;this.create({id:n,type:"success",message:l})}}).catch(a=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(a):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{var a;s&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),n}),ct(this,"custom",(e,t)=>{const n=(t==null?void 0:t.id)||ju++;return this.publish({...t,id:n,title:e}),n}),this.subscribers=[],this.toasts=[]}}const Ut=new _D,ND=(r,e)=>{const t=(e==null?void 0:e.id)||ju++;return Ut.publish({title:r,...e,id:t}),t},AD=ND,Ma=Object.assign(AD,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading}),OD=["data-visible"],TD={className:"sonner-spinner"},BD=i.defineComponent({__name:"Loader",props:{visible:Boolean},setup(r){const e=Array(12).fill(0);return(t,n)=>(i.openBlock(),i.createElementBlock("div",{className:"sonner-loading-wrapper","data-visible":r.visible},[i.createElementVNode("div",TD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e),o=>(i.openBlock(),i.createElementBlock("div",{key:`spinner-bar-${o}`,className:"sonner-loading-bar"}))),128))])],8,OD))}}),Gi=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},PD={},ID={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},MD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),DD=[MD];function VD(r,e){return i.openBlock(),i.createElementBlock("svg",ID,DD)}const RD=Gi(PD,[["render",VD]]),LD={},jD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},FD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),qD=[FD];function zD(r,e){return i.openBlock(),i.createElementBlock("svg",jD,qD)}const HD=Gi(LD,[["render",zD]]),UD={},KD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},WD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),GD=[WD];function JD(r,e){return i.openBlock(),i.createElementBlock("svg",KD,GD)}const YD=Gi(UD,[["render",JD]]),XD={},QD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ZD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),e5=[ZD];function t5(r,e){return i.openBlock(),i.createElementBlock("svg",QD,e5)}const r5=Gi(XD,[["render",t5]]),n5={},o5={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},s5=i.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),i5=i.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),a5=[s5,i5];function l5(r,e){return i.openBlock(),i.createElementBlock("svg",o5,a5)}const c5=Gi(n5,[["render",l5]]),d5=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],u5=["data-disabled"],h5={key:1,"data-icon":""},f5={"data-content":""},p5={"data-title":""},m5=4e3,g5=14,y5=20,v5=200,b5=i.defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(r,{emit:e}){const t=B=>!!B.promise,n=e,o=r,s=i.ref(!1),a=i.ref(!1),l=i.ref(!1),c=i.ref(!1),d=i.ref(null),u=i.ref(0),h=i.ref(0),f=i.ref(null),p=i.ref(null),m=i.computed(()=>o.index===0),y=i.computed(()=>o.index+1<=o.visibleToasts),g=i.computed(()=>o.toast.type),v=i.computed(()=>o.toast.dismissible),b=o.toast.className||"",w=o.toast.descriptionClassName||"",S=o.toast.style||{},x=i.computed(()=>o.heights.findIndex(B=>B.toastId===o.toast.id)||0),k=i.computed(()=>o.toast.duration||o.duration||m5),C=i.ref(0),N=i.ref(0),P=i.ref(k.value),M=i.ref(0),j=i.ref(null),I=i.computed(()=>o.position.split("-")),X=i.computed(()=>I.value[0]),W=i.computed(()=>I.value[1]),te=i.computed(()=>o.heights.reduce((B,z,H)=>H>=x.value?B:B+z.height,0)),me=i.computed(()=>o.toast.invert||o.invert),ke=i.computed(()=>d.value==="loading"),Se=i.computed(()=>d.value??(o.toast.type||null)),se=i.computed(()=>!t(o.toast)&&typeof o.toast.title=="object"),q=i.computed(()=>{if(!t(o.toast))return null;switch(d.value){case"loading":return o.toast.loading;case"success":return typeof o.toast.success=="function"?f.value:o.toast.success;case"error":return typeof o.toast.error=="function"?f.value:o.toast.error;default:return null}});i.onMounted(()=>s.value=!0),i.watchEffect(()=>{N.value=x.value*g5+te.value});function T(){var B,z;(!ke.value||v.value)&&(V(),(z=(B=o.toast).onDismiss)==null||z.call(B,o.toast))}function V(){a.value=!0,u.value=N.value;const B=o.heights.filter(z=>z.toastId!==o.toast.id);n("update:heights",B),setTimeout(()=>{n("removeToast",o.toast)},v5)}const D=B=>{ke||(u.value=N.value,B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(l.value=!0,j.value={x:B.clientX,y:B.clientY}))},E=B=>{var z,H,ie,oe;if(c.value)return;j.value=null;const ye=Number(((z=p.value)==null?void 0:z.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(ye)>=y5){u.value=N.value,(ie=(H=o.toast).onDismiss)==null||ie.call(H,o.toast),V(),c.value=!0;return}(oe=p.value)==null||oe.style.setProperty("--swipe-amount","0px"),l.value=!0},A=B=>{var z;if(!j.value)return;const H=B.clientY-j.value.y,ie=B.clientX-j.value.x,oe=(I.value[0]==="top"?Math.min:Math.max)(0,H),ye=B.pointerType==="touch"?10:2;Math.abs(oe)>ye?(z=p.value)==null||z.style.setProperty("--swipe-amount",`${H}px`):Math.abs(ie)>ye&&(j.value=null)};return i.watchEffect(B=>{if(o.toast.promise&&d.value==="loading"||o.toast.duration===1/0)return;let z;const H=()=>{if(M.value<C.value){const oe=new Date().getTime()-C.value;P.value=P.value-oe}M.value=new Date().getTime()},ie=()=>{C.value=new Date().getTime(),z=setTimeout(()=>{var oe,ye;(ye=(oe=o.toast).onAutoClose)==null||ye.call(oe,o.toast),V()},P.value)};o.expanded||o.interacting?H():ie(),B(()=>{clearTimeout(z)})}),i.onMounted(()=>{if(p.value){const B=p.value.getBoundingClientRect().height;h.value=B;const z=[{toastId:o.toast.id,height:B},...o.heights];n("update:heights",z)}}),i.onUnmounted(()=>{if(p.value){const B=o.heights.filter(z=>z.toastId!==o.toast.id);n("update:heights",B)}}),i.watchEffect(()=>{o.toast.delete&&V()}),(B,z)=>(i.openBlock(),i.createElementBlock("li",{"aria-live":B.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:p,"data-sonner-toast":"",class:i.normalizeClass(i.unref(b)),"data-styled":!se.value,"data-mounted":s.value,"data-promise":!!B.toast.promise,"data-removed":a.value,"data-visible":y.value,"data-y-position":X.value,"data-x-position":W.value,"data-index":o.index,"data-front":m.value,"data-swiping":l.value,"data-type":d.value!=="loading"&&d.value?d.value:g.value,"data-invert":me.value,"data-swipe-out":c.value,"data-expanded":!!(o.expanded||o.expandByDefault&&s.value),style:i.normalizeStyle({"--index":o.index,"--toasts-before":o.index,"--z-index":B.toasts.length-o.index,"--offset":`${a.value?u.value:N.value}px`,"--initial-height":o.expandByDefault?"auto":`${h.value}px`,...i.unref(S)}),onPointerdown:D,onPointerup:E,onPointermove:A},[o.closeButton&&!se.value?(i.openBlock(),i.createElementBlock("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":ke.value,onClick:T},[i.createVNode(c5)],8,u5)):i.createCommentVNode("",!0),g.value||B.toast.icon||B.toast.promise?(i.openBlock(),i.createElementBlock("div",h5,[typeof B.toast.promise=="function"||g.value==="loading"?(i.openBlock(),i.createBlock(BD,{key:0,visible:d.value==="loading"||g.value==="loading"},null,8,["visible"])):i.createCommentVNode("",!0),Se.value==="success"?(i.openBlock(),i.createBlock(RD,{key:1})):Se.value==="info"?(i.openBlock(),i.createBlock(HD,{key:2})):Se.value==="warning"?(i.openBlock(),i.createBlock(YD,{key:3})):Se.value==="error"?(i.openBlock(),i.createBlock(r5,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",f5,[i.createElementVNode("div",p5,[typeof B.toast.title=="string"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(B.toast.title),1)],64)):B.toast.title===void 0||B.toast.title===null?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(q.value),1)],64)):se.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(B.toast.title),{key:2,onCloseToast:z[0]||(z[0]=()=>{var H;V(),(H=B.toast.cancel)!=null&&H.onClick&&B.toast.cancel.onClick()})},null,32)):i.createCommentVNode("",!0)]),B.toast.description?(i.openBlock(),i.createElementBlock("div",{key:0,"data-description":"",class:i.normalizeClass(B.descriptionClass+i.unref(w))},i.toDisplayString(B.toast.description),3)):i.createCommentVNode("",!0)]),B.toast.cancel?(i.openBlock(),i.createElementBlock("button",{key:2,"data-button":"","data-cancel":"",onClick:z[1]||(z[1]=()=>{var H;V(),(H=B.toast.cancel)!=null&&H.onClick&&B.toast.cancel.onClick()})},i.toDisplayString(B.toast.cancel.label),1)):i.createCommentVNode("",!0),B.toast.action?(i.openBlock(),i.createElementBlock("button",{key:3,"data-button":"",onClick:z[2]||(z[2]=()=>{var H;V(),(H=B.toast.action)==null||H.onClick()})},i.toDisplayString(B.toast.action.label),1)):i.createCommentVNode("",!0)],46,d5))}}),w5=["aria-label"],k5=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],S5=3,jg="32px",x5=4e3,C5=356,Fg=14,E5=typeof window<"u"&&typeof document<"u",$5=i.defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:x5},gap:{default:Fg},visibleToasts:{default:S5},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:jg},dir:{default:"auto"}},setup(r){const e=r,t=i.useAttrs(),n=i.ref([]),o=i.ref([]),s=i.ref(!1),a=i.ref(!1),l=i.ref(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),c=i.computed(()=>e.position.split("-")),d=i.ref(null),u=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function h(p){n.value=n.value.filter(({id:m})=>m!==p.id)}function f(){if(typeof window>"u")return"ltr";const p=document.documentElement.getAttribute("dir");return p==="auto"||!p?window.getComputedStyle(document.documentElement).direction:p}return i.onMounted(()=>{const p=Ut.subscribe(m=>{if(m.dismiss){n.value=n.value.map(y=>y.id===m.id?{...y,delete:!0}:y);return}i.nextTick(()=>{const y=n.value.findIndex(g=>g.id===m.id);y!==-1?n.value.splice(y,1,m):n.value=[m,...n.value]})});i.onUnmounted(()=>{p()})}),i.watch(()=>e.theme,p=>{if(p!=="system"){l.value=p;return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?l.value="dark":l.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:m})=>{m?l.value="dark":l.value="light"})}),i.watchEffect(()=>{n.value.length<=1&&(s.value=!1)}),i.watchEffect(p=>{function m(y){var g,v;e.hotkey.every(b=>y[b]||y.code===b)&&(s.value=!0,(g=d.value)==null||g.focus()),y.code==="Escape"&&(document.activeElement===d.value||(v=d.value)!=null&&v.contains(document.activeElement))&&(s.value=!1)}E5&&(document.addEventListener("keydown",m),p(()=>{document.removeEventListener("keydown",m)}))}),(p,m)=>{var y;return i.openBlock(),i.createElementBlock("section",{"aria-label":`Notifications ${i.unref(u)}`,tabIndex:-1},[i.createElementVNode("ol",{ref_key:"listRef",ref:d,"data-sonner-toaster":"",dir:p.dir==="auto"?f():p.dir,tabIndex:-1,"data-theme":p.theme,"data-rich-colors":p.richColors,"data-y-position":c.value[0],"data-x-position":c.value[1],style:i.normalizeStyle({"--front-toast-height":`${(y=o.value[0])==null?void 0:y.height}px`,"--offset":typeof p.offset=="number"?`${p.offset}px`:p.offset||jg,"--width":`${C5}px`,"--gap":`${Fg}px`,...i.unref(t).style}),onMouseenter:m[1]||(m[1]=g=>s.value=!0),onMousemove:m[2]||(m[2]=g=>s.value=!0),onMouseleave:m[3]||(m[3]=()=>{a.value||(s.value=!1)}),onPointerdown:m[4]||(m[4]=g=>a.value=!1),onPointerup:m[5]||(m[5]=g=>a.value=!1)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(g,v)=>{var b,w,S,x;return i.openBlock(),i.createBlock(b5,{key:g.id,index:v,toast:g,duration:((b=p.toastOptions)==null?void 0:b.duration)??p.duration,className:(w=p.toastOptions)==null?void 0:w.className,descriptionClassName:(S=p.toastOptions)==null?void 0:S.descriptionClassName,invert:p.invert,visibleToasts:p.visibleToasts,closeButton:p.closeButton,interacting:a.value,position:p.position,style:i.normalizeStyle((x=p.toastOptions)==null?void 0:x.style),toasts:n.value,expandByDefault:p.expand,gap:p.gap,expanded:s.value,heights:o.value,"onUpdate:heights":m[0]||(m[0]=k=>o.value=k),onRemoveToast:h},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,k5)],8,w5)}}}),L1={toast:()=>null};function _5(r){L1.toast=r}function j1(){return{initializeToasts:_5,toast:(r,e="info",t={timeout:3e3})=>{L1.toast(r,e,t)}}}const N5=i.defineComponent({__name:"ScalarToasts",setup(r){const e=i.ref(!1);i.onMounted(()=>e.value=!0);const t={success:Ma.success,error:Ma.error,warn:Ma.warning,info:Ma},{initializeToasts:n}=j1();return n((o,s="info",a={})=>{(t[s]||t.info)(o,{duration:a.timeout||3e3})}),(o,s)=>e.value?(i.openBlock(),i.createBlock(i.unref($5),{key:0,toastOptions:{className:"toaster"}})):i.createCommentVNode("",!0)}}),bs=()=>{const{toast:r}=j1();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},Gr=i.ref(!1);function A5(r){var o;const e=()=>{var a,l;const s=typeof window<"u"?(a=window.localStorage)==null?void 0:a.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;Gr.value=!Gr.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Gr.value)))};function n(s){var a;Gr.value=s,typeof window<"u"&&((a=window==null?void 0:window.localStorage)==null||a.setItem("isDark",JSON.stringify(Gr.value)))}return Gr.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),i.watch(Gr,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Gr,toggleDarkMode:t,setDarkMode:n}}const qg="https://api.scalar.com/request-proxy",Da="https://proxy.scalar.com",O5="http://localhost:5051";function T5(r){i.watch(()=>r,()=>{var e;r.proxy===qg?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${qg}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Da}) instead.`),r.proxy=Da,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Da}). Read more: https://github.com/scalar/scalar`)):(e=r.proxy)!=null&&e.length&&r.proxy!==Da&&r.proxy!==O5&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${r==null?void 0:r.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const B5={node:["unirest"]},Fu=i.ref({...B5});function P5(r,e){return r.flatMap(t=>{var n;return Array.isArray(e.value)?(t.clients=t.clients.filter(o=>!e.value.includes(o.key)),[t]):e.value[t.key]===!0?[]:(Array.isArray(e.value[t.key])&&(t.clients=t.clients.filter(o=>!e.value[t.key].includes(o.key))),(n=t==null?void 0:t.clients)!=null&&n.length?[t]:[])})}const I5=i.computed(()=>{var e;const r=Yg.availableTargets();return(e=r.find(t=>t.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),P5(r,Fu)});function Ji(){return{availableTargets:I5,excludedClients:i.readonly(Fu),setExcludedClients:r=>Fu.value=r}}const Hf=i.ref(Zo.hash??""),Il=i.ref(),M5=i.ref(!1),D5=r=>r.slug?`description/${r.slug}`:"",F1=r=>{var t;if(!Il.value)return"";const e=new RegExp("^"+((t=Il.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},V5=(r,e)=>{if(!r)return"webhooks";const t=Ai.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},R5=r=>{if(!r)return"models";const e=Ai.slug(r);return`model/${encodeURIComponent(e)}`},L5=(r,e)=>`${q1(e)}/${r.httpVerb}${r.path}`,q1=({name:r})=>{const e=Ai.slug(r);return`tag/${encodeURIComponent(e)}`},j5=(r=Hf.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},F5=()=>{Hf.value=Il.value?F1(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},lt=()=>({hash:Hf,getWebhookId:V5,getModelId:R5,getHeadingId:D5,getOperationId:L5,getPathRoutingId:F1,getSectionId:j5,getTagId:q1,isIntersectionEnabled:M5,pathRouting:Il,updateHash:F5});function Uf(r){return{parameterMap:i.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const q5=async({url:r,content:e},t)=>{if(r)return jv(r)?await yp(r,t):await yp(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return di(n)};function z1({specConfig:r,proxy:e}){const t=i.ref(""),n=i.reactive(Hn()),o=i.ref(null);function s(a){return a?D1(a).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Hn())}return i.watch(()=>i.toValue(r),async a=>{var l;if(a){const c=(l=await q5(a,i.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),i.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Kf(r){return{responses:i.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:zg,getModelId:Hg,getOperationId:Ug,getSectionId:z5,getTagId:H1,getWebhookId:kd,hash:qu}=lt(),Je=i.ref(void 0);function H5(r){return Je.value=r}const U1=i.ref(!1),Ml=i.reactive(Zo["useSidebarContent-collapsedSidebarItems"]??{});function U5(r){Ml[r]=!Ml[r]}function Sd(r,e){Ml[r]=e}const Dl=i.ref([]),K5=async r=>{const e=await ki(r),t=ec(e);return e.filter(n=>n.depth===t||n.depth===t+1)},K1=i.computed(()=>{var h,f,p,m,y,g,v,b,w,S;const{state:r}=Rl(),e={},{openApi:{globalSecurity:t}}=th(),n=[];let o=null;Dl.value.forEach(x=>{var k;x.depth===ec(Dl.value)?(o={id:zg(x),title:x.value,show:!r.showApiClient,children:[]},n.push(o)):o&&((k=o.children)==null||k.push({id:zg(x),title:x.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(x=>(x==null?void 0:x.length)!==1||x[0].name!=="default"||x[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(y=(m=Je.value)==null?void 0:m.tags)==null?void 0:y.filter(x=>{var k;return((k=x.operations)==null?void 0:k.length)>0}).map(x=>{var k;return{id:H1(x),title:x.name,displayTitle:x["x-displayName"]??x.name,show:!0,children:(k=x.operations)==null?void 0:k.map(C=>{var M;const N=Ug(C,x),P=C.name??C.path;return e[N]=P,{id:N,title:P,httpVerb:C.httpVerb,deprecated:((M=C.information)==null?void 0:M.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Cl(C,t)}}})}}):(g=s==null?void 0:s.operations)==null?void 0:g.map(x=>{var N;const k=Ug(x,s),C=x.name??x.path;return e[k]=C,{id:k,title:C,httpVerb:x.httpVerb,deprecated:((N=x.information)==null?void 0:N.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Cl(x,t)}}}),c=Th(Je.value)&&!U1.value?[{id:Hg(),title:"Models",show:!r.showApiClient,children:Object.keys(Jt(Je.value)??{}).map(x=>{var C;const k=Hg(x);return e[k]=x,{id:k,title:((C=Jt(Je.value))==null?void 0:C[x]).title??x,show:!r.showApiClient}})}]:[],d=(v=Je.value)!=null&&v["x-tagGroups"]?(w=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:w.map(x=>{const k=[];return x.tags.map(N=>{if(N==="models"&&c.length>0)k.push(c[0]);else{const P=l==null?void 0:l.find(M=>M.title===N);P&&k.push(P)}}),{id:x.name,title:x.name,children:k,show:!0,isGroup:!0}}):void 0,u=Lv(Je.value)?[{id:kd(),title:"Webhook",show:!r.showApiClient,children:Object.keys(((S=Je.value)==null?void 0:S.webhooks)??{}).map(x=>{var C,N;const k=kd(x);return e[k]=x,Object.keys(((N=(C=Je.value)==null?void 0:C.webhooks)==null?void 0:N[x])??{}).map(P=>{var M,j,I;return{id:kd(x,P),title:(I=(j=(M=Je.value)==null?void 0:M.webhooks)==null?void 0:j[x][P])==null?void 0:I.name,httpVerb:P,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),W5=i.ref(!1),G5=i.computed(()=>{var r,e;return((e=(r=K1.value)==null?void 0:r.titles)==null?void 0:e[qu.value])??""});function tr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(qu.value){const n=z5(qu.value);n&&Sd(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&Sd(H1(n),!0)}}),i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Dl.value=await K5(e):Dl.value=[]})),{breadcrumb:G5,items:K1,isSidebarOpen:W5,collapsedSidebarItems:Ml,toggleCollapsedSidebarItem:U5,setCollapsedSidebarItem:Sd,hideModels:U1,setParsedSpec:H5}}const J5=i.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(to),{class:i.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),W1=K(J5,[["__scopeId","data-v-9e6d2bc7"]]),Y5=["id"],X5={key:0,class:"sidebar-heading-chevron"},Q5=["href"],Z5={class:"sidebar-heading-link-title"},eV={key:1,class:"sidebar-heading-link-method"},tV={key:1,class:"action-menu"},rV=i.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:a}=lt(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await wr(100),s.value=!0)},c=()=>{if(a.value)return a.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(a.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=a.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),_i(t.item.id),await wr(100),s.value=!0}};return(u,h)=>{var f,p;return i.openBlock(),i.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(i.openBlock(),i.createElementBlock("p",X5,[i.createVNode(i.unref(Mi),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:i.withModifiers(l,["stop"])},null,8,["icon"]),i.createTextVNode(" ")])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):i.createCommentVNode("",!0),i.createElementVNode("p",Z5,i.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(i.openBlock(),i.createElementBlock("p",eV,[i.createTextVNode(" "),i.createVNode(W1,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):i.createCommentVNode("",!0)],8,Q5)],2),u.open?i.renderSlot(u.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),u.$slots["action-menu"]?(i.openBlock(),i.createElementBlock("div",tV,[i.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):i.createCommentVNode("",!0)],8,Y5)}}}),Va=K(rV,[["__scopeId","data-v-4ed1078c"]]),nV=i.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:i.normalizeStyle({"--scalar-sidebar-level":e.level})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),xd=K(nV,[["__scopeId","data-v-39c84840"]]),oV={class:"sidebar"},sV={class:"sidebar-group-title"},iV=-160,aV=i.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=lt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:a}=tr({parsedSpec:e.parsedSpec}),l=i.ref(null),c=i.ref(!0);i.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,m,y,g;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=iV;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((g=(y=h.parentElement)==null?void 0:y.parentElement)==null?void 0:g.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return i.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(i.openBlock(),i.createElementBlock("div",oV,[i.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),i.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[i.createVNode(xd,{level:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o).entries,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.id},[f.isGroup?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("li",sV,i.toDisplayString(f.displayTitle??f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,p=>(i.openBlock(),i.createBlock(Va,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:i.unref(t)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:i.unref(a)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(p.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(i.openBlock(),i.createBlock(xd,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.children,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${y.id}`,isActive:i.unref(t)===y.id,item:{id:y.id,title:y.displayTitle??y.title,select:y.select,httpVerb:y.httpVerb,deprecated:y.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:i.unref(t)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:i.unref(a)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(f.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(i.openBlock(),i.createBlock(xd,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${m.id}`,isActive:i.unref(t)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):i.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),i.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),Wf=K(aV,[["__scopeId","data-v-e68ba74a"]]),lV={key:0,class:"api-client-drawer"},cV={class:"api-client-container"},dV={class:"scalar-api-client-height"},uV={class:"scalar-api-client-states"},hV={class:"t-doc__sidebar"},fV=i.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(r){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-4p6mV9sm.cjs")).then(a=>a.ApiClient)),{hideApiClient:t,state:n}=Rl(),o=Xe.useMediaQuery("(max-width: 1000px)"),s=i.ref(!1);return(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(n).showApiClient||a.overloadShow?(i.openBlock(),i.createElementBlock("div",lV,[i.createElementVNode("div",cV,[i.renderSlot(a.$slots,"header",{},void 0,!0),i.createElementVNode("div",dV,[i.createVNode(i.unref(e),{proxyUrl:a.proxyUrl,showSideBar:s.value,theme:a.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:i.unref(t),onToggleSidebar:l[2]||(l[2]=c=>s.value=!s.value)},{"address-bar-controls":i.withCtx(()=>[i.createElementVNode("div",uV,[i.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[i.createVNode(i.unref(Me),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),i.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:l[1]||(l[1]=(...c)=>i.unref(t)&&i.unref(t)(...c))},[i.createVNode(i.unref(Me),{icon:"Close",size:"sm"})])])]),sidebar:i.withCtx(()=>[i.createElementVNode("div",hV,[i.withDirectives(i.createVNode(i.unref(Wf),{parsedSpec:a.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(a.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[i.vShow,!i.unref(o)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):i.createCommentVNode("",!0),i.unref(n).showApiClient?(i.openBlock(),i.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:l[3]||(l[3]=(...c)=>i.unref(t)&&i.unref(t)(...c))})):i.createCommentVNode("",!0)],64))}}),G1=K(fV,[["__scopeId","data-v-206ad1a1"]]),J1=()=>({targetKey:"shell",clientKey:"curl"}),Xo=i.reactive(J1());function pV(){Bh(Xo,J1())}function Y1(r){var t;const{availableTargets:e}=Ji();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function X1(r){var t,n;const{availableTargets:e}=Ji();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const mV=r=>{Object.assign(Xo,{...Xo,...r})},gV=i.computed(()=>Y1(Xo)),yV=i.computed(()=>X1(Xo)),Mc=()=>({httpClient:i.readonly(Xo),resetState:pV,setHttpClient:mV,httpTargetTitle:gV,httpClientTitle:yV,getClientTitle:X1,getTargetTitle:Y1}),vV={key:0},bV={class:"authentication-header"},wV={class:"selector"},kV={key:0,class:"authentication-content"},SV=i.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=ts(),o=i.computed(()=>{var a,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(a=e.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return i.watch(()=>{var s,a;return(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes},()=>{var s,a;n({securitySchemes:(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes})},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const s=i.useSSRContext();await wr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,a)=>{var l,c,d,u,h;return i.unref(Rv)(s.parsedSpec)?(i.openBlock(),i.createElementBlock("div",vV,[i.createElementVNode("div",bV,[i.createElementVNode("div",wV,[i.createVNode(i.unref(Dv),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]),o.value?(i.openBlock(),i.createElementBlock("div",kV,[i.unref(t).preferredSecurityScheme?(i.openBlock(),i.createBlock(i.unref(Mv),{key:0,value:(h=(u=(d=s.parsedSpec)==null?void 0:d.components)==null?void 0:u.securitySchemes)==null?void 0:h[i.unref(t).preferredSecurityScheme]},null,8,["value"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),xV=K(SV,[["__scopeId","data-v-3bb0413b"]]),CV=["innerHTML"],EV=i.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=i.ref(""),n=e.withImages?[]:["img","picture"],o={...sa.defaultSchema,tagNames:[...(sa.defaultSchema.tagNames||[]).filter(s=>!n.includes(s)),"abbr"],attributes:{...sa.defaultSchema.attributes,abbr:["title"]}};return i.watch(()=>e.value,async()=>{const s=await Jg.unified().use(Gg).use(jw).use(Fw,{allowDangerousHtml:!0}).use(Rw).use(sa,o).use(Vw,{detect:!0}).use(Mw,{target:"_blank"}).use(Dw).use(Lw).process(e.value);t.value=String(s.value)},{immediate:!0}),i.onServerPrefetch(async()=>await wr(1)),(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,CV))}}),$t=K(EV,[["__scopeId","data-v-ae2b5170"]]),$V=["title","innerHTML"],_V=i.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=bs(),n=i.computed(()=>{var l;const a=(((l=e.value)==null?void 0:l.url)??"").replace(/(<([^>]+)>)/gi,"");return Oh(a,c=>{var u;const d=(u=e.variables)==null?void 0:u.find(h=>h.name===c);return`<span class="base-url-variable">${((d==null?void 0:d.value)??"")!==""?d==null?void 0:d.value:`{${c}}`}</span>`})}),o=i.computed(()=>n.value.replace(/(<([^>]+)>)/gi,""));return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("a",{key:0,class:"base-url",title:s.value.description,onClick:a[0]||(a[0]=l=>i.unref(t)(o.value)),innerHTML:n.value},null,8,$V)):i.createCommentVNode("",!0)}}),NV=K(_V,[["__scopeId","data-v-0eae9170"]]),AV={key:0},OV=["for"],TV=["id","value","onInput"],BV=["value"],PV={class:"input-value"},IV=["id","value","onInput"],MV=i.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=os(),n=(s,a)=>{const l=a.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const a=e.variables.findIndex(l=>l.name===s);return e.variables[a].value??""};return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("div",AV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l.name,class:"input"},[i.createElementVNode("label",{for:`variable-${l.name}`},[i.createElementVNode("code",null,i.toDisplayString(l.name),1)],8,OV),l.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.enum,c=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(c),9,BV))),128))],40,TV),i.createElementVNode("div",PV,i.toDisplayString(l.default),1)],64)):(i.openBlock(),i.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,IV))]))),128))])):i.createCommentVNode("",!0)}}),DV=K(MV,[["__scopeId","data-v-a812e319"]]),VV=r=>(i.pushScopeId("data-v-899af270"),r=r(),i.popScopeId(),r),RV={key:0},LV=VV(()=>i.createElementVNode("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),jV={class:"scalar-card-serverlist"},FV={class:"scalar-card-serverlist-container"},qV={class:"server-item"},zV={class:"server-selector"},HV=["value"],UV=["value"],KV={key:0,muted:""},WV={class:"description"},GV=i.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=os(),n=i.ref(0);return i.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];hv((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{immediate:!0,deep:!0}),(o,s)=>i.unref(e).servers.length>0?(i.openBlock(),i.createElementBlock("div",RV,[LV,i.createElementVNode("div",jV,[i.createElementVNode("div",FV,[i.createElementVNode("div",qV,[i.createElementVNode("div",zV,[i.unref(e).servers.length>1?(i.openBlock(),i.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=a=>n.value=parseInt(a.target.value,10))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).servers,(a,l)=>(i.openBlock(),i.createElementBlock("option",{key:l,value:l},i.toDisplayString(a.url),9,UV))),128))],40,HV)):i.createCommentVNode("",!0),i.createVNode(NV,{value:i.unref(e).servers[n.value],variables:i.unref(e).variables},null,8,["value","variables"]),i.unref(e).servers.length>1?(i.openBlock(),i.createBlock(i.unref(Me),{key:1,icon:"ChevronDown"})):i.createCommentVNode("",!0)])]),i.createVNode(DV,{value:i.unref(e).variables},null,8,["value"])])]),i.unref(e).description?(i.openBlock(),i.createElementBlock("div",KV,[i.createElementVNode("div",WV,[i.createVNode(i.unref($t),{value:i.unref(e).description},null,8,["value"])])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),JV=K(GV,[["__scopeId","data-v-899af270"]]),Q1=r=>(i.pushScopeId("data-v-33a6f59a"),r=r(),i.popScopeId(),r),YV=["onClick"],XV=["value"],QV=["label"],ZV=["value"],eR={class:"client-libraries-icon__more"},tR={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},rR=Q1(()=>i.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[i.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),nR=[rR],oR=Q1(()=>i.createElementVNode("span",null,"More",-1)),sR=i.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,getClientTitle:n,getTargetTitle:o}=Mc(),{availableTargets:s}=Ji(),a=i.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(h=>s.value.find(f=>f.key===h.targetKey&&f.clients.find(p=>p.key===h.clientKey))),c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"client-libraries-content"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),p=>(i.openBlock(),i.createElementBlock("div",{key:p.clientKey,class:i.normalizeClass(["client-libraries rendered-code-sdks",{"client-libraries__active":d(p)}]),onClick:()=>i.unref(t)(p)},[i.createElementVNode("div",{class:i.normalizeClass(`client-libraries-icon__${p.targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(p.targetKey)},null,8,["icon"])],2),i.createElementVNode("span",null,i.toDisplayString(i.unref(o)(p)),1)],10,YV))),128)),i.createElementVNode("div",{class:i.normalizeClass(["client-libraries client-libraries__select",{"client-libraries__active":i.unref(e)&&!u(i.unref(e))}])},[i.createElementVNode("select",{class:"language-select",value:JSON.stringify(i.unref(e)),onInput:f[0]||(f[0]=p=>i.unref(t)(JSON.parse(p.target.value)))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),p=>(i.openBlock(),i.createElementBlock("optgroup",{key:p.key,label:p.title},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.clients,m=>(i.openBlock(),i.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},i.toDisplayString(i.unref(n)({targetKey:p.key,clientKey:m.key})),9,ZV))),128))],8,QV))),128))],40,XV),i.createElementVNode("div",eR,[i.unref(e)&&!u(i.unref(e))?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`client-libraries-icon__${i.unref(e).targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(i.unref(e).targetKey)},null,8,["icon"])],2)):(i.openBlock(),i.createElementBlock("svg",tR,nR))]),oR],2)],512))}}),iR=K(sR,[["__scopeId","data-v-33a6f59a"]]),aR=r=>(i.pushScopeId("data-v-a067531c"),r=r(),i.popScopeId(),r),lR=aR(()=>i.createElementVNode("div",{class:"client-libraries-heading"},"Client Libraries",-1)),cR={class:"selected-client card-footer",muted:""},dR=i.defineComponent({__name:"ClientLibraries",setup(r){const{httpTargetTitle:e,httpClientTitle:t}=Mc();return(n,o)=>(i.openBlock(),i.createElementBlock("div",null,[lR,i.createElementVNode("div",null,[i.createVNode(iR)]),i.createElementVNode("div",cR,i.toDisplayString(i.unref(t))+" "+i.toDisplayString(i.unref(e)),1)]))}}),uR=K(dR,[["__scopeId","data-v-a067531c"]]),hR={},fR={class:"badge"};function pR(r,e){return i.openBlock(),i.createElementBlock("div",fR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Ni=K(hR,[["render",pR],["__scopeId","data-v-190574ac"]]),Gf=i.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},a=l=>l.offsetHeight<window.innerHeight?.8:.5;return i.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:a(o.value)};Xe.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),mR=i.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=lt(),{setCollapsedSidebarItem:a}=tr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&a(t(e.id),!0)}return(c,d)=>(i.openBlock(),i.createBlock(Gf,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),ws=K(mR,[["__scopeId","data-v-0494f9f3"]]),gR={class:"section-accordion-button-content"},yR={key:0,class:"section-accordion-button-actions"},vR={key:0,class:"section-accordion-description"},bR={class:"section-accordion-content-card"},wR=i.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=i.ref(),t=Xe.useElementHover(e);return(n,o)=>(i.openBlock(),i.createBlock(Gf,{id:n.id,class:"section-wrapper"},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.Disclosure),{as:"section",class:i.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:i.withCtx(({open:s})=>[i.createVNode(i.unref(Le.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:i.withCtx(()=>[i.createElementVNode("div",gR,[i.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(i.openBlock(),i.createElementBlock("div",yR,[i.renderSlot(n.$slots,"actions",{active:i.unref(t)||s},void 0,!0)])):i.createCommentVNode("",!0),i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[n.$slots.description?(i.openBlock(),i.createElementBlock("div",vR,[i.renderSlot(n.$slots,"description",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",bR,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),Z1=K(wR,[["__scopeId","data-v-07cabcb0"]]),kR={},SR={class:"section-column"};function xR(r,e){return i.openBlock(),i.createElementBlock("div",SR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Qo=K(kR,[["render",xR],["__scopeId","data-v-d64e7382"]]),CR={},ER={class:"section-columns"};function $R(r,e){return i.openBlock(),i.createElementBlock("div",ER,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Jf=K(CR,[["render",$R],["__scopeId","data-v-8b9602bf"]]),_R={},NR={class:"section-container"};function AR(r,e){return i.openBlock(),i.createElementBlock("div",NR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Yi=K(_R,[["render",AR],["__scopeId","data-v-34b26958"]]),OR={class:"section-accordion-wrapper"},TR={class:"section-accordion-title"},BR=i.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",OR,[i.createVNode(i.unref(Le.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:i.withCtx(({open:n})=>[i.createVNode(i.unref(Le.DisclosureButton),{class:"section-accordion-button"},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),i.createElementVNode("div",TR,[i.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),ew=K(BR,[["__scopeId","data-v-2049975e"]]),PR=i.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([...Array(e.lines).keys()],n=>(i.openBlock(),i.createElementBlock("div",{key:n,class:i.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),tw=K(PR,[["__scopeId","data-v-c90b2c46"]]),IR={class:"section-content"},MR=i.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",IR,[e.loading?(i.openBlock(),i.createBlock(tw,{key:1,lines:8})):i.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),ks=K(MR,[["__scopeId","data-v-9735459e"]]),DR=i.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(i.openBlock(),i.createBlock(tw,{key:0})):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(`h${e.level}`),{key:1,class:i.normalizeClass(["section-header",{tight:e.tight}])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),vn=K(DR,[["__scopeId","data-v-3bd1b9f0"]]),VR={key:0,class:"introduction-description"},RR=i.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Ku(e.value)}`,o=Xe.computedAsync(async()=>{if(!e.value)return[];const u=await ki(e.value),h=ec(u);return await Promise.all(R1(e.value,h).map(async f=>({heading:(await ki(f))[0],content:f})))},Zo[n]??[]),{getHeadingId:s,hash:a,isIntersectionEnabled:l,pathRouting:c}=lt();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,a.value=u,window.history.replaceState({},"",h)}return i.onServerPrefetch(async()=>{const u=i.useSSRContext();await wr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(i.openBlock(),i.createElementBlock("div",VR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(f,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:p},[f.heading?(i.openBlock(),i.createBlock(Gf,{key:0,id:i.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(i.unref(s)(f.heading))},{default:i.withCtx(()=>[i.createVNode(i.unref($t),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(i.openBlock(),i.createBlock(i.unref($t),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):i.createCommentVNode("",!0)}}),LR=K(RR,[["__scopeId","data-v-5e475391"]]),jR={class:"download"},FR={class:"download-cta"},qR=i.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=i.inject(qf),n=()=>{zf.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",jR,[i.createElementVNode("div",FR,[(a=i.unref(t))!=null&&a()?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),zR=K(qR,[["__scopeId","data-v-810904a4"]]),HR={class:"badges"},UR={class:"sticky-cards"},KR=i.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new Ai,n=i.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=i.computed(()=>t.slug(e.info.title??""));return(s,a)=>(i.openBlock(),i.createBlock(i.unref(Yi),null,{default:i.withCtx(()=>[i.createVNode(i.unref(ws),{class:"introduction-section"},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),{loading:!s.info.description&&!s.info.title},{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createElementVNode("div",HR,[s.info.version?(i.openBlock(),i.createBlock(i.unref(Ni),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.version),1)]),_:1})):i.createCommentVNode("",!0),n.value?(i.openBlock(),i.createBlock(i.unref(Ni),{key:1},{default:i.withCtx(()=>[i.createTextVNode(" OAS "+i.toDisplayString(n.value),1)]),_:1})):i.createCommentVNode("",!0)]),i.createVNode(i.unref(vn),{level:1,loading:!s.info.title,tight:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),i.createVNode(zR,{specTitle:o.value},null,8,["specTitle"]),i.createVNode(LR,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(i.openBlock(),i.createBlock(i.unref(Qo),{key:0},{default:i.withCtx(()=>[i.createElementVNode("div",UR,[i.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):i.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),i.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),WR=K(KR,[["__scopeId","data-v-30c2e131"]]),GR=Symbol(),zu=Xe.useEventBus(GR),Vl=i.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>i.nextTick(o),e.lazyTimeout??300))},n=i.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&i.nextTick(()=>zu.emit({id:e.id}))}):e.id&&i.nextTick(()=>zu.emit({id:e.id})),(o,s)=>n.value?i.renderSlot(o.$slots,"default",{key:0}):i.createCommentVNode("",!0)}}),JR={key:0,class:"screenreader-only"},YR=i.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(i.openBlock(),i.createElementBlock("span",JR,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),rw=K(YR,[["__scopeId","data-v-681ebf2c"]]),XR=r=>(i.pushScopeId("data-v-d9801d4e"),r=r(),i.popScopeId(),r),QR={class:"label"},ZR={class:"anchor"},e3=XR(()=>i.createElementVNode("span",null,"",-1)),t3=i.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=bs(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(i.openBlock(),i.createElementBlock("span",QR,[i.renderSlot(n.$slots,"default",{},void 0,!0),i.createElementVNode("span",ZR,[e3,i.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=i.withModifiers(s=>i.unref(e)(t(n.id)),["stop"]))},[i.createTextVNode(" # "),i.createVNode(rw,null,{default:i.withCtx(()=>[i.createTextVNode('Copy link to "'),i.renderSlot(n.$slots,"default",{},void 0,!0),i.createTextVNode('"')]),_:3})])])]))}}),bn=K(t3,[["__scopeId","data-v-d9801d4e"]]),r3={},n3={class:"scalar-card"};function o3(r,e){return i.openBlock(),i.createElementBlock("div",n3,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xi=K(r3,[["render",o3],["__scopeId","data-v-dcabb131"]]),s3=i.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),so=K(s3,[["__scopeId","data-v-5312c2e0"]]),i3={class:"scalar-card-header-slots"},a3={class:"scalar-card-header-slot scalar-card-header-title"},l3={class:"scalar-card-header-slot scalar-card-header-actions"},c3=i.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(so,i.mergeProps(e,{class:"scalar-card-header"}),{default:i.withCtx(()=>[i.createElementVNode("div",i3,[i.createElementVNode("div",a3,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",l3,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Qi=K(c3,[["__scopeId","data-v-bbd0c20a"]]),d3=i.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(so,i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Dc=K(d3,[["__scopeId","data-v-918ab8d6"]]),u3=i.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(i.openBlock(),i.createBlock(Qi,{class:"scalar-card-header-tabs"},{actions:i.withCtx(()=>[i.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabGroup),{onChange:n},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabList),{class:"tab-list custom-scroll"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),nw=K(u3,[["__scopeId","data-v-6a91b57c"]]),h3=i.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(Le.Tab),{as:"template"},{default:i.withCtx(({selected:n})=>[i.createElementVNode("button",{class:i.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),ow=K(h3,[["__scopeId","data-v-f373ecc2"]]),f3=["value"],p3=["label"],m3=["value"],g3=["value"],Yf=i.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,n=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:n.value},[n.options?(i.openBlock(),i.createElementBlock("optgroup",{key:0,label:n.label},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.label),9,m3))),128))],8,p3)):(i.openBlock(),i.createElementBlock("option",{key:n.value,value:n.value},i.toDisplayString(n.label),9,g3))],64))),128))],40,f3)],2))}}),y3={class:"request-header"},v3=i.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=i.ref(0),n=i.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=i.computed(()=>e.examples[t.value]);i.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=bs();return(a,l)=>(i.openBlock(),i.createBlock(i.unref(Xi),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Yf,{class:"request-client-picker",modelValue:t.value,options:a.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>i.unref(s)(o.value.source.trim()))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",y3,[i.createVNode(i.unref(to),{class:"request-method",method:a.operation.httpVerb},null,8,["method"]),i.renderSlot(a.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(so),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createVNode(i.unref(_r),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),a.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"scalar-card-footer",contrast:""},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),b3=K(v3,[["__scopeId","data-v-18ba624d"]]),w3={class:"schema-type"},k3=["title"],S3=i.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,a,l,c;return i.openBlock(),i.createElementBlock("span",w3,[i.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" {} ")],64)):i.createCommentVNode("",!0),e.value.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" [] ")],64)):i.createCommentVNode("",!0),e.value.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" enum ")],64)):i.createCommentVNode("",!0)],8,k3),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((a=(s=e.value)==null?void 0:s.xml)==null?void 0:a.name)!=="##default"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" <"+i.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.name),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(e.value.type),1)],64))])}}}),sw=K(S3,[["__scopeId","data-v-6c5c3c96"]]),x3={key:0,class:"property-detail-prefix"},C3={key:1,class:"property-detail-value"},E3={key:2,class:"property-detail-value"},$3=i.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(i.openBlock(),i.createElementBlock("div",x3,[i.renderSlot(e.$slots,"prefix",{},void 0,!0),i.createTextVNode(" ")])):i.createCommentVNode("",!0),e.code?(i.openBlock(),i.createElementBlock("code",C3,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("span",E3,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),Bt=K($3,[["__scopeId","data-v-16d94ef5"]]),_3={class:"property-heading"},N3={key:0,class:"property-name"},A3={key:1,class:"property-additional"},O3={key:2,class:"property-deprecated"},T3={key:3,class:"property-required"},B3={key:4,class:"property-const"},P3={key:5,class:"property-details"},I3={key:6,class:"property-write-only"},M3={key:7,class:"property-read-only"},D3=i.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,a,l,c,d,u;return i.openBlock(),i.createElementBlock("div",_3,[t.$slots.name?(i.openBlock(),i.createElementBlock("div",N3,[i.renderSlot(t.$slots,"name",{},void 0,!0)])):i.createCommentVNode("",!0),t.additional?(i.openBlock(),i.createElementBlock("div",A3,[(o=t.value)!=null&&o["x-additionalPropertiesName"]?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value["x-additionalPropertiesName"]),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" additional properties ")],64))])):i.createCommentVNode("",!0),(s=t.value)!=null&&s.deprecated?(i.openBlock(),i.createElementBlock("div",O3,[i.createVNode(i.unref(Ni),null,{default:i.withCtx(()=>[i.createTextVNode("deprecated")]),_:1})])):i.createCommentVNode("",!0),t.required?(i.openBlock(),i.createElementBlock("div",T3," required ")):i.createCommentVNode("",!0),(a=t.value)!=null&&a.const||(l=t.value)!=null&&l.enum&&t.value.enum.length===1?(i.openBlock(),i.createElementBlock("div",B3,[i.createVNode(Bt,{truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("const:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.const??t.value.enum[0]),1)]),_:1})])):(c=t.value)!=null&&c.type?(i.openBlock(),i.createElementBlock("div",P3,[t.additional?(i.openBlock(),i.createBlock(Bt,{key:0},{prefix:i.withCtx(()=>[i.createTextVNode("key:")]),default:i.withCtx(()=>[i.createTextVNode(" string ")]),_:1})):i.createCommentVNode("",!0),i.createVNode(Bt,null,i.createSlots({default:i.withCtx(()=>{var h,f,p;return[(f=(h=t.value)==null?void 0:h.items)!=null&&f.type?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value.type)+" "+i.toDisplayString(t.value.items.type)+"[] ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+i.toDisplayString((p=t.value)!=null&&p.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(t.value.minItems)+"…"+i.toDisplayString(t.value.maxItems),1)],64)):i.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:i.withCtx(()=>[i.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(i.openBlock(),i.createBlock(Bt,{key:1},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.maxLength?(i.openBlock(),i.createBlock(Bt,{key:2},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maxLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.uniqueItems?(i.openBlock(),i.createBlock(Bt,{key:3},{default:i.withCtx(()=>[i.createTextVNode(" unique! ")]),_:1})):i.createCommentVNode("",!0),t.value.format?(i.openBlock(),i.createBlock(Bt,{key:4},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.format),1)]),_:1})):i.createCommentVNode("",!0),t.value.minimum?(i.openBlock(),i.createBlock(Bt,{key:5},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minimum),1)]),_:1})):i.createCommentVNode("",!0),t.value.maximum?(i.openBlock(),i.createBlock(Bt,{key:6},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maximum),1)]),_:1})):i.createCommentVNode("",!0),t.value.pattern?(i.openBlock(),i.createBlock(Bt,{key:7,code:"",truncate:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.pattern),1)]),_:1})):i.createCommentVNode("",!0),t.$props.enum?(i.openBlock(),i.createBlock(Bt,{key:8},{default:i.withCtx(()=>[i.createTextVNode("enum")]),_:1})):i.createCommentVNode("",!0),t.value.default?(i.openBlock(),i.createBlock(Bt,{key:9,truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("default:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.default),1)]),_:1})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(d=t.value)!=null&&d.writeOnly?(i.openBlock(),i.createElementBlock("div",I3," write-only ")):(u=t.value)!=null&&u.readOnly?(i.openBlock(),i.createElementBlock("div",M3," read-only ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filter(h=>{var f,p,m;return((f=t.value)==null?void 0:f[h])||((m=(p=t.value)==null?void 0:p.items)==null?void 0:m[h])}),h=>(i.openBlock(),i.createBlock(i.unref(Ni),{key:h},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h),1)]),_:2},1024))),128))])}}}),V3=K(D3,[["__scopeId","data-v-c1c21610"]]),R3=r=>(i.pushScopeId("data-v-bd31a06f"),r=r(),i.popScopeId(),r),L3={key:0,class:"property-description"},j3={key:1,class:"property-description"},F3={key:2,class:"property-example custom-scroll"},q3=R3(()=>i.createElementVNode("span",{class:"property-example-label"},"Example",-1)),z3={class:"property-example-value"},H3={key:3,class:"property-enum"},U3={class:"property-enum-values"},K3={key:4,class:"children"},W3={key:0,class:"children"},G3={key:0,class:"property-rule"},J3={key:1,class:"property-rule"},Y3=i.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(a,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:a||(l==null?void 0:l.description)||null},n=function(a){return!a||!e[a.type]?null:e[a.type][a.format||"_default"]},o=function(a){var l;return(a==null?void 0:a.enum)||((l=a==null?void 0:a.items)==null?void 0:l.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(a,l)=>{var c,d,u,h,f,p,m,y,g,v;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["property",[`property--level-${a.level}`,{"property--compact":a.compact,"property--deprecated":(c=a.value)==null?void 0:c.deprecated}]])},[i.createVNode(V3,{additional:a.additional,enum:o(a.value).length>1,required:a.required,value:a.value},i.createSlots({_:2},[a.name?{name:"name",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(a.description,a.value)?(i.openBlock(),i.createElementBlock("div",L3,[i.createVNode(i.unref($t),{value:t(a.description,a.value)},null,8,["value"])])):n(a.value)?(i.openBlock(),i.createElementBlock("div",j3,[i.createVNode(i.unref($t),{value:n(a.value)||""},null,8,["value"])])):i.createCommentVNode("",!0),(d=a.value)!=null&&d.example||(h=(u=a.value)==null?void 0:u.items)!=null&&h.example?(i.openBlock(),i.createElementBlock("div",F3,[q3,i.createElementVNode("code",z3,i.toDisplayString(a.value.example||((f=a.value)==null?void 0:f.items.example)),1)])):i.createCommentVNode("",!0),((p=o(a.value))==null?void 0:p.length)>1?(i.openBlock(),i.createElementBlock("div",H3,[i.createElementVNode("ul",U3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),b=>(i.openBlock(),i.createElementBlock("li",{key:b,class:"property-enum-value"},i.toDisplayString(b),1))),128))])])):i.createCommentVNode("",!0),((m=a.value)==null?void 0:m.type)==="object"&&((y=a.value)!=null&&y.properties||(g=a.value)!=null&&g.additionalProperties)?(i.openBlock(),i.createElementBlock("div",K3,[i.createVNode(Fn,{compact:a.compact,level:a.level+1,value:a.value},null,8,["compact","level","value"])])):i.createCommentVNode("",!0),(v=a.value)!=null&&v.items?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[["object"].includes(a.value.items.type)?(i.openBlock(),i.createElementBlock("div",W3,[i.createVNode(Fn,{compact:a.compact,level:a.level+1,value:a.value.items},null,8,["compact","level","value"])])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,b=>{var w,S,x;return i.openBlock(),i.createElementBlock(i.Fragment,{key:b},[(w=a.value)!=null&&w[b]?(i.openBlock(),i.createElementBlock("div",G3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value[b],(k,C)=>(i.openBlock(),i.createBlock(Fn,{key:C,compact:a.compact,level:a.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0),(x=(S=a.value)==null?void 0:S.items)!=null&&x[b]&&a.level<3?(i.openBlock(),i.createElementBlock("div",J3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value.items[b],(k,C)=>(i.openBlock(),i.createBlock(Fn,{key:C,compact:a.compact,level:a.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0)],64)}),64))],2)}}}),jn=K(Y3,[["__scopeId","data-v-bd31a06f"]]),X3=r=>(i.pushScopeId("data-v-7f5d0941"),r=r(),i.popScopeId(),r),Q3={key:0,class:"schema-card-description"},Z3=X3(()=>i.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),eL=[Z3],tL=i.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=i.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(i.openBlock(),i.createBlock(i.unref(Le.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:i.withCtx(({open:a})=>{var l;return[i.createElementVNode("div",{class:i.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":a}]])},[(l=o.value)!=null&&l.description?(i.openBlock(),i.createElementBlock("div",Q3,[i.createVNode(i.unref($t),{value:o.value.description},null,8,["value"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["schema-properties",{"schema-properties-open":a}])},[i.withDirectives(i.createVNode(i.unref(Le.DisclosureButton),{as:o.noncollapsible?"div":"button",class:i.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:i.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:i.withCtx(()=>{var c,d,u;return[o.compact?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},eL,2)):i.createCommentVNode("",!0),a?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Hide "+i.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" Show "+i.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.value?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),icon:"ChevronRight",size:"md"},null,8,["class"])):i.createCommentVNode("",!0),i.createVNode(sw,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[i.vShow,!(o.noncollapsible&&o.compact)]]),i.createVNode(i.unref(Le.DisclosurePanel),{static:o.noncollapsible},{default:i.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.value.properties?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return i.openBlock(),i.createBlock(jn,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):i.createCommentVNode("",!0),o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(i.openBlock(),i.createBlock(jn,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(i.openBlock(),i.createBlock(jn,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createBlock(jn,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):i.createCommentVNode("",!0)}}),Fn=K(tL,[["__scopeId","data-v-7f5d0941"]]),rL={class:"parameter-item"},nL={class:"parameter-item-container"},oL=i.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("li",rL,[i.createElementVNode("div",nL,[i.createVNode(i.unref(jn),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),sL=K(oL,[["__scopeId","data-v-f70ee55c"]]),iL={key:0,class:"parameters"},aL={class:"parameters-title"},lL={class:"parameter-list"},cL=i.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(i.openBlock(),i.createElementBlock("div",iL,[i.createElementVNode("div",aL,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("ul",lL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.parameters,o=>(i.openBlock(),i.createBlock(sL,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):i.createCommentVNode("",!0)}}}),Kt=K(cL,[["__scopeId","data-v-45fca787"]]),dL={key:0},uL={class:"request-body-title"},hL=["value"],fL={key:0,class:"request-body-description"},pL={key:0,class:"request-body-schema"},mL=i.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=i.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=i.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,a)=>{var l,c,d,u;return e!=null&&e.requestBody?(i.openBlock(),i.createElementBlock("div",dL,[i.createElementVNode("div",uL,[i.renderSlot(s.$slots,"title",{},void 0,!0),i.createElementVNode("div",{class:i.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[i.createElementVNode("span",null,i.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=h=>n.value=h)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:f},i.toDisplayString(f),9,hL))),128))],512)),[[i.vModelSelect,n.value]]):i.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(i.openBlock(),i.createElementBlock("div",fL,[i.createVNode(i.unref($t),{value:e.requestBody.description},null,8,["value"])])):i.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(i.openBlock(),i.createElementBlock("div",pL,[i.createVNode(i.unref(Fn),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),Xf=K(mL,[["__scopeId","data-v-e095eb63"]]),gL={class:"endpoint-details"},yL={class:"endpoint-description"},vL=i.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Uf(e),{responses:n}=Kf(e.operation);return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock("div",gL,[i.createElementVNode("div",yL,[i.createVNode(i.unref($t),{value:o.operation.description,withImages:""},null,8,["value"])]),i.createVNode(Kt,{parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).body,showChildren:""},{title:i.withCtx(()=>[i.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).formData},{title:i.withCtx(()=>[i.createTextVNode("Form Data")]),_:1},8,["parameters"]),(a=o.operation.information)!=null&&a.requestBody?(i.openBlock(),i.createBlock(Xf,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"])):i.createCommentVNode("",!0),i.createVNode(Kt,{parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),bL={key:0},wL=i.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=i.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[t(a)?(i.openBlock(),i.createElementBlock("em",bL,i.toDisplayString(a),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a),1)],64))],64))),128))],2))}}),Hu=K(wL,[["__scopeId","data-v-a4eadd9b"]]);function Zi(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function kL(r){return/\s|-/.test(r)}function kr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,a]of Object.entries(r)){let l=kL(s)?`'${s}'`:s;if(Array.isArray(a)){const c=a.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?kr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(a&&typeof a=="object")t.push(`${o}${l}: ${kr(a,e+2)}`);else if(typeof a=="string"){let c=`${a}`;if(a.startsWith("JSON.stringify")){const d=a.split(`
|
|
215
|
+
`,s),o===void 0?(t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file."),e(Ia(Hn()))):e(Ia(o))}catch(o){t(o)}return e(Ia(Hn()))}),Ia=r=>{let e={};r&&typeof r=="object"?e=structuredClone(r):e=Hn(),e.tags||(e.tags=[]),e.paths||(e.paths={});const t={};return Object.keys(e.webhooks??{}).forEach(o=>{var s;Object.keys(((s=e.webhooks)==null?void 0:s[o])??{}).forEach(a=>{var c,d,u;const l=(c=e.webhooks)==null?void 0:c[o][a];(l==null?void 0:l["x-internal"])!==!0&&(t[o]===void 0&&(t[o]={}),t[o][a]={httpVerb:a,path:o,operationId:(l==null?void 0:l.operationId)||o,name:(l==null?void 0:l.summary)||o||"",description:(l==null?void 0:l.description)||"",pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters,information:{...l}})})}),Object.keys(e.paths).forEach(o=>{Object.keys(e.paths[o]).filter(a=>nh.includes(a.toUpperCase())).forEach(a=>{var d,u,h,f,p,m;const l=e.paths[o][a];if(l===void 0||l["x-internal"]===!0)return;const c={httpVerb:a,path:o,operationId:l.operationId||o,name:l.summary||o||"",description:l.description||"",information:{...l},pathParameters:(u=(d=e.paths)==null?void 0:d[o])==null?void 0:u.parameters};if(!l.tags||l.tags.length===0){(h=e.tags)!=null&&h.find(g=>g.name==="default")||(f=e.tags)==null||f.push({name:"default",description:"",operations:[]});const y=(p=e.tags)==null?void 0:p.findIndex(g=>g.name==="default");y>=0&&((m=e.tags[y])==null||m.operations.push(c))}else l.tags.forEach(y=>{var b,w,S;const g=(b=e.tags)==null?void 0:b.findIndex(x=>x.name===y);g===-1&&((w=e.tags)==null||w.push({name:y,description:""}));const v=g!==-1?g:e.tags.length-1;typeof((S=e.tags[v])==null?void 0:S.operations)>"u"&&(e.tags[v].operations=[]),e.tags[v].operations.push(c)})})}),{...e,webhooks:t}},Ic=Symbol(),qf=Symbol(),_i=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},wr=r=>new Promise(e=>setTimeout(e,r)),xD=Symbol("downloadSpec"),zf=Xe.useEventBus(xD);function V1(r,e){const t=u0(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",a="spec"+s,l=e?e+s:a,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function R1(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}var CD=Object.defineProperty,ED=(r,e,t)=>e in r?CD(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ct=(r,e,t)=>(ED(r,typeof e!="symbol"?e+"":e,t),t);function $D(r){if(!r||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}$D("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let ju=1;class _D{constructor(){ct(this,"subscribers"),ct(this,"toasts"),ct(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),ct(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),ct(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),ct(this,"create",e=>{var t;const{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ju++,a=this.toasts.findIndex(c=>c.id===s),l=e.dismissible===void 0?!0:e.dismissible;return a!==-1?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...e,id:s,title:n}),{...c,...e,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...o,dismissible:l,id:s}),s}),ct(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),ct(this,"message",(e,t)=>this.create({...t,message:e})),ct(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),ct(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),ct(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),ct(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),ct(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),ct(this,"promise",(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));const o=e instanceof Promise?e:e();let s=n!==void 0;return o.then(a=>{if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(a):t.success;this.create({id:n,type:"success",message:l})}}).catch(a=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(a):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{var a;s&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),n}),ct(this,"custom",(e,t)=>{const n=(t==null?void 0:t.id)||ju++;return this.publish({...t,id:n,title:e}),n}),this.subscribers=[],this.toasts=[]}}const Ut=new _D,ND=(r,e)=>{const t=(e==null?void 0:e.id)||ju++;return Ut.publish({title:r,...e,id:t}),t},AD=ND,Ma=Object.assign(AD,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading}),OD=["data-visible"],TD={className:"sonner-spinner"},BD=i.defineComponent({__name:"Loader",props:{visible:Boolean},setup(r){const e=Array(12).fill(0);return(t,n)=>(i.openBlock(),i.createElementBlock("div",{className:"sonner-loading-wrapper","data-visible":r.visible},[i.createElementVNode("div",TD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e),o=>(i.openBlock(),i.createElementBlock("div",{key:`spinner-bar-${o}`,className:"sonner-loading-bar"}))),128))])],8,OD))}}),Gi=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},PD={},ID={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},MD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),DD=[MD];function VD(r,e){return i.openBlock(),i.createElementBlock("svg",ID,DD)}const RD=Gi(PD,[["render",VD]]),LD={},jD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},FD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),qD=[FD];function zD(r,e){return i.openBlock(),i.createElementBlock("svg",jD,qD)}const HD=Gi(LD,[["render",zD]]),UD={},KD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},WD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),GD=[WD];function JD(r,e){return i.openBlock(),i.createElementBlock("svg",KD,GD)}const YD=Gi(UD,[["render",JD]]),XD={},QD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ZD=i.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),e5=[ZD];function t5(r,e){return i.openBlock(),i.createElementBlock("svg",QD,e5)}const r5=Gi(XD,[["render",t5]]),n5={},o5={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},s5=i.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),i5=i.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),a5=[s5,i5];function l5(r,e){return i.openBlock(),i.createElementBlock("svg",o5,a5)}const c5=Gi(n5,[["render",l5]]),d5=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],u5=["data-disabled"],h5={key:1,"data-icon":""},f5={"data-content":""},p5={"data-title":""},m5=4e3,g5=14,y5=20,v5=200,b5=i.defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(r,{emit:e}){const t=B=>!!B.promise,n=e,o=r,s=i.ref(!1),a=i.ref(!1),l=i.ref(!1),c=i.ref(!1),d=i.ref(null),u=i.ref(0),h=i.ref(0),f=i.ref(null),p=i.ref(null),m=i.computed(()=>o.index===0),y=i.computed(()=>o.index+1<=o.visibleToasts),g=i.computed(()=>o.toast.type),v=i.computed(()=>o.toast.dismissible),b=o.toast.className||"",w=o.toast.descriptionClassName||"",S=o.toast.style||{},x=i.computed(()=>o.heights.findIndex(B=>B.toastId===o.toast.id)||0),k=i.computed(()=>o.toast.duration||o.duration||m5),C=i.ref(0),N=i.ref(0),P=i.ref(k.value),M=i.ref(0),j=i.ref(null),I=i.computed(()=>o.position.split("-")),X=i.computed(()=>I.value[0]),W=i.computed(()=>I.value[1]),te=i.computed(()=>o.heights.reduce((B,z,H)=>H>=x.value?B:B+z.height,0)),me=i.computed(()=>o.toast.invert||o.invert),ke=i.computed(()=>d.value==="loading"),Se=i.computed(()=>d.value??(o.toast.type||null)),se=i.computed(()=>!t(o.toast)&&typeof o.toast.title=="object"),q=i.computed(()=>{if(!t(o.toast))return null;switch(d.value){case"loading":return o.toast.loading;case"success":return typeof o.toast.success=="function"?f.value:o.toast.success;case"error":return typeof o.toast.error=="function"?f.value:o.toast.error;default:return null}});i.onMounted(()=>s.value=!0),i.watchEffect(()=>{N.value=x.value*g5+te.value});function T(){var B,z;(!ke.value||v.value)&&(V(),(z=(B=o.toast).onDismiss)==null||z.call(B,o.toast))}function V(){a.value=!0,u.value=N.value;const B=o.heights.filter(z=>z.toastId!==o.toast.id);n("update:heights",B),setTimeout(()=>{n("removeToast",o.toast)},v5)}const D=B=>{ke||(u.value=N.value,B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(l.value=!0,j.value={x:B.clientX,y:B.clientY}))},E=B=>{var z,H,ie,oe;if(c.value)return;j.value=null;const ye=Number(((z=p.value)==null?void 0:z.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(ye)>=y5){u.value=N.value,(ie=(H=o.toast).onDismiss)==null||ie.call(H,o.toast),V(),c.value=!0;return}(oe=p.value)==null||oe.style.setProperty("--swipe-amount","0px"),l.value=!0},A=B=>{var z;if(!j.value)return;const H=B.clientY-j.value.y,ie=B.clientX-j.value.x,oe=(I.value[0]==="top"?Math.min:Math.max)(0,H),ye=B.pointerType==="touch"?10:2;Math.abs(oe)>ye?(z=p.value)==null||z.style.setProperty("--swipe-amount",`${H}px`):Math.abs(ie)>ye&&(j.value=null)};return i.watchEffect(B=>{if(o.toast.promise&&d.value==="loading"||o.toast.duration===1/0)return;let z;const H=()=>{if(M.value<C.value){const oe=new Date().getTime()-C.value;P.value=P.value-oe}M.value=new Date().getTime()},ie=()=>{C.value=new Date().getTime(),z=setTimeout(()=>{var oe,ye;(ye=(oe=o.toast).onAutoClose)==null||ye.call(oe,o.toast),V()},P.value)};o.expanded||o.interacting?H():ie(),B(()=>{clearTimeout(z)})}),i.onMounted(()=>{if(p.value){const B=p.value.getBoundingClientRect().height;h.value=B;const z=[{toastId:o.toast.id,height:B},...o.heights];n("update:heights",z)}}),i.onUnmounted(()=>{if(p.value){const B=o.heights.filter(z=>z.toastId!==o.toast.id);n("update:heights",B)}}),i.watchEffect(()=>{o.toast.delete&&V()}),(B,z)=>(i.openBlock(),i.createElementBlock("li",{"aria-live":B.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:p,"data-sonner-toast":"",class:i.normalizeClass(i.unref(b)),"data-styled":!se.value,"data-mounted":s.value,"data-promise":!!B.toast.promise,"data-removed":a.value,"data-visible":y.value,"data-y-position":X.value,"data-x-position":W.value,"data-index":o.index,"data-front":m.value,"data-swiping":l.value,"data-type":d.value!=="loading"&&d.value?d.value:g.value,"data-invert":me.value,"data-swipe-out":c.value,"data-expanded":!!(o.expanded||o.expandByDefault&&s.value),style:i.normalizeStyle({"--index":o.index,"--toasts-before":o.index,"--z-index":B.toasts.length-o.index,"--offset":`${a.value?u.value:N.value}px`,"--initial-height":o.expandByDefault?"auto":`${h.value}px`,...i.unref(S)}),onPointerdown:D,onPointerup:E,onPointermove:A},[o.closeButton&&!se.value?(i.openBlock(),i.createElementBlock("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":ke.value,onClick:T},[i.createVNode(c5)],8,u5)):i.createCommentVNode("",!0),g.value||B.toast.icon||B.toast.promise?(i.openBlock(),i.createElementBlock("div",h5,[typeof B.toast.promise=="function"||g.value==="loading"?(i.openBlock(),i.createBlock(BD,{key:0,visible:d.value==="loading"||g.value==="loading"},null,8,["visible"])):i.createCommentVNode("",!0),Se.value==="success"?(i.openBlock(),i.createBlock(RD,{key:1})):Se.value==="info"?(i.openBlock(),i.createBlock(HD,{key:2})):Se.value==="warning"?(i.openBlock(),i.createBlock(YD,{key:3})):Se.value==="error"?(i.openBlock(),i.createBlock(r5,{key:4})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",f5,[i.createElementVNode("div",p5,[typeof B.toast.title=="string"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(B.toast.title),1)],64)):B.toast.title===void 0||B.toast.title===null?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(q.value),1)],64)):se.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(B.toast.title),{key:2,onCloseToast:z[0]||(z[0]=()=>{var H;V(),(H=B.toast.cancel)!=null&&H.onClick&&B.toast.cancel.onClick()})},null,32)):i.createCommentVNode("",!0)]),B.toast.description?(i.openBlock(),i.createElementBlock("div",{key:0,"data-description":"",class:i.normalizeClass(B.descriptionClass+i.unref(w))},i.toDisplayString(B.toast.description),3)):i.createCommentVNode("",!0)]),B.toast.cancel?(i.openBlock(),i.createElementBlock("button",{key:2,"data-button":"","data-cancel":"",onClick:z[1]||(z[1]=()=>{var H;V(),(H=B.toast.cancel)!=null&&H.onClick&&B.toast.cancel.onClick()})},i.toDisplayString(B.toast.cancel.label),1)):i.createCommentVNode("",!0),B.toast.action?(i.openBlock(),i.createElementBlock("button",{key:3,"data-button":"",onClick:z[2]||(z[2]=()=>{var H;V(),(H=B.toast.action)==null||H.onClick()})},i.toDisplayString(B.toast.action.label),1)):i.createCommentVNode("",!0)],46,d5))}}),w5=["aria-label"],k5=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],S5=3,jg="32px",x5=4e3,C5=356,Fg=14,E5=typeof window<"u"&&typeof document<"u",$5=i.defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:x5},gap:{default:Fg},visibleToasts:{default:S5},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:jg},dir:{default:"auto"}},setup(r){const e=r,t=i.useAttrs(),n=i.ref([]),o=i.ref([]),s=i.ref(!1),a=i.ref(!1),l=i.ref(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),c=i.computed(()=>e.position.split("-")),d=i.ref(null),u=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function h(p){n.value=n.value.filter(({id:m})=>m!==p.id)}function f(){if(typeof window>"u")return"ltr";const p=document.documentElement.getAttribute("dir");return p==="auto"||!p?window.getComputedStyle(document.documentElement).direction:p}return i.onMounted(()=>{const p=Ut.subscribe(m=>{if(m.dismiss){n.value=n.value.map(y=>y.id===m.id?{...y,delete:!0}:y);return}i.nextTick(()=>{const y=n.value.findIndex(g=>g.id===m.id);y!==-1?n.value.splice(y,1,m):n.value=[m,...n.value]})});i.onUnmounted(()=>{p()})}),i.watch(()=>e.theme,p=>{if(p!=="system"){l.value=p;return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?l.value="dark":l.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:m})=>{m?l.value="dark":l.value="light"})}),i.watchEffect(()=>{n.value.length<=1&&(s.value=!1)}),i.watchEffect(p=>{function m(y){var g,v;e.hotkey.every(b=>y[b]||y.code===b)&&(s.value=!0,(g=d.value)==null||g.focus()),y.code==="Escape"&&(document.activeElement===d.value||(v=d.value)!=null&&v.contains(document.activeElement))&&(s.value=!1)}E5&&(document.addEventListener("keydown",m),p(()=>{document.removeEventListener("keydown",m)}))}),(p,m)=>{var y;return i.openBlock(),i.createElementBlock("section",{"aria-label":`Notifications ${i.unref(u)}`,tabIndex:-1},[i.createElementVNode("ol",{ref_key:"listRef",ref:d,"data-sonner-toaster":"",dir:p.dir==="auto"?f():p.dir,tabIndex:-1,"data-theme":p.theme,"data-rich-colors":p.richColors,"data-y-position":c.value[0],"data-x-position":c.value[1],style:i.normalizeStyle({"--front-toast-height":`${(y=o.value[0])==null?void 0:y.height}px`,"--offset":typeof p.offset=="number"?`${p.offset}px`:p.offset||jg,"--width":`${C5}px`,"--gap":`${Fg}px`,...i.unref(t).style}),onMouseenter:m[1]||(m[1]=g=>s.value=!0),onMousemove:m[2]||(m[2]=g=>s.value=!0),onMouseleave:m[3]||(m[3]=()=>{a.value||(s.value=!1)}),onPointerdown:m[4]||(m[4]=g=>a.value=!1),onPointerup:m[5]||(m[5]=g=>a.value=!1)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(g,v)=>{var b,w,S,x;return i.openBlock(),i.createBlock(b5,{key:g.id,index:v,toast:g,duration:((b=p.toastOptions)==null?void 0:b.duration)??p.duration,className:(w=p.toastOptions)==null?void 0:w.className,descriptionClassName:(S=p.toastOptions)==null?void 0:S.descriptionClassName,invert:p.invert,visibleToasts:p.visibleToasts,closeButton:p.closeButton,interacting:a.value,position:p.position,style:i.normalizeStyle((x=p.toastOptions)==null?void 0:x.style),toasts:n.value,expandByDefault:p.expand,gap:p.gap,expanded:s.value,heights:o.value,"onUpdate:heights":m[0]||(m[0]=k=>o.value=k),onRemoveToast:h},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,k5)],8,w5)}}}),L1={toast:()=>null};function _5(r){L1.toast=r}function j1(){return{initializeToasts:_5,toast:(r,e="info",t={timeout:3e3})=>{L1.toast(r,e,t)}}}const N5=i.defineComponent({__name:"ScalarToasts",setup(r){const e=i.ref(!1);i.onMounted(()=>e.value=!0);const t={success:Ma.success,error:Ma.error,warn:Ma.warning,info:Ma},{initializeToasts:n}=j1();return n((o,s="info",a={})=>{(t[s]||t.info)(o,{duration:a.timeout||3e3})}),(o,s)=>e.value?(i.openBlock(),i.createBlock(i.unref($5),{key:0,toastOptions:{className:"toaster"}})):i.createCommentVNode("",!0)}}),bs=()=>{const{toast:r}=j1();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},Gr=i.ref(!1);function A5(r){var o;const e=()=>{var a,l;const s=typeof window<"u"?(a=window.localStorage)==null?void 0:a.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;Gr.value=!Gr.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Gr.value)))};function n(s){var a;Gr.value=s,typeof window<"u"&&((a=window==null?void 0:window.localStorage)==null||a.setItem("isDark",JSON.stringify(Gr.value)))}return Gr.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),i.watch(Gr,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Gr,toggleDarkMode:t,setDarkMode:n}}const qg="https://api.scalar.com/request-proxy",Da="https://proxy.scalar.com",O5="http://localhost:5051";function T5(r){i.watch(()=>r,()=>{var e;r.proxy===qg?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${qg}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Da}) instead.`),r.proxy=Da,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Da}). Read more: https://github.com/scalar/scalar`)):(e=r.proxy)!=null&&e.length&&r.proxy!==Da&&r.proxy!==O5&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${r==null?void 0:r.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const B5={node:["unirest"]},Fu=i.ref({...B5});function P5(r,e){return r.flatMap(t=>{var n;return Array.isArray(e.value)?(t.clients=t.clients.filter(o=>!e.value.includes(o.key)),[t]):e.value[t.key]===!0?[]:(Array.isArray(e.value[t.key])&&(t.clients=t.clients.filter(o=>!e.value[t.key].includes(o.key))),(n=t==null?void 0:t.clients)!=null&&n.length?[t]:[])})}const I5=i.computed(()=>{var e;const r=Yg.availableTargets();return(e=r.find(t=>t.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),P5(r,Fu)});function Ji(){return{availableTargets:I5,excludedClients:i.readonly(Fu),setExcludedClients:r=>Fu.value=r}}const Hf=i.ref(Zo.hash??""),Il=i.ref(),M5=i.ref(!1),D5=r=>r.slug?`description/${r.slug}`:"",F1=r=>{var t;if(!Il.value)return"";const e=new RegExp("^"+((t=Il.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},V5=(r,e)=>{if(!r)return"webhooks";const t=Ai.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},R5=r=>{if(!r)return"models";const e=Ai.slug(r);return`model/${encodeURIComponent(e)}`},L5=(r,e)=>`${q1(e)}/${r.httpVerb}${r.path}`,q1=({name:r})=>{const e=Ai.slug(r);return`tag/${encodeURIComponent(e)}`},j5=(r=Hf.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},F5=()=>{Hf.value=Il.value?F1(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},lt=()=>({hash:Hf,getWebhookId:V5,getModelId:R5,getHeadingId:D5,getOperationId:L5,getPathRoutingId:F1,getSectionId:j5,getTagId:q1,isIntersectionEnabled:M5,pathRouting:Il,updateHash:F5});function Uf(r){return{parameterMap:i.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const q5=async({url:r,content:e},t)=>{if(r)return jv(r)?await yp(r,t):await yp(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return di(n)};function z1({specConfig:r,proxy:e}){const t=i.ref(""),n=i.reactive(Hn()),o=i.ref(null);function s(a){return a?D1(a).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Hn())}return i.watch(()=>i.toValue(r),async a=>{var l;if(a){const c=(l=await q5(a,i.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),i.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Kf(r){return{responses:i.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:zg,getModelId:Hg,getOperationId:Ug,getSectionId:z5,getTagId:H1,getWebhookId:kd,hash:qu}=lt(),Je=i.ref(void 0);function H5(r){return Je.value=r}const U1=i.ref(!1),Ml=i.reactive(Zo["useSidebarContent-collapsedSidebarItems"]??{});function U5(r){Ml[r]=!Ml[r]}function Sd(r,e){Ml[r]=e}const Dl=i.ref([]),K5=async r=>{const e=await ki(r),t=ec(e);return e.filter(n=>n.depth===t||n.depth===t+1)},K1=i.computed(()=>{var h,f,p,m,y,g,v,b,w,S;const{state:r}=Rl(),e={},{openApi:{globalSecurity:t}}=th(),n=[];let o=null;Dl.value.forEach(x=>{var k;x.depth===ec(Dl.value)?(o={id:zg(x),title:x.value,show:!r.showApiClient,children:[]},n.push(o)):o&&((k=o.children)==null||k.push({id:zg(x),title:x.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(x=>(x==null?void 0:x.length)!==1||x[0].name!=="default"||x[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(y=(m=Je.value)==null?void 0:m.tags)==null?void 0:y.filter(x=>{var k;return((k=x.operations)==null?void 0:k.length)>0}).map(x=>{var k;return{id:H1(x),title:x.name,displayTitle:x["x-displayName"]??x.name,show:!0,children:(k=x.operations)==null?void 0:k.map(C=>{var M;const N=Ug(C,x),P=C.name??C.path;return e[N]=P,{id:N,title:P,httpVerb:C.httpVerb,deprecated:((M=C.information)==null?void 0:M.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Cl(C,t)}}})}}):(g=s==null?void 0:s.operations)==null?void 0:g.map(x=>{var N;const k=Ug(x,s),C=x.name??x.path;return e[k]=C,{id:k,title:C,httpVerb:x.httpVerb,deprecated:((N=x.information)==null?void 0:N.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Cl(x,t)}}}),c=Th(Je.value)&&!U1.value?[{id:Hg(),title:"Models",show:!r.showApiClient,children:Object.keys(Jt(Je.value)??{}).map(x=>{var C;const k=Hg(x);return e[k]=x,{id:k,title:((C=Jt(Je.value))==null?void 0:C[x]).title??x,show:!r.showApiClient}})}]:[],d=(v=Je.value)!=null&&v["x-tagGroups"]?(w=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:w.map(x=>{const k=[];return x.tags.map(N=>{if(N==="models"&&c.length>0)k.push(c[0]);else{const P=l==null?void 0:l.find(M=>M.title===N);P&&k.push(P)}}),{id:x.name,title:x.name,children:k,show:!0,isGroup:!0}}):void 0,u=Lv(Je.value)?[{id:kd(),title:"Webhook",show:!r.showApiClient,children:Object.keys(((S=Je.value)==null?void 0:S.webhooks)??{}).map(x=>{var C,N;const k=kd(x);return e[k]=x,Object.keys(((N=(C=Je.value)==null?void 0:C.webhooks)==null?void 0:N[x])??{}).map(P=>{var M,j,I;return{id:kd(x,P),title:(I=(j=(M=Je.value)==null?void 0:M.webhooks)==null?void 0:j[x][P])==null?void 0:I.name,httpVerb:P,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),W5=i.ref(!1),G5=i.computed(()=>{var r,e;return((e=(r=K1.value)==null?void 0:r.titles)==null?void 0:e[qu.value])??""});function tr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(qu.value){const n=z5(qu.value);n&&Sd(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&Sd(H1(n),!0)}}),i.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Dl.value=await K5(e):Dl.value=[]})),{breadcrumb:G5,items:K1,isSidebarOpen:W5,collapsedSidebarItems:Ml,toggleCollapsedSidebarItem:U5,setCollapsedSidebarItem:Sd,hideModels:U1,setParsedSpec:H5}}const J5=i.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(to),{class:i.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),W1=K(J5,[["__scopeId","data-v-9e6d2bc7"]]),Y5=["id"],X5={key:0,class:"sidebar-heading-chevron"},Q5=["href"],Z5={class:"sidebar-heading-link-title"},eV={key:1,class:"sidebar-heading-link-method"},tV={key:1,class:"action-menu"},rV=i.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:a}=lt(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await wr(100),s.value=!0)},c=()=>{if(a.value)return a.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(a.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=a.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),_i(t.item.id),await wr(100),s.value=!0}};return(u,h)=>{var f,p;return i.openBlock(),i.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(i.openBlock(),i.createElementBlock("p",X5,[i.createVNode(i.unref(Mi),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:i.withModifiers(l,["stop"])},null,8,["icon"]),i.createTextVNode(" ")])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):i.createCommentVNode("",!0),i.createElementVNode("p",Z5,i.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(i.openBlock(),i.createElementBlock("p",eV,[i.createTextVNode(" "),i.createVNode(W1,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):i.createCommentVNode("",!0)],8,Q5)],2),u.open?i.renderSlot(u.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),u.$slots["action-menu"]?(i.openBlock(),i.createElementBlock("div",tV,[i.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):i.createCommentVNode("",!0)],8,Y5)}}}),Va=K(rV,[["__scopeId","data-v-4ed1078c"]]),nV=i.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:i.normalizeStyle({"--scalar-sidebar-level":e.level})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),xd=K(nV,[["__scopeId","data-v-39c84840"]]),oV={class:"sidebar"},sV={class:"sidebar-group-title"},iV=-160,aV=i.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=lt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:a}=tr({parsedSpec:e.parsedSpec}),l=i.ref(null),c=i.ref(!0);i.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,m,y,g;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=iV;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((g=(y=h.parentElement)==null?void 0:y.parentElement)==null?void 0:g.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return i.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(i.openBlock(),i.createElementBlock("div",oV,[i.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),i.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[i.createVNode(xd,{level:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o).entries,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.id},[f.isGroup?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("li",sV,i.toDisplayString(f.displayTitle??f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,p=>(i.openBlock(),i.createBlock(Va,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:i.unref(t)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:i.unref(a)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(p.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(i.openBlock(),i.createBlock(xd,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.children,y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${y.id}`,isActive:i.unref(t)===y.id,item:{id:y.id,title:y.displayTitle??y.title,select:y.select,httpVerb:y.httpVerb,deprecated:y.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:i.unref(t)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:i.unref(a)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(f.id),await i.unref(wr)(100),c.value=!1}},{default:i.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(i.openBlock(),i.createBlock(xd,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[f.show?(i.openBlock(),i.createBlock(Va,{key:0,id:`sidebar-${m.id}`,isActive:i.unref(t)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):i.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),i.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),Wf=K(aV,[["__scopeId","data-v-e68ba74a"]]),lV={key:0,class:"api-client-drawer"},cV={class:"api-client-container"},dV={class:"scalar-api-client-height"},uV={class:"scalar-api-client-states"},hV={class:"t-doc__sidebar"},fV=i.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(r){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DWM5ulzV.cjs")).then(a=>a.ApiClient)),{hideApiClient:t,state:n}=Rl(),o=Xe.useMediaQuery("(max-width: 1000px)"),s=i.ref(!1);return(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(n).showApiClient||a.overloadShow?(i.openBlock(),i.createElementBlock("div",lV,[i.createElementVNode("div",cV,[i.renderSlot(a.$slots,"header",{},void 0,!0),i.createElementVNode("div",dV,[i.createVNode(i.unref(e),{proxyUrl:a.proxyUrl,showSideBar:s.value,theme:a.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:i.unref(t),onToggleSidebar:l[2]||(l[2]=c=>s.value=!s.value)},{"address-bar-controls":i.withCtx(()=>[i.createElementVNode("div",uV,[i.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:l[0]||(l[0]=c=>s.value=!s.value)},[i.createVNode(i.unref(Me),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),i.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:l[1]||(l[1]=(...c)=>i.unref(t)&&i.unref(t)(...c))},[i.createVNode(i.unref(Me),{icon:"Close",size:"sm"})])])]),sidebar:i.withCtx(()=>[i.createElementVNode("div",hV,[i.withDirectives(i.createVNode(i.unref(Wf),{parsedSpec:a.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(a.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[i.vShow,!i.unref(o)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):i.createCommentVNode("",!0),i.unref(n).showApiClient?(i.openBlock(),i.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:l[3]||(l[3]=(...c)=>i.unref(t)&&i.unref(t)(...c))})):i.createCommentVNode("",!0)],64))}}),G1=K(fV,[["__scopeId","data-v-206ad1a1"]]),J1=()=>({targetKey:"shell",clientKey:"curl"}),Xo=i.reactive(J1());function pV(){Bh(Xo,J1())}function Y1(r){var t;const{availableTargets:e}=Ji();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function X1(r){var t,n;const{availableTargets:e}=Ji();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const mV=r=>{Object.assign(Xo,{...Xo,...r})},gV=i.computed(()=>Y1(Xo)),yV=i.computed(()=>X1(Xo)),Mc=()=>({httpClient:i.readonly(Xo),resetState:pV,setHttpClient:mV,httpTargetTitle:gV,httpClientTitle:yV,getClientTitle:X1,getTargetTitle:Y1}),vV={key:0},bV={class:"authentication-header"},wV={class:"selector"},kV={key:0,class:"authentication-content"},SV=i.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=ts(),o=i.computed(()=>{var a,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(a=e.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return i.watch(()=>{var s,a;return(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes},()=>{var s,a;n({securitySchemes:(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes})},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const s=i.useSSRContext();await wr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,a)=>{var l,c,d,u,h;return i.unref(Rv)(s.parsedSpec)?(i.openBlock(),i.createElementBlock("div",vV,[i.createElementVNode("div",bV,[i.createElementVNode("div",wV,[i.createVNode(i.unref(Dv),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]),o.value?(i.openBlock(),i.createElementBlock("div",kV,[i.unref(t).preferredSecurityScheme?(i.openBlock(),i.createBlock(i.unref(Mv),{key:0,value:(h=(u=(d=s.parsedSpec)==null?void 0:d.components)==null?void 0:u.securitySchemes)==null?void 0:h[i.unref(t).preferredSecurityScheme]},null,8,["value"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),xV=K(SV,[["__scopeId","data-v-3bb0413b"]]),CV=["innerHTML"],EV=i.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=i.ref(""),n=e.withImages?[]:["img","picture"],o={...sa.defaultSchema,tagNames:[...(sa.defaultSchema.tagNames||[]).filter(s=>!n.includes(s)),"abbr"],attributes:{...sa.defaultSchema.attributes,abbr:["title"]}};return i.watch(()=>e.value,async()=>{const s=await Jg.unified().use(Gg).use(jw).use(Fw,{allowDangerousHtml:!0}).use(Rw).use(sa,o).use(Vw,{detect:!0}).use(Mw,{target:"_blank"}).use(Dw).use(Lw).process(e.value);t.value=String(s.value)},{immediate:!0}),i.onServerPrefetch(async()=>await wr(1)),(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,CV))}}),$t=K(EV,[["__scopeId","data-v-5a5f5321"]]),$V=["title","innerHTML"],_V=i.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=bs(),n=i.computed(()=>{var l;const a=(((l=e.value)==null?void 0:l.url)??"").replace(/(<([^>]+)>)/gi,"");return Oh(a,c=>{var u;const d=(u=e.variables)==null?void 0:u.find(h=>h.name===c);return`<span class="base-url-variable">${((d==null?void 0:d.value)??"")!==""?d==null?void 0:d.value:`{${c}}`}</span>`})}),o=i.computed(()=>n.value.replace(/(<([^>]+)>)/gi,""));return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("a",{key:0,class:"base-url",title:s.value.description,onClick:a[0]||(a[0]=l=>i.unref(t)(o.value)),innerHTML:n.value},null,8,$V)):i.createCommentVNode("",!0)}}),NV=K(_V,[["__scopeId","data-v-0eae9170"]]),AV={key:0},OV=["for"],TV=["id","value","onInput"],BV=["value"],PV={class:"input-value"},IV=["id","value","onInput"],MV=i.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=os(),n=(s,a)=>{const l=a.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const a=e.variables.findIndex(l=>l.name===s);return e.variables[a].value??""};return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("div",AV,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l.name,class:"input"},[i.createElementVNode("label",{for:`variable-${l.name}`},[i.createElementVNode("code",null,i.toDisplayString(l.name),1)],8,OV),l.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.enum,c=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(c),9,BV))),128))],40,TV),i.createElementVNode("div",PV,i.toDisplayString(l.default),1)],64)):(i.openBlock(),i.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,IV))]))),128))])):i.createCommentVNode("",!0)}}),DV=K(MV,[["__scopeId","data-v-a812e319"]]),VV=r=>(i.pushScopeId("data-v-899af270"),r=r(),i.popScopeId(),r),RV={key:0},LV=VV(()=>i.createElementVNode("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),jV={class:"scalar-card-serverlist"},FV={class:"scalar-card-serverlist-container"},qV={class:"server-item"},zV={class:"server-selector"},HV=["value"],UV=["value"],KV={key:0,muted:""},WV={class:"description"},GV=i.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=os(),n=i.ref(0);return i.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];hv((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{immediate:!0,deep:!0}),(o,s)=>i.unref(e).servers.length>0?(i.openBlock(),i.createElementBlock("div",RV,[LV,i.createElementVNode("div",jV,[i.createElementVNode("div",FV,[i.createElementVNode("div",qV,[i.createElementVNode("div",zV,[i.unref(e).servers.length>1?(i.openBlock(),i.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=a=>n.value=parseInt(a.target.value,10))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e).servers,(a,l)=>(i.openBlock(),i.createElementBlock("option",{key:l,value:l},i.toDisplayString(a.url),9,UV))),128))],40,HV)):i.createCommentVNode("",!0),i.createVNode(NV,{value:i.unref(e).servers[n.value],variables:i.unref(e).variables},null,8,["value","variables"]),i.unref(e).servers.length>1?(i.openBlock(),i.createBlock(i.unref(Me),{key:1,icon:"ChevronDown"})):i.createCommentVNode("",!0)])]),i.createVNode(DV,{value:i.unref(e).variables},null,8,["value"])])]),i.unref(e).description?(i.openBlock(),i.createElementBlock("div",KV,[i.createElementVNode("div",WV,[i.createVNode(i.unref($t),{value:i.unref(e).description},null,8,["value"])])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),JV=K(GV,[["__scopeId","data-v-899af270"]]),Q1=r=>(i.pushScopeId("data-v-33a6f59a"),r=r(),i.popScopeId(),r),YV=["onClick"],XV=["value"],QV=["label"],ZV=["value"],eR={class:"client-libraries-icon__more"},tR={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},rR=Q1(()=>i.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[i.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),nR=[rR],oR=Q1(()=>i.createElementVNode("span",null,"More",-1)),sR=i.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,getClientTitle:n,getTargetTitle:o}=Mc(),{availableTargets:s}=Ji(),a=i.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(h=>s.value.find(f=>f.key===h.targetKey&&f.clients.find(p=>p.key===h.clientKey))),c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"client-libraries-content"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),p=>(i.openBlock(),i.createElementBlock("div",{key:p.clientKey,class:i.normalizeClass(["client-libraries rendered-code-sdks",{"client-libraries__active":d(p)}]),onClick:()=>i.unref(t)(p)},[i.createElementVNode("div",{class:i.normalizeClass(`client-libraries-icon__${p.targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(p.targetKey)},null,8,["icon"])],2),i.createElementVNode("span",null,i.toDisplayString(i.unref(o)(p)),1)],10,YV))),128)),i.createElementVNode("div",{class:i.normalizeClass(["client-libraries client-libraries__select",{"client-libraries__active":i.unref(e)&&!u(i.unref(e))}])},[i.createElementVNode("select",{class:"language-select",value:JSON.stringify(i.unref(e)),onInput:f[0]||(f[0]=p=>i.unref(t)(JSON.parse(p.target.value)))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),p=>(i.openBlock(),i.createElementBlock("optgroup",{key:p.key,label:p.title},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.clients,m=>(i.openBlock(),i.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},i.toDisplayString(i.unref(n)({targetKey:p.key,clientKey:m.key})),9,ZV))),128))],8,QV))),128))],40,XV),i.createElementVNode("div",eR,[i.unref(e)&&!u(i.unref(e))?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`client-libraries-icon__${i.unref(e).targetKey}`)},[i.createVNode(i.unref(Me),{class:"client-libraries-icon",icon:c(i.unref(e).targetKey)},null,8,["icon"])],2)):(i.openBlock(),i.createElementBlock("svg",tR,nR))]),oR],2)],512))}}),iR=K(sR,[["__scopeId","data-v-33a6f59a"]]),aR=r=>(i.pushScopeId("data-v-a067531c"),r=r(),i.popScopeId(),r),lR=aR(()=>i.createElementVNode("div",{class:"client-libraries-heading"},"Client Libraries",-1)),cR={class:"selected-client card-footer",muted:""},dR=i.defineComponent({__name:"ClientLibraries",setup(r){const{httpTargetTitle:e,httpClientTitle:t}=Mc();return(n,o)=>(i.openBlock(),i.createElementBlock("div",null,[lR,i.createElementVNode("div",null,[i.createVNode(iR)]),i.createElementVNode("div",cR,i.toDisplayString(i.unref(t))+" "+i.toDisplayString(i.unref(e)),1)]))}}),uR=K(dR,[["__scopeId","data-v-a067531c"]]),hR={},fR={class:"badge"};function pR(r,e){return i.openBlock(),i.createElementBlock("div",fR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Ni=K(hR,[["render",pR],["__scopeId","data-v-190574ac"]]),Gf=i.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},a=l=>l.offsetHeight<window.innerHeight?.8:.5;return i.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:a(o.value)};Xe.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),mR=i.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=lt(),{setCollapsedSidebarItem:a}=tr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&a(t(e.id),!0)}return(c,d)=>(i.openBlock(),i.createBlock(Gf,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),ws=K(mR,[["__scopeId","data-v-0494f9f3"]]),gR={class:"section-accordion-button-content"},yR={key:0,class:"section-accordion-button-actions"},vR={key:0,class:"section-accordion-description"},bR={class:"section-accordion-content-card"},wR=i.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=i.ref(),t=Xe.useElementHover(e);return(n,o)=>(i.openBlock(),i.createBlock(Gf,{id:n.id,class:"section-wrapper"},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.Disclosure),{as:"section",class:i.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:i.withCtx(({open:s})=>[i.createVNode(i.unref(Le.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:i.withCtx(()=>[i.createElementVNode("div",gR,[i.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(i.openBlock(),i.createElementBlock("div",yR,[i.renderSlot(n.$slots,"actions",{active:i.unref(t)||s},void 0,!0)])):i.createCommentVNode("",!0),i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[n.$slots.description?(i.openBlock(),i.createElementBlock("div",vR,[i.renderSlot(n.$slots,"description",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",bR,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),Z1=K(wR,[["__scopeId","data-v-07cabcb0"]]),kR={},SR={class:"section-column"};function xR(r,e){return i.openBlock(),i.createElementBlock("div",SR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Qo=K(kR,[["render",xR],["__scopeId","data-v-d64e7382"]]),CR={},ER={class:"section-columns"};function $R(r,e){return i.openBlock(),i.createElementBlock("div",ER,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Jf=K(CR,[["render",$R],["__scopeId","data-v-8b9602bf"]]),_R={},NR={class:"section-container"};function AR(r,e){return i.openBlock(),i.createElementBlock("div",NR,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Yi=K(_R,[["render",AR],["__scopeId","data-v-34b26958"]]),OR={class:"section-accordion-wrapper"},TR={class:"section-accordion-title"},BR=i.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",OR,[i.createVNode(i.unref(Le.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:i.withCtx(({open:n})=>[i.createVNode(i.unref(Le.DisclosureButton),{class:"section-accordion-button"},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),i.createElementVNode("div",TR,[i.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),i.createVNode(i.unref(Le.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),ew=K(BR,[["__scopeId","data-v-2049975e"]]),PR=i.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([...Array(e.lines).keys()],n=>(i.openBlock(),i.createElementBlock("div",{key:n,class:i.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),tw=K(PR,[["__scopeId","data-v-c90b2c46"]]),IR={class:"section-content"},MR=i.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",IR,[e.loading?(i.openBlock(),i.createBlock(tw,{key:1,lines:8})):i.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),ks=K(MR,[["__scopeId","data-v-9735459e"]]),DR=i.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(i.openBlock(),i.createBlock(tw,{key:0})):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(`h${e.level}`),{key:1,class:i.normalizeClass(["section-header",{tight:e.tight}])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),vn=K(DR,[["__scopeId","data-v-3bd1b9f0"]]),VR={key:0,class:"introduction-description"},RR=i.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Ku(e.value)}`,o=Xe.computedAsync(async()=>{if(!e.value)return[];const u=await ki(e.value),h=ec(u);return await Promise.all(R1(e.value,h).map(async f=>({heading:(await ki(f))[0],content:f})))},Zo[n]??[]),{getHeadingId:s,hash:a,isIntersectionEnabled:l,pathRouting:c}=lt();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,a.value=u,window.history.replaceState({},"",h)}return i.onServerPrefetch(async()=>{const u=i.useSSRContext();await wr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(i.openBlock(),i.createElementBlock("div",VR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(f,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:p},[f.heading?(i.openBlock(),i.createBlock(Gf,{key:0,id:i.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(i.unref(s)(f.heading))},{default:i.withCtx(()=>[i.createVNode(i.unref($t),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(i.openBlock(),i.createBlock(i.unref($t),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):i.createCommentVNode("",!0)}}),LR=K(RR,[["__scopeId","data-v-5e475391"]]),jR={class:"download"},FR={class:"download-cta"},qR=i.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=i.inject(qf),n=()=>{zf.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",jR,[i.createElementVNode("div",FR,[(a=i.unref(t))!=null&&a()?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),zR=K(qR,[["__scopeId","data-v-810904a4"]]),HR={class:"badges"},UR={class:"sticky-cards"},KR=i.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new Ai,n=i.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=i.computed(()=>t.slug(e.info.title??""));return(s,a)=>(i.openBlock(),i.createBlock(i.unref(Yi),null,{default:i.withCtx(()=>[i.createVNode(i.unref(ws),{class:"introduction-section"},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),{loading:!s.info.description&&!s.info.title},{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createElementVNode("div",HR,[s.info.version?(i.openBlock(),i.createBlock(i.unref(Ni),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.version),1)]),_:1})):i.createCommentVNode("",!0),n.value?(i.openBlock(),i.createBlock(i.unref(Ni),{key:1},{default:i.withCtx(()=>[i.createTextVNode(" OAS "+i.toDisplayString(n.value),1)]),_:1})):i.createCommentVNode("",!0)]),i.createVNode(i.unref(vn),{level:1,loading:!s.info.title,tight:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),i.createVNode(zR,{specTitle:o.value},null,8,["specTitle"]),i.createVNode(LR,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(i.openBlock(),i.createBlock(i.unref(Qo),{key:0},{default:i.withCtx(()=>[i.createElementVNode("div",UR,[i.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):i.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),i.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),WR=K(KR,[["__scopeId","data-v-30c2e131"]]),GR=Symbol(),zu=Xe.useEventBus(GR),Vl=i.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>i.nextTick(o),e.lazyTimeout??300))},n=i.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&i.nextTick(()=>zu.emit({id:e.id}))}):e.id&&i.nextTick(()=>zu.emit({id:e.id})),(o,s)=>n.value?i.renderSlot(o.$slots,"default",{key:0}):i.createCommentVNode("",!0)}}),JR={key:0,class:"screenreader-only"},YR=i.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(i.openBlock(),i.createElementBlock("span",JR,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),rw=K(YR,[["__scopeId","data-v-681ebf2c"]]),XR=r=>(i.pushScopeId("data-v-d9801d4e"),r=r(),i.popScopeId(),r),QR={class:"label"},ZR={class:"anchor"},e3=XR(()=>i.createElementVNode("span",null,"",-1)),t3=i.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=bs(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(i.openBlock(),i.createElementBlock("span",QR,[i.renderSlot(n.$slots,"default",{},void 0,!0),i.createElementVNode("span",ZR,[e3,i.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=i.withModifiers(s=>i.unref(e)(t(n.id)),["stop"]))},[i.createTextVNode(" # "),i.createVNode(rw,null,{default:i.withCtx(()=>[i.createTextVNode('Copy link to "'),i.renderSlot(n.$slots,"default",{},void 0,!0),i.createTextVNode('"')]),_:3})])])]))}}),bn=K(t3,[["__scopeId","data-v-d9801d4e"]]),r3={},n3={class:"scalar-card"};function o3(r,e){return i.openBlock(),i.createElementBlock("div",n3,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xi=K(r3,[["render",o3],["__scopeId","data-v-dcabb131"]]),s3=i.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),so=K(s3,[["__scopeId","data-v-5312c2e0"]]),i3={class:"scalar-card-header-slots"},a3={class:"scalar-card-header-slot scalar-card-header-title"},l3={class:"scalar-card-header-slot scalar-card-header-actions"},c3=i.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(so,i.mergeProps(e,{class:"scalar-card-header"}),{default:i.withCtx(()=>[i.createElementVNode("div",i3,[i.createElementVNode("div",a3,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",l3,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Qi=K(c3,[["__scopeId","data-v-bbd0c20a"]]),d3=i.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(so,i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Dc=K(d3,[["__scopeId","data-v-918ab8d6"]]),u3=i.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(i.openBlock(),i.createBlock(Qi,{class:"scalar-card-header-tabs"},{actions:i.withCtx(()=>[i.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabGroup),{onChange:n},{default:i.withCtx(()=>[i.createVNode(i.unref(Le.TabList),{class:"tab-list custom-scroll"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),nw=K(u3,[["__scopeId","data-v-6a91b57c"]]),h3=i.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(Le.Tab),{as:"template"},{default:i.withCtx(({selected:n})=>[i.createElementVNode("button",{class:i.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),ow=K(h3,[["__scopeId","data-v-f373ecc2"]]),f3=["value"],p3=["label"],m3=["value"],g3=["value"],Yf=i.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,n=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:n.value},[n.options?(i.openBlock(),i.createElementBlock("optgroup",{key:0,label:n.label},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.label),9,m3))),128))],8,p3)):(i.openBlock(),i.createElementBlock("option",{key:n.value,value:n.value},i.toDisplayString(n.label),9,g3))],64))),128))],40,f3)],2))}}),y3={class:"request-header"},v3=i.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=i.ref(0),n=i.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=i.computed(()=>e.examples[t.value]);i.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=bs();return(a,l)=>(i.openBlock(),i.createBlock(i.unref(Xi),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Yf,{class:"request-client-picker",modelValue:t.value,options:a.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>i.unref(s)(o.value.source.trim()))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",y3,[i.createVNode(i.unref(to),{class:"request-method",method:a.operation.httpVerb},null,8,["method"]),i.renderSlot(a.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(so),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createVNode(i.unref(_r),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),a.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"scalar-card-footer",contrast:""},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),b3=K(v3,[["__scopeId","data-v-18ba624d"]]),w3={class:"schema-type"},k3=["title"],S3=i.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,a,l,c;return i.openBlock(),i.createElementBlock("span",w3,[i.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" {} ")],64)):i.createCommentVNode("",!0),e.value.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" [] ")],64)):i.createCommentVNode("",!0),e.value.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" enum ")],64)):i.createCommentVNode("",!0)],8,k3),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((a=(s=e.value)==null?void 0:s.xml)==null?void 0:a.name)!=="##default"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" <"+i.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.name),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(e.value.type),1)],64))])}}}),sw=K(S3,[["__scopeId","data-v-6c5c3c96"]]),x3={key:0,class:"property-detail-prefix"},C3={key:1,class:"property-detail-value"},E3={key:2,class:"property-detail-value"},$3=i.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(i.openBlock(),i.createElementBlock("div",x3,[i.renderSlot(e.$slots,"prefix",{},void 0,!0),i.createTextVNode(" ")])):i.createCommentVNode("",!0),e.code?(i.openBlock(),i.createElementBlock("code",C3,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("span",E3,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),Bt=K($3,[["__scopeId","data-v-16d94ef5"]]),_3={class:"property-heading"},N3={key:0,class:"property-name"},A3={key:1,class:"property-additional"},O3={key:2,class:"property-deprecated"},T3={key:3,class:"property-required"},B3={key:4,class:"property-const"},P3={key:5,class:"property-details"},I3={key:6,class:"property-write-only"},M3={key:7,class:"property-read-only"},D3=i.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,a,l,c,d,u;return i.openBlock(),i.createElementBlock("div",_3,[t.$slots.name?(i.openBlock(),i.createElementBlock("div",N3,[i.renderSlot(t.$slots,"name",{},void 0,!0)])):i.createCommentVNode("",!0),t.additional?(i.openBlock(),i.createElementBlock("div",A3,[(o=t.value)!=null&&o["x-additionalPropertiesName"]?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value["x-additionalPropertiesName"]),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" additional properties ")],64))])):i.createCommentVNode("",!0),(s=t.value)!=null&&s.deprecated?(i.openBlock(),i.createElementBlock("div",O3,[i.createVNode(i.unref(Ni),null,{default:i.withCtx(()=>[i.createTextVNode("deprecated")]),_:1})])):i.createCommentVNode("",!0),t.required?(i.openBlock(),i.createElementBlock("div",T3," required ")):i.createCommentVNode("",!0),(a=t.value)!=null&&a.const||(l=t.value)!=null&&l.enum&&t.value.enum.length===1?(i.openBlock(),i.createElementBlock("div",B3,[i.createVNode(Bt,{truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("const:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.const??t.value.enum[0]),1)]),_:1})])):(c=t.value)!=null&&c.type?(i.openBlock(),i.createElementBlock("div",P3,[t.additional?(i.openBlock(),i.createBlock(Bt,{key:0},{prefix:i.withCtx(()=>[i.createTextVNode("key:")]),default:i.withCtx(()=>[i.createTextVNode(" string ")]),_:1})):i.createCommentVNode("",!0),i.createVNode(Bt,null,i.createSlots({default:i.withCtx(()=>{var h,f,p;return[(f=(h=t.value)==null?void 0:h.items)!=null&&f.type?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value.type)+" "+i.toDisplayString(t.value.items.type)+"[] ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+i.toDisplayString((p=t.value)!=null&&p.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(t.value.minItems)+"…"+i.toDisplayString(t.value.maxItems),1)],64)):i.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:i.withCtx(()=>[i.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(i.openBlock(),i.createBlock(Bt,{key:1},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.maxLength?(i.openBlock(),i.createBlock(Bt,{key:2},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maxLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.uniqueItems?(i.openBlock(),i.createBlock(Bt,{key:3},{default:i.withCtx(()=>[i.createTextVNode(" unique! ")]),_:1})):i.createCommentVNode("",!0),t.value.format?(i.openBlock(),i.createBlock(Bt,{key:4},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.format),1)]),_:1})):i.createCommentVNode("",!0),t.value.minimum?(i.openBlock(),i.createBlock(Bt,{key:5},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minimum),1)]),_:1})):i.createCommentVNode("",!0),t.value.maximum?(i.openBlock(),i.createBlock(Bt,{key:6},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maximum),1)]),_:1})):i.createCommentVNode("",!0),t.value.pattern?(i.openBlock(),i.createBlock(Bt,{key:7,code:"",truncate:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.pattern),1)]),_:1})):i.createCommentVNode("",!0),t.$props.enum?(i.openBlock(),i.createBlock(Bt,{key:8},{default:i.withCtx(()=>[i.createTextVNode("enum")]),_:1})):i.createCommentVNode("",!0),t.value.default?(i.openBlock(),i.createBlock(Bt,{key:9,truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("default:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.default),1)]),_:1})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(d=t.value)!=null&&d.writeOnly?(i.openBlock(),i.createElementBlock("div",I3," write-only ")):(u=t.value)!=null&&u.readOnly?(i.openBlock(),i.createElementBlock("div",M3," read-only ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filter(h=>{var f,p,m;return((f=t.value)==null?void 0:f[h])||((m=(p=t.value)==null?void 0:p.items)==null?void 0:m[h])}),h=>(i.openBlock(),i.createBlock(i.unref(Ni),{key:h},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h),1)]),_:2},1024))),128))])}}}),V3=K(D3,[["__scopeId","data-v-c1c21610"]]),R3=r=>(i.pushScopeId("data-v-bd31a06f"),r=r(),i.popScopeId(),r),L3={key:0,class:"property-description"},j3={key:1,class:"property-description"},F3={key:2,class:"property-example custom-scroll"},q3=R3(()=>i.createElementVNode("span",{class:"property-example-label"},"Example",-1)),z3={class:"property-example-value"},H3={key:3,class:"property-enum"},U3={class:"property-enum-values"},K3={key:4,class:"children"},W3={key:0,class:"children"},G3={key:0,class:"property-rule"},J3={key:1,class:"property-rule"},Y3=i.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(a,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:a||(l==null?void 0:l.description)||null},n=function(a){return!a||!e[a.type]?null:e[a.type][a.format||"_default"]},o=function(a){var l;return(a==null?void 0:a.enum)||((l=a==null?void 0:a.items)==null?void 0:l.enum)||[]},s=["oneOf","anyOf","allOf","not"];return(a,l)=>{var c,d,u,h,f,p,m,y,g,v;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["property",[`property--level-${a.level}`,{"property--compact":a.compact,"property--deprecated":(c=a.value)==null?void 0:c.deprecated}]])},[i.createVNode(V3,{additional:a.additional,enum:o(a.value).length>1,required:a.required,value:a.value},i.createSlots({_:2},[a.name?{name:"name",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(a.description,a.value)?(i.openBlock(),i.createElementBlock("div",L3,[i.createVNode(i.unref($t),{value:t(a.description,a.value)},null,8,["value"])])):n(a.value)?(i.openBlock(),i.createElementBlock("div",j3,[i.createVNode(i.unref($t),{value:n(a.value)||""},null,8,["value"])])):i.createCommentVNode("",!0),(d=a.value)!=null&&d.example||(h=(u=a.value)==null?void 0:u.items)!=null&&h.example?(i.openBlock(),i.createElementBlock("div",F3,[q3,i.createElementVNode("code",z3,i.toDisplayString(a.value.example||((f=a.value)==null?void 0:f.items.example)),1)])):i.createCommentVNode("",!0),((p=o(a.value))==null?void 0:p.length)>1?(i.openBlock(),i.createElementBlock("div",H3,[i.createElementVNode("ul",U3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o(a.value),b=>(i.openBlock(),i.createElementBlock("li",{key:b,class:"property-enum-value"},i.toDisplayString(b),1))),128))])])):i.createCommentVNode("",!0),((m=a.value)==null?void 0:m.type)==="object"&&((y=a.value)!=null&&y.properties||(g=a.value)!=null&&g.additionalProperties)?(i.openBlock(),i.createElementBlock("div",K3,[i.createVNode(Fn,{compact:a.compact,level:a.level+1,value:a.value},null,8,["compact","level","value"])])):i.createCommentVNode("",!0),(v=a.value)!=null&&v.items?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[["object"].includes(a.value.items.type)?(i.openBlock(),i.createElementBlock("div",W3,[i.createVNode(Fn,{compact:a.compact,level:a.level+1,value:a.value.items},null,8,["compact","level","value"])])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,b=>{var w,S,x;return i.openBlock(),i.createElementBlock(i.Fragment,{key:b},[(w=a.value)!=null&&w[b]?(i.openBlock(),i.createElementBlock("div",G3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value[b],(k,C)=>(i.openBlock(),i.createBlock(Fn,{key:C,compact:a.compact,level:a.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0),(x=(S=a.value)==null?void 0:S.items)!=null&&x[b]&&a.level<3?(i.openBlock(),i.createElementBlock("div",J3,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value.items[b],(k,C)=>(i.openBlock(),i.createBlock(Fn,{key:C,compact:a.compact,level:a.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0)],64)}),64))],2)}}}),jn=K(Y3,[["__scopeId","data-v-bd31a06f"]]),X3=r=>(i.pushScopeId("data-v-7f5d0941"),r=r(),i.popScopeId(),r),Q3={key:0,class:"schema-card-description"},Z3=X3(()=>i.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),eL=[Z3],tL=i.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=i.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(i.openBlock(),i.createBlock(i.unref(Le.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:i.withCtx(({open:a})=>{var l;return[i.createElementVNode("div",{class:i.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":a}]])},[(l=o.value)!=null&&l.description?(i.openBlock(),i.createElementBlock("div",Q3,[i.createVNode(i.unref($t),{value:o.value.description},null,8,["value"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["schema-properties",{"schema-properties-open":a}])},[i.withDirectives(i.createVNode(i.unref(Le.DisclosureButton),{as:o.noncollapsible?"div":"button",class:i.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:i.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:i.withCtx(()=>{var c,d,u;return[o.compact?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},eL,2)):i.createCommentVNode("",!0),a?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Hide "+i.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" Show "+i.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.value?(i.openBlock(),i.createBlock(i.unref(Me),{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":a}]),icon:"ChevronRight",size:"md"},null,8,["class"])):i.createCommentVNode("",!0),i.createVNode(sw,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[i.vShow,!(o.noncollapsible&&o.compact)]]),i.createVNode(i.unref(Le.DisclosurePanel),{static:o.noncollapsible},{default:i.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.value.properties?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return i.openBlock(),i.createBlock(jn,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):i.createCommentVNode("",!0),o.value.additionalProperties?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(i.openBlock(),i.createBlock(jn,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(i.openBlock(),i.createBlock(jn,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createBlock(jn,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):i.createCommentVNode("",!0)}}),Fn=K(tL,[["__scopeId","data-v-7f5d0941"]]),rL={class:"parameter-item"},nL={class:"parameter-item-container"},oL=i.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("li",rL,[i.createElementVNode("div",nL,[i.createVNode(i.unref(jn),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),sL=K(oL,[["__scopeId","data-v-f70ee55c"]]),iL={key:0,class:"parameters"},aL={class:"parameters-title"},lL={class:"parameter-list"},cL=i.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(i.openBlock(),i.createElementBlock("div",iL,[i.createElementVNode("div",aL,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("ul",lL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.parameters,o=>(i.openBlock(),i.createBlock(sL,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):i.createCommentVNode("",!0)}}}),Kt=K(cL,[["__scopeId","data-v-45fca787"]]),dL={key:0},uL={class:"request-body-title"},hL=["value"],fL={key:0,class:"request-body-description"},pL={key:0,class:"request-body-schema"},mL=i.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=i.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=i.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,a)=>{var l,c,d,u;return e!=null&&e.requestBody?(i.openBlock(),i.createElementBlock("div",dL,[i.createElementVNode("div",uL,[i.renderSlot(s.$slots,"title",{},void 0,!0),i.createElementVNode("div",{class:i.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[i.createElementVNode("span",null,i.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=h=>n.value=h)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:f},i.toDisplayString(f),9,hL))),128))],512)),[[i.vModelSelect,n.value]]):i.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(i.openBlock(),i.createElementBlock("div",fL,[i.createVNode(i.unref($t),{value:e.requestBody.description},null,8,["value"])])):i.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(i.openBlock(),i.createElementBlock("div",pL,[i.createVNode(i.unref(Fn),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),Xf=K(mL,[["__scopeId","data-v-e095eb63"]]),gL={class:"endpoint-details"},yL={class:"endpoint-description"},vL=i.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Uf(e),{responses:n}=Kf(e.operation);return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock("div",gL,[i.createElementVNode("div",yL,[i.createVNode(i.unref($t),{value:o.operation.description,withImages:""},null,8,["value"])]),i.createVNode(Kt,{parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).body,showChildren:""},{title:i.withCtx(()=>[i.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{parameters:i.unref(t).formData},{title:i.withCtx(()=>[i.createTextVNode("Form Data")]),_:1},8,["parameters"]),(a=o.operation.information)!=null&&a.requestBody?(i.openBlock(),i.createBlock(Xf,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"])):i.createCommentVNode("",!0),i.createVNode(Kt,{parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),bL={key:0},wL=i.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=i.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[t(a)?(i.openBlock(),i.createElementBlock("em",bL,i.toDisplayString(a),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a),1)],64))],64))),128))],2))}}),Hu=K(wL,[["__scopeId","data-v-a4eadd9b"]]);function Zi(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function kL(r){return/\s|-/.test(r)}function kr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,a]of Object.entries(r)){let l=kL(s)?`'${s}'`:s;if(Array.isArray(a)){const c=a.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?kr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(a&&typeof a=="object")t.push(`${o}${l}: ${kr(a,e+2)}`);else if(typeof a=="string"){let c=`${a}`;if(a.startsWith("JSON.stringify")){const d=a.split(`
|
|
216
216
|
`);d.length>1&&(c=d.map((u,h)=>h===0?u:`${o}${u}`).join(`
|
|
217
217
|
`))}else c=`'${a}'`;t.push(`${o}${l}: ${c}`)}else t.push(`${o}${l}: ${a}`)}return`{
|
|
218
218
|
${t.join(`,
|
|
219
219
|
`)}
|
|
220
220
|
${n}}`}function SL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
|
|
221
221
|
|
|
222
|
-
const { statusCode, body } = await request('${n.url}${a}'${l})`}}function xL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function CL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function EL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function $L(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function Kg(){const r=[SL,xL,CL,EL,$L];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const _L=i.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}i.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),i.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function a(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(i.openBlock(),i.createBlock(Yf,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:a(d),value:d}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a(o.value)),1)]),_:1},8,["modelValue","options"]))}}),iw=K(_L,[["__scopeId","data-v-652a7e14"]]),NL={class:"request-header"},AL={class:"code-snippet"},OL={key:0,class:"request-card-footer-addon"},TL=i.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,n=`components-Content-Operation-Example-Request${Ku(e.operation.path+e.operation.httpVerb+e.operation.operationId)}`,o=i.ref(Zo[n]??""),s=i.ref(),{copyToClipboard:a}=bs(),{httpClient:l,setHttpClient:c,httpTargetTitle:d,httpClientTitle:u}=Mc(),{availableTargets:h}=Ji(),{server:f}=os(),{authentication:p}=ts(),m=i.computed(()=>{var v,b,w,S,x,k,C;return((S=(w=(b=(v=e.operation.information)==null?void 0:v.requestBody)==null?void 0:b.content)==null?void 0:w["application/json"])==null?void 0:S.examples)&&Object.keys((C=(k=(x=e.operation.information)==null?void 0:x.requestBody)==null?void 0:k.content)==null?void 0:C["application/json"].examples).length>1}),y=i.inject(Ic),g=async()=>{var b;const v=h0({url:xl(f)},Nd(e.operation,{replaceVariables:!0},s.value),kh(p,((b=e.operation.information)==null?void 0:b.security)??(y==null?void 0:y())));try{return Kg().hasPlugin(l.targetKey.replace("javascript","js"),l.clientKey)?Kg().print(l.targetKey.replace("javascript","js"),l.clientKey,v)??"":await new Yg.HTTPSnippet(v).convert(l.targetKey,l.clientKey)}catch(w){return console.error("[ExampleRequest]",w),""}};return i.watch([()=>l,()=>f,()=>p,()=>s],async()=>{o.value=await g()},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const v=i.useSSRContext();await wr(1),v.payload.data[n]=o.value}),i.computed(()=>Ah({serverState:f,authenticationState:p,operation:e.operation,globalSecurity:y==null?void 0:y()})),(v,b)=>(i.openBlock(),i.createBlock(i.unref(Xi),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Yf,{class:"request-client-picker",modelValue:JSON.stringify(i.unref(l)),options:i.unref(h).map(w=>({value:w.key,label:w.title,options:w.clients.map(S=>({value:JSON.stringify({targetKey:w.key,clientKey:S.key}),label:S.title}))})),"onUpdate:modelValue":b[0]||(b[0]=w=>i.unref(c)(JSON.parse(w)))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d))+" "+i.toDisplayString(i.unref(u)),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=w=>i.unref(a)(o.value))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",NL,[i.createVNode(i.unref(to),{as:"span",class:"request-method",method:v.operation.httpVerb},null,8,["method"]),i.renderSlot(v.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(so),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createElementVNode("div",AL,[i.createVNode(i.unref(_r),{content:o.value,hideCredentials:i.unref(fv)(i.unref(p)),lang:i.unref(l).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),m.value||v.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"request-card-footer",contrast:""},{default:i.withCtx(()=>{var w,S,x,k;return[m.value?(i.openBlock(),i.createElementBlock("div",OL,[i.createVNode(iw,{class:"request-example-selector",examples:((k=(x=(S=(w=v.operation.information)==null?void 0:w.requestBody)==null?void 0:S.content)==null?void 0:x["application/json"])==null?void 0:k.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=C=>s.value=C)},null,8,["examples"])])):i.createCommentVNode("",!0),i.renderSlot(v.$slots,"footer",{},void 0,!0)]}),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),aw=K(TL,[["__scopeId","data-v-317d5c87"]]),BL={key:0},PL={key:1},IL={key:0,class:"rule"},ML={class:"rule-title"},DL={class:"rule-items"},VL={key:2,class:"empty-state"},RL=i.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,a,l,c,d,u,h;return(s=n.response)!=null&&s.example?(i.openBlock(),i.createElementBlock("div",BL,[i.createVNode(i.unref(_r),{content:i.unref(di)((a=n.response)==null?void 0:a.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(i.openBlock(),i.createElementBlock("div",PL,[(c=n.response)!=null&&c.schema.type?(i.openBlock(),i.createBlock(i.unref(_r),{key:0,content:i.unref(di)(i.unref(Ue)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,f=>{var p,m,y,g,v,b;return i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((m=n.response)==null?void 0:m.schema[f].length)>1||f==="not")?(i.openBlock(),i.createElementBlock("div",IL,[i.createElementVNode("div",ML,i.toDisplayString(f),1),i.createElementVNode("ol",DL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((y=n.response)==null?void 0:y.schema[f],(w,S)=>(i.openBlock(),i.createElementBlock("li",{key:S,class:"rule-item"},[i.createVNode(i.unref(_r),{content:i.unref(Ue)(w,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=n.response)!=null&&g.schema[f]&&((v=n.response)==null?void 0:v.schema[f].length)===1?(i.openBlock(),i.createBlock(i.unref(_r),{key:1,content:i.unref(Ue)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(i.openBlock(),i.createBlock(i.unref(_r),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>i.unref(Ue)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",VL," No Body "))}}}),Wg=K(RL,[["__scopeId","data-v-800e8c7d"]]),LL=r=>(i.pushScopeId("data-v-314905de"),r=r(),i.popScopeId(),r),jL={key:1,class:"scalar-card-checkbox"},FL=LL(()=>i.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),qL={class:"scalar-card-container custom-scroll"},zL={key:1,class:"response-description"},HL=i.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=bs(),n=i.ref(),o=i.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(m=>m==="default"?-1:0)}),s=i.computed(()=>!!c.value.examples),a=i.ref(0),l=i.computed(()=>{var p,m;const f=o.value[a.value];return(m=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:m[f]}),c=i.computed(()=>{var p;const f=p0((p=l.value)==null?void 0:p.content);return(f==null?void 0:f["application/json"])??(f==null?void 0:f["text/plain"])??l.value}),d=i.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value].value??c.value.examples[n.value]:c.value.example})),u=f=>{a.value=f},h=i.ref(!1);return(f,p)=>o.value.length?(i.openBlock(),i.createBlock(i.unref(Xi),{key:0},{default:i.withCtx(()=>{var m;return[i.createVNode(i.unref(nw),{muted:"",x:"as",onChange:u},{actions:i.withCtx(()=>{var y,g;return[(y=c.value)!=null&&y.example?(i.openBlock(),i.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var v;return i.unref(t)((v=c.value)==null?void 0:v.example)})},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px",x:"asd"})])):i.createCommentVNode("",!0),(g=c.value)!=null&&g.schema?(i.openBlock(),i.createElementBlock("label",jL,[i.createTextVNode(" Show Schema "),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>h.value=v),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[i.vModelCheckbox,h.value]]),FL])):i.createCommentVNode("",!0)]}),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,y=>(i.openBlock(),i.createBlock(i.unref(ow),{key:y},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(y),1)]),_:2},1024))),128))]),_:1}),i.createElementVNode("div",qL,[i.createVNode(i.unref(so),{muted:""},{default:i.withCtx(()=>{var y;return[(y=c.value)!=null&&y.schema?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.value&&d.value?(i.openBlock(),i.createBlock(i.unref(_r),{key:0,content:d.value,lang:"json"},null,8,["content"])):(i.openBlock(),i.createBlock(Wg,{key:1,response:d.value},null,8,["response"]))],64)):(i.openBlock(),i.createBlock(Wg,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(m=l.value)!=null&&m.description||s.value?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"response-card-footer",muted:""},{default:i.withCtx(()=>{var y,g;return[s.value?(i.openBlock(),i.createBlock(iw,{key:0,class:"response-example-selector",examples:(y=c.value)==null?void 0:y.examples,"onUpdate:modelValue":p[2]||(p[2]=v=>n.value=v)},null,8,["examples"])):(g=l.value)!=null&&g.description?(i.openBlock(),i.createElementBlock("div",zL,[i.createVNode(i.unref($t),{class:"markdown",value:l.value.description},null,8,["value"])])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)}}),lw=K(HL,[["__scopeId","data-v-314905de"]]),UL=r=>(i.pushScopeId("data-v-f44e2b65"),r=r(),i.popScopeId(),r),KL=UL(()=>i.createElementVNode("span",null,"Test Request",-1)),WL=i.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=i.inject(Ic);return(t,n)=>(i.openBlock(),i.createBlock(i.unref(to),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,type:"button",onClick:n[0]||(n[0]=i.withModifiers(o=>{var s;return i.unref(Cl)(t.operation,(s=i.unref(e))==null?void 0:s())},["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{icon:"PaperAirplane"}),KL]),_:1},8,["method"]))}}),Uu=K(WL,[["__scopeId","data-v-f44e2b65"]]),GL={class:"examples"},JL=i.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,t=i.computed(()=>{var o;const n=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of n)if((o=e.operation.information)!=null&&o[s])return e.operation.information[s];return null});return(n,o)=>(i.openBlock(),i.createBlock(i.unref(ws),{id:n.id,label:n.operation.name},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>{var s,a;return[(s=n.operation.information)!=null&&s.deprecated?(i.openBlock(),i.createBlock(i.unref(Ni),{key:0},{default:i.withCtx(()=>[i.createTextVNode(" Deprecated ")]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass((a=n.operation.information)!=null&&a.deprecated?"deprecated":"")},[i.createVNode(i.unref(vn),{level:3},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:n.id??""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.operation.name),1)]),_:1},8,["id"])]),_:1})],2),i.createVNode(vL,{operation:n.operation},null,8,["operation"])]}),_:1}),i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createElementVNode("div",GL,[t.value?(i.openBlock(),i.createBlock(b3,{key:0,examples:t.value,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(Hu,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Uu,{operation:n.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(i.openBlock(),i.createBlock(aw,{key:1,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(Hu,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Uu,{operation:n.operation},null,8,["operation"])]),_:1},8,["operation"])),i.createVNode(i.unref(lw),{operation:n.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),cw=K(JL,[["__scopeId","data-v-9cd31f5d"]]),YL={class:"endpoint-details-card"},XL=i.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Uf(e),{responses:n}=Kf(e.operation);return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",YL,[i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Xf,{class:"endpoint-details-card-item",requestBody:(a=o.operation.information)==null?void 0:a.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),QL=K(XL,[["__scopeId","data-v-f94bee14"]]),ZL={class:"endpoint-header"},ej={class:"endpoint-details"},tj={class:"endpoint-label"},rj={class:"endpoint-label-path"},nj={class:"endpoint-label-name"},oj={class:"endpoint-content"},sj=i.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=bs();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(Z1),{id:t.id,class:"reference-endpoint",transparent:""},i.createSlots({title:i.withCtx(()=>[i.createElementVNode("h3",ZL,[i.createElementVNode("div",ej,[i.createVNode(i.unref(to),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),i.createVNode(i.unref(bn),{id:t.id??"",class:"endpoint-anchor"},{default:i.withCtx(()=>{var o;return[i.createElementVNode("div",tj,[i.createElementVNode("div",rj,[i.createVNode(Hu,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),i.createElementVNode("div",nj,i.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:i.withCtx(({active:o})=>[o?(i.openBlock(),i.createBlock(Uu,{key:0,operation:t.operation},null,8,["operation"])):(i.openBlock(),i.createBlock(i.unref(Me),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),i.createVNode(i.unref(Mi),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:n[0]||(n[0]=i.withModifiers(s=>i.unref(e)(t.operation.path),["stop"]))})]),default:i.withCtx(()=>[i.createElementVNode("div",oj,[i.createVNode(QL,{operation:t.operation},null,8,["operation"]),i.createVNode(i.unref(lw),{operation:t.operation},null,8,["operation"]),i.createVNode(aw,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:i.withCtx(()=>[i.createVNode(i.unref($t),{value:t.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),ij=K(sj,[["__scopeId","data-v-f61893df"]]),aj=i.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>i.unref(e)(t.id,!0))},[i.createTextVNode(" Show More "),i.createVNode(i.unref(Me),{class:"show-more-icon",icon:"ChevronDown"})]))}}),dw=K(aj,[["__scopeId","data-v-60a9fbab"]]),lj={class:"endpoints"},cj=["onClick"],dj=i.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(r,{emit:e}){const t=r,n=e,{getOperationId:o,getTagId:s}=lt(),{setCollapsedSidebarItem:a}=tr(),l=d=>{n("observeAndNavigate",d)};async function c(d){l(o(d,t.tag)),a(s(t.tag),!0)}return(d,u)=>(i.openBlock(),i.createBlock(i.unref(ws),{id:d.id,label:d.tag.name.toUpperCase()},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(s)(d.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.tag["x-displayName"]??d.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref($t),{value:d.tag.description,withImages:""},null,8,["value"])]),_:1}),i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>{var h;return[((h=d.tag.operations)==null?void 0:h.length)>0?(i.openBlock(),i.createBlock(i.unref(Xi),{key:0,class:"scalar-card-sticky"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{default:i.withCtx(()=>[i.createTextVNode("Endpoints")]),_:1}),i.createVNode(i.unref(so),{class:"custom-scroll",muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",lj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.tag.operations,f=>(i.openBlock(),i.createElementBlock("a",{key:i.unref(o)(f,d.tag),class:"endpoint",onClick:p=>c(f)},[i.createVNode(i.unref(to),{method:f.httpVerb},null,8,["method"]),i.createElementVNode("span",null,i.toDisplayString(f.path),1)],8,cj))),128))])]),_:1})]),_:1})):i.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),uj=K(dj,[["__scopeId","data-v-b209ef2d"]]),hj=(r,e)=>{Xe.useMutationObserver(r,e,{childList:!0,subtree:!0})},fj=i.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,t=i.ref(null),{collapsedSidebarItems:n}=tr(),{getTagId:o}=lt(),s=d=>{var u;return((u=e.spec.tags)==null?void 0:u.length)!==1||(d==null?void 0:d.name)!=="default"||(d==null?void 0:d.description)!==""},a=d=>{window.location.href=`#${d}`},l=d=>{hj(t,(u,h)=>{u.forEach(f=>{Array.from(f.addedNodes).some(m=>m instanceof HTMLElement&&m.id===d)&&(a(d),h.disconnect())})})},c=d=>{document.getElementById(d)?a(d):l(d)};return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Yi),{ref_key:"sectionContainerRef",ref:t,class:"tag-section-container"},{default:i.withCtx(()=>{var h;return[s(d.tag)?(i.openBlock(),i.createBlock(uj,{key:0,id:d.id,tag:d.tag,onObserveAndNavigate:c},null,8,["id","tag"])):i.createCommentVNode("",!0),!i.unref(n)[i.unref(o)(d.tag)]&&((h=d.tag.operations)==null?void 0:h.length)>1?(i.openBlock(),i.createBlock(dw,{key:1,id:d.id??""},null,8,["id"])):i.renderSlot(d.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),uw=K(fj,[["__scopeId","data-v-7fef7ce7"]]),pj=i.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=lt();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(ew),{class:"tag-section"},{title:i.withCtx(()=>[i.createVNode(i.unref(vn),{class:"tag-name",level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(e)(t.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref($t),{class:"tag-description",value:t.tag.description,withImages:""},null,8,["value"])]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),mj=K(pj,[["__scopeId","data-v-f11e3b56"]]),gj=i.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(r){const e=r,t=i.ref(!1),n=i.ref([]),o=i.ref([]),{getModelId:s,getSectionId:a,getTagId:l,hash:c,isIntersectionEnabled:d}=lt(),u=i.ref(e.layout!=="accordion"&&c.value);i.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var m,y;if(!c.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=a();if(p.startsWith("tag")){let g=0;const v=((m=e.parsedSpec.tags)==null?void 0:m.findIndex(S=>l(S)===p))??0,b=c.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((b==null?void 0:b.length)===4){const S=b[2],x="/"+b[3];g=(y=e.parsedSpec.tags[v])==null?void 0:y.operations.findIndex(({httpVerb:k,path:C})=>S===k&&x===C)}const w=e.parsedSpec.tags[v];if(!w)return;w.name!=="default"&&(t.value=p!==c.value&&p.startsWith("tag")),n.value.push({...w,lazyOperations:w.operations.slice(g,g+2)})}else if(c.value.startsWith("model")){const g=Object.keys(Jt(e.parsedSpec)??{}),[,v]=c.value.toLowerCase().split("/"),b=c.value==="models"?0:g.findIndex(w=>w.toLowerCase()===v);if(b===-1)return;o.value=g.slice(b,b+3)}else _i(c.value),setTimeout(()=>d.value=!0,1e3)},{immediate:!0});const h=zu.on(({id:f})=>{const p=c.value;!p||f!==p||(h(),setTimeout(()=>{typeof window<"u"&&_i(p),u.value=!1,setTimeout(()=>d.value=!0,1e3)},300))});return i.onMounted(()=>{c.value||setTimeout(()=>d.value=!0,1e3)}),(f,p)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":n.value.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[m.operations&&m.operations.length>0?(i.openBlock(),i.createBlock(i.unref(uw),{key:0,spec:f.parsedSpec,tag:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.lazyOperations,y=>(i.openBlock(),i.createBlock(i.unref(cw),{key:`${y.httpVerb}-${y.operationId}`,operation:y,tag:m},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):i.createCommentVNode("",!0)],64))),128)),o.value.length?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(i.unref(ws),{key:m,label:m},{default:i.withCtx(()=>{var y;return[(y=i.unref(Jt)(f.parsedSpec))!=null&&y[m]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>{var g;return[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(s)(m)},{default:i.withCtx(()=>{var v;return[i.createTextVNode(i.toDisplayString(((v=i.unref(Jt)(f.parsedSpec))==null?void 0:v[m]).title??m),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(Fn),{name:m,noncollapsible:"",value:(g=i.unref(Jt)(f.parsedSpec))==null?void 0:g[m]},null,8,["name","value"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):i.createCommentVNode("",!0)],2)),[[i.vShow,u.value]])}}),yj=r=>(i.pushScopeId("data-v-f19478dd"),r=r(),i.popScopeId(),r),vj=yj(()=>i.createElementVNode("div",{id:"models"},null,-1)),bj=i.defineComponent({__name:"Models",props:{schemas:{}},setup(r){const e=r,{collapsedSidebarItems:t}=tr(),{getModelId:n}=lt(),o=i.computed(()=>Object.keys(e.schemas??{}).length<=3||t[n()]),s=i.computed(()=>{const a=Object.keys(e.schemas??{});return o.value?a:a.slice(0,3)});return(a,l)=>a.schemas?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Vl),{id:"models",isLazy:!1},{default:i.withCtx(()=>[vj]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(c,d)=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(n)(c),key:c,isLazy:""},{default:i.withCtx(()=>[i.createVNode(i.unref(ws),{id:i.unref(n)(c),label:c},{default:i.withCtx(()=>[a.schemas[c]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(c)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.schemas[c].title??c),1)]),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(Fn),{name:c,noncollapsible:"",value:a.schemas[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(i.openBlock(),i.createBlock(dw,{key:0,id:i.unref(n)(),class:"something-special"},null,8,["id"])):i.createCommentVNode("",!0)]),_:2},1024)):i.createCommentVNode("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),wj=K(bj,[["__scopeId","data-v-f19478dd"]]),kj={key:0,class:"properties"},Sj={key:1},xj=i.defineComponent({__name:"ModelsAccordion",props:{schemas:{}},setup(r){const e=r,t=i.computed(()=>e.schemas?Object.entries(e.schemas).map(([o,s])=>({name:o,schema:s})):[]),{getModelId:n}=lt();return(o,s)=>e.schemas?(i.openBlock(),i.createBlock(i.unref(ew),{key:0,class:"reference-models"},{title:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createTextVNode("Models")]),_:1})]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,({name:a,schema:l})=>(i.openBlock(),i.createBlock(i.unref(Z1),{id:i.unref(n)(a),key:a,label:a},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(a),class:"reference-models-anchor"},{default:i.withCtx(()=>[i.createVNode(i.unref(sw),{class:"reference-models-label",name:a,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:i.withCtx(()=>[l!=null&&l.properties?(i.openBlock(),i.createElementBlock("div",kj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(l.properties),([c,d])=>(i.openBlock(),i.createBlock(i.unref(jn),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(i.openBlock(),i.createElementBlock("div",Sj,[i.createVNode(i.unref(jn),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),Cj=K(xj,[["__scopeId","data-v-2399f144"]]),Ej=i.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Kf(e.webhook);return(n,o)=>{var s;return n.webhook?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Xf,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Payload")]),_:1},8,["requestBody"]),i.createVNode(Kt,{parameters:i.unref(t)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):i.createCommentVNode("",!0)}}}),$j=i.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=i.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=lt();return(o,s)=>t.value.length?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,a=>{var l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:a},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys((l=o.webhooks)==null?void 0:l[a]),c=>(i.openBlock(),i.createBlock(i.unref(ws),{id:i.unref(n)(a,c),key:c,label:a},{default:i.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[a]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>{var u,h;return[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(a,c)},{default:i.withCtx(()=>{var f;return[i.createTextVNode(i.toDisplayString((f=o.webhooks[a][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[a][c])!=null&&u.description?(i.openBlock(),i.createBlock(i.unref($t),{key:0,value:(h=o.webhooks[a][c])==null?void 0:h.description,withImages:""},null,8,["value"])):i.createCommentVNode("",!0),i.createVNode(Ej,{webhook:o.webhooks[a][c]},null,8,["webhook"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):i.createCommentVNode("",!0)}}),_j=i.createStaticVNode('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),Nj={class:"narrow-references-container"},Aj=i.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(r){const e=r,{getOperationId:t,getTagId:n,hash:o}=lt(),{setServer:s}=os(),{hideModels:a,collapsedSidebarItems:l}=tr(),c=p=>{if(p.url.match(/^(?!(https?|file):\/\/|{).+/)){let m=e.baseServerURL??window.location.origin;m=m.replace(/\/$/,"");const y=p.url.startsWith("/")?p.url:`/${p.url}`;p.url=`${m}${y}`.replace(/\/$/,"")}return p};i.watch(()=>e.parsedSpec,p=>{var y,g;let m=[{url:typeof window<"u"?window.location.origin:"/"}];p.servers&&p.servers.length>0?m=p.servers:e.parsedSpec.host&&(m=[{url:`${((y=e.parsedSpec.schemes)==null?void 0:y[0])??"http"}://${e.parsedSpec.host}${((g=e.parsedSpec)==null?void 0:g.basePath)??""}`}]),(e.baseServerURL||typeof window<"u")&&(m=m.map(c)),s({servers:m})},{deep:!0,immediate:!0});const d=i.computed(()=>e.layout==="accordion"?mj:uw),u=i.computed(()=>e.layout==="accordion"?ij:cw),h=i.computed(()=>e.layout==="accordion"?"after":"aside"),f=e.layout!=="accordion"&&!o.value.startsWith("model");return(p,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[_j,i.createElementVNode("div",Nj,[i.renderSlot(p.$slots,"start",{},void 0,!0),i.createVNode(i.unref(gj),{layout:p.layout,parsedSpec:p.parsedSpec},null,8,["layout","parsedSpec"]),p.parsedSpec.info.title||p.parsedSpec.info.description?(i.openBlock(),i.createBlock(i.unref(WR),{key:0,info:p.parsedSpec.info,parsedSpec:p.parsedSpec},{[h.value]:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["introduction-card",{"introduction-card-row":p.layout==="accordion"}])},[i.createVNode(i.unref(JV)),i.createVNode(i.unref(xV),{parsedSpec:p.parsedSpec},null,8,["parsedSpec"]),i.createVNode(i.unref(uR))],2)]),_:2},1032,["info","parsedSpec"])):i.renderSlot(p.$slots,"empty-state",{key:1},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.parsedSpec.tags,y=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(n)(y),key:i.unref(n)(y),isLazy:i.unref(f)&&!i.unref(l)[i.unref(n)(y)]},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value),{id:i.unref(n)(y),spec:p.parsedSpec,tag:y},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.operations,(g,v)=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(t)(g,y),key:`${g.httpVerb}-${g.operationId}`,isLazy:v>0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),{id:i.unref(t)(g,y),operation:g,tag:y},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),p.parsedSpec.webhooks?(i.openBlock(),i.createBlock(i.unref($j),{key:2,webhooks:p.parsedSpec.webhooks},null,8,["webhooks"])):i.createCommentVNode("",!0),i.unref(Th)(p.parsedSpec)&&!i.unref(a)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[p.layout==="accordion"?(i.openBlock(),i.createBlock(i.unref(Cj),{key:0,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"])):(i.openBlock(),i.createBlock(i.unref(wj),{key:1,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"]))],64)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"end",{},void 0,!0)])],64))}}),hw=K(Aj,[["__scopeId","data-v-09a6c646"]]),Oj=r=>(i.pushScopeId("data-v-391b4e37"),r=r(),i.popScopeId(),r),Tj={class:"start custom-scroll"},Bj={class:"start-copy"},Pj=i.createStaticVNode('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),Ij={class:"start-cta"},Mj={class:"start-row"},Dj=i.createStaticVNode('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Vj={class:"start-section start-section-colors"},Rj=Oj(()=>i.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),Lj=["onClick"],jj=i.createStaticVNode('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Fj=i.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function o(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");t("updateContent",await s.text())}return(s,a)=>(i.openBlock(),i.createElementBlock("div",Tj,[i.createElementVNode("div",Bj,[Pj,i.createElementVNode("div",Ij,[i.createVNode(i.unref(yu),{fullWidth:"",onClick:o},{default:i.withCtx(()=>[i.createTextVNode(" Show Example ")]),_:1}),i.createVNode(i.unref(yu),{fullWidth:"",variant:"outlined",onClick:a[0]||(a[0]=l=>s.$emit("loadSwaggerFile"))},{default:i.withCtx(()=>[i.createTextVNode(" Upload File ")]),_:1})])]),i.createElementVNode("div",Mj,[Dj,i.createElementVNode("div",Vj,[Rj,(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,l=>i.createElementVNode("div",{key:l,class:i.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",{id:l,label:i.unref(fp)[l]})},i.toDisplayString(i.unref(fp)[l]),11,Lj)),64))])]),jj]))}}),fw=K(Fj,[["__scopeId","data-v-391b4e37"]]),qj={class:"references-header"},zj={key:0,class:"references-navigation t-doc__sidebar"},Hj={class:"references-navigation-list"},Uj={class:"references-editor"},Kj={class:"references-editor-textarea"},Wj={class:"references-rendered"},Gj={key:0,class:"references-footer"},Jj=i.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(min-width: 1150px)"),n=i.ref("100dvh"),o=i.ref(null);Xe.useResizeObserver(o,k=>{n.value=k[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:a,isSidebarOpen:l,setCollapsedSidebarItem:c,hideModels:d,setParsedSpec:u}=tr(),{getPathRoutingId:h,getSectionId:f,getTagId:p,hash:m,isIntersectionEnabled:y,pathRouting:g,updateHash:v}=lt();g.value=e.configuration.pathRouting,i.onBeforeMount(()=>v());const b=async k=>{var C;y.value=!1,v(),k?_i(k):(C=o.value)==null||C.scrollTo(0,0),await wr(100),y.value=!0};i.onMounted(()=>{zf.on(({specTitle:k})=>{V1(e.rawSpec,k)}),window.onhashchange=()=>b(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&b(h(window.location.pathname))});const w=i.computed(()=>t.value||!e.configuration.isEditable),S=Xe.useDebounceFn(k=>{if((k.target.scrollTop??0)<50){const N=e.configuration.pathRouting?e.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",N+window.location.search),m.value=""}}),x=i.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return i.watch(()=>e.parsedSpec,u,{deep:!0}),i.onServerPrefetch(()=>{var C,N;const k=i.useSSRContext();if(k&&((C=k.payload).data||(C.data=Cd()),e.configuration.pathRouting)){const P=h(k.url);m.value=P,k.payload.data.hash=P;for(const M in a)Object.hasOwn(a,M)&&delete a[M];if(P)c(f(P),!0);else{const M=(N=e.parsedSpec.tags)==null?void 0:N[0];M&&c(p(M),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=a}}),Le.provideUseId(()=>{var P;const k=i.getCurrentInstance(),C="scalar-instance-id";if(!k)return C;let N=k.uid;return typeof window>"u"?(k.attrs||(k.attrs={}),k.attrs[C]=N):(P=k.vnode.el)!=null&&P.getAttribute&&(N=k.vnode.el.getAttribute(C)),`${C}-${N}`}),i.provide(Ic,()=>e.parsedSpec.security),i.provide(qf,()=>e.configuration.hideDownloadButton),d.value=e.configuration.hideModels??!1,T5(e.configuration),(k,C)=>{var N,P;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(Qg),{id:(N=k.configuration)==null?void 0:N.theme,withDefaultFonts:(P=k.configuration)==null?void 0:P.withDefaultFonts},null,8,["id","withDefaultFonts"]),i.createVNode(i.unref(e0),null,{default:i.withCtx(({styles:M})=>[i.createVNode(i.unref(lk),null,{default:i.withCtx(({styles:j})=>{var I,X;return[i.createElementVNode("div",{ref_key:"documentEl",ref:o,class:i.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":k.configuration.isEditable,"references-sidebar":k.configuration.showSidebar,"references-sidebar-mobile-open":i.unref(l),"references-classic":k.configuration.layout==="classic"},M,j,k.$attrs.class]]),style:i.normalizeStyle({"--full-height":n.value}),onScrollPassive:C[4]||(C[4]=(...W)=>i.unref(S)&&i.unref(S)(...W))},[i.createElementVNode("div",qj,[i.renderSlot(k.$slots,"header",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),k.configuration.showSidebar?(i.openBlock(),i.createElementBlock("aside",zj,[i.createElementVNode("div",Hj,[i.createVNode(i.unref(Wf),{parsedSpec:k.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Uj,[i.createElementVNode("div",Kj,[i.renderSlot(k.$slots,"editor",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])],512),[[i.vShow,k.configuration.isEditable]]),w.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Wj,[i.createVNode(i.unref(hw),{baseServerURL:k.configuration.baseServerURL,layout:k.configuration.layout==="classic"?"accordion":"default",parsedSpec:k.parsedSpec},i.createSlots({start:i.withCtx(()=>[i.renderSlot(k.$slots,"content-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),end:i.withCtx(()=>[i.renderSlot(k.$slots,"content-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:2},[(I=k.configuration)!=null&&I.isEditable?{name:"empty-state",fn:i.withCtx(()=>{var W;return[i.createVNode(fw,{theme:((W=k.configuration)==null?void 0:W.theme)||"default",onChangeTheme:C[0]||(C[0]=te=>k.$emit("changeTheme",te)),onLinkSwaggerFile:C[1]||(C[1]=te=>k.$emit("linkSwaggerFile")),onLoadSwaggerFile:C[2]||(C[2]=te=>k.$emit("loadSwaggerFile")),onUpdateContent:C[3]||(C[3]=te=>k.$emit("updateContent",te))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),k.$slots.footer?(i.openBlock(),i.createElementBlock("div",Gj,[i.renderSlot(k.$slots,"footer",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(G1,{parsedSpec:k.parsedSpec,proxyUrl:(X=k.configuration)==null?void 0:X.proxy},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),i.createVNode(i.unref(N5))],64)}}}),Qf=K(Jj,[["__scopeId","data-v-ce46649f"]]),Yj={},Xj={class:"references-classic-header-container"},Qj={class:"references-classic-header"};function Zj(r,e){return i.openBlock(),i.createElementBlock("div",Xj,[i.createElementVNode("div",Qj,[i.renderSlot(r.$slots,"default",{},void 0,!0),i.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const e4=K(Yj,[["render",Zj],["__scopeId","data-v-a860f78f"]]),t4=r=>(i.pushScopeId("data-v-559a0a79"),r=r(),i.popScopeId(),r),r4={class:"darklight-reference"},n4={key:0},o4={key:1},s4=t4(()=>i.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),i4=i.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",r4,[i.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:"LightDarkModeToggle"}),e.isDarkMode?(i.openBlock(),i.createElementBlock("span",n4,"Light Mode")):(i.openBlock(),i.createElementBlock("span",o4,"Dark Mode"))]),s4]))}}),pw=K(i4,[["__scopeId","data-v-559a0a79"]]),a4=i.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),i.createVNode(rw,null,{default:i.withCtx(()=>[i.createTextVNode(" Switch to "+i.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),mw=K(a4,[["__scopeId","data-v-8f61ca56"]]);function l4(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function c4(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(l4(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function d4(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return c4(o)}catch{return!1}}const u4=r=>(i.pushScopeId("data-v-3445e6c6"),r=r(),i.popScopeId(),r),h4=u4(()=>i.createElementVNode("div",{class:"ref-search-meta"},[i.createElementVNode("span",null,"↑↓ Navigate"),i.createElementVNode("span",null,"⏎ Select")],-1)),f4=i.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=i.toRef(e,"parsedSpec"),n={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},o=Xe.useMagicKeys(),s=i.ref([]),a=i.ref([]),l=i.ref(0),c=i.ref(""),d=i.ref(null),u=new qw(s.value,{keys:["title","description","body"]}),h=()=>{l.value=0,a.value=u.search(c.value)},f=i.computed(()=>S.value[l.value]),{getHeadingId:p,getWebhookId:m,getModelId:y,getOperationId:g,getTagId:v}=lt();i.watch(()=>e.modalState.open,N=>{N&&(c.value="",l.value=0,a.value=[])});const{setCollapsedSidebarItem:b,hideModels:w}=tr();i.watch(t.value,async()=>{var W,te,me,ke,Se;if(s.value=[],!((te=(W=e.parsedSpec)==null?void 0:W.tags)!=null&&te.length)&&!((me=e.parsedSpec)!=null&&me.webhooks)){u.setCollection([]);return}const N=[],P=await ki(((ke=e.parsedSpec.info)==null?void 0:ke.description)??"");P.length&&(P.forEach(se=>{N.push({type:"heading",title:`Info > ${se.value}`,description:"",href:`#${p(se)}`,tag:se.slug,body:""})}),s.value=s.value.concat(N)),(Se=e.parsedSpec.tags)==null||Se.forEach(se=>{const q={title:se["x-displayName"]??se.name,href:`#${v(se)}`,description:se.description,type:"tag",tag:se.name,body:""};s.value.push(q),se.operations&&se.operations.forEach(T=>{const{parameterMap:V}=Uf({operation:T}),D=d4(T)||V.value;let E=null;typeof D!="boolean"&&(E=D);const A={type:"req",title:T.name??T.path,href:`#${g(T,se)}`,operationId:T.operationId,description:T.description??"",httpVerb:T.httpVerb,path:T.path,tag:se.name,operation:T};E&&(A.body=E),s.value.push(A)})});const M=e.parsedSpec.webhooks,j=[];M&&Object.keys(M).forEach(se=>{Object.keys(M[se]).forEach(T=>{var V;j.push({type:"webhook",title:`Webhook: ${(V=M[se][T])==null?void 0:V.name}`,href:`#${m(se,T)}`,description:se,httpVerb:T,tag:se,body:""})}),s.value=s.value.concat(j)});const I=w.value?{}:Jt(e.parsedSpec),X=[];I&&(Object.keys(I).forEach(se=>{X.push({type:"model",title:"Model",href:`#${y(se)}`,description:I[se].title??se,tag:se,body:""})}),s.value=s.value.concat(X)),u.setCollection(s.value)},{immediate:!0}),Xe.whenever(o.enter,()=>{e.modalState.open&&window&&(k(f.value),window.location.hash=f.value.item.href,e.modalState.hide())}),Xe.whenever(o.ArrowDown,()=>{var N;e.modalState.open&&window&&(l.value<S.value.length-1?l.value++:l.value=0,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))}),Xe.whenever(o.ArrowUp,()=>{var N;e.modalState.open&&window&&(l.value>0?l.value--:l.value=S.value.length-1,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))});const S=i.computed(()=>c.value.length===0?s.value.map(N=>({item:N})):a.value),x=/#(tag\/[^/]*)/,k=N=>{let P="models";const M=N.item.href.match(x);M!=null&&M.length&&M.length>1&&(P=M[1]),b(P,!0),e.modalState.hide()};function C(N){const P=new URL(window.location.href);return P.hash=N,P.toString()}return(N,P)=>(i.openBlock(),i.createBlock(i.unref(cv),{state:N.modalState,variant:"search"},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"searchModalRef",ref:d,class:"ref-search-container"},[i.createVNode(i.unref(C$),{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=M=>c.value=M),onInput:h},null,8,["modelValue"])],512),i.createVNode(i.unref($$),{class:"ref-search-results custom-scroll",noResults:!S.value.length},{query:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(S.value,(M,j)=>(i.openBlock(),i.createBlock(i.unref(I$),{id:M.item.href,key:M.refIndex,active:l.value===j,href:C(M.item.href),icon:n[M.item.type],onClick:I=>k(M),onFocus:I=>l.value=j},i.createSlots({default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.title)+" ",1)]),_:2},[(M.item.httpVerb||M.item.path)&&M.item.path!==M.item.title?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.path),1)]),key:"0"}:M.item.description?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.description),1)]),key:"1"}:void 0,M.item.type==="req"?{name:"addon",fn:i.withCtx(()=>[i.createVNode(W1,{method:M.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),h4]),_:1},8,["state"]))}}),gw=K(f4,[["__scopeId","data-v-3445e6c6"]]),p4=r=>(i.pushScopeId("data-v-edb0a931"),r=r(),i.popScopeId(),r),m4={class:"sidebar-search-input"},g4=p4(()=>i.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),y4={class:"sidebar-search-shortcut"},v4={class:"sidebar-search-key"},b4=i.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=dv(),n=Xe.useMagicKeys({passive:!1,onEventFired(o){!Ja()&&o.ctrlKey&&o.key===e.searchHotKey&&(o.preventDefault(),o.stopPropagation())}});return Xe.whenever(n[`${Ja()?"meta":"control"}_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("button",{class:i.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...a)=>i.unref(t).show&&i.unref(t).show(...a))},[i.createVNode(i.unref(Me),{class:"search-icon",icon:"Search",size:"sm"}),i.createElementVNode("div",m4,[g4,i.createElementVNode("span",y4,[i.createElementVNode("span",v4,i.toDisplayString(i.unref(Ja)()?"⌘":"⌃")+i.toDisplayString(o.searchHotKey),1)])])],2),i.createVNode(gw,{modalState:i.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),Zf=K(b4,[["__scopeId","data-v-edb0a931"]]),w4=i.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(i.openBlock(),i.createBlock(Qf,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":i.withCtx(({spec:s})=>[i.createVNode(e4,null,{"dark-mode-toggle":i.withCtx(()=>[i.createVNode(i.unref(mw),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=a=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:i.withCtx(()=>[i.createVNode(Zf,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":i.withCtx(()=>[i.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),k4={class:"references-mobile-header t-doc__header"},S4={class:"references-mobile-breadcrumbs"},x4={class:"references-mobile-header-actions"},C4=i.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("div",k4,[i.createVNode(i.unref(Mi),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),i.createElementVNode("span",S4,i.toDisplayString(i.unref(e)),1),i.createElementVNode("div",x4,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),E4=K(C4,[["__scopeId","data-v-0242e3de"]]),$4={class:"scalar-api-references-standalone-search"},_4=i.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(max-width: 1000px)"),{isSidebarOpen:n}=tr();i.watch(t,(s,a)=>{s&&!a&&(n.value=!1)});const{hash:o}=lt();return i.watch(o,(s,a)=>{s&&s!==a&&(n.value=!1)}),(s,a)=>(i.openBlock(),i.createBlock(Qf,{class:i.normalizeClass({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:i.withCtx(()=>[e.configuration.showSidebar?(i.openBlock(),i.createBlock(E4,{key:0,open:i.unref(n),"onUpdate:open":a[0]||(a[0]=l=>i.isRef(n)?n.value=l:null)},null,8,["open"])):i.createCommentVNode("",!0)]),"sidebar-start":i.withCtx(({spec:l})=>{var c;return[i.createElementVNode("div",$4,[i.createVNode(Zf,{searchHotKey:(c=e.configuration)==null?void 0:c.searchHotKey,spec:l},null,8,["searchHotKey","spec"])])]}),"sidebar-end":i.withCtx(()=>[i.createVNode(i.unref(pw),{isDarkMode:s.isDark,onToggleDarkMode:a[1]||(a[1]=l=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":i.withCtx(()=>[i.renderSlot(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),yw=K(_4,[["__scopeId","data-v-333fecad"]]),N4={modern:yw,classic:w4},vw=i.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=A5((h=e.configuration)==null?void 0:h.darkMode);i.watch(()=>{var p;return(p=e.configuration)==null?void 0:p.darkMode},p=>{p!==n.value&&t()});const o=i.computed(()=>{var p,m;if((p=e.configuration)!=null&&p.customCss)return dk((m=e.configuration)==null?void 0:m.customCss)});i.watch(o,()=>console.log(o.value));const s=i.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration,customCss:o.value}});(f=s.value)!=null&&f.metaData&&(hp.createHead(),hp.useSeoMeta(s.value.metaData));function a(p,m){i.watch(()=>{var y;return(y=s.value)==null?void 0:y[p]},y=>{typeof y<"u"&&m(y)},{immediate:!0})}const{setAuthentication:l}=ts();a("authentication",l);const{setExcludedClients:c}=Ji();a("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=z1({proxy:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,m)=>{var y,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(y=s.value)!=null&&y.customCss?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.value.customCss),1)]),_:1})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(N4)[((g=s.value)==null?void 0:g.layout)||"modern"]),{configuration:s.value,isDark:i.unref(n),parsedSpec:i.unref(d),rawSpec:i.unref(u),onToggleDarkMode:m[0]||(m[0]=()=>i.unref(t)()),onUpdateContent:m[1]||(m[1]=v=>p.$emit("updateContent",v))},{footer:i.withCtx(()=>[i.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function A4(r,e,t=!0){const n=i.reactive(e),o=i.createApp(vw,{configuration:n});function s(a=r){if(!a){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}o.mount(a)}return t&&s(),{updateConfig(a,l=!0){l?Object.assign(n,a):Bh(n,a)},updateSpec(a){n.spec=a},mount:s,unmount:()=>o.unmount()}}exports.Annotation=ro;exports.ApiClientModal=G1;exports.ApiReferenceLayout=Qf;exports.Card=Xi;exports.CardContent=so;exports.CardFooter=Dc;exports.CardHeader=Qi;exports.CardTab=ow;exports.CardTabHeader=nw;exports.Content=hw;exports.DarkModeIconToggle=mw;exports.DarkModeToggle=pw;exports.Decoration=Be;exports.DefaultBufferLength=Ly;exports.EditorSelection=Y;exports.EditorView=ue;exports.Facet=Z;exports.FlowModal=cv;exports.G=Me;exports.GLOBAL_SECURITY_SYMBOL=Ic;exports.GettingStarted=fw;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=qf;exports.LRLanguage=yl;exports.LanguageSupport=ZC;exports.Me=yu;exports.ModernLayout=yw;exports.NodeProp=fe;exports.NodeSet=mh;exports.NodeType=pt;exports.NodeWeakMap=IC;exports.Parser=zy;exports.Prec=Hl;exports.RangeSet=be;exports.RangeValue=Kn;exports.SearchButton=Zf;exports.SearchModal=gw;exports.SecurityScheme=Mv;exports.SecuritySchemeSelector=Dv;exports.Sidebar=Wf;exports.StateEffect=We;exports.StateField=Fr;exports.Text=we;exports.Transaction=rt;exports.Tree=He;exports.ViewPlugin=Rt;exports.WidgetType=rs;exports._export_sfc=K;exports._sfc_main=Qg;exports._sfc_main$1=to;exports._sfc_main$2=vw;exports.bracketMatching=C2;exports.bracketMatchingHandle=lv;exports.clickGeneratedParameter=D2;exports.codePointAt=Po;exports.codePointSize=ll;exports.combineConfig=Kl;exports.continuedIndent=d2;exports.countColumn=ah;exports.createEmptyAuthenticationState=m0;exports.createEmptyOpenApiState=y0;exports.createEmptyServerState=Fv;exports.createEmptySpecification=Hn;exports.createPlaceholderRequest=v0;exports.createScalarReferences=A4;exports.customTheme=T2;exports.deepMerge=Vv;exports.defaultHighlightStyle=y2;exports.defineLanguageFacet=Gy;exports.delimitedIndent=l2;exports.downloadSpecBus=zf;exports.downloadSpecFile=V1;exports.encodeStringAsBase64=uv;exports.findVariables=hv;exports.flatIndent=c2;exports.foldInside=p2;exports.foldNodeProp=f2;exports.fromCodePoint=lS;exports.getApiClientRequest=Ah;exports.getBase64Token=Sh;exports.getHeadingsFromMarkdown=ki;exports.getIndentUnit=Xy;exports.getLowestHeadingLevel=ec;exports.getModels=Jt;exports.getRequestFromAuthentication=kh;exports.getSecretCredentialsFromAuthentication=fv;exports.getTooltip=wC;exports.getUrlFromServerState=xl;exports.getVariableNames=o_;exports.hasModels=Th;exports.hasSecuritySchemes=Rv;exports.hasWebhooks=Lv;exports.highlightSpecialChars=dC;exports.indentNodeProp=ev;exports.indentOnInput=h2;exports.indentString=Qy;exports.indentUnit=bh;exports.isJsonString=u0;exports.isMacOS=Ja;exports.isRequestMethod=Ad;exports.isValidUrl=jv;exports.keymap=Iy;exports.lineNumbers=_C;exports.logException=Tr;exports.mapFromObject=s_;exports.mergeAllObjects=i_;exports.normalizeMimeType=f0;exports.objectMerge=Bh;exports.openClientFor=Cl;exports.parse=D1;exports.parseMixed=DC;exports.replaceVariables=Oh;exports.requestMethodAbbreviations=S0;exports.requestMethodColors=k0;exports.scrollToId=_i;exports.showTooltip=Vy;exports.sleep=wr;exports.splitMarkdownInSections=R1;exports.styleTags=Uy;exports.sublanguageProp=Jy;exports.syntaxHighlighting=ov;exports.syntaxTree=pn;exports.tags=F;exports.useApiClientStore=Rl;exports.useAuthenticationStore=ts;exports.useHttpClientStore=Mc;exports.useModal=dv;exports.useOpenApiStore=th;exports.useReactiveSpec=z1;exports.useRequestStore=w0;exports.useServerStore=os;exports.validRequestMethods=nh;exports.variables=B2;exports.zt=_r;
|
|
222
|
+
const { statusCode, body } = await request('${n.url}${a}'${l})`}}function xL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function CL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${kr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function EL(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function $L(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Zi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const a=Object.keys(o).length?`, ${kr(o)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${n.url}'${a})`}}function Kg(){const r=[SL,xL,CL,EL,$L];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const _L=i.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}i.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),i.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function a(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(i.openBlock(),i.createBlock(Yf,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:a(d),value:d}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a(o.value)),1)]),_:1},8,["modelValue","options"]))}}),iw=K(_L,[["__scopeId","data-v-652a7e14"]]),NL={class:"request-header"},AL={class:"code-snippet"},OL={key:0,class:"request-card-footer-addon"},TL=i.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,n=`components-Content-Operation-Example-Request${Ku(e.operation.path+e.operation.httpVerb+e.operation.operationId)}`,o=i.ref(Zo[n]??""),s=i.ref(),{copyToClipboard:a}=bs(),{httpClient:l,setHttpClient:c,httpTargetTitle:d,httpClientTitle:u}=Mc(),{availableTargets:h}=Ji(),{server:f}=os(),{authentication:p}=ts(),m=i.computed(()=>{var v,b,w,S,x,k,C;return((S=(w=(b=(v=e.operation.information)==null?void 0:v.requestBody)==null?void 0:b.content)==null?void 0:w["application/json"])==null?void 0:S.examples)&&Object.keys((C=(k=(x=e.operation.information)==null?void 0:x.requestBody)==null?void 0:k.content)==null?void 0:C["application/json"].examples).length>1}),y=i.inject(Ic),g=async()=>{var b;const v=h0({url:xl(f)},Nd(e.operation,{replaceVariables:!0},s.value),kh(p,((b=e.operation.information)==null?void 0:b.security)??(y==null?void 0:y())));try{return Kg().hasPlugin(l.targetKey.replace("javascript","js"),l.clientKey)?Kg().print(l.targetKey.replace("javascript","js"),l.clientKey,v)??"":await new Yg.HTTPSnippet(v).convert(l.targetKey,l.clientKey)}catch(w){return console.error("[ExampleRequest]",w),""}};return i.watch([()=>l,()=>f,()=>p,()=>s],async()=>{o.value=await g()},{deep:!0,immediate:!0}),i.onServerPrefetch(async()=>{const v=i.useSSRContext();await wr(1),v.payload.data[n]=o.value}),i.computed(()=>Ah({serverState:f,authenticationState:p,operation:e.operation,globalSecurity:y==null?void 0:y()})),(v,b)=>(i.openBlock(),i.createBlock(i.unref(Xi),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Yf,{class:"request-client-picker",modelValue:JSON.stringify(i.unref(l)),options:i.unref(h).map(w=>({value:w.key,label:w.title,options:w.clients.map(S=>({value:JSON.stringify({targetKey:w.key,clientKey:S.key}),label:S.title}))})),"onUpdate:modelValue":b[0]||(b[0]=w=>i.unref(c)(JSON.parse(w)))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d))+" "+i.toDisplayString(i.unref(u)),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=w=>i.unref(a)(o.value))},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",NL,[i.createVNode(i.unref(to),{as:"span",class:"request-method",method:v.operation.httpVerb},null,8,["method"]),i.renderSlot(v.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(so),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createElementVNode("div",AL,[i.createVNode(i.unref(_r),{content:o.value,hideCredentials:i.unref(fv)(i.unref(p)),lang:i.unref(l).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),m.value||v.$slots.footer?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"request-card-footer",contrast:""},{default:i.withCtx(()=>{var w,S,x,k;return[m.value?(i.openBlock(),i.createElementBlock("div",OL,[i.createVNode(iw,{class:"request-example-selector",examples:((k=(x=(S=(w=v.operation.information)==null?void 0:w.requestBody)==null?void 0:S.content)==null?void 0:x["application/json"])==null?void 0:k.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=C=>s.value=C)},null,8,["examples"])])):i.createCommentVNode("",!0),i.renderSlot(v.$slots,"footer",{},void 0,!0)]}),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),aw=K(TL,[["__scopeId","data-v-317d5c87"]]),BL={key:0},PL={key:1},IL={key:0,class:"rule"},ML={class:"rule-title"},DL={class:"rule-items"},VL={key:2,class:"empty-state"},RL=i.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,a,l,c,d,u,h;return(s=n.response)!=null&&s.example?(i.openBlock(),i.createElementBlock("div",BL,[i.createVNode(i.unref(_r),{content:i.unref(di)((a=n.response)==null?void 0:a.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(i.openBlock(),i.createElementBlock("div",PL,[(c=n.response)!=null&&c.schema.type?(i.openBlock(),i.createBlock(i.unref(_r),{key:0,content:i.unref(di)(i.unref(Ue)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,f=>{var p,m,y,g,v,b;return i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((m=n.response)==null?void 0:m.schema[f].length)>1||f==="not")?(i.openBlock(),i.createElementBlock("div",IL,[i.createElementVNode("div",ML,i.toDisplayString(f),1),i.createElementVNode("ol",DL,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((y=n.response)==null?void 0:y.schema[f],(w,S)=>(i.openBlock(),i.createElementBlock("li",{key:S,class:"rule-item"},[i.createVNode(i.unref(_r),{content:i.unref(Ue)(w,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=n.response)!=null&&g.schema[f]&&((v=n.response)==null?void 0:v.schema[f].length)===1?(i.openBlock(),i.createBlock(i.unref(_r),{key:1,content:i.unref(Ue)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(i.openBlock(),i.createBlock(i.unref(_r),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>i.unref(Ue)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",VL," No Body "))}}}),Wg=K(RL,[["__scopeId","data-v-800e8c7d"]]),LL=r=>(i.pushScopeId("data-v-314905de"),r=r(),i.popScopeId(),r),jL={key:1,class:"scalar-card-checkbox"},FL=LL(()=>i.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),qL={class:"scalar-card-container custom-scroll"},zL={key:1,class:"response-description"},HL=i.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=bs(),n=i.ref(),o=i.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(m=>m==="default"?-1:0)}),s=i.computed(()=>!!c.value.examples),a=i.ref(0),l=i.computed(()=>{var p,m;const f=o.value[a.value];return(m=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:m[f]}),c=i.computed(()=>{var p;const f=p0((p=l.value)==null?void 0:p.content);return(f==null?void 0:f["application/json"])??(f==null?void 0:f["text/plain"])??l.value}),d=i.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value].value??c.value.examples[n.value]:c.value.example})),u=f=>{a.value=f},h=i.ref(!1);return(f,p)=>o.value.length?(i.openBlock(),i.createBlock(i.unref(Xi),{key:0},{default:i.withCtx(()=>{var m;return[i.createVNode(i.unref(nw),{muted:"",x:"as",onChange:u},{actions:i.withCtx(()=>{var y,g;return[(y=c.value)!=null&&y.example?(i.openBlock(),i.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var v;return i.unref(t)((v=c.value)==null?void 0:v.example)})},[i.createVNode(i.unref(Me),{icon:"Clipboard",width:"10px",x:"asd"})])):i.createCommentVNode("",!0),(g=c.value)!=null&&g.schema?(i.openBlock(),i.createElementBlock("label",jL,[i.createTextVNode(" Show Schema "),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=v=>h.value=v),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[i.vModelCheckbox,h.value]]),FL])):i.createCommentVNode("",!0)]}),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,y=>(i.openBlock(),i.createBlock(i.unref(ow),{key:y},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(y),1)]),_:2},1024))),128))]),_:1}),i.createElementVNode("div",qL,[i.createVNode(i.unref(so),{muted:""},{default:i.withCtx(()=>{var y;return[(y=c.value)!=null&&y.schema?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.value&&d.value?(i.openBlock(),i.createBlock(i.unref(_r),{key:0,content:d.value,lang:"json"},null,8,["content"])):(i.openBlock(),i.createBlock(Wg,{key:1,response:d.value},null,8,["response"]))],64)):(i.openBlock(),i.createBlock(Wg,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(m=l.value)!=null&&m.description||s.value?(i.openBlock(),i.createBlock(i.unref(Dc),{key:0,class:"response-card-footer",muted:""},{default:i.withCtx(()=>{var y,g;return[s.value?(i.openBlock(),i.createBlock(iw,{key:0,class:"response-example-selector",examples:(y=c.value)==null?void 0:y.examples,"onUpdate:modelValue":p[2]||(p[2]=v=>n.value=v)},null,8,["examples"])):(g=l.value)!=null&&g.description?(i.openBlock(),i.createElementBlock("div",zL,[i.createVNode(i.unref($t),{class:"markdown",value:l.value.description},null,8,["value"])])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)}}),lw=K(HL,[["__scopeId","data-v-314905de"]]),UL=r=>(i.pushScopeId("data-v-f44e2b65"),r=r(),i.popScopeId(),r),KL=UL(()=>i.createElementVNode("span",null,"Test Request",-1)),WL=i.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=i.inject(Ic);return(t,n)=>(i.openBlock(),i.createBlock(i.unref(to),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,type:"button",onClick:n[0]||(n[0]=i.withModifiers(o=>{var s;return i.unref(Cl)(t.operation,(s=i.unref(e))==null?void 0:s())},["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(Me),{icon:"PaperAirplane"}),KL]),_:1},8,["method"]))}}),Uu=K(WL,[["__scopeId","data-v-f44e2b65"]]),GL={class:"examples"},JL=i.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,t=i.computed(()=>{var o;const n=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of n)if((o=e.operation.information)!=null&&o[s])return e.operation.information[s];return null});return(n,o)=>(i.openBlock(),i.createBlock(i.unref(ws),{id:n.id,label:n.operation.name},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>{var s,a;return[(s=n.operation.information)!=null&&s.deprecated?(i.openBlock(),i.createBlock(i.unref(Ni),{key:0},{default:i.withCtx(()=>[i.createTextVNode(" Deprecated ")]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass((a=n.operation.information)!=null&&a.deprecated?"deprecated":"")},[i.createVNode(i.unref(vn),{level:3},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:n.id??""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.operation.name),1)]),_:1},8,["id"])]),_:1})],2),i.createVNode(vL,{operation:n.operation},null,8,["operation"])]}),_:1}),i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createElementVNode("div",GL,[t.value?(i.openBlock(),i.createBlock(b3,{key:0,examples:t.value,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(Hu,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Uu,{operation:n.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(i.openBlock(),i.createBlock(aw,{key:1,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(Hu,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Uu,{operation:n.operation},null,8,["operation"])]),_:1},8,["operation"])),i.createVNode(i.unref(lw),{operation:n.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),cw=K(JL,[["__scopeId","data-v-9cd31f5d"]]),YL={class:"endpoint-details-card"},XL=i.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Uf(e),{responses:n}=Kf(e.operation);return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",YL,[i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(Xf,{class:"endpoint-details-card-item",requestBody:(a=o.operation.information)==null?void 0:a.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"]),i.createVNode(Kt,{class:"endpoint-details-card-item",parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),QL=K(XL,[["__scopeId","data-v-f94bee14"]]),ZL={class:"endpoint-header"},ej={class:"endpoint-details"},tj={class:"endpoint-label"},rj={class:"endpoint-label-path"},nj={class:"endpoint-label-name"},oj={class:"endpoint-content"},sj=i.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=bs();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(Z1),{id:t.id,class:"reference-endpoint",transparent:""},i.createSlots({title:i.withCtx(()=>[i.createElementVNode("h3",ZL,[i.createElementVNode("div",ej,[i.createVNode(i.unref(to),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),i.createVNode(i.unref(bn),{id:t.id??"",class:"endpoint-anchor"},{default:i.withCtx(()=>{var o;return[i.createElementVNode("div",tj,[i.createElementVNode("div",rj,[i.createVNode(Hu,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),i.createElementVNode("div",nj,i.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:i.withCtx(({active:o})=>[o?(i.openBlock(),i.createBlock(Uu,{key:0,operation:t.operation},null,8,["operation"])):(i.openBlock(),i.createBlock(i.unref(Me),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),i.createVNode(i.unref(Mi),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:n[0]||(n[0]=i.withModifiers(s=>i.unref(e)(t.operation.path),["stop"]))})]),default:i.withCtx(()=>[i.createElementVNode("div",oj,[i.createVNode(QL,{operation:t.operation},null,8,["operation"]),i.createVNode(i.unref(lw),{operation:t.operation},null,8,["operation"]),i.createVNode(aw,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:i.withCtx(()=>[i.createVNode(i.unref($t),{value:t.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),ij=K(sj,[["__scopeId","data-v-f61893df"]]),aj=i.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>i.unref(e)(t.id,!0))},[i.createTextVNode(" Show More "),i.createVNode(i.unref(Me),{class:"show-more-icon",icon:"ChevronDown"})]))}}),dw=K(aj,[["__scopeId","data-v-60a9fbab"]]),lj={class:"endpoints"},cj=["onClick"],dj=i.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(r,{emit:e}){const t=r,n=e,{getOperationId:o,getTagId:s}=lt(),{setCollapsedSidebarItem:a}=tr(),l=d=>{n("observeAndNavigate",d)};async function c(d){l(o(d,t.tag)),a(s(t.tag),!0)}return(d,u)=>(i.openBlock(),i.createBlock(i.unref(ws),{id:d.id,label:d.tag.name.toUpperCase()},{default:i.withCtx(()=>[i.createVNode(i.unref(ks),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Jf),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(s)(d.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.tag["x-displayName"]??d.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref($t),{value:d.tag.description,withImages:""},null,8,["value"])]),_:1}),i.createVNode(i.unref(Qo),null,{default:i.withCtx(()=>{var h;return[((h=d.tag.operations)==null?void 0:h.length)>0?(i.openBlock(),i.createBlock(i.unref(Xi),{key:0,class:"scalar-card-sticky"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{muted:""},{default:i.withCtx(()=>[i.createTextVNode("Endpoints")]),_:1}),i.createVNode(i.unref(so),{class:"custom-scroll",muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",lj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.tag.operations,f=>(i.openBlock(),i.createElementBlock("a",{key:i.unref(o)(f,d.tag),class:"endpoint",onClick:p=>c(f)},[i.createVNode(i.unref(to),{method:f.httpVerb},null,8,["method"]),i.createElementVNode("span",null,i.toDisplayString(f.path),1)],8,cj))),128))])]),_:1})]),_:1})):i.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),uj=K(dj,[["__scopeId","data-v-b209ef2d"]]),hj=(r,e)=>{Xe.useMutationObserver(r,e,{childList:!0,subtree:!0})},fj=i.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,t=i.ref(null),{collapsedSidebarItems:n}=tr(),{getTagId:o}=lt(),s=d=>{var u;return((u=e.spec.tags)==null?void 0:u.length)!==1||(d==null?void 0:d.name)!=="default"||(d==null?void 0:d.description)!==""},a=d=>{window.location.href=`#${d}`},l=d=>{hj(t,(u,h)=>{u.forEach(f=>{Array.from(f.addedNodes).some(m=>m instanceof HTMLElement&&m.id===d)&&(a(d),h.disconnect())})})},c=d=>{document.getElementById(d)?a(d):l(d)};return(d,u)=>(i.openBlock(),i.createBlock(i.unref(Yi),{ref_key:"sectionContainerRef",ref:t,class:"tag-section-container"},{default:i.withCtx(()=>{var h;return[s(d.tag)?(i.openBlock(),i.createBlock(uj,{key:0,id:d.id,tag:d.tag,onObserveAndNavigate:c},null,8,["id","tag"])):i.createCommentVNode("",!0),!i.unref(n)[i.unref(o)(d.tag)]&&((h=d.tag.operations)==null?void 0:h.length)>1?(i.openBlock(),i.createBlock(dw,{key:1,id:d.id??""},null,8,["id"])):i.renderSlot(d.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),uw=K(fj,[["__scopeId","data-v-7fef7ce7"]]),pj=i.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=lt();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(ew),{class:"tag-section"},{title:i.withCtx(()=>[i.createVNode(i.unref(vn),{class:"tag-name",level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(e)(t.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref($t),{class:"tag-description",value:t.tag.description,withImages:""},null,8,["value"])]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),mj=K(pj,[["__scopeId","data-v-f11e3b56"]]),gj=i.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(r){const e=r,t=i.ref(!1),n=i.ref([]),o=i.ref([]),{getModelId:s,getSectionId:a,getTagId:l,hash:c,isIntersectionEnabled:d}=lt(),u=i.ref(e.layout!=="accordion"&&c.value);i.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var m,y;if(!c.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=a();if(p.startsWith("tag")){let g=0;const v=((m=e.parsedSpec.tags)==null?void 0:m.findIndex(S=>l(S)===p))??0,b=c.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((b==null?void 0:b.length)===4){const S=b[2],x="/"+b[3];g=(y=e.parsedSpec.tags[v])==null?void 0:y.operations.findIndex(({httpVerb:k,path:C})=>S===k&&x===C)}const w=e.parsedSpec.tags[v];if(!w)return;w.name!=="default"&&(t.value=p!==c.value&&p.startsWith("tag")),n.value.push({...w,lazyOperations:w.operations.slice(g,g+2)})}else if(c.value.startsWith("model")){const g=Object.keys(Jt(e.parsedSpec)??{}),[,v]=c.value.toLowerCase().split("/"),b=c.value==="models"?0:g.findIndex(w=>w.toLowerCase()===v);if(b===-1)return;o.value=g.slice(b,b+3)}else _i(c.value),setTimeout(()=>d.value=!0,1e3)},{immediate:!0});const h=zu.on(({id:f})=>{const p=c.value;!p||f!==p||(h(),setTimeout(()=>{typeof window<"u"&&_i(p),u.value=!1,setTimeout(()=>d.value=!0,1e3)},300))});return i.onMounted(()=>{c.value||setTimeout(()=>d.value=!0,1e3)}),(f,p)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":n.value.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[m.operations&&m.operations.length>0?(i.openBlock(),i.createBlock(i.unref(uw),{key:0,spec:f.parsedSpec,tag:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.lazyOperations,y=>(i.openBlock(),i.createBlock(i.unref(cw),{key:`${y.httpVerb}-${y.operationId}`,operation:y,tag:m},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):i.createCommentVNode("",!0)],64))),128)),o.value.length?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(i.unref(ws),{key:m,label:m},{default:i.withCtx(()=>{var y;return[(y=i.unref(Jt)(f.parsedSpec))!=null&&y[m]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>{var g;return[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(s)(m)},{default:i.withCtx(()=>{var v;return[i.createTextVNode(i.toDisplayString(((v=i.unref(Jt)(f.parsedSpec))==null?void 0:v[m]).title??m),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(Fn),{name:m,noncollapsible:"",value:(g=i.unref(Jt)(f.parsedSpec))==null?void 0:g[m]},null,8,["name","value"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):i.createCommentVNode("",!0)],2)),[[i.vShow,u.value]])}}),yj=r=>(i.pushScopeId("data-v-f19478dd"),r=r(),i.popScopeId(),r),vj=yj(()=>i.createElementVNode("div",{id:"models"},null,-1)),bj=i.defineComponent({__name:"Models",props:{schemas:{}},setup(r){const e=r,{collapsedSidebarItems:t}=tr(),{getModelId:n}=lt(),o=i.computed(()=>Object.keys(e.schemas??{}).length<=3||t[n()]),s=i.computed(()=>{const a=Object.keys(e.schemas??{});return o.value?a:a.slice(0,3)});return(a,l)=>a.schemas?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Vl),{id:"models",isLazy:!1},{default:i.withCtx(()=>[vj]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(c,d)=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(n)(c),key:c,isLazy:""},{default:i.withCtx(()=>[i.createVNode(i.unref(ws),{id:i.unref(n)(c),label:c},{default:i.withCtx(()=>[a.schemas[c]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(c)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.schemas[c].title??c),1)]),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(Fn),{name:c,noncollapsible:"",value:a.schemas[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(i.openBlock(),i.createBlock(dw,{key:0,id:i.unref(n)(),class:"something-special"},null,8,["id"])):i.createCommentVNode("",!0)]),_:2},1024)):i.createCommentVNode("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),wj=K(bj,[["__scopeId","data-v-f19478dd"]]),kj={key:0,class:"properties"},Sj={key:1},xj=i.defineComponent({__name:"ModelsAccordion",props:{schemas:{}},setup(r){const e=r,t=i.computed(()=>e.schemas?Object.entries(e.schemas).map(([o,s])=>({name:o,schema:s})):[]),{getModelId:n}=lt();return(o,s)=>e.schemas?(i.openBlock(),i.createBlock(i.unref(ew),{key:0,class:"reference-models"},{title:i.withCtx(()=>[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createTextVNode("Models")]),_:1})]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,({name:a,schema:l})=>(i.openBlock(),i.createBlock(i.unref(Z1),{id:i.unref(n)(a),key:a,label:a},{title:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(a),class:"reference-models-anchor"},{default:i.withCtx(()=>[i.createVNode(i.unref(sw),{class:"reference-models-label",name:a,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:i.withCtx(()=>[l!=null&&l.properties?(i.openBlock(),i.createElementBlock("div",kj,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(l.properties),([c,d])=>(i.openBlock(),i.createBlock(i.unref(jn),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(i.openBlock(),i.createElementBlock("div",Sj,[i.createVNode(i.unref(jn),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),Cj=K(xj,[["__scopeId","data-v-2399f144"]]),Ej=i.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Kf(e.webhook);return(n,o)=>{var s;return n.webhook?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Xf,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Payload")]),_:1},8,["requestBody"]),i.createVNode(Kt,{parameters:i.unref(t)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):i.createCommentVNode("",!0)}}}),$j=i.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=i.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=lt();return(o,s)=>t.value.length?(i.openBlock(),i.createBlock(i.unref(Yi),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,a=>{var l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:a},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys((l=o.webhooks)==null?void 0:l[a]),c=>(i.openBlock(),i.createBlock(i.unref(ws),{id:i.unref(n)(a,c),key:c,label:a},{default:i.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[a]?(i.openBlock(),i.createBlock(i.unref(ks),{key:0},{default:i.withCtx(()=>{var u,h;return[i.createVNode(i.unref(vn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(bn),{id:i.unref(n)(a,c)},{default:i.withCtx(()=>{var f;return[i.createTextVNode(i.toDisplayString((f=o.webhooks[a][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[a][c])!=null&&u.description?(i.openBlock(),i.createBlock(i.unref($t),{key:0,value:(h=o.webhooks[a][c])==null?void 0:h.description,withImages:""},null,8,["value"])):i.createCommentVNode("",!0),i.createVNode(Ej,{webhook:o.webhooks[a][c]},null,8,["webhook"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):i.createCommentVNode("",!0)}}),_j=i.createStaticVNode('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),Nj={class:"narrow-references-container"},Aj=i.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(r){const e=r,{getOperationId:t,getTagId:n,hash:o}=lt(),{setServer:s}=os(),{hideModels:a,collapsedSidebarItems:l}=tr(),c=p=>{if(p.url.match(/^(?!(https?|file):\/\/|{).+/)){let m=e.baseServerURL??window.location.origin;m=m.replace(/\/$/,"");const y=p.url.startsWith("/")?p.url:`/${p.url}`;p.url=`${m}${y}`.replace(/\/$/,"")}return p};i.watch(()=>e.parsedSpec,p=>{var y,g;let m=[{url:typeof window<"u"?window.location.origin:"/"}];p.servers&&p.servers.length>0?m=p.servers:e.parsedSpec.host&&(m=[{url:`${((y=e.parsedSpec.schemes)==null?void 0:y[0])??"http"}://${e.parsedSpec.host}${((g=e.parsedSpec)==null?void 0:g.basePath)??""}`}]),(e.baseServerURL||typeof window<"u")&&(m=m.map(c)),s({servers:m})},{deep:!0,immediate:!0});const d=i.computed(()=>e.layout==="accordion"?mj:uw),u=i.computed(()=>e.layout==="accordion"?ij:cw),h=i.computed(()=>e.layout==="accordion"?"after":"aside"),f=e.layout!=="accordion"&&!o.value.startsWith("model");return(p,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[_j,i.createElementVNode("div",Nj,[i.renderSlot(p.$slots,"start",{},void 0,!0),i.createVNode(i.unref(gj),{layout:p.layout,parsedSpec:p.parsedSpec},null,8,["layout","parsedSpec"]),p.parsedSpec.info.title||p.parsedSpec.info.description?(i.openBlock(),i.createBlock(i.unref(WR),{key:0,info:p.parsedSpec.info,parsedSpec:p.parsedSpec},{[h.value]:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["introduction-card",{"introduction-card-row":p.layout==="accordion"}])},[i.createVNode(i.unref(JV)),i.createVNode(i.unref(xV),{parsedSpec:p.parsedSpec},null,8,["parsedSpec"]),i.createVNode(i.unref(uR))],2)]),_:2},1032,["info","parsedSpec"])):i.renderSlot(p.$slots,"empty-state",{key:1},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.parsedSpec.tags,y=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(n)(y),key:i.unref(n)(y),isLazy:i.unref(f)&&!i.unref(l)[i.unref(n)(y)]},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.value),{id:i.unref(n)(y),spec:p.parsedSpec,tag:y},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.operations,(g,v)=>(i.openBlock(),i.createBlock(i.unref(Vl),{id:i.unref(t)(g,y),key:`${g.httpVerb}-${g.operationId}`,isLazy:v>0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),{id:i.unref(t)(g,y),operation:g,tag:y},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),p.parsedSpec.webhooks?(i.openBlock(),i.createBlock(i.unref($j),{key:2,webhooks:p.parsedSpec.webhooks},null,8,["webhooks"])):i.createCommentVNode("",!0),i.unref(Th)(p.parsedSpec)&&!i.unref(a)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[p.layout==="accordion"?(i.openBlock(),i.createBlock(i.unref(Cj),{key:0,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"])):(i.openBlock(),i.createBlock(i.unref(wj),{key:1,schemas:i.unref(Jt)(p.parsedSpec)},null,8,["schemas"]))],64)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"end",{},void 0,!0)])],64))}}),hw=K(Aj,[["__scopeId","data-v-09a6c646"]]),Oj=r=>(i.pushScopeId("data-v-391b4e37"),r=r(),i.popScopeId(),r),Tj={class:"start custom-scroll"},Bj={class:"start-copy"},Pj=i.createStaticVNode('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),Ij={class:"start-cta"},Mj={class:"start-row"},Dj=i.createStaticVNode('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),Vj={class:"start-section start-section-colors"},Rj=Oj(()=>i.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),Lj=["onClick"],jj=i.createStaticVNode('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),Fj=i.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function o(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");t("updateContent",await s.text())}return(s,a)=>(i.openBlock(),i.createElementBlock("div",Tj,[i.createElementVNode("div",Bj,[Pj,i.createElementVNode("div",Ij,[i.createVNode(i.unref(yu),{fullWidth:"",onClick:o},{default:i.withCtx(()=>[i.createTextVNode(" Show Example ")]),_:1}),i.createVNode(i.unref(yu),{fullWidth:"",variant:"outlined",onClick:a[0]||(a[0]=l=>s.$emit("loadSwaggerFile"))},{default:i.withCtx(()=>[i.createTextVNode(" Upload File ")]),_:1})])]),i.createElementVNode("div",Mj,[Dj,i.createElementVNode("div",Vj,[Rj,(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,l=>i.createElementVNode("div",{key:l,class:i.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",{id:l,label:i.unref(fp)[l]})},i.toDisplayString(i.unref(fp)[l]),11,Lj)),64))])]),jj]))}}),fw=K(Fj,[["__scopeId","data-v-391b4e37"]]),qj={class:"references-header"},zj={key:0,class:"references-navigation t-doc__sidebar"},Hj={class:"references-navigation-list"},Uj={class:"references-editor"},Kj={class:"references-editor-textarea"},Wj={class:"references-rendered"},Gj={key:0,class:"references-footer"},Jj=i.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(min-width: 1150px)"),n=i.ref("100dvh"),o=i.ref(null);Xe.useResizeObserver(o,k=>{n.value=k[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:a,isSidebarOpen:l,setCollapsedSidebarItem:c,hideModels:d,setParsedSpec:u}=tr(),{getPathRoutingId:h,getSectionId:f,getTagId:p,hash:m,isIntersectionEnabled:y,pathRouting:g,updateHash:v}=lt();g.value=e.configuration.pathRouting,i.onBeforeMount(()=>v());const b=async k=>{var C;y.value=!1,v(),k?_i(k):(C=o.value)==null||C.scrollTo(0,0),await wr(100),y.value=!0};i.onMounted(()=>{zf.on(({specTitle:k})=>{V1(e.rawSpec,k)}),window.onhashchange=()=>b(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&b(h(window.location.pathname))});const w=i.computed(()=>t.value||!e.configuration.isEditable),S=Xe.useDebounceFn(k=>{if((k.target.scrollTop??0)<50){const N=e.configuration.pathRouting?e.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",N+window.location.search),m.value=""}}),x=i.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return i.watch(()=>e.parsedSpec,u,{deep:!0}),i.onServerPrefetch(()=>{var C,N;const k=i.useSSRContext();if(k&&((C=k.payload).data||(C.data=Cd()),e.configuration.pathRouting)){const P=h(k.url);m.value=P,k.payload.data.hash=P;for(const M in a)Object.hasOwn(a,M)&&delete a[M];if(P)c(f(P),!0);else{const M=(N=e.parsedSpec.tags)==null?void 0:N[0];M&&c(p(M),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=a}}),Le.provideUseId(()=>{var P;const k=i.getCurrentInstance(),C="scalar-instance-id";if(!k)return C;let N=k.uid;return typeof window>"u"?(k.attrs||(k.attrs={}),k.attrs[C]=N):(P=k.vnode.el)!=null&&P.getAttribute&&(N=k.vnode.el.getAttribute(C)),`${C}-${N}`}),i.provide(Ic,()=>e.parsedSpec.security),i.provide(qf,()=>e.configuration.hideDownloadButton),d.value=e.configuration.hideModels??!1,T5(e.configuration),(k,C)=>{var N,P;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(Qg),{id:(N=k.configuration)==null?void 0:N.theme,withDefaultFonts:(P=k.configuration)==null?void 0:P.withDefaultFonts},null,8,["id","withDefaultFonts"]),i.createVNode(i.unref(e0),null,{default:i.withCtx(({styles:M})=>[i.createVNode(i.unref(lk),null,{default:i.withCtx(({styles:j})=>{var I,X;return[i.createElementVNode("div",{ref_key:"documentEl",ref:o,class:i.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":k.configuration.isEditable,"references-sidebar":k.configuration.showSidebar,"references-sidebar-mobile-open":i.unref(l),"references-classic":k.configuration.layout==="classic"},M,j,k.$attrs.class]]),style:i.normalizeStyle({"--full-height":n.value}),onScrollPassive:C[4]||(C[4]=(...W)=>i.unref(S)&&i.unref(S)(...W))},[i.createElementVNode("div",qj,[i.renderSlot(k.$slots,"header",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),k.configuration.showSidebar?(i.openBlock(),i.createElementBlock("aside",zj,[i.createElementVNode("div",Hj,[i.createVNode(i.unref(Wf),{parsedSpec:k.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Uj,[i.createElementVNode("div",Kj,[i.renderSlot(k.$slots,"editor",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])],512),[[i.vShow,k.configuration.isEditable]]),w.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Wj,[i.createVNode(i.unref(hw),{baseServerURL:k.configuration.baseServerURL,layout:k.configuration.layout==="classic"?"accordion":"default",parsedSpec:k.parsedSpec},i.createSlots({start:i.withCtx(()=>[i.renderSlot(k.$slots,"content-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),end:i.withCtx(()=>[i.renderSlot(k.$slots,"content-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:2},[(I=k.configuration)!=null&&I.isEditable?{name:"empty-state",fn:i.withCtx(()=>{var W;return[i.createVNode(fw,{theme:((W=k.configuration)==null?void 0:W.theme)||"default",onChangeTheme:C[0]||(C[0]=te=>k.$emit("changeTheme",te)),onLinkSwaggerFile:C[1]||(C[1]=te=>k.$emit("linkSwaggerFile")),onLoadSwaggerFile:C[2]||(C[2]=te=>k.$emit("loadSwaggerFile")),onUpdateContent:C[3]||(C[3]=te=>k.$emit("updateContent",te))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),k.$slots.footer?(i.openBlock(),i.createElementBlock("div",Gj,[i.renderSlot(k.$slots,"footer",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(G1,{parsedSpec:k.parsedSpec,proxyUrl:(X=k.configuration)==null?void 0:X.proxy},{"sidebar-start":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(k.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(x.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),i.createVNode(i.unref(N5))],64)}}}),Qf=K(Jj,[["__scopeId","data-v-e661a778"]]),Yj={},Xj={class:"references-classic-header-container"},Qj={class:"references-classic-header"};function Zj(r,e){return i.openBlock(),i.createElementBlock("div",Xj,[i.createElementVNode("div",Qj,[i.renderSlot(r.$slots,"default",{},void 0,!0),i.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const e4=K(Yj,[["render",Zj],["__scopeId","data-v-a860f78f"]]),t4=r=>(i.pushScopeId("data-v-559a0a79"),r=r(),i.popScopeId(),r),r4={class:"darklight-reference"},n4={key:0},o4={key:1},s4=t4(()=>i.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),i4=i.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",r4,[i.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:"LightDarkModeToggle"}),e.isDarkMode?(i.openBlock(),i.createElementBlock("span",n4,"Light Mode")):(i.openBlock(),i.createElementBlock("span",o4,"Dark Mode"))]),s4]))}}),pw=K(i4,[["__scopeId","data-v-559a0a79"]]),a4=i.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(Me),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),i.createVNode(rw,null,{default:i.withCtx(()=>[i.createTextVNode(" Switch to "+i.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),mw=K(a4,[["__scopeId","data-v-8f61ca56"]]);function l4(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function c4(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(l4(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function d4(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return c4(o)}catch{return!1}}const u4=r=>(i.pushScopeId("data-v-3445e6c6"),r=r(),i.popScopeId(),r),h4=u4(()=>i.createElementVNode("div",{class:"ref-search-meta"},[i.createElementVNode("span",null,"↑↓ Navigate"),i.createElementVNode("span",null,"⏎ Select")],-1)),f4=i.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=i.toRef(e,"parsedSpec"),n={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},o=Xe.useMagicKeys(),s=i.ref([]),a=i.ref([]),l=i.ref(0),c=i.ref(""),d=i.ref(null),u=new qw(s.value,{keys:["title","description","body"]}),h=()=>{l.value=0,a.value=u.search(c.value)},f=i.computed(()=>S.value[l.value]),{getHeadingId:p,getWebhookId:m,getModelId:y,getOperationId:g,getTagId:v}=lt();i.watch(()=>e.modalState.open,N=>{N&&(c.value="",l.value=0,a.value=[])});const{setCollapsedSidebarItem:b,hideModels:w}=tr();i.watch(t.value,async()=>{var W,te,me,ke,Se;if(s.value=[],!((te=(W=e.parsedSpec)==null?void 0:W.tags)!=null&&te.length)&&!((me=e.parsedSpec)!=null&&me.webhooks)){u.setCollection([]);return}const N=[],P=await ki(((ke=e.parsedSpec.info)==null?void 0:ke.description)??"");P.length&&(P.forEach(se=>{N.push({type:"heading",title:`Info > ${se.value}`,description:"",href:`#${p(se)}`,tag:se.slug,body:""})}),s.value=s.value.concat(N)),(Se=e.parsedSpec.tags)==null||Se.forEach(se=>{const q={title:se["x-displayName"]??se.name,href:`#${v(se)}`,description:se.description,type:"tag",tag:se.name,body:""};s.value.push(q),se.operations&&se.operations.forEach(T=>{const{parameterMap:V}=Uf({operation:T}),D=d4(T)||V.value;let E=null;typeof D!="boolean"&&(E=D);const A={type:"req",title:T.name??T.path,href:`#${g(T,se)}`,operationId:T.operationId,description:T.description??"",httpVerb:T.httpVerb,path:T.path,tag:se.name,operation:T};E&&(A.body=E),s.value.push(A)})});const M=e.parsedSpec.webhooks,j=[];M&&Object.keys(M).forEach(se=>{Object.keys(M[se]).forEach(T=>{var V;j.push({type:"webhook",title:`Webhook: ${(V=M[se][T])==null?void 0:V.name}`,href:`#${m(se,T)}`,description:se,httpVerb:T,tag:se,body:""})}),s.value=s.value.concat(j)});const I=w.value?{}:Jt(e.parsedSpec),X=[];I&&(Object.keys(I).forEach(se=>{X.push({type:"model",title:"Model",href:`#${y(se)}`,description:I[se].title??se,tag:se,body:""})}),s.value=s.value.concat(X)),u.setCollection(s.value)},{immediate:!0}),Xe.whenever(o.enter,()=>{e.modalState.open&&window&&(k(f.value),window.location.hash=f.value.item.href,e.modalState.hide())}),Xe.whenever(o.ArrowDown,()=>{var N;e.modalState.open&&window&&(l.value<S.value.length-1?l.value++:l.value=0,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))}),Xe.whenever(o.ArrowUp,()=>{var N;e.modalState.open&&window&&(l.value>0?l.value--:l.value=S.value.length-1,(N=document.getElementById(f.value.item.href))==null||N.scrollIntoView({behavior:"smooth",block:"center"}))});const S=i.computed(()=>c.value.length===0?s.value.map(N=>({item:N})):a.value),x=/#(tag\/[^/]*)/,k=N=>{let P="models";const M=N.item.href.match(x);M!=null&&M.length&&M.length>1&&(P=M[1]),b(P,!0),e.modalState.hide()};function C(N){const P=new URL(window.location.href);return P.hash=N,P.toString()}return(N,P)=>(i.openBlock(),i.createBlock(i.unref(cv),{state:N.modalState,variant:"search"},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"searchModalRef",ref:d,class:"ref-search-container"},[i.createVNode(i.unref(C$),{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=M=>c.value=M),onInput:h},null,8,["modelValue"])],512),i.createVNode(i.unref($$),{class:"ref-search-results custom-scroll",noResults:!S.value.length},{query:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(S.value,(M,j)=>(i.openBlock(),i.createBlock(i.unref(I$),{id:M.item.href,key:M.refIndex,active:l.value===j,href:C(M.item.href),icon:n[M.item.type],onClick:I=>k(M),onFocus:I=>l.value=j},i.createSlots({default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.title)+" ",1)]),_:2},[(M.item.httpVerb||M.item.path)&&M.item.path!==M.item.title?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.path),1)]),key:"0"}:M.item.description?{name:"description",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(M.item.description),1)]),key:"1"}:void 0,M.item.type==="req"?{name:"addon",fn:i.withCtx(()=>[i.createVNode(W1,{method:M.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),h4]),_:1},8,["state"]))}}),gw=K(f4,[["__scopeId","data-v-3445e6c6"]]),p4=r=>(i.pushScopeId("data-v-edb0a931"),r=r(),i.popScopeId(),r),m4={class:"sidebar-search-input"},g4=p4(()=>i.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),y4={class:"sidebar-search-shortcut"},v4={class:"sidebar-search-key"},b4=i.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=dv(),n=Xe.useMagicKeys({passive:!1,onEventFired(o){!Ja()&&o.ctrlKey&&o.key===e.searchHotKey&&(o.preventDefault(),o.stopPropagation())}});return Xe.whenever(n[`${Ja()?"meta":"control"}_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("button",{class:i.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...a)=>i.unref(t).show&&i.unref(t).show(...a))},[i.createVNode(i.unref(Me),{class:"search-icon",icon:"Search",size:"sm"}),i.createElementVNode("div",m4,[g4,i.createElementVNode("span",y4,[i.createElementVNode("span",v4,i.toDisplayString(i.unref(Ja)()?"⌘":"⌃")+i.toDisplayString(o.searchHotKey),1)])])],2),i.createVNode(gw,{modalState:i.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),Zf=K(b4,[["__scopeId","data-v-edb0a931"]]),w4=i.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(i.openBlock(),i.createBlock(Qf,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":i.withCtx(({spec:s})=>[i.createVNode(e4,null,{"dark-mode-toggle":i.withCtx(()=>[i.createVNode(i.unref(mw),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=a=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:i.withCtx(()=>[i.createVNode(Zf,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":i.withCtx(()=>[i.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),k4={class:"references-mobile-header t-doc__header"},S4={class:"references-mobile-breadcrumbs"},x4={class:"references-mobile-header-actions"},C4=i.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=tr();return(t,n)=>(i.openBlock(),i.createElementBlock("div",k4,[i.createVNode(i.unref(Mi),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),i.createElementVNode("span",S4,i.toDisplayString(i.unref(e)),1),i.createElementVNode("div",x4,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),E4=K(C4,[["__scopeId","data-v-0242e3de"]]),$4={class:"scalar-api-references-standalone-search"},_4=i.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(max-width: 1000px)"),{isSidebarOpen:n}=tr();i.watch(t,(s,a)=>{s&&!a&&(n.value=!1)});const{hash:o}=lt();return i.watch(o,(s,a)=>{s&&s!==a&&(n.value=!1)}),(s,a)=>(i.openBlock(),i.createBlock(Qf,{class:i.normalizeClass({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:i.withCtx(()=>[e.configuration.showSidebar?(i.openBlock(),i.createBlock(E4,{key:0,open:i.unref(n),"onUpdate:open":a[0]||(a[0]=l=>i.isRef(n)?n.value=l:null)},null,8,["open"])):i.createCommentVNode("",!0)]),"sidebar-start":i.withCtx(({spec:l})=>{var c;return[i.createElementVNode("div",$4,[i.createVNode(Zf,{searchHotKey:(c=e.configuration)==null?void 0:c.searchHotKey,spec:l},null,8,["searchHotKey","spec"])])]}),"sidebar-end":i.withCtx(()=>[i.createVNode(i.unref(pw),{isDarkMode:s.isDark,onToggleDarkMode:a[1]||(a[1]=l=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":i.withCtx(()=>[i.renderSlot(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),yw=K(_4,[["__scopeId","data-v-333fecad"]]),N4={modern:yw,classic:w4},vw=i.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=A5((h=e.configuration)==null?void 0:h.darkMode);i.watch(()=>{var p;return(p=e.configuration)==null?void 0:p.darkMode},p=>{p!==n.value&&t()});const o=i.computed(()=>{var p,m;if((p=e.configuration)!=null&&p.customCss)return dk((m=e.configuration)==null?void 0:m.customCss)});i.watch(o,()=>console.log(o.value));const s=i.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration,customCss:o.value}});(f=s.value)!=null&&f.metaData&&(hp.createHead(),hp.useSeoMeta(s.value.metaData));function a(p,m){i.watch(()=>{var y;return(y=s.value)==null?void 0:y[p]},y=>{typeof y<"u"&&m(y)},{immediate:!0})}const{setAuthentication:l}=ts();a("authentication",l);const{setExcludedClients:c}=Ji();a("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=z1({proxy:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,m)=>{var y,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(y=s.value)!=null&&y.customCss?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.value.customCss),1)]),_:1})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(N4)[((g=s.value)==null?void 0:g.layout)||"modern"]),{configuration:s.value,isDark:i.unref(n),parsedSpec:i.unref(d),rawSpec:i.unref(u),onToggleDarkMode:m[0]||(m[0]=()=>i.unref(t)()),onUpdateContent:m[1]||(m[1]=v=>p.$emit("updateContent",v))},{footer:i.withCtx(()=>[i.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});function A4(r,e,t=!0){const n=i.reactive(e),o=i.createApp(vw,{configuration:n});function s(a=r){if(!a){console.warn("Invalid HTML element provided. Cannot mount Scalar References");return}o.mount(a)}return t&&s(),{updateConfig(a,l=!0){l?Object.assign(n,a):Bh(n,a)},updateSpec(a){n.spec=a},mount:s,unmount:()=>o.unmount()}}exports.Annotation=ro;exports.ApiClientModal=G1;exports.ApiReferenceLayout=Qf;exports.Card=Xi;exports.CardContent=so;exports.CardFooter=Dc;exports.CardHeader=Qi;exports.CardTab=ow;exports.CardTabHeader=nw;exports.Content=hw;exports.DarkModeIconToggle=mw;exports.DarkModeToggle=pw;exports.Decoration=Be;exports.DefaultBufferLength=Ly;exports.EditorSelection=Y;exports.EditorView=ue;exports.Facet=Z;exports.FlowModal=cv;exports.G=Me;exports.GLOBAL_SECURITY_SYMBOL=Ic;exports.GettingStarted=fw;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=qf;exports.LRLanguage=yl;exports.LanguageSupport=ZC;exports.Me=yu;exports.ModernLayout=yw;exports.NodeProp=fe;exports.NodeSet=mh;exports.NodeType=pt;exports.NodeWeakMap=IC;exports.Parser=zy;exports.Prec=Hl;exports.RangeSet=be;exports.RangeValue=Kn;exports.SearchButton=Zf;exports.SearchModal=gw;exports.SecurityScheme=Mv;exports.SecuritySchemeSelector=Dv;exports.Sidebar=Wf;exports.StateEffect=We;exports.StateField=Fr;exports.Text=we;exports.Transaction=rt;exports.Tree=He;exports.ViewPlugin=Rt;exports.WidgetType=rs;exports._export_sfc=K;exports._sfc_main=Qg;exports._sfc_main$1=to;exports._sfc_main$2=vw;exports.bracketMatching=C2;exports.bracketMatchingHandle=lv;exports.clickGeneratedParameter=D2;exports.codePointAt=Po;exports.codePointSize=ll;exports.combineConfig=Kl;exports.continuedIndent=d2;exports.countColumn=ah;exports.createEmptyAuthenticationState=m0;exports.createEmptyOpenApiState=y0;exports.createEmptyServerState=Fv;exports.createEmptySpecification=Hn;exports.createPlaceholderRequest=v0;exports.createScalarReferences=A4;exports.customTheme=T2;exports.deepMerge=Vv;exports.defaultHighlightStyle=y2;exports.defineLanguageFacet=Gy;exports.delimitedIndent=l2;exports.downloadSpecBus=zf;exports.downloadSpecFile=V1;exports.encodeStringAsBase64=uv;exports.findVariables=hv;exports.flatIndent=c2;exports.foldInside=p2;exports.foldNodeProp=f2;exports.fromCodePoint=lS;exports.getApiClientRequest=Ah;exports.getBase64Token=Sh;exports.getHeadingsFromMarkdown=ki;exports.getIndentUnit=Xy;exports.getLowestHeadingLevel=ec;exports.getModels=Jt;exports.getRequestFromAuthentication=kh;exports.getSecretCredentialsFromAuthentication=fv;exports.getTooltip=wC;exports.getUrlFromServerState=xl;exports.getVariableNames=o_;exports.hasModels=Th;exports.hasSecuritySchemes=Rv;exports.hasWebhooks=Lv;exports.highlightSpecialChars=dC;exports.indentNodeProp=ev;exports.indentOnInput=h2;exports.indentString=Qy;exports.indentUnit=bh;exports.isJsonString=u0;exports.isMacOS=Ja;exports.isRequestMethod=Ad;exports.isValidUrl=jv;exports.keymap=Iy;exports.lineNumbers=_C;exports.logException=Tr;exports.mapFromObject=s_;exports.mergeAllObjects=i_;exports.normalizeMimeType=f0;exports.objectMerge=Bh;exports.openClientFor=Cl;exports.parse=D1;exports.parseMixed=DC;exports.replaceVariables=Oh;exports.requestMethodAbbreviations=S0;exports.requestMethodColors=k0;exports.scrollToId=_i;exports.showTooltip=Vy;exports.sleep=wr;exports.splitMarkdownInSections=R1;exports.styleTags=Uy;exports.sublanguageProp=Jy;exports.syntaxHighlighting=ov;exports.syntaxTree=pn;exports.tags=F;exports.useApiClientStore=Rl;exports.useAuthenticationStore=ts;exports.useHttpClientStore=Mc;exports.useModal=dv;exports.useOpenApiStore=th;exports.useReactiveSpec=z1;exports.useRequestStore=w0;exports.useServerStore=os;exports.validRequestMethods=nh;exports.variables=B2;exports.zt=_r;
|