@open-wa/api 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/basic-shape-diamond.svg-Bu9cSItR.js","assets/runtime-core.esm-bundler-2tpRQTw-.js","assets/reactivity.esm-bundler-BNk6Zv_g.js","assets/basic-shape-hexagon.svg-BJoiyAUL.js","assets/basic-shape-primary-circle-ellipse-round.svg-Daoaje72.js","assets/basic-shape-primary-square-rectangle.svg-YLGG3FKF.js","assets/basic-shape-shield.svg-DqNRriX3.js","assets/computer-device-desktop-monitor.svg-WQ9f9Yyd.js","assets/computer-device-desktop.svg-C1QoHpfb.js","assets/computer-device-laptop.svg-DftDi_i4.js","assets/computer-device-mobile-phone-android-samsung-back.svg-CKgWwk-M.js","assets/computer-device-mobile-phone-android-samsung.svg-ZImmEqwi.js","assets/computer-device-mobile-phone-iphone-x-back.svg-xBrw0QqX.js","assets/computer-device-mobile-phone-iphone-x.svg-DDxQeDBi.js","assets/computer-device-mobile-tablet-touch.svg-DYfniPU8.js","assets/computer-device-mobile-tablet.svg-Dq0gutQK.js","assets/computer-device-network-ethernet-cat6.svg-CwHOvloq.js","assets/computer-device-network-lan-www.svg-C8Bh80nT.js","assets/computer-device-network-wifi-connection.svg-5hFcG1t3.js","assets/computer-device-network-wifi-router.svg-BgDGwjhn.js","assets/ecology-science-erlenmeyer-flask.svg-Bu4pbH8x.js","assets/image-flash-lightning.svg-D5m0nHLE.js","assets/image-picture-flower.svg-DCs_cHUn.js","assets/interface-alert-exclamation-diamond.svg-2G3xLwqx.js","assets/interface-alert-exclamation-triangle-warning.svg-CbZWnWWp.js","assets/interface-alert-information-circle.svg-D0Rq0ioQ.js","assets/interface-award-crown.svg-BPfuHoAi.js","assets/interface-bookmark-tag.svg-CUSjRJiw.js","assets/interface-bookmark.svg-CUSjRJiw.js","assets/interface-calendar-date-one.svg-BAvbb3-o.js","assets/interface-content-book-open-pages.svg-DRedEoaB.js","assets/interface-content-book-page.svg-bnWYwJAk.js","assets/interface-content-file.svg-BqNPbXHO.js","assets/interface-copy-clipboard.svg-Dyphh54o.js","assets/interface-edit-attachment.svg-BuRbX7t8.js","assets/interface-edit-binocular.svg-CYYevEGv.js","assets/interface-edit-magic-wand.svg-DR2BzOMe.js","assets/interface-edit-tool-paint-roller.svg-BNgZ4_-f.js","assets/interface-edit-tool-pencil.svg-CTbomxh-.js","assets/interface-favorite-award.svg-Bw67_iOy.js","assets/interface-favorite-flag.svg-DaNMlOpZ.js","assets/interface-favorite-heart.svg-r70vyk7c.js","assets/interface-favorite-star.svg-DkU3mkcO.js","assets/interface-favorite-stars-sparkles.svg-BxWiHdGA.js","assets/interface-hierarchy-flowchart.svg-BPHEXJJS.js","assets/interface-home-house.svg-B63-LGqz.js","assets/interface-hyperlink.svg-C_lm0LzO.js","assets/interface-lighting-brightness.svg-DmqVOdtF.js","assets/interface-lock-closed.svg-xwC9xUEf.js","assets/interface-lock-open-unlock.svg-0P7d1Er7.js","assets/interface-login-key.svg-DSUnFVoR.js","assets/interface-search.svg-Cki10DmM.js","assets/interface-setting-cog.svg-B1g7SeN7.js","assets/interface-share-megaphone-bullhorn.svg-Bn-98V1I.js","assets/interface-share-rocket.svg-CxDqnOQE.js","assets/interface-share-satellite.svg-Dr6tbP-H.js","assets/interface-share-space-ship.svg-BcrSZOha.js","assets/interface-share.svg-WJStd-hf.js","assets/interface-signal-square.svg-sR1Jwdkj.js","assets/interface-time-clock-circle.svg-CI-FR3Z0.js","assets/interface-time-hour-glass.svg-BCH_wujz.js","assets/interface-users-multiple.svg-7liAj7tU.js","assets/interface-weather-moon.svg-CEEqAhxr.js","assets/mail-chat-bubble-square.svg-DgBmT6at.js","assets/mail-send-email-paper-airplane.svg-BtW62yNd.js","assets/mail-send-envelope.svg-B2ofGi0G.js","assets/money-cashier-receipt.svg-oYv7RkCx.js","assets/money-currency-dollar-pay.svg-BRFYydmz.js","assets/money-graph-arrow-increase.svg-ChmHgfEP.js","assets/money-graph-bar-chart-increase.svg-D6G7lFzR.js","assets/nature-ecology-leaf.svg-C0Sj6pgM.js","assets/phone-telephone.svg-2UFzF1dr.js","assets/programming-bug.svg-22hsMxQO.js","assets/programming-cloud.svg-CLQxx35l.js","assets/programming-computer-database-server.svg-DfQW4OzL.js","assets/programming-computer-database.svg-BA4JjA4C.js","assets/programming-module-four-layout.svg-ZqZ8jvaZ.js","assets/programming-module-three.svg-C4IJTyw0.js","assets/programming-module.svg-iETi-2b0.js","assets/programming-script-code.svg-rCOsoRKw.js","assets/shopping-cart.svg-Dc4piS12.js","assets/shopping-gift-present.svg--51cUtCZ.js","assets/shopping-shipping-box-parcel-package.svg-BDlugNqF.js","assets/tag-new-circle.svg-IzWjXHZQ.js","assets/travel-map-earth-globe.svg-BdyEHtN7.js","assets/browser-D5Cti8aI.js","assets/browser-DKmo4aW7.js","assets/request-example-CA7cFzBE.js","assets/AgentScalarDrawer.vue-BdxdP8tg.js","assets/workspace-events-8EzB8z38.js","assets/markdown-BSj1FMVF.js","assets/modal-xAFjXJG0.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/basic-shape-diamond.svg-Bu9cSItR.js","assets/runtime-core.esm-bundler-2tpRQTw-.js","assets/reactivity.esm-bundler-BNk6Zv_g.js","assets/basic-shape-hexagon.svg-BJoiyAUL.js","assets/basic-shape-primary-circle-ellipse-round.svg-Daoaje72.js","assets/basic-shape-primary-square-rectangle.svg-YLGG3FKF.js","assets/basic-shape-shield.svg-DqNRriX3.js","assets/computer-device-desktop-monitor.svg-WQ9f9Yyd.js","assets/computer-device-desktop.svg-C1QoHpfb.js","assets/computer-device-laptop.svg-DftDi_i4.js","assets/computer-device-mobile-phone-android-samsung-back.svg-CKgWwk-M.js","assets/computer-device-mobile-phone-android-samsung.svg-ZImmEqwi.js","assets/computer-device-mobile-phone-iphone-x-back.svg-xBrw0QqX.js","assets/computer-device-mobile-phone-iphone-x.svg-DDxQeDBi.js","assets/computer-device-mobile-tablet-touch.svg-DYfniPU8.js","assets/computer-device-mobile-tablet.svg-Dq0gutQK.js","assets/computer-device-network-ethernet-cat6.svg-CwHOvloq.js","assets/computer-device-network-lan-www.svg-C8Bh80nT.js","assets/computer-device-network-wifi-connection.svg-5hFcG1t3.js","assets/computer-device-network-wifi-router.svg-BgDGwjhn.js","assets/ecology-science-erlenmeyer-flask.svg-Bu4pbH8x.js","assets/image-flash-lightning.svg-D5m0nHLE.js","assets/image-picture-flower.svg-DCs_cHUn.js","assets/interface-alert-exclamation-diamond.svg-2G3xLwqx.js","assets/interface-alert-exclamation-triangle-warning.svg-CbZWnWWp.js","assets/interface-alert-information-circle.svg-D0Rq0ioQ.js","assets/interface-award-crown.svg-BPfuHoAi.js","assets/interface-bookmark-tag.svg-CUSjRJiw.js","assets/interface-bookmark.svg-CUSjRJiw.js","assets/interface-calendar-date-one.svg-BAvbb3-o.js","assets/interface-content-book-open-pages.svg-DRedEoaB.js","assets/interface-content-book-page.svg-bnWYwJAk.js","assets/interface-content-file.svg-BqNPbXHO.js","assets/interface-copy-clipboard.svg-Dyphh54o.js","assets/interface-edit-attachment.svg-BuRbX7t8.js","assets/interface-edit-binocular.svg-CYYevEGv.js","assets/interface-edit-magic-wand.svg-DR2BzOMe.js","assets/interface-edit-tool-paint-roller.svg-BNgZ4_-f.js","assets/interface-edit-tool-pencil.svg-CTbomxh-.js","assets/interface-favorite-award.svg-Bw67_iOy.js","assets/interface-favorite-flag.svg-DaNMlOpZ.js","assets/interface-favorite-heart.svg-r70vyk7c.js","assets/interface-favorite-star.svg-DkU3mkcO.js","assets/interface-favorite-stars-sparkles.svg-BxWiHdGA.js","assets/interface-hierarchy-flowchart.svg-BPHEXJJS.js","assets/interface-home-house.svg-B63-LGqz.js","assets/interface-hyperlink.svg-C_lm0LzO.js","assets/interface-lighting-brightness.svg-DmqVOdtF.js","assets/interface-lock-closed.svg-xwC9xUEf.js","assets/interface-lock-open-unlock.svg-0P7d1Er7.js","assets/interface-login-key.svg-DSUnFVoR.js","assets/interface-search.svg-Cki10DmM.js","assets/interface-setting-cog.svg-B1g7SeN7.js","assets/interface-share-megaphone-bullhorn.svg-Bn-98V1I.js","assets/interface-share-rocket.svg-CxDqnOQE.js","assets/interface-share-satellite.svg-Dr6tbP-H.js","assets/interface-share-space-ship.svg-BcrSZOha.js","assets/interface-share.svg-WJStd-hf.js","assets/interface-signal-square.svg-sR1Jwdkj.js","assets/interface-time-clock-circle.svg-CI-FR3Z0.js","assets/interface-time-hour-glass.svg-BCH_wujz.js","assets/interface-users-multiple.svg-7liAj7tU.js","assets/interface-weather-moon.svg-CEEqAhxr.js","assets/mail-chat-bubble-square.svg-DgBmT6at.js","assets/mail-send-email-paper-airplane.svg-BtW62yNd.js","assets/mail-send-envelope.svg-B2ofGi0G.js","assets/money-cashier-receipt.svg-oYv7RkCx.js","assets/money-currency-dollar-pay.svg-BRFYydmz.js","assets/money-graph-arrow-increase.svg-ChmHgfEP.js","assets/money-graph-bar-chart-increase.svg-D6G7lFzR.js","assets/nature-ecology-leaf.svg-C0Sj6pgM.js","assets/phone-telephone.svg-2UFzF1dr.js","assets/programming-bug.svg-22hsMxQO.js","assets/programming-cloud.svg-CLQxx35l.js","assets/programming-computer-database-server.svg-DfQW4OzL.js","assets/programming-computer-database.svg-BA4JjA4C.js","assets/programming-module-four-layout.svg-ZqZ8jvaZ.js","assets/programming-module-three.svg-C4IJTyw0.js","assets/programming-module.svg-iETi-2b0.js","assets/programming-script-code.svg-rCOsoRKw.js","assets/shopping-cart.svg-Dc4piS12.js","assets/shopping-gift-present.svg--51cUtCZ.js","assets/shopping-shipping-box-parcel-package.svg-BDlugNqF.js","assets/tag-new-circle.svg-IzWjXHZQ.js","assets/travel-map-earth-globe.svg-BdyEHtN7.js","assets/browser-D5Cti8aI.js","assets/browser-DKmo4aW7.js","assets/request-example-CA7cFzBE.js","assets/AgentScalarDrawer.vue-B4vQ31VR.js","assets/workspace-events-8EzB8z38.js","assets/markdown-BSj1FMVF.js","assets/modal-DU131dJ8.js"])))=>i.map(i=>d[i]);
2
2
  import{a as e,c as t,i as n,l as r,o as i,r as a,s as o,t as s,u as c}from"./browser-DKmo4aW7.js";import{$ as l,$n as u,$r as d,A as f,An as p,Ar as m,At as h,B as g,Bn as _,Br as v,C as y,Cn as b,Cr as x,Ct as S,D as C,Dn as w,Dt as T,E,En as D,Er as O,Et as k,F as A,Fn as ee,Fr as j,Ft as te,G as ne,Gn as re,Gr as ie,Gt as ae,H as oe,Hn as se,Hr as ce,I as le,In as ue,Ir as de,J as fe,Jn as pe,Jr as me,Jt as he,K as ge,Kn as _e,Kr as ve,Kt as ye,L as be,Ln as xe,Lr as Se,Lt as Ce,Mn as we,Mr as Te,Mt as Ee,N as De,Nn as Oe,Nr as ke,Nt as Ae,O as je,On as Me,Or as Ne,Ot as Pe,Pn as Fe,Pr as Ie,Pt as Le,Qr as Re,Qt as ze,R as Be,Rn as Ve,Rr as He,Rt as Ue,Sn as We,Sr as Ge,St as Ke,T as qe,Tn as Je,Tr as Ye,Tt as Xe,U as Ze,Un as Qe,Ur as $e,Ut as et,V as tt,Vn as nt,Vr as rt,W as it,Wn as at,Wr as ot,Wt as st,X as ct,Xn as lt,Xr as ut,Xt as dt,Y as ft,Yn as pt,Yr as mt,Yt as ht,Zn as gt,Zr as _t,Zt as vt,_n as yt,_r as bt,_t as xt,an as St,ar as Ct,at as wt,bn as Tt,bt as Et,cn as Dt,cr as Ot,ct as kt,dn as At,dr as jt,dt as Mt,ei as Nt,en as Pt,er as Ft,et as It,fn as Lt,fr as Rt,ft as zt,gn as Bt,gr as Vt,gt as Ht,h as Ut,hn as Wt,hr as Gt,ht as Kt,in as qt,ir as Jt,it as Yt,j as Xt,jn as Zt,k as Qt,kn as $t,kr as en,kt as tn,ln as nn,lr as rn,lt as an,mn as on,mr as eee,mt as sn,n as cn,nn as ln,nr as un,nt as dn,on as fn,or as pn,ot as mn,pn as hn,pr as gn,pt as _n,q as vn,qn as yn,qr as tee,qt as bn,r as xn,rn as Sn,rr as Cn,rt as wn,sn as Tn,sr as En,st as Dn,t as On,ti as kn,tn as An,tr as jn,tt as Mn,un as Nn,ur as Pn,ut as Fn,v as nee,vn as In,vr as Ln,vt as Rn,w as zn,wn as Bn,wr as Vn,wt as Hn,xn as ree,xr as Un,xt as Wn,yn as Gn,yr as Kn,z as qn,zn as iee,zr as Jn}from"./workspace-events-8EzB8z38.js";import{$ as Yn,$n as Xn,$r as Zn,$t as aee,A as oee,An as see,Ar as Qn,At as $n,B as er,Bn as tr,Br as cee,Bt as lee,C as uee,Ci as nr,Cn as dee,Cr as fee,Ct as rr,D as ir,Dr as ar,Dt as pee,E as or,En as sr,Er as mee,Et as hee,F as cr,Fn as gee,Fr as _ee,Ft as vee,G as lr,Gn as yee,Gr as ur,Gt as dr,H as fr,Hn as pr,Hr as bee,In as xee,Ir as mr,It as hr,Jr as gr,Jt as See,K as Cee,Kn as wee,Kr as Tee,Kt as Eee,L as _r,Lr as Dee,Lt as vr,M as yr,Mn as br,Mr as Oee,Mt as kee,N as xr,Nn as Aee,Nr as Sr,Nt as jee,O as Cr,On as wr,Or as Tr,Ot as Er,P as Mee,Pn as Dr,Pr as Or,Pt as kr,Q as Ar,Qn as jr,Qr as Mr,Qt as Nr,R as Pr,Rn as Nee,Rr as Pee,Rt as Fr,S as Fee,Si as Ir,Sr as Lr,St as Rr,T as zr,Ti as Br,Tn as Iee,Tr as Vr,Tt as Hr,U as Ur,Un as Wr,Ur as Gr,Ut as Kr,Vn as qr,Vr as Jr,W as Yr,Wn as Lee,Wr as Xr,Wt as Zr,X as Ree,Xn as Qr,Xr as $r,Xt as ei,Y as ti,Yr as ni,Yt as ri,Z as ii,Zn as ai,Zr as oi,Zt as zee,_i as si,_r as ci,_t as li,a as ui,ai as di,an as fi,ar as pi,at as mi,bi as hi,br as gi,bt as _i,ci as vi,cr as M,ct as yi,d as Bee,di as bi,dn as xi,dr as Si,dt as Ci,ei as wi,er as Ti,et as Ei,fi as Di,fn as Oi,fr as ki,ft as Ai,g as ji,gr as Mi,gt as Ni,h as Pi,hi as Fi,hr as Ii,ht as Li,i as Ri,ii as zi,in as Bi,ir as N,it as Vi,j as Hi,jn as Ui,jr as Vee,jt as Wi,k as Hee,kn as Gi,kr as Ki,kt as qi,l as Ji,li as Yi,lr as Xi,mi as Zi,mr as Qi,mt as $i,n as ea,ni as ta,nn as Uee,nr as na,nt as ra,o as ia,oi as aa,or as oa,p as sa,pi as ca,pn as la,pr as ua,pt as da,q as fa,qn as Wee,qr as pa,qt as ma,r as ha,ri as ga,rn as Gee,rr as _a,rt as va,s as ya,si as ba,sr as xa,st as Sa,ti as Ca,tn as Kee,tr as wa,tt as Ta,u as Ea,ur as P,v as Da,vi as Oa,vt as ka,w as Aa,wi as ja,wn as Ma,wr as qee,wt as Jee,x as Na,xi as Pa,xr as Fa,xt as Ia,yi as La,yr as Ra,yt as za,z as Ba,zn as Va,zr as Ha,zt as Ua}from"./request-example-CA7cFzBE.js";import{C as Wa,D as Ga,P as F,V as Ka,_ as qa,_t as Ja,b as Ya,f as Xa,g as Za,ht as Qa,k as $a,o as eo,p as to,u as no,v as ro,vt as io,w as ao,xt as I}from"./reactivity.esm-bundler-BNk6Zv_g.js";import{$ as oo,A as so,B as co,C as Yee,D as lo,E as uo,G as fo,H as L,I as po,J as mo,K as R,L as ho,M as go,N as _o,P as vo,Q as yo,R as bo,S as z,T as xo,U as So,X as Xee,Y as Co,Z as wo,_ as To,at as B,b as V,d as H,et as Eo,f as U,i as Do,j as Oo,k as ko,l as W,nt as Ao,ot as jo,p as G,q as Mo,tt as No,u as K,v as Po,w as Fo,x as Zee,y as q,z as Qee}from"./runtime-core.esm-bundler-2tpRQTw-.js";import{a as $ee,i as Io,r as Lo,t as Ro}from"./markdown-BSj1FMVF.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var zo=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ne(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ae=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function oe(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ae)}catch(e){ae(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function se(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else oe(se.bind(null,e))}var ce={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ce,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=se,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=oe,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Bo=e(((e,t)=>{t.exports=zo()})),Vo=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ete=e(((e,t)=>{t.exports=Vo()})),tte=e((e=>{var t=Bo();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),nte=e(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=tte()})),rte=e((e=>{var t=ete(),n=Bo(),r=nte();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.legacy_hidden`),ce=Symbol.for(`react.memo_cache_sentinel`),le=Symbol.for(`react.view_transition`),ue=Symbol.for(`react.recoverable`),de=Symbol.iterator;function fe(e){return typeof e!=`object`||!e?null:(e=de&&e[de]||e[`@@iterator`],typeof e==`function`?e:null)}var pe=Symbol.for(`react.client.reference`);function me(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case oe:return`Activity`;case le:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case j:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case te:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?me(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var he=Array.isArray,ge=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},ye=[],be=-1;function xe(e){return{current:e}}function Se(e){0>be||(e.current=ye[be],ye[be]=null,be--)}function Ce(e,t){be++,ye[be]=e.current,e.current=t}var we=xe(null),Te=xe(null),Ee=xe(null),De=xe(null);function Oe(e,t){switch(Ce(Ee,t),Ce(Te,e),Ce(we,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hne(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hne(t),e=gne(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Se(we),Ce(we,e)}function ke(){Se(we),Se(Te),Se(Ee)}function Ae(e){var t=e.memoizedState;t!==null&&(xf._currentValue=t.memoizedState,Ce(De,e)),t=we.current;var n=gne(t,e.type);t!==n&&(Ce(Te,e),Ce(we,n))}function je(e){Te.current===e&&(Se(we),Se(Te)),De.current===e&&(Se(De),xf._currentValue=ve)}var Me,Ne;function Pe(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,Ne=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+Me+e+Ne}var Fe=!1;function Ie(e,t){if(!e||Fe)return``;Fe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -150,7 +150,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
150
150
  `),a=Math.max(0,i.length-r);if(a===0)return{text:t,wasClipped:!1};let o=0;for(let e=0;e<a;e++)o+=SHt(i[e])+1;let s=dHt(t,o),c=$Q(s);for(;c>r;)o++,s=dHt(t,o),c=$Q(s);for(;o>0;){let e=dHt(t,o-1);if($Q(e)>r)break;o--,s=e}return{text:s,wasClipped:o>0}},LHt=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);let r=e.length-1,i=t.length-1;for(;r>=n&&i>=n&&e[r]===t[i];)r--,i--;return{start:n,endPrevious:r,endNext:i}},RHt=({prevCount:e,start:t,endPrevious:n,endNext:r,nextLines:i,nextWrappedEndsWithNewline:a})=>{let o=``,s=t-(e-1);s>0&&(o+=yQ(s)),s<0&&(o+=vQ(-s)),o+=`\x1B[G`;let c=Math.max(0,n-t+1);for(let e=0;e<c;e++)o+=vzt,e<c-1&&(o+=yQ());c>1&&(o+=vQ(c-1)),o+=`\x1B[G`;let l=i.slice(t,r+1),u=0;if(l.length>0){let e=l.join(`
151
151
  `),t=a&&r<i.length-1&&!e.endsWith(`
152
152
  `);o+=e,u=FHt(e)-1,o+=`\x1B[K`,t&&(o+=`
153
- `,u++)}let d=t+u,f=i.length-1-d;return f>0&&(o+=yQ(f)),f<0&&(o+=vQ(-f)),o},zHt=jHt(MHt.default.stdout),BHt=jHt(MHt.default.stderr)})),HHt=e((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},f=(e,t,r)=>(r=e==null?{}:n(s(e)),d(t||!e||!e.__esModule||!c.call(e,`default`)?i(r,`default`,{value:e,enumerable:!0}):r,e)),p=wNt();p=f(p);var m=UX();m=f(m);var h=oZ();h=f(h);var g=nFt(),_=(OFt(),r(_Ft));_=f(_);var v=AFt();v=f(v);var y=(mzt(),r(azt));y=f(y);var b=(VHt(),r(AHt));b=f(b);function x(){return{level:`info`,format:`json`,transports:[{type:`console`,format:`json`}],includeStack:!0}}var S=[{pattern:/token/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/secret/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/apikey/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/password/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/authorization/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/cookie/i,strategy:`hash`},{pattern:/sessiondata/i,strategy:`remove`},{pattern:/email/i,strategy:`truncate`,options:{keepChars:3}},{pattern:/phone/i,strategy:`truncate`,options:{keepChars:4}},{pattern:/wid/i,strategy:`hash`},{pattern:/body/i,strategy:`remove`}],C=class{constructor(e=[]){this.rules=[...S,...e]}sanitize(e){let t={};for(let[n,r]of Object.entries(e)){let e=this.findRule(n);if(!e){t[n]=r;continue}t[n]=this.applyRule(n,r,e)}return t}findRule(e){return this.rules.find(t=>typeof t.pattern==`string`?e.toLowerCase()===t.pattern.toLowerCase():t.pattern.test(e))||null}applyRule(e,t,n){if(typeof t!=`string`)return n.strategy===`remove`?void 0:t;switch(n.strategy){case`redact`:return n.options?.replacement||`[REDACTED]`;case`hash`:return this.hash(t);case`truncate`:{let e=n.options?.keepChars||3;return t.length>e?`${t.slice(0,e)}...`:t}case`remove`:return;default:return t}}hash(e){return m.default.createHash(`sha256`).update(e).digest(`hex`).slice(0,16)}},w=new C;function T(e){return w.sanitize(e)}function E(e){return new C(e)}function D(e){return new p.default.transports.Console({forceConsole:!0,format:e.format===`json`?p.default.format.json():p.default.format.simple()})}function O(e){return new p.default.transports.File({filename:e.path,maxsize:e.maxSize,maxFiles:e.maxFiles})}function k(e){let n;try{n=t(`winston-elasticsearch`)}catch{return new(oZ())({log(e,t){console.warn(`[Elasticsearch] Transport not installed, skipping log shipment`),t()}})}return new n({level:`info`,clientOpts:{node:e.url,auth:e.username&&e.password?{username:e.username,password:e.password}:void 0},index:e.indexPrefix||`open-wa`,indexPrefix:e.indexPrefix||`open-wa`,indexSuffixPattern:`YYYY-MM`,bufferLimit:e.bufferSize||100,flushInterval:e.flushInterval||2e3,transformer:e=>{let t=e.context??{};return{"@timestamp":e.timestamp,message:e.message,level:e.level,component:e.component,sessionId:t.sessionId,schemaId:t.schemaId,driver:t.driver,...t,...e}}})}function A(e){return new h.default({log(e,t){t()}})}function ee(e){return new(oZ())({log(e,t){let n=JSON.stringify({timestamp:e.timestamp,level:e.level,message:e.message,component:e.component,context:e.context,...e});e.level===`error`||e.level===`fatal`?console.error(n):console.log(n),t()}})}var j=u({cloudflare:()=>ee,console:()=>D,createTransport:()=>te,elasticsearch:()=>k,file:()=>O,mq:()=>A});function te(e){switch(e.type){case`console`:return D(e);case`file`:return O(e);case`elasticsearch`:return k(e);case`mq`:return A(e);case`cloudflare`:return ee(e);default:throw Error(`Unknown transport type: ${e.type}`)}}function ne(e){let t=e.transports.map(e=>te(e));return p.default.createLogger({level:e.level,format:p.default.format.combine(p.default.format.timestamp(),p.default.format.errors({stack:e.includeStack}),re(),e.format===`json`?p.default.format.json():p.default.format.prettyPrint()),transports:t,exitOnError:!1})}function re(){return p.default.format(e=>({...e,context:T(e.context??{})}))()}var ie=null;function ae(e){ie=ne(e)}var oe={get instance(){return ie||ae(x()),ie}};function se(e){let{component:t,...n}=e,r=T(n),i=oe.instance.child({component:t}),a=e=>({context:{...r,...T(e||{})}});return{debug(e,t){i.debug(e,a(t))},info(e,t){i.info(e,a(t))},warn(e,t){i.warn(e,a(t))},error(e,t){let{error:n,...r}=t||{},o=a(r);if(n instanceof Error){i.error(e,{...o,error:{name:n.name,message:n.message,stack:void 0,code:n.code}});return}i.error(e,o)},fatal(e,t){let{error:n,...r}=t||{},o=a(r);if(n instanceof Error){i.log(`fatal`,e,{...o,error:{name:n.name,message:n.message,stack:void 0,code:n.code}});return}i.log(`fatal`,e,o)},child(e){return se({component:t,...r,...e})},withContext(e){return this.child(e)},setLevel(e){i.level=e}}}var ce=g.z.discriminatedUnion(`type`,[g.z.object({type:g.z.literal(`console`),format:g.z.enum([`json`,`pretty`,`simple`]).optional()}),g.z.object({type:g.z.literal(`file`),path:g.z.string(),maxSize:g.z.number().optional(),maxFiles:g.z.number().optional()}),g.z.object({type:g.z.literal(`elasticsearch`),url:g.z.string(),username:g.z.string().optional(),password:g.z.string().optional(),indexPrefix:g.z.string().optional(),bufferSize:g.z.number().optional(),flushInterval:g.z.number().optional()}),g.z.object({type:g.z.literal(`mq`),brokerUrl:g.z.string(),queue:g.z.string()}),g.z.object({type:g.z.literal(`cloudflare`)})]),le=g.z.object({level:g.z.enum([`debug`,`info`,`warn`,`error`,`fatal`]),format:g.z.enum([`json`,`pretty`]),transports:g.z.array(ce),includeStack:g.z.boolean().default(!0)});function ue(e){let[t,n]=e.split(`@`);if(!t||!n)return e;let r=Math.min(3,Math.floor(t.length/2));return`${t.slice(0,r)}***@${n}`}function de(e){return`***${e.replace(/\D/g,``).slice(-4)}`}function fe(e){let[t]=e.split(`@`);return`***${t.slice(-4)}@c.us`}function pe(e,t=8){return e.length<=t?`[REDACTED]`:`${e.slice(0,t)}...[${e.length} chars]`}function me(e,t=50){return e.length<=t?`[message content hidden]`:`[message content hidden, ${e.length} chars]`}function he(e,t){let n={...e};for(let e of t)e in n&&(n[e]=`[CENSORED]`);return n}var ge=()=>async(e,t)=>{let n=Date.now(),{method:r,path:i}=e.req;oe.instance.debug(`Incoming Request`,{component:`http`,"http.method":r,"http.path":i});try{await t()}catch(e){let t=e instanceof Error?e:Error(String(e)),a=Date.now()-n;throw oe.instance.error(`Request Error`,{component:`http`,"http.method":r,"http.path":i,"http.statusCode":500,"http.latencyMs":a,error:t}),e}let a=Date.now()-n,o=e.res.status,s=o>=500?`error`:o>=400?`warn`:`info`;oe.instance[s](`Request Completed`,{component:`http`,"http.method":r,"http.path":i,"http.statusCode":o,"http.latencyMs":a})},_e=l(((e,t)=>{t.exports={name:`@open-wa/logger`,version:`5.6.0`,description:`Centralized logging and terminal UI for open-wa v5`,main:`dist/index.cjs`,types:`dist/index.d.cts`,scripts:{build:`tsdown src/index.ts --format cjs`,dev:`tsdown src/index.ts --format cjs --watch`,lint:`oxlint src`,test:`vitest run --passWithNoTests`},dependencies:{chalk:`^6.0.1`,figlet:`^1.11.4`,"log-update":`^8.0.0`,ora:`^9.4.1`,winston:`catalog:`,"winston-transport":`^4.9.0`,zod:`catalog:`},devDependencies:{"@types/figlet":`^1.7.0`,"@types/node":`catalog:`,typescript:`catalog:`,vitest:`catalog:`},repository:{type:`git`,url:`https://github.com/open-wa/wa-automate-nodejs.git`},exports:{".":{bun:`./src/index.ts`,types:`./dist/index.d.cts`,require:`./dist/index.cjs`,default:`./dist/index.cjs`}},license:`SEE LICENSE IN LICENSE.md`,files:[`dist`],publishConfig:{exports:{".":{types:`./dist/index.d.cts`,require:`./dist/index.cjs`,default:`./dist/index.cjs`}}}}})),ve=u({show:()=>ye,showProjectBanner:()=>be});function ye(e,t={}){let n=v.default.textSync(e,{font:`ANSI Shadow`,horizontalLayout:`default`}),r=t.color?_.default[t.color]:_.default.cyan;console.log(`
153
+ `,u++)}let d=t+u,f=i.length-1-d;return f>0&&(o+=yQ(f)),f<0&&(o+=vQ(-f)),o},zHt=jHt(MHt.default.stdout),BHt=jHt(MHt.default.stderr)})),HHt=e((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},f=(e,t,r)=>(r=e==null?{}:n(s(e)),d(t||!e||!e.__esModule||!c.call(e,`default`)?i(r,`default`,{value:e,enumerable:!0}):r,e)),p=wNt();p=f(p);var m=UX();m=f(m);var h=oZ();h=f(h);var g=nFt(),_=(OFt(),r(_Ft));_=f(_);var v=AFt();v=f(v);var y=(mzt(),r(azt));y=f(y);var b=(VHt(),r(AHt));b=f(b);function x(){return{level:`info`,format:`json`,transports:[{type:`console`,format:`json`}],includeStack:!0}}var S=[{pattern:/token/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/secret/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/apikey/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/password/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/authorization/i,strategy:`redact`,options:{replacement:`[REDACTED]`}},{pattern:/cookie/i,strategy:`hash`},{pattern:/sessiondata/i,strategy:`remove`},{pattern:/email/i,strategy:`truncate`,options:{keepChars:3}},{pattern:/phone/i,strategy:`truncate`,options:{keepChars:4}},{pattern:/wid/i,strategy:`hash`},{pattern:/body/i,strategy:`remove`}],C=class{constructor(e=[]){this.rules=[...S,...e]}sanitize(e){let t={};for(let[n,r]of Object.entries(e)){let e=this.findRule(n);if(!e){t[n]=r;continue}t[n]=this.applyRule(n,r,e)}return t}findRule(e){return this.rules.find(t=>typeof t.pattern==`string`?e.toLowerCase()===t.pattern.toLowerCase():t.pattern.test(e))||null}applyRule(e,t,n){if(typeof t!=`string`)return n.strategy===`remove`?void 0:t;switch(n.strategy){case`redact`:return n.options?.replacement||`[REDACTED]`;case`hash`:return this.hash(t);case`truncate`:{let e=n.options?.keepChars||3;return t.length>e?`${t.slice(0,e)}...`:t}case`remove`:return;default:return t}}hash(e){return m.default.createHash(`sha256`).update(e).digest(`hex`).slice(0,16)}},w=new C;function T(e){return w.sanitize(e)}function E(e){return new C(e)}function D(e){return new p.default.transports.Console({forceConsole:!0,format:e.format===`json`?p.default.format.json():p.default.format.simple()})}function O(e){return new p.default.transports.File({filename:e.path,maxsize:e.maxSize,maxFiles:e.maxFiles})}function k(e){let n;try{n=t(`winston-elasticsearch`)}catch{return new(oZ())({log(e,t){console.warn(`[Elasticsearch] Transport not installed, skipping log shipment`),t()}})}return new n({level:`info`,clientOpts:{node:e.url,auth:e.username&&e.password?{username:e.username,password:e.password}:void 0},index:e.indexPrefix||`open-wa`,indexPrefix:e.indexPrefix||`open-wa`,indexSuffixPattern:`YYYY-MM`,bufferLimit:e.bufferSize||100,flushInterval:e.flushInterval||2e3,transformer:e=>{let t=e.context??{};return{"@timestamp":e.timestamp,message:e.message,level:e.level,component:e.component,sessionId:t.sessionId,schemaId:t.schemaId,driver:t.driver,...t,...e}}})}function A(e){return new h.default({log(e,t){t()}})}function ee(e){return new(oZ())({log(e,t){let n=JSON.stringify({timestamp:e.timestamp,level:e.level,message:e.message,component:e.component,context:e.context,...e});e.level===`error`||e.level===`fatal`?console.error(n):console.log(n),t()}})}var j=u({cloudflare:()=>ee,console:()=>D,createTransport:()=>te,elasticsearch:()=>k,file:()=>O,mq:()=>A});function te(e){switch(e.type){case`console`:return D(e);case`file`:return O(e);case`elasticsearch`:return k(e);case`mq`:return A(e);case`cloudflare`:return ee(e);default:throw Error(`Unknown transport type: ${e.type}`)}}function ne(e){let t=e.transports.map(e=>te(e));return p.default.createLogger({level:e.level,format:p.default.format.combine(p.default.format.timestamp(),p.default.format.errors({stack:e.includeStack}),re(),e.format===`json`?p.default.format.json():p.default.format.prettyPrint()),transports:t,exitOnError:!1})}function re(){return p.default.format(e=>({...e,context:T(e.context??{})}))()}var ie=null;function ae(e){ie=ne(e)}var oe={get instance(){return ie||ae(x()),ie}};function se(e){let{component:t,...n}=e,r=T(n),i=oe.instance.child({component:t}),a=e=>({context:{...r,...T(e||{})}});return{debug(e,t){i.debug(e,a(t))},info(e,t){i.info(e,a(t))},warn(e,t){i.warn(e,a(t))},error(e,t){let{error:n,...r}=t||{},o=a(r);if(n instanceof Error){i.error(e,{...o,error:{name:n.name,message:n.message,stack:void 0,code:n.code}});return}i.error(e,o)},fatal(e,t){let{error:n,...r}=t||{},o=a(r);if(n instanceof Error){i.log(`fatal`,e,{...o,error:{name:n.name,message:n.message,stack:void 0,code:n.code}});return}i.log(`fatal`,e,o)},child(e){return se({component:t,...r,...e})},withContext(e){return this.child(e)},setLevel(e){i.level=e}}}var ce=g.z.discriminatedUnion(`type`,[g.z.object({type:g.z.literal(`console`),format:g.z.enum([`json`,`pretty`,`simple`]).optional()}),g.z.object({type:g.z.literal(`file`),path:g.z.string(),maxSize:g.z.number().optional(),maxFiles:g.z.number().optional()}),g.z.object({type:g.z.literal(`elasticsearch`),url:g.z.string(),username:g.z.string().optional(),password:g.z.string().optional(),indexPrefix:g.z.string().optional(),bufferSize:g.z.number().optional(),flushInterval:g.z.number().optional()}),g.z.object({type:g.z.literal(`mq`),brokerUrl:g.z.string(),queue:g.z.string()}),g.z.object({type:g.z.literal(`cloudflare`)})]),le=g.z.object({level:g.z.enum([`debug`,`info`,`warn`,`error`,`fatal`]),format:g.z.enum([`json`,`pretty`]),transports:g.z.array(ce),includeStack:g.z.boolean().default(!0)});function ue(e){let[t,n]=e.split(`@`);if(!t||!n)return e;let r=Math.min(3,Math.floor(t.length/2));return`${t.slice(0,r)}***@${n}`}function de(e){return`***${e.replace(/\D/g,``).slice(-4)}`}function fe(e){let[t]=e.split(`@`);return`***${t.slice(-4)}@c.us`}function pe(e,t=8){return e.length<=t?`[REDACTED]`:`${e.slice(0,t)}...[${e.length} chars]`}function me(e,t=50){return e.length<=t?`[message content hidden]`:`[message content hidden, ${e.length} chars]`}function he(e,t){let n={...e};for(let e of t)e in n&&(n[e]=`[CENSORED]`);return n}var ge=()=>async(e,t)=>{let n=Date.now(),{method:r,path:i}=e.req;oe.instance.debug(`Incoming Request`,{component:`http`,"http.method":r,"http.path":i});try{await t()}catch(e){let t=e instanceof Error?e:Error(String(e)),a=Date.now()-n;throw oe.instance.error(`Request Error`,{component:`http`,"http.method":r,"http.path":i,"http.statusCode":500,"http.latencyMs":a,error:t}),e}let a=Date.now()-n,o=e.res.status,s=o>=500?`error`:o>=400?`warn`:`info`;oe.instance[s](`Request Completed`,{component:`http`,"http.method":r,"http.path":i,"http.statusCode":o,"http.latencyMs":a})},_e=l(((e,t)=>{t.exports={name:`@open-wa/logger`,version:`5.6.1`,description:`Centralized logging and terminal UI for open-wa v5`,main:`dist/index.cjs`,types:`dist/index.d.cts`,scripts:{build:`tsdown src/index.ts --format cjs`,dev:`tsdown src/index.ts --format cjs --watch`,lint:`oxlint src`,test:`vitest run --passWithNoTests`},dependencies:{chalk:`^6.0.1`,figlet:`^1.11.4`,"log-update":`^8.0.0`,ora:`^9.4.1`,winston:`catalog:`,"winston-transport":`^4.9.0`,zod:`catalog:`},devDependencies:{"@types/figlet":`^1.7.0`,"@types/node":`catalog:`,typescript:`catalog:`,vitest:`catalog:`},repository:{type:`git`,url:`https://github.com/open-wa/wa-automate-nodejs.git`},exports:{".":{bun:`./src/index.ts`,types:`./dist/index.d.cts`,require:`./dist/index.cjs`,default:`./dist/index.cjs`}},license:`SEE LICENSE IN LICENSE.md`,files:[`dist`],publishConfig:{exports:{".":{types:`./dist/index.d.cts`,require:`./dist/index.cjs`,default:`./dist/index.cjs`}}}}})),ve=u({show:()=>ye,showProjectBanner:()=>be});function ye(e,t={}){let n=v.default.textSync(e,{font:`ANSI Shadow`,horizontalLayout:`default`}),r=t.color?_.default[t.color]:_.default.cyan;console.log(`
154
154
  `),console.log(r(n)),t.version&&console.log(_.default.gray(` v${t.version}`)),t.subtitle&&console.log(_.default.gray(` ${t.subtitle}`)),console.log(`
155
155
  `)}function be(){let e=`unknown`;try{e=_e().version}catch{}ye(`open-wa`,{version:e,subtitle:`WhatsApp automation at scale`,color:`green`})}var xe=u({fail:()=>Te,info:()=>De,start:()=>Ce,stop:()=>Oe,succeed:()=>we,update:()=>ke,warn:()=>Ee}),Se=null;function Ce(e){Se&&Se.stop(),Se=(0,y.default)({text:e,color:`cyan`}).start()}function we(e){Se&&=(Se.succeed(e),null)}function Te(e){Se&&=(Se.fail(e),null)}function Ee(e){Se&&=(Se.warn(e),null)}function De(e){Se&&=(Se.info(e),null)}function Oe(){Se&&=(Se.stop(),null)}function ke(e){Se&&(Se.text=e)}var Ae=u({ProgressLogger:()=>je}),je=class{constructor(e){this.current=0,this.total=e.total,this.label=e.label||`Progress`,this.format=e.format||`both`}update(e){this.current=e;let t=Math.floor(this.current/this.total*100),n=Math.floor(t/100*20),r=`█`.repeat(n)+`░`.repeat(20-n),i=`${_.default.bold(this.label)}: `;(this.format===`bar`||this.format===`both`)&&(i+=`[${_.default.cyan(r)}] `),(this.format===`percentage`||this.format===`both`)&&(i+=`${_.default.yellow(t)}%`),(0,b.default)(i)}done(e=`Done!`){b.default.done(),console.log(_.default.green(`✔ ${e}`))}},Me=u({animated:()=>Ae,banner:()=>ve,spinner:()=>xe});e.LoggerConfigSchema=le,e.censorEmail=ue,e.censorMessageBody=me,e.censorObject=he,e.censorPhone=de,e.censorToken=pe,e.censorWid=fe,e.createLogger=se,e.createSanitizer=E,e.honoLogger=ge,e.rootLogger=oe,e.sanitizeLogContext=T,Object.defineProperty(e,"terminal",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return j}})})),UHt=e((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=(VX(),r(qAt)),n=HHt(),i=class{segment;listeners;children;wildcardSingle;wildcardMulti;constructor(e){this.segment=e,this.listeners=[],this.children=null,this.wildcardSingle=null,this.wildcardMulti=null}},a=class{delimiter;style;root=new i(``);single;multi;constructor(e=`.`,t=`mqtt`){this.delimiter=e,this.style=t,this.single=t===`mqtt`?`+`:`*`,this.multi=t===`mqtt`?`#`:`**`}insert(e,t,n=!1){let r=this.root;for(let t of e.split(this.delimiter))if(t===this.single)r=r.wildcardSingle??=new i(this.single);else if(t===this.multi){if(r=r.wildcardMulti??=new i(this.multi),this.style===`mqtt`)break}else{r.children??=new Map;let e=r.children.get(t);e||r.children.set(t,e=new i(t)),r=e}n?r.listeners.unshift(t):r.listeners.push(t)}remove(e,t){let n=this.root,r=[];for(let t of e.split(this.delimiter)){let e=t===this.single?n.wildcardSingle:t===this.multi?n.wildcardMulti:n.children?.get(t);if(!e)return;if(r.push([n,e,t]),n=e,t===this.multi&&this.style===`mqtt`)break}let i=n.listeners.indexOf(t);i>=0&&n.listeners.splice(i,1);for(let[e,t,n]of r.reverse()){if(t.listeners.length||t.children?.size||t.wildcardSingle||t.wildcardMulti)break;n===this.single?e.wildcardSingle=null:n===this.multi?e.wildcardMulti=null:e.children?.delete(n)}}match(e){let t=e.split(this.delimiter);if(this.style===`mqtt`){let e=[[this.root,0]],n=[];for(;e.length;){let[r,i]=e.pop();if(r.wildcardMulti&&n.push(...r.wildcardMulti.listeners),i===t.length){n.push(...r.listeners);continue}r.wildcardSingle&&e.push([r.wildcardSingle,i+1]);let a=r.children?.get(t[i]);a&&e.push([a,i+1])}return n}let n=[[this.root,0]],r=new Map,i=new Set,a=[];for(;n.length;){let[e,o]=n.pop(),s=r.get(e);if(!s?.has(o)&&(s||r.set(e,s=new Set),s.add(o),(o===t.length||e.segment===this.multi)&&!i.has(e)&&(a.push(...e.listeners),i.add(e)),e.wildcardMulti&&n.push([e.wildcardMulti,o]),o<t.length)){e.segment===this.multi&&n.push([e,o+1]),e.wildcardSingle&&n.push([e.wildcardSingle,o+1]);let r=e.children?.get(t[o]);r&&n.push([r,o+1])}}return a}};function o(e,t,n=`.`){let r=e.split(n),i=t.split(n),a=[[0,0]],o=new Set;for(;a.length;){let[e,t]=a.pop(),n=`${e}:${t}`;if(!o.has(n)){if(o.add(n),e===r.length&&t===i.length)return!0;r[e]===`**`&&a.push([e+1,t]),i[t]===`**`&&a.push([e,t+1]),e!==r.length&&t!==i.length&&(r[e]===i[t]||r[e]===`*`||r[e]===`**`||i[t]===`*`||i[t]===`**`)&&a.push([r[e]===`**`?e:e+1,i[t]===`**`?t:t+1])}}return!1}var s=class{hub;configuration;accepted=0;rejected=0;get enabled(){return!!this.hub&&!t.PubSub.isShutdownUnsafe(this.hub)}get(e){if(this.hub&&e===void 0)return this.hub;let n=e?.strategy??`unbounded`,r=e&&`capacity`in e?e.capacity:1/0,i=e?.replay??0;if(![`unbounded`,`dropping`,`sliding`].includes(n))throw TypeError(`PubSub observations require a non-blocking strategy`);if(n===`unbounded`&&e&&`capacity`in e)throw TypeError(`Choose dropping or sliding when specifying PubSub capacity`);if(n!==`unbounded`&&(!Number.isInteger(r)||r<=0))throw TypeError(`PubSub capacity must be a positive integer`);if(!Number.isInteger(i)||i<0)throw TypeError(`PubSub replay must be a non-negative integer`);if(this.hub){let e=this.configuration;if(e.strategy!==n||e.capacity!==r||e.replay!==i)throw Error(`PubSub is already configured; choose its options before subscribing`);return this.hub}let a=t.Effect.runSync(n===`unbounded`?t.PubSub.unbounded({replay:i}):n===`dropping`?t.PubSub.dropping({capacity:r,replay:i}):t.PubSub.sliding({capacity:r,replay:i}));return this.configuration={strategy:n,capacity:r,replay:i},this.hub=a,a}publish(e){this.hub&&((this.configuration.strategy===`sliding`?t.Effect.runSync(t.PubSub.publish(this.hub,e)):t.PubSub.publishUnsafe(this.hub,e))?this.accepted++:this.rejected++)}status(){return{enabled:!!this.hub,shutdown:!!this.hub&&t.PubSub.isShutdownUnsafe(this.hub),strategy:this.configuration?.strategy,accepted:this.accepted,rejected:this.rejected}}close(){return this.hub?t.PubSub.shutdown(this.hub):t.Effect.void}};function c(e,t,n){let r={fn:e,once:!1,any:!1,signal:t.signal,captureRejections:t.captureRejections};if(t.weak&&typeof WeakRef<`u`&&(r.weakRef=new WeakRef(t.weak),n)){let e={};r.finalizerToken=e,n.register(t.weak,e,e)}return r}function l(e,t){if(!e.signal)return;if(e.signal.aborted){t();return}let n=()=>t();e.abortHandler=n,e.signal.addEventListener(`abort`,n,{once:!0})}function u(e){e.signal&&e.abortHandler&&(e.signal.removeEventListener(`abort`,e.abortHandler),e.abortHandler=void 0)}var d=t.Effect.succeed(!0),f=t.Effect.succeed(!1),p=class{delimiter;captureRejections;wildcardStyle;onError;finalizer;logger;debugEnabled;baseLogContext;exactListeners;wildcardTree;wildcardIndex;hasWildcards=!1;anyListeners=new Map;scope=t.Scope.makeUnsafe();closed=!1;observations=new s;get isClosed(){return this.closed}pubsub(e){return this.assertOpen(),this.observations.get(e)}get hasPubSub(){return!this.closed&&this.observations.enabled}get pubsubStatus(){return this.observations.status()}subscribe(e){return t.Effect.suspend(()=>t.PubSub.subscribe(this.pubsub(e)))}stream(e){return t.Stream.suspend(()=>t.Stream.fromPubSub(this.pubsub(e)))}constructor(e={}){this.delimiter=e.delimiter??`.`,this.wildcardStyle=e.wildcardStyle??`mqtt`,this.captureRejections=e.captureRejections??!1,this.onError=e.onError,this.debugEnabled=!!e.debug,this.baseLogContext={component:`hyperemitter`,...e.loggerContext},this.logger=e.logger?.withContext?.(this.baseLogContext)??(0,n.createLogger)({component:`hyperemitter`,...e.loggerContext}),typeof FinalizationRegistry<`u`&&(this.finalizer=new FinalizationRegistry(e=>{})),this.exactListeners=new Map,this.wildcardTree=new a(this.delimiter,this.wildcardStyle),this.wildcardIndex=new Map}on(e,t,n={}){let r=c(t,n,this.finalizer);return this.add(e,r,n.prepend),this}once(e,t,n={}){let r=c(t,n,this.finalizer);return r.once=!0,this.add(e,r,n.prepend),this}onScoped(e,n,r={}){return t.Effect.acquireRelease(t.Effect.sync(()=>{this.assertOpen();let i=c(n,r,this.finalizer);return i.scope=t.Scope.forkUnsafe(this.scope),this.add(e,i,r.prepend),i}),e=>t.Effect.sync(()=>this.offListener(e)).pipe(t.Effect.andThen(t.Scope.close(e.scope,t.Exit.void)))).pipe(t.Effect.asVoid)}off(e,t){let n=this.exactListeners.get(e);if(n){let r=n.findIndex(e=>e.fn===t);r!==-1&&(u(n[r]),n.splice(r,1)),n.length===0&&this.exactListeners.delete(e)}return this.hasWildcards&&this.isWildcard(e)&&this.removeWildcard(e,t),this}emit(e,n){if(this.closed||(this.observations.enabled&&this.observations.publish(Object.freeze({event:e,payload:n})),this.exactListeners.size===0&&this.wildcardIndex.size===0&&this.anyListeners.size===0))return!1;let r=this.snapshot(e),i=!1;for(let a of r)if(this.prepare(a)){i=!0;try{let r=a.any?a.fn(e,n):a.fn(n);(t.Effect.isEffect(r)||r&&typeof r.then==`function`)&&t.Effect.runSync(t.Effect.forkIn(this.resultEffect(r).pipe(t.Effect.catchCause(e=>t.Effect.sync(()=>{t.Cause.hasInterruptsOnly(e)||this.handleRejection(a,t.Cause.squash(e))}))),a.scope??this.scope,{startImmediately:!0}))}catch(e){if(!this.shouldCapture(a))throw e;this.handleRejection(a,e)}}return i}emitEffect(e,t){return this.dispatch(e,t,!0)}dispatch(e,n,r){return t.Effect.suspend(()=>{if(this.closed)return f;this.observations.enabled&&this.observations.publish(Object.freeze({event:e,payload:n}));let i=this.snapshot(e);if(i.length===0)return f;let a,o=!1,s=!1,c=l=>{for(let u=l;u<i.length;u++){let l=i[u];if(!this.prepare(l))continue;o=!0;let d;try{d=l.any?l.fn(e,n):l.fn(n)}catch(e){if(!this.shouldCapture(l))return t.Effect.fail(e);this.handleRejection(l,e);continue}if(!t.Effect.isEffect(d)&&!(d&&typeof d.then==`function`))continue;s=!0;let f=this.resultEffect(d),p=!r||this.shouldCapture(l)?f.pipe(t.Effect.catchCause(e=>t.Effect.sync(()=>{t.Cause.hasInterruptsOnly(e)||this.handleRejection(l,t.Cause.squash(e))}))):f;return t.Effect.forkIn(p,l.scope??this.scope,{startImmediately:!0}).pipe(t.Effect.flatMap(e=>(r&&(a??=[]).push(e),t.Effect.suspend(()=>c(u+1)))))}return a?t.Fiber.joinAll(a).pipe(t.Effect.as(o)):o?d:f},l=c(0);return r&&s?l.pipe(t.Effect.ensuring(t.Effect.suspend(()=>a?t.Fiber.interruptAll(a):t.Effect.void))):l})}onAny(e,t={}){this.assertOpen();let n=this.anyListeners.get(e);n&&u(n);let r=c(e,t,this.finalizer);return r.any=!0,t.prepend?this.anyListeners=new Map([[e,r],...this.anyListeners]):this.anyListeners.set(e,r),l(r,()=>this.offAny(e)),this}onAnyScoped(e,n={}){let r=(t,n)=>e(t,n);return t.Effect.acquireRelease(t.Effect.sync(()=>{this.assertOpen();let i=c(r,n,this.finalizer);return i.original=e,i.any=!0,i.scope=t.Scope.forkUnsafe(this.scope),this.anyListeners.set(r,i),l(i,()=>this.offAny(r)),i}),e=>t.Effect.sync(()=>this.offAny(r)).pipe(t.Effect.andThen(t.Scope.close(e.scope,t.Exit.void)))).pipe(t.Effect.asVoid)}offAny(e){let t=this.anyListeners.get(e)??[...this.anyListeners.values()].find(t=>t.original===e);return t&&(u(t),this.anyListeners.delete(t.fn)),this}listeners(e){return this.snapshot(e).filter(e=>!e.any&&this.isLive(e)).map(e=>e.fn)}hasListeners(e){return this.snapshot(e).some(e=>this.isLive(e))}listenerCount(e){if(!e){let e=this.wildcardIndex.size+this.anyListeners.size;for(let t of this.exactListeners.values())e+=t.length;return e}return this.listeners(e).length}removeAllListeners(e){if(!e){for(let e of this.exactListeners.values())e.forEach(u);this.exactListeners.clear();for(let e of this.wildcardIndex.keys())u(e);for(let e of this.anyListeners.values())u(e);return this.anyListeners.clear(),this.wildcardTree=new a(this.delimiter,this.wildcardStyle),this.hasWildcards=!1,this.wildcardIndex.clear(),this}let t=this.exactListeners.get(e);if(t&&(t.forEach(u),this.exactListeners.delete(e)),this.hasWildcards&&this.isWildcard(e))for(let[t,n]of this.wildcardIndex.entries())n===e&&(u(t),this.wildcardTree.remove(n,t),this.wildcardIndex.delete(t));return this}close(){return t.Effect.suspend(()=>this.closed?t.Effect.void:(this.closed=!0,this.removeAllListeners(),this.observations.close().pipe(t.Effect.andThen(t.Scope.close(this.scope,t.Exit.void)))))}fromNodeEmitter(e,t){let n=(...e)=>{this.emit(t,e[0])};return e.on(t,n),()=>e.off(t,n)}toNodeEmitter(e){let t=(t,n)=>{e.emit(t,n)};return this.onAny(t),()=>{this.offAny(t)}}onEventTarget(e,t,n){let r=e=>{this.emit(n,e)};return e.addEventListener(t,r),()=>e.removeEventListener(t,r)}add(e,t,n=!1){this.assertOpen();let r=this.isWildcard(e);if(r)this.hasWildcards=!0,this.wildcardTree.insert(e,t,n),this.wildcardIndex.set(t,e);else{let r=this.exactListeners.get(e);r?n?r.unshift(t):r.push(t):this.exactListeners.set(e,[t])}l(t,()=>this.off(e,t.fn)),this.logDebug(`listener_registered`,{event:e,once:t.once,wildcard:r})}listenersAny(){return[...this.anyListeners.values()].filter(e=>this.isLive(e)).map(e=>e.original??e.fn)}eventNames(){return[...new Set([...this.exactListeners.keys(),...this.wildcardIndex.values()])]}isWildcard(e){if(this.wildcardStyle===`mqtt`?!e.includes(`+`)&&!e.includes(`#`):!e.includes(`*`))return!1;let t=this.wildcardStyle===`mqtt`?[`+`,`#`]:[`*`,`**`];return e.split(this.delimiter).some(e=>t.includes(e))}assertOpen(){if(this.closed)throw Error(`HyperEmitter is closed`)}snapshot(e){if(this.wildcardStyle===`eventemitter`&&this.isWildcard(e)){let t=[...this.anyListeners.values()];for(let[n,r]of this.exactListeners)o(n,e,this.delimiter)&&t.push(...r);for(let[n,r]of this.wildcardIndex)o(r,e,this.delimiter)&&t.push(n);return t}let t=this.exactListeners.get(e);return!this.hasWildcards&&this.anyListeners.size===0?t?.slice()??[]:[...this.wildcardStyle===`eventemitter`?this.anyListeners.values():[],...t??[],...this.hasWildcards?this.wildcardTree.match(e):[],...this.wildcardStyle===`mqtt`?this.anyListeners.values():[]]}isLive(e){return!e.signal?.aborted&&(!e.weakRef||!!e.weakRef.deref())}prepare(e){if(!this.isLive(e))return this.offListener(e),!1;if(e.once){if(e.fired)return!1;e.fired=!0,this.offListener(e)}return!0}resultEffect(e){return t.Effect.isEffect(e)?e:e&&typeof e.then==`function`?t.Effect.tryPromise({try:()=>Promise.resolve(e),catch:e=>e}):t.Effect.succeed(e)}offListener(e){for(let[t,n]of this.exactListeners.entries()){let r=n.indexOf(e);if(r!==-1){u(n[r]),n.splice(r,1),n.length===0&&this.exactListeners.delete(t);return}}let t=this.wildcardIndex.get(e);if(t){u(e),this.wildcardTree.remove(t,e),this.wildcardIndex.delete(e);return}this.anyListeners.get(e.fn)===e&&this.offAny(e.fn)}shouldCapture(e){return e.captureRejections??this.captureRejections}handleRejection(e,t){if(!this.shouldCapture(e)){queueMicrotask(()=>{throw t});return}if(this.onError){try{this.onError(t)}catch{}return}this.logger?.error(`listener_rejection`,{error:t,...this.baseLogContext})}removeWildcard(e,t){for(let[n,r]of this.wildcardIndex.entries())if(r===e&&n.fn===t){this.wildcardTree.remove(r,n),this.wildcardIndex.delete(n),u(n);break}}logDebug(e,t){this.debugEnabled&&this.logger?.debug(e,{...this.baseLogContext,...t})}};e.EventEmitter=class e{options;static defaultMaxListeners=10;delimiter;wildcard=!0;ignoreErrors;event=``;engine;registrations=new Map;symbolRoutes=new Map;observers=new Set;pendingWaits=new Set;maxListeners;closed=!1;observations=new s;constructor(t={}){this.options=t,this.delimiter=t.delimiter??`.`,this.ignoreErrors=t.ignoreErrors??!1,this.maxListeners=t.maxListeners??e.defaultMaxListeners,this.engine=new p({delimiter:this.delimiter,wildcardStyle:`eventemitter`})}get isClosed(){return this.closed||this.engine.isClosed}pubsub(e){if(this.isClosed)throw Error(`EventEmitter is closed`);return this.observations.get(e)}get hasPubSub(){return!this.isClosed&&this.observations.enabled}get pubsubStatus(){return this.observations.status()}subscribe(e){return t.Effect.suspend(()=>t.PubSub.subscribe(this.pubsub(e)))}stream(e){return t.Stream.suspend(()=>t.Stream.fromPubSub(this.pubsub(e)))}on(e,t,n){return this.register(e,t,n)}addListener(e,t,n){return this.register(e,t,n)}prependListener(e,t,n){return this.register(e,t,n,!0)}once(e,t,n){return this.register(e,t,n,!1,1)}prependOnceListener(e,t,n){return this.register(e,t,n,!0,1)}many(e,t,n,r){return this.register(e,n,r,!1,t)}prependMany(e,t,n,r){return this.register(e,n,r,!0,t)}onAny(e){return this.register(``,e,void 0,!1,1/0,!0),this}prependAny(e){return this.register(``,e,void 0,!0,1/0,!0),this}offAny(e){for(let t of this.registrations.values())if(t.any&&(!e||t.listener===e)&&(this.remove(t),e))break;return this}off(e,t){let n=this.route(e);for(let e of this.registrations.values())if(!e.any&&e.route===n&&(e.listener===t||e.wrapped===t)){this.remove(e);break}return this}removeListener(e,t){return this.off(e,t)}removeAllListeners(e){let t=e===void 0?void 0:new Set(this.engine.listeners(this.route(e)));for(let e of this.registrations.values())!e.any&&(!t||t.has(e.wrapped))&&this.remove(e);return this}listeners(e){if(e===void 0)throw Error(`event name required for wildcard emitter`);return this.engine.listeners(this.route(e)).map(e=>this.registrations.get(e).listener)}listenersAny(){return this.engine.listenersAny().map(e=>this.registrations.get(e).listener)}listenerCount(e){return this.listeners(e).length}hasListeners(e){if(e===void 0)return this.registrations.size>0;let t=e instanceof String?e.valueOf():e;return this.engine.listeners(this.route(t)).length>0}eventNames(e=!1){let t={children:new Map};for(let n of this.registrations.values()){if(n.any)continue;let r=typeof n.event==`string`?n.event.split(this.delimiter):typeof n.event==`symbol`?[n.event]:[...n.event],i=t;for(let e of r){let t=i.children.get(e);t||i.children.set(e,t={children:new Map}),i=t}i.name=e||r.some(e=>typeof e==`symbol`)?r:r.join(this.delimiter)}let n=[],r=e=>{e.name!==void 0&&n.push(e.name);for(let t of Reflect.ownKeys(Object.fromEntries(e.children)).reverse())r(e.children.get(t))};return r(t),n}setMaxListeners(e){if(typeof e!=`number`||e<0||Number.isNaN(e))throw TypeError(`count must be a non-negative number`);this.maxListeners=e}getMaxListeners(){return this.maxListeners}emit(e,...t){return this.checkError(e,t),!this.isClosed&&(this.observe(e,t),this.engine.emit(this.route(e),{name:this.name(e),values:t}))}emitEffect(e,...n){return t.Effect.suspend(()=>(this.checkError(e,n),this.isClosed?t.Effect.succeed(!1):(this.observe(e,n),this.engine.emitEffect(this.route(e),{name:this.name(e),values:n}))))}emitAsync(e,...n){let r={name:this.name(e),values:n,results:[]};return t.Effect.runPromise(t.Effect.suspend(()=>(this.checkError(e,n),this.isClosed?t.Effect.succeed(!1):(this.observe(e,n),this.engine.emitEffect(this.route(e),r))))).then(()=>r.results)}onScoped(e,n,r={}){return t.Effect.acquireRelease(t.Effect.gen({self:this},function*(){let i=this.makeRegistration(e,n,r,1/0,!1);return yield*this.engine.onScoped(i.route,i.wrapped,r).pipe(t.Effect.onExit(e=>t.Exit.isFailure(e)?t.Effect.sync(()=>this.remove(i)):t.Effect.void)),r.signal?.aborted&&this.remove(i),i}),e=>t.Effect.sync(()=>{this.remove(e)})).pipe(t.Effect.asVoid)}onAnyScoped(e,n={}){return t.Effect.acquireRelease(t.Effect.gen({self:this},function*(){let r=this.makeRegistration(``,e,n,1/0,!0);return yield*this.engine.onAnyScoped(r.wrapped,n).pipe(t.Effect.onExit(e=>t.Exit.isFailure(e)?t.Effect.sync(()=>this.remove(r)):t.Effect.void)),n.signal?.aborted&&this.remove(r),r}),e=>t.Effect.sync(()=>{this.remove(e)})).pipe(t.Effect.asVoid)}waitFor(e,t={}){let n=typeof t==`number`?{timeout:t}:typeof t==`function`?{filter:t}:t,r=n.Promise??Promise,i,a=new r((t,r)=>{let a=!1,o,s=()=>{this.off(e,c),o&&clearTimeout(o),this.pendingWaits.delete(i)},c=(...e)=>{(!n.filter||n.filter.apply(this,e))&&(a=!0,s(),n.handleError&&e[0]?r(e[0]):t(n.handleError?e.slice(1):e))};i=e=>{a||(a=!0,s(),r(e??Object.assign(Error(`canceled`),{code:`ECANCELED`})))},this.on(e,c),this.pendingWaits.add(i),n.timeout&&(o=setTimeout(()=>i(Object.assign(Error(`timeout`),{code:`ETIMEDOUT`})),n.timeout))});return a.cancel=i,a}listenTo(e,t,n={}){let r=n.on??e.on??e.addListener??e.addEventListener,i=n.off??e.off??e.removeListener??e.removeEventListener;if(!r||!i)throw TypeError(`target must support listener registration and removal`);let a=typeof t==`string`?Object.fromEntries(t.split(/\s+/).map(e=>[e,e])):typeof t==`symbol`?{[t]:t}:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;for(let t of Reflect.ownKeys(a)){if([...this.observers].some(n=>n.target===e&&n.event===t))continue;let o=(...e)=>{let r={name:a[t],original:t,data:e};(typeof n.reducers==`function`?n.reducers:n.reducers?.[t])?.(r)!==!1&&this.emit(r.name,...r.data)};r.call(e,t,o),this.observers.add({target:e,event:t,handler:o,off:i})}return this}stopListeningTo(e,t){let n=!1;for(let r of this.observers)(!e||r.target===e)&&(t===void 0||r.event===t)&&(r.off.call(r.target,r.event,r.handler),this.observers.delete(r),n=!0);return n}close(){return t.Effect.suspend(()=>{if(this.closed)return t.Effect.void;this.closed=!0,this.stopListeningTo();for(let e of this.pendingWaits)e(Error(`EventEmitter is closed`));for(let e of this.registrations.values())e.cleanup?.();return this.registrations.clear(),this.symbolRoutes.clear(),this.observations.close().pipe(t.Effect.andThen(this.engine.close()))})}register(e,t,n,r=!1,i=1/0,a=!1){let o=this.listenerOptions(n),s=this.makeRegistration(e,t,o,i,a);try{a?this.engine.onAny(s.wrapped,{...o,prepend:r}):this.engine.on(s.route,s.wrapped,{...o,prepend:r})}catch(e){throw this.remove(s),e}if(o.signal?.aborted&&this.remove(s),o.objectify){let t={emitter:this,event:e,listener:s.wrapped,off:()=>(this.remove(s),t)};return t}return this}makeRegistration(e,n,r,i,a){if(this.isClosed)throw Error(`EventEmitter is closed`);if(typeof n!=`function`)throw TypeError(`listener must be a function`);let o={event:e,route:this.route(e),listener:n,any:a,wrapped:void 0},s=i,c=e=>{if(s===0||r.signal?.aborted)return;--s===0&&this.remove(o),this.event=e.name;let i=a?[e.name,...e.values]:e.values,c=()=>(this.event=e.name,n.apply(this,i)),l=r.async||r.nextTick||r.promisify?r.promisify??n.constructor.name===`AsyncFunction`?new Promise(e=>r.nextTick?process.nextTick(e):setImmediate(e)).then(c):r.nextTick?process.nextTick(c):setImmediate(c):c();if(!e.results)return l;let u=e.results.length;return e.results.push(void 0),t.Effect.isEffect(l)?l.pipe(t.Effect.tap(n=>t.Effect.sync(()=>{e.results[u]=n}))):l&&typeof l.then==`function`?Promise.resolve(l).then(t=>(e.results[u]=t,t)):(e.results[u]=l,l)};if(o.wrapped=a?((e,t)=>c(t)):c,this.options.newListener&&this.emit(`newListener`,e,n),this.registrations.set(o.wrapped,o),r.signal){let e=()=>this.remove(o);r.signal.addEventListener(`abort`,e,{once:!0}),o.cleanup=()=>r.signal.removeEventListener(`abort`,e)}return o}remove(e){this.registrations.delete(e.wrapped)&&(e.cleanup?.(),e.any?this.engine.offAny(e.wrapped):this.engine.off(e.route,e.wrapped),this.options.removeListener&&this.emit(e.any?`removeListenerAny`:`removeListener`,e.event,e.listener))}listenerOptions(e){return e===!0?{promisify:!0}:e===!1?{async:!0}:e??{}}observe(e,t){if(!this.observations.enabled)return;let n=this.name(e);this.observations.publish(Object.freeze({event:Array.isArray(n)?Object.freeze(n.slice()):n,args:Object.freeze(t.slice())}))}checkError(e,t){if(!this.ignoreErrors&&e===`error`&&!this.hasListeners(e)&&!this.listenersAny().length)throw t[0]instanceof Error?t[0]:Error(`Uncaught, unspecified 'error' event.`)}name(e){return Array.isArray(e)&&!e.some(e=>typeof e==`symbol`)?e.join(this.delimiter):e}route(e){if(typeof e==`string`&&!e.includes(`\0`))return e;let t=e=>{if(typeof e==`string`)return e.replace(/\u0000/g,`\0s`);let t=this.symbolRoutes.get(e);return t||this.symbolRoutes.set(e,t=`\u0000${this.symbolRoutes.size}`),t};return typeof e==`string`?t(e):(typeof e==`symbol`?[e]:e).map(t).join(this.delimiter)}},e.HyperEmitter=p})),WHt=class extends Event{code;message;constructor(e,t){super(e),this.code=t?.code??void 0,this.message=t?.message??void 0}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return n(qHt(this),t)}[Symbol.for(`Deno.customInspect`)](e,t){return e(qHt(this),t)}};function GHt(e){let t=globalThis.DOMException;return typeof t==`function`?new t(e,`SyntaxError`):SyntaxError(e)}function KHt(e){return e instanceof Error?`errors`in e&&Array.isArray(e.errors)?e.errors.map(KHt).join(`, `):`cause`in e&&e.cause instanceof Error?`${e}: ${KHt(e.cause)}`:e.message:`${e}`}function qHt(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var JHt=class extends Error{constructor(e,t){super(e),this.name=`ParseError`,this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}},e$=10,t$=13,n$=32,YHt=6;function XHt(e){if(typeof e==`function`)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{maxBufferSize:t,onComment:n,onError:r,onEvent:i,onId:a,onRetry:o}=e,s=[],c=0,l=``,u,d=``,f=0,p,m=!1,h=!1,g=!1;function _(e){if(m)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(l!==void 0){if(e=l+e,e===``||e===`ï`||e===`ï»`){l=e;return}l=void 0,e=e.replace(/^(?:\uFEFF|\xEF\xBB\xBF)/,``)}if((h||g)&&(e=v(e),!e))return;if(!s.length){let t=S(e);t!==``&&y(t),x();return}if(e.indexOf(`
156
156
  `)===-1&&e.indexOf(`\r`)===-1){if(c<YHt&&!b(s.join(``)+e.slice(0,YHt-c))){s.length=0,c=0,h=!0;return}s.push(e),c+=e.length,x();return}s.push(e);let t=s.join(``);s.length=0,c=0,y(S(t)),x()}function v(e){if(e.length===0)return e;if(g)return g=!1,e.charCodeAt(0)===e$?e.slice(1):e;let t=e.indexOf(`\r`),n=e.indexOf(`
@@ -2299,7 +2299,7 @@ const { statusCode, body } = await request('${t.url}${r}'${i})`}},l5t=`---011000
2299
2299
  x-enum-varnames: [Moon, Asteroid]`})}),gRn=xa({"x-examples":M(Xi(P(),ai(),{typeComment:`Map of example name to example value`}))},{typeName:`XExamples`,typeComment:P5(`Named examples attached to a schema. Keys are example names; values are the example payloads.`,{language:`yaml`,body:`x-examples:
2300
2300
  user:
2301
2301
  id: 1
2302
- name: Ada`})}),_Rn=xa({"x-variable":M(P({typeComment:`Variable name used for substitution in the API client`}))},{typeName:`XVariable`,typeComment:P5(`References a variable for schema property substitution in the API client.`,{language:`yaml`,body:`x-variable: userId`})}),vRn=xa({propertyName:P({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:M(Xi(P(),P(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),yRn=xa({url:P({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:M(P({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),bRn=xa({$status:M(Si([N(`loading`),N(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:M(Xn({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),xRn=xa({$ref:P({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:M(P({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:M(P({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),F5=e=>Si([xRn,e]),SRn=xa({name:M(P({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:M(P({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:M(P({typeComment:`The prefix to be used for the name.`})),attribute:M(Xn({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:M(Xn({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),CRn=[eRn,XLn,_Rn,gRn,mRn,hRn,fRn,uRn],wRn=xa({name:M(P({typeComment:`Schema name (extension).`})),title:M(P({typeComment:`A title for the schema.`})),description:M(P({typeComment:`A description of the schema.`})),default:M(ai({typeComment:`Default value for the schema.`})),enum:M(jr(ai(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:M(ai({typeComment:`Constant value that must match exactly.`})),contentMediaType:M(P({typeComment:`Media type for content validation.`})),contentEncoding:M(P({typeComment:`Content encoding.`})),contentSchema:M(F5(_a(()=>I5))),deprecated:M(Xn({typeComment:`Whether the schema is deprecated.`})),discriminator:M(vRn),readOnly:M(Xn({typeComment:`Whether the schema is read-only.`})),writeOnly:M(Xn({typeComment:`Whether the schema is write-only.`})),xml:M(SRn),externalDocs:M(yRn),example:M(ai({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:M(jr(ai(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectAllOf`})),oneOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectOneOf`})),anyOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectAnyOf`})),not:M(F5(_a(()=>I5)))}),TRn=xa({multipleOf:M(oa({typeComment:`Number must be a multiple of this value.`})),maximum:M(oa({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:M(oa({typeComment:`Maximum value (exclusive).`})),minimum:M(oa({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:M(oa({typeComment:`Minimum value (exclusive).`}))}),ERn=na([xa({type:Si([N(`number`),N(`integer`)]),format:M(P({typeComment:`Different subtypes.`}))}),TRn],{typeName:`NumberSchemaObject`}),DRn=xa({maxLength:M(oa({typeComment:`Maximum string length.`})),minLength:M(oa({typeComment:`Minimum string length.`})),pattern:M(P({typeComment:`Regular expression pattern.`}))}),ORn=na([xa({type:N(`string`),format:M(P({typeComment:`Different subtypes.`}))}),DRn],{typeName:`StringSchemaObject`}),kRn=xa({maxProperties:M(oa({typeComment:`Maximum number of properties.`})),minProperties:M(oa({typeComment:`Minimum number of properties.`})),properties:M(Xi(P(),F5(_a(()=>I5)),{typeName:`SchemaObjectProperties`})),required:M(jr(P(),{typeName:`SchemaObjectRequired`})),additionalProperties:M(Si([F5(_a(()=>I5)),xa({}),Xn()],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:M(Xi(P(),F5(_a(()=>I5)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:M(F5(_a(()=>I5)))}),ARn=na([xa({type:N(`object`)}),kRn],{typeName:`ObjectSchemaObject`}),jRn=xa({maxItems:M(oa({typeComment:`Maximum number of items in array.`})),minItems:M(oa({typeComment:`Minimum number of items in array.`})),uniqueItems:M(Xn({typeComment:`Whether array items must be unique.`})),items:M(F5(_a(()=>I5))),prefixItems:M(jr(F5(_a(()=>I5)),{typeComment:`Schema for tuple validation.`}))}),MRn=na([xa({type:N(`array`)}),jRn],{typeName:`ArraySchemaObject`}),NRn=Si([N(`null`),N(`boolean`),N(`string`),N(`number`),N(`integer`),N(`object`),N(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),PRn=xa({type:Si([N(`null`),N(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),FRn=na([xa({type:jr(NRn,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:M(P({typeComment:`Different subtypes.`}))}),TRn,DRn,jRn,kRn],{typeName:`MultiTypeSchemaObject`}),I5=na([wRn,...CRn,Si([PRn,ERn,ORn,ARn,MRn,FRn,xa({})])],{typeName:`SchemaObject`}),IRn=xa({$ref:P({typeComment:`REQUIRED. The reference string.`})},{typeName:`AsyncApiReferenceObject`,typeComment:`JSON Reference for AsyncAPI components.`}),LRn=e=>{let t=new Set,n=e;for(;nr(n)&&`$ref`in n&&!t.has(n);)t.add(n),n=n[`$ref-value`];return n},L5=e=>na([IRn,xa({"$ref-value":M(Ti(LRn,e))}),bRn]),R5=e=>Si([e,L5(e)]),RRn=xa({schemaFormat:M(P({typeComment:`Media type identifying the schema format. When omitted, defaults to the AsyncAPI JSON Schema vocabulary for the document version.`})),schema:ki({typeComment:`REQUIRED. Schema definition in the format given by schemaFormat.`})},{typeName:`AsyncApiMultiFormatSchemaObject`}),zRn=Si([N(!0),N(!1),I5],{typeName:`AsyncApiSchemaJsonShape`}),BRn=R5(zRn),z5=R5(Si([RRn,zRn],{typeName:`AsyncApiMultiFormatSchemaOrSchemaObject`})),VRn=xa({method:M(Si([N(`GET`),N(`POST`)],{typeComment:`HTTP method used when establishing the WebSocket connection (typically GET).`})),query:M(BRn,{typeComment:`Schema Object describing WebSocket handshake query parameters (type object with properties). May be a Reference Object.`}),headers:M(BRn,{typeComment:`Schema Object describing HTTP headers sent during the WebSocket handshake (type object with properties). May be a Reference Object.`}),bindingVersion:M(P({typeComment:`Version of the WebSocket binding. When omitted, "latest" is assumed per the binding spec.`}))},{typeName:`AsyncApiWsBindingObject`,typeComment:`AsyncAPI WebSocket binding for handshake method, query, and headers.`}),HRn=[`http`,`ws`,`kafka`,`anypointmq`,`amqp`,`amqp1`,`mqtt`,`mqtt5`,`nats`,`jms`,`sns`,`solace`,`sqs`,`stomp`,`redis`,`mercure`,`ibmmq`,`googlepubsub`,`pulsar`,`ros2`],URn=()=>M(ki({typeComment:`Protocol-specific binding definition (see AsyncAPI protocol bindings).`})),WRn=()=>{let e={};for(let t of HRn)e[t]=t===`ws`?M(VRn):URn();return e},B5=(e,t)=>xa(WRn(),{typeName:e,typeComment:t}),GRn=B5(`AsyncApiServerBindingsObject`,`Map describing protocol-specific definitions for a server (AsyncAPI 3.1.0).`),KRn=B5(`AsyncApiChannelBindingsObject`,`Map describing protocol-specific definitions for a channel (AsyncAPI 3.1.0).`),qRn=B5(`AsyncApiOperationBindingsObject`,`Map describing protocol-specific definitions for an operation (AsyncAPI 3.1.0).`),JRn=B5(`AsyncApiMessageBindingsObject`,`Map describing protocol-specific definitions for a message (AsyncAPI 3.1.0).`),V5=R5(xa({description:M(P({typeComment:`A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.`})),url:P({typeComment:`REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.`})},{typeName:`AsyncApiExternalDocumentationObject`})),YRn=R5(xa({description:M(P({typeComment:`An optional description of the identifier. CommonMark syntax MAY be used for rich text representation.`})),location:P({typeComment:`REQUIRED. A runtime expression that specifies the location of the correlation ID.`})},{typeName:`AsyncApiCorrelationIdObject`})),XRn=xa({headers:M(Xi(P(),ki(),{typeComment:`Example headers; MUST validate against the Message Object headers field when present.`})),payload:M(ki({typeComment:`Example payload; MUST validate against the Message Object payload field when present.`})),name:M(P({typeComment:`A machine-friendly name.`})),summary:M(P({typeComment:`A short summary of what the example is about.`}))},{typeName:`AsyncApiMessageExampleObject`}),ZRn=R5(xa({name:P({typeComment:`REQUIRED. The name of the tag.`}),description:M(P({typeComment:`A short description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(V5)},{typeName:`AsyncApiTagObject`})),H5=jr(ZRn,{typeName:`AsyncApiTagsObject`,typeComment:`A list of Tag Objects (entries MAY be Reference Objects).`}),QRn=R5(xa({headers:M(z5),correlationId:M(YRn),contentType:M(P({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:M(P({typeComment:`A machine-friendly name for the message.`})),title:M(P({typeComment:`A human-friendly title for the message.`})),summary:M(P({typeComment:`A short summary of what the message is about.`})),description:M(P({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(JRn)),examples:M(jr(R5(XRn)))},{typeName:`AsyncApiMessageTraitObject`})),U5=_a(()=>R5(xa({headers:M(z5),payload:M(z5),correlationId:M(YRn),contentType:M(P({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:M(P({typeComment:`A machine-friendly name for the message.`})),title:M(P({typeComment:`A human-friendly title for the message.`})),summary:M(P({typeComment:`A short summary of what the message is about.`})),description:M(P({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(JRn)),examples:M(jr(R5(XRn))),traits:M(jr(QRn))},{typeName:`AsyncApiMessageObject`}))),$Rn=Xi(P(),U5,{typeName:`AsyncApiMessagesObject`,typeComment:`Map of messageId to Message Object or Reference Object.`}),ezn=R5(xa({enum:M(jr(P(),{typeComment:`An enumeration of string values for substitution.`})),default:M(P({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:M(P({typeComment:`An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.`})),examples:M(jr(P(),{typeComment:`Examples of the parameter value.`})),location:M(P({typeComment:`A runtime expression that specifies the location of the parameter value.`}))},{typeName:`AsyncApiParameterObject`})),tzn=Xi(P(),ezn,{typeName:`AsyncApiParametersObject`,typeComment:`Map of parameter name to Parameter Object or Reference Object.`}),W5=xa({authorizationUrl:M(P({typeComment:`REQUIRED for implicit and authorizationCode flows. The authorization URL (absolute URL).`})),tokenUrl:M(P({typeComment:`REQUIRED for password, clientCredentials, and authorizationCode flows. The token URL (absolute URL).`})),refreshUrl:M(P({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of an absolute URL.`})),availableScopes:M(Xi(P(),P(),{typeComment:`REQUIRED for OAuth2 flows. Map of scope name to a short description.`}))},{typeName:`AsyncApiOAuthFlowObject`}),nzn=xa({implicit:M(R5(W5)),password:M(R5(W5)),clientCredentials:M(R5(W5)),authorizationCode:M(R5(W5))},{typeName:`AsyncApiOAuthFlowsObject`}),G5=R5(xa({type:Si([N(`userPassword`),N(`apiKey`),N(`X509`),N(`symmetricEncryption`),N(`asymmetricEncryption`),N(`httpApiKey`),N(`http`),N(`oauth2`),N(`openIdConnect`),N(`plain`),N(`scramSha256`),N(`scramSha512`),N(`gssapi`)],{typeComment:`REQUIRED. Security scheme type: userPassword, apiKey, X509, symmetricEncryption, asymmetricEncryption, httpApiKey, http, oauth2, openIdConnect, plain, scramSha256, scramSha512, gssapi.`}),description:M(P({typeComment:`A short description for security scheme. CommonMark syntax MAY be used for rich text representation.`})),name:M(P({typeComment:`REQUIRED for httpApiKey. The name of the header, query or cookie parameter.`})),in:M(Si([N(`user`),N(`password`),N(`query`),N(`header`),N(`cookie`)],{typeComment:`REQUIRED for apiKey and httpApiKey. Location of the API key: user, password, query, header, or cookie.`})),scheme:M(P({typeComment:`REQUIRED for http. The name of the HTTP Authorization scheme to be used in the Authorization header.`})),bearerFormat:M(P({typeComment:`A hint to the client to identify how the bearer token is formatted.`})),flows:M(R5(nzn)),openIdConnectUrl:M(P({typeComment:`REQUIRED for openIdConnect. OpenId Connect URL to discover OAuth2 configuration values (absolute URL).`})),scopes:M(jr(P(),{typeComment:`List of the needed scope names for oauth2 and openIdConnect.`}))},{typeName:`AsyncApiSecuritySchemeObject`})),rzn=R5(xa({enum:M(jr(P(),{typeComment:`An enumeration of string values for substitution.`})),default:M(P({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:M(P({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`})),examples:M(jr(P(),{typeComment:`Examples of the server variable.`}))},{typeName:`AsyncApiServerVariableObject`})),izn=R5(xa({host:P({typeComment:`REQUIRED. The server host name. It MAY include the port. Supports Server Variables in {braces}.`}),protocol:P({typeComment:`REQUIRED. The protocol this server supports for connection.`}),protocolVersion:M(P({typeComment:`The version of the protocol used for connection (for example 0-9-1 for AMQP).`})),pathname:M(P({typeComment:`The path to a resource in the host. Supports Server Variables in {braces}.`})),description:M(P({typeComment:`An optional string describing the server. CommonMark syntax MAY be used for rich text representation.`})),title:M(P({typeComment:`A human-friendly title for the server.`})),summary:M(P({typeComment:`A short summary of the server.`})),variables:M(Xi(P(),rzn,{typeComment:`Map between a variable name and its Server Variable Object or Reference Object.`})),security:M(jr(G5,{typeComment:`Alternative security schemes for this server; only one of the security scheme objects need to be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(GRn))},{typeName:`AsyncApiServerObject`})),azn=Xi(P(),izn,{typeName:`AsyncApiServersObject`,typeComment:`Map of server name to Server Object or Reference Object.`}),ozn=_a(()=>xa({address:M(Si([P(),pi()],{typeComment:`Channel address or null when unknown.`})),messages:M($Rn),title:M(P({typeComment:`A human-friendly title for the channel.`})),summary:M(P({typeComment:`A short summary of the channel.`})),description:M(P({typeComment:`An optional description of this channel. CommonMark syntax MAY be used for rich text representation.`})),servers:M(jr(L5(izn),{typeComment:`References to Server definitions where this channel is available (Reference Objects only in the raw document).`})),parameters:M(tzn),tags:M(H5),externalDocs:M(V5),bindings:M(R5(KRn))},{typeName:`AsyncApiChannelObject`})),szn=Xi(P(),R5(ozn),{typeName:`AsyncApiChannelsObject`,typeComment:`Map of channelId to Channel Object or Reference Object.`}),czn=R5(xa({description:M(P({typeComment:`An optional description of the address. CommonMark syntax MAY be used for rich text representation.`})),location:P({typeComment:`REQUIRED. A runtime expression that specifies the location of the reply address.`})},{typeName:`AsyncApiOperationReplyAddressObject`})),lzn=_a(()=>R5(xa({address:M(czn),channel:M(L5(ozn)),messages:M(jr(L5(U5),{typeComment:`List of $ref pointers to Message Objects used as reply payloads (Reference Objects only in the raw document).`}))},{typeName:`AsyncApiOperationReplyObject`}))),uzn=R5(xa({title:M(P({typeComment:`A human-friendly title for the operation.`})),summary:M(P({typeComment:`A short summary of what the operation is about.`})),description:M(P({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:M(jr(G5,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(qRn))},{typeName:`AsyncApiOperationTraitObject`})),dzn=_a(()=>R5(xa({action:Si([N(`send`),N(`receive`)],{typeComment:`REQUIRED. send when the application sends to the channel; receive when it receives from the channel.`}),channel:L5(ozn),title:M(P({typeComment:`A human-friendly title for the operation.`})),summary:M(P({typeComment:`A short summary of what the operation is about.`})),description:M(P({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:M(jr(G5,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(qRn)),traits:M(jr(uzn)),messages:M(jr(L5(U5),{typeComment:`Subset of channel messages as Reference Objects only. Omit to include all channel messages; use [] for none.`})),reply:M(lzn)},{typeName:`AsyncApiOperationObject`}))),fzn=Xi(P(),dzn,{typeName:`AsyncApiOperationsObject`,typeComment:`Map of operationId to Operation Object or Reference Object.`}),pzn=_a(()=>xa({schemas:M(Xi(P(),z5,{typeComment:`Reusable Multi Format Schema, Schema Object, or Reference Object.`})),servers:M(Xi(P(),izn)),channels:M(szn),operations:M(Xi(P(),dzn)),messages:M(Xi(P(),U5)),securitySchemes:M(Xi(P(),G5)),serverVariables:M(Xi(P(),rzn)),parameters:M(Xi(P(),ezn)),correlationIds:M(Xi(P(),YRn)),replies:M(Xi(P(),lzn)),replyAddresses:M(Xi(P(),czn)),externalDocs:M(Xi(P(),V5)),tags:M(Xi(P(),ZRn)),operationTraits:M(Xi(P(),uzn)),messageTraits:M(Xi(P(),QRn)),serverBindings:M(Xi(P(),R5(GRn))),channelBindings:M(Xi(P(),R5(KRn))),operationBindings:M(Xi(P(),R5(qRn))),messageBindings:M(Xi(P(),R5(JRn)))},{typeName:`AsyncApiComponentsObject`,typeComment:`Reusable objects. Definitions here have no effect unless referenced from outside components.`})),mzn=xa({name:M(P({typeComment:`The identifying name of the contact person/organization.`})),url:M(P({typeComment:`The URL pointing to the contact information. This MUST be in the form of an absolute URL.`})),email:M(P({typeComment:`The email address of the contact person/organization.`}))},{typeName:`AsyncApiContactObject`}),hzn=R5(xa({name:P({typeComment:`REQUIRED. The license name used for the API.`}),url:M(P({typeComment:`A URL to the license used for the API. This MUST be in the form of an absolute URL.`}))},{typeName:`AsyncApiLicenseObject`})),gzn=xa({title:P({typeComment:`REQUIRED. The title of the application.`}),version:P({typeComment:`REQUIRED. Provides the version of the application API (not to be confused with the AsyncAPI Specification version).`}),description:M(P({typeComment:`A short description of the application. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:M(P({typeComment:`A URL to the Terms of Service for the API (absolute URL).`})),contact:M(mzn),license:M(hzn),tags:M(H5),externalDocs:M(V5)},{typeName:`AsyncApiInfoObject`}),_zn=na([ZLn,rRn,aRn,iRn,tRn,lRn,sRn,dRn],{typeName:`AsyncApiExtensions`,typeComment:`AsyncAPI document-level Scalar extensions shared with workspace tooling.`}),vzn=xa({asyncapi:P({typeComment:`REQUIRED. AsyncAPI Specification version (major.minor.patch). Patch MAY include a hyphen suffix.`}),id:M(P({typeComment:`Identifier of the application the AsyncAPI document is defining (URI, RFC3986).`})),info:gzn,servers:M(azn),defaultContentType:M(P({typeComment:`Default content type when encoding/decoding a message payload (for example application/json).`})),channels:M(szn),operations:M(fzn),components:M(R5(pzn))},{typeName:`AsyncApiDocumentCore`,typeComment:`Root AsyncAPI 3.1.0 document combining resource listing and API declaration.`}),yzn=na([vzn,_zn],{typeName:`AsyncApiObject`,typeComment:`Root AsyncAPI 3.1.0 document including Scalar workspace extensions (AsyncApiExtensionsSchema).`}),K5=Ra.Object({name:Ra.String(),value:Ra.String()}),bzn=Ra.Object({url:Ra.String(),method:Ra.String(),httpVersion:Ra.String(),headers:Ra.Array(K5),cookies:Ra.Array(K5),headersSize:Ra.Number(),queryString:Ra.Array(K5),bodySize:Ra.Number(),postData:Ra.Optional(Ra.Union([Ra.Object({mimeType:Ra.String(),text:Ra.String()}),Ra.Object({mimeType:Ra.String(),params:Ra.Array(Ra.Object({name:Ra.String(),value:Ra.Optional(Ra.String())}))})]))}),xzn=Ra.Object({status:Ra.Number(),statusText:Ra.String(),headers:Ra.Array(K5),cookies:Ra.Array(K5),httpVersion:Ra.String(),redirectURL:Ra.String(),headersSize:Ra.Number(),bodySize:Ra.Number(),content:Ra.Object({size:Ra.Number(),mimeType:Ra.String(),encoding:Ra.Optional(Ra.String()),text:Ra.Optional(Ra.String())})}),Szn=Ra.Object({time:Ra.Number(),timestamp:Ra.Number(),request:bzn,response:xzn,meta:Ra.Object({example:Ra.String()}),requestMetadata:Ra.Object({variables:Ra.Record(Ra.String(),Ra.String())})}),Czn=Ra.Record(Ra.String(),Ra.Record(Ra.String(),Ra.Array(Szn))),wzn=Ra.Record(Ra.String(),Czn),Tzn=5,Ezn=({hooks:e})=>{let t=Za({});return{getHistory:(e,n,r)=>t[e]?.[n]?.[r],addHistory:(n,r,i,a)=>{t[n]||={},t[n][r]||={},t[n][r][i]||=[],t[n][r][i].length>=Tzn&&(t[n][r][i]=wi(t[n][r][i].filter((e,t)=>t!==0),{depth:1})),t[n][r][i].push(a),e?.onHistoryChange?.(n)},clearOperationHistory:(n,r,i)=>{delete t[n]?.[r]?.[i],e?.onHistoryChange?.(n)},clearPathHistory:(n,r)=>{delete t[n]?.[r],e?.onHistoryChange?.(n)},clearDocumentHistory:n=>{delete t[n],e?.onHistoryChange?.(n)},load:n=>{let r=Qi(wzn,n);T(t,r),Object.keys(r).forEach(t=>{e?.onHistoryChange?.(t)})},export:()=>wi(t)}},Dzn=e=>{let t=Na(e).replace(/[^a-zA-Z0-9_.~{}-]/gu,e=>`~x${e.codePointAt(0)?.toString(16)}~`),n=t.length;for(;n>0&&t[n-1]===`.`;)n--;let r=t.slice(0,n)+`~x2e~`.repeat(t.length-n);return/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(r)||r===``?`~x~${r}`:r},q5=`x-scalar-chunk-index`,Ozn=/\{\{|\}\}|\{(\w+)\}/g,kzn=(e,t={})=>e.replace(Ozn,(e,n)=>n===void 0?e.charAt(0):t[n]??e),J5=e=>e,Azn={static:{type:Dzn,name:Dzn,path:Dzn,method:J5},ssr:{type:J5,name:J5,path:Na,method:J5}},jzn=e=>({$ref:e,$global:!0}),Mzn=e=>nr(e)&&(e.mode===`static`||e.mode===`ssr`)&&nr(e.refs)&&nr(e.components)&&nr(e.paths),Nzn=e=>{if(!nr(e)||e[`x-scalar-chunk-index`]===void 0)return!1;let t=e[q5];if(!Mzn(t))return delete e[q5],console.warn(`Ignoring an unreadable "${q5}"; this document's chunks cannot be resolved.`),!1;let n=Azn[t.mode],r=Object.fromEntries(Object.entries(t.components).map(([e,r])=>[e,Object.fromEntries(r.map(r=>[r,jzn(kzn(t.refs.components,{type:n.type(e),name:n.name(r)}))]))])),i=Object.fromEntries(Object.entries(t.paths).map(([e,r])=>[e,Object.fromEntries(Object.entries(r).map(([r,i])=>[r,ka(r)?jzn(kzn(t.refs.operations,{path:n.path(e),method:n.method(r)})):i]))]));return e.components=r,e.paths=i,delete e[q5],!0},Pzn=new WeakMap,Fzn=e=>{let t=Ca(e);typeof t==`object`&&t&&Pzn.set(t,(Pzn.get(t)??0)+1)},Izn=e=>e.fetch?e.fetch:((t,n)=>fetch(yi(e.proxyUrl,t.toString()),n)),Lzn=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`]),Rzn=new Set([`allOf`,`anyOf`,`oneOf`,`prefixItems`]),zzn=new Set([`items`,`not`,`if`,`then`,`else`,`contains`,`propertyNames`,`contentSchema`,`$ref-value`]),Bzn=new Set([`paths`,`webhooks`,`responses`,`content`,`headers`,`examples`,`links`,`encoding`,`variables`,`parameters`,`requestBodies`,`securitySchemes`,`pathItems`,`mediaTypes`,`additionalOperations`,`callbacks`,`x-ext`]),Vzn=new Set([`example`,`examples`,`default`,`enum`,`const`,`value`,`dataValue`]),Hzn=e=>{let t=new WeakMap,n=new Set,r=new WeakSet,i=new WeakSet,a=[],o=e=>{let n=t.get(e);if(n)return n;let r={source:e};return t.set(e,r),r},s=o(e),c=(e,t,n)=>{let r=o(n);if(!r.parent)r.parent={node:e,key:t};else if(r.parent.node!==e||r.parent.key!==t){let n=r.otherParents??=[];n.some(n=>n.node===e&&n.key===t)||n.push({node:e,key:t})}return r},l=(e,t,r)=>{typeof r==`boolean`?((e.replacements??=new Map).set(t,r?{__scalar_:``}:{__scalar_:``,not:{__scalar_:``}}),n.add(e)):nr(r)&&a.push({node:c(e,t,r),kind:`schema`})},u=e=>{let t=Yi(e),n=s;for(let[e,r]of t.entries()){if(!Object.hasOwn(n.source,r))return;let i=Reflect.get(n.source,r);if(e===t.length-1)l(n,r,i);else if(typeof i==`object`&&i)n=c(n,r,i);else return}};for(a.push({node:s,kind:`document`,path:[],mapDepth:0});a.length>0;){let e=a.pop();if(!e)break;let{node:t}=e,n=e.kind===`schema`?r:i;if(n.has(t.source))continue;if(n.add(t.source),e.kind===`schema`){let e=t.source;typeof e.$ref==`string`&&e.$ref.startsWith(`#/`)&&u(e.$ref.slice(1));for(let[n,r]of Object.entries(e))if(Lzn.has(n)&&nr(r)||Rzn.has(n)&&Array.isArray(r)){let e=c(t,n,r);for(let[t,n]of Object.entries(r))l(e,t,n)}else(zzn.has(n)||[`additionalProperties`,`unevaluatedProperties`,`unevaluatedItems`].includes(n)&&nr(r))&&l(t,n,r);continue}let{path:o}=e;for(let[n,r]of Object.entries(t.source)){let i=[...o,n],s=e.mapDepth>0;if(n===`schemas`&&o.at(-1)===`components`&&nr(r)){let e=c(t,n,r);for(let[t,n]of Object.entries(r))l(e,t,n)}else(n===`schema`||n===`itemSchema`)&&!s&&M5(i)?l(t,n,r):(s||!Vzn.has(n)&&(!n.startsWith(`x-`)||n===`x-ext`))&&typeof r==`object`&&r&&a.push({node:c(t,n,r),kind:`document`,path:i,mapDepth:s?e.mapDepth-1:n===`callbacks`?2:+!!Bzn.has(n)})}}let d=(e,t)=>{e.parent&&t(e.parent),e.otherParents?.forEach(t)};for(let e of n)d(e,e=>n.add(e.node));for(let e of n)e.copy=Array.isArray(e.source)?[]:{};for(let e of n)d(e,t=>(t.node.replacements??=new Map).set(t.key,e.copy));for(let e of n)for(let[t,n]of Object.entries(e.source))Object.defineProperty(e.copy,t,{value:e.replacements?.has(t)?e.replacements.get(t):n,enumerable:!0,writable:!0,configurable:!0});return s.copy??e},Y5=(e,t)=>{if(e&&typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`&&e.$ref.startsWith(`#`)){let n=s2(e.$ref.slice(1));return Y5(Ye(t.rootNode,n),t)}return e},X5=(e,t)=>{if(!nr(e)||typeof e.openapi!=`string`||!/^3\.2\.\d+$/.test(e.openapi)||typeof e.$self!=`string`)return;let n=Dn(t,e.$self),r=n.indexOf(`#`);return{baseUri:r===-1?n:n.slice(0,r),metadata:{openapi:e.openapi,$self:n}}},Z5=()=>{let e=new WeakMap,t=new WeakMap,n=(e,r)=>{if(typeof e==`object`&&e&&!t.has(e)){t.set(e,r);for(let[t,i]of Object.entries(e))n(i,[...r,t])}};return{type:`lifecycle`,resolveDocument:X5,onBeforeNodeProcess:(t,r)=>{typeof t.$ref==`string`&&X5(r.rootNode,r.origin)&&(n(r.rootNode,[]),e.set(t,t.$ref))},onAfterNodeProcess:(n,r)=>{let i=e.get(n);if(i===void 0||i===n.$ref)return;let a=r.rootNode,o=a[`x-scalar-original-refs`],s=nr(o)?o:{},c=JSON.stringify(t.get(n)??r.path),l=s[c];s[c]={original:nr(l)&&l.rewritten===i?l.original:i,rewritten:n.$ref},a[`x-scalar-original-refs`]=s}}},Uzn=()=>({type:`lifecycle`,onResolveStart:e=>{e.$status=`loading`},onResolveError:e=>{e.$status=`error`},onResolveSuccess:e=>{delete e.$status}}),Wzn=e=>({type:`lifecycle`,onAfterNodeProcess:async(t,n)=>{let r=t.externalValue,i=n.resolutionCache;if(typeof r!=`string`||t.value!==void 0)return;let a=Dn(n.origin,r);if(e?.lazy){let e=n.path.at(-2)===`examples`?n.path:n.referencedFromPath??n.path;if(e.at(-2)!==`examples`||M5(e))return;t.externalValue=a;return}let o=n.loaders.find(e=>e.validate(a));if(!o)return;i.has(a)||i.set(a,o.exec(a));let s=await i.get(a);s?.ok&&(t.value=s.data)}}),Gzn=()=>({type:`lifecycle`,onBeforeNodeProcess:async(e,t)=>{let{path:n,resolutionCache:r,parentNode:i}=t,a=e.$ref;if(typeof a!=`string`||!i||!n.length)return;let o=t.loaders.find(e=>e.validate(a));if(o&&n[0]===`info`){r.has(a)||r.set(a,o.exec(a));let e=await r.get(a);e?.ok&&(i[n.at(-1)]=e.data)}}}),Kzn=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let n=e.$ref,r=t.rootNode,i=r[`x-scalar-original-refs`],a=nr(i)?i[JSON.stringify(t.path)]:void 0;if(nr(a)&&typeof a.original==`string`&&a.rewritten===n){e.$ref=a.original;return}let o=r[`x-ext-urls`];typeof n==`string`&&typeof o==`object`&&o&&k(n)&&(e.$ref=o[n.split(`/`).at(-1)??``]??n)}}),qzn=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let{path:n}=t;if(n.length===3&&n[0]===`components`&&n[1]===`securitySchemes`){let n=Y5(e,t);typeof n==`object`&&n&&`scheme`in n&&typeof n.scheme==`string`&&n.scheme.toLowerCase()!==n.scheme&&(n.scheme=n.scheme.toLowerCase())}}}),Jzn=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n,referencedFromPath:r}=t,i=M5(n)||M5(r);if(typeof e.$ref==`string`&&!i){let t=new Set([`$ref`,`summary`,`description`,`$status`]);Object.keys(e).forEach(n=>{t.has(n)||delete e[n]})}}}),Yzn=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(n.length!==2||n[0]!==`paths`||typeof n[1]!=`string`)return;let r=n[1],i=nr(e.additionalOperations)?Object.values(e.additionalOperations):[];for(let n of[...za.map(t=>e[t]),...i]){let i=Y5(n,t);if(!nr(i))continue;let a=e=>{let n=Y5(e,t);return nr(n)&&`name`in n&&typeof n.name==`string`&&`in`in n&&typeof n.in==`string`},o=e=>{let n=Y5(e,t);return a(n)&&n.in===`path`},s=(`parameters`in i&&Array.isArray(i.parameters)?i.parameters:[]).filter(a),c=new Set(s.map(e=>Y5(e,t)).filter(o).map(e=>e.name)),u=(`parameters`in e&&Array.isArray(e.parameters)?e.parameters:[]).filter(e=>{let n=Y5(e,t);if(!o(n))return!1;let r=!c.has(n.name);return r&&c.add(n.name),r}),d=l(r,r,[...s,...u],e=>Y5(e,t));d.length>0&&(i.parameters=d)}}}),Xzn=[`__scalar_`,`$status`],Zzn=()=>({type:`lifecycle`,onBeforeNodeProcess:e=>{if(nr(e))for(let t of Xzn)t in e&&delete e[t]}}),Q5=xa({url:P({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:M(P({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),Qzn=xa({nodeType:M(Si([N(`element`),N(`attribute`),N(`text`),N(`cdata`),N(`none`)])),name:M(P({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:M(P({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:M(P({typeComment:`The prefix to be used for the name.`})),attribute:M(Xn({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:M(Xn({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),$zn=xa({defaultMapping:M(P({typeComment:`Schema name or URI reference used when the discriminator value is absent or unmapped.`})),propertyName:P({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:M(Xi(P(),P(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),eBn=e=>{let t=[Gi,fi,dr,Eee,See,ma,ri,wr,ei],n=xa({name:M(P({typeComment:`Schema name (extension).`})),$id:M(P({typeComment:`JSON Schema 2020-12 schema identifier.`})),$anchor:M(P({typeComment:`JSON Schema 2020-12 plain-name anchor.`})),$dynamicAnchor:M(P({typeComment:"JSON Schema 2020-12 dynamic anchor; the target a matching `$dynamicRef` resolves to."})),$dynamicRef:M(P({typeComment:"JSON Schema 2020-12 dynamic reference, resolved against the active `$dynamicAnchor`."})),title:M(P({typeComment:`A title for the schema.`})),description:M(P({typeComment:`A description of the schema.`})),default:M(ai({typeComment:`Default value for the schema.`})),enum:M(jr(ai(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:M(ai({typeComment:`Constant value that must match exactly.`})),contentMediaType:M(P({typeComment:`Media type for content validation.`})),contentEncoding:M(P({typeComment:`Content encoding.`})),contentSchema:M(e(_a(()=>h))),deprecated:M(Xn({typeComment:`Whether the schema is deprecated.`})),discriminator:M($zn),readOnly:M(Xn({typeComment:`Whether the schema is read-only.`})),writeOnly:M(Xn({typeComment:`Whether the schema is write-only.`})),xml:M(Qzn),externalDocs:M(Q5),example:M(ai({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:M(jr(ai(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectAllOf`})),oneOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectOneOf`})),anyOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectAnyOf`})),not:M(e(_a(()=>h)))}),r=xa({__scalar_:P({typeComment:`Internal marker for schema object disambiguation.`})}),i=xa({multipleOf:M(oa({typeComment:`Number must be a multiple of this value.`})),maximum:M(oa({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:M(oa({typeComment:`Maximum value (exclusive).`})),minimum:M(oa({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:M(oa({typeComment:`Minimum value (exclusive).`}))}),a=na([xa({type:Si([N(`number`),N(`integer`)]),format:M(P({typeComment:`Different subtypes.`}))}),i],{typeName:`NumberSchemaObject`}),o=xa({maxLength:M(oa({typeComment:`Maximum string length.`})),minLength:M(oa({typeComment:`Minimum string length.`})),pattern:M(P({typeComment:`Regular expression pattern.`}))}),s=na([xa({type:N(`string`),format:M(P({typeComment:`Different subtypes.`}))}),o],{typeName:`StringSchemaObject`}),c=xa({maxProperties:M(oa({typeComment:`Maximum number of properties.`})),minProperties:M(oa({typeComment:`Minimum number of properties.`})),properties:M(Xi(P(),e(_a(()=>h)),{typeName:`SchemaObjectProperties`})),required:M(jr(P(),{typeName:`SchemaObjectRequired`})),additionalProperties:M(Si([Xn(),e(_a(()=>h))],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:M(Xi(P(),e(_a(()=>h)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:M(e(_a(()=>h)))}),l=na([xa({type:N(`object`)}),c],{typeName:`ObjectSchemaObject`}),u=xa({maxItems:M(oa({typeComment:`Maximum number of items in array.`})),minItems:M(oa({typeComment:`Minimum number of items in array.`})),uniqueItems:M(Xn({typeComment:`Whether array items must be unique.`})),items:M(e(_a(()=>h))),prefixItems:M(jr(e(_a(()=>h)),{typeComment:`Schema for tuple validation.`}))}),d=na([xa({type:N(`array`)}),u],{typeName:`ArraySchemaObject`}),f=Si([N(`null`),N(`boolean`),N(`string`),N(`number`),N(`integer`),N(`object`),N(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),p=xa({type:Si([N(`null`),N(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),m=na([xa({type:jr(f,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:M(P({typeComment:`Different subtypes.`}))}),i,o,u,c],{typeName:`MultiTypeSchemaObject`}),h=na([n,...t,Si([r,p,a,s,l,d,m])],{typeName:`SchemaObject`});return h},tBn=(e,t={})=>{let n=xa({name:M(P({typeComment:`The name of the contact.`})),url:M(P({typeComment:`The URI for the contact information. This MUST be in the form of a URI.`})),email:M(P({typeComment:`The email address of the contact person/organization. This MUST be in the form of an email address.`}))},{typeName:`ContactObject`}),r=xa({name:M(P({typeComment:`REQUIRED. The license name used for the API.`})),identifier:M(P({typeComment:`An SPDX license expression for the API. The identifier field is mutually exclusive of the url field.`})),url:M(P({typeComment:`A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.`}))},{typeName:`LicenseObject`}),i=na([xa({title:P({typeComment:`REQUIRED. The title of the API.`}),version:P({typeComment:`REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description).`}),summary:M(P({typeComment:`A short summary of the API.`})),description:M(P({typeComment:`A description of the API. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:M(P({typeComment:`A URI for the Terms of Service for the API. This MUST be in the form of a URI.`})),contact:M(n),license:M(r)},{typeName:`InfoObject`}),see,Ui]),a=xa({enum:M(jr(P(),{typeComment:`An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.`})),default:M(P({typeComment:`The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data.`})),description:M(P({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ServerVariableObject`}),o=xa({name:M(P({typeComment:`A name for the server.`})),url:P({typeComment:`REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}.`}),description:M(P({typeComment:`An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.`})),variables:M(Xi(P(),a,{typeComment:`A map between a variable name and its value. The value is used for substitution in the server's URL template.`}))},{typeName:`ServerObject`}),s=t.schemaObject??eBn(e),c=na([xa({name:P({typeComment:`REQUIRED. The name of the tag.`}),summary:M(P({typeComment:`A short summary of the tag.`})),parent:M(P({typeComment:`The name of the parent tag.`})),kind:M(P({typeComment:`A machine-readable category for the tag.`})),description:M(P({typeComment:`A description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(Q5)},{typeName:`TagObject`}),Kr,fi,Gi,gee]),l=Xi(P(),jr(P()),{typeName:`SecurityRequirementObject`,typeComment:`Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.`}),u=xa({deprecated:M(Xn({typeComment:`Whether the security scheme is deprecated.`})),description:M(P({typeComment:`A description for security scheme. CommonMark syntax MAY be used for rich text representation.`}))}),d=xa({...u.properties,type:N(`apiKey`),name:P({typeComment:`REQUIRED. The name of the header, query or cookie parameter to be used.`}),in:Si([N(`query`),N(`header`),N(`cookie`)],{typeComment:`REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".`})},{typeName:`ApiKeySecuritySchemeObject`}),f=xa({...u.properties,type:N(`http`),scheme:Si([N(`basic`),N(`bearer`)],{typeName:`HttpSecuritySchemeScheme`,typeComment:`REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.`}),bearerFormat:M(P({typeComment:`A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.`}))},{typeName:`HttpSecuritySchemeObject`}),p=xa({...u.properties,type:N(`mutualTLS`)},{typeName:`MutualTlsSecuritySchemeObject`}),m=[Ma,Iee,Oi,la,dee],h=xa({refreshUrl:P({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),scopes:Xi(P(),P(),{typeComment:`REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.`,typeName:`OAuthFlowScopes`})},{typeName:`OAuthFlowBaseCore`}),g=na([h,...m,xa({authorizationUrl:P({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ImplicitOAuthFlowObject`})]),_=na([h,...m,xa({tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`PasswordOAuthFlowObject`}),sr]),v=na([h,...m,xa({tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ClientCredentialsOAuthFlowObject`}),sr]),y=na([h,...m,xa({authorizationUrl:P({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`AuthorizationCodeOAuthFlowObject`}),xi,sr]),b=na([h,...m,xa({deviceAuthorizationUrl:P({typeComment:`The device authorization endpoint URL.`}),tokenUrl:P({typeComment:`The token endpoint URL.`})},{typeName:`DeviceAuthorizationOAuthFlowObject`}),sr]),x=xa({implicit:M(g),password:M(_),clientCredentials:M(v),authorizationCode:M(y),deviceAuthorization:M(b)},{typeName:`OAuthFlowsObject`}),S=na([xa({...u.properties,type:N(`oauth2`),flows:x,oauth2MetadataUrl:M(P({typeComment:`URL to the OAuth2 authorization server metadata (RFC8414). Use HTTPS, or HTTP for local development URLs.`}))},{typeName:`OAuth2SecuritySchemeObject`}),Zr]),C=xa({...u.properties,type:N(`openIdConnect`),openIdConnectUrl:P({typeComment:`REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.`})},{typeName:`OpenIdConnectSecuritySchemeObject`}),w=Si([d,f,p,S,C],{typeName:`SecuritySchemeObject`}),T=xa({schemas:M(Xi(P(),e(s),{typeName:`ComponentsSchemas`})),mediaTypes:M(Xi(P(),e(_a(()=>j)),{typeName:`ComponentsMediaTypes`})),responses:M(Xi(P(),e(_a(()=>oe)),{typeName:`ComponentsResponses`})),parameters:M(Xi(P(),e(_a(()=>re)),{typeName:`ComponentsParameters`})),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`ComponentsExamples`})),requestBodies:M(Xi(P(),e(_a(()=>ie)),{typeName:`ComponentsRequestBodies`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`ComponentsHeaders`})),securitySchemes:M(Xi(P(),e(_a(()=>w)),{typeName:`ComponentsSecuritySchemes`})),links:M(Xi(P(),e(_a(()=>ae)),{typeName:`ComponentsLinks`})),callbacks:M(Xi(P(),e(_a(()=>ce)),{typeName:`ComponentsCallbacks`})),pathItems:M(Xi(P(),_a(()=>ue),{typeName:`ComponentsPathItems`}))},{typeName:`ComponentsObject`}),E=na([xa({summary:M(P({typeComment:`Short description for the example.`})),description:M(P({typeComment:`Long description for the example. CommonMark syntax MAY be used for rich text representation.`})),value:M(ai({typeComment:`Embedded literal example. The value field and externalValue field are mutually exclusive.`})),dataValue:M(ai()),serializedValue:M(P()),externalValue:M(P({typeComment:`A URI that identifies the literal example. The value field and externalValue field are mutually exclusive.`}))},{typeName:`ExampleObject`}),br]),D=xa({description:M(P({typeComment:`A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this header is mandatory. The default value is false.`})),deprecated:M(Xn({typeComment:`Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.`}))},{typeName:`HeaderBase`}),O=na([D,xa({style:M(P({typeComment:`Describes how the header value will be serialized. The default (and only legal value for headers) is "simple".`})),explode:M(Xn({typeComment:`When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples.`})),schema:M(e(_a(()=>s))),example:M(ai()),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`HeaderExamples`}))},{typeName:`HeaderObjectWithSchema`})]),k=na([D,xa({content:M(Xi(P(),e(_a(()=>j)),{typeName:`HeaderContent`}))},{typeName:`HeaderObjectWithContent`})]),A=Si([O,k],{typeName:`HeaderObject`}),ee=xa({style:M(P()),explode:M(Xn()),allowReserved:M(Xn()),encoding:M(Xi(P(),_a(()=>ee))),prefixEncoding:M(jr(_a(()=>ee))),itemEncoding:M(_a(()=>ee)),contentType:M(P({typeComment:`The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*).`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`EncodingHeaders`}))},{typeName:`EncodingObject`}),j=xa({description:M(P()),prefixEncoding:M(jr(ee)),itemEncoding:M(ee),schema:M(e(_a(()=>s))),itemSchema:M(e(_a(()=>s))),example:M(ai({typeComment:`Example of the media type.`})),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`MediaTypeExamples`})),encoding:M(Xi(P(),ee,{typeComment:`A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property.`,typeName:`MediaTypeEncoding`}))},{typeName:`MediaTypeObject`}),te=na([xa({name:P({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:Si([N(`query`),N(`header`),N(`path`),N(`cookie`),N(`querystring`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path", "cookie" or "querystring".`}),description:M(P({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:M(Xn({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:M(Xn({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:M(Xn({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),style:M(P({typeComment:`Describes how the parameter value will be serialized (depending on the schema type).`})),explode:M(Xn({typeComment:`When this is true, parameter values of type array or object generate separate parameters for each array item or object property.`})),schema:M(e(_a(()=>s))),example:M(ai()),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`ParameterExamples`}))},{typeName:`ParameterObjectWithSchema`}),Nr,fi,Gi]),ne=na([xa({name:P({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:Si([N(`query`),N(`header`),N(`path`),N(`cookie`),N(`querystring`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path", "cookie" or "querystring".`}),description:M(P({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:M(Xn({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:M(Xn({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:M(Xn({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),example:M(ai()),examples:M(Xi(P(),e(E))),content:M(Xi(P(),e(_a(()=>j)),{typeName:`ParameterContent`}))},{typeName:`ParameterObjectWithContent`}),Nr,fi,Gi]),re=Si([te,ne],{typeName:`ParameterObject`}),ie=na([xa({description:M(P({typeComment:`A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),content:Xi(P(),e(_a(()=>j)),{typeComment:`REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it.`,typeName:`RequestBodyContent`}),required:M(Xn({typeComment:`Determines if the request body is required in the request. Defaults to false.`}))},{typeName:`RequestBodyObject`}),zee]),ae=xa({operationRef:M(P({typeComment:`A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object.`})),operationId:M(P({typeComment:`The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.`})),parameters:M(Xi(P(),ai(),{typeComment:`A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.`,typeName:`LinkParameters`})),requestBody:M(ai({typeComment:`A literal value or {expression} to use as a request body when calling the target operation.`})),description:M(P({typeComment:`A description of the link. CommonMark syntax MAY be used for rich text representation.`})),server:M(o)},{typeName:`LinkObject`}),oe=xa({summary:M(P({typeComment:`A short summary of the response.`})),description:M(P({typeComment:`A description of the response. CommonMark syntax MAY be used for rich text representation.`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`ResponseHeaders`})),content:M(Xi(P(),e(_a(()=>j)),{typeName:`ResponseContent`})),links:M(Xi(P(),e(_a(()=>ae)),{typeName:`ResponseLinks`}))},{typeName:`ResponseObject`}),se=Xi(P(),e(_a(()=>oe)),{typeName:`ResponsesObject`}),ce=Xi(P(),e(_a(()=>ue)),{typeName:`CallbackObject`}),le=na([xa({tags:M(jr(P(),{typeComment:`A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.`,typeName:`OperationTags`})),summary:M(P({typeComment:`A short summary of what the operation does.`})),description:M(P({typeComment:`A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(Q5),operationId:M(P({typeComment:`Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.`})),parameters:M(jr(e(_a(()=>re)),{typeName:`OperationParameters`})),requestBody:M(e(_a(()=>ie))),responses:M(_a(()=>se)),deprecated:M(Xn({typeComment:`Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false.`})),security:M(jr(l,{typeName:`OperationSecurity`})),servers:M(jr(o,{typeName:`OperationServers`})),callbacks:M(Xi(P(),e(_a(()=>ce)),{typeName:`OperationCallbacks`}))},{typeName:`OperationObject`}),Bi,fi,Gi,Gee,aee,Kee,tr,Va,Uee,Dr]),ue=xa({$ref:M(P({typeComment:`Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object.`})),summary:M(P({typeComment:`An optional string summary, intended to apply to all operations in this path.`})),description:M(P({typeComment:`An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.`})),get:M(e(_a(()=>le))),put:M(e(_a(()=>le))),post:M(e(_a(()=>le))),delete:M(e(_a(()=>le))),patch:M(e(_a(()=>le))),connect:M(e(_a(()=>le))),options:M(e(_a(()=>le))),head:M(e(_a(()=>le))),trace:M(e(_a(()=>le))),query:M(e(_a(()=>le))),additionalOperations:M(Xi(P(),e(_a(()=>le)),{typeName:`AdditionalOperations`})),servers:M(jr(o,{typeName:`PathItemServers`})),parameters:M(jr(e(_a(()=>re)),{typeName:`PathItemParameters`}))},{typeName:`PathItemObject`}),de=xa({"x-original-oas-version":M(P({typeComment:`Original OpenAPI Specification version of the source document.`})),[ua.document.navigation]:M(ai({typeComment:`Client navigation tree (TraversedDocument) for this OpenAPI description. Matches TraversedDocumentObjectRef in strict schemas.`}))},{typeName:`OpenApiExtensionsPartial`}),fe=xa({$self:M(P({typeComment:`The URI identifying this OpenAPI document.`})),openapi:P({typeComment:`REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string.`}),info:i,jsonSchemaDialect:M(P({typeComment:`The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI.`})),servers:M(jr(o,{typeComment:`An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.`,typeName:`OpenApiServers`})),paths:M(Xi(P(),ue,{typeComment:`The available paths and operations for the API.`,typeName:`PathsObject`})),webhooks:M(Xi(P(),ue,{typeComment:`The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.`,typeName:`WebhooksObject`})),components:M(T),security:M(jr(l,{typeComment:`A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request.`,typeName:`OpenApiSecurity`})),tags:M(jr(c,{typeComment:`A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.`})),externalDocs:M(Q5)},{typeName:`OpenApiDocumentCore`});return na([fe,de,Wr,Aee,Wee,Dr,wee,gee,xee,Lee,yee,Nee,qr,pr,Qr,Va,tr],{typeName:`OpenApiDocument`,typeComment:`Root OpenAPI 3.2 document including Scalar workspace extensions (OpenApiExtensionsSchema).`})},nBn=xa({$status:M(Si([N(`loading`),N(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:M(Xn({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),rBn=xa({$ref:P({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:M(P({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:M(P({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),iBn=e=>{let t=new Set,n=e;for(;nr(n)&&`$ref`in n&&!t.has(n);)t.add(n),n=n[`$ref-value`];return n},aBn=e=>Si([e,na([rBn,xa({"$ref-value":Ti(iBn,e)}),nBn])]),oBn=10;function sBn(e){if(`url`in e)return wn({fetch:e.fetch}).exec(e.url);if(`path`in e){let t=e.fileLoader;return t?t.exec(e.path):(console.error(`No loader provided for loading files`),Promise.resolve({ok:!1}))}return Promise.resolve({ok:!0,data:e.document,raw:JSON.stringify(e.document)})}var cBn=e=>{if(`url`in e)return e.url;if(`path`in e)return e.path},lBn=tBn(aBn),uBn=new Set([`x-scalar-is-dirty`,`x-scalar-registry-meta`]),dBn=e=>{let t=ia(e);for(let e of[`x-ext`,`x-ext-urls`,`x-scalar-original-refs`,`x-scalar-navigation`,`x-scalar-navigation-chunk`,`x-scalar-is-dirty`,`x-original-oas-version`,`x-scalar-original-document-hash`,`x-scalar-original-source-url`,`x-scalar-registry-meta`])delete t[e];return t},fBn=e=>{let{verbose:t=!1,reactive:n=!0}=e??{},r=(e,n)=>t?qIn(e,n):n(),i=(e,n)=>t?JIn(e,n):n(),a={},o=new WeakMap,c=dn({fetch:e?.fetch,fileLoader:e?.fileLoader}),l=t=>{e?.plugins?.forEach(e=>e.hooks?.onWorkspaceStateChanges?.(t))},u={...e?.meta,documents:{},get activeDocument(){return d.documents[y()]}},d=n?Za(ga(u,{hooks:{onAfterChange(e){let t=e[0];if(t===`documents`){if(e.length<2){console.log(`[WARN]: Overriding entire documents object is not supported`);return}let t=e[1],n=d.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};Fzn(n);let r={type:`documents`,documentName:t,value:wi(n),path:e.slice(2)};r.path.length>0&&!uBn.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),l(r);return}if(t===`activeDocument`){let t=y(),n=d.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};Fzn(n);let r={type:`documents`,documentName:t,value:wi(n),path:e.slice(2)};r.path.length>0&&!uBn.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),l(r);return}let{activeDocument:n,documents:r,...i}=d,a={type:`meta`,value:wi(i,{depth:1})};l(a)}}})):u,f={originalDocuments:{},intermediateDocuments:{},overrides:{}},{originalDocuments:p,intermediateDocuments:m,overrides:h}=n?ga(f,{hooks:{onAfterChange(e){let t=e[0];if(!t||e.length<2)return;let n=e[1];if(t===`originalDocuments`){let r={type:t,documentName:n,value:wi(p[n]??{}),path:e.splice(2)};l(r)}if(t===`intermediateDocuments`){let r={type:t,documentName:n,value:wi(m[n]??{}),path:e.splice(2)};l(r)}if(t===`overrides`){let e={type:t,documentName:n,value:wi(h[n]??{})};l(e)}}}}):f,g=Ezn({hooks:{onHistoryChange:e=>{l({type:`history`,documentName:e,value:g.export()[e]??{}})}}}),_=Xe({hooks:{onAuthChange:e=>{l({type:`auth`,documentName:e,value:_.export()[e]??{secrets:{},selected:{document:{selectedIndex:0,selectedSchemes:[]},path:{}}}})}}}),v=e=>n||nr(e)&&Object.keys(e).length>0;function y(){return d[ua.workspace.activeDocument]??Object.keys(d.documents)[0]??``}function b(e,t,n){let r=p[e];if(r)return t===`json`?n?JSON.stringify(r):JSON.stringify(r,null,2):s.stringify(r)}let x=async e=>{let t=d.documents[e],n=await O(e);return!t||!n?(console.warn(`Failed to save document, active document is missing`),!1):(p[e]=n,m[e]=ia(n),t[`x-scalar-is-dirty`]=!1,!0)};async function S(t,n){let{name:o}=t,s=ia(t.meta),c=r(`deepClone`,()=>ia(t.document));r(`expandChunkIndex`,()=>Nzn(c)),r(`initialize`,()=>{t.initialize!==!1&&(p[o]=ia(c),m[o]=ia(c),h[o]=t.overrides??{},a[o]={fetch:t.fetch})});let l=[wn({fetch:a[o]?.fetch??e?.fetch,limit:oBn})];if(e?.fileLoader&&l.push(e.fileLoader),zr(c)){let e=c.asyncapi,a=r(`upgrade`,()=>KIn(ia(c))),u=di({...a,...s,"x-original-aas-version":e,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource});await i(`bundle`,async()=>await l2(aa(u),{treeShake:!1,plugins:l,urlMap:!0,origin:t.documentSource}));let f=r(`coerceValue`,()=>M1(yzn,ia(aa(u))));if(r(`mergeObjects`,()=>ui(u,f)),u[ua.document.navigation]===void 0){let e=X9t(o,u,n);u[ua.document.navigation]=e}let p=wi(h[o]);d.documents[o]=v(p)?ta(u,{overrides:p}):u;return}let u=r(`upgrade`,()=>WLn(ia(c),`3.1`)),f=di({...u,...s,"x-original-oas-version":c.openapi??c.swagger,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource},{showInternal:!0,documentUri:X5(u,t.documentSource??`/`)?.baseUri});if(f[ua.document.navigation]===void 0){await i(`bundle`,async()=>await l2(aa(f),{treeShake:!1,plugins:[...l,Z5(),Jzn(),Wzn({lazy:!0}),Gzn(),qzn(),Yzn()],urlMap:!0,origin:t.documentSource}));let e=r(`coerceValue`,()=>M1(lBn,Hzn(ia(f))));r(`mergeObjects`,()=>ui(f,e))}if(!Ii(lee,f)){let e=Array.from(fXt(lee,f));console.warn(`document validation errors: `),console.warn(e.map(e=>({message:e.message,path:e.path,schema:e.schema,value:e.value})))}if(f[ua.document.navigation]===void 0){let e=oe(o,f,n);f[ua.document.navigation]=e}let g=wi(h[o]),_=di(aa(f),{documentUri:X5(aa(f),t.documentSource??`/`)?.baseUri});d.documents[o]=v(g)?ta(_,{overrides:g}):_}async function C(t,n){let{name:r,meta:a}=t,o=Izn({fetch:t.fetch??e?.fetch,proxyUrl:d[`x-scalar-active-proxy`]??void 0}),s=await i(`loadDocument`,async()=>await sBn({...t,fetch:o,fileLoader:e?.fileLoader}));return await i(`addDocument`,async()=>s.ok?nr(s.data)?(await S({...t,document:s.data,documentSource:cBn(t),documentHash:wt(s.raw)},n),!0):(console.error(`Failed to load document '${r}': response data is not a valid object`),d.documents[r]={...a,openapi:`3.1.0`,info:{title:`Document '${r}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1):(console.error(`Failed to fetch document '${r}': request was not successful`),d.documents[r]={...a,openapi:`3.1.0`,info:{title:`Document '${r}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1))}let w=e=>wi(p[e],{depth:1})||null,E=e=>wi(m[e],{depth:1})||null,D=e=>!!m[e],O=async e=>{let t=wi(d.documents[e],{depth:1});return t?dBn(await l2(ia(t),{plugins:[Z5(),Kzn(),Zzn()],treeShake:!1,urlMap:!0})):null},k=e=>{let t=d.documents[e];if(!t)return console.error(`Document '${e}' does not exist in the workspace.`),!1;if(!or(t))return!1;let n=oe(e,t);return t[ua.document.navigation]=n,!0},A=async(t,n,r)=>{let i=di(jzn(n));return await l2(aa(i),{plugins:[wn({fetch:a[t]?.fetch??e?.fetch,limit:oBn}),...e?.fileLoader?[e.fileLoader]:[]],treeShake:!1,origin:r,depth:0,urlMap:!0}),aa(Pa(i))},ee=new WeakMap,j=async e=>{let t=d.documents[e];if(!or(t))return;let n=t[ua.document.navigationChunk],r=t[ua.document.navigation];if(n===void 0||r===void 0)return;let i=ee.get(t);if(i)return i;let a=(async()=>{let i=await A(e,n,t[`x-scalar-original-source-url`]);i!==void 0&&d.documents[e]===t&&(r.children=i.children??[],delete t[ua.document.navigationChunk])})();ee.set(t,a);try{await a}finally{ee.delete(t)}},te=new Set;return{externalExamples:t=>{let n=t??y(),r=d.documents[n];if(!r)return c;let i=o.get(r);if(i)return i;let s=dn({origin:r[`x-scalar-original-source-url`],fileLoader:e?.fileLoader,fetch:a[n]?.fetch??e?.fetch});return o.set(r,s),s},get workspace(){return d},get history(){return g},get auth(){return _},update(e,t){xr(e),Object.assign(d,{[e]:t})},getEditableDocument:O,getOriginalDocument:w,getIntermediateDocument:E,updateDocument(e,t,n){let r=d.documents[e===`active`?y():e];return r?(xr(t),Object.assign(r,{[t]:n}),!0):!1},async replaceDocument(e,t){let n=wi(d.documents[e],{depth:1});if(!n)return console.error(`Document '${e}' does not exist in the workspace.`);await S({name:e,document:t,documentSource:n[`x-scalar-original-source-url`],documentHash:n[`x-scalar-original-document-hash`],meta:{"x-scalar-registry-meta":n[`x-scalar-registry-meta`],"x-scalar-is-dirty":!0,"x-scalar-navigation":void 0},initialize:!1})},resolve:async t=>{let n=d.activeDocument;if(t[0]===ua.document.navigation)return await j(y()),Ye(n,t);let r=Ye(n,t);return nr(r)?l2(r,{root:n,origin:n?.[`x-scalar-original-source-url`],treeShake:!1,plugins:[Z5(),wn({fetch:a[y()]?.fetch??e?.fetch,limit:oBn}),...e?.fileLoader?[e.fileLoader]:[],Uzn(),Wzn({lazy:!0})],urlMap:!0,visitedNodes:te}):(console.error(`Invalid path provided for resolution. Path: [${t.join(`, `)}]. Found value of type: ${typeof r}. Expected an object.`),Promise.resolve())},addDocument:C,deleteDocument:e=>{if(!d.documents[e])return;delete d.documents[e],delete p[e],delete m[e],delete h[e],delete a[e],g.clearDocumentHistory(e),_.clearDocumentAuth(e);let t=Object.keys(d.documents);d[`x-scalar-active-document`]===e&&(d[`x-scalar-active-document`]=t[0]??void 0),l({type:`deleteDocument`,documentName:e})},exportDocument:b,exportActiveDocument:(e,t)=>b(y(),e,t),buildSidebar:k,saveDocument:x,promoteIntermediateToOriginal:D,async revertDocumentChanges(e){let t=wi(d.documents[e],{depth:1}),n=wi(p[e],{depth:1});t&&n&&(m[e]=ia(n),await S({name:e,document:n,documentSource:t[`x-scalar-original-source-url`],documentHash:t[`x-scalar-original-document-hash`],initialize:!1,meta:{"x-scalar-registry-meta":t[`x-scalar-registry-meta`]}}))},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace(){let{activeDocument:e,documents:t,...n}=wi(d);return{documents:{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,wi(t)]))},meta:wi(n)??{},originalDocuments:wi(p),intermediateDocuments:wi(m),overrides:wi(h),history:g.export(),auth:_.export()}},loadWorkspace(e){for(let t of Object.values(e.documents))Nzn(t);T(d.documents,Object.fromEntries(Object.entries(e.documents).map(([t,n])=>{let r=di(n,{documentUri:X5(n,n[`x-scalar-original-source-url`]??`/`)?.baseUri}),i=e.overrides[t];return[t,v(i)?ta(r,{overrides:i}):r]}))),T(p,e.originalDocuments),T(m,e.intermediateDocuments),T(h,e.overrides),T(d,e.meta),g.load(e.history),_.load(e.auth)},importWorkspaceFromSpecification:e=>{let{documents:t,overrides:n,info:r,workspace:i,...a}=e;return T(d,a),Promise.all(Object.entries(t??{}).map(([e,t])=>C({url:t.$ref,name:e,overrides:n?.[e]})))},rebaseDocument:async t=>{let{name:n}=t,r=wi(p[n],{depth:1}),o=wi(d.documents[n],{depth:1}),s=await O(n);if(!r||!s||!o)return{ok:!1,type:`CORRUPTED_STATE`,message:`Cannot rebase document '${n}': missing original or active document state`};let c=await i(`loadDocument`,async()=>await sBn({...t,fetch:t.fetch??e?.fetch,fileLoader:e?.fileLoader}));if(!c.ok||!nr(c.data))return{ok:!1,type:`FETCH_FAILED`,message:`Failed to fetch document '${n}': request was not successful or returned invalid data`};let l=wt(c.raw);if(o[`x-scalar-original-document-hash`]===l)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}': document hash matches the active document`};let u=c.data;h[n]=t.overrides??{},a[n]={fetch:t.fetch};let f=XIn(r,u);if(f.length===0)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}' after fetching the latest version.`};let g=nLn(f,XIn(r,s));return{ok:!0,conflicts:g.conflicts,changes:g.diffs,applyChanges:async e=>{let i=(()=>{if(`resolvedConflicts`in e){let t=g.diffs.concat(e.resolvedConflicts);return YIn(ia(r),t)}return e.resolvedDocument})(),a=XIn(u,i).length>0;p[n]=i,m[n]=ia(i);let s=or(o),l=s?o[`x-scalar-environments`]:void 0,d=s?o[`x-scalar-order`]:void 0,f=i.servers,h=o.servers,_=Array.isArray(f)&&f.length>0,v=Array.isArray(h)&&h.length>0,y=!zr(i)&&!_&&v?ia(h):void 0;await S({...t,document:{...i,[ua.document.navigation]:void 0},documentSource:cBn(t),documentHash:wt(c.raw),initialize:!1,meta:{...t.meta,"x-scalar-registry-meta":o[`x-scalar-registry-meta`],"x-scalar-watch-mode":o[`x-scalar-watch-mode`],"x-scalar-selected-server":o[`x-scalar-selected-server`],...l===void 0?{}:{"x-scalar-environments":l},...d===void 0?{}:{"x-scalar-order":d},...y===void 0?{}:{servers:y},"x-scalar-is-dirty":a}})}}}}},pBn=[`Date`,`RegExp`,`String`,`Number`],mBn=Object.getOwnPropertyNames(globalThis.Temporal||{});function hBn(e,t,n={cyclesFix:!0},r=[]){let i=[],a=Array.isArray(e);for(let o in e){let s=e[o],c=a?+o:o;if(!(o in t)){i.push({type:`REMOVE`,path:[c],oldValue:s});continue}let l=t[o],u=typeof s==`object`&&typeof l==`object`&&Array.isArray(s)===Array.isArray(l),d=u&&s?Object.getPrototypeOf(s)?.constructor?.name:void 0;if(s&&l&&u&&!pBn.includes(d)&&!mBn.includes(d)&&(!n.cyclesFix||!r.includes(s))){n.cyclesFix&&r.push(s);let e=hBn(s,l,n,r);n.cyclesFix&&r.pop();for(let t of e)t.path.unshift(c),i.push(t)}else Object.is(s,l)||mBn.includes(d)&&String(s)===String(l)||pBn.includes(d)&&(isNaN(s)?s+``==l+``:+s==+l)||i.push({path:[c],type:`CHANGE`,value:l,oldValue:s})}let o=Array.isArray(t);for(let n in t)n in e||i.push({type:`CREATE`,path:[o?+n:n],value:t[n]});return i}var gBn=[`dir`,`lang`],_Bn={key:1,class:`flex gap-1.5 px-3 pt-3`},vBn={class:`no-underline hover:underline`,href:`https://www.scalar.com`,rel:`noopener noreferrer`,target:`_blank`},yBn={key:1},bBn=[`aria-label`,`inert`],xBn={class:`w-64 empty:hidden`},SBn={key:3,class:`references-footer`},CBn=[`role`];typeof window<`u`&&console.info(`@scalar/api-reference@1.72.1`);var wBn=C1(z({__name:`ApiReference`,props:{configuration:{}},setup(e,{expose:t}){let n=e,{copyToClipboard:r}=q1(),i=ro(!1);bo(()=>{i.value=iun()});let a=Mn({debug:!1}),o=ro(!1);ee(()=>wo()),v6t();let s=W(()=>hfn(n.configuration)),c=W(()=>Object.keys(s.value).length>1),l=ro(Object.values(s.value).find(e=>e.default)?.slug??s.value[Object.keys(s.value)?.[0]??``]?.slug??``);if(typeof window<`u`){let e=new URL(window.location.href),t=e.searchParams.get(`api`);if(t&&s.value[t]){l.value=t;let n=e0($1(e,s.value[t].config.pathRouting?.basePath,t),s.value[t].config.pathRouting?.basePath,c.value);n&&(n.searchParams.delete(`api`),window.history.replaceState({},``,n.toString()))}let n=$1(e,Object.values(s.value).map(e=>e.config.pathRouting?.basePath).find(t=>t?j3t(e,t):!1),c.value?void 0:l.value).split(`/`)[0];n&&s.value[n]&&(l.value=n)}let u=W(()=>Object.values(s.value).map(e=>({label:e.title,id:e.slug}))),d=ro(``),f=ro(``),p=W(()=>{let e=k.workspace.activeDocument;return zr(e)?e:null});No(l,()=>{d.value=``,f.value=``});let m=ro({}),h=(e,t)=>{let n=vYt(e.localization),r=m.value.modelsSectionLabel??(t?.modelsSectionLabel===`Models`?void 0:t?.modelsSectionLabel);return{...e,modelsSectionLabel:r??n.translations.models.label??`Models`}},g=W(()=>{let e=s.value[l.value]?.config,t={...M1(rfn,{}),...e,...m.value};return h(t,e)}),v=yYt(()=>g.value.localization),y=W(()=>({...g.value,labels:{closeGroup:v.translate(`navigation.closeGroup`),httpMethod:v.translate(`common.httpMethod`),openGroup:v.translate(`navigation.openGroup`)}})),b=W(()=>v.locale.value.replace(`_`,`-`)),x=ro(),C=W(()=>g.value.pathRouting?.basePath??x.value),w=e=>P3t(e.id,C.value,c.value),T=W(()=>cun(g.value.theme,{fonts:g.value.withDefaultFonts})),E=W(()=>`${g.value.customCss??``}\n${T.value}`.replace(/<\/style/gi,`<\\/style`)),D=e=>e.flatMap(e=>{let t=`children`in e&&e.children?D(e.children):[];return e.type===`webhook`?[{name:e.name,method:e.method,id:e.id},...t]:t});if(typeof window<`u`){let e=H3t(window.location.href,S(g.value.modelsSectionLabel??`Models`),l.value,c.value,C.value);e&&window.history.replaceState({},``,e.toString())}if(g.value.redirect&&typeof window<`u`){let e=g.value.redirect((g.value.pathRouting?window.location.pathname:``)+window.location.hash);e&&window.history.replaceState({},``,e)}function O(e,t,n){let r=e0(t||e,n.pathRouting?.basePath??x.value,c.value);r&&window.history.replaceState({},``,r.toString()),l.value=e}let k=fBn({verbose:!1});So(b9t,()=>k.externalExamples());let A=fBn({verbose:!1,plugins:[S3t({persistAuth:()=>g.value.persistAuth??!1})]});bfn(k),bfn(A),A.externalExamples=k.externalExamples,xfn({configurations:s,sourceStore:k,clientStore:A});let j=W(()=>{let e=g.value,t=A.workspace.documents[l.value];return e.servers!==void 0&&or(t)?{...e,servers:t.servers}:e}),te=h3t({plugins:Object.values(s.value).flatMap(e=>e.config.plugins??[]),auth:{export:()=>A.auth.export(),getAuthSecrets:(e,t)=>pIn(A.auth.getAuthSecrets(e,t)),getAuthSelectedSchemas:e=>pIn(A.auth.getAuthSelectedSchemas(e))}});So(g3t,te),te.notifyInit(g.value),No(g,e=>te.notifyConfigChange(e));let{toggleColorMode:ne,isDarkMode:re}=_({initialColorMode:{true:`dark`,false:`light`,undefined:`system`}[String(g.value.darkMode)],overrideColorMode:g.value.forceDarkModeState}),ie=W(()=>k.workspace.activeDocument),ae=W(()=>te.getSidebarEntries(l.value).reduce((e,t)=>(e[t.viewName].push({id:t.id,title:t.label,type:`text`}),e),{"content.start":[],"content.end":[]})),oe=e=>{let t=v.translate(`navigation.introduction`),n=v.translate(`navigation.webhooks`),r=g.value.modelsSectionLabel??`Models`,i=e=>{let a=!1,o=e.map(e=>{let o=e;if(EYt(e)&&e.title!==t?o={...e,title:t}:e.type===`tag`&&e.isWebhooks===!0&&(e.title!==n||e.name!==n)?o={...e,title:n,name:n}:e.type===`models`&&(e.title!==r||e.name!==r)&&(o={...e,title:r,name:r}),`children`in e&&e.children){let t=i(e.children);t!==e.children&&(o=o===e?{...e}:o,o.children=t)}return o!==e&&(a=!0),o});return a?o:e};return i(e)},ce=o2t(W(()=>Object.entries(k.workspace.documents).map(([e,t])=>{let n=t[`x-scalar-navigation`]?.children??[],r=e===l.value?[...ae.value[`content.start`],...oe(n),...ae.value[`content.end`]]:oe(n);return{id:e,type:`document`,description:t.info.description,name:t.info.title??e,title:t.info.title??e,children:r}})),{hooks:{}}),le=e=>{e.forEach(e=>{(e.type===`tag`||e.type===`models`)&&ce.setExpanded(e.id,!0),`children`in e&&e.children&&le(e.children)})},ue=W(()=>{let e=g.value;if(!e)return[];let t=ce.items.value.find(e=>e.id===l.value)?.children??[],n=p.value?q4t(t,p.value,{protocol:d.value,server:f.value}):t;if(e.defaultOpenAllTags&&le(n),e.expandAllModelSections){let e=n.find(e=>e.type===`models`);e&&(ce.setExpanded(e.id,!0),e.children?.forEach(e=>{ce.setExpanded(e.id,!0)}))}return n}),de=W(()=>ue.value.find(EYt)?.id??`${l.value}/description/introduction`),fe=ro(!0);bo(()=>{fe.value=!1});let pe=ro(``),me=W(()=>({breadcrumb:pe.value})),he=e=>{let t=ce.getEntryById(e);!t||t.type===`document`?pe.value=``:pe.value=t.title},ge=W(()=>{let e=ce.selectedItem.value;if(!e)return[];let t=[],n=ce.getEntryById(e);for(;n;)n.type===`tag`&&(n.isTagGroup!==!0||g.value.layout===`classic`)&&t.unshift({id:n.id,title:n.title}),n=n.parent;return t}),_e=e=>{he(e),ce.setSelected(e),s6t(e,ce.setExpanded,ce.getEntryById)},ve=e=>{let t=g.value?.setPageTitle,n=ce.getEntryById(e);if(!t||typeof document>`u`||!n?.title)return;let r=k.workspace.activeDocument;document.title=t({title:n.title,document:{title:r?.info?.title??l.value,slug:l.value}})};Xdn({config:()=>g.value,store:k,isDarkMode:re}),Xdn({config:()=>g.value,store:A,isDarkMode:re});let be=W(()=>Fee(k,k.workspace.activeDocument??null).environment);if(typeof window<`u`){let e=window;e.dataDumpWorkspace=()=>k}t({eventBus:a,workspaceStore:k,sidebarItems:ue});let xe=W(()=>zun(ue.value));a.on(`scroll-to:model-by-name`,({name:e})=>{let t=xe.value[e];t&&_e(t)});let Se=async(e,t)=>{let n=await k.addDocument(e,t),r=A.workspace.documents[e.name],i=r&&typeof r==`object`?r[`x-scalar-selected-server`]:void 0,a=yfn(k.exportWorkspace().documents[e.name])??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};return typeof i==`string`&&Object.assign(a,{"x-scalar-selected-server":i}),A.loadWorkspace({auth:{},documents:{[e.name]:a},intermediateDocuments:{},originalDocuments:{},overrides:{},history:{},meta:{}}),n},Ce=new Map,we=e=>{if(k.workspace.documents[e])return Promise.resolve();let t=Ce.get(e);if(t)return t;let n=s.value[e];if(!n)return Promise.resolve();let r=h({...n.config,...m.value},n.config),i=(async()=>{let t=await Se(n.source.url?{name:e,url:n.source.url,fetch:r.customFetch}:{name:e,document:n.source.content??{}},r),i=A.workspace.documents[e];if(t===!0&&or(i)&&i[`x-scalar-selected-server`]===void 0){let t=ha(i.servers,{baseServerUrl:r.baseServerURL,documentUrl:n.source.url});t.length>0&&A.updateDocument(e,`x-scalar-selected-server`,t[0].url)}t===!0&&r.defaultRequestBodyView&&or(i)&&i[`x-scalar-default-request-body-view`]===void 0&&A.updateDocument(e,`x-scalar-default-request-body-view`,r.defaultRequestBodyView)})().finally(()=>{Ce.delete(e)});return Ce.set(e,i),i},Te=!1,Ee,De=()=>{Te=!0,Ee?.(),Ee=void 0},Oe=()=>{if(typeof window>`u`)return;let e=Object.keys(s.value).filter(e=>!k.workspace.documents[e]),t=e=>{if(typeof window.requestIdleCallback==`function`){let t=window.requestIdleCallback(e,{timeout:1500});Ee=()=>window.cancelIdleCallback(t)}else{let t=window.setTimeout(e,200);Ee=()=>window.clearTimeout(t)}},n=()=>{if(Te)return;let r=e.shift();r&&we(r).finally(()=>{Te||t(n)})};t(n)},ke=async(e,t)=>{let n=s.value[e];if(!n){console.warn(`Document ${e} not found in configList`);return}let r=h({...n.config,...m.value},n.config),i=r.onDocumentSelect?.();if(O(e,t,r),Le.value?.route({documentSlug:e}),await we(e),k.update(`x-scalar-active-document`,e),A.update(`x-scalar-active-document`,e),t&&typeof window<`u`){let n=H3t(window.location.href,S(r.modelsSectionLabel??`Models`),e,c.value,r.pathRouting?.basePath??x.value,D(k.workspace.activeDocument?.[`x-scalar-navigation`]?.children??[]));n&&(window.history.replaceState({},``,n.toString()),t=$1(n.href,r.pathRouting?.basePath??x.value,c.value?void 0:e)||t)}if(r.persistAuth&&qun(A,e),(async()=>{await i,r.onLoaded?.(e)})(),t&&t!==e)_e(t);else if(r.defaultOpenFirstTag){let e=ue.value.find(e=>e.type===`tag`);e&&ce.setExpanded(e.id,!0)}ve(t&&t!==e?t:e)};No(()=>Object.values(s.value),async(e,t)=>{let n=async(e,t)=>{let n=h({...e.config,...m.value},e.config),r=Ce.get(e.slug);if(r&&await r,k.workspace.documents[e.slug]){if(e.source.url&&e.source.url!==t?.source.url){await Se({name:e.slug,url:e.source.url,fetch:n.customFetch},n);return}e.source.content&&hBn(e.source.content,t&&`content`in t.source?t.source.content??{}:{}).length&&await Se({name:e.slug,document:e.source.content},n)}};e.forEach((e,r)=>n(e,t[r]));let r=e.map(e=>e.slug),i=t.map(e=>e.slug);(r.length!==i.length||!r.every((e,t)=>e===i[t]))&&await ke(r[0]??``)},{deep:!0}),Qee(()=>ke(l.value)),_o(async()=>{if(Kun(A),C.value===void 0&&window.location.hash){let e=decodeURIComponent(window.location.hash.slice(1)),t=new Set(e.split(`/`)),n=Object.keys(s.value).filter(e=>e===l.value||c.value&&t.has(e));await Promise.all(n.map(e=>we(e)));let r=N3t(e,ce.index.value.keys(),c.value);if(x.value=r?`#${r}`:void 0,c.value){let e=$1(window.location.href,C.value,void 0).split(`/`)[0];e&&s.value[e]&&(l.value=e)}}await ke(l.value,$1(window.location.href,C.value,c.value?void 0:l.value)),Oe()});let Ae=W(()=>s.value[l.value]?.source?.url),je=X4t({agentEnabled:W(()=>s.value[l.value]?.agent?.disabled?!1:typeof window<`u`&&Ci(window.location.href)?!0:!!s.value[l.value]?.agent?.key)});So(J4t,je);let Me=Zee(()=>Br(()=>import(`./AgentScalarDrawer.vue-BdxdP8tg.js`),__vite__mapDeps([88,89,86,87,2,1,90]))),Ne=ro(!1);No(je.showAgent,e=>{e&&(Ne.value=!0)});let Pe=On({eventBus:a,store:ro(A),hooks:{}}),Fe=Eo(`modal`),Ie=ro(`idle`),Le=sIn({eventBus:a,status:Ie,load:async()=>{let{createApiClientModal:e}=await Br(async()=>{let{createApiClientModal:e}=await import(`./modal-xAFjXJG0.js`);return{createApiClientModal:e}},__vite__mapDeps([91,89,86,87,2,1,90]));return()=>Fe.value?(Pe(),e({el:Fe.value,eventBus:a,workspaceStore:A,options:j,plugins:[...te.getApiClientPlugins(),...Jun(g,be)]})):null}});vo(()=>{De(),Pe(),te.notifyDestroy()}),a.on(`server:update:selected`,({url:e})=>g.value.onServerChange?.(e)),a.on(`asyncapi-server:update:selected`,({name:e})=>{let t=A.workspace.activeDocument;if(!zr(t))return;let n=E4t(t,{webSocketOnly:!1}).find(t=>t.name===e);g.value.onServerChange?.(n?.url??e)}),a.on(`ui:download:document`,({format:e})=>{let t=k.exportActiveDocument(e);if(!t){console.error(`No document found to download`);return}Gun(t,l.value??`openapi`,e)});let Re=(e,t)=>{let n=ce.getEntryById(e);if(ve(e),(n?.type===`tag`||n?.type===`models`||n?.type===`text`)&&ce.isExpanded(e)&&ce.selectedItem.value===e){let t=$3t();ce.setExpanded(e,!1),t();return}n?.type!==`tag`&&n?.type!==`models`&&(o.value=!1),_e(e);let r=e0(e,C.value,c.value);r&&(window.history.pushState({},``,r),t===`sidebar`&&g.value.onSidebarClick?.(r.toString())),je.showAgent.value&&je.closeAgent()};a.on(`select:nav-item`,({id:e})=>Re(e)),a.on(`scroll-to:nav-item`,({id:e})=>Re(e));let ze=Eo(`documentStartRef`);a.on(`intersecting:nav-item`,({id:e})=>{if(!e6t.value)return;let t=vfn({id:e,documentStartId:de.value,documentStartTop:ze.value?.getBoundingClientRect().top});ce.setSelected(t),he(t),ve(t),d2t(t);let n=e0(t,C.value,c.value);n&&k.workspace.activeDocument&&window.history.replaceState({},``,n.toString())}),a.on(`toggle:nav-item`,({id:e,open:t})=>{if(t){g.value.onShowMore?.(e);let t=ce.getEntryById(e);if(t&&`children`in t&&t.children){let e=t.children[0];e&&c0(e.id)}}ce.setExpanded(e,t??!ce.isExpanded(e))}),a.on(`copy-url:nav-item`,({id:e})=>{let t=e0(e,C.value,c.value)?.toString();return t&&r(t)}),_o(()=>{window.history.scrollRestoration=`manual`,fIn(),window.addEventListener(`popstate`,()=>{let e=$1(window.location.href,C.value,c.value?void 0:l.value);e&&_e(e)})}),J1(ze,()=>{a.emit(`intersecting:nav-item`,{id:de.value})},{onExit:()=>{let e=window.innerHeight/2,t=document.elementsFromPoint(window.innerWidth/2,e).find(e=>e.tagName===`SECTION`&&e.id);t?.id&&a.emit(`intersecting:nav-item`,{id:t.id})},immediate:!0});let Be=W(()=>{let e=k.workspace[`x-scalar-color-mode`];return e===`system`?Bun():e}),Ve=Ue(typeof document<`u`?document.body:null);No(je.showAgent,()=>Ve.value=je.showAgent.value);let He=W(()=>!g.value.mcp?.disabled&&!!(typeof window<`u`&&Ci(window.location.href)||g.value.mcp));return(e,t)=>(L(),G(`div`,null,[(L(),H(mo(`style`),{innerHTML:E.value},null,8,[`innerHTML`])),K(`div`,{ref:`documentEl`,class:Qa([`scalar-app scalar-api-reference references-layout`,[{"scalar-api-references-standalone-mobile":g.value.showSidebar,"scalar-scrollbars-obtrusive":i.value,"references-editable":g.value.isEditable,"references-sidebar":g.value.showSidebar,"references-sidebar-mobile-open":o.value,"references-classic":g.value.layout===`classic`},e.$attrs.class]]),dir:F(v).direction.value,lang:b.value},[F(je).agentEnabled.value&&Ne.value?(L(),H(F(Me),{key:0,agentScalarConfiguration:s.value[l.value]?.agent,externalUrls:g.value.externalUrls,workspaceStore:F(k)},null,8,[`agentScalarConfiguration`,`externalUrls`,`workspaceStore`])):U(``,!0),g.value.layout===`modern`?(L(),H(aln,{key:1,breadcrumb:pe.value,isSidebarOpen:o.value,showSidebar:g.value.showSidebar,onToggleSidebar:t[5]||=()=>o.value=!o.value},{search:B(()=>[g.value.hideSearch?U(``,!0):(L(),H(e4t,{key:0,class:`my-2`,document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey,showSidebar:g.value.showSidebar},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`,`showSidebar`]))]),sidebar:B(({sidebarClasses:n})=>[g.value.showSidebar&&g.value.layout===`modern`?(L(),H(F(i2t),{key:0,"aria-label":F(v).translate(`navigation.sidebarFor`,{name:F(k).workspace.activeDocument?.info?.title??``}),class:Qa([`t-doc__sidebar`,n]),getHref:w,isExpanded:F(ce).isExpanded,isSelected:F(ce).isSelected,items:ue.value,layout:`reference`,options:y.value,onSelectItem:t[3]||=e=>Re(e,`sidebar`),onToggleGroup:t[4]||=e=>F(ce).setExpanded(e,!F(ce).isExpanded(e))},{header:B(()=>[u.value.length>1?(L(),H(Run,{key:0,modelValue:l.value,options:u.value,"onUpdate:modelValue":ke},null,8,[`modelValue`,`options`])):U(``,!0),g.value.hideSearch?U(``,!0):(L(),G(`div`,_Bn,[V(e4t,{document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]),F(je).agentEnabled.value?(L(),H(F(Q4t),{key:0})):U(``,!0)])),R(e.$slots,`sidebar-start`,Ja(Fo(me.value)),void 0,!0)]),before:B(()=>[V(F(U4t),{protocol:d.value,"onUpdate:protocol":t[0]||=e=>d.value=e,server:f.value,"onUpdate:server":t[1]||=e=>f.value=e,document:p.value},null,8,[`protocol`,`server`,`document`]),p.value?(L(),H(F(V0t),{key:0,class:`asyncapi-sidebar-document-section`},{default:B(()=>[...t[8]||=[q(` Document `,-1)]]),_:1})):U(``,!0)]),footer:B(()=>[R(e.$slots,`sidebar-end`,Ja(Fo(me.value)),()=>[V(F(v0t),{class:`darklight-reference`},{description:B(()=>[K(`a`,vBn,I(F(v).translate(`footer.poweredByScalar`)),1)]),toggle:B(()=>[!g.value.hideDarkModeToggle&&!g.value.forceDarkModeState?(L(),H(F(nt),{key:0,modelValue:Be.value===`dark`,"onUpdate:modelValue":t[2]||=()=>F(ne)()},null,8,[`modelValue`])):(L(),G(`span`,yBn))]),default:B(()=>[!g.value.hideClientButton&&!He.value?(L(),H(F(Cfn),{key:0,buttonSource:`sidebar`,integration:g.value._integration,isDevelopment:F(!1),url:Ae.value},null,8,[`integration`,`isDevelopment`,`url`])):U(``,!0),He.value?(L(),H(F(i3t),{key:1,config:g.value.mcp,externalUrls:g.value.externalUrls,isDevelopment:F(!1),url:Ae.value,workspace:F(k)},null,8,[`config`,`externalUrls`,`isDevelopment`,`url`,`workspace`])):U(``,!0)]),_:1})],!0)]),_:3},8,[`aria-label`,`class`,`isExpanded`,`isSelected`,`items`,`options`])):U(``,!0)]),_:3},8,[`breadcrumb`,`isSidebarOpen`,`showSidebar`])):U(``,!0),fe.value?(L(),H(eln,{key:2,basePath:C.value,isMultiDocument:c.value,items:ue.value,options:y.value},null,8,[`basePath`,`isMultiDocument`,`items`,`options`])):U(``,!0),K(`main`,{"aria-label":F(v).translate(`navigation.mainContent`,{name:F(k).workspace.activeDocument?.info?.title??``}),class:`references-rendered`,inert:F(je).showAgent.value},[V(Zcn,{authStore:F(A).auth,clientDocument:F(A).workspace.activeDocument,contextChain:ge.value,document:F(k).workspace.activeDocument,documentSlug:l.value,environment:be.value,eventBus:F(a),expandedItems:F(ce).expandedItems.value,headingSlugGenerator:g.value.generateHeadingSlug??(e=>`${l.value}/description/${e.slug}`),infoSectionId:de.value,items:ue.value,options:j.value,xScalarDefaultClient:F(A).workspace[`x-scalar-default-client`],xScalarDefaultExample:F(A).workspace[`x-scalar-default-example`]},To({start:B(()=>[K(`div`,{ref_key:`documentStartRef`,ref:ze},null,512),F(k).workspace.activeDocument?(L(),H(F(Pun),{key:0,overrides:m.value,"onUpdate:overrides":t[6]||=e=>m.value=e,class:`references-developer-tools`,configuration:g.value,externalUrls:g.value.externalUrls,workspace:F(k)},null,8,[`overrides`,`configuration`,`externalUrls`,`workspace`])):U(``,!0),g.value.layout===`classic`?(L(),H(u3t,{key:1},{"dark-mode-toggle":B(()=>[!g.value.hideDarkModeToggle&&!g.value.forceDarkModeState?(L(),H(F(se),{key:0,class:`text-c-2 hover:text-c-1`,mode:Be.value,style:{transform:`scale(1.4)`},variant:`icon`,onClick:t[7]||=()=>F(ne)()},null,8,[`mode`])):U(``,!0)]),default:B(()=>[K(`div`,xBn,[u.value.length>1?(L(),H(Run,{key:0,modelValue:l.value,options:u.value,"onUpdate:modelValue":ke},null,8,[`modelValue`,`options`])):U(``,!0)]),g.value.hideSearch?U(``,!0):(L(),H(e4t,{key:0,class:`t-doc__sidebar max-w-64`,document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]))]),_:1})):U(``,!0),R(e.$slots,`content-start`,Ja(Fo(me.value)),void 0,!0)]),end:B(()=>[R(e.$slots,`content-end`,Ja(Fo(me.value)),void 0,!0)]),_:2},[g.value.isEditable?{name:`empty-state`,fn:B(()=>[R(e.$slots,`editor-placeholder`,Ja(Fo(me.value)),void 0,!0)]),key:`0`}:void 0]),1032,[`authStore`,`clientDocument`,`contextChain`,`document`,`documentSlug`,`environment`,`eventBus`,`expandedItems`,`headingSlugGenerator`,`infoSectionId`,`items`,`options`,`xScalarDefaultClient`,`xScalarDefaultExample`])],8,bBn),e.$slots.footer?(L(),G(`div`,SBn,[R(e.$slots,`footer`,Ja(Fo(me.value)),void 0,!0)])):U(``,!0),K(`div`,{ref_key:`modal`,ref:Fe},null,512),Ie.value===`idle`?U(``,!0):(L(),G(`div`,{key:4,class:`bg-b-1 text-c-1 fixed right-4 bottom-4 z-[10001] rounded-lg border px-4 py-3 text-sm shadow-lg`,role:Ie.value===`error`?`alert`:`status`},I(Ie.value===`loading`?`Loading request editor…`:`Could not load the request editor. Refresh the page and try again.`),9,CBn))],10,gBn),V(F(ye))]))}}),[[`__scopeId`,`data-v-5b175b20`]]),TBn=e=>Br(()=>import(e),[]),EBn=async e=>{try{let t=(await TBn(e))?.default;if(typeof t!=`function`){console.error(`[@scalar/api-reference] The module at ${e} does not export an API Reference plugin as its default export.`);return}return t}catch(t){console.error(`[@scalar/api-reference] Failed to load the plugin module at ${e}:`,t);return}},DBn=e=>Array.isArray(e)?e:[e],OBn=e=>DBn(e).some(e=>!!e.pluginUrls?.length),kBn=async e=>{let t=new Map,n=e=>{let n=t.get(e)??EBn(e);return t.set(e,n),n};await Promise.all(DBn(e).map(async e=>{if(!e.pluginUrls?.length)return;let t=(await Promise.all(e.pluginUrls.map(n))).filter(e=>e!==void 0);t.length&&(e.plugins=[...e.plugins??[],...t])}))};async function ABn(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook(`dom:beforeRender`,r),r.shouldRender)return e._domUpdatePromise||=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||e._h,shouldRender:!0};return e._d&&Mdn(e._d)&&r.set(e._d,t+1),n}))})}),a=e._dom;if(!a){a={title:n.title,elMap:new Map().set(`htmlAttrs`,n.documentElement).set(`bodyAttrs`,n.body)};for(let e of[`body`,`head`]){let t=n[e]?.children;for(let e of t){let t=e.tagName.toLowerCase();if(!Zun.has(t))continue;let n=Ldn({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,n)=>(t[n]=e.getAttribute(n),t),{})||{}});if(n.key=e.getAttribute(`data-hid`)||void 0,n._d=Ndn(n)||Pdn(n),a.elMap.has(n._d)){let t=1,r=n._d;for(;a.elMap.has(r);)r=`${n._d}:${t++}`;a.elMap.set(r,e)}else a.elMap.set(n._d,e)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(e,t,n){let r=`${e}:${t}`;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}function s({id:e,$el:t,tag:r}){let i=r.tag.endsWith(`Attrs`);a.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,`el`,()=>{t?.remove(),a.elMap.delete(e)}));for(let a in r.props){if(!Object.prototype.hasOwnProperty.call(r.props,a))continue;let s=r.props[a];if(a.startsWith(`on`)&&typeof s==`function`){let e=t?.dataset;if(e&&e[`${a}fired`]){let e=a.slice(0,-5);s.call(t,new Event(e.substring(2)))}t.getAttribute(`data-${a}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(a.substring(2),s.bind(t)),t.setAttribute(`data-${a}`,``));continue}let c=`attr:${a}`;if(a===`class`){if(!s)continue;for(let n of s)i&&o(e,`${c}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if(a===`style`){if(!s)continue;for(let[n,r]of s)o(e,`${c}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else s!==!1&&s!==null&&(t.getAttribute(a)!==s&&t.setAttribute(a,s===!0?``:String(s)),i&&o(e,c,()=>t.removeAttribute(a)))}}let c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await i;for(let e of u){let{tag:t,shouldRender:r,id:i}=e;if(r){if(t.tag===`title`){n.title=t.textContent,o(`title`,``,()=>n.title=a.title);continue}e.$el=e.$el||a.elMap.get(i),e.$el?s(e):Zun.has(t.tag)&&c.push(e)}}for(let e of c){let t=e.tag.tagPosition||`head`;e.$el=n.createElement(e.tag.tag),s(e),l[t]=l[t]||n.createDocumentFragment(),l[t].appendChild(e.$el)}for(let t of u)await e.hooks.callHook(`dom:renderTag`,t,n,o);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose);for(let e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook(`dom:rendered`,{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1}),e._domUpdatePromise}function jBn(e={}){let t=e.domOptions?.render||ABn;e.document=e.document||(typeof window<`u`?document:void 0);let n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1,r=Vdn({...e,plugins:[...e.plugins||[],{key:`client`,hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]});return r.ssr=!1,r}function MBn(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function NBn(e={}){let t=jBn({domOptions:{render:MBn(()=>ABn(t),e=>setTimeout(e,0))},...e});return t.install=Wdn(t),t}var PBn=`scalar-style`,FBn=new WeakMap,IBn=e=>{let t=FBn.get(e);if(t)return t;let n={count:0,detachedStyle:null};return FBn.set(e,n),n},LBn=e=>{let t=IBn(e);t.count+=1,t.detachedStyle&&!e.getElementById(PBn)&&(e.head.appendChild(t.detachedStyle),t.detachedStyle=null)},RBn=e=>{let t=IBn(e);if(t.count=Math.max(0,t.count-1),t.count>0)return;let n=e.getElementById(PBn);n instanceof HTMLStyleElement&&(t.detachedStyle=n,n.remove())},zBn=(e,t)=>{let n=Za({configuration:t??e??{}}),r=(e=!1)=>{let t=e?bt(()=>xo(wBn,n)):Vt(()=>xo(wBn,n));return t.use(NBn()),t.config.idPrefix=`scalar-refs`,t},i=t?typeof e==`string`?document.querySelector(e):e:null,a=r(!!t&&!!i&&i.children.length>0),o=!1;if(t){if(i){let e=()=>{a.mount(i),o=!0,LBn(document)};OBn(n.configuration)?kBn(n.configuration).then(()=>{s.signal.aborted||e()}):e()}else console.error(`Could not find a mount point for API References:`,e)}let s=new AbortController,c={capture:!1,signal:s.signal};document.addEventListener(`scalar:reload-references`,()=>{if(console.warn(`scalar:reload-references event has been deprecated, please use the scalarInstance.app.mount method instead.`),!n.configuration)return;let t=typeof e==`string`?document.querySelector(e):e;t&&(t&&!document.body.contains(t)&&document.body.appendChild(t),a.unmount(),a=r(),a.mount(t))},c);let l=()=>{s.abort(),n.configuration={},o&&(o=!1,a.unmount(),RBn(document))};return document.addEventListener(`scalar:destroy-references`,()=>{console.warn(`scalar:destroy-references event has been deprecated, please use scalarInstance.destroy instead.`),l()},c),document.addEventListener(`scalar:update-references-config`,e=>{console.warn(`scalar:update-references-config event has been deprecated, please use scalarInstance.updateConfiguration instead.`),`detail`in e&&Object.assign(n,e.detail)},c),{app:a,getConfiguration:()=>n.configuration??{},updateConfiguration:e=>{n.configuration=e},destroy:l}};globalThis.__VUE_OPTIONS_API__=!0,globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0,globalThis.__VUE_PROD_DEVTOOLS__=!1;var BBn=e=>{let t=(0,J.useRef)(null),[n,r]=(0,J.useState)(null),i=()=>Array.isArray(e.configuration)?e.configuration.map(e=>({_integration:`react`,...e})):{_integration:`react`,...e.configuration};return(0,J.useEffect)(()=>{if(!t.current)return n?.app?.unmount;let e=zBn(t.current,i());return r(e),e.destroy},[t]),(0,J.useEffect)(()=>{n?.updateConfiguration(i())},[e.configuration,n]),(0,Y.jsx)(`div`,{ref:t})},VBn=ou(`/api-docs`)({component:HBn});function HBn(){N$();let[e,t]=(0,J.useState)(null);return(0,J.useEffect)(()=>{typeof window<`u`&&t(D$())},[]),e?(0,Y.jsx)(`div`,{className:`scalar-container`,children:(0,Y.jsx)(BBn,{configuration:{url:`${e}/meta/swagger.json`,theme:`none`,layout:`classic`,hideModels:!1,hideClientButton:!1,hideDarkModeToggle:!0,withDefaultFonts:!1,darkMode:document.documentElement.classList.contains(`dark`),agent:{disabled:!0},mcp:{disabled:!0},customCss:`
2302
+ name: Ada`})}),_Rn=xa({"x-variable":M(P({typeComment:`Variable name used for substitution in the API client`}))},{typeName:`XVariable`,typeComment:P5(`References a variable for schema property substitution in the API client.`,{language:`yaml`,body:`x-variable: userId`})}),vRn=xa({propertyName:P({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:M(Xi(P(),P(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),yRn=xa({url:P({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:M(P({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),bRn=xa({$status:M(Si([N(`loading`),N(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:M(Xn({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),xRn=xa({$ref:P({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:M(P({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:M(P({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),F5=e=>Si([xRn,e]),SRn=xa({name:M(P({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:M(P({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:M(P({typeComment:`The prefix to be used for the name.`})),attribute:M(Xn({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:M(Xn({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),CRn=[eRn,XLn,_Rn,gRn,mRn,hRn,fRn,uRn],wRn=xa({name:M(P({typeComment:`Schema name (extension).`})),title:M(P({typeComment:`A title for the schema.`})),description:M(P({typeComment:`A description of the schema.`})),default:M(ai({typeComment:`Default value for the schema.`})),enum:M(jr(ai(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:M(ai({typeComment:`Constant value that must match exactly.`})),contentMediaType:M(P({typeComment:`Media type for content validation.`})),contentEncoding:M(P({typeComment:`Content encoding.`})),contentSchema:M(F5(_a(()=>I5))),deprecated:M(Xn({typeComment:`Whether the schema is deprecated.`})),discriminator:M(vRn),readOnly:M(Xn({typeComment:`Whether the schema is read-only.`})),writeOnly:M(Xn({typeComment:`Whether the schema is write-only.`})),xml:M(SRn),externalDocs:M(yRn),example:M(ai({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:M(jr(ai(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectAllOf`})),oneOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectOneOf`})),anyOf:M(jr(F5(_a(()=>I5)),{typeName:`SchemaObjectAnyOf`})),not:M(F5(_a(()=>I5)))}),TRn=xa({multipleOf:M(oa({typeComment:`Number must be a multiple of this value.`})),maximum:M(oa({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:M(oa({typeComment:`Maximum value (exclusive).`})),minimum:M(oa({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:M(oa({typeComment:`Minimum value (exclusive).`}))}),ERn=na([xa({type:Si([N(`number`),N(`integer`)]),format:M(P({typeComment:`Different subtypes.`}))}),TRn],{typeName:`NumberSchemaObject`}),DRn=xa({maxLength:M(oa({typeComment:`Maximum string length.`})),minLength:M(oa({typeComment:`Minimum string length.`})),pattern:M(P({typeComment:`Regular expression pattern.`}))}),ORn=na([xa({type:N(`string`),format:M(P({typeComment:`Different subtypes.`}))}),DRn],{typeName:`StringSchemaObject`}),kRn=xa({maxProperties:M(oa({typeComment:`Maximum number of properties.`})),minProperties:M(oa({typeComment:`Minimum number of properties.`})),properties:M(Xi(P(),F5(_a(()=>I5)),{typeName:`SchemaObjectProperties`})),required:M(jr(P(),{typeName:`SchemaObjectRequired`})),additionalProperties:M(Si([F5(_a(()=>I5)),xa({}),Xn()],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:M(Xi(P(),F5(_a(()=>I5)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:M(F5(_a(()=>I5)))}),ARn=na([xa({type:N(`object`)}),kRn],{typeName:`ObjectSchemaObject`}),jRn=xa({maxItems:M(oa({typeComment:`Maximum number of items in array.`})),minItems:M(oa({typeComment:`Minimum number of items in array.`})),uniqueItems:M(Xn({typeComment:`Whether array items must be unique.`})),items:M(F5(_a(()=>I5))),prefixItems:M(jr(F5(_a(()=>I5)),{typeComment:`Schema for tuple validation.`}))}),MRn=na([xa({type:N(`array`)}),jRn],{typeName:`ArraySchemaObject`}),NRn=Si([N(`null`),N(`boolean`),N(`string`),N(`number`),N(`integer`),N(`object`),N(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),PRn=xa({type:Si([N(`null`),N(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),FRn=na([xa({type:jr(NRn,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:M(P({typeComment:`Different subtypes.`}))}),TRn,DRn,jRn,kRn],{typeName:`MultiTypeSchemaObject`}),I5=na([wRn,...CRn,Si([PRn,ERn,ORn,ARn,MRn,FRn,xa({})])],{typeName:`SchemaObject`}),IRn=xa({$ref:P({typeComment:`REQUIRED. The reference string.`})},{typeName:`AsyncApiReferenceObject`,typeComment:`JSON Reference for AsyncAPI components.`}),LRn=e=>{let t=new Set,n=e;for(;nr(n)&&`$ref`in n&&!t.has(n);)t.add(n),n=n[`$ref-value`];return n},L5=e=>na([IRn,xa({"$ref-value":M(Ti(LRn,e))}),bRn]),R5=e=>Si([e,L5(e)]),RRn=xa({schemaFormat:M(P({typeComment:`Media type identifying the schema format. When omitted, defaults to the AsyncAPI JSON Schema vocabulary for the document version.`})),schema:ki({typeComment:`REQUIRED. Schema definition in the format given by schemaFormat.`})},{typeName:`AsyncApiMultiFormatSchemaObject`}),zRn=Si([N(!0),N(!1),I5],{typeName:`AsyncApiSchemaJsonShape`}),BRn=R5(zRn),z5=R5(Si([RRn,zRn],{typeName:`AsyncApiMultiFormatSchemaOrSchemaObject`})),VRn=xa({method:M(Si([N(`GET`),N(`POST`)],{typeComment:`HTTP method used when establishing the WebSocket connection (typically GET).`})),query:M(BRn,{typeComment:`Schema Object describing WebSocket handshake query parameters (type object with properties). May be a Reference Object.`}),headers:M(BRn,{typeComment:`Schema Object describing HTTP headers sent during the WebSocket handshake (type object with properties). May be a Reference Object.`}),bindingVersion:M(P({typeComment:`Version of the WebSocket binding. When omitted, "latest" is assumed per the binding spec.`}))},{typeName:`AsyncApiWsBindingObject`,typeComment:`AsyncAPI WebSocket binding for handshake method, query, and headers.`}),HRn=[`http`,`ws`,`kafka`,`anypointmq`,`amqp`,`amqp1`,`mqtt`,`mqtt5`,`nats`,`jms`,`sns`,`solace`,`sqs`,`stomp`,`redis`,`mercure`,`ibmmq`,`googlepubsub`,`pulsar`,`ros2`],URn=()=>M(ki({typeComment:`Protocol-specific binding definition (see AsyncAPI protocol bindings).`})),WRn=()=>{let e={};for(let t of HRn)e[t]=t===`ws`?M(VRn):URn();return e},B5=(e,t)=>xa(WRn(),{typeName:e,typeComment:t}),GRn=B5(`AsyncApiServerBindingsObject`,`Map describing protocol-specific definitions for a server (AsyncAPI 3.1.0).`),KRn=B5(`AsyncApiChannelBindingsObject`,`Map describing protocol-specific definitions for a channel (AsyncAPI 3.1.0).`),qRn=B5(`AsyncApiOperationBindingsObject`,`Map describing protocol-specific definitions for an operation (AsyncAPI 3.1.0).`),JRn=B5(`AsyncApiMessageBindingsObject`,`Map describing protocol-specific definitions for a message (AsyncAPI 3.1.0).`),V5=R5(xa({description:M(P({typeComment:`A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.`})),url:P({typeComment:`REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.`})},{typeName:`AsyncApiExternalDocumentationObject`})),YRn=R5(xa({description:M(P({typeComment:`An optional description of the identifier. CommonMark syntax MAY be used for rich text representation.`})),location:P({typeComment:`REQUIRED. A runtime expression that specifies the location of the correlation ID.`})},{typeName:`AsyncApiCorrelationIdObject`})),XRn=xa({headers:M(Xi(P(),ki(),{typeComment:`Example headers; MUST validate against the Message Object headers field when present.`})),payload:M(ki({typeComment:`Example payload; MUST validate against the Message Object payload field when present.`})),name:M(P({typeComment:`A machine-friendly name.`})),summary:M(P({typeComment:`A short summary of what the example is about.`}))},{typeName:`AsyncApiMessageExampleObject`}),ZRn=R5(xa({name:P({typeComment:`REQUIRED. The name of the tag.`}),description:M(P({typeComment:`A short description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(V5)},{typeName:`AsyncApiTagObject`})),H5=jr(ZRn,{typeName:`AsyncApiTagsObject`,typeComment:`A list of Tag Objects (entries MAY be Reference Objects).`}),QRn=R5(xa({headers:M(z5),correlationId:M(YRn),contentType:M(P({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:M(P({typeComment:`A machine-friendly name for the message.`})),title:M(P({typeComment:`A human-friendly title for the message.`})),summary:M(P({typeComment:`A short summary of what the message is about.`})),description:M(P({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(JRn)),examples:M(jr(R5(XRn)))},{typeName:`AsyncApiMessageTraitObject`})),U5=_a(()=>R5(xa({headers:M(z5),payload:M(z5),correlationId:M(YRn),contentType:M(P({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:M(P({typeComment:`A machine-friendly name for the message.`})),title:M(P({typeComment:`A human-friendly title for the message.`})),summary:M(P({typeComment:`A short summary of what the message is about.`})),description:M(P({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(JRn)),examples:M(jr(R5(XRn))),traits:M(jr(QRn))},{typeName:`AsyncApiMessageObject`}))),$Rn=Xi(P(),U5,{typeName:`AsyncApiMessagesObject`,typeComment:`Map of messageId to Message Object or Reference Object.`}),ezn=R5(xa({enum:M(jr(P(),{typeComment:`An enumeration of string values for substitution.`})),default:M(P({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:M(P({typeComment:`An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.`})),examples:M(jr(P(),{typeComment:`Examples of the parameter value.`})),location:M(P({typeComment:`A runtime expression that specifies the location of the parameter value.`}))},{typeName:`AsyncApiParameterObject`})),tzn=Xi(P(),ezn,{typeName:`AsyncApiParametersObject`,typeComment:`Map of parameter name to Parameter Object or Reference Object.`}),W5=xa({authorizationUrl:M(P({typeComment:`REQUIRED for implicit and authorizationCode flows. The authorization URL (absolute URL).`})),tokenUrl:M(P({typeComment:`REQUIRED for password, clientCredentials, and authorizationCode flows. The token URL (absolute URL).`})),refreshUrl:M(P({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of an absolute URL.`})),availableScopes:M(Xi(P(),P(),{typeComment:`REQUIRED for OAuth2 flows. Map of scope name to a short description.`}))},{typeName:`AsyncApiOAuthFlowObject`}),nzn=xa({implicit:M(R5(W5)),password:M(R5(W5)),clientCredentials:M(R5(W5)),authorizationCode:M(R5(W5))},{typeName:`AsyncApiOAuthFlowsObject`}),G5=R5(xa({type:Si([N(`userPassword`),N(`apiKey`),N(`X509`),N(`symmetricEncryption`),N(`asymmetricEncryption`),N(`httpApiKey`),N(`http`),N(`oauth2`),N(`openIdConnect`),N(`plain`),N(`scramSha256`),N(`scramSha512`),N(`gssapi`)],{typeComment:`REQUIRED. Security scheme type: userPassword, apiKey, X509, symmetricEncryption, asymmetricEncryption, httpApiKey, http, oauth2, openIdConnect, plain, scramSha256, scramSha512, gssapi.`}),description:M(P({typeComment:`A short description for security scheme. CommonMark syntax MAY be used for rich text representation.`})),name:M(P({typeComment:`REQUIRED for httpApiKey. The name of the header, query or cookie parameter.`})),in:M(Si([N(`user`),N(`password`),N(`query`),N(`header`),N(`cookie`)],{typeComment:`REQUIRED for apiKey and httpApiKey. Location of the API key: user, password, query, header, or cookie.`})),scheme:M(P({typeComment:`REQUIRED for http. The name of the HTTP Authorization scheme to be used in the Authorization header.`})),bearerFormat:M(P({typeComment:`A hint to the client to identify how the bearer token is formatted.`})),flows:M(R5(nzn)),openIdConnectUrl:M(P({typeComment:`REQUIRED for openIdConnect. OpenId Connect URL to discover OAuth2 configuration values (absolute URL).`})),scopes:M(jr(P(),{typeComment:`List of the needed scope names for oauth2 and openIdConnect.`}))},{typeName:`AsyncApiSecuritySchemeObject`})),rzn=R5(xa({enum:M(jr(P(),{typeComment:`An enumeration of string values for substitution.`})),default:M(P({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:M(P({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`})),examples:M(jr(P(),{typeComment:`Examples of the server variable.`}))},{typeName:`AsyncApiServerVariableObject`})),izn=R5(xa({host:P({typeComment:`REQUIRED. The server host name. It MAY include the port. Supports Server Variables in {braces}.`}),protocol:P({typeComment:`REQUIRED. The protocol this server supports for connection.`}),protocolVersion:M(P({typeComment:`The version of the protocol used for connection (for example 0-9-1 for AMQP).`})),pathname:M(P({typeComment:`The path to a resource in the host. Supports Server Variables in {braces}.`})),description:M(P({typeComment:`An optional string describing the server. CommonMark syntax MAY be used for rich text representation.`})),title:M(P({typeComment:`A human-friendly title for the server.`})),summary:M(P({typeComment:`A short summary of the server.`})),variables:M(Xi(P(),rzn,{typeComment:`Map between a variable name and its Server Variable Object or Reference Object.`})),security:M(jr(G5,{typeComment:`Alternative security schemes for this server; only one of the security scheme objects need to be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(GRn))},{typeName:`AsyncApiServerObject`})),azn=Xi(P(),izn,{typeName:`AsyncApiServersObject`,typeComment:`Map of server name to Server Object or Reference Object.`}),ozn=_a(()=>xa({address:M(Si([P(),pi()],{typeComment:`Channel address or null when unknown.`})),messages:M($Rn),title:M(P({typeComment:`A human-friendly title for the channel.`})),summary:M(P({typeComment:`A short summary of the channel.`})),description:M(P({typeComment:`An optional description of this channel. CommonMark syntax MAY be used for rich text representation.`})),servers:M(jr(L5(izn),{typeComment:`References to Server definitions where this channel is available (Reference Objects only in the raw document).`})),parameters:M(tzn),tags:M(H5),externalDocs:M(V5),bindings:M(R5(KRn))},{typeName:`AsyncApiChannelObject`})),szn=Xi(P(),R5(ozn),{typeName:`AsyncApiChannelsObject`,typeComment:`Map of channelId to Channel Object or Reference Object.`}),czn=R5(xa({description:M(P({typeComment:`An optional description of the address. CommonMark syntax MAY be used for rich text representation.`})),location:P({typeComment:`REQUIRED. A runtime expression that specifies the location of the reply address.`})},{typeName:`AsyncApiOperationReplyAddressObject`})),lzn=_a(()=>R5(xa({address:M(czn),channel:M(L5(ozn)),messages:M(jr(L5(U5),{typeComment:`List of $ref pointers to Message Objects used as reply payloads (Reference Objects only in the raw document).`}))},{typeName:`AsyncApiOperationReplyObject`}))),uzn=R5(xa({title:M(P({typeComment:`A human-friendly title for the operation.`})),summary:M(P({typeComment:`A short summary of what the operation is about.`})),description:M(P({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:M(jr(G5,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(qRn))},{typeName:`AsyncApiOperationTraitObject`})),dzn=_a(()=>R5(xa({action:Si([N(`send`),N(`receive`)],{typeComment:`REQUIRED. send when the application sends to the channel; receive when it receives from the channel.`}),channel:L5(ozn),title:M(P({typeComment:`A human-friendly title for the operation.`})),summary:M(P({typeComment:`A short summary of what the operation is about.`})),description:M(P({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:M(jr(G5,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:M(H5),externalDocs:M(V5),bindings:M(R5(qRn)),traits:M(jr(uzn)),messages:M(jr(L5(U5),{typeComment:`Subset of channel messages as Reference Objects only. Omit to include all channel messages; use [] for none.`})),reply:M(lzn)},{typeName:`AsyncApiOperationObject`}))),fzn=Xi(P(),dzn,{typeName:`AsyncApiOperationsObject`,typeComment:`Map of operationId to Operation Object or Reference Object.`}),pzn=_a(()=>xa({schemas:M(Xi(P(),z5,{typeComment:`Reusable Multi Format Schema, Schema Object, or Reference Object.`})),servers:M(Xi(P(),izn)),channels:M(szn),operations:M(Xi(P(),dzn)),messages:M(Xi(P(),U5)),securitySchemes:M(Xi(P(),G5)),serverVariables:M(Xi(P(),rzn)),parameters:M(Xi(P(),ezn)),correlationIds:M(Xi(P(),YRn)),replies:M(Xi(P(),lzn)),replyAddresses:M(Xi(P(),czn)),externalDocs:M(Xi(P(),V5)),tags:M(Xi(P(),ZRn)),operationTraits:M(Xi(P(),uzn)),messageTraits:M(Xi(P(),QRn)),serverBindings:M(Xi(P(),R5(GRn))),channelBindings:M(Xi(P(),R5(KRn))),operationBindings:M(Xi(P(),R5(qRn))),messageBindings:M(Xi(P(),R5(JRn)))},{typeName:`AsyncApiComponentsObject`,typeComment:`Reusable objects. Definitions here have no effect unless referenced from outside components.`})),mzn=xa({name:M(P({typeComment:`The identifying name of the contact person/organization.`})),url:M(P({typeComment:`The URL pointing to the contact information. This MUST be in the form of an absolute URL.`})),email:M(P({typeComment:`The email address of the contact person/organization.`}))},{typeName:`AsyncApiContactObject`}),hzn=R5(xa({name:P({typeComment:`REQUIRED. The license name used for the API.`}),url:M(P({typeComment:`A URL to the license used for the API. This MUST be in the form of an absolute URL.`}))},{typeName:`AsyncApiLicenseObject`})),gzn=xa({title:P({typeComment:`REQUIRED. The title of the application.`}),version:P({typeComment:`REQUIRED. Provides the version of the application API (not to be confused with the AsyncAPI Specification version).`}),description:M(P({typeComment:`A short description of the application. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:M(P({typeComment:`A URL to the Terms of Service for the API (absolute URL).`})),contact:M(mzn),license:M(hzn),tags:M(H5),externalDocs:M(V5)},{typeName:`AsyncApiInfoObject`}),_zn=na([ZLn,rRn,aRn,iRn,tRn,lRn,sRn,dRn],{typeName:`AsyncApiExtensions`,typeComment:`AsyncAPI document-level Scalar extensions shared with workspace tooling.`}),vzn=xa({asyncapi:P({typeComment:`REQUIRED. AsyncAPI Specification version (major.minor.patch). Patch MAY include a hyphen suffix.`}),id:M(P({typeComment:`Identifier of the application the AsyncAPI document is defining (URI, RFC3986).`})),info:gzn,servers:M(azn),defaultContentType:M(P({typeComment:`Default content type when encoding/decoding a message payload (for example application/json).`})),channels:M(szn),operations:M(fzn),components:M(R5(pzn))},{typeName:`AsyncApiDocumentCore`,typeComment:`Root AsyncAPI 3.1.0 document combining resource listing and API declaration.`}),yzn=na([vzn,_zn],{typeName:`AsyncApiObject`,typeComment:`Root AsyncAPI 3.1.0 document including Scalar workspace extensions (AsyncApiExtensionsSchema).`}),K5=Ra.Object({name:Ra.String(),value:Ra.String()}),bzn=Ra.Object({url:Ra.String(),method:Ra.String(),httpVersion:Ra.String(),headers:Ra.Array(K5),cookies:Ra.Array(K5),headersSize:Ra.Number(),queryString:Ra.Array(K5),bodySize:Ra.Number(),postData:Ra.Optional(Ra.Union([Ra.Object({mimeType:Ra.String(),text:Ra.String()}),Ra.Object({mimeType:Ra.String(),params:Ra.Array(Ra.Object({name:Ra.String(),value:Ra.Optional(Ra.String())}))})]))}),xzn=Ra.Object({status:Ra.Number(),statusText:Ra.String(),headers:Ra.Array(K5),cookies:Ra.Array(K5),httpVersion:Ra.String(),redirectURL:Ra.String(),headersSize:Ra.Number(),bodySize:Ra.Number(),content:Ra.Object({size:Ra.Number(),mimeType:Ra.String(),encoding:Ra.Optional(Ra.String()),text:Ra.Optional(Ra.String())})}),Szn=Ra.Object({time:Ra.Number(),timestamp:Ra.Number(),request:bzn,response:xzn,meta:Ra.Object({example:Ra.String()}),requestMetadata:Ra.Object({variables:Ra.Record(Ra.String(),Ra.String())})}),Czn=Ra.Record(Ra.String(),Ra.Record(Ra.String(),Ra.Array(Szn))),wzn=Ra.Record(Ra.String(),Czn),Tzn=5,Ezn=({hooks:e})=>{let t=Za({});return{getHistory:(e,n,r)=>t[e]?.[n]?.[r],addHistory:(n,r,i,a)=>{t[n]||={},t[n][r]||={},t[n][r][i]||=[],t[n][r][i].length>=Tzn&&(t[n][r][i]=wi(t[n][r][i].filter((e,t)=>t!==0),{depth:1})),t[n][r][i].push(a),e?.onHistoryChange?.(n)},clearOperationHistory:(n,r,i)=>{delete t[n]?.[r]?.[i],e?.onHistoryChange?.(n)},clearPathHistory:(n,r)=>{delete t[n]?.[r],e?.onHistoryChange?.(n)},clearDocumentHistory:n=>{delete t[n],e?.onHistoryChange?.(n)},load:n=>{let r=Qi(wzn,n);T(t,r),Object.keys(r).forEach(t=>{e?.onHistoryChange?.(t)})},export:()=>wi(t)}},Dzn=e=>{let t=Na(e).replace(/[^a-zA-Z0-9_.~{}-]/gu,e=>`~x${e.codePointAt(0)?.toString(16)}~`),n=t.length;for(;n>0&&t[n-1]===`.`;)n--;let r=t.slice(0,n)+`~x2e~`.repeat(t.length-n);return/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(r)||r===``?`~x~${r}`:r},q5=`x-scalar-chunk-index`,Ozn=/\{\{|\}\}|\{(\w+)\}/g,kzn=(e,t={})=>e.replace(Ozn,(e,n)=>n===void 0?e.charAt(0):t[n]??e),J5=e=>e,Azn={static:{type:Dzn,name:Dzn,path:Dzn,method:J5},ssr:{type:J5,name:J5,path:Na,method:J5}},jzn=e=>({$ref:e,$global:!0}),Mzn=e=>nr(e)&&(e.mode===`static`||e.mode===`ssr`)&&nr(e.refs)&&nr(e.components)&&nr(e.paths),Nzn=e=>{if(!nr(e)||e[`x-scalar-chunk-index`]===void 0)return!1;let t=e[q5];if(!Mzn(t))return delete e[q5],console.warn(`Ignoring an unreadable "${q5}"; this document's chunks cannot be resolved.`),!1;let n=Azn[t.mode],r=Object.fromEntries(Object.entries(t.components).map(([e,r])=>[e,Object.fromEntries(r.map(r=>[r,jzn(kzn(t.refs.components,{type:n.type(e),name:n.name(r)}))]))])),i=Object.fromEntries(Object.entries(t.paths).map(([e,r])=>[e,Object.fromEntries(Object.entries(r).map(([r,i])=>[r,ka(r)?jzn(kzn(t.refs.operations,{path:n.path(e),method:n.method(r)})):i]))]));return e.components=r,e.paths=i,delete e[q5],!0},Pzn=new WeakMap,Fzn=e=>{let t=Ca(e);typeof t==`object`&&t&&Pzn.set(t,(Pzn.get(t)??0)+1)},Izn=e=>e.fetch?e.fetch:((t,n)=>fetch(yi(e.proxyUrl,t.toString()),n)),Lzn=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`]),Rzn=new Set([`allOf`,`anyOf`,`oneOf`,`prefixItems`]),zzn=new Set([`items`,`not`,`if`,`then`,`else`,`contains`,`propertyNames`,`contentSchema`,`$ref-value`]),Bzn=new Set([`paths`,`webhooks`,`responses`,`content`,`headers`,`examples`,`links`,`encoding`,`variables`,`parameters`,`requestBodies`,`securitySchemes`,`pathItems`,`mediaTypes`,`additionalOperations`,`callbacks`,`x-ext`]),Vzn=new Set([`example`,`examples`,`default`,`enum`,`const`,`value`,`dataValue`]),Hzn=e=>{let t=new WeakMap,n=new Set,r=new WeakSet,i=new WeakSet,a=[],o=e=>{let n=t.get(e);if(n)return n;let r={source:e};return t.set(e,r),r},s=o(e),c=(e,t,n)=>{let r=o(n);if(!r.parent)r.parent={node:e,key:t};else if(r.parent.node!==e||r.parent.key!==t){let n=r.otherParents??=[];n.some(n=>n.node===e&&n.key===t)||n.push({node:e,key:t})}return r},l=(e,t,r)=>{typeof r==`boolean`?((e.replacements??=new Map).set(t,r?{__scalar_:``}:{__scalar_:``,not:{__scalar_:``}}),n.add(e)):nr(r)&&a.push({node:c(e,t,r),kind:`schema`})},u=e=>{let t=Yi(e),n=s;for(let[e,r]of t.entries()){if(!Object.hasOwn(n.source,r))return;let i=Reflect.get(n.source,r);if(e===t.length-1)l(n,r,i);else if(typeof i==`object`&&i)n=c(n,r,i);else return}};for(a.push({node:s,kind:`document`,path:[],mapDepth:0});a.length>0;){let e=a.pop();if(!e)break;let{node:t}=e,n=e.kind===`schema`?r:i;if(n.has(t.source))continue;if(n.add(t.source),e.kind===`schema`){let e=t.source;typeof e.$ref==`string`&&e.$ref.startsWith(`#/`)&&u(e.$ref.slice(1));for(let[n,r]of Object.entries(e))if(Lzn.has(n)&&nr(r)||Rzn.has(n)&&Array.isArray(r)){let e=c(t,n,r);for(let[t,n]of Object.entries(r))l(e,t,n)}else(zzn.has(n)||[`additionalProperties`,`unevaluatedProperties`,`unevaluatedItems`].includes(n)&&nr(r))&&l(t,n,r);continue}let{path:o}=e;for(let[n,r]of Object.entries(t.source)){let i=[...o,n],s=e.mapDepth>0;if(n===`schemas`&&o.at(-1)===`components`&&nr(r)){let e=c(t,n,r);for(let[t,n]of Object.entries(r))l(e,t,n)}else(n===`schema`||n===`itemSchema`)&&!s&&M5(i)?l(t,n,r):(s||!Vzn.has(n)&&(!n.startsWith(`x-`)||n===`x-ext`))&&typeof r==`object`&&r&&a.push({node:c(t,n,r),kind:`document`,path:i,mapDepth:s?e.mapDepth-1:n===`callbacks`?2:+!!Bzn.has(n)})}}let d=(e,t)=>{e.parent&&t(e.parent),e.otherParents?.forEach(t)};for(let e of n)d(e,e=>n.add(e.node));for(let e of n)e.copy=Array.isArray(e.source)?[]:{};for(let e of n)d(e,t=>(t.node.replacements??=new Map).set(t.key,e.copy));for(let e of n)for(let[t,n]of Object.entries(e.source))Object.defineProperty(e.copy,t,{value:e.replacements?.has(t)?e.replacements.get(t):n,enumerable:!0,writable:!0,configurable:!0});return s.copy??e},Y5=(e,t)=>{if(e&&typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`&&e.$ref.startsWith(`#`)){let n=s2(e.$ref.slice(1));return Y5(Ye(t.rootNode,n),t)}return e},X5=(e,t)=>{if(!nr(e)||typeof e.openapi!=`string`||!/^3\.2\.\d+$/.test(e.openapi)||typeof e.$self!=`string`)return;let n=Dn(t,e.$self),r=n.indexOf(`#`);return{baseUri:r===-1?n:n.slice(0,r),metadata:{openapi:e.openapi,$self:n}}},Z5=()=>{let e=new WeakMap,t=new WeakMap,n=(e,r)=>{if(typeof e==`object`&&e&&!t.has(e)){t.set(e,r);for(let[t,i]of Object.entries(e))n(i,[...r,t])}};return{type:`lifecycle`,resolveDocument:X5,onBeforeNodeProcess:(t,r)=>{typeof t.$ref==`string`&&X5(r.rootNode,r.origin)&&(n(r.rootNode,[]),e.set(t,t.$ref))},onAfterNodeProcess:(n,r)=>{let i=e.get(n);if(i===void 0||i===n.$ref)return;let a=r.rootNode,o=a[`x-scalar-original-refs`],s=nr(o)?o:{},c=JSON.stringify(t.get(n)??r.path),l=s[c];s[c]={original:nr(l)&&l.rewritten===i?l.original:i,rewritten:n.$ref},a[`x-scalar-original-refs`]=s}}},Uzn=()=>({type:`lifecycle`,onResolveStart:e=>{e.$status=`loading`},onResolveError:e=>{e.$status=`error`},onResolveSuccess:e=>{delete e.$status}}),Wzn=e=>({type:`lifecycle`,onAfterNodeProcess:async(t,n)=>{let r=t.externalValue,i=n.resolutionCache;if(typeof r!=`string`||t.value!==void 0)return;let a=Dn(n.origin,r);if(e?.lazy){let e=n.path.at(-2)===`examples`?n.path:n.referencedFromPath??n.path;if(e.at(-2)!==`examples`||M5(e))return;t.externalValue=a;return}let o=n.loaders.find(e=>e.validate(a));if(!o)return;i.has(a)||i.set(a,o.exec(a));let s=await i.get(a);s?.ok&&(t.value=s.data)}}),Gzn=()=>({type:`lifecycle`,onBeforeNodeProcess:async(e,t)=>{let{path:n,resolutionCache:r,parentNode:i}=t,a=e.$ref;if(typeof a!=`string`||!i||!n.length)return;let o=t.loaders.find(e=>e.validate(a));if(o&&n[0]===`info`){r.has(a)||r.set(a,o.exec(a));let e=await r.get(a);e?.ok&&(i[n.at(-1)]=e.data)}}}),Kzn=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let n=e.$ref,r=t.rootNode,i=r[`x-scalar-original-refs`],a=nr(i)?i[JSON.stringify(t.path)]:void 0;if(nr(a)&&typeof a.original==`string`&&a.rewritten===n){e.$ref=a.original;return}let o=r[`x-ext-urls`];typeof n==`string`&&typeof o==`object`&&o&&k(n)&&(e.$ref=o[n.split(`/`).at(-1)??``]??n)}}),qzn=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let{path:n}=t;if(n.length===3&&n[0]===`components`&&n[1]===`securitySchemes`){let n=Y5(e,t);typeof n==`object`&&n&&`scheme`in n&&typeof n.scheme==`string`&&n.scheme.toLowerCase()!==n.scheme&&(n.scheme=n.scheme.toLowerCase())}}}),Jzn=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n,referencedFromPath:r}=t,i=M5(n)||M5(r);if(typeof e.$ref==`string`&&!i){let t=new Set([`$ref`,`summary`,`description`,`$status`]);Object.keys(e).forEach(n=>{t.has(n)||delete e[n]})}}}),Yzn=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(n.length!==2||n[0]!==`paths`||typeof n[1]!=`string`)return;let r=n[1],i=nr(e.additionalOperations)?Object.values(e.additionalOperations):[];for(let n of[...za.map(t=>e[t]),...i]){let i=Y5(n,t);if(!nr(i))continue;let a=e=>{let n=Y5(e,t);return nr(n)&&`name`in n&&typeof n.name==`string`&&`in`in n&&typeof n.in==`string`},o=e=>{let n=Y5(e,t);return a(n)&&n.in===`path`},s=(`parameters`in i&&Array.isArray(i.parameters)?i.parameters:[]).filter(a),c=new Set(s.map(e=>Y5(e,t)).filter(o).map(e=>e.name)),u=(`parameters`in e&&Array.isArray(e.parameters)?e.parameters:[]).filter(e=>{let n=Y5(e,t);if(!o(n))return!1;let r=!c.has(n.name);return r&&c.add(n.name),r}),d=l(r,r,[...s,...u],e=>Y5(e,t));d.length>0&&(i.parameters=d)}}}),Xzn=[`__scalar_`,`$status`],Zzn=()=>({type:`lifecycle`,onBeforeNodeProcess:e=>{if(nr(e))for(let t of Xzn)t in e&&delete e[t]}}),Q5=xa({url:P({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:M(P({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),Qzn=xa({nodeType:M(Si([N(`element`),N(`attribute`),N(`text`),N(`cdata`),N(`none`)])),name:M(P({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:M(P({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:M(P({typeComment:`The prefix to be used for the name.`})),attribute:M(Xn({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:M(Xn({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),$zn=xa({defaultMapping:M(P({typeComment:`Schema name or URI reference used when the discriminator value is absent or unmapped.`})),propertyName:P({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:M(Xi(P(),P(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),eBn=e=>{let t=[Gi,fi,dr,Eee,See,ma,ri,wr,ei],n=xa({name:M(P({typeComment:`Schema name (extension).`})),$id:M(P({typeComment:`JSON Schema 2020-12 schema identifier.`})),$anchor:M(P({typeComment:`JSON Schema 2020-12 plain-name anchor.`})),$dynamicAnchor:M(P({typeComment:"JSON Schema 2020-12 dynamic anchor; the target a matching `$dynamicRef` resolves to."})),$dynamicRef:M(P({typeComment:"JSON Schema 2020-12 dynamic reference, resolved against the active `$dynamicAnchor`."})),title:M(P({typeComment:`A title for the schema.`})),description:M(P({typeComment:`A description of the schema.`})),default:M(ai({typeComment:`Default value for the schema.`})),enum:M(jr(ai(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:M(ai({typeComment:`Constant value that must match exactly.`})),contentMediaType:M(P({typeComment:`Media type for content validation.`})),contentEncoding:M(P({typeComment:`Content encoding.`})),contentSchema:M(e(_a(()=>h))),deprecated:M(Xn({typeComment:`Whether the schema is deprecated.`})),discriminator:M($zn),readOnly:M(Xn({typeComment:`Whether the schema is read-only.`})),writeOnly:M(Xn({typeComment:`Whether the schema is write-only.`})),xml:M(Qzn),externalDocs:M(Q5),example:M(ai({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:M(jr(ai(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectAllOf`})),oneOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectOneOf`})),anyOf:M(jr(e(_a(()=>h)),{typeName:`SchemaObjectAnyOf`})),not:M(e(_a(()=>h)))}),r=xa({__scalar_:P({typeComment:`Internal marker for schema object disambiguation.`})}),i=xa({multipleOf:M(oa({typeComment:`Number must be a multiple of this value.`})),maximum:M(oa({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:M(oa({typeComment:`Maximum value (exclusive).`})),minimum:M(oa({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:M(oa({typeComment:`Minimum value (exclusive).`}))}),a=na([xa({type:Si([N(`number`),N(`integer`)]),format:M(P({typeComment:`Different subtypes.`}))}),i],{typeName:`NumberSchemaObject`}),o=xa({maxLength:M(oa({typeComment:`Maximum string length.`})),minLength:M(oa({typeComment:`Minimum string length.`})),pattern:M(P({typeComment:`Regular expression pattern.`}))}),s=na([xa({type:N(`string`),format:M(P({typeComment:`Different subtypes.`}))}),o],{typeName:`StringSchemaObject`}),c=xa({maxProperties:M(oa({typeComment:`Maximum number of properties.`})),minProperties:M(oa({typeComment:`Minimum number of properties.`})),properties:M(Xi(P(),e(_a(()=>h)),{typeName:`SchemaObjectProperties`})),required:M(jr(P(),{typeName:`SchemaObjectRequired`})),additionalProperties:M(Si([Xn(),e(_a(()=>h))],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:M(Xi(P(),e(_a(()=>h)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:M(e(_a(()=>h)))}),l=na([xa({type:N(`object`)}),c],{typeName:`ObjectSchemaObject`}),u=xa({maxItems:M(oa({typeComment:`Maximum number of items in array.`})),minItems:M(oa({typeComment:`Minimum number of items in array.`})),uniqueItems:M(Xn({typeComment:`Whether array items must be unique.`})),items:M(e(_a(()=>h))),prefixItems:M(jr(e(_a(()=>h)),{typeComment:`Schema for tuple validation.`}))}),d=na([xa({type:N(`array`)}),u],{typeName:`ArraySchemaObject`}),f=Si([N(`null`),N(`boolean`),N(`string`),N(`number`),N(`integer`),N(`object`),N(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),p=xa({type:Si([N(`null`),N(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),m=na([xa({type:jr(f,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:M(P({typeComment:`Different subtypes.`}))}),i,o,u,c],{typeName:`MultiTypeSchemaObject`}),h=na([n,...t,Si([r,p,a,s,l,d,m])],{typeName:`SchemaObject`});return h},tBn=(e,t={})=>{let n=xa({name:M(P({typeComment:`The name of the contact.`})),url:M(P({typeComment:`The URI for the contact information. This MUST be in the form of a URI.`})),email:M(P({typeComment:`The email address of the contact person/organization. This MUST be in the form of an email address.`}))},{typeName:`ContactObject`}),r=xa({name:M(P({typeComment:`REQUIRED. The license name used for the API.`})),identifier:M(P({typeComment:`An SPDX license expression for the API. The identifier field is mutually exclusive of the url field.`})),url:M(P({typeComment:`A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.`}))},{typeName:`LicenseObject`}),i=na([xa({title:P({typeComment:`REQUIRED. The title of the API.`}),version:P({typeComment:`REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description).`}),summary:M(P({typeComment:`A short summary of the API.`})),description:M(P({typeComment:`A description of the API. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:M(P({typeComment:`A URI for the Terms of Service for the API. This MUST be in the form of a URI.`})),contact:M(n),license:M(r)},{typeName:`InfoObject`}),see,Ui]),a=xa({enum:M(jr(P(),{typeComment:`An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.`})),default:M(P({typeComment:`The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data.`})),description:M(P({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ServerVariableObject`}),o=xa({name:M(P({typeComment:`A name for the server.`})),url:P({typeComment:`REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}.`}),description:M(P({typeComment:`An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.`})),variables:M(Xi(P(),a,{typeComment:`A map between a variable name and its value. The value is used for substitution in the server's URL template.`}))},{typeName:`ServerObject`}),s=t.schemaObject??eBn(e),c=na([xa({name:P({typeComment:`REQUIRED. The name of the tag.`}),summary:M(P({typeComment:`A short summary of the tag.`})),parent:M(P({typeComment:`The name of the parent tag.`})),kind:M(P({typeComment:`A machine-readable category for the tag.`})),description:M(P({typeComment:`A description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(Q5)},{typeName:`TagObject`}),Kr,fi,Gi,gee]),l=Xi(P(),jr(P()),{typeName:`SecurityRequirementObject`,typeComment:`Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.`}),u=xa({deprecated:M(Xn({typeComment:`Whether the security scheme is deprecated.`})),description:M(P({typeComment:`A description for security scheme. CommonMark syntax MAY be used for rich text representation.`}))}),d=xa({...u.properties,type:N(`apiKey`),name:P({typeComment:`REQUIRED. The name of the header, query or cookie parameter to be used.`}),in:Si([N(`query`),N(`header`),N(`cookie`)],{typeComment:`REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".`})},{typeName:`ApiKeySecuritySchemeObject`}),f=xa({...u.properties,type:N(`http`),scheme:Si([N(`basic`),N(`bearer`)],{typeName:`HttpSecuritySchemeScheme`,typeComment:`REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.`}),bearerFormat:M(P({typeComment:`A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.`}))},{typeName:`HttpSecuritySchemeObject`}),p=xa({...u.properties,type:N(`mutualTLS`)},{typeName:`MutualTlsSecuritySchemeObject`}),m=[Ma,Iee,Oi,la,dee],h=xa({refreshUrl:P({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),scopes:Xi(P(),P(),{typeComment:`REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.`,typeName:`OAuthFlowScopes`})},{typeName:`OAuthFlowBaseCore`}),g=na([h,...m,xa({authorizationUrl:P({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ImplicitOAuthFlowObject`})]),_=na([h,...m,xa({tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`PasswordOAuthFlowObject`}),sr]),v=na([h,...m,xa({tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ClientCredentialsOAuthFlowObject`}),sr]),y=na([h,...m,xa({authorizationUrl:P({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),tokenUrl:P({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`AuthorizationCodeOAuthFlowObject`}),xi,sr]),b=na([h,...m,xa({deviceAuthorizationUrl:P({typeComment:`The device authorization endpoint URL.`}),tokenUrl:P({typeComment:`The token endpoint URL.`})},{typeName:`DeviceAuthorizationOAuthFlowObject`}),sr]),x=xa({implicit:M(g),password:M(_),clientCredentials:M(v),authorizationCode:M(y),deviceAuthorization:M(b)},{typeName:`OAuthFlowsObject`}),S=na([xa({...u.properties,type:N(`oauth2`),flows:x,oauth2MetadataUrl:M(P({typeComment:`URL to the OAuth2 authorization server metadata (RFC8414). Use HTTPS, or HTTP for local development URLs.`}))},{typeName:`OAuth2SecuritySchemeObject`}),Zr]),C=xa({...u.properties,type:N(`openIdConnect`),openIdConnectUrl:P({typeComment:`REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.`})},{typeName:`OpenIdConnectSecuritySchemeObject`}),w=Si([d,f,p,S,C],{typeName:`SecuritySchemeObject`}),T=xa({schemas:M(Xi(P(),e(s),{typeName:`ComponentsSchemas`})),mediaTypes:M(Xi(P(),e(_a(()=>j)),{typeName:`ComponentsMediaTypes`})),responses:M(Xi(P(),e(_a(()=>oe)),{typeName:`ComponentsResponses`})),parameters:M(Xi(P(),e(_a(()=>re)),{typeName:`ComponentsParameters`})),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`ComponentsExamples`})),requestBodies:M(Xi(P(),e(_a(()=>ie)),{typeName:`ComponentsRequestBodies`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`ComponentsHeaders`})),securitySchemes:M(Xi(P(),e(_a(()=>w)),{typeName:`ComponentsSecuritySchemes`})),links:M(Xi(P(),e(_a(()=>ae)),{typeName:`ComponentsLinks`})),callbacks:M(Xi(P(),e(_a(()=>ce)),{typeName:`ComponentsCallbacks`})),pathItems:M(Xi(P(),_a(()=>ue),{typeName:`ComponentsPathItems`}))},{typeName:`ComponentsObject`}),E=na([xa({summary:M(P({typeComment:`Short description for the example.`})),description:M(P({typeComment:`Long description for the example. CommonMark syntax MAY be used for rich text representation.`})),value:M(ai({typeComment:`Embedded literal example. The value field and externalValue field are mutually exclusive.`})),dataValue:M(ai()),serializedValue:M(P()),externalValue:M(P({typeComment:`A URI that identifies the literal example. The value field and externalValue field are mutually exclusive.`}))},{typeName:`ExampleObject`}),br]),D=xa({description:M(P({typeComment:`A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this header is mandatory. The default value is false.`})),deprecated:M(Xn({typeComment:`Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.`}))},{typeName:`HeaderBase`}),O=na([D,xa({style:M(P({typeComment:`Describes how the header value will be serialized. The default (and only legal value for headers) is "simple".`})),explode:M(Xn({typeComment:`When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples.`})),schema:M(e(_a(()=>s))),example:M(ai()),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`HeaderExamples`}))},{typeName:`HeaderObjectWithSchema`})]),k=na([D,xa({content:M(Xi(P(),e(_a(()=>j)),{typeName:`HeaderContent`}))},{typeName:`HeaderObjectWithContent`})]),A=Si([O,k],{typeName:`HeaderObject`}),ee=xa({style:M(P()),explode:M(Xn()),allowReserved:M(Xn()),encoding:M(Xi(P(),_a(()=>ee))),prefixEncoding:M(jr(_a(()=>ee))),itemEncoding:M(_a(()=>ee)),contentType:M(P({typeComment:`The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*).`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`EncodingHeaders`}))},{typeName:`EncodingObject`}),j=xa({description:M(P()),prefixEncoding:M(jr(ee)),itemEncoding:M(ee),schema:M(e(_a(()=>s))),itemSchema:M(e(_a(()=>s))),example:M(ai({typeComment:`Example of the media type.`})),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`MediaTypeExamples`})),encoding:M(Xi(P(),ee,{typeComment:`A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property.`,typeName:`MediaTypeEncoding`}))},{typeName:`MediaTypeObject`}),te=na([xa({name:P({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:Si([N(`query`),N(`header`),N(`path`),N(`cookie`),N(`querystring`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path", "cookie" or "querystring".`}),description:M(P({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:M(Xn({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:M(Xn({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:M(Xn({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),style:M(P({typeComment:`Describes how the parameter value will be serialized (depending on the schema type).`})),explode:M(Xn({typeComment:`When this is true, parameter values of type array or object generate separate parameters for each array item or object property.`})),schema:M(e(_a(()=>s))),example:M(ai()),examples:M(Xi(P(),e(_a(()=>E)),{typeName:`ParameterExamples`}))},{typeName:`ParameterObjectWithSchema`}),Nr,fi,Gi]),ne=na([xa({name:P({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:Si([N(`query`),N(`header`),N(`path`),N(`cookie`),N(`querystring`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path", "cookie" or "querystring".`}),description:M(P({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:M(Xn({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:M(Xn({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:M(Xn({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:M(Xn({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),example:M(ai()),examples:M(Xi(P(),e(E))),content:M(Xi(P(),e(_a(()=>j)),{typeName:`ParameterContent`}))},{typeName:`ParameterObjectWithContent`}),Nr,fi,Gi]),re=Si([te,ne],{typeName:`ParameterObject`}),ie=na([xa({description:M(P({typeComment:`A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),content:Xi(P(),e(_a(()=>j)),{typeComment:`REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it.`,typeName:`RequestBodyContent`}),required:M(Xn({typeComment:`Determines if the request body is required in the request. Defaults to false.`}))},{typeName:`RequestBodyObject`}),zee]),ae=xa({operationRef:M(P({typeComment:`A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object.`})),operationId:M(P({typeComment:`The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.`})),parameters:M(Xi(P(),ai(),{typeComment:`A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.`,typeName:`LinkParameters`})),requestBody:M(ai({typeComment:`A literal value or {expression} to use as a request body when calling the target operation.`})),description:M(P({typeComment:`A description of the link. CommonMark syntax MAY be used for rich text representation.`})),server:M(o)},{typeName:`LinkObject`}),oe=xa({summary:M(P({typeComment:`A short summary of the response.`})),description:M(P({typeComment:`A description of the response. CommonMark syntax MAY be used for rich text representation.`})),headers:M(Xi(P(),e(_a(()=>A)),{typeName:`ResponseHeaders`})),content:M(Xi(P(),e(_a(()=>j)),{typeName:`ResponseContent`})),links:M(Xi(P(),e(_a(()=>ae)),{typeName:`ResponseLinks`}))},{typeName:`ResponseObject`}),se=Xi(P(),e(_a(()=>oe)),{typeName:`ResponsesObject`}),ce=Xi(P(),e(_a(()=>ue)),{typeName:`CallbackObject`}),le=na([xa({tags:M(jr(P(),{typeComment:`A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.`,typeName:`OperationTags`})),summary:M(P({typeComment:`A short summary of what the operation does.`})),description:M(P({typeComment:`A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:M(Q5),operationId:M(P({typeComment:`Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.`})),parameters:M(jr(e(_a(()=>re)),{typeName:`OperationParameters`})),requestBody:M(e(_a(()=>ie))),responses:M(_a(()=>se)),deprecated:M(Xn({typeComment:`Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false.`})),security:M(jr(l,{typeName:`OperationSecurity`})),servers:M(jr(o,{typeName:`OperationServers`})),callbacks:M(Xi(P(),e(_a(()=>ce)),{typeName:`OperationCallbacks`}))},{typeName:`OperationObject`}),Bi,fi,Gi,Gee,aee,Kee,tr,Va,Uee,Dr]),ue=xa({$ref:M(P({typeComment:`Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object.`})),summary:M(P({typeComment:`An optional string summary, intended to apply to all operations in this path.`})),description:M(P({typeComment:`An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.`})),get:M(e(_a(()=>le))),put:M(e(_a(()=>le))),post:M(e(_a(()=>le))),delete:M(e(_a(()=>le))),patch:M(e(_a(()=>le))),connect:M(e(_a(()=>le))),options:M(e(_a(()=>le))),head:M(e(_a(()=>le))),trace:M(e(_a(()=>le))),query:M(e(_a(()=>le))),additionalOperations:M(Xi(P(),e(_a(()=>le)),{typeName:`AdditionalOperations`})),servers:M(jr(o,{typeName:`PathItemServers`})),parameters:M(jr(e(_a(()=>re)),{typeName:`PathItemParameters`}))},{typeName:`PathItemObject`}),de=xa({"x-original-oas-version":M(P({typeComment:`Original OpenAPI Specification version of the source document.`})),[ua.document.navigation]:M(ai({typeComment:`Client navigation tree (TraversedDocument) for this OpenAPI description. Matches TraversedDocumentObjectRef in strict schemas.`}))},{typeName:`OpenApiExtensionsPartial`}),fe=xa({$self:M(P({typeComment:`The URI identifying this OpenAPI document.`})),openapi:P({typeComment:`REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string.`}),info:i,jsonSchemaDialect:M(P({typeComment:`The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI.`})),servers:M(jr(o,{typeComment:`An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.`,typeName:`OpenApiServers`})),paths:M(Xi(P(),ue,{typeComment:`The available paths and operations for the API.`,typeName:`PathsObject`})),webhooks:M(Xi(P(),ue,{typeComment:`The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.`,typeName:`WebhooksObject`})),components:M(T),security:M(jr(l,{typeComment:`A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request.`,typeName:`OpenApiSecurity`})),tags:M(jr(c,{typeComment:`A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.`})),externalDocs:M(Q5)},{typeName:`OpenApiDocumentCore`});return na([fe,de,Wr,Aee,Wee,Dr,wee,gee,xee,Lee,yee,Nee,qr,pr,Qr,Va,tr],{typeName:`OpenApiDocument`,typeComment:`Root OpenAPI 3.2 document including Scalar workspace extensions (OpenApiExtensionsSchema).`})},nBn=xa({$status:M(Si([N(`loading`),N(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:M(Xn({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),rBn=xa({$ref:P({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:M(P({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:M(P({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),iBn=e=>{let t=new Set,n=e;for(;nr(n)&&`$ref`in n&&!t.has(n);)t.add(n),n=n[`$ref-value`];return n},aBn=e=>Si([e,na([rBn,xa({"$ref-value":Ti(iBn,e)}),nBn])]),oBn=10;function sBn(e){if(`url`in e)return wn({fetch:e.fetch}).exec(e.url);if(`path`in e){let t=e.fileLoader;return t?t.exec(e.path):(console.error(`No loader provided for loading files`),Promise.resolve({ok:!1}))}return Promise.resolve({ok:!0,data:e.document,raw:JSON.stringify(e.document)})}var cBn=e=>{if(`url`in e)return e.url;if(`path`in e)return e.path},lBn=tBn(aBn),uBn=new Set([`x-scalar-is-dirty`,`x-scalar-registry-meta`]),dBn=e=>{let t=ia(e);for(let e of[`x-ext`,`x-ext-urls`,`x-scalar-original-refs`,`x-scalar-navigation`,`x-scalar-navigation-chunk`,`x-scalar-is-dirty`,`x-original-oas-version`,`x-scalar-original-document-hash`,`x-scalar-original-source-url`,`x-scalar-registry-meta`])delete t[e];return t},fBn=e=>{let{verbose:t=!1,reactive:n=!0}=e??{},r=(e,n)=>t?qIn(e,n):n(),i=(e,n)=>t?JIn(e,n):n(),a={},o=new WeakMap,c=dn({fetch:e?.fetch,fileLoader:e?.fileLoader}),l=t=>{e?.plugins?.forEach(e=>e.hooks?.onWorkspaceStateChanges?.(t))},u={...e?.meta,documents:{},get activeDocument(){return d.documents[y()]}},d=n?Za(ga(u,{hooks:{onAfterChange(e){let t=e[0];if(t===`documents`){if(e.length<2){console.log(`[WARN]: Overriding entire documents object is not supported`);return}let t=e[1],n=d.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};Fzn(n);let r={type:`documents`,documentName:t,value:wi(n),path:e.slice(2)};r.path.length>0&&!uBn.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),l(r);return}if(t===`activeDocument`){let t=y(),n=d.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};Fzn(n);let r={type:`documents`,documentName:t,value:wi(n),path:e.slice(2)};r.path.length>0&&!uBn.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),l(r);return}let{activeDocument:n,documents:r,...i}=d,a={type:`meta`,value:wi(i,{depth:1})};l(a)}}})):u,f={originalDocuments:{},intermediateDocuments:{},overrides:{}},{originalDocuments:p,intermediateDocuments:m,overrides:h}=n?ga(f,{hooks:{onAfterChange(e){let t=e[0];if(!t||e.length<2)return;let n=e[1];if(t===`originalDocuments`){let r={type:t,documentName:n,value:wi(p[n]??{}),path:e.splice(2)};l(r)}if(t===`intermediateDocuments`){let r={type:t,documentName:n,value:wi(m[n]??{}),path:e.splice(2)};l(r)}if(t===`overrides`){let e={type:t,documentName:n,value:wi(h[n]??{})};l(e)}}}}):f,g=Ezn({hooks:{onHistoryChange:e=>{l({type:`history`,documentName:e,value:g.export()[e]??{}})}}}),_=Xe({hooks:{onAuthChange:e=>{l({type:`auth`,documentName:e,value:_.export()[e]??{secrets:{},selected:{document:{selectedIndex:0,selectedSchemes:[]},path:{}}}})}}}),v=e=>n||nr(e)&&Object.keys(e).length>0;function y(){return d[ua.workspace.activeDocument]??Object.keys(d.documents)[0]??``}function b(e,t,n){let r=p[e];if(r)return t===`json`?n?JSON.stringify(r):JSON.stringify(r,null,2):s.stringify(r)}let x=async e=>{let t=d.documents[e],n=await O(e);return!t||!n?(console.warn(`Failed to save document, active document is missing`),!1):(p[e]=n,m[e]=ia(n),t[`x-scalar-is-dirty`]=!1,!0)};async function S(t,n){let{name:o}=t,s=ia(t.meta),c=r(`deepClone`,()=>ia(t.document));r(`expandChunkIndex`,()=>Nzn(c)),r(`initialize`,()=>{t.initialize!==!1&&(p[o]=ia(c),m[o]=ia(c),h[o]=t.overrides??{},a[o]={fetch:t.fetch})});let l=[wn({fetch:a[o]?.fetch??e?.fetch,limit:oBn})];if(e?.fileLoader&&l.push(e.fileLoader),zr(c)){let e=c.asyncapi,a=r(`upgrade`,()=>KIn(ia(c))),u=di({...a,...s,"x-original-aas-version":e,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource});await i(`bundle`,async()=>await l2(aa(u),{treeShake:!1,plugins:l,urlMap:!0,origin:t.documentSource}));let f=r(`coerceValue`,()=>M1(yzn,ia(aa(u))));if(r(`mergeObjects`,()=>ui(u,f)),u[ua.document.navigation]===void 0){let e=X9t(o,u,n);u[ua.document.navigation]=e}let p=wi(h[o]);d.documents[o]=v(p)?ta(u,{overrides:p}):u;return}let u=r(`upgrade`,()=>WLn(ia(c),`3.1`)),f=di({...u,...s,"x-original-oas-version":c.openapi??c.swagger,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource},{showInternal:!0,documentUri:X5(u,t.documentSource??`/`)?.baseUri});if(f[ua.document.navigation]===void 0){await i(`bundle`,async()=>await l2(aa(f),{treeShake:!1,plugins:[...l,Z5(),Jzn(),Wzn({lazy:!0}),Gzn(),qzn(),Yzn()],urlMap:!0,origin:t.documentSource}));let e=r(`coerceValue`,()=>M1(lBn,Hzn(ia(f))));r(`mergeObjects`,()=>ui(f,e))}if(!Ii(lee,f)){let e=Array.from(fXt(lee,f));console.warn(`document validation errors: `),console.warn(e.map(e=>({message:e.message,path:e.path,schema:e.schema,value:e.value})))}if(f[ua.document.navigation]===void 0){let e=oe(o,f,n);f[ua.document.navigation]=e}let g=wi(h[o]),_=di(aa(f),{documentUri:X5(aa(f),t.documentSource??`/`)?.baseUri});d.documents[o]=v(g)?ta(_,{overrides:g}):_}async function C(t,n){let{name:r,meta:a}=t,o=Izn({fetch:t.fetch??e?.fetch,proxyUrl:d[`x-scalar-active-proxy`]??void 0}),s=await i(`loadDocument`,async()=>await sBn({...t,fetch:o,fileLoader:e?.fileLoader}));return await i(`addDocument`,async()=>s.ok?nr(s.data)?(await S({...t,document:s.data,documentSource:cBn(t),documentHash:wt(s.raw)},n),!0):(console.error(`Failed to load document '${r}': response data is not a valid object`),d.documents[r]={...a,openapi:`3.1.0`,info:{title:`Document '${r}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1):(console.error(`Failed to fetch document '${r}': request was not successful`),d.documents[r]={...a,openapi:`3.1.0`,info:{title:`Document '${r}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1))}let w=e=>wi(p[e],{depth:1})||null,E=e=>wi(m[e],{depth:1})||null,D=e=>!!m[e],O=async e=>{let t=wi(d.documents[e],{depth:1});return t?dBn(await l2(ia(t),{plugins:[Z5(),Kzn(),Zzn()],treeShake:!1,urlMap:!0})):null},k=e=>{let t=d.documents[e];if(!t)return console.error(`Document '${e}' does not exist in the workspace.`),!1;if(!or(t))return!1;let n=oe(e,t);return t[ua.document.navigation]=n,!0},A=async(t,n,r)=>{let i=di(jzn(n));return await l2(aa(i),{plugins:[wn({fetch:a[t]?.fetch??e?.fetch,limit:oBn}),...e?.fileLoader?[e.fileLoader]:[]],treeShake:!1,origin:r,depth:0,urlMap:!0}),aa(Pa(i))},ee=new WeakMap,j=async e=>{let t=d.documents[e];if(!or(t))return;let n=t[ua.document.navigationChunk],r=t[ua.document.navigation];if(n===void 0||r===void 0)return;let i=ee.get(t);if(i)return i;let a=(async()=>{let i=await A(e,n,t[`x-scalar-original-source-url`]);i!==void 0&&d.documents[e]===t&&(r.children=i.children??[],delete t[ua.document.navigationChunk])})();ee.set(t,a);try{await a}finally{ee.delete(t)}},te=new Set;return{externalExamples:t=>{let n=t??y(),r=d.documents[n];if(!r)return c;let i=o.get(r);if(i)return i;let s=dn({origin:r[`x-scalar-original-source-url`],fileLoader:e?.fileLoader,fetch:a[n]?.fetch??e?.fetch});return o.set(r,s),s},get workspace(){return d},get history(){return g},get auth(){return _},update(e,t){xr(e),Object.assign(d,{[e]:t})},getEditableDocument:O,getOriginalDocument:w,getIntermediateDocument:E,updateDocument(e,t,n){let r=d.documents[e===`active`?y():e];return r?(xr(t),Object.assign(r,{[t]:n}),!0):!1},async replaceDocument(e,t){let n=wi(d.documents[e],{depth:1});if(!n)return console.error(`Document '${e}' does not exist in the workspace.`);await S({name:e,document:t,documentSource:n[`x-scalar-original-source-url`],documentHash:n[`x-scalar-original-document-hash`],meta:{"x-scalar-registry-meta":n[`x-scalar-registry-meta`],"x-scalar-is-dirty":!0,"x-scalar-navigation":void 0},initialize:!1})},resolve:async t=>{let n=d.activeDocument;if(t[0]===ua.document.navigation)return await j(y()),Ye(n,t);let r=Ye(n,t);return nr(r)?l2(r,{root:n,origin:n?.[`x-scalar-original-source-url`],treeShake:!1,plugins:[Z5(),wn({fetch:a[y()]?.fetch??e?.fetch,limit:oBn}),...e?.fileLoader?[e.fileLoader]:[],Uzn(),Wzn({lazy:!0})],urlMap:!0,visitedNodes:te}):(console.error(`Invalid path provided for resolution. Path: [${t.join(`, `)}]. Found value of type: ${typeof r}. Expected an object.`),Promise.resolve())},addDocument:C,deleteDocument:e=>{if(!d.documents[e])return;delete d.documents[e],delete p[e],delete m[e],delete h[e],delete a[e],g.clearDocumentHistory(e),_.clearDocumentAuth(e);let t=Object.keys(d.documents);d[`x-scalar-active-document`]===e&&(d[`x-scalar-active-document`]=t[0]??void 0),l({type:`deleteDocument`,documentName:e})},exportDocument:b,exportActiveDocument:(e,t)=>b(y(),e,t),buildSidebar:k,saveDocument:x,promoteIntermediateToOriginal:D,async revertDocumentChanges(e){let t=wi(d.documents[e],{depth:1}),n=wi(p[e],{depth:1});t&&n&&(m[e]=ia(n),await S({name:e,document:n,documentSource:t[`x-scalar-original-source-url`],documentHash:t[`x-scalar-original-document-hash`],initialize:!1,meta:{"x-scalar-registry-meta":t[`x-scalar-registry-meta`]}}))},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace(){let{activeDocument:e,documents:t,...n}=wi(d);return{documents:{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,wi(t)]))},meta:wi(n)??{},originalDocuments:wi(p),intermediateDocuments:wi(m),overrides:wi(h),history:g.export(),auth:_.export()}},loadWorkspace(e){for(let t of Object.values(e.documents))Nzn(t);T(d.documents,Object.fromEntries(Object.entries(e.documents).map(([t,n])=>{let r=di(n,{documentUri:X5(n,n[`x-scalar-original-source-url`]??`/`)?.baseUri}),i=e.overrides[t];return[t,v(i)?ta(r,{overrides:i}):r]}))),T(p,e.originalDocuments),T(m,e.intermediateDocuments),T(h,e.overrides),T(d,e.meta),g.load(e.history),_.load(e.auth)},importWorkspaceFromSpecification:e=>{let{documents:t,overrides:n,info:r,workspace:i,...a}=e;return T(d,a),Promise.all(Object.entries(t??{}).map(([e,t])=>C({url:t.$ref,name:e,overrides:n?.[e]})))},rebaseDocument:async t=>{let{name:n}=t,r=wi(p[n],{depth:1}),o=wi(d.documents[n],{depth:1}),s=await O(n);if(!r||!s||!o)return{ok:!1,type:`CORRUPTED_STATE`,message:`Cannot rebase document '${n}': missing original or active document state`};let c=await i(`loadDocument`,async()=>await sBn({...t,fetch:t.fetch??e?.fetch,fileLoader:e?.fileLoader}));if(!c.ok||!nr(c.data))return{ok:!1,type:`FETCH_FAILED`,message:`Failed to fetch document '${n}': request was not successful or returned invalid data`};let l=wt(c.raw);if(o[`x-scalar-original-document-hash`]===l)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}': document hash matches the active document`};let u=c.data;h[n]=t.overrides??{},a[n]={fetch:t.fetch};let f=XIn(r,u);if(f.length===0)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}' after fetching the latest version.`};let g=nLn(f,XIn(r,s));return{ok:!0,conflicts:g.conflicts,changes:g.diffs,applyChanges:async e=>{let i=(()=>{if(`resolvedConflicts`in e){let t=g.diffs.concat(e.resolvedConflicts);return YIn(ia(r),t)}return e.resolvedDocument})(),a=XIn(u,i).length>0;p[n]=i,m[n]=ia(i);let s=or(o),l=s?o[`x-scalar-environments`]:void 0,d=s?o[`x-scalar-order`]:void 0,f=i.servers,h=o.servers,_=Array.isArray(f)&&f.length>0,v=Array.isArray(h)&&h.length>0,y=!zr(i)&&!_&&v?ia(h):void 0;await S({...t,document:{...i,[ua.document.navigation]:void 0},documentSource:cBn(t),documentHash:wt(c.raw),initialize:!1,meta:{...t.meta,"x-scalar-registry-meta":o[`x-scalar-registry-meta`],"x-scalar-watch-mode":o[`x-scalar-watch-mode`],"x-scalar-selected-server":o[`x-scalar-selected-server`],...l===void 0?{}:{"x-scalar-environments":l},...d===void 0?{}:{"x-scalar-order":d},...y===void 0?{}:{servers:y},"x-scalar-is-dirty":a}})}}}}},pBn=[`Date`,`RegExp`,`String`,`Number`],mBn=Object.getOwnPropertyNames(globalThis.Temporal||{});function hBn(e,t,n={cyclesFix:!0},r=[]){let i=[],a=Array.isArray(e);for(let o in e){let s=e[o],c=a?+o:o;if(!(o in t)){i.push({type:`REMOVE`,path:[c],oldValue:s});continue}let l=t[o],u=typeof s==`object`&&typeof l==`object`&&Array.isArray(s)===Array.isArray(l),d=u&&s?Object.getPrototypeOf(s)?.constructor?.name:void 0;if(s&&l&&u&&!pBn.includes(d)&&!mBn.includes(d)&&(!n.cyclesFix||!r.includes(s))){n.cyclesFix&&r.push(s);let e=hBn(s,l,n,r);n.cyclesFix&&r.pop();for(let t of e)t.path.unshift(c),i.push(t)}else Object.is(s,l)||mBn.includes(d)&&String(s)===String(l)||pBn.includes(d)&&(isNaN(s)?s+``==l+``:+s==+l)||i.push({path:[c],type:`CHANGE`,value:l,oldValue:s})}let o=Array.isArray(t);for(let n in t)n in e||i.push({type:`CREATE`,path:[o?+n:n],value:t[n]});return i}var gBn=[`dir`,`lang`],_Bn={key:1,class:`flex gap-1.5 px-3 pt-3`},vBn={class:`no-underline hover:underline`,href:`https://www.scalar.com`,rel:`noopener noreferrer`,target:`_blank`},yBn={key:1},bBn=[`aria-label`,`inert`],xBn={class:`w-64 empty:hidden`},SBn={key:3,class:`references-footer`},CBn=[`role`];typeof window<`u`&&console.info(`@scalar/api-reference@1.72.1`);var wBn=C1(z({__name:`ApiReference`,props:{configuration:{}},setup(e,{expose:t}){let n=e,{copyToClipboard:r}=q1(),i=ro(!1);bo(()=>{i.value=iun()});let a=Mn({debug:!1}),o=ro(!1);ee(()=>wo()),v6t();let s=W(()=>hfn(n.configuration)),c=W(()=>Object.keys(s.value).length>1),l=ro(Object.values(s.value).find(e=>e.default)?.slug??s.value[Object.keys(s.value)?.[0]??``]?.slug??``);if(typeof window<`u`){let e=new URL(window.location.href),t=e.searchParams.get(`api`);if(t&&s.value[t]){l.value=t;let n=e0($1(e,s.value[t].config.pathRouting?.basePath,t),s.value[t].config.pathRouting?.basePath,c.value);n&&(n.searchParams.delete(`api`),window.history.replaceState({},``,n.toString()))}let n=$1(e,Object.values(s.value).map(e=>e.config.pathRouting?.basePath).find(t=>t?j3t(e,t):!1),c.value?void 0:l.value).split(`/`)[0];n&&s.value[n]&&(l.value=n)}let u=W(()=>Object.values(s.value).map(e=>({label:e.title,id:e.slug}))),d=ro(``),f=ro(``),p=W(()=>{let e=k.workspace.activeDocument;return zr(e)?e:null});No(l,()=>{d.value=``,f.value=``});let m=ro({}),h=(e,t)=>{let n=vYt(e.localization),r=m.value.modelsSectionLabel??(t?.modelsSectionLabel===`Models`?void 0:t?.modelsSectionLabel);return{...e,modelsSectionLabel:r??n.translations.models.label??`Models`}},g=W(()=>{let e=s.value[l.value]?.config,t={...M1(rfn,{}),...e,...m.value};return h(t,e)}),v=yYt(()=>g.value.localization),y=W(()=>({...g.value,labels:{closeGroup:v.translate(`navigation.closeGroup`),httpMethod:v.translate(`common.httpMethod`),openGroup:v.translate(`navigation.openGroup`)}})),b=W(()=>v.locale.value.replace(`_`,`-`)),x=ro(),C=W(()=>g.value.pathRouting?.basePath??x.value),w=e=>P3t(e.id,C.value,c.value),T=W(()=>cun(g.value.theme,{fonts:g.value.withDefaultFonts})),E=W(()=>`${g.value.customCss??``}\n${T.value}`.replace(/<\/style/gi,`<\\/style`)),D=e=>e.flatMap(e=>{let t=`children`in e&&e.children?D(e.children):[];return e.type===`webhook`?[{name:e.name,method:e.method,id:e.id},...t]:t});if(typeof window<`u`){let e=H3t(window.location.href,S(g.value.modelsSectionLabel??`Models`),l.value,c.value,C.value);e&&window.history.replaceState({},``,e.toString())}if(g.value.redirect&&typeof window<`u`){let e=g.value.redirect((g.value.pathRouting?window.location.pathname:``)+window.location.hash);e&&window.history.replaceState({},``,e)}function O(e,t,n){let r=e0(t||e,n.pathRouting?.basePath??x.value,c.value);r&&window.history.replaceState({},``,r.toString()),l.value=e}let k=fBn({verbose:!1});So(b9t,()=>k.externalExamples());let A=fBn({verbose:!1,plugins:[S3t({persistAuth:()=>g.value.persistAuth??!1})]});bfn(k),bfn(A),A.externalExamples=k.externalExamples,xfn({configurations:s,sourceStore:k,clientStore:A});let j=W(()=>{let e=g.value,t=A.workspace.documents[l.value];return e.servers!==void 0&&or(t)?{...e,servers:t.servers}:e}),te=h3t({plugins:Object.values(s.value).flatMap(e=>e.config.plugins??[]),auth:{export:()=>A.auth.export(),getAuthSecrets:(e,t)=>pIn(A.auth.getAuthSecrets(e,t)),getAuthSelectedSchemas:e=>pIn(A.auth.getAuthSelectedSchemas(e))}});So(g3t,te),te.notifyInit(g.value),No(g,e=>te.notifyConfigChange(e));let{toggleColorMode:ne,isDarkMode:re}=_({initialColorMode:{true:`dark`,false:`light`,undefined:`system`}[String(g.value.darkMode)],overrideColorMode:g.value.forceDarkModeState}),ie=W(()=>k.workspace.activeDocument),ae=W(()=>te.getSidebarEntries(l.value).reduce((e,t)=>(e[t.viewName].push({id:t.id,title:t.label,type:`text`}),e),{"content.start":[],"content.end":[]})),oe=e=>{let t=v.translate(`navigation.introduction`),n=v.translate(`navigation.webhooks`),r=g.value.modelsSectionLabel??`Models`,i=e=>{let a=!1,o=e.map(e=>{let o=e;if(EYt(e)&&e.title!==t?o={...e,title:t}:e.type===`tag`&&e.isWebhooks===!0&&(e.title!==n||e.name!==n)?o={...e,title:n,name:n}:e.type===`models`&&(e.title!==r||e.name!==r)&&(o={...e,title:r,name:r}),`children`in e&&e.children){let t=i(e.children);t!==e.children&&(o=o===e?{...e}:o,o.children=t)}return o!==e&&(a=!0),o});return a?o:e};return i(e)},ce=o2t(W(()=>Object.entries(k.workspace.documents).map(([e,t])=>{let n=t[`x-scalar-navigation`]?.children??[],r=e===l.value?[...ae.value[`content.start`],...oe(n),...ae.value[`content.end`]]:oe(n);return{id:e,type:`document`,description:t.info.description,name:t.info.title??e,title:t.info.title??e,children:r}})),{hooks:{}}),le=e=>{e.forEach(e=>{(e.type===`tag`||e.type===`models`)&&ce.setExpanded(e.id,!0),`children`in e&&e.children&&le(e.children)})},ue=W(()=>{let e=g.value;if(!e)return[];let t=ce.items.value.find(e=>e.id===l.value)?.children??[],n=p.value?q4t(t,p.value,{protocol:d.value,server:f.value}):t;if(e.defaultOpenAllTags&&le(n),e.expandAllModelSections){let e=n.find(e=>e.type===`models`);e&&(ce.setExpanded(e.id,!0),e.children?.forEach(e=>{ce.setExpanded(e.id,!0)}))}return n}),de=W(()=>ue.value.find(EYt)?.id??`${l.value}/description/introduction`),fe=ro(!0);bo(()=>{fe.value=!1});let pe=ro(``),me=W(()=>({breadcrumb:pe.value})),he=e=>{let t=ce.getEntryById(e);!t||t.type===`document`?pe.value=``:pe.value=t.title},ge=W(()=>{let e=ce.selectedItem.value;if(!e)return[];let t=[],n=ce.getEntryById(e);for(;n;)n.type===`tag`&&(n.isTagGroup!==!0||g.value.layout===`classic`)&&t.unshift({id:n.id,title:n.title}),n=n.parent;return t}),_e=e=>{he(e),ce.setSelected(e),s6t(e,ce.setExpanded,ce.getEntryById)},ve=e=>{let t=g.value?.setPageTitle,n=ce.getEntryById(e);if(!t||typeof document>`u`||!n?.title)return;let r=k.workspace.activeDocument;document.title=t({title:n.title,document:{title:r?.info?.title??l.value,slug:l.value}})};Xdn({config:()=>g.value,store:k,isDarkMode:re}),Xdn({config:()=>g.value,store:A,isDarkMode:re});let be=W(()=>Fee(k,k.workspace.activeDocument??null).environment);if(typeof window<`u`){let e=window;e.dataDumpWorkspace=()=>k}t({eventBus:a,workspaceStore:k,sidebarItems:ue});let xe=W(()=>zun(ue.value));a.on(`scroll-to:model-by-name`,({name:e})=>{let t=xe.value[e];t&&_e(t)});let Se=async(e,t)=>{let n=await k.addDocument(e,t),r=A.workspace.documents[e.name],i=r&&typeof r==`object`?r[`x-scalar-selected-server`]:void 0,a=yfn(k.exportWorkspace().documents[e.name])??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``};return typeof i==`string`&&Object.assign(a,{"x-scalar-selected-server":i}),A.loadWorkspace({auth:{},documents:{[e.name]:a},intermediateDocuments:{},originalDocuments:{},overrides:{},history:{},meta:{}}),n},Ce=new Map,we=e=>{if(k.workspace.documents[e])return Promise.resolve();let t=Ce.get(e);if(t)return t;let n=s.value[e];if(!n)return Promise.resolve();let r=h({...n.config,...m.value},n.config),i=(async()=>{let t=await Se(n.source.url?{name:e,url:n.source.url,fetch:r.customFetch}:{name:e,document:n.source.content??{}},r),i=A.workspace.documents[e];if(t===!0&&or(i)&&i[`x-scalar-selected-server`]===void 0){let t=ha(i.servers,{baseServerUrl:r.baseServerURL,documentUrl:n.source.url});t.length>0&&A.updateDocument(e,`x-scalar-selected-server`,t[0].url)}t===!0&&r.defaultRequestBodyView&&or(i)&&i[`x-scalar-default-request-body-view`]===void 0&&A.updateDocument(e,`x-scalar-default-request-body-view`,r.defaultRequestBodyView)})().finally(()=>{Ce.delete(e)});return Ce.set(e,i),i},Te=!1,Ee,De=()=>{Te=!0,Ee?.(),Ee=void 0},Oe=()=>{if(typeof window>`u`)return;let e=Object.keys(s.value).filter(e=>!k.workspace.documents[e]),t=e=>{if(typeof window.requestIdleCallback==`function`){let t=window.requestIdleCallback(e,{timeout:1500});Ee=()=>window.cancelIdleCallback(t)}else{let t=window.setTimeout(e,200);Ee=()=>window.clearTimeout(t)}},n=()=>{if(Te)return;let r=e.shift();r&&we(r).finally(()=>{Te||t(n)})};t(n)},ke=async(e,t)=>{let n=s.value[e];if(!n){console.warn(`Document ${e} not found in configList`);return}let r=h({...n.config,...m.value},n.config),i=r.onDocumentSelect?.();if(O(e,t,r),Le.value?.route({documentSlug:e}),await we(e),k.update(`x-scalar-active-document`,e),A.update(`x-scalar-active-document`,e),t&&typeof window<`u`){let n=H3t(window.location.href,S(r.modelsSectionLabel??`Models`),e,c.value,r.pathRouting?.basePath??x.value,D(k.workspace.activeDocument?.[`x-scalar-navigation`]?.children??[]));n&&(window.history.replaceState({},``,n.toString()),t=$1(n.href,r.pathRouting?.basePath??x.value,c.value?void 0:e)||t)}if(r.persistAuth&&qun(A,e),(async()=>{await i,r.onLoaded?.(e)})(),t&&t!==e)_e(t);else if(r.defaultOpenFirstTag){let e=ue.value.find(e=>e.type===`tag`);e&&ce.setExpanded(e.id,!0)}ve(t&&t!==e?t:e)};No(()=>Object.values(s.value),async(e,t)=>{let n=async(e,t)=>{let n=h({...e.config,...m.value},e.config),r=Ce.get(e.slug);if(r&&await r,k.workspace.documents[e.slug]){if(e.source.url&&e.source.url!==t?.source.url){await Se({name:e.slug,url:e.source.url,fetch:n.customFetch},n);return}e.source.content&&hBn(e.source.content,t&&`content`in t.source?t.source.content??{}:{}).length&&await Se({name:e.slug,document:e.source.content},n)}};e.forEach((e,r)=>n(e,t[r]));let r=e.map(e=>e.slug),i=t.map(e=>e.slug);(r.length!==i.length||!r.every((e,t)=>e===i[t]))&&await ke(r[0]??``)},{deep:!0}),Qee(()=>ke(l.value)),_o(async()=>{if(Kun(A),C.value===void 0&&window.location.hash){let e=decodeURIComponent(window.location.hash.slice(1)),t=new Set(e.split(`/`)),n=Object.keys(s.value).filter(e=>e===l.value||c.value&&t.has(e));await Promise.all(n.map(e=>we(e)));let r=N3t(e,ce.index.value.keys(),c.value);if(x.value=r?`#${r}`:void 0,c.value){let e=$1(window.location.href,C.value,void 0).split(`/`)[0];e&&s.value[e]&&(l.value=e)}}await ke(l.value,$1(window.location.href,C.value,c.value?void 0:l.value)),Oe()});let Ae=W(()=>s.value[l.value]?.source?.url),je=X4t({agentEnabled:W(()=>s.value[l.value]?.agent?.disabled?!1:typeof window<`u`&&Ci(window.location.href)?!0:!!s.value[l.value]?.agent?.key)});So(J4t,je);let Me=Zee(()=>Br(()=>import(`./AgentScalarDrawer.vue-B4vQ31VR.js`),__vite__mapDeps([88,89,86,87,2,1,90]))),Ne=ro(!1);No(je.showAgent,e=>{e&&(Ne.value=!0)});let Pe=On({eventBus:a,store:ro(A),hooks:{}}),Fe=Eo(`modal`),Ie=ro(`idle`),Le=sIn({eventBus:a,status:Ie,load:async()=>{let{createApiClientModal:e}=await Br(async()=>{let{createApiClientModal:e}=await import(`./modal-DU131dJ8.js`);return{createApiClientModal:e}},__vite__mapDeps([91,89,86,87,2,1,90]));return()=>Fe.value?(Pe(),e({el:Fe.value,eventBus:a,workspaceStore:A,options:j,plugins:[...te.getApiClientPlugins(),...Jun(g,be)]})):null}});vo(()=>{De(),Pe(),te.notifyDestroy()}),a.on(`server:update:selected`,({url:e})=>g.value.onServerChange?.(e)),a.on(`asyncapi-server:update:selected`,({name:e})=>{let t=A.workspace.activeDocument;if(!zr(t))return;let n=E4t(t,{webSocketOnly:!1}).find(t=>t.name===e);g.value.onServerChange?.(n?.url??e)}),a.on(`ui:download:document`,({format:e})=>{let t=k.exportActiveDocument(e);if(!t){console.error(`No document found to download`);return}Gun(t,l.value??`openapi`,e)});let Re=(e,t)=>{let n=ce.getEntryById(e);if(ve(e),(n?.type===`tag`||n?.type===`models`||n?.type===`text`)&&ce.isExpanded(e)&&ce.selectedItem.value===e){let t=$3t();ce.setExpanded(e,!1),t();return}n?.type!==`tag`&&n?.type!==`models`&&(o.value=!1),_e(e);let r=e0(e,C.value,c.value);r&&(window.history.pushState({},``,r),t===`sidebar`&&g.value.onSidebarClick?.(r.toString())),je.showAgent.value&&je.closeAgent()};a.on(`select:nav-item`,({id:e})=>Re(e)),a.on(`scroll-to:nav-item`,({id:e})=>Re(e));let ze=Eo(`documentStartRef`);a.on(`intersecting:nav-item`,({id:e})=>{if(!e6t.value)return;let t=vfn({id:e,documentStartId:de.value,documentStartTop:ze.value?.getBoundingClientRect().top});ce.setSelected(t),he(t),ve(t),d2t(t);let n=e0(t,C.value,c.value);n&&k.workspace.activeDocument&&window.history.replaceState({},``,n.toString())}),a.on(`toggle:nav-item`,({id:e,open:t})=>{if(t){g.value.onShowMore?.(e);let t=ce.getEntryById(e);if(t&&`children`in t&&t.children){let e=t.children[0];e&&c0(e.id)}}ce.setExpanded(e,t??!ce.isExpanded(e))}),a.on(`copy-url:nav-item`,({id:e})=>{let t=e0(e,C.value,c.value)?.toString();return t&&r(t)}),_o(()=>{window.history.scrollRestoration=`manual`,fIn(),window.addEventListener(`popstate`,()=>{let e=$1(window.location.href,C.value,c.value?void 0:l.value);e&&_e(e)})}),J1(ze,()=>{a.emit(`intersecting:nav-item`,{id:de.value})},{onExit:()=>{let e=window.innerHeight/2,t=document.elementsFromPoint(window.innerWidth/2,e).find(e=>e.tagName===`SECTION`&&e.id);t?.id&&a.emit(`intersecting:nav-item`,{id:t.id})},immediate:!0});let Be=W(()=>{let e=k.workspace[`x-scalar-color-mode`];return e===`system`?Bun():e}),Ve=Ue(typeof document<`u`?document.body:null);No(je.showAgent,()=>Ve.value=je.showAgent.value);let He=W(()=>!g.value.mcp?.disabled&&!!(typeof window<`u`&&Ci(window.location.href)||g.value.mcp));return(e,t)=>(L(),G(`div`,null,[(L(),H(mo(`style`),{innerHTML:E.value},null,8,[`innerHTML`])),K(`div`,{ref:`documentEl`,class:Qa([`scalar-app scalar-api-reference references-layout`,[{"scalar-api-references-standalone-mobile":g.value.showSidebar,"scalar-scrollbars-obtrusive":i.value,"references-editable":g.value.isEditable,"references-sidebar":g.value.showSidebar,"references-sidebar-mobile-open":o.value,"references-classic":g.value.layout===`classic`},e.$attrs.class]]),dir:F(v).direction.value,lang:b.value},[F(je).agentEnabled.value&&Ne.value?(L(),H(F(Me),{key:0,agentScalarConfiguration:s.value[l.value]?.agent,externalUrls:g.value.externalUrls,workspaceStore:F(k)},null,8,[`agentScalarConfiguration`,`externalUrls`,`workspaceStore`])):U(``,!0),g.value.layout===`modern`?(L(),H(aln,{key:1,breadcrumb:pe.value,isSidebarOpen:o.value,showSidebar:g.value.showSidebar,onToggleSidebar:t[5]||=()=>o.value=!o.value},{search:B(()=>[g.value.hideSearch?U(``,!0):(L(),H(e4t,{key:0,class:`my-2`,document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey,showSidebar:g.value.showSidebar},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`,`showSidebar`]))]),sidebar:B(({sidebarClasses:n})=>[g.value.showSidebar&&g.value.layout===`modern`?(L(),H(F(i2t),{key:0,"aria-label":F(v).translate(`navigation.sidebarFor`,{name:F(k).workspace.activeDocument?.info?.title??``}),class:Qa([`t-doc__sidebar`,n]),getHref:w,isExpanded:F(ce).isExpanded,isSelected:F(ce).isSelected,items:ue.value,layout:`reference`,options:y.value,onSelectItem:t[3]||=e=>Re(e,`sidebar`),onToggleGroup:t[4]||=e=>F(ce).setExpanded(e,!F(ce).isExpanded(e))},{header:B(()=>[u.value.length>1?(L(),H(Run,{key:0,modelValue:l.value,options:u.value,"onUpdate:modelValue":ke},null,8,[`modelValue`,`options`])):U(``,!0),g.value.hideSearch?U(``,!0):(L(),G(`div`,_Bn,[V(e4t,{document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]),F(je).agentEnabled.value?(L(),H(F(Q4t),{key:0})):U(``,!0)])),R(e.$slots,`sidebar-start`,Ja(Fo(me.value)),void 0,!0)]),before:B(()=>[V(F(U4t),{protocol:d.value,"onUpdate:protocol":t[0]||=e=>d.value=e,server:f.value,"onUpdate:server":t[1]||=e=>f.value=e,document:p.value},null,8,[`protocol`,`server`,`document`]),p.value?(L(),H(F(V0t),{key:0,class:`asyncapi-sidebar-document-section`},{default:B(()=>[...t[8]||=[q(` Document `,-1)]]),_:1})):U(``,!0)]),footer:B(()=>[R(e.$slots,`sidebar-end`,Ja(Fo(me.value)),()=>[V(F(v0t),{class:`darklight-reference`},{description:B(()=>[K(`a`,vBn,I(F(v).translate(`footer.poweredByScalar`)),1)]),toggle:B(()=>[!g.value.hideDarkModeToggle&&!g.value.forceDarkModeState?(L(),H(F(nt),{key:0,modelValue:Be.value===`dark`,"onUpdate:modelValue":t[2]||=()=>F(ne)()},null,8,[`modelValue`])):(L(),G(`span`,yBn))]),default:B(()=>[!g.value.hideClientButton&&!He.value?(L(),H(F(Cfn),{key:0,buttonSource:`sidebar`,integration:g.value._integration,isDevelopment:F(!1),url:Ae.value},null,8,[`integration`,`isDevelopment`,`url`])):U(``,!0),He.value?(L(),H(F(i3t),{key:1,config:g.value.mcp,externalUrls:g.value.externalUrls,isDevelopment:F(!1),url:Ae.value,workspace:F(k)},null,8,[`config`,`externalUrls`,`isDevelopment`,`url`,`workspace`])):U(``,!0)]),_:1})],!0)]),_:3},8,[`aria-label`,`class`,`isExpanded`,`isSelected`,`items`,`options`])):U(``,!0)]),_:3},8,[`breadcrumb`,`isSidebarOpen`,`showSidebar`])):U(``,!0),fe.value?(L(),H(eln,{key:2,basePath:C.value,isMultiDocument:c.value,items:ue.value,options:y.value},null,8,[`basePath`,`isMultiDocument`,`items`,`options`])):U(``,!0),K(`main`,{"aria-label":F(v).translate(`navigation.mainContent`,{name:F(k).workspace.activeDocument?.info?.title??``}),class:`references-rendered`,inert:F(je).showAgent.value},[V(Zcn,{authStore:F(A).auth,clientDocument:F(A).workspace.activeDocument,contextChain:ge.value,document:F(k).workspace.activeDocument,documentSlug:l.value,environment:be.value,eventBus:F(a),expandedItems:F(ce).expandedItems.value,headingSlugGenerator:g.value.generateHeadingSlug??(e=>`${l.value}/description/${e.slug}`),infoSectionId:de.value,items:ue.value,options:j.value,xScalarDefaultClient:F(A).workspace[`x-scalar-default-client`],xScalarDefaultExample:F(A).workspace[`x-scalar-default-example`]},To({start:B(()=>[K(`div`,{ref_key:`documentStartRef`,ref:ze},null,512),F(k).workspace.activeDocument?(L(),H(F(Pun),{key:0,overrides:m.value,"onUpdate:overrides":t[6]||=e=>m.value=e,class:`references-developer-tools`,configuration:g.value,externalUrls:g.value.externalUrls,workspace:F(k)},null,8,[`overrides`,`configuration`,`externalUrls`,`workspace`])):U(``,!0),g.value.layout===`classic`?(L(),H(u3t,{key:1},{"dark-mode-toggle":B(()=>[!g.value.hideDarkModeToggle&&!g.value.forceDarkModeState?(L(),H(F(se),{key:0,class:`text-c-2 hover:text-c-1`,mode:Be.value,style:{transform:`scale(1.4)`},variant:`icon`,onClick:t[7]||=()=>F(ne)()},null,8,[`mode`])):U(``,!0)]),default:B(()=>[K(`div`,xBn,[u.value.length>1?(L(),H(Run,{key:0,modelValue:l.value,options:u.value,"onUpdate:modelValue":ke},null,8,[`modelValue`,`options`])):U(``,!0)]),g.value.hideSearch?U(``,!0):(L(),H(e4t,{key:0,class:`t-doc__sidebar max-w-64`,document:ie.value,eventBus:F(a),hideModels:g.value.hideModels,modelsSectionLabel:g.value.modelsSectionLabel,searchHotKey:g.value.searchHotKey},null,8,[`document`,`eventBus`,`hideModels`,`modelsSectionLabel`,`searchHotKey`]))]),_:1})):U(``,!0),R(e.$slots,`content-start`,Ja(Fo(me.value)),void 0,!0)]),end:B(()=>[R(e.$slots,`content-end`,Ja(Fo(me.value)),void 0,!0)]),_:2},[g.value.isEditable?{name:`empty-state`,fn:B(()=>[R(e.$slots,`editor-placeholder`,Ja(Fo(me.value)),void 0,!0)]),key:`0`}:void 0]),1032,[`authStore`,`clientDocument`,`contextChain`,`document`,`documentSlug`,`environment`,`eventBus`,`expandedItems`,`headingSlugGenerator`,`infoSectionId`,`items`,`options`,`xScalarDefaultClient`,`xScalarDefaultExample`])],8,bBn),e.$slots.footer?(L(),G(`div`,SBn,[R(e.$slots,`footer`,Ja(Fo(me.value)),void 0,!0)])):U(``,!0),K(`div`,{ref_key:`modal`,ref:Fe},null,512),Ie.value===`idle`?U(``,!0):(L(),G(`div`,{key:4,class:`bg-b-1 text-c-1 fixed right-4 bottom-4 z-[10001] rounded-lg border px-4 py-3 text-sm shadow-lg`,role:Ie.value===`error`?`alert`:`status`},I(Ie.value===`loading`?`Loading request editor…`:`Could not load the request editor. Refresh the page and try again.`),9,CBn))],10,gBn),V(F(ye))]))}}),[[`__scopeId`,`data-v-5b175b20`]]),TBn=e=>Br(()=>import(e),[]),EBn=async e=>{try{let t=(await TBn(e))?.default;if(typeof t!=`function`){console.error(`[@scalar/api-reference] The module at ${e} does not export an API Reference plugin as its default export.`);return}return t}catch(t){console.error(`[@scalar/api-reference] Failed to load the plugin module at ${e}:`,t);return}},DBn=e=>Array.isArray(e)?e:[e],OBn=e=>DBn(e).some(e=>!!e.pluginUrls?.length),kBn=async e=>{let t=new Map,n=e=>{let n=t.get(e)??EBn(e);return t.set(e,n),n};await Promise.all(DBn(e).map(async e=>{if(!e.pluginUrls?.length)return;let t=(await Promise.all(e.pluginUrls.map(n))).filter(e=>e!==void 0);t.length&&(e.plugins=[...e.plugins??[],...t])}))};async function ABn(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook(`dom:beforeRender`,r),r.shouldRender)return e._domUpdatePromise||=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||e._h,shouldRender:!0};return e._d&&Mdn(e._d)&&r.set(e._d,t+1),n}))})}),a=e._dom;if(!a){a={title:n.title,elMap:new Map().set(`htmlAttrs`,n.documentElement).set(`bodyAttrs`,n.body)};for(let e of[`body`,`head`]){let t=n[e]?.children;for(let e of t){let t=e.tagName.toLowerCase();if(!Zun.has(t))continue;let n=Ldn({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,n)=>(t[n]=e.getAttribute(n),t),{})||{}});if(n.key=e.getAttribute(`data-hid`)||void 0,n._d=Ndn(n)||Pdn(n),a.elMap.has(n._d)){let t=1,r=n._d;for(;a.elMap.has(r);)r=`${n._d}:${t++}`;a.elMap.set(r,e)}else a.elMap.set(n._d,e)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(e,t,n){let r=`${e}:${t}`;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}function s({id:e,$el:t,tag:r}){let i=r.tag.endsWith(`Attrs`);a.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,`el`,()=>{t?.remove(),a.elMap.delete(e)}));for(let a in r.props){if(!Object.prototype.hasOwnProperty.call(r.props,a))continue;let s=r.props[a];if(a.startsWith(`on`)&&typeof s==`function`){let e=t?.dataset;if(e&&e[`${a}fired`]){let e=a.slice(0,-5);s.call(t,new Event(e.substring(2)))}t.getAttribute(`data-${a}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(a.substring(2),s.bind(t)),t.setAttribute(`data-${a}`,``));continue}let c=`attr:${a}`;if(a===`class`){if(!s)continue;for(let n of s)i&&o(e,`${c}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if(a===`style`){if(!s)continue;for(let[n,r]of s)o(e,`${c}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else s!==!1&&s!==null&&(t.getAttribute(a)!==s&&t.setAttribute(a,s===!0?``:String(s)),i&&o(e,c,()=>t.removeAttribute(a)))}}let c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await i;for(let e of u){let{tag:t,shouldRender:r,id:i}=e;if(r){if(t.tag===`title`){n.title=t.textContent,o(`title`,``,()=>n.title=a.title);continue}e.$el=e.$el||a.elMap.get(i),e.$el?s(e):Zun.has(t.tag)&&c.push(e)}}for(let e of c){let t=e.tag.tagPosition||`head`;e.$el=n.createElement(e.tag.tag),s(e),l[t]=l[t]||n.createDocumentFragment(),l[t].appendChild(e.$el)}for(let t of u)await e.hooks.callHook(`dom:renderTag`,t,n,o);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose);for(let e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook(`dom:rendered`,{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1}),e._domUpdatePromise}function jBn(e={}){let t=e.domOptions?.render||ABn;e.document=e.document||(typeof window<`u`?document:void 0);let n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1,r=Vdn({...e,plugins:[...e.plugins||[],{key:`client`,hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]});return r.ssr=!1,r}function MBn(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function NBn(e={}){let t=jBn({domOptions:{render:MBn(()=>ABn(t),e=>setTimeout(e,0))},...e});return t.install=Wdn(t),t}var PBn=`scalar-style`,FBn=new WeakMap,IBn=e=>{let t=FBn.get(e);if(t)return t;let n={count:0,detachedStyle:null};return FBn.set(e,n),n},LBn=e=>{let t=IBn(e);t.count+=1,t.detachedStyle&&!e.getElementById(PBn)&&(e.head.appendChild(t.detachedStyle),t.detachedStyle=null)},RBn=e=>{let t=IBn(e);if(t.count=Math.max(0,t.count-1),t.count>0)return;let n=e.getElementById(PBn);n instanceof HTMLStyleElement&&(t.detachedStyle=n,n.remove())},zBn=(e,t)=>{let n=Za({configuration:t??e??{}}),r=(e=!1)=>{let t=e?bt(()=>xo(wBn,n)):Vt(()=>xo(wBn,n));return t.use(NBn()),t.config.idPrefix=`scalar-refs`,t},i=t?typeof e==`string`?document.querySelector(e):e:null,a=r(!!t&&!!i&&i.children.length>0),o=!1;if(t){if(i){let e=()=>{a.mount(i),o=!0,LBn(document)};OBn(n.configuration)?kBn(n.configuration).then(()=>{s.signal.aborted||e()}):e()}else console.error(`Could not find a mount point for API References:`,e)}let s=new AbortController,c={capture:!1,signal:s.signal};document.addEventListener(`scalar:reload-references`,()=>{if(console.warn(`scalar:reload-references event has been deprecated, please use the scalarInstance.app.mount method instead.`),!n.configuration)return;let t=typeof e==`string`?document.querySelector(e):e;t&&(t&&!document.body.contains(t)&&document.body.appendChild(t),a.unmount(),a=r(),a.mount(t))},c);let l=()=>{s.abort(),n.configuration={},o&&(o=!1,a.unmount(),RBn(document))};return document.addEventListener(`scalar:destroy-references`,()=>{console.warn(`scalar:destroy-references event has been deprecated, please use scalarInstance.destroy instead.`),l()},c),document.addEventListener(`scalar:update-references-config`,e=>{console.warn(`scalar:update-references-config event has been deprecated, please use scalarInstance.updateConfiguration instead.`),`detail`in e&&Object.assign(n,e.detail)},c),{app:a,getConfiguration:()=>n.configuration??{},updateConfiguration:e=>{n.configuration=e},destroy:l}};globalThis.__VUE_OPTIONS_API__=!0,globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0,globalThis.__VUE_PROD_DEVTOOLS__=!1;var BBn=e=>{let t=(0,J.useRef)(null),[n,r]=(0,J.useState)(null),i=()=>Array.isArray(e.configuration)?e.configuration.map(e=>({_integration:`react`,...e})):{_integration:`react`,...e.configuration};return(0,J.useEffect)(()=>{if(!t.current)return n?.app?.unmount;let e=zBn(t.current,i());return r(e),e.destroy},[t]),(0,J.useEffect)(()=>{n?.updateConfiguration(i())},[e.configuration,n]),(0,Y.jsx)(`div`,{ref:t})},VBn=ou(`/api-docs`)({component:HBn});function HBn(){N$();let[e,t]=(0,J.useState)(null);return(0,J.useEffect)(()=>{typeof window<`u`&&t(D$())},[]),e?(0,Y.jsx)(`div`,{className:`scalar-container`,children:(0,Y.jsx)(BBn,{configuration:{url:`${e}/meta/swagger.json`,theme:`none`,layout:`classic`,hideModels:!1,hideClientButton:!1,hideDarkModeToggle:!0,withDefaultFonts:!1,darkMode:document.documentElement.classList.contains(`dark`),agent:{disabled:!0},mcp:{disabled:!0},customCss:`
2303
2303
  /* Hide Scalar branding / powered-by links */
2304
2304
  .scalar-card-footer-powered-by,
2305
2305
  a[href*="scalar.com"],