@brickkit/cli 0.16.0-beta.3 → 0.16.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard-dist/{api-reference-ZQs4Z4Yd.js → api-reference-CA1ejOhs.js} +3 -3
- package/dashboard-dist/app.css +1 -1
- package/dashboard-dist/app.js +8 -8
- package/dashboard-dist/{client-CFM1S4Xv.js → client-C0YCIB2j.js} +1 -1
- package/dashboard-dist/{core-VNHGFYB7.js → core-CPETvDaW.js} +1 -1
- package/dashboard-dist/{docs-CM2krp6H.js → docs-e44llMgQ.js} +1 -1
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/{popover-CVY1eRNY.js → popover-CPp8Bc7H.js} +1 -1
- package/dashboard-dist/theme.css +3 -0
- package/dist/dashboard-host.js +2 -1
- package/dist/dashboard-host.js.map +1 -1
- package/dist/dev-telemetry.js +2 -2
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/package.js +1 -1
- package/inspector-dist/client/assets/{app-PJHZvcxl.css → app-Dla3cd5X.css} +2 -0
- package/inspector-dist/client/assets/{manifest-274ef876.js → manifest-3c342844.js} +1 -1
- package/inspector-dist/client/assets/{root-CPvk93Fe.css → root-Cnc-DXen.css} +2 -0
- package/inspector-dist/server/assets/{app-DdYuYhBk.js → app-p2-vDk3q.js} +13 -13
- package/inspector-dist/server/assets/{functions-BebJWj30.js → functions-BIXA0YFQ.js} +2 -2
- package/inspector-dist/server/assets/{serialization-Cgu5b7aC.js → serialization-D4H52Sdp.js} +1 -1
- package/inspector-dist/server/assets/{token-DH652a7D.js → token-70XLMYnj.js} +1 -1
- package/inspector-dist/server/assets/{token-3-nUtxO2.js → token-Bro5a25u.js} +1 -1
- package/inspector-dist/server/assets/token-util-9OFaOQxs.js +3 -0
- package/inspector-dist/server/assets/{ws-transport-7nLI4Gq9.js → ws-transport-DALQS5qP.js} +1 -1
- package/inspector-dist/server/index.js +1 -1
- package/package.json +2 -2
- package/inspector-dist/server/assets/token-util-wQgchIHA.js +0 -3
- /package/inspector-dist/client/assets/{root-2KbsWt-J.js → root-C12dyylt.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{$ as r,A as i,Bn as a,Bt as o,C as s,D as c,Dt as l,Et as u,F as d,Fn as f,Ft as p,Gn as m,Gt as h,Hn as g,In as _,Jt as v,Kt as y,Ln as b,M as x,Mn as S,Mt as C,N as w,Nt as T,O as E,Ot as D,P as O,Pn as k,Pt as A,Qt as j,Rn as M,Rt as N,S as ee,Sn as P,St as F,T as I,Un as L,Vn as R,Vt as te,Wn as ne,Yt as z,_ as B,_n as V,_t as H,a as U,an as re,at as ie,b as ae,bn as oe,c as se,cn as W,ct as ce,d as le,et as ue,f as de,ft as fe,g as pe,gn as me,gt as he,h as ge,ht as _e,i as ve,in as ye,it as be,j as xe,jn as Se,k as Ce,kn as we,kt as Te,l as Ee,ln as De,lt as Oe,m as ke,mt as Ae,nt as je,on as Me,ot as Ne,p as Pe,pt as Fe,qt as Ie,r as Le,rn as Re,rt as ze,s as Be,sn as Ve,tn as He,u as Ue,un as We,ut as Ge,v as Ke,vn as qe,w as Je,x as Ye,xn as Xe,xt as Ze,y as Qe,yt as $e,zn as et,zt as tt}from"./CompositeRoot-D4sRkYq3.js";import{a as nt,c as rt,d as it,f as at,i as ot,l as st,n as ct,o as lt,r as ut,t as dt,u as ft}from"./app.js";import{A as pt,C as mt,D as ht,E as gt,F as _t,I as vt,L as yt,O as G,P as K,R as bt,S as xt,_ as St,b as Ct,d as wt,f as Tt,i as Et,j as Dt,k as Ot,t as kt,u as At,v as jt,x as Mt,y as Nt}from"./CollapsiblePanel-DvJpFahB.js";import{n as Pt,t as Ft}from"./ccount-CcG1m-Yh.js";import{$t as q,At as It,Bt as Lt,Cn as Rt,Dn as zt,En as Bt,Fn as Vt,Ft as Ht,Gt as Ut,Ht as Wt,In as Gt,It as Kt,Jt as qt,Kn as Jt,Kt as Yt,Ln as Xt,Lt as Zt,M as Qt,Mt as $t,N as en,Nt as tn,On as nn,P as rn,Pt as an,Qt as on,Rn as sn,Rt as cn,Sn as ln,Tn as un,U as dn,Ut as fn,Vt as pn,Wt as mn,Xt as hn,Yt as gn,Zt as _n,_n as vn,a as yn,an as bn,bn as xn,c as Sn,cn as Cn,ct as wn,d as Tn,dn as En,en as Dn,f as On,fn as kn,gn as An,h as jn,hn as Mn,ht as Nn,i as Pn,in as Fn,j as In,jt as Ln,l as Rn,ln as zn,lt as Bn,m as Vn,mn as Hn,nn as Un,o as Wn,on as Gn,ot as Kn,p as qn,pn as Jn,qt as Yn,rn as Xn,s as Zn,sn as Qn,tn as $n,u as er,un as tr,vn as nr,wn as rr,xn as ir,xt as ar,yn as or,zt as sr}from"./popover-CVY1eRNY.js";var cr={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};cr.node;var lr=g(cr),ur={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};ur.node;var dr=g(ur),fr={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};fr.node;var pr=g(fr),mr={name:`cookie`,size:24,node:[[`path`,{d:`M11 17h.01`,key:`dukryu`}],[`path`,{d:`M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2`,key:`1x76et`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M16 3h.01`,key:`ll0zb8`}],[`path`,{d:`M21 4h.01`,key:`uw58yv`}],[`path`,{d:`M21 8h.01`,key:`17axm7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M9 8h.01`,key:`1jwowd`}]]};mr.node;var hr=g(mr),gr={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};gr.node;var _r=g(gr),vr={name:`funnel-x`,size:24,node:[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]],aliases:[`filter-x`]};vr.node;var yr=g(vr),br={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};br.node;var xr=g(br),Sr={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Sr.node;var Cr=g(Sr),wr={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};wr.node;var Tr=g(wr),Er={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Er.node;var Dr=g(Er),Or={name:`route`,size:24,node:[[`path`,{d:`M9 5h8.5a1 1 0 010 7h-11a1 1 0 000 7H15`,key:`1r1aam`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};Or.node;var kr=g(Or),Ar={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Ar.node;var jr=g(Ar),Mr={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};Mr.node;var Nr=g(Mr),Pr={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Pr.node;var Fr=g(Pr),Ir={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Ir.node;var Lr=g(Ir),Rr={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Rr.node;var zr=g(Rr),Br={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Br.node;var Vr=g(Br);function Hr(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=c(),a=tr()!=null,o=et(()=>new pn({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new mn,floatingId:i,syncOnly:!1,nested:a})).current;return W(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=oe(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var J=t(m(),1);function Ur(e){return Gt&&e.movementX===0&&e.movementY===0}function Wr(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Gr(e,t){return Wr(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Kr(e,t,n){return Wr(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function qr(e,t,n){return Wr(t,n?e===T:e===A,e===C)}function Jr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Wr(t,n?e===A:e===T,e===p)}function Yr(e,t){let{listRef:n,activeIndex:r,onNavigate:a=()=>{},enabled:s=!0,selectedIndex:c=null,allowEscape:u=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:v=!0,disabledIndices:b=void 0,orientation:S=`vertical`,triggerOrientation:C=S,parentOrientation:w,id:T,resetOnPointerLeave:E=!0,externalTree:D,nestedReturnFocusRef:k,grid:A}=t,j=A!=null,M=e.useState(`open`),ee=e.useState(`floatingElement`),P=e.useState(`domReferenceElement`),F=e.context.dataRef,I=ir(ee),L=Rt(P),R=ze(I),ne=tr(),z=En(D),B=J.useRef(g),V=J.useRef(c??-1),U=J.useRef(null),ie=J.useRef(!0),ae=De(e=>{a(V.current===-1?null:V.current,e)}),oe=J.useRef(!!ee),se=J.useRef(M),ce=J.useRef(!1),le=J.useRef(!1),ue=J.useRef(null),de=ze(b),fe=ze(M),pe=ze(c),me=ze(E),he=je(),ge=je(),_e=De(()=>{he.cancel();function e(e){m||(ue.current=vn(e,{sync:ce.current,preventScroll:!0}))}let t=n.current[V.current],r=le.current;t&&e(t),(ce.current?e=>e():e=>he.request(e))(()=>{let i=n.current[V.current]||t;i&&(t||e(i),we&&(r||!ie.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});W(()=>{F.current.orientation=S},[F,S]),W(()=>{M||(U.current=null),M&&g===`auto`||(B.current=g)},[M,g]),W(()=>{s&&(M&&ee?(V.current=c??-1,B.current&&c!=null&&(le.current=!0,ae())):oe.current&&(V.current=-1,ae()))},[s,M,ee,c,ae]),W(()=>{if(s){if(!M)ce.current=!1;else if(ee){if(r==null){if(ce.current=!1,pe.current!=null)return;if(oe.current&&(V.current=-1,_e()),(!se.current||!oe.current)&&B.current&&(U.current!=null||B.current===!0&&U.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ge.request(e):queueMicrotask)(t),e+=1):(V.current=U.current==null||Kr(U.current,C,p)||f?xe(n):i(n),U.current=null,ae())};t()}}else O(n.current,r)||(V.current=r,_e(),le.current=!1)}}},[s,M,ee,r,pe,f,n,C,p,ae,_e,ge]),W(()=>{if(!s||ee||!z||m||!oe.current)return;let e=z.nodesRef.current,t=e.find(e=>e.id===ne)?.context?.elements.floating,n=N(re(P??t??null)),r=e.some(e=>e.context&&o(e.context.elements.floating,n));t&&!r&&ie.current&&t.focus({preventScroll:!0})},[s,ee,P,z,ne,m]),W(()=>{se.current=M,oe.current=!!ee});let ve=r!=null,ye=De(e=>{if(!fe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(V.current!==t||r!==t)&&(V.current=t,ae(e))}),be=De(()=>w??z?.nodesRef.current.find(e=>e.id===ne)?.context?.dataRef?.current.orientation),Se=De(()=>xe(n,de.current)),Ce=De(t=>{if(ie.current=!1,ce.current=!0,t.which===229||!fe.current&&t.currentTarget===R.current)return;if(f&&Jr(t.key,S,p,j)){Gr(t.key,be())||Ie(t),e.setOpen(!1,l(H,t.nativeEvent));let n=k?.current??P;Xe(n)&&n.focus();return}r!=null&&r!==V.current&&!O(n.current,r)&&(V.current=r);let a=V.current,s=xe(n,b),c=i(n,b);if(L||(t.key===`Home`&&(Ie(t),V.current=s,ae(t)),t.key===`End`&&(Ie(t),V.current=c,ae(t))),A!=null){let e=A(t,V.current,n,S,d,p,b,s,c);if(e!=null&&e!==V.current&&(V.current=e,ae(t)),S===`both`)return}if(Gr(t.key,S)){Ie(t);let e=N(t.currentTarget.ownerDocument);if(M&&!m&&o(t.currentTarget,e)&&!n.current.some(t=>t!=null&&o(t,e))){V.current=Kr(t.key,S,p)?s:c,ae(t),r===V.current&&_e();return}let{index:i,wrapped:l}=x(n.current,a,{decrement:!Kr(t.key,S,p),loopFocus:d,allowEscape:u,disabledIndices:b,minIndex:s,maxIndex:c});l&&(ce.current=!1),V.current=i,ae(t)}}),we=J.useMemo(()=>({onFocus(e){ce.current=!0,ye(e)},onClick({currentTarget:e}){m||e.focus({preventScroll:!0})},onMouseMove(e){Ur(e)||(ce.current=!0,le.current=!1,_&&ye(e))},onPointerLeave(e){if(!fe.current||!ie.current||e.pointerType===`touch`)return;ce.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&me.current&&(ue.current?.(),ue.current=null,V.current=-1,ae(e),!m)){let e=R.current,t=N(re(e));e&&o(e,t)&&e.focus({preventScroll:!0})}}}),[ye,fe,R,_,n,ae,me,m]),Te=J.useMemo(()=>m&&M&&ve&&{"aria-activedescendant":`${T}-${r}`},[m,M,ve,T,r]),Ee=J.useMemo(()=>({...L?{}:Te,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&M&&!m){let n=te(t.nativeEvent);if(n&&!o(R.current,n))return;Ie(t);let r=l(Oe,t.nativeEvent);e.setOpen(!1,r);let i=k?.current??P;!r.isCanceled&&Xe(i)&&i.focus()}else Ce(t)},onPointerMove(e){Ur(e)||(ie.current=!0)}}),[Te,Ce,R,L,e,M,m,P,k]),ke=J.useMemo(()=>{function t(t){e.setOpen(!0,l(H,t.nativeEvent,t.currentTarget))}function n(e){g===`auto`&&h(e.nativeEvent)&&(B.current=!m)}function r(e){B.current=g,g===`auto`&&y(e.nativeEvent)&&(B.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ie.current=!1;let i=n.key.startsWith(`Arrow`),a=qr(n.key,be(),p),o=Gr(n.key,r?S:C),s=(f?a:o)||n.key===`Enter`||n.key.trim()===``;if(m&&r&&(!f||rr(n.currentTarget)))return Ce(n);if(r||v||!i){if(s){let e=Gr(n.key,be());U.current=f&&e?null:n.key}f?a&&(Ie(n),r?(V.current=Se(),ae(n),m&&R.current?.focus()):t(n)):o&&(pe.current!=null&&(V.current=pe.current),Ie(n),!r&&v?t(n):Ce(n),r&&ae(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!m&&(V.current=-1,ae(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[Ce,g,Se,f,ae,e,v,S,C,be,p,pe,m,R]),Ae=J.useMemo(()=>({...Te,...ke}),[Te,ke]);return J.useMemo(()=>s?{reference:Ae,floating:Ee,item:we,trigger:ke}:{},[s,Ae,Ee,ke,we])}function Xr(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:s,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:f=null}=t,p=De(c),m=e.useState(`open`),h=He(),g=J.useRef(``),_=J.useRef(f??i??-1),v=J.useRef(null),y=De(e=>{function t(e){return r?.current[e]}function o(e){let n=t(e);return n&&!w(n)||n?.matches(`:disabled`)?!1:s==null||!d(k,e,s)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&o(n))return n}return-1}let l=n.current;if(g.current.length>0&&e.key===` `&&(Ie(e),p?.(!0)),g.current.length>0&&g.current[0]!==` `&&c(l,g.current)===-1&&e.key!==` `&&p?.(!1),l==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;m&&e.key!==` `&&(Ie(e),p?.(!0));let y=g.current===``;y&&(_.current=f??i??-1),l.every((e,t)=>e&&o(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,h.start(u,()=>{g.current=``,_.current=v.current,p?.(!1)});let b=((y?f??i??-1:_.current)??0)+1,x=c(l,g.current,b);x===-1?e.key!==` `&&(g.current=``,p?.(!1)):(a?.(x,e),v.current=x)}),b=De(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);o(r,n)||o(i,n)||(h.clear(),g.current=``,_.current=v.current,p?.(!1))});W(()=>{(m||f===null)&&(h.clear(),v.current=null,g.current!==``&&(g.current=``,p?.(!1)))},[m,f,h,p]);let x=J.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return J.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}function Zr(e){let[t,n]=J.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Qr(e){let t=We(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xe(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(ue(n)!==a||ue(r)!==o)&&(n=a,r=o),{width:n,height:r}}var $r=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},ei=e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`),ti=e=>{try{return decodeURIComponent(e)}catch{return e}};function ni(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ri=e=>{if(e&&typeof e==`object`&&e.$id&&typeof e.$id==`string`)return e.$id};function ii(e,t){return t.reduce((e,t)=>e.value===void 0||typeof e.value!=`object`||e.value===null||!Object.hasOwn(e.value,t)?{context:``,value:void 0}:{context:ri(e.value)??e.context,value:e.value?.[t]},{context:``,value:e})}var ai=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>Ee});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(j(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?x(e,t):b(e,t),y=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},b=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return k(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}return!1})},x=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}return!1},S=(e,t,n,r)=>{let i=j(e);return k(O(D(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},C=(e,t)=>S(e,0,1),w=(e,t)=>S(e,0,1/0),T=(e,t)=>{let n=e.map(j);return k(O(D(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},E=(e,t)=>{let n=e.map(j);return k(O(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},D=(e,t=!1)=>{let n=j(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},O=(e,t)=>j(e),k=(()=>{let e=0;return t=>{let n=j(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}return a.set(i,!1),!1}}}})(),A=e=>{let t;return n=>(t||=j(e()),t(n))},j=g(e=>{if(l(e))return u(e)?A(e):e;if(m(e)||p(e))return v(e);if(c(e))return T(e);if(f(e))return E(Object.values(e));throw Error(`Invalid rule`)}),M=`abcdefghijklmnopqrstuvwxyz`,N=e=>{let t=``;for(;e>0;)t=M[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ee=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+M.indexOf(e[n])+1;return t},P=(e,t)=>{if(t<e)return P(t,e);let n=[];for(;e<=t;)n.push(e++);return n},F=(e,t,n)=>P(e,t).map(e=>String(e).padStart(n,`0`)),I=(e,t)=>P(ee(e),ee(t)).map(N),L=e=>e,R=e=>te(t=>_(t,e,{memoization:!1}).join(``)),te=e=>{let t={};return n=>t[n]??(t[n]=e(n))},ne=v(/^\*\*\/\*$/,`.*`),z=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),B=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),V=v(/\\./,L),H=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),U=v(/./,L),re=E([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${xe(t)}$).*?`),v(/^(!!)+/,``)]),ie=E([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),ae=E([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),oe=v(`?`,`[^/]`),se=v(`[`,L),W=v(`]`,L),ce=v(/[!^]/,`^/`),le=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,L),ue=E([V,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),le,v(/[^\]]/,L)]),de=T([se,C(ce),w(ue),W]),fe=v(`{`,`(?:`),pe=v(`}`,`)`),me=T([fe,E([v(/(\d+)\.\.(\d+)/,(e,t,n)=>F(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>I(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>I(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),pe]),he=v(`{`,`(?:`),ge=v(`}`,`)`),_e=v(`,`,`|`),ve=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),ye=v(/[^}]/,L),be=T([he,w(E([ie,ae,oe,de,me,A(()=>be),V,ve,_e,ye])),ge]),xe=R(w(E([ne,z,B,re,ie,ae,oe,de,me,be,V,H,U]))),Se=v(/\\./,L),Ce=v(/./,L),we=R(w(E([Se,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Ce]))),Te=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Te.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Te.compile=e=>RegExp(`^${xe(we(e))}$`,`s`);var Ee=Te;return o(s)})();return e.default||e},oi,si=(e,t)=>(oi||(oi=ai(),ai=null),oi(e,t)),ci=/^[A-Za-z]:\//;function li(e=``){return e&&e.replace(/\\/g,`/`).replace(ci,e=>e.toUpperCase())}var ui=/^[/\\]{2}/,di=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,fi=/^[A-Za-z]:$/,pi=/^\/([A-Za-z]:)?$/,mi=/.(\.[^./]+|\.)$/,hi=/^[/\\]|^[a-zA-Z]:[/\\]/,gi=function(e){if(e.length===0)return`.`;e=li(e);let t=e.match(ui),n=xi(e),r=e[e.length-1]===`/`;return e=bi(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),fi.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!xi(e)?`/${e}`:e)},_i=function(...e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n}return gi(t)};function vi(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var yi=function(...e){e=e.map(e=>li(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:vi();i&&i.length!==0&&(t=`${i}/${t}`,n=xi(i))}return t=bi(t,!n),n&&!xi(t)?`/${t}`:t.length>0?t:`.`};function bi(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var xi=function(e){return di.test(e)},Si=function(e){return li(e)},Ci=function(e){if(e===`..`)return``;let t=mi.exec(li(e));return t&&t[1]||``},wi=function(e,t){let n=yi(e).replace(pi,`$1`).split(`/`),r=yi(t).replace(pi,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},Ti=function(e){let t=li(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&fi.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(xi(e)?`/`:`.`)},Ei=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return li(e.root?yi(...n):n.join(`/`))},Di=function(e,t){let n=li(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},Oi={__proto__:null,basename:Di,dirname:Ti,extname:Ci,format:Ei,isAbsolute:xi,join:_i,matchesGlob:(e,t)=>si(t,gi(e)),normalize:gi,normalizeString:bi,parse:function(e){let t=hi.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Di(e),r=Ci(n);return{root:t,dir:Ti(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:wi,resolve:yi,sep:`/`,toNamespacedPath:Si},ki=globalThis.process?.platform===`win32`?`;`:`:`,Ai={posix:void 0,win32:void 0},ji=(e=ki)=>new Proxy(Oi,{get(t,n){return n===`delimiter`?e:n===`posix`?Mi:n===`win32`?Ni:Ai[n]||Oi[n]}}),Mi=ji(`:`),Ni=ji(`;`),Pi=e=>/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^[a-z]:[\\/]/i.test(e),Fi=(e,t)=>{if(Pi(t))return t;if(Pi(e))return new URL(t,e).href;if(!t)return e;let n=/[\\/]$/.test(e)?e:Mi.dirname(e),r=Mi.resolve(n,t);return/[\\/]$/.test(t)&&!r.endsWith(`/`)?`${r}/`:r},Ii=(e,t,n)=>Fi(e,n??`./__bundle_${encodeURIComponent(t)}/document`),Li=(e,t,n=!1,r=()=>!0,i=()=>!0)=>{let a=new Map,o=new Map,s=new WeakMap,c=new WeakMap,l=new Map,u,d=new Map,f=(e,n,r=[],i=n)=>{r.length===0&&(u=n);let s=t?.(e,n),c=s===void 0?n:Fi(n,s.baseUri);s!==void 0&&a.set(e,{...s,baseUri:c});let f={value:e,path:r,schema:!1,embedded:r.length>0,document:e,documentPath:r};o.set(n,f),o.set(c,f),r.length>1&&l.set(r[1],f);let m=s?Fi(i,s.baseUri):i;d.set(e,{base:c,path:r,retrievalBase:m}),p(e,c,r,[],m)},p=(t,a,l,u=[],d=a)=>{let f=new WeakSet,p=(a,u,m,h=``,g=d)=>{if(typeof a!=`object`||!a||f.has(a)||!r(a))return;f.add(a);let _=i(a)?ri(a):void 0,v=_??h,y=_===void 0?u:Fi(u,_),b=n&&_===s.get(a)&&c.has(a)?c.get(a):_===void 0?g:Fi(g,_);s.set(a,y),c.set(a,b),n&&_!==void 0&&$r(a)&&(a.$id=y);let x=i(a)&&$r(a)&&typeof a.$anchor==`string`?a.$anchor:void 0;if(_!==void 0||x!==void 0){let e={value:a,path:m,schema:!0,identifier:v,embedded:l.length>0,document:t,documentPath:l};_!==void 0&&o.set(y,e),x!==void 0&&o.set(`${y}#${x}`,e)}for(let[t,n]of Object.entries(a))t!==e&&p(n,y,[...m,t],v,b)},m=t,h=a,g=``,_=d;for(let e of u){if(typeof m!=`object`||!m)return;h=s.get(m)??h,_=c.get(m)??_,g=(i(m)?ri(m):void 0)??g,m=m[e]}p(m,h,[...l,...u],g,_)};return{identity:e=>a.get(e),register:f,refresh:(e,t)=>{let n=d.get(e);n&&p(e,n.base,n.path,t,n.retrievalBase)},isSchemaResource:e=>o.get(e)?.schema===!0,origin:e=>s.get(e),retrievalOrigin:e=>c.get(e),resolve:(t,n,r=!1)=>{let[i,a=``]=t.split(`#`,2),c=ti(a),d=i?Fi(n,i):n,f=c.startsWith(`/`)?c.slice(1).split(`/`).map(ei):[],p=o.get(d),m=$r(p?.value)?p.value[e]:void 0,h=!(p?.schema&&$r(m)&&Object.hasOwn(m,f[1]??``))&&(!i||p?.path.length===0)&&f[0]===e?l.get(f[1]):void 0,g=p?.value!==null&&typeof p?.value==`object`?s.get(p.value):void 0,_=h??(c&&!c.startsWith(`/`)?o.get(`${d}#${c}`)??(g?o.get(`${g}#${c}`):void 0):p);if(!_)return;let v=h?f.slice(2):f,y=u===void 0?void 0:o.get(u);r&&!i&&c.startsWith(`/`)&&!h&&y&&ii(_.value,v).value===void 0&&ii(y.value,f).value!==void 0&&(_=y);let b=[..._.path,...v],x=ii(_.value,v).value,S=x===void 0,C=_.schema&&!i,w=!_.embedded&&_.schema&&!!i&&i===_.identifier,T=!_.embedded&&!_.schema&&!i;return{path:b.map(ni).join(`/`),segments:b,resourceRelative:C&&!h,value:x,document:_.document,documentPath:_.documentPath,preserveReference:S||C||w||T}}}};function Ri(e,t){return t.reduce((e,t)=>{if(!Object.hasOwn(e,t)||e[t]===void 0){let n=isNaN(Number(t))?{}:[];t===`__proto__`?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}return e[t]},e)}var zi=Symbol(`isMagicProxy`),Bi=Symbol(`magicProxyTarget`),Vi=`$ref-value`,Hi=`$ref`,Ui=(e,t,n=(()=>{let n=Li(`x-ext`),r=t?.documentUri??`/`;if(n.register(e,r),$r(e)&&$r(e[`x-ext`]))for(let[t,i]of Object.entries(e[`x-ext`])){let a=e[`x-ext-urls`],o=$r(a)&&typeof a[t]==`string`?a[t]:void 0;n.register(i,Ii(r,t,o),[`x-ext`,t])}return{root:e,proxyCache:new WeakMap,references:n,origin:r,revision:{value:0}}})())=>{if(!$r(e)&&!Array.isArray(e))return e;if(n.proxyCache.has(e))return n.proxyCache.get(e);let r,i=new Proxy(e,{get(e,i,a){if(i===zi)return!0;if(i===Bi)return e;if(typeof i==`string`&&i.startsWith(`__scalar_`)&&!t?.showInternal)return;let o=Reflect.get(e,Hi,a);if(i===Vi&&typeof o==`string`){let i=n.references.origin(e)??n.origin;if(r?.ref!==o||r.origin!==i||r.revision!==n.revision.value){let e=n.references.resolve(o,i,!0);if(!e)return;r={ref:o,origin:i,revision:n.revision.value,segments:e.segments}}let a=ii(n.root,r.segments).value;return Wi(a)?a:Ui(a,t,{...n,origin:$r(a)?n.references.origin(a)??n.origin:n.origin})}let s=Reflect.get(e,i,a);return Wi(s)?s:Ui(s,t,{...n,origin:n.references.origin(e)??n.origin})},set(e,r,i,a){n.revision.value++;let o=Reflect.get(e,Hi,a);if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return!0;if(r===Vi&&typeof o==`string`){let t=n.references.resolve(o,n.references.origin(e)??n.origin,!0)?.segments;if(t===void 0)return;if(t.length===0)return!1;let r=()=>ii(n.root,t.slice(0,-1)).value;r()===void 0&&(Ri(n.root,t.slice(0,-1)),console.warn(`Trying to set $ref-value for invalid reference: ${o}\n\nPlease fix your input file to fix this issue.`));let a=r(),s=t.at(-1);return s===`__proto__`?Object.defineProperty(a,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[s]=i,!0}return Reflect.set(e,r,i,a)},deleteProperty(e,t){return n.revision.value++,Reflect.deleteProperty(e,t)},has(e,n){return typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal?!1:n===Vi&&Hi in e||Reflect.has(e,n)},ownKeys(e){let n=Reflect.ownKeys(e).filter(e=>typeof e!=`string`||!(e.startsWith(`__scalar_`)&&!t?.showInternal));return Hi in e&&!n.includes(Vi)&&n.push(Vi),n},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal)return;let r=Reflect.get(e,Hi);return n===Vi&&typeof r==`string`?{configurable:!0,enumerable:!0,value:void 0,writable:!1}:Reflect.getOwnPropertyDescriptor(e,n)}});return n.proxyCache.set(e,i),i},Wi=e=>typeof e==`object`&&!!e&&e[zi]===!0;function Gi(e){return typeof e!=`object`||!e?e:e[zi]?e[Bi]:e}var Ki=Symbol(`isMagicProxy`),qi=Symbol(`magicProxyTarget`);function Ji(e){return typeof e!=`object`||!e?e:e[Ki]?e[qi]:e}var Yi=t(ne(),1),Y=t(L(),1);function Xi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}var Zi=new WeakMap;function Qi(e){if(!Xi(e)||typeof e.$ref!=`string`)return e;let t=Zi.get(e);if(t)return t;let{$ref:n,"$ref-value":r,...i}=e;Zi.set(e,i);let a=Qi(r),o=i;return Xi(a)&&(o=Object.keys(i).length===0?a:{...a,...i}),Zi.set(e,o),o}function $i(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>$i(e,t[n]));if(Array.isArray(e)||Array.isArray(t))return!1;if(Xi(e)&&Xi(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>n in t&&$i(e[n],t[n]))}return!1}function ea(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ta(e,...t){let n=na(void 0,e);for(let e of t)n=na(n,e);return n}function na(e,t){if(!Xi(t))return t;let n={};if(Xi(e))for(let r of Object.keys(e))Object.hasOwn(t,r)||ea(n,r,na(void 0,e[r]));for(let r of Object.keys(t))ea(n,r,na(Xi(e)&&Object.hasOwn(e,r)?e[r]:void 0,t[r]));return n}function ra(e){return e=Qi(e),typeof e==`boolean`||!e.allOf?e:ia([e],new Set,e.title)}function ia(e,t,n){let r=[],i=e=>{let n=Qi(e);return typeof n==`boolean`?n:t.has(n)?!0:(t.add(n),n.allOf&&(t.add(n.allOf),!n.allOf.every(i))?!1:(r.push(n),!0))};if(!e.every(i))return!1;let a=oa(r);if(a===!1)return!1;n??=la(r);let o=[];for(let e of r)for(let n of[`anyOf`,`oneOf`]){let r=e[n];r&&!t.has(r)&&!r.some(e=>aa(e,t))&&o.push([n,r])}if(o.length===0)return n!==void 0&&(a.title=n),a;let s=o[0][0],c=[a],l=[[]];for(let[e,n]of o)e===s?(t.add(n),l=l.flatMap(e=>n.map(t=>[...e,t]))):c.push({[e]:n});let u=[];for(let e of l){let n=ia([...c,...e],new Set(t));n!==!1&&u.push(n)}return u.length===0?!1:n===void 0?{[s]:u}:{title:n,[s]:u}}function aa(e,t){let n=Qi(e);return typeof n==`object`&&(t.has(n)||t.has(n.allOf))}function oa(e){let t={},n=new Set,r=new Map,i=new Map;for(let a of e){let e=a;for(let a in e){let o=e[a];if(o!==void 0)switch(a){case`title`:case`allOf`:case`anyOf`:case`oneOf`:break;case`minItems`:case`minimum`:case`exclusiveMinimum`:case`minProperties`:case`minContains`:case`minLength`:t[a]=t[a]===void 0?o:Math.max(t[a],o);break;case`maxContains`:case`maxItems`:case`maxLength`:case`maxProperties`:case`maximum`:case`exclusiveMaximum`:t[a]=t[a]===void 0?o:Math.min(t[a],o);break;case`enum`:t[a]=t[a]===void 0?o:da(t[a],o);break;case`format`:case`const`:if(t[a]===void 0)t[a]=o;else if(!$i(t[a],o))return!1;break;case`type`:{if(t.type===void 0){t.type=o;break}let e=Array.isArray(o)?o:[o],n=(Array.isArray(t.type)?t.type:[t.type]).filter(t=>e.includes(t));if(n.length===0)return!1;t.type=n.length===1?n[0]:n;break}case`required`:for(let e of o)n.add(e);break;case`properties`:case`patternProperties`:{let e=i.get(a);e||i.set(a,e=new Map);for(let t in o)sa(e,t,o[t]);break}case`additionalProperties`:case`additionalItems`:case`contains`:case`items`:case`not`:sa(r,a,o);break;default:t[a]=o}}}n.size>0&&(t.required=Array.from(n));for(let[e,n]of i){let r={};for(let[e,t]of n)ea(r,e,ca(t));t[e]=r}for(let[e,n]of r)t[e]=e===`not`?n.length===1?n[0]:{anyOf:n}:ca(n);return t}function sa(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function ca(e){let t=[];for(let n of e){if(n===!1)return!1;n!==!0&&!t.some(e=>Qi(e)===Qi(n))&&t.push(n)}return t.length===0?!0:t.length===1?t[0]:{allOf:t}}function la(e){let t=new Set;for(let n of e){let r=n.title;r!==void 0&&(e.some(e=>e!==n&&e.title!==void 0&&e.allOf?.some(e=>ua(e,r)))||t.add(r))}if(t.size>0)return Array.from(t).join(` & `)}function ua(e,t,n=new Set){return e=Qi(e),typeof e==`boolean`||n.has(e)?!1:(n.add(e),e.title===t?!0:e.allOf?.some(e=>ua(e,t,n))??!1)}function da(e,t){let n=new Set;for(let r of e)t.includes(r)&&n.add(r);for(let r of t)e.includes(r)&&n.add(r);return Array.from(n)}function fa(e){if(e===null)return`null`;switch(typeof e){case`string`:return`string`;case`boolean`:return`boolean`;case`number`:return Number.isInteger(e)?`integer`:`number`;case`object`:return Array.isArray(e)?`array`:`object`}}function pa(e,t){let n=fa(e);return n===void 0?!1:n===t||t===`number`&&n===`integer`}function ma(e,t){return ha(e,t,new Set)}function ha(e,t,n){if(t===void 0)return!1;let r=Qi(e);if(typeof r==`boolean`)return r;if(n.has(r))return!0;if(n.add(r),r.const!==void 0)return $i(t,r.const);if(Array.isArray(r.enum))return r.enum.some(e=>$i(t,e));if(Array.isArray(r.allOf)&&!r.allOf.every(e=>ha(e,t,n))||Array.isArray(r.anyOf)&&!r.anyOf.some(e=>ha(e,t,n))||Array.isArray(r.oneOf)&&!r.oneOf.some(e=>ha(e,t,n))||r.not!==void 0&&ha(r.not,t,n)||r.type!==void 0&&[r.type].flat().every(e=>!pa(t,e)))return!1;if(Xi(t)){if(Array.isArray(r.required)&&r.required.some(e=>t[e]===void 0))return!1;let e=r.properties??{};for(let n in e){let r=e[n];if(t[n]!==void 0&&r!==void 0&&!ha(r,t[n],new Set))return!1}}if(Array.isArray(t)){let e=r.items;if(e!==void 0&&typeof e!=`boolean`&&t.some(t=>!ha(e,t,new Set)))return!1}return!0}function ga(e,{alias:t=!1}={}){function n(e,t){let n=new Set,i=[],a=!1;for(let t of e){let e=r(t,!0);e===`null`?a=!0:e!==`unknown`&&!n.has(e)&&(i.push(e),n.add(e))}return a&&i.push(`null`),i.join(t)}function r(e,t){let i=typeof e==`object`&&typeof e.$ref==`string`?e.$ref:void 0,a=Qi(e);if(a===!0)return`any`;if(a===!1)return`never`;if(a.enum?.length===1)switch(typeof a.enum[0]){case`bigint`:case`boolean`:case`number`:case`string`:return JSON.stringify(a.enum[0])}if(t){if(a.title)return a.title;if(typeof i==`string`){let e=i.split(`/`);if(e.length>0)return e[e.length-1]}}if(Array.isArray(a.type))return n(a.type.map(e=>({...a,type:e})),` | `);if(a.type===`array`)return`array<${a.items?r(a.items,!0):`unknown`}>`;if(a.oneOf&&a.anyOf)return`(${n(a.oneOf,` | `)}) & (${n(a.anyOf,` | `)})`;let o=a.oneOf??a.anyOf;return o?n(o,` | `):a.allOf?n(a.allOf,` & `):a.not?`not (${r(a.not,t)})`:a.type===`string`&&a.format===`binary`?`file`:typeof a.type==`string`?a.type:`unknown`}return r(e,t)}var _a=Symbol(`skip`),va={skipReadOnly:!1,maxSampleDepth:15},ya={},ba=[];function xa(){ya={},ba.length=0}function Sa(e){e&&ba.pop()}function Ca(e){if(typeof e!=`boolean`){if(e.type!==void 0){let t=e.type;return Array.isArray(t)?t[0]:t}for(let[t,n]of Object.entries({multipleOf:`number`,maximum:`number`,exclusiveMaximum:`number`,minimum:`number`,exclusiveMinimum:`number`,maxLength:`string`,minLength:`string`,pattern:`string`,items:`array`,maxItems:`array`,minItems:`array`,uniqueItems:`array`,additionalItems:`array`,maxProperties:`object`,minProperties:`object`,required:`object`,additionalProperties:`object`,properties:`object`,patternProperties:`object`,dependencies:`object`}))if(e[t]!==void 0)return n}}function wa(e){if(e===`object`)return{};if(e===`array`)return[]}function Ta(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function Ea(e,t,n,r){return()=>{e|=0,t|=0,n|=0,r|=0;let i=e-(t<<27|t>>>5)|0;return e=t^(n<<17|n>>>15),t=n+r|0,n=r+i|0,r=e+i|0,(r>>>0)/4294967296}}function Da(e){let t=Ta(e),n=Ea(t,t,t,t);return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=n()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function Oa(e,t,n,r){let i=e=>e<10?`0${e}`:`${e}`,a=n?``:`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}`;return t||(a+=`T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}`,r&&(a+=`.${(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)}`),a+=`Z`),a}function ka(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Aa(){return!0}function ja(e){let t=0;return typeof e==`boolean`?t:(e.type===`number`&&(e.format===`float`||e.format===`double`)&&(t=.1),typeof e.minimum==`number`?e.minimum:(typeof e.exclusiveMinimum==`number`?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):typeof e.exclusiveMaximum==`number`?t=Math.floor(e.exclusiveMaximum)-1:typeof e.maximum==`number`&&(t=e.maximum),t))}function Ma(e,t,n,r){if(n&&r)return Na(n);let i=ka(`string`,e);return t!=null&&i.length>t&&(i=i.substring(0,t)),i}function Na(e){let t=e.replace(/^\^?/,``).replace(/\$?$/,``),n=t.match(/^(.)\{(\d+)\}$/);return n?n[1].repeat(parseInt(n[2],10)):t.length>0?t:`x`}function Pa(e,t,n){if(typeof e==`boolean`)return``;let r=new Date(`2019-08-24T14:15:22.123Z`);switch(e.format){case`email`:return`user@example.com`;case`idn-email`:return`пошта@укр.нет`;case`password`:{let t=`pa$$word`,n=e.minLength??0;return n>t.length&&(t+=`_`,t+=ka(`qwerty!@#$%^123456`,n-t.length).substring(0,n-t.length)),t}case`date-time`:return Oa(r,!1,!1,!1);case`date`:return Oa(r,!0,!1,!1);case`time`:return Oa(r,!1,!0,!1).slice(1);case`ipv4`:return`192.168.0.1`;case`ipv6`:return`2001:0db8:85a3:0000:0000:8a2e:0370:7334`;case`hostname`:return`example.com`;case`idn-hostname`:return`приклад.укр`;case`uri`:return`http://example.com`;case`uri-reference`:return`../dictionary`;case`uri-template`:return`http://example.com/{endpoint}`;case`iri`:return`http://example.com/entity/1`;case`iri-reference`:return`/entity/1`;case`uuid`:return Da(n?.propertyName||`id`);case`json-pointer`:return`/json/pointer`;case`relative-json-pointer`:return`1/relative/json/pointer`;case`regex`:return`/regex/`;default:return Ma(e.minLength??0,e.maxLength,e.pattern,t.enablePatterns)}}function Fa(e,t,n){if(typeof e==`boolean`)return[];let r=n?.depth??1,i=Math.min(e.maxItems??1/0,e.minItems??1),a=e.prefixItems??e.items??e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let o=e=>Array.isArray(a)?a[e]??{}:a??{},s=[];if(!a)return s;for(let e=0;e<i;e++){let{value:i}=Ua(o(e),t,{depth:r+1,propertyName:n?.propertyName});s.push(i)}return s}function Ia(e,t,n){let r={};if(typeof e==`boolean`)return r;let i=n?.depth??1;if(e.properties){let a=Array.isArray(e.required)?e.required:[],o=new Set(a);for(let a of Object.keys(e.properties)){if(t.skipNonRequired&&!o.has(a))continue;let s=e.properties[a],c=Ua(s,t,{propertyName:a,depth:i+1});t.skipReadOnly&&c.readOnly||t.skipWriteOnly&&c.writeOnly?n?.isAllOfChild&&ea(r,a,_a):ea(r,a,c.value)}}if(typeof e.additionalProperties==`object`){let n=e.additionalProperties,a=n[`x-additionalPropertiesName`]||`property`;r[`${a}1`]=Ua(n,t,{depth:i+1}).value,r[`${a}2`]=Ua(n,t,{depth:i+1}).value}if(e.properties&&e.maxProperties!==void 0&&Object.keys(r).length>e.maxProperties){let t={},n=0,i=Array.isArray(e.required)?e.required:[];for(let e of i)Object.hasOwn(r,e)&&r[e]!==void 0&&(ea(t,e,r[e]),n++);for(let i of Object.keys(r))n<e.maxProperties&&!Object.hasOwn(t,i)&&(ea(t,i,r[i]),n++);r=t}return r}function La(e){if(e.const!==void 0)return Ji(e.const);if(Array.isArray(e.examples)&&e.examples.length>0)return Ji(e.examples[0]);if(Array.isArray(e.enum)&&e.enum.length>0)return Ji(e.enum[0]);if(e.default!==void 0)return Ji(e.default)}function Ra(e){if(typeof e==`boolean`)return;let t=La(e);if(t!==void 0)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly}}function za(e,t,n,r){let i=Ua(e,n),a=[];for(let e of t){let{type:t,readOnly:o,writeOnly:s,value:c}=Ua(typeof e==`object`?{type:i.type,...e}:e,n,{...r,depth:r?.depth??1,isAllOfChild:!0});i.type&&t&&t!==i.type&&(n.quiet||console.warn(`allOf: schemas with different types can't be merged`),i.type=t),i.type=i.type??t,i.readOnly=i.readOnly||o,i.writeOnly=i.writeOnly||s,c!=null&&a.push(c)}if(i.type===`object`){let e=ta(i.value||{},...a.filter(e=>typeof e==`object`&&!!e));for(let t of Object.keys(e))e[t]===_a&&delete e[t];return{...i,value:e}}i.type===`array`&&(n.quiet||console.warn(`OpenAPI Sampler: found allOf with "array" type. Result may be incorrect`));let o=a[a.length-1];return{...i,value:o??i.value}}var Ba={array:Fa,boolean:Aa,integer:ja,number:ja,object:Ia,string:Pa};function Va(e,t,n,r){let i=Ra(e);if(i!==void 0)return i;let a=Ua({...e,oneOf:void 0,anyOf:void 0},n,r),o=Ua(t,n,r);if(typeof a.value==`object`&&a.value!==null&&typeof o.value==`object`&&o.value!==null){let e=ta(a.value,o.value);return{...o,value:e}}return o}function Ha(e){return Xi(e)}function Ua(e,t,n){if(n){if(ba.includes(e))return{value:wa(Ca(e))};ba.push(e)}if(n&&(n.depth??1)>t.maxSampleDepth)return Sa(n),{value:wa(Ca(e))};if(!Ha(e))return Sa(n),{value:e};if(typeof e.$ref==`string`){let r=decodeURIComponent(e.$ref),i=e[`$ref-value`];if(ya[r]){let e=Ca(i??{});return Sa(n),{value:wa(e)}}if(ya[r]=!0,i===void 0)throw ya[r]=!1,Sa(n),Error(`Could not resolve $ref: ${e.$ref}, the schema must be a node of magic proxy ("@scalar/json-magic").`);let{$ref:a,"$ref-value":o,...s}=e,c=Ua(Object.keys(s).length>0&&Xi(i)?{...i,...s}:i,t,n);return ya[r]=!1,Sa(n),c}if(e.allOf!==void 0)return Sa(n),Ra(e)??za({...e,allOf:void 0},e.allOf,t,n);if(Array.isArray(e.oneOf)&&e.oneOf.length>0)return e.anyOf&&!t.quiet&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf`),Sa(n),Va(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]),t,n);if(Array.isArray(e.anyOf)&&e.anyOf.length>0)return Sa(n),Va(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]),t,n);if(e.if&&e.then){Sa(n);let{if:r,then:i,...a}=e;return Ua(ta(a,r,i),t,n)}let r=La(e),i;if(r===void 0){r=null,i=Ca(e);let a=i?Ba[i]:void 0;a&&(r=a(e,t,n))}return Sa(n),{value:r,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function Wa(e,t){let n={...va,...t};return xa(),Ua(e,n).value}var Ga=new WeakMap;function Ka(e){let t=Ga.get(e);if(t)return t;let n={bundled:e,dereferenced:Ui(e),resolve(e){return Qi(e)}};return Ga.set(e,n),n}var qa=Object.create,Ja=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Xa=Object.getOwnPropertyNames,Za=Object.getPrototypeOf,Qa=Object.prototype.hasOwnProperty,$a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),eo=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Xa(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Qa.call(e,s)&&s!==n&&Ja(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ya(t,s))||r.enumerable});return e},to=(e,t,n)=>(n=e==null?{}:qa(Za(e)),eo(t||!e||!e.__esModule||!Qa.call(e,`default`)?Ja(n,`default`,{value:e,enumerable:!0}):n,e));function no(e){let t=new Map(e?.map());return{add(e,n){t.set(e,n)},get(e){return t.get(e)},addInline(e){let n=e.source,r=e.id??e.lang;n?t.set(r,{lang:e.lang,label:e.label,generate:typeof n==`string`?()=>n:n}):this.remove(r)},remove(e){return t.delete(e)},map(){return t}}}function ro(e){return e===`\r`?`\\r`:e===`\0`?`\\000`:`\\${e}`}function io(e){return e.replace(/[\\\r\0]|"(?=""|$)/g,ro)}function ao(e){return`"""${io(e)}"""`}function oo(e){let t=io(e).replace(/(?:[^\S\n]|[\x1c-\x1f])(?=\n)/g,e=>e===` `?`\\s`:`${e}\\n\\`);return!e.endsWith(`
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{$ as r,A as i,Bn as a,Bt as o,C as s,D as c,Dt as l,Et as u,F as d,Fn as f,Ft as p,Gn as m,Gt as h,Hn as g,In as _,Jt as v,Kt as y,Ln as b,M as x,Mn as S,Mt as C,N as w,Nt as T,O as E,Ot as D,P as O,Pn as k,Pt as A,Qt as j,Rn as M,Rt as N,S as ee,Sn as P,St as F,T as I,Un as L,Vn as R,Vt as te,Wn as ne,Yt as z,_ as B,_n as V,_t as H,a as U,an as re,at as ie,b as ae,bn as oe,c as se,cn as W,ct as ce,d as le,et as ue,f as de,ft as fe,g as pe,gn as me,gt as he,h as ge,ht as _e,i as ve,in as ye,it as be,j as xe,jn as Se,k as Ce,kn as we,kt as Te,l as Ee,ln as De,lt as Oe,m as ke,mt as Ae,nt as je,on as Me,ot as Ne,p as Pe,pt as Fe,qt as Ie,r as Le,rn as Re,rt as ze,s as Be,sn as Ve,tn as He,u as Ue,un as We,ut as Ge,v as Ke,vn as qe,w as Je,x as Ye,xn as Xe,xt as Ze,y as Qe,yt as $e,zn as et,zt as tt}from"./CompositeRoot-D4sRkYq3.js";import{a as nt,c as rt,d as it,f as at,i as ot,l as st,n as ct,o as lt,r as ut,t as dt,u as ft}from"./app.js";import{A as pt,C as mt,D as ht,E as gt,F as _t,I as vt,L as yt,O as G,P as K,R as bt,S as xt,_ as St,b as Ct,d as wt,f as Tt,i as Et,j as Dt,k as Ot,t as kt,u as At,v as jt,x as Mt,y as Nt}from"./CollapsiblePanel-DvJpFahB.js";import{n as Pt,t as Ft}from"./ccount-CcG1m-Yh.js";import{$t as q,At as It,Bt as Lt,Cn as Rt,Dn as zt,En as Bt,Fn as Vt,Ft as Ht,Gt as Ut,Ht as Wt,In as Gt,It as Kt,Jt as qt,Kn as Jt,Kt as Yt,Ln as Xt,Lt as Zt,M as Qt,Mt as $t,N as en,Nt as tn,On as nn,P as rn,Pt as an,Qt as on,Rn as sn,Rt as cn,Sn as ln,Tn as un,U as dn,Ut as fn,Vt as pn,Wt as mn,Xt as hn,Yt as gn,Zt as _n,_n as vn,a as yn,an as bn,bn as xn,c as Sn,cn as Cn,ct as wn,d as Tn,dn as En,en as Dn,f as On,fn as kn,gn as An,h as jn,hn as Mn,ht as Nn,i as Pn,in as Fn,j as In,jt as Ln,l as Rn,ln as zn,lt as Bn,m as Vn,mn as Hn,nn as Un,o as Wn,on as Gn,ot as Kn,p as qn,pn as Jn,qt as Yn,rn as Xn,s as Zn,sn as Qn,tn as $n,u as er,un as tr,vn as nr,wn as rr,xn as ir,xt as ar,yn as or,zt as sr}from"./popover-CPp8Bc7H.js";var cr={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};cr.node;var lr=g(cr),ur={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};ur.node;var dr=g(ur),fr={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};fr.node;var pr=g(fr),mr={name:`cookie`,size:24,node:[[`path`,{d:`M11 17h.01`,key:`dukryu`}],[`path`,{d:`M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2`,key:`1x76et`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M16 3h.01`,key:`ll0zb8`}],[`path`,{d:`M21 4h.01`,key:`uw58yv`}],[`path`,{d:`M21 8h.01`,key:`17axm7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M9 8h.01`,key:`1jwowd`}]]};mr.node;var hr=g(mr),gr={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};gr.node;var _r=g(gr),vr={name:`funnel-x`,size:24,node:[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]],aliases:[`filter-x`]};vr.node;var yr=g(vr),br={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};br.node;var xr=g(br),Sr={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Sr.node;var Cr=g(Sr),wr={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};wr.node;var Tr=g(wr),Er={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Er.node;var Dr=g(Er),Or={name:`route`,size:24,node:[[`path`,{d:`M9 5h8.5a1 1 0 010 7h-11a1 1 0 000 7H15`,key:`1r1aam`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};Or.node;var kr=g(Or),Ar={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Ar.node;var jr=g(Ar),Mr={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};Mr.node;var Nr=g(Mr),Pr={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Pr.node;var Fr=g(Pr),Ir={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Ir.node;var Lr=g(Ir),Rr={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Rr.node;var zr=g(Rr),Br={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Br.node;var Vr=g(Br);function Hr(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=c(),a=tr()!=null,o=et(()=>new pn({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new mn,floatingId:i,syncOnly:!1,nested:a})).current;return W(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=oe(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var J=t(m(),1);function Ur(e){return Gt&&e.movementX===0&&e.movementY===0}function Wr(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Gr(e,t){return Wr(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Kr(e,t,n){return Wr(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function qr(e,t,n){return Wr(t,n?e===T:e===A,e===C)}function Jr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Wr(t,n?e===A:e===T,e===p)}function Yr(e,t){let{listRef:n,activeIndex:r,onNavigate:a=()=>{},enabled:s=!0,selectedIndex:c=null,allowEscape:u=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:v=!0,disabledIndices:b=void 0,orientation:S=`vertical`,triggerOrientation:C=S,parentOrientation:w,id:T,resetOnPointerLeave:E=!0,externalTree:D,nestedReturnFocusRef:k,grid:A}=t,j=A!=null,M=e.useState(`open`),ee=e.useState(`floatingElement`),P=e.useState(`domReferenceElement`),F=e.context.dataRef,I=ir(ee),L=Rt(P),R=ze(I),ne=tr(),z=En(D),B=J.useRef(g),V=J.useRef(c??-1),U=J.useRef(null),ie=J.useRef(!0),ae=De(e=>{a(V.current===-1?null:V.current,e)}),oe=J.useRef(!!ee),se=J.useRef(M),ce=J.useRef(!1),le=J.useRef(!1),ue=J.useRef(null),de=ze(b),fe=ze(M),pe=ze(c),me=ze(E),he=je(),ge=je(),_e=De(()=>{he.cancel();function e(e){m||(ue.current=vn(e,{sync:ce.current,preventScroll:!0}))}let t=n.current[V.current],r=le.current;t&&e(t),(ce.current?e=>e():e=>he.request(e))(()=>{let i=n.current[V.current]||t;i&&(t||e(i),we&&(r||!ie.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});W(()=>{F.current.orientation=S},[F,S]),W(()=>{M||(U.current=null),M&&g===`auto`||(B.current=g)},[M,g]),W(()=>{s&&(M&&ee?(V.current=c??-1,B.current&&c!=null&&(le.current=!0,ae())):oe.current&&(V.current=-1,ae()))},[s,M,ee,c,ae]),W(()=>{if(s){if(!M)ce.current=!1;else if(ee){if(r==null){if(ce.current=!1,pe.current!=null)return;if(oe.current&&(V.current=-1,_e()),(!se.current||!oe.current)&&B.current&&(U.current!=null||B.current===!0&&U.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ge.request(e):queueMicrotask)(t),e+=1):(V.current=U.current==null||Kr(U.current,C,p)||f?xe(n):i(n),U.current=null,ae())};t()}}else O(n.current,r)||(V.current=r,_e(),le.current=!1)}}},[s,M,ee,r,pe,f,n,C,p,ae,_e,ge]),W(()=>{if(!s||ee||!z||m||!oe.current)return;let e=z.nodesRef.current,t=e.find(e=>e.id===ne)?.context?.elements.floating,n=N(re(P??t??null)),r=e.some(e=>e.context&&o(e.context.elements.floating,n));t&&!r&&ie.current&&t.focus({preventScroll:!0})},[s,ee,P,z,ne,m]),W(()=>{se.current=M,oe.current=!!ee});let ve=r!=null,ye=De(e=>{if(!fe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(V.current!==t||r!==t)&&(V.current=t,ae(e))}),be=De(()=>w??z?.nodesRef.current.find(e=>e.id===ne)?.context?.dataRef?.current.orientation),Se=De(()=>xe(n,de.current)),Ce=De(t=>{if(ie.current=!1,ce.current=!0,t.which===229||!fe.current&&t.currentTarget===R.current)return;if(f&&Jr(t.key,S,p,j)){Gr(t.key,be())||Ie(t),e.setOpen(!1,l(H,t.nativeEvent));let n=k?.current??P;Xe(n)&&n.focus();return}r!=null&&r!==V.current&&!O(n.current,r)&&(V.current=r);let a=V.current,s=xe(n,b),c=i(n,b);if(L||(t.key===`Home`&&(Ie(t),V.current=s,ae(t)),t.key===`End`&&(Ie(t),V.current=c,ae(t))),A!=null){let e=A(t,V.current,n,S,d,p,b,s,c);if(e!=null&&e!==V.current&&(V.current=e,ae(t)),S===`both`)return}if(Gr(t.key,S)){Ie(t);let e=N(t.currentTarget.ownerDocument);if(M&&!m&&o(t.currentTarget,e)&&!n.current.some(t=>t!=null&&o(t,e))){V.current=Kr(t.key,S,p)?s:c,ae(t),r===V.current&&_e();return}let{index:i,wrapped:l}=x(n.current,a,{decrement:!Kr(t.key,S,p),loopFocus:d,allowEscape:u,disabledIndices:b,minIndex:s,maxIndex:c});l&&(ce.current=!1),V.current=i,ae(t)}}),we=J.useMemo(()=>({onFocus(e){ce.current=!0,ye(e)},onClick({currentTarget:e}){m||e.focus({preventScroll:!0})},onMouseMove(e){Ur(e)||(ce.current=!0,le.current=!1,_&&ye(e))},onPointerLeave(e){if(!fe.current||!ie.current||e.pointerType===`touch`)return;ce.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&me.current&&(ue.current?.(),ue.current=null,V.current=-1,ae(e),!m)){let e=R.current,t=N(re(e));e&&o(e,t)&&e.focus({preventScroll:!0})}}}),[ye,fe,R,_,n,ae,me,m]),Te=J.useMemo(()=>m&&M&&ve&&{"aria-activedescendant":`${T}-${r}`},[m,M,ve,T,r]),Ee=J.useMemo(()=>({...L?{}:Te,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&M&&!m){let n=te(t.nativeEvent);if(n&&!o(R.current,n))return;Ie(t);let r=l(Oe,t.nativeEvent);e.setOpen(!1,r);let i=k?.current??P;!r.isCanceled&&Xe(i)&&i.focus()}else Ce(t)},onPointerMove(e){Ur(e)||(ie.current=!0)}}),[Te,Ce,R,L,e,M,m,P,k]),ke=J.useMemo(()=>{function t(t){e.setOpen(!0,l(H,t.nativeEvent,t.currentTarget))}function n(e){g===`auto`&&h(e.nativeEvent)&&(B.current=!m)}function r(e){B.current=g,g===`auto`&&y(e.nativeEvent)&&(B.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ie.current=!1;let i=n.key.startsWith(`Arrow`),a=qr(n.key,be(),p),o=Gr(n.key,r?S:C),s=(f?a:o)||n.key===`Enter`||n.key.trim()===``;if(m&&r&&(!f||rr(n.currentTarget)))return Ce(n);if(r||v||!i){if(s){let e=Gr(n.key,be());U.current=f&&e?null:n.key}f?a&&(Ie(n),r?(V.current=Se(),ae(n),m&&R.current?.focus()):t(n)):o&&(pe.current!=null&&(V.current=pe.current),Ie(n),!r&&v?t(n):Ce(n),r&&ae(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!m&&(V.current=-1,ae(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[Ce,g,Se,f,ae,e,v,S,C,be,p,pe,m,R]),Ae=J.useMemo(()=>({...Te,...ke}),[Te,ke]);return J.useMemo(()=>s?{reference:Ae,floating:Ee,item:we,trigger:ke}:{},[s,Ae,Ee,ke,we])}function Xr(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:s,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:f=null}=t,p=De(c),m=e.useState(`open`),h=He(),g=J.useRef(``),_=J.useRef(f??i??-1),v=J.useRef(null),y=De(e=>{function t(e){return r?.current[e]}function o(e){let n=t(e);return n&&!w(n)||n?.matches(`:disabled`)?!1:s==null||!d(k,e,s)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&o(n))return n}return-1}let l=n.current;if(g.current.length>0&&e.key===` `&&(Ie(e),p?.(!0)),g.current.length>0&&g.current[0]!==` `&&c(l,g.current)===-1&&e.key!==` `&&p?.(!1),l==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;m&&e.key!==` `&&(Ie(e),p?.(!0));let y=g.current===``;y&&(_.current=f??i??-1),l.every((e,t)=>e&&o(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,h.start(u,()=>{g.current=``,_.current=v.current,p?.(!1)});let b=((y?f??i??-1:_.current)??0)+1,x=c(l,g.current,b);x===-1?e.key!==` `&&(g.current=``,p?.(!1)):(a?.(x,e),v.current=x)}),b=De(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);o(r,n)||o(i,n)||(h.clear(),g.current=``,_.current=v.current,p?.(!1))});W(()=>{(m||f===null)&&(h.clear(),v.current=null,g.current!==``&&(g.current=``,p?.(!1)))},[m,f,h,p]);let x=J.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return J.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}function Zr(e){let[t,n]=J.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Qr(e){let t=We(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xe(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(ue(n)!==a||ue(r)!==o)&&(n=a,r=o),{width:n,height:r}}var $r=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},ei=e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`),ti=e=>{try{return decodeURIComponent(e)}catch{return e}};function ni(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ri=e=>{if(e&&typeof e==`object`&&e.$id&&typeof e.$id==`string`)return e.$id};function ii(e,t){return t.reduce((e,t)=>e.value===void 0||typeof e.value!=`object`||e.value===null||!Object.hasOwn(e.value,t)?{context:``,value:void 0}:{context:ri(e.value)??e.context,value:e.value?.[t]},{context:``,value:e})}var ai=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>Ee});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(j(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?x(e,t):b(e,t),y=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},b=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return k(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}return!1})},x=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}return!1},S=(e,t,n,r)=>{let i=j(e);return k(O(D(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},C=(e,t)=>S(e,0,1),w=(e,t)=>S(e,0,1/0),T=(e,t)=>{let n=e.map(j);return k(O(D(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},E=(e,t)=>{let n=e.map(j);return k(O(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},D=(e,t=!1)=>{let n=j(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},O=(e,t)=>j(e),k=(()=>{let e=0;return t=>{let n=j(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}return a.set(i,!1),!1}}}})(),A=e=>{let t;return n=>(t||=j(e()),t(n))},j=g(e=>{if(l(e))return u(e)?A(e):e;if(m(e)||p(e))return v(e);if(c(e))return T(e);if(f(e))return E(Object.values(e));throw Error(`Invalid rule`)}),M=`abcdefghijklmnopqrstuvwxyz`,N=e=>{let t=``;for(;e>0;)t=M[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ee=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+M.indexOf(e[n])+1;return t},P=(e,t)=>{if(t<e)return P(t,e);let n=[];for(;e<=t;)n.push(e++);return n},F=(e,t,n)=>P(e,t).map(e=>String(e).padStart(n,`0`)),I=(e,t)=>P(ee(e),ee(t)).map(N),L=e=>e,R=e=>te(t=>_(t,e,{memoization:!1}).join(``)),te=e=>{let t={};return n=>t[n]??(t[n]=e(n))},ne=v(/^\*\*\/\*$/,`.*`),z=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),B=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),V=v(/\\./,L),H=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),U=v(/./,L),re=E([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${xe(t)}$).*?`),v(/^(!!)+/,``)]),ie=E([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),ae=E([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),oe=v(`?`,`[^/]`),se=v(`[`,L),W=v(`]`,L),ce=v(/[!^]/,`^/`),le=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,L),ue=E([V,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),le,v(/[^\]]/,L)]),de=T([se,C(ce),w(ue),W]),fe=v(`{`,`(?:`),pe=v(`}`,`)`),me=T([fe,E([v(/(\d+)\.\.(\d+)/,(e,t,n)=>F(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>I(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>I(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),pe]),he=v(`{`,`(?:`),ge=v(`}`,`)`),_e=v(`,`,`|`),ve=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),ye=v(/[^}]/,L),be=T([he,w(E([ie,ae,oe,de,me,A(()=>be),V,ve,_e,ye])),ge]),xe=R(w(E([ne,z,B,re,ie,ae,oe,de,me,be,V,H,U]))),Se=v(/\\./,L),Ce=v(/./,L),we=R(w(E([Se,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Ce]))),Te=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Te.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Te.compile=e=>RegExp(`^${xe(we(e))}$`,`s`);var Ee=Te;return o(s)})();return e.default||e},oi,si=(e,t)=>(oi||(oi=ai(),ai=null),oi(e,t)),ci=/^[A-Za-z]:\//;function li(e=``){return e&&e.replace(/\\/g,`/`).replace(ci,e=>e.toUpperCase())}var ui=/^[/\\]{2}/,di=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,fi=/^[A-Za-z]:$/,pi=/^\/([A-Za-z]:)?$/,mi=/.(\.[^./]+|\.)$/,hi=/^[/\\]|^[a-zA-Z]:[/\\]/,gi=function(e){if(e.length===0)return`.`;e=li(e);let t=e.match(ui),n=xi(e),r=e[e.length-1]===`/`;return e=bi(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),fi.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!xi(e)?`/${e}`:e)},_i=function(...e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n}return gi(t)};function vi(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var yi=function(...e){e=e.map(e=>li(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:vi();i&&i.length!==0&&(t=`${i}/${t}`,n=xi(i))}return t=bi(t,!n),n&&!xi(t)?`/${t}`:t.length>0?t:`.`};function bi(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var xi=function(e){return di.test(e)},Si=function(e){return li(e)},Ci=function(e){if(e===`..`)return``;let t=mi.exec(li(e));return t&&t[1]||``},wi=function(e,t){let n=yi(e).replace(pi,`$1`).split(`/`),r=yi(t).replace(pi,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},Ti=function(e){let t=li(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&fi.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(xi(e)?`/`:`.`)},Ei=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return li(e.root?yi(...n):n.join(`/`))},Di=function(e,t){let n=li(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},Oi={__proto__:null,basename:Di,dirname:Ti,extname:Ci,format:Ei,isAbsolute:xi,join:_i,matchesGlob:(e,t)=>si(t,gi(e)),normalize:gi,normalizeString:bi,parse:function(e){let t=hi.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Di(e),r=Ci(n);return{root:t,dir:Ti(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:wi,resolve:yi,sep:`/`,toNamespacedPath:Si},ki=globalThis.process?.platform===`win32`?`;`:`:`,Ai={posix:void 0,win32:void 0},ji=(e=ki)=>new Proxy(Oi,{get(t,n){return n===`delimiter`?e:n===`posix`?Mi:n===`win32`?Ni:Ai[n]||Oi[n]}}),Mi=ji(`:`),Ni=ji(`;`),Pi=e=>/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^[a-z]:[\\/]/i.test(e),Fi=(e,t)=>{if(Pi(t))return t;if(Pi(e))return new URL(t,e).href;if(!t)return e;let n=/[\\/]$/.test(e)?e:Mi.dirname(e),r=Mi.resolve(n,t);return/[\\/]$/.test(t)&&!r.endsWith(`/`)?`${r}/`:r},Ii=(e,t,n)=>Fi(e,n??`./__bundle_${encodeURIComponent(t)}/document`),Li=(e,t,n=!1,r=()=>!0,i=()=>!0)=>{let a=new Map,o=new Map,s=new WeakMap,c=new WeakMap,l=new Map,u,d=new Map,f=(e,n,r=[],i=n)=>{r.length===0&&(u=n);let s=t?.(e,n),c=s===void 0?n:Fi(n,s.baseUri);s!==void 0&&a.set(e,{...s,baseUri:c});let f={value:e,path:r,schema:!1,embedded:r.length>0,document:e,documentPath:r};o.set(n,f),o.set(c,f),r.length>1&&l.set(r[1],f);let m=s?Fi(i,s.baseUri):i;d.set(e,{base:c,path:r,retrievalBase:m}),p(e,c,r,[],m)},p=(t,a,l,u=[],d=a)=>{let f=new WeakSet,p=(a,u,m,h=``,g=d)=>{if(typeof a!=`object`||!a||f.has(a)||!r(a))return;f.add(a);let _=i(a)?ri(a):void 0,v=_??h,y=_===void 0?u:Fi(u,_),b=n&&_===s.get(a)&&c.has(a)?c.get(a):_===void 0?g:Fi(g,_);s.set(a,y),c.set(a,b),n&&_!==void 0&&$r(a)&&(a.$id=y);let x=i(a)&&$r(a)&&typeof a.$anchor==`string`?a.$anchor:void 0;if(_!==void 0||x!==void 0){let e={value:a,path:m,schema:!0,identifier:v,embedded:l.length>0,document:t,documentPath:l};_!==void 0&&o.set(y,e),x!==void 0&&o.set(`${y}#${x}`,e)}for(let[t,n]of Object.entries(a))t!==e&&p(n,y,[...m,t],v,b)},m=t,h=a,g=``,_=d;for(let e of u){if(typeof m!=`object`||!m)return;h=s.get(m)??h,_=c.get(m)??_,g=(i(m)?ri(m):void 0)??g,m=m[e]}p(m,h,[...l,...u],g,_)};return{identity:e=>a.get(e),register:f,refresh:(e,t)=>{let n=d.get(e);n&&p(e,n.base,n.path,t,n.retrievalBase)},isSchemaResource:e=>o.get(e)?.schema===!0,origin:e=>s.get(e),retrievalOrigin:e=>c.get(e),resolve:(t,n,r=!1)=>{let[i,a=``]=t.split(`#`,2),c=ti(a),d=i?Fi(n,i):n,f=c.startsWith(`/`)?c.slice(1).split(`/`).map(ei):[],p=o.get(d),m=$r(p?.value)?p.value[e]:void 0,h=!(p?.schema&&$r(m)&&Object.hasOwn(m,f[1]??``))&&(!i||p?.path.length===0)&&f[0]===e?l.get(f[1]):void 0,g=p?.value!==null&&typeof p?.value==`object`?s.get(p.value):void 0,_=h??(c&&!c.startsWith(`/`)?o.get(`${d}#${c}`)??(g?o.get(`${g}#${c}`):void 0):p);if(!_)return;let v=h?f.slice(2):f,y=u===void 0?void 0:o.get(u);r&&!i&&c.startsWith(`/`)&&!h&&y&&ii(_.value,v).value===void 0&&ii(y.value,f).value!==void 0&&(_=y);let b=[..._.path,...v],x=ii(_.value,v).value,S=x===void 0,C=_.schema&&!i,w=!_.embedded&&_.schema&&!!i&&i===_.identifier,T=!_.embedded&&!_.schema&&!i;return{path:b.map(ni).join(`/`),segments:b,resourceRelative:C&&!h,value:x,document:_.document,documentPath:_.documentPath,preserveReference:S||C||w||T}}}};function Ri(e,t){return t.reduce((e,t)=>{if(!Object.hasOwn(e,t)||e[t]===void 0){let n=isNaN(Number(t))?{}:[];t===`__proto__`?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}return e[t]},e)}var zi=Symbol(`isMagicProxy`),Bi=Symbol(`magicProxyTarget`),Vi=`$ref-value`,Hi=`$ref`,Ui=(e,t,n=(()=>{let n=Li(`x-ext`),r=t?.documentUri??`/`;if(n.register(e,r),$r(e)&&$r(e[`x-ext`]))for(let[t,i]of Object.entries(e[`x-ext`])){let a=e[`x-ext-urls`],o=$r(a)&&typeof a[t]==`string`?a[t]:void 0;n.register(i,Ii(r,t,o),[`x-ext`,t])}return{root:e,proxyCache:new WeakMap,references:n,origin:r,revision:{value:0}}})())=>{if(!$r(e)&&!Array.isArray(e))return e;if(n.proxyCache.has(e))return n.proxyCache.get(e);let r,i=new Proxy(e,{get(e,i,a){if(i===zi)return!0;if(i===Bi)return e;if(typeof i==`string`&&i.startsWith(`__scalar_`)&&!t?.showInternal)return;let o=Reflect.get(e,Hi,a);if(i===Vi&&typeof o==`string`){let i=n.references.origin(e)??n.origin;if(r?.ref!==o||r.origin!==i||r.revision!==n.revision.value){let e=n.references.resolve(o,i,!0);if(!e)return;r={ref:o,origin:i,revision:n.revision.value,segments:e.segments}}let a=ii(n.root,r.segments).value;return Wi(a)?a:Ui(a,t,{...n,origin:$r(a)?n.references.origin(a)??n.origin:n.origin})}let s=Reflect.get(e,i,a);return Wi(s)?s:Ui(s,t,{...n,origin:n.references.origin(e)??n.origin})},set(e,r,i,a){n.revision.value++;let o=Reflect.get(e,Hi,a);if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return!0;if(r===Vi&&typeof o==`string`){let t=n.references.resolve(o,n.references.origin(e)??n.origin,!0)?.segments;if(t===void 0)return;if(t.length===0)return!1;let r=()=>ii(n.root,t.slice(0,-1)).value;r()===void 0&&(Ri(n.root,t.slice(0,-1)),console.warn(`Trying to set $ref-value for invalid reference: ${o}\n\nPlease fix your input file to fix this issue.`));let a=r(),s=t.at(-1);return s===`__proto__`?Object.defineProperty(a,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[s]=i,!0}return Reflect.set(e,r,i,a)},deleteProperty(e,t){return n.revision.value++,Reflect.deleteProperty(e,t)},has(e,n){return typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal?!1:n===Vi&&Hi in e||Reflect.has(e,n)},ownKeys(e){let n=Reflect.ownKeys(e).filter(e=>typeof e!=`string`||!(e.startsWith(`__scalar_`)&&!t?.showInternal));return Hi in e&&!n.includes(Vi)&&n.push(Vi),n},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal)return;let r=Reflect.get(e,Hi);return n===Vi&&typeof r==`string`?{configurable:!0,enumerable:!0,value:void 0,writable:!1}:Reflect.getOwnPropertyDescriptor(e,n)}});return n.proxyCache.set(e,i),i},Wi=e=>typeof e==`object`&&!!e&&e[zi]===!0;function Gi(e){return typeof e!=`object`||!e?e:e[zi]?e[Bi]:e}var Ki=Symbol(`isMagicProxy`),qi=Symbol(`magicProxyTarget`);function Ji(e){return typeof e!=`object`||!e?e:e[Ki]?e[qi]:e}var Yi=t(ne(),1),Y=t(L(),1);function Xi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}var Zi=new WeakMap;function Qi(e){if(!Xi(e)||typeof e.$ref!=`string`)return e;let t=Zi.get(e);if(t)return t;let{$ref:n,"$ref-value":r,...i}=e;Zi.set(e,i);let a=Qi(r),o=i;return Xi(a)&&(o=Object.keys(i).length===0?a:{...a,...i}),Zi.set(e,o),o}function $i(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>$i(e,t[n]));if(Array.isArray(e)||Array.isArray(t))return!1;if(Xi(e)&&Xi(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>n in t&&$i(e[n],t[n]))}return!1}function ea(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ta(e,...t){let n=na(void 0,e);for(let e of t)n=na(n,e);return n}function na(e,t){if(!Xi(t))return t;let n={};if(Xi(e))for(let r of Object.keys(e))Object.hasOwn(t,r)||ea(n,r,na(void 0,e[r]));for(let r of Object.keys(t))ea(n,r,na(Xi(e)&&Object.hasOwn(e,r)?e[r]:void 0,t[r]));return n}function ra(e){return e=Qi(e),typeof e==`boolean`||!e.allOf?e:ia([e],new Set,e.title)}function ia(e,t,n){let r=[],i=e=>{let n=Qi(e);return typeof n==`boolean`?n:t.has(n)?!0:(t.add(n),n.allOf&&(t.add(n.allOf),!n.allOf.every(i))?!1:(r.push(n),!0))};if(!e.every(i))return!1;let a=oa(r);if(a===!1)return!1;n??=la(r);let o=[];for(let e of r)for(let n of[`anyOf`,`oneOf`]){let r=e[n];r&&!t.has(r)&&!r.some(e=>aa(e,t))&&o.push([n,r])}if(o.length===0)return n!==void 0&&(a.title=n),a;let s=o[0][0],c=[a],l=[[]];for(let[e,n]of o)e===s?(t.add(n),l=l.flatMap(e=>n.map(t=>[...e,t]))):c.push({[e]:n});let u=[];for(let e of l){let n=ia([...c,...e],new Set(t));n!==!1&&u.push(n)}return u.length===0?!1:n===void 0?{[s]:u}:{title:n,[s]:u}}function aa(e,t){let n=Qi(e);return typeof n==`object`&&(t.has(n)||t.has(n.allOf))}function oa(e){let t={},n=new Set,r=new Map,i=new Map;for(let a of e){let e=a;for(let a in e){let o=e[a];if(o!==void 0)switch(a){case`title`:case`allOf`:case`anyOf`:case`oneOf`:break;case`minItems`:case`minimum`:case`exclusiveMinimum`:case`minProperties`:case`minContains`:case`minLength`:t[a]=t[a]===void 0?o:Math.max(t[a],o);break;case`maxContains`:case`maxItems`:case`maxLength`:case`maxProperties`:case`maximum`:case`exclusiveMaximum`:t[a]=t[a]===void 0?o:Math.min(t[a],o);break;case`enum`:t[a]=t[a]===void 0?o:da(t[a],o);break;case`format`:case`const`:if(t[a]===void 0)t[a]=o;else if(!$i(t[a],o))return!1;break;case`type`:{if(t.type===void 0){t.type=o;break}let e=Array.isArray(o)?o:[o],n=(Array.isArray(t.type)?t.type:[t.type]).filter(t=>e.includes(t));if(n.length===0)return!1;t.type=n.length===1?n[0]:n;break}case`required`:for(let e of o)n.add(e);break;case`properties`:case`patternProperties`:{let e=i.get(a);e||i.set(a,e=new Map);for(let t in o)sa(e,t,o[t]);break}case`additionalProperties`:case`additionalItems`:case`contains`:case`items`:case`not`:sa(r,a,o);break;default:t[a]=o}}}n.size>0&&(t.required=Array.from(n));for(let[e,n]of i){let r={};for(let[e,t]of n)ea(r,e,ca(t));t[e]=r}for(let[e,n]of r)t[e]=e===`not`?n.length===1?n[0]:{anyOf:n}:ca(n);return t}function sa(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function ca(e){let t=[];for(let n of e){if(n===!1)return!1;n!==!0&&!t.some(e=>Qi(e)===Qi(n))&&t.push(n)}return t.length===0?!0:t.length===1?t[0]:{allOf:t}}function la(e){let t=new Set;for(let n of e){let r=n.title;r!==void 0&&(e.some(e=>e!==n&&e.title!==void 0&&e.allOf?.some(e=>ua(e,r)))||t.add(r))}if(t.size>0)return Array.from(t).join(` & `)}function ua(e,t,n=new Set){return e=Qi(e),typeof e==`boolean`||n.has(e)?!1:(n.add(e),e.title===t?!0:e.allOf?.some(e=>ua(e,t,n))??!1)}function da(e,t){let n=new Set;for(let r of e)t.includes(r)&&n.add(r);for(let r of t)e.includes(r)&&n.add(r);return Array.from(n)}function fa(e){if(e===null)return`null`;switch(typeof e){case`string`:return`string`;case`boolean`:return`boolean`;case`number`:return Number.isInteger(e)?`integer`:`number`;case`object`:return Array.isArray(e)?`array`:`object`}}function pa(e,t){let n=fa(e);return n===void 0?!1:n===t||t===`number`&&n===`integer`}function ma(e,t){return ha(e,t,new Set)}function ha(e,t,n){if(t===void 0)return!1;let r=Qi(e);if(typeof r==`boolean`)return r;if(n.has(r))return!0;if(n.add(r),r.const!==void 0)return $i(t,r.const);if(Array.isArray(r.enum))return r.enum.some(e=>$i(t,e));if(Array.isArray(r.allOf)&&!r.allOf.every(e=>ha(e,t,n))||Array.isArray(r.anyOf)&&!r.anyOf.some(e=>ha(e,t,n))||Array.isArray(r.oneOf)&&!r.oneOf.some(e=>ha(e,t,n))||r.not!==void 0&&ha(r.not,t,n)||r.type!==void 0&&[r.type].flat().every(e=>!pa(t,e)))return!1;if(Xi(t)){if(Array.isArray(r.required)&&r.required.some(e=>t[e]===void 0))return!1;let e=r.properties??{};for(let n in e){let r=e[n];if(t[n]!==void 0&&r!==void 0&&!ha(r,t[n],new Set))return!1}}if(Array.isArray(t)){let e=r.items;if(e!==void 0&&typeof e!=`boolean`&&t.some(t=>!ha(e,t,new Set)))return!1}return!0}function ga(e,{alias:t=!1}={}){function n(e,t){let n=new Set,i=[],a=!1;for(let t of e){let e=r(t,!0);e===`null`?a=!0:e!==`unknown`&&!n.has(e)&&(i.push(e),n.add(e))}return a&&i.push(`null`),i.join(t)}function r(e,t){let i=typeof e==`object`&&typeof e.$ref==`string`?e.$ref:void 0,a=Qi(e);if(a===!0)return`any`;if(a===!1)return`never`;if(a.enum?.length===1)switch(typeof a.enum[0]){case`bigint`:case`boolean`:case`number`:case`string`:return JSON.stringify(a.enum[0])}if(t){if(a.title)return a.title;if(typeof i==`string`){let e=i.split(`/`);if(e.length>0)return e[e.length-1]}}if(Array.isArray(a.type))return n(a.type.map(e=>({...a,type:e})),` | `);if(a.type===`array`)return`array<${a.items?r(a.items,!0):`unknown`}>`;if(a.oneOf&&a.anyOf)return`(${n(a.oneOf,` | `)}) & (${n(a.anyOf,` | `)})`;let o=a.oneOf??a.anyOf;return o?n(o,` | `):a.allOf?n(a.allOf,` & `):a.not?`not (${r(a.not,t)})`:a.type===`string`&&a.format===`binary`?`file`:typeof a.type==`string`?a.type:`unknown`}return r(e,t)}var _a=Symbol(`skip`),va={skipReadOnly:!1,maxSampleDepth:15},ya={},ba=[];function xa(){ya={},ba.length=0}function Sa(e){e&&ba.pop()}function Ca(e){if(typeof e!=`boolean`){if(e.type!==void 0){let t=e.type;return Array.isArray(t)?t[0]:t}for(let[t,n]of Object.entries({multipleOf:`number`,maximum:`number`,exclusiveMaximum:`number`,minimum:`number`,exclusiveMinimum:`number`,maxLength:`string`,minLength:`string`,pattern:`string`,items:`array`,maxItems:`array`,minItems:`array`,uniqueItems:`array`,additionalItems:`array`,maxProperties:`object`,minProperties:`object`,required:`object`,additionalProperties:`object`,properties:`object`,patternProperties:`object`,dependencies:`object`}))if(e[t]!==void 0)return n}}function wa(e){if(e===`object`)return{};if(e===`array`)return[]}function Ta(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function Ea(e,t,n,r){return()=>{e|=0,t|=0,n|=0,r|=0;let i=e-(t<<27|t>>>5)|0;return e=t^(n<<17|n>>>15),t=n+r|0,n=r+i|0,r=e+i|0,(r>>>0)/4294967296}}function Da(e){let t=Ta(e),n=Ea(t,t,t,t);return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=n()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function Oa(e,t,n,r){let i=e=>e<10?`0${e}`:`${e}`,a=n?``:`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}`;return t||(a+=`T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}`,r&&(a+=`.${(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)}`),a+=`Z`),a}function ka(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Aa(){return!0}function ja(e){let t=0;return typeof e==`boolean`?t:(e.type===`number`&&(e.format===`float`||e.format===`double`)&&(t=.1),typeof e.minimum==`number`?e.minimum:(typeof e.exclusiveMinimum==`number`?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):typeof e.exclusiveMaximum==`number`?t=Math.floor(e.exclusiveMaximum)-1:typeof e.maximum==`number`&&(t=e.maximum),t))}function Ma(e,t,n,r){if(n&&r)return Na(n);let i=ka(`string`,e);return t!=null&&i.length>t&&(i=i.substring(0,t)),i}function Na(e){let t=e.replace(/^\^?/,``).replace(/\$?$/,``),n=t.match(/^(.)\{(\d+)\}$/);return n?n[1].repeat(parseInt(n[2],10)):t.length>0?t:`x`}function Pa(e,t,n){if(typeof e==`boolean`)return``;let r=new Date(`2019-08-24T14:15:22.123Z`);switch(e.format){case`email`:return`user@example.com`;case`idn-email`:return`пошта@укр.нет`;case`password`:{let t=`pa$$word`,n=e.minLength??0;return n>t.length&&(t+=`_`,t+=ka(`qwerty!@#$%^123456`,n-t.length).substring(0,n-t.length)),t}case`date-time`:return Oa(r,!1,!1,!1);case`date`:return Oa(r,!0,!1,!1);case`time`:return Oa(r,!1,!0,!1).slice(1);case`ipv4`:return`192.168.0.1`;case`ipv6`:return`2001:0db8:85a3:0000:0000:8a2e:0370:7334`;case`hostname`:return`example.com`;case`idn-hostname`:return`приклад.укр`;case`uri`:return`http://example.com`;case`uri-reference`:return`../dictionary`;case`uri-template`:return`http://example.com/{endpoint}`;case`iri`:return`http://example.com/entity/1`;case`iri-reference`:return`/entity/1`;case`uuid`:return Da(n?.propertyName||`id`);case`json-pointer`:return`/json/pointer`;case`relative-json-pointer`:return`1/relative/json/pointer`;case`regex`:return`/regex/`;default:return Ma(e.minLength??0,e.maxLength,e.pattern,t.enablePatterns)}}function Fa(e,t,n){if(typeof e==`boolean`)return[];let r=n?.depth??1,i=Math.min(e.maxItems??1/0,e.minItems??1),a=e.prefixItems??e.items??e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let o=e=>Array.isArray(a)?a[e]??{}:a??{},s=[];if(!a)return s;for(let e=0;e<i;e++){let{value:i}=Ua(o(e),t,{depth:r+1,propertyName:n?.propertyName});s.push(i)}return s}function Ia(e,t,n){let r={};if(typeof e==`boolean`)return r;let i=n?.depth??1;if(e.properties){let a=Array.isArray(e.required)?e.required:[],o=new Set(a);for(let a of Object.keys(e.properties)){if(t.skipNonRequired&&!o.has(a))continue;let s=e.properties[a],c=Ua(s,t,{propertyName:a,depth:i+1});t.skipReadOnly&&c.readOnly||t.skipWriteOnly&&c.writeOnly?n?.isAllOfChild&&ea(r,a,_a):ea(r,a,c.value)}}if(typeof e.additionalProperties==`object`){let n=e.additionalProperties,a=n[`x-additionalPropertiesName`]||`property`;r[`${a}1`]=Ua(n,t,{depth:i+1}).value,r[`${a}2`]=Ua(n,t,{depth:i+1}).value}if(e.properties&&e.maxProperties!==void 0&&Object.keys(r).length>e.maxProperties){let t={},n=0,i=Array.isArray(e.required)?e.required:[];for(let e of i)Object.hasOwn(r,e)&&r[e]!==void 0&&(ea(t,e,r[e]),n++);for(let i of Object.keys(r))n<e.maxProperties&&!Object.hasOwn(t,i)&&(ea(t,i,r[i]),n++);r=t}return r}function La(e){if(e.const!==void 0)return Ji(e.const);if(Array.isArray(e.examples)&&e.examples.length>0)return Ji(e.examples[0]);if(Array.isArray(e.enum)&&e.enum.length>0)return Ji(e.enum[0]);if(e.default!==void 0)return Ji(e.default)}function Ra(e){if(typeof e==`boolean`)return;let t=La(e);if(t!==void 0)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly}}function za(e,t,n,r){let i=Ua(e,n),a=[];for(let e of t){let{type:t,readOnly:o,writeOnly:s,value:c}=Ua(typeof e==`object`?{type:i.type,...e}:e,n,{...r,depth:r?.depth??1,isAllOfChild:!0});i.type&&t&&t!==i.type&&(n.quiet||console.warn(`allOf: schemas with different types can't be merged`),i.type=t),i.type=i.type??t,i.readOnly=i.readOnly||o,i.writeOnly=i.writeOnly||s,c!=null&&a.push(c)}if(i.type===`object`){let e=ta(i.value||{},...a.filter(e=>typeof e==`object`&&!!e));for(let t of Object.keys(e))e[t]===_a&&delete e[t];return{...i,value:e}}i.type===`array`&&(n.quiet||console.warn(`OpenAPI Sampler: found allOf with "array" type. Result may be incorrect`));let o=a[a.length-1];return{...i,value:o??i.value}}var Ba={array:Fa,boolean:Aa,integer:ja,number:ja,object:Ia,string:Pa};function Va(e,t,n,r){let i=Ra(e);if(i!==void 0)return i;let a=Ua({...e,oneOf:void 0,anyOf:void 0},n,r),o=Ua(t,n,r);if(typeof a.value==`object`&&a.value!==null&&typeof o.value==`object`&&o.value!==null){let e=ta(a.value,o.value);return{...o,value:e}}return o}function Ha(e){return Xi(e)}function Ua(e,t,n){if(n){if(ba.includes(e))return{value:wa(Ca(e))};ba.push(e)}if(n&&(n.depth??1)>t.maxSampleDepth)return Sa(n),{value:wa(Ca(e))};if(!Ha(e))return Sa(n),{value:e};if(typeof e.$ref==`string`){let r=decodeURIComponent(e.$ref),i=e[`$ref-value`];if(ya[r]){let e=Ca(i??{});return Sa(n),{value:wa(e)}}if(ya[r]=!0,i===void 0)throw ya[r]=!1,Sa(n),Error(`Could not resolve $ref: ${e.$ref}, the schema must be a node of magic proxy ("@scalar/json-magic").`);let{$ref:a,"$ref-value":o,...s}=e,c=Ua(Object.keys(s).length>0&&Xi(i)?{...i,...s}:i,t,n);return ya[r]=!1,Sa(n),c}if(e.allOf!==void 0)return Sa(n),Ra(e)??za({...e,allOf:void 0},e.allOf,t,n);if(Array.isArray(e.oneOf)&&e.oneOf.length>0)return e.anyOf&&!t.quiet&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf`),Sa(n),Va(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]),t,n);if(Array.isArray(e.anyOf)&&e.anyOf.length>0)return Sa(n),Va(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]),t,n);if(e.if&&e.then){Sa(n);let{if:r,then:i,...a}=e;return Ua(ta(a,r,i),t,n)}let r=La(e),i;if(r===void 0){r=null,i=Ca(e);let a=i?Ba[i]:void 0;a&&(r=a(e,t,n))}return Sa(n),{value:r,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function Wa(e,t){let n={...va,...t};return xa(),Ua(e,n).value}var Ga=new WeakMap;function Ka(e){let t=Ga.get(e);if(t)return t;let n={bundled:e,dereferenced:Ui(e),resolve(e){return Qi(e)}};return Ga.set(e,n),n}var qa=Object.create,Ja=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Xa=Object.getOwnPropertyNames,Za=Object.getPrototypeOf,Qa=Object.prototype.hasOwnProperty,$a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),eo=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Xa(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Qa.call(e,s)&&s!==n&&Ja(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ya(t,s))||r.enumerable});return e},to=(e,t,n)=>(n=e==null?{}:qa(Za(e)),eo(t||!e||!e.__esModule||!Qa.call(e,`default`)?Ja(n,`default`,{value:e,enumerable:!0}):n,e));function no(e){let t=new Map(e?.map());return{add(e,n){t.set(e,n)},get(e){return t.get(e)},addInline(e){let n=e.source,r=e.id??e.lang;n?t.set(r,{lang:e.lang,label:e.label,generate:typeof n==`string`?()=>n:n}):this.remove(r)},remove(e){return t.delete(e)},map(){return t}}}function ro(e){return e===`\r`?`\\r`:e===`\0`?`\\000`:`\\${e}`}function io(e){return e.replace(/[\\\r\0]|"(?=""|$)/g,ro)}function ao(e){return`"""${io(e)}"""`}function oo(e){let t=io(e).replace(/(?:[^\S\n]|[\x1c-\x1f])(?=\n)/g,e=>e===` `?`\\s`:`${e}\\n\\`);return!e.endsWith(`
|
|
2
2
|
`)&&/^[\s\x1c-\x1f]|[\s\x1c-\x1f]$/.test(e)?`"""\n${t}\\\n"""`:`"""\n${t}"""`}function so(e){return`\`${e.replace(/[\\`\r]|\$\{/g,ro)}\``}var co={"`":'"`"',"\r":`"\\r"`,"\0":`"\\x00"`,"":`"\\uFEFF"`};function lo(e){return`\`${e.replace(/[`\r\0\uFEFF]/g,e=>`\` + ${co[e]} + \``)}\``}var uo={"\\":`\\\\`,'"':`\\"`,"\r":`\\r`," ":`\\t`};function fo(e){return`"${e.replace(/[\\"\r\t\u202a-\u202e\u2066-\u2069]/g,e=>uo[e]??`\\u{${e.charCodeAt(0).toString(16)}}`)}"`}function po(e){if(/[\r\u202a-\u202e\u2066-\u2069]/.test(e))return fo(e);let t=`#`;for(;e.includes(`"${t}`);)t+=`#`;return`r${t}"${e}"${t}`}function mo(e){let t=`"""`;for(;e.includes(t);)t+=`"`;return`${t}\n${e}\n${t}`}var ho={"\\":`\\\\`,'"':`\\"`,"#":`\\#`,"\n":`\\n`,"\r":`\\r`," ":`\\t`,"\0":`\\u{0}`};function go(e){return/[\r\0]/.test(e)?`"${e.replace(/[\\"#\n\r\t\0]/g,e=>ho[e])}"`:`'${e.replace(/[\\']/g,`\\$&`)}'`}function _o(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}var vo=$a(((e,t)=>{t.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`}}}));vo();var yo=$a(((e,t)=>{var n=vo().isArray;t.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&typeof t[e]==`boolean`||(t[e]=!1)},ensureSpacesExists:function(e){(!(`spaces`in e)||typeof e.spaces!=`number`&&typeof e.spaces!=`string`)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!(`alwaysArray`in e)||typeof e.alwaysArray!=`boolean`&&!n(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+`Key`in t&&typeof t[e+`Key`]==`string`||(t[e+`Key`]=t.compact?`_`+e:e)},checkFnExists:function(e,t){return e+`Fn`in t}}}));yo();var bo=$a(((e,t)=>{var n=yo(),r=vo().isArray,i,a;function o(e){var t=n.copyOptions(e);return n.ensureFlagExists(`ignoreDeclaration`,t),n.ensureFlagExists(`ignoreInstruction`,t),n.ensureFlagExists(`ignoreAttributes`,t),n.ensureFlagExists(`ignoreText`,t),n.ensureFlagExists(`ignoreComment`,t),n.ensureFlagExists(`ignoreCdata`,t),n.ensureFlagExists(`ignoreDoctype`,t),n.ensureFlagExists(`compact`,t),n.ensureFlagExists(`indentText`,t),n.ensureFlagExists(`indentCdata`,t),n.ensureFlagExists(`indentAttributes`,t),n.ensureFlagExists(`indentInstruction`,t),n.ensureFlagExists(`fullTagEmptyElement`,t),n.ensureFlagExists(`noQuotesForNativeAttributes`,t),n.ensureSpacesExists(t),typeof t.spaces==`number`&&(t.spaces=Array(t.spaces+1).join(` `)),n.ensureKeyExists(`declaration`,t),n.ensureKeyExists(`instruction`,t),n.ensureKeyExists(`attributes`,t),n.ensureKeyExists(`text`,t),n.ensureKeyExists(`comment`,t),n.ensureKeyExists(`cdata`,t),n.ensureKeyExists(`doctype`,t),n.ensureKeyExists(`type`,t),n.ensureKeyExists(`name`,t),n.ensureKeyExists(`elements`,t),n.checkFnExists(`doctype`,t),n.checkFnExists(`instruction`,t),n.checkFnExists(`cdata`,t),n.checkFnExists(`comment`,t),n.checkFnExists(`text`,t),n.checkFnExists(`instructionName`,t),n.checkFnExists(`elementName`,t),n.checkFnExists(`attributeName`,t),n.checkFnExists(`attributeValue`,t),n.checkFnExists(`attributes`,t),n.checkFnExists(`fullTagEmptyElement`,t),t}function s(e,t,n){return(!n&&e.spaces?`
|
|
3
3
|
`:``)+Array(t+1).join(e.spaces)}function c(e,t,n){if(t.ignoreAttributes)return``;`attributesFn`in t&&(e=t.attributesFn(e,a,i));var r,o,c,l,u=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(l=t.noQuotesForNativeAttributes&&typeof e[r]!=`string`?``:`"`,o=``+e[r],o=o.replace(/"/g,`"`),c=`attributeNameFn`in t?t.attributeNameFn(r,o,a,i):r,u.push(t.spaces&&t.indentAttributes?s(t,n+1,!1):` `),u.push(c+`=`+l+(`attributeValueFn`in t?t.attributeValueFn(o,r,a,i):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(s(t,n,!1)),u.join(``)}function l(e,t,n){return i=e,a=`xml`,t.ignoreDeclaration?``:`<?xml`+c(e[t.attributesKey],t,n)+`?>`}function u(e,t,n){if(t.ignoreInstruction)return``;for(var r in e)if(e.hasOwnProperty(r))break;var o=`instructionNameFn`in t?t.instructionNameFn(r,e[r],a,i):r;if(typeof e[r]==`object`)return i=e,a=o,`<?`+o+c(e[r][t.attributesKey],t,n)+`?>`;var s=e[r]?e[r]:``;return`instructionFn`in t&&(s=t.instructionFn(s,r,a,i)),`<?`+o+(s?` `+s:``)+`?>`}function d(e,t){return t.ignoreComment?``:`<!--`+(`commentFn`in t?t.commentFn(e,a,i):e)+`-->`}function f(e,t){return t.ignoreCdata?``:`<![CDATA[`+(`cdataFn`in t?t.cdataFn(e,a,i):e.replace(`]]>`,`]]]]><![CDATA[>`))+`]]>`}function p(e,t){return t.ignoreDoctype?``:`<!DOCTYPE `+(`doctypeFn`in t?t.doctypeFn(e,a,i):e)+`>`}function m(e,t){return t.ignoreText?``:(e=``+e,e=e.replace(/&/g,`&`),e=e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),`textFn`in t?t.textFn(e,a,i):e)}function h(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case`text`:if(t.indentText)return!0;break;case`cdata`:if(t.indentCdata)return!0;break;case`instruction`:if(t.indentInstruction)return!0;break;case`doctype`:case`comment`:case`element`:return!0;default:return!0}return!1}function g(e,t,n){i=e,a=e.name;var r=[],o=`elementNameFn`in t?t.elementNameFn(e.name,e):e.name;r.push(`<`+o),e[t.attributesKey]&&r.push(c(e[t.attributesKey],t,n));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey][`xml:space`]===`preserve`;return s||=`fullTagEmptyElementFn`in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement,s?(r.push(`>`),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(_(e[t.elementsKey],t,n+1)),i=e,a=e.name),r.push(t.spaces&&h(e,t)?`
|
|
4
4
|
`+Array(n+1).join(t.spaces):``),r.push(`</`+o+`>`)):r.push(`/>`),r.join(``)}function _(e,t,n,r){return e.reduce(function(e,i){var a=s(t,n,r&&!e);switch(i.type){case`element`:return e+a+g(i,t,n);case`comment`:return e+a+d(i[t.commentKey],t);case`doctype`:return e+a+p(i[t.doctypeKey],t);case`cdata`:return e+(t.indentCdata?a:``)+f(i[t.cdataKey],t);case`text`:return e+(t.indentText?a:``)+m(i[t.textKey],t);case`instruction`:var o={};return o[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?a:``)+u(o,t,n)}},``)}function v(e,t,n){for(var r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function y(e,t,n,r,o){i=e,a=t;var l=`elementNameFn`in n?n.elementNameFn(t,e):t;if(e==null||e===``)return`fullTagEmptyElementFn`in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?`<`+l+`></`+l+`>`:`<`+l+`/>`;var u=[];if(t){if(u.push(`<`+l),typeof e!=`object`)return u.push(`>`+m(e,n)+`</`+l+`>`),u.join(``);e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,r));var d=v(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey][`xml:space`]===`preserve`;if(d||=`fullTagEmptyElementFn`in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement,d)u.push(`>`);else return u.push(`/>`),u.join(``)}return u.push(b(e,n,r+1,!1)),i=e,a=t,t&&u.push((o?s(n,r,!1):``)+`</`+l+`>`),u.join(``)}function b(e,t,n,i){var a,o,c,h=[];for(o in e)if(e.hasOwnProperty(o))for(c=r(e[o])?e[o]:[e[o]],a=0;a<c.length;++a){switch(o){case t.declarationKey:h.push(l(c[a],t,n));break;case t.instructionKey:h.push((t.indentInstruction?s(t,n,i):``)+u(c[a],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:h.push((t.indentText?s(t,n,i):``)+m(c[a],t));break;case t.cdataKey:h.push((t.indentCdata?s(t,n,i):``)+f(c[a],t));break;case t.doctypeKey:h.push(s(t,n,i)+p(c[a],t));break;case t.commentKey:h.push(s(t,n,i)+d(c[a],t));break;default:h.push(s(t,n,i)+y(c[a],o,t,n,v(c[a],t)))}i&&=!h.length}return h.join(``)}t.exports=function(e,t){t=o(t);var n=[];return i=e,a=`_root_`,t.compact?n.push(b(e,t,0,!0)):(e[t.declarationKey]&&n.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(_(e[t.elementsKey],t,0,!n.length))),n.join(``)}}));bo();var xo=to(bo(),1);function So(e,t=`application/json`){return typeof e==`string`?e:t===`application/x-ndjson`?Array.isArray(e)?e.map(e=>JSON.stringify(e)).join(`
|
|
@@ -114,7 +114,7 @@ ${Do(i.join(`
|
|
|
114
114
|
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Fm:Pm))),s(),o}}function Pm(e,t,n){return t===0?e:Fm(e,t,n)}function Fm(e,t,n){return(n?``:` `)+e}var Im=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Vm.attention=Hm,Vm.peek=Um;function Lm(){return{canContainEols:[`delete`],enter:{strikethrough:zm},exit:{strikethrough:Bm}}}function Rm(){return{handlers:{delete:Vm},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Im}]}}function zm(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Bm(e){this.exit(e)}function Vm(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Hm(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Um(){return`~`}function Wm(e){return e.length}function Gm(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Wm,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Km(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=qm(r[d]);else{let e=qm(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
|
|
115
115
|
`)}function Km(e){return e==null?``:String(e)}function qm(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Jm(){return{enter:{table:Ym,tableData:$m,tableHeader:$m,tableRow:Zm},exit:{codeText:eh,table:Xm,tableData:Qm,tableHeader:Qm,tableRow:Qm}}}function Ym(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function Xm(e){this.exit(e),this.data.inTable=void 0}function Zm(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function Qm(e){this.exit(e)}function $m(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function eh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,th));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function th(e,t){return t===`|`?t:e}function nh(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[rh],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
116
116
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
117
|
-
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return Gm(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Md.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function rh(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&ih(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function ih(e,t){let n=!1;return Qu(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&Zo(e)&&(t.options.setext||n))}function ah(){return{exit:{taskListCheckValueChecked:sh,taskListCheckValueUnchecked:sh,paragraph:ch}}}function oh(){return{handlers:{paragraph:lh},join:[uh]}}function sh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function ch(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function lh(e,t,n,r){if(!t||t.type!==`listItem`||dh(t)!==e)return Md.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+Md.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function uh(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=dh(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function dh(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function fh(){return[om(),Mm(),Lm(),Jm(),ah()]}function ph(e){return{extensions:[sm(),Nm(e),Rm(),nh(e),oh()]}}var mh={tokenize:Oh,partial:!0},hh={tokenize:kh,partial:!0},gh={tokenize:Ah,partial:!0},_h={tokenize:jh,partial:!0},vh={tokenize:Mh,partial:!0},yh={name:`wwwAutolink`,tokenize:Eh,previous:Nh},bh={name:`protocolAutolink`,tokenize:Dh,previous:Ph},xh={name:`emailAutolink`,tokenize:Th,previous:Fh},Sh={};function Ch(){return{text:Sh}}for(var wh=48;wh<123;)Sh[wh]=xh,wh++,wh===58?wh=65:wh===91&&(wh=97);Sh[43]=xh,Sh[45]=xh,Sh[46]=xh,Sh[95]=xh,Sh[72]=[xh,bh],Sh[104]=[xh,bh],Sh[87]=[xh,yh],Sh[119]=[xh,yh];function Th(e,t,n){let r=this,i,a;return o;function o(t){return!Ih(t)||!Fh.call(r,r.previous)||Lh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Ih(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(vh,u,l)(t):t===45||t===95||fs(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&ds(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Eh(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Nh.call(r,r.previous)||Lh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(mh,e.attempt(hh,e.attempt(gh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Dh(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ph.call(r,r.previous)&&!Lh(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(ds(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||ms(t)||vs(t)||xs(t)||bs(t)?n(t):e.attempt(hh,e.attempt(gh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Oh(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function kh(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(_h,c,s)(t):t===null||vs(t)||xs(t)||t!==45&&bs(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Ah(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(_h,t,a)(o):o===null||vs(o)||xs(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function jh(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||vs(o)||xs(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||vs(e)||xs(e)?t(e):r(e)}function a(e){return ds(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):ds(t)?(e.consume(t),o):n(t)}}function Mh(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return fs(e)?n(e):t(e)}}function Nh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vs(e)}function Ph(e){return!ds(e)}function Fh(e){return!(e===47||Ih(e))}function Ih(e){return e===43||e===45||e===46||e===95||fs(e)}function Lh(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Rh={tokenize:Kh,partial:!0};function zh(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Uh,continuation:{tokenize:Wh},exit:Gh}},text:{91:{name:`gfmFootnoteCall`,tokenize:Hh},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Bh,resolveTo:Vh}}}}function Bh(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=us(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Vh(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Hh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||vs(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(us(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return vs(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Uh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||vs(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=us(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return vs(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),ws(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Wh(e,t,n){return e.check(Hs,t,e.attempt(Rh,t,n))}function Gh(e){e.exit(`gfmFootnoteDefinition`)}function Kh(e,t,n){let r=this;return ws(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function qh(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&rs(o,o.length,0,Fs(s,e.slice(r+1,n),t)),rs(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),rs(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ps(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ps(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Jh=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Yh(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Yh(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Xh(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Zh(){return{flow:{null:{name:`table`,tokenize:Qh,resolveAll:$h}}}}function Qh(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):X(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):ys(t)?ws(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||vs(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,ys(t)?ws(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return ys(t)?ws(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||X(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return ys(t)?ws(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||X(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||X(n)?(e.exit(`tableRow`),t(n)):ys(n)?ws(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||vs(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function $h(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Jh;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(tg(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=eg(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=eg(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=eg(f,t,o,i,n,d)):(o[0]=o[1],d=eg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&tg(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Xh(t.events,n))}return e}function eg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},ng(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=ng(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=ng(t.events,n[2]),a=ng(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},ng(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function tg(e,t,n,r,i){let a=[],o=ng(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function ng(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var rg={name:`tasklistCheck`,tokenize:ag};function ig(){return{text:{91:rg}}}function ag(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return vs(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return X(r)?t(r):ys(r)?e.check({tokenize:og},t,n)(r):n(r)}}function og(e,t,n){return ws(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function sg(e){return os([Ch(),zh(),qh(e),Zh(),ig()])}var cg={};function lg(e){let t=this,n=e||cg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(sg(n)),a.push(fh()),o.push(ph(n))}var ug=`ActiveDescendant Atomic AutoComplete Busy Checked ColCount ColIndex ColSpan Controls Current DescribedBy Details Disabled DropEffect ErrorMessage Expanded FlowTo Grabbed HasPopup Hidden Invalid KeyShortcuts Label LabelledBy Level Live Modal MultiLine MultiSelectable Orientation Owns Placeholder PosInSet Pressed ReadOnly Relevant Required RoleDescription RowCount RowIndex RowSpan Selected SetSize Sort ValueMax ValueMin ValueNow ValueText`,dg=`role className content crossOrigin download height href hrefLang id lang max media method min name Abort AfterPrint BeforePrint Cancel CanPlay CanPlayThrough Change Click Close Copy CueChange Cut DblClick Drag DragEnd DragEnter DragExit DragLeave DragOver DragStart Drop DurationChange Emptied Ended Error Focus HashChange Input Invalid KeyDown KeyPress KeyUp Load LoadedData LoadedMetadata LoadStart Message MouseDown MouseEnter MouseLeave MouseMove MouseOut MouseOver MouseUp Offline Online PageHide PageShow Paste Pause Play Playing PopState Progress RateChange Reset Resize Scroll Seeked Seeking Select Stalled Storage Submit Suspend TimeUpdate Toggle Unload VolumeChange Waiting ping referrerPolicy rel style tabIndex target title type width color event rev version property xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xmlns:xlink xmlns xml:base xml:lang xml:space`,fg={names:Ig(`abbr accept accept-charset accessKey action allow allowFullScreen allowPaymentRequest allowUserMedia alpha alt as async autoCapitalize autoComplete autoFocus autoPlay blocking capture charSet checked cite closedBy colorSpace cols colSpan command commandFor contentEditable controls controlsList coords data dateTime decoding default defer dir dirName disabled draggable encType enterKeyHint fetchPriority form formAction formEncType formMethod formNoValidate formTarget headers hidden high htmlFor http-equiv imageSizes imageSrcSet inert inputMode integrity is isMap itemID itemProp itemRef itemScope itemType kind label language list loading loop low manifest maxLength minLength multiple muted nonce noModule noValidate AuxClick BeforeMatch BeforeToggle BeforeUnload Blur ContextLost ContextMenu ContextRestored FormData LanguageChange LoadEnd MessageError RejectionHandled ScrollEnd SecurityPolicyViolation SlotChange UnhandledRejection Wheel open optimum pattern placeholder playsInline popover popoverTarget popoverTargetAction poster preload readOnly required reversed rows rowSpan sandbox scope scoped seamless selected shadowRootClonable shadowRootCustomElementRegistry shadowRootDelegatesFocus shadowRootMode shadowRootSerializable shape size sizes slot span spellCheck src srcDoc srcLang srcSet start step translate typeMustMatch useMap value wrap writingSuggestions align aLink archive axis background bgColor border borderColor bottomMargin cellPadding cellSpacing char charOff classID clear code codeBase codeType compact declare face frame frameBorder hSpace leftMargin link longDesc lowSrc marginHeight marginWidth noResize noHref noShade noWrap object profile prompt rightMargin rules scheme scrolling standby summary text topMargin valueType vAlign vLink vSpace allowTransparency autoCorrect autoSave credentialless disablePictureInPicture disableRemotePlayback exportParts part prefix results security unselectable`).set(`for`,`htmlFor`),commaSeparated:[`accept`,`coords`,`exportParts`]},pg={names:Ig(`about accent-height accumulate additive alignment-baseline alphabetic amplitude arabic-form ascent attributeName attributeType azimuth bandwidth baseline-shift baseFrequency baseProfile bbox begin bias by calcMode cap-height clip clip-path clipPathUnits clip-rule color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d datatype defaultAction descent diffuseConstant direction display dur divisor dominant-baseline dx dy edgeMode editable elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity focusable focusHighlight font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format fr from fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits handler hanging hatchContentUnits hatchUnits horiz-adv-x horiz-origin-x horiz-origin-y ideographic image-rendering initialVisibility in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes kerning lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits mask-type maskUnits mathematical mediaCharacterEncoding mediaContentEncodings mediaSize mediaTime mode nav-down nav-down-left nav-down-right nav-left nav-next nav-prev nav-right nav-up nav-up-left nav-up-right numOctaves observer offset Activate Begin End FocusIn FocusOut MouseWheel Repeat Show Zoom opacity operator order orient orientation origin overflow overlay overline-position overline-thickness paint-order panose-1 path pathLength patternContentUnits patternTransform patternUnits phase pitch playbackOrder pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits propagate r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures requiredFonts requiredFormats resource restart result rotate rx ry scale seed shape-rendering side slope snapshotTime specularConstant specularExponent spreadMethod spacing startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width surfaceScale syncBehavior syncBehaviorDefault syncMaster syncTolerance syncToleranceDefault systemLanguage tableValues targetX targetY text-anchor text-decoration text-rendering textLength timelineBegin transformBehavior typeof to transform transform-origin u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em values v-alphabetic v-mathematical vector-effect v-hanging v-ideographic vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility widths word-spacing writing-mode x x1 x2 xChannelSelector x-height y y1 y2 yChannelSelector z zoomAndPan`),commaSeparated:[`g1`,`g2`,`glyphName`]},mg=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),hg=/["&'<>]/g,gg={'"':`"`,"&":`&`,"'":`'`,"<":`<`,">":`>`},_g=/^[$_\p{ID_Start}][$_\p{Join_Control}\p{ID_Continue}]*$/u,vg="Cannot parse `style` attribute",yg="Cannot handle MDX estrees without `evaluator`",bg=1,xg=2,Sg=4,Cg=8,wg=Uint8Array.from({length:128},(e,t)=>{let n=String.fromCharCode(t);return(/[-#/*\\\w]/.test(n)?bg:0)|(/[-\w]/.test(n)?xg:0)|(/[0-9a-z_-]/.test(n)?Sg:0)|(/[;}"'u]/.test(n)?Cg:0)});function Tg(e,{components:t={},evaluator:n}={}){let r=Eg(e,{components:t,evaluator:n,styles:new Map,styleAttributes:new Map},fg,void 0);return r&&typeof r!=`string`?r:(0,Y.jsx)(Y.Fragment,{children:r||void 0})}function Eg(e,t,n,r){if(e.type===`element`)return Dg(e,t,n,r);if(e.type===`text`)return e.value;if(e.type===`root`)return Mg(Y.Fragment,{},jg(e,t,n),r);if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)return Mg(e.name===null?Y.Fragment:Ng(e.name,t),Pg(e.attributes,t.evaluator),jg(e,t,n===fg&&e.name===`svg`?pg:n),r);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)return Fg(e.data?.estree,t.evaluator);if(e.type===`mdxjsEsm`){if(!e.data?.estree||!t.evaluator)throw Error(yg);return t.evaluator.evaluateProgram(e.data.estree)}}function Dg(e,t,n,r){let i=n===fg&&e.tagName.toLowerCase()===`svg`?pg:n,a={},o;for(let n in e.properties){let r=e.properties[n];if(r==null||Number.isNaN(r)||n===`children`||!Object.hasOwn(e.properties,n))continue;let s=Lg(i,n);if(Array.isArray(r)&&(r=i.commaSeparated.includes(s)?(r.join(`, `)+(r.at(-1)===``?`, `:``)).trim():r.join(` `).trim()),s===`style`&&typeof r==`object`)a.style=r;else if(s===`style`){let e=String(r),n=t.styles.get(e);n||t.styles.set(e,n=Bg(e)),a.style=n}else s===`align`&&typeof r==`string`&&(e.tagName===`td`||e.tagName===`th`)?o=r:a[s]=r}o&&(a.style={...a.style,textAlign:o});let s=Object.hasOwn(t.components,e.tagName)?t.components[e.tagName]:e.tagName,c=e.children[0];if(typeof s==`string`&&c?.type===`element`&&c.tagName===`span`&&!t.components.span&&!mg.has(e.tagName)){let n=Og(e.children,t);if(n!==void 0)return a.dangerouslySetInnerHTML={__html:n},Mg(s,a,[],r)}return Mg(s,a,jg(e,t,i),r)}function Og(e,t){let n=``;for(let r of e){if(r.type===`text`){n+=Ag(r.value);continue}if(r.type!==`element`||r.tagName!==`span`)return;n+=`<span`;for(let e in r.properties){let i=r.properties[e];if(i==null||Number.isNaN(i)||e===`children`)continue;if(e===`style`&&typeof i==`string`){n+=kg(i,t);continue}let a=e===`className`?`class`:e;if(a!==`class`&&!a.startsWith(`data-`)||typeof i!=`string`&&typeof i!=`number`&&!Array.isArray(i))return;n+=` ${a}="${Ag(Array.isArray(i)?i.join(` `).trim():String(i))}"`}let e=Og(r.children,t);if(e===void 0)return;n+=`>${e}</span>`}return n}function kg(e,{styleAttributes:t}){let n=t.get(e);if(n!==void 0)return n;n=``;for(let[t,r]of Object.entries(Bg(e))){let e=t.startsWith(`--`)?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,`-ms-`);n+=`${n?`;`:` style="`}${Ag(e)}:${Ag(r)}`}return n&&(n+=`"`),t.set(e,n),n}function Ag(e){return e.replace(hg,e=>gg[e])}function jg(e,t,n){let r=[],i=e.type===`element`&&mg.has(e.tagName),a;for(let o of e.children){let e;if(o.type===`text`)e=o.value;else{let r,i=o.type===`element`?o.tagName:o.type===`mdxJsxFlowElement`||o.type===`mdxJsxTextElement`?o.name:void 0;if(i){a??=new Map;let e=a.get(i)??0;r=`${i}-${e}`,a.set(i,e+1)}if(e=Eg(o,t,n,r),e===void 0)continue}i&&typeof e==`string`&&zg(e)||r.push(e)}return r}function Mg(e,t,n,r){n.length>1?t.children=n:n[0]&&(t.children=n[0]);let i=n.length>1||Array.isArray(t.children)?Y.jsxs:Y.jsx;return r?i(e,t,r):i(e,t)}function Ng(e,{components:t,evaluator:n}){let r;if(e.includes(`.`))for(let t of e.split(`.`)){let e=_g.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t},n=e.type===`Literal`;r=r?{type:`MemberExpression`,object:r,property:e,computed:n,optional:!1}:e}else _g.test(e)&&!/^[a-z]/.test(e)&&(r={type:`Identifier`,name:e});if(!r)return Object.hasOwn(t,e)?t[e]:e;if(!n)throw Error(yg);return n.evaluateExpression(r)}function Pg(e,t){let n={};for(let r of e)r.type===`mdxJsxExpressionAttribute`?Object.assign(n,Fg(r.data?.estree,t,!0)):r.value&&typeof r.value==`object`?n[r.name]=Fg(r.value.data?.estree,t):n[r.name]=r.value===null||r.value;return n}function Fg(e,t,n=!1){if(!e||!t)throw Error(yg);let{expression:r}=e.body[0];return n&&(r=r.properties[0].argument),t.evaluateExpression(r)}function Ig(e){let t=new Map([[`class`,`className`]]);for(let e of ug.split(` `)){let n=`aria-${e.toLowerCase()}`;t.set(n,n).set(`aria${e}`,n).set(`aria${e.toLowerCase()}`,n)}for(let n of`${dg} ${e}`.split(` `)){n.charCodeAt(0)<97&&(n=`on${n}`);let e=n.replace(/[-:](.)/g,(e,t)=>t.toUpperCase());t.set(n,e).set(e,e).set(e.toLowerCase(),e)}return t}function Lg({names:e},t){return t.startsWith(`data-`)?t:e.get(t)??e.get(t.toLowerCase())??Rg(t)}function Rg(e){if(e.charCodeAt(4)===45||/-[a-z]/.test(e)||!/^data[-\w.:]+$/i.test(e))return e;let t=e.slice(4).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);return t.charCodeAt(0)===45?`data${t}`:`data-${t}`}function zg(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9&&n!==10&&n!==12&&n!==13)return!1}return!0}function Bg(e){let t={},n=Wg(e,Jg(e,0));for(;;){let r=n,i=!0,a=e.charCodeAt(n);for(;Xg(a,bg);)Xg(a,xg)||(i=!1),a=e.charCodeAt(++n);if(n===r)break;if(a===91){let t=n+1;for(;Xg(e.charCodeAt(t),Sg);)t++;t>n+1&&e.charCodeAt(t)===93&&(n=t+1,i=!1)}let o=i?e.slice(r,n):Kg(e.slice(r,n));if(n=Gg(e,Jg(e,n)),e.charCodeAt(n)!==58)throw Error(vg);let s=Jg(e,n+1);n=Vg(e,s);let c=Kg(e.slice(s,n)).trim();for(c&&(t[qg(o)]=c);e.charCodeAt(n)===59||Yg(e.charCodeAt(n));)n++;n=Wg(e,n)}return t}function Vg(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(!Xg(n,Cg))t++;else if(n===59||n===125)break;else t=n===117?e.startsWith(`url(`,t)&&Ug(e,t+4)||t+1:Hg(e,t,n)??t+1}return t}function Hg(e,t,n){for(let r=t+1;r<e.length;r++){let t=e.charCodeAt(r);if(t===92)r++;else if(t===n)return r+1}}function Ug(e,t){let n=e.charCodeAt(t);if(n===34||n===39){let r=Hg(e,t,n);if(r!==void 0&&e.charCodeAt(r)===41)return r+1}let r=e.indexOf(`)`,t);if(r!==-1)return r+1}function Wg(e,t){for(let n=Gg(e,t);n!==t;n=Gg(e,t))t=n;return t}function Gg(e,t){if(e.charCodeAt(t)!==47||e.charCodeAt(t+1)!==42)return t;let n=e.indexOf(`*/`,t+2);if(n===-1)throw Error(vg);return Jg(e,n+2)}function Kg(e){let t=``,n=0;for(let r=e.indexOf(`/*`);r!==-1;r=e.indexOf(`/*`,n)){let i=e.indexOf(`*/`,r+2);if(i===-1)break;t+=e.slice(n,r),n=i+2}return n===0?e:t+e.slice(n)}function qg(e){if(e.startsWith(`--`))return e;let t=e.toLowerCase();return t.startsWith(`-ms-`)&&(t=t.slice(1)),t.includes(`-`)?t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()):t}function Jg(e,t){for(;Yg(e.charCodeAt(t));)t++;return t}function Yg(e){return e===32||e>=9&&e<=13||e>127&&String.fromCharCode(e).trim()===``}function Xg(e,t){return e<128&&(wg[e]&t)!==0}var Zg=fn(),Qg=()=>()=>{},$g=()=>!0,e_=()=>!1;function t_(){return(0,Zg.useSyncExternalStore)(Qg,$g,e_)}function n_(){let[e,t]=J.useState(!1);return J.useEffect(()=>{t(!0)},[]),e}var r_=b(18)?t_:n_;function i_(){return!r_()}var a_=J.createContext(void 0),o_={disableStyleElements:!1};function s_(){return J.useContext(a_)??o_}function c_(e){let{script:t}=e,{nonce:n}=s_();return i_()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function l_(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var u_=`--active-tab-left`,d_=`--active-tab-right`,f_=`--active-tab-top`,p_=`--active-tab-bottom`,m_=`--active-tab-width`,h_=`--active-tab-height`,g_,__={...xt,activeTabPosition:()=>null,activeTabSize:()=>null},v_=2,y_=J.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=mt(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Ct(),p=E();J.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Qr(e),{width:r,height:i}=Qr(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=b_(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=S_(e);Math.abs(u-p.x-m)<=v_&&Math.abs(f-p.y-g)<=v_&&(m=u,g=f),v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,C=b?{width:v,height:y}:null,w=b?{[u_]:`${m}px`,[d_]:`${h}px`,[f_]:`${g}px`,[p_]:`${_}px`,[m_]:`${v}px`,[h_]:`${y}px`}:void 0,T=S(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:__});return u==null?null:(0,Y.jsxs)(J.Fragment,{children:[T,i&&(g_||=(0,Y.jsx)(c_,{script:``}))]})});function b_(e,t){let n=x_(e),r=x_(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=V(e);for(;Xe(o)&&o!==t&&!P(o);)i-=o.scrollLeft,a-=o.scrollTop,o=V(o);return{left:i,top:a}}function x_(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function S_(e){let t=qe(e).getComputedStyle(e),{x:n,y:r}=l_(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=C_(t[0],e.offsetWidth),a+=C_(t[1],e.offsetHeight)}return{x:i,y:a}}function C_(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}async function w_(e,t){let n=e.getBundledThemes(),r=e.getLoadedThemes(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):e.name===void 0||!r.includes(e.name));i.length>0&&await e.loadTheme(...i)}async function T_(e,t){let n=e.getBundledLanguages(),r=e.getLoadedLanguages(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):!r.includes(e.name));i.length>0&&await e.loadLanguage(...i)}function E_(e){return`theme`in e?[e.theme]:Object.values(e.themes).filter(e=>e!==void 0)}function D_(e){let t;return{init(n){let r=e.init(n);return r instanceof Promise&&r.catch(()=>{t===r&&(t=void 0)}),t=r},getOrInit(){return t??this.init()}}}function O_(e,t){let{fallbackLanguage:n=`text`,...r}=t,i=typeof e==`function`?void 0:e,a=new Set;function o({lang:e,structure:t=r.structure,meta:i}){return{...r,lang:a.has(e)?n:e,structure:t,meta:r.meta?{...r.meta,...i}:i}}function s(){if(!i)throw Error(`[Fumadocs] load the language before highlighting`);return i}let c=new Map;async function l(t){let[o,{isSpecialLang:s}]=await Promise.all([typeof e==`function`?e():e,ct(()=>import(`./core-VNHGFYB7.js`),[])]);await Promise.all([w_(o,E_(r)),T_(o,[t,n])]),!s(t)&&!o.getLoadedLanguages().includes(t)&&a.add(t),i=o}return{async loadLanguage(...e){let t=[];for(let n of e){let e=c.get(n);e||(c.set(n,e=l(n)),e.catch(()=>c.delete(n))),t.push(e)}await Promise.all(t)},codeToHast(e,t){return s().codeToHast(e,o(t))},override(n){return O_(i??e,{...t,...n})}}}var k_=(0,J.createContext)(void 0);function A_(e){let t=(0,J.use)(k_);return(0,Y.jsx)(wt,{...e,...t,className:K(`my-0`,e.className,t?.className),children:(0,Y.jsx)(Tt,{children:e.children})})}function j_({highlighter:e}){return function(t){return(0,Y.jsx)(M_,{highlighter:e,components:{pre:A_},...t})}}function M_({highlighter:e,lang:t,code:n,codeblock:r,wrapInSuspense:i=!0,components:a}){let o=(0,Y.jsx)(P_,{highlighter:e,lang:t,code:n,components:a});return i&&e.loadLanguage&&(o=(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(F_,{code:n,components:a}),children:o})),(0,Y.jsx)(k_,{value:r,children:o})}var N_=new WeakMap;function P_({highlighter:e,lang:t,code:n,components:r}){if(e.loadLanguage){let n=N_.get(e);n||N_.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=e.loadLanguage(t)),(0,J.use)(r)}return Tg(e.codeToHast(n,{lang:t}),{components:r})}function F_({code:e,components:t={}}){let{pre:n=`pre`,code:r=`code`}=t;return(0,Y.jsx)(n,{children:(0,Y.jsx)(r,{children:e.split(`
|
|
117
|
+
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return Gm(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Md.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function rh(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&ih(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function ih(e,t){let n=!1;return Qu(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&Zo(e)&&(t.options.setext||n))}function ah(){return{exit:{taskListCheckValueChecked:sh,taskListCheckValueUnchecked:sh,paragraph:ch}}}function oh(){return{handlers:{paragraph:lh},join:[uh]}}function sh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function ch(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function lh(e,t,n,r){if(!t||t.type!==`listItem`||dh(t)!==e)return Md.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+Md.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function uh(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=dh(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function dh(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function fh(){return[om(),Mm(),Lm(),Jm(),ah()]}function ph(e){return{extensions:[sm(),Nm(e),Rm(),nh(e),oh()]}}var mh={tokenize:Oh,partial:!0},hh={tokenize:kh,partial:!0},gh={tokenize:Ah,partial:!0},_h={tokenize:jh,partial:!0},vh={tokenize:Mh,partial:!0},yh={name:`wwwAutolink`,tokenize:Eh,previous:Nh},bh={name:`protocolAutolink`,tokenize:Dh,previous:Ph},xh={name:`emailAutolink`,tokenize:Th,previous:Fh},Sh={};function Ch(){return{text:Sh}}for(var wh=48;wh<123;)Sh[wh]=xh,wh++,wh===58?wh=65:wh===91&&(wh=97);Sh[43]=xh,Sh[45]=xh,Sh[46]=xh,Sh[95]=xh,Sh[72]=[xh,bh],Sh[104]=[xh,bh],Sh[87]=[xh,yh],Sh[119]=[xh,yh];function Th(e,t,n){let r=this,i,a;return o;function o(t){return!Ih(t)||!Fh.call(r,r.previous)||Lh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Ih(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(vh,u,l)(t):t===45||t===95||fs(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&ds(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Eh(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Nh.call(r,r.previous)||Lh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(mh,e.attempt(hh,e.attempt(gh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Dh(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ph.call(r,r.previous)&&!Lh(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(ds(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||ms(t)||vs(t)||xs(t)||bs(t)?n(t):e.attempt(hh,e.attempt(gh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Oh(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function kh(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(_h,c,s)(t):t===null||vs(t)||xs(t)||t!==45&&bs(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Ah(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(_h,t,a)(o):o===null||vs(o)||xs(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function jh(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||vs(o)||xs(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||vs(e)||xs(e)?t(e):r(e)}function a(e){return ds(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):ds(t)?(e.consume(t),o):n(t)}}function Mh(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return fs(e)?n(e):t(e)}}function Nh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vs(e)}function Ph(e){return!ds(e)}function Fh(e){return!(e===47||Ih(e))}function Ih(e){return e===43||e===45||e===46||e===95||fs(e)}function Lh(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Rh={tokenize:Kh,partial:!0};function zh(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Uh,continuation:{tokenize:Wh},exit:Gh}},text:{91:{name:`gfmFootnoteCall`,tokenize:Hh},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Bh,resolveTo:Vh}}}}function Bh(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=us(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Vh(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Hh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||vs(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(us(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return vs(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Uh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||vs(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=us(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return vs(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),ws(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Wh(e,t,n){return e.check(Hs,t,e.attempt(Rh,t,n))}function Gh(e){e.exit(`gfmFootnoteDefinition`)}function Kh(e,t,n){let r=this;return ws(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function qh(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&rs(o,o.length,0,Fs(s,e.slice(r+1,n),t)),rs(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),rs(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ps(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ps(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Jh=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Yh(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Yh(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Xh(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Zh(){return{flow:{null:{name:`table`,tokenize:Qh,resolveAll:$h}}}}function Qh(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):X(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):ys(t)?ws(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||vs(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,ys(t)?ws(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return ys(t)?ws(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||X(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return ys(t)?ws(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||X(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||X(n)?(e.exit(`tableRow`),t(n)):ys(n)?ws(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||vs(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function $h(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Jh;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(tg(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=eg(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=eg(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=eg(f,t,o,i,n,d)):(o[0]=o[1],d=eg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&tg(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Xh(t.events,n))}return e}function eg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},ng(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=ng(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=ng(t.events,n[2]),a=ng(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},ng(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function tg(e,t,n,r,i){let a=[],o=ng(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function ng(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var rg={name:`tasklistCheck`,tokenize:ag};function ig(){return{text:{91:rg}}}function ag(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return vs(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return X(r)?t(r):ys(r)?e.check({tokenize:og},t,n)(r):n(r)}}function og(e,t,n){return ws(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function sg(e){return os([Ch(),zh(),qh(e),Zh(),ig()])}var cg={};function lg(e){let t=this,n=e||cg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(sg(n)),a.push(fh()),o.push(ph(n))}var ug=`ActiveDescendant Atomic AutoComplete Busy Checked ColCount ColIndex ColSpan Controls Current DescribedBy Details Disabled DropEffect ErrorMessage Expanded FlowTo Grabbed HasPopup Hidden Invalid KeyShortcuts Label LabelledBy Level Live Modal MultiLine MultiSelectable Orientation Owns Placeholder PosInSet Pressed ReadOnly Relevant Required RoleDescription RowCount RowIndex RowSpan Selected SetSize Sort ValueMax ValueMin ValueNow ValueText`,dg=`role className content crossOrigin download height href hrefLang id lang max media method min name Abort AfterPrint BeforePrint Cancel CanPlay CanPlayThrough Change Click Close Copy CueChange Cut DblClick Drag DragEnd DragEnter DragExit DragLeave DragOver DragStart Drop DurationChange Emptied Ended Error Focus HashChange Input Invalid KeyDown KeyPress KeyUp Load LoadedData LoadedMetadata LoadStart Message MouseDown MouseEnter MouseLeave MouseMove MouseOut MouseOver MouseUp Offline Online PageHide PageShow Paste Pause Play Playing PopState Progress RateChange Reset Resize Scroll Seeked Seeking Select Stalled Storage Submit Suspend TimeUpdate Toggle Unload VolumeChange Waiting ping referrerPolicy rel style tabIndex target title type width color event rev version property xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xmlns:xlink xmlns xml:base xml:lang xml:space`,fg={names:Ig(`abbr accept accept-charset accessKey action allow allowFullScreen allowPaymentRequest allowUserMedia alpha alt as async autoCapitalize autoComplete autoFocus autoPlay blocking capture charSet checked cite closedBy colorSpace cols colSpan command commandFor contentEditable controls controlsList coords data dateTime decoding default defer dir dirName disabled draggable encType enterKeyHint fetchPriority form formAction formEncType formMethod formNoValidate formTarget headers hidden high htmlFor http-equiv imageSizes imageSrcSet inert inputMode integrity is isMap itemID itemProp itemRef itemScope itemType kind label language list loading loop low manifest maxLength minLength multiple muted nonce noModule noValidate AuxClick BeforeMatch BeforeToggle BeforeUnload Blur ContextLost ContextMenu ContextRestored FormData LanguageChange LoadEnd MessageError RejectionHandled ScrollEnd SecurityPolicyViolation SlotChange UnhandledRejection Wheel open optimum pattern placeholder playsInline popover popoverTarget popoverTargetAction poster preload readOnly required reversed rows rowSpan sandbox scope scoped seamless selected shadowRootClonable shadowRootCustomElementRegistry shadowRootDelegatesFocus shadowRootMode shadowRootSerializable shape size sizes slot span spellCheck src srcDoc srcLang srcSet start step translate typeMustMatch useMap value wrap writingSuggestions align aLink archive axis background bgColor border borderColor bottomMargin cellPadding cellSpacing char charOff classID clear code codeBase codeType compact declare face frame frameBorder hSpace leftMargin link longDesc lowSrc marginHeight marginWidth noResize noHref noShade noWrap object profile prompt rightMargin rules scheme scrolling standby summary text topMargin valueType vAlign vLink vSpace allowTransparency autoCorrect autoSave credentialless disablePictureInPicture disableRemotePlayback exportParts part prefix results security unselectable`).set(`for`,`htmlFor`),commaSeparated:[`accept`,`coords`,`exportParts`]},pg={names:Ig(`about accent-height accumulate additive alignment-baseline alphabetic amplitude arabic-form ascent attributeName attributeType azimuth bandwidth baseline-shift baseFrequency baseProfile bbox begin bias by calcMode cap-height clip clip-path clipPathUnits clip-rule color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d datatype defaultAction descent diffuseConstant direction display dur divisor dominant-baseline dx dy edgeMode editable elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity focusable focusHighlight font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format fr from fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits handler hanging hatchContentUnits hatchUnits horiz-adv-x horiz-origin-x horiz-origin-y ideographic image-rendering initialVisibility in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes kerning lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits mask-type maskUnits mathematical mediaCharacterEncoding mediaContentEncodings mediaSize mediaTime mode nav-down nav-down-left nav-down-right nav-left nav-next nav-prev nav-right nav-up nav-up-left nav-up-right numOctaves observer offset Activate Begin End FocusIn FocusOut MouseWheel Repeat Show Zoom opacity operator order orient orientation origin overflow overlay overline-position overline-thickness paint-order panose-1 path pathLength patternContentUnits patternTransform patternUnits phase pitch playbackOrder pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits propagate r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures requiredFonts requiredFormats resource restart result rotate rx ry scale seed shape-rendering side slope snapshotTime specularConstant specularExponent spreadMethod spacing startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width surfaceScale syncBehavior syncBehaviorDefault syncMaster syncTolerance syncToleranceDefault systemLanguage tableValues targetX targetY text-anchor text-decoration text-rendering textLength timelineBegin transformBehavior typeof to transform transform-origin u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em values v-alphabetic v-mathematical vector-effect v-hanging v-ideographic vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility widths word-spacing writing-mode x x1 x2 xChannelSelector x-height y y1 y2 yChannelSelector z zoomAndPan`),commaSeparated:[`g1`,`g2`,`glyphName`]},mg=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),hg=/["&'<>]/g,gg={'"':`"`,"&":`&`,"'":`'`,"<":`<`,">":`>`},_g=/^[$_\p{ID_Start}][$_\p{Join_Control}\p{ID_Continue}]*$/u,vg="Cannot parse `style` attribute",yg="Cannot handle MDX estrees without `evaluator`",bg=1,xg=2,Sg=4,Cg=8,wg=Uint8Array.from({length:128},(e,t)=>{let n=String.fromCharCode(t);return(/[-#/*\\\w]/.test(n)?bg:0)|(/[-\w]/.test(n)?xg:0)|(/[0-9a-z_-]/.test(n)?Sg:0)|(/[;}"'u]/.test(n)?Cg:0)});function Tg(e,{components:t={},evaluator:n}={}){let r=Eg(e,{components:t,evaluator:n,styles:new Map,styleAttributes:new Map},fg,void 0);return r&&typeof r!=`string`?r:(0,Y.jsx)(Y.Fragment,{children:r||void 0})}function Eg(e,t,n,r){if(e.type===`element`)return Dg(e,t,n,r);if(e.type===`text`)return e.value;if(e.type===`root`)return Mg(Y.Fragment,{},jg(e,t,n),r);if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)return Mg(e.name===null?Y.Fragment:Ng(e.name,t),Pg(e.attributes,t.evaluator),jg(e,t,n===fg&&e.name===`svg`?pg:n),r);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)return Fg(e.data?.estree,t.evaluator);if(e.type===`mdxjsEsm`){if(!e.data?.estree||!t.evaluator)throw Error(yg);return t.evaluator.evaluateProgram(e.data.estree)}}function Dg(e,t,n,r){let i=n===fg&&e.tagName.toLowerCase()===`svg`?pg:n,a={},o;for(let n in e.properties){let r=e.properties[n];if(r==null||Number.isNaN(r)||n===`children`||!Object.hasOwn(e.properties,n))continue;let s=Lg(i,n);if(Array.isArray(r)&&(r=i.commaSeparated.includes(s)?(r.join(`, `)+(r.at(-1)===``?`, `:``)).trim():r.join(` `).trim()),s===`style`&&typeof r==`object`)a.style=r;else if(s===`style`){let e=String(r),n=t.styles.get(e);n||t.styles.set(e,n=Bg(e)),a.style=n}else s===`align`&&typeof r==`string`&&(e.tagName===`td`||e.tagName===`th`)?o=r:a[s]=r}o&&(a.style={...a.style,textAlign:o});let s=Object.hasOwn(t.components,e.tagName)?t.components[e.tagName]:e.tagName,c=e.children[0];if(typeof s==`string`&&c?.type===`element`&&c.tagName===`span`&&!t.components.span&&!mg.has(e.tagName)){let n=Og(e.children,t);if(n!==void 0)return a.dangerouslySetInnerHTML={__html:n},Mg(s,a,[],r)}return Mg(s,a,jg(e,t,i),r)}function Og(e,t){let n=``;for(let r of e){if(r.type===`text`){n+=Ag(r.value);continue}if(r.type!==`element`||r.tagName!==`span`)return;n+=`<span`;for(let e in r.properties){let i=r.properties[e];if(i==null||Number.isNaN(i)||e===`children`)continue;if(e===`style`&&typeof i==`string`){n+=kg(i,t);continue}let a=e===`className`?`class`:e;if(a!==`class`&&!a.startsWith(`data-`)||typeof i!=`string`&&typeof i!=`number`&&!Array.isArray(i))return;n+=` ${a}="${Ag(Array.isArray(i)?i.join(` `).trim():String(i))}"`}let e=Og(r.children,t);if(e===void 0)return;n+=`>${e}</span>`}return n}function kg(e,{styleAttributes:t}){let n=t.get(e);if(n!==void 0)return n;n=``;for(let[t,r]of Object.entries(Bg(e))){let e=t.startsWith(`--`)?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,`-ms-`);n+=`${n?`;`:` style="`}${Ag(e)}:${Ag(r)}`}return n&&(n+=`"`),t.set(e,n),n}function Ag(e){return e.replace(hg,e=>gg[e])}function jg(e,t,n){let r=[],i=e.type===`element`&&mg.has(e.tagName),a;for(let o of e.children){let e;if(o.type===`text`)e=o.value;else{let r,i=o.type===`element`?o.tagName:o.type===`mdxJsxFlowElement`||o.type===`mdxJsxTextElement`?o.name:void 0;if(i){a??=new Map;let e=a.get(i)??0;r=`${i}-${e}`,a.set(i,e+1)}if(e=Eg(o,t,n,r),e===void 0)continue}i&&typeof e==`string`&&zg(e)||r.push(e)}return r}function Mg(e,t,n,r){n.length>1?t.children=n:n[0]&&(t.children=n[0]);let i=n.length>1||Array.isArray(t.children)?Y.jsxs:Y.jsx;return r?i(e,t,r):i(e,t)}function Ng(e,{components:t,evaluator:n}){let r;if(e.includes(`.`))for(let t of e.split(`.`)){let e=_g.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t},n=e.type===`Literal`;r=r?{type:`MemberExpression`,object:r,property:e,computed:n,optional:!1}:e}else _g.test(e)&&!/^[a-z]/.test(e)&&(r={type:`Identifier`,name:e});if(!r)return Object.hasOwn(t,e)?t[e]:e;if(!n)throw Error(yg);return n.evaluateExpression(r)}function Pg(e,t){let n={};for(let r of e)r.type===`mdxJsxExpressionAttribute`?Object.assign(n,Fg(r.data?.estree,t,!0)):r.value&&typeof r.value==`object`?n[r.name]=Fg(r.value.data?.estree,t):n[r.name]=r.value===null||r.value;return n}function Fg(e,t,n=!1){if(!e||!t)throw Error(yg);let{expression:r}=e.body[0];return n&&(r=r.properties[0].argument),t.evaluateExpression(r)}function Ig(e){let t=new Map([[`class`,`className`]]);for(let e of ug.split(` `)){let n=`aria-${e.toLowerCase()}`;t.set(n,n).set(`aria${e}`,n).set(`aria${e.toLowerCase()}`,n)}for(let n of`${dg} ${e}`.split(` `)){n.charCodeAt(0)<97&&(n=`on${n}`);let e=n.replace(/[-:](.)/g,(e,t)=>t.toUpperCase());t.set(n,e).set(e,e).set(e.toLowerCase(),e)}return t}function Lg({names:e},t){return t.startsWith(`data-`)?t:e.get(t)??e.get(t.toLowerCase())??Rg(t)}function Rg(e){if(e.charCodeAt(4)===45||/-[a-z]/.test(e)||!/^data[-\w.:]+$/i.test(e))return e;let t=e.slice(4).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);return t.charCodeAt(0)===45?`data${t}`:`data-${t}`}function zg(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9&&n!==10&&n!==12&&n!==13)return!1}return!0}function Bg(e){let t={},n=Wg(e,Jg(e,0));for(;;){let r=n,i=!0,a=e.charCodeAt(n);for(;Xg(a,bg);)Xg(a,xg)||(i=!1),a=e.charCodeAt(++n);if(n===r)break;if(a===91){let t=n+1;for(;Xg(e.charCodeAt(t),Sg);)t++;t>n+1&&e.charCodeAt(t)===93&&(n=t+1,i=!1)}let o=i?e.slice(r,n):Kg(e.slice(r,n));if(n=Gg(e,Jg(e,n)),e.charCodeAt(n)!==58)throw Error(vg);let s=Jg(e,n+1);n=Vg(e,s);let c=Kg(e.slice(s,n)).trim();for(c&&(t[qg(o)]=c);e.charCodeAt(n)===59||Yg(e.charCodeAt(n));)n++;n=Wg(e,n)}return t}function Vg(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(!Xg(n,Cg))t++;else if(n===59||n===125)break;else t=n===117?e.startsWith(`url(`,t)&&Ug(e,t+4)||t+1:Hg(e,t,n)??t+1}return t}function Hg(e,t,n){for(let r=t+1;r<e.length;r++){let t=e.charCodeAt(r);if(t===92)r++;else if(t===n)return r+1}}function Ug(e,t){let n=e.charCodeAt(t);if(n===34||n===39){let r=Hg(e,t,n);if(r!==void 0&&e.charCodeAt(r)===41)return r+1}let r=e.indexOf(`)`,t);if(r!==-1)return r+1}function Wg(e,t){for(let n=Gg(e,t);n!==t;n=Gg(e,t))t=n;return t}function Gg(e,t){if(e.charCodeAt(t)!==47||e.charCodeAt(t+1)!==42)return t;let n=e.indexOf(`*/`,t+2);if(n===-1)throw Error(vg);return Jg(e,n+2)}function Kg(e){let t=``,n=0;for(let r=e.indexOf(`/*`);r!==-1;r=e.indexOf(`/*`,n)){let i=e.indexOf(`*/`,r+2);if(i===-1)break;t+=e.slice(n,r),n=i+2}return n===0?e:t+e.slice(n)}function qg(e){if(e.startsWith(`--`))return e;let t=e.toLowerCase();return t.startsWith(`-ms-`)&&(t=t.slice(1)),t.includes(`-`)?t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()):t}function Jg(e,t){for(;Yg(e.charCodeAt(t));)t++;return t}function Yg(e){return e===32||e>=9&&e<=13||e>127&&String.fromCharCode(e).trim()===``}function Xg(e,t){return e<128&&(wg[e]&t)!==0}var Zg=fn(),Qg=()=>()=>{},$g=()=>!0,e_=()=>!1;function t_(){return(0,Zg.useSyncExternalStore)(Qg,$g,e_)}function n_(){let[e,t]=J.useState(!1);return J.useEffect(()=>{t(!0)},[]),e}var r_=b(18)?t_:n_;function i_(){return!r_()}var a_=J.createContext(void 0),o_={disableStyleElements:!1};function s_(){return J.useContext(a_)??o_}function c_(e){let{script:t}=e,{nonce:n}=s_();return i_()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function l_(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var u_=`--active-tab-left`,d_=`--active-tab-right`,f_=`--active-tab-top`,p_=`--active-tab-bottom`,m_=`--active-tab-width`,h_=`--active-tab-height`,g_,__={...xt,activeTabPosition:()=>null,activeTabSize:()=>null},v_=2,y_=J.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=mt(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Ct(),p=E();J.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Qr(e),{width:r,height:i}=Qr(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=b_(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=S_(e);Math.abs(u-p.x-m)<=v_&&Math.abs(f-p.y-g)<=v_&&(m=u,g=f),v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,C=b?{width:v,height:y}:null,w=b?{[u_]:`${m}px`,[d_]:`${h}px`,[f_]:`${g}px`,[p_]:`${_}px`,[m_]:`${v}px`,[h_]:`${y}px`}:void 0,T=S(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:__});return u==null?null:(0,Y.jsxs)(J.Fragment,{children:[T,i&&(g_||=(0,Y.jsx)(c_,{script:``}))]})});function b_(e,t){let n=x_(e),r=x_(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=V(e);for(;Xe(o)&&o!==t&&!P(o);)i-=o.scrollLeft,a-=o.scrollTop,o=V(o);return{left:i,top:a}}function x_(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function S_(e){let t=qe(e).getComputedStyle(e),{x:n,y:r}=l_(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=C_(t[0],e.offsetWidth),a+=C_(t[1],e.offsetHeight)}return{x:i,y:a}}function C_(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}async function w_(e,t){let n=e.getBundledThemes(),r=e.getLoadedThemes(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):e.name===void 0||!r.includes(e.name));i.length>0&&await e.loadTheme(...i)}async function T_(e,t){let n=e.getBundledLanguages(),r=e.getLoadedLanguages(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):!r.includes(e.name));i.length>0&&await e.loadLanguage(...i)}function E_(e){return`theme`in e?[e.theme]:Object.values(e.themes).filter(e=>e!==void 0)}function D_(e){let t;return{init(n){let r=e.init(n);return r instanceof Promise&&r.catch(()=>{t===r&&(t=void 0)}),t=r},getOrInit(){return t??this.init()}}}function O_(e,t){let{fallbackLanguage:n=`text`,...r}=t,i=typeof e==`function`?void 0:e,a=new Set;function o({lang:e,structure:t=r.structure,meta:i}){return{...r,lang:a.has(e)?n:e,structure:t,meta:r.meta?{...r.meta,...i}:i}}function s(){if(!i)throw Error(`[Fumadocs] load the language before highlighting`);return i}let c=new Map;async function l(t){let[o,{isSpecialLang:s}]=await Promise.all([typeof e==`function`?e():e,ct(()=>import(`./core-CPETvDaW.js`),[])]);await Promise.all([w_(o,E_(r)),T_(o,[t,n])]),!s(t)&&!o.getLoadedLanguages().includes(t)&&a.add(t),i=o}return{async loadLanguage(...e){let t=[];for(let n of e){let e=c.get(n);e||(c.set(n,e=l(n)),e.catch(()=>c.delete(n))),t.push(e)}await Promise.all(t)},codeToHast(e,t){return s().codeToHast(e,o(t))},override(n){return O_(i??e,{...t,...n})}}}var k_=(0,J.createContext)(void 0);function A_(e){let t=(0,J.use)(k_);return(0,Y.jsx)(wt,{...e,...t,className:K(`my-0`,e.className,t?.className),children:(0,Y.jsx)(Tt,{children:e.children})})}function j_({highlighter:e}){return function(t){return(0,Y.jsx)(M_,{highlighter:e,components:{pre:A_},...t})}}function M_({highlighter:e,lang:t,code:n,codeblock:r,wrapInSuspense:i=!0,components:a}){let o=(0,Y.jsx)(P_,{highlighter:e,lang:t,code:n,components:a});return i&&e.loadLanguage&&(o=(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(F_,{code:n,components:a}),children:o})),(0,Y.jsx)(k_,{value:r,children:o})}var N_=new WeakMap;function P_({highlighter:e,lang:t,code:n,components:r}){if(e.loadLanguage){let n=N_.get(e);n||N_.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=e.loadLanguage(t)),(0,J.use)(r)}return Tg(e.codeToHast(n,{lang:t}),{components:r})}function F_({code:e,components:t={}}){let{pre:n=`pre`,code:r=`code`}=t;return(0,Y.jsx)(n,{children:(0,Y.jsx)(r,{children:e.split(`
|
|
118
118
|
`).map((e,t)=>(0,Y.jsx)(`span`,{className:`line`,children:e},t))})})}var I_={themes:{light:`github-light`,dark:`github-dark`}};function L_({highlighter:e,shiki:t,shikiOptions:n=I_}){if(e)return e;if(!t)throw Error("[Fumadocs] pass a `highlighter` for code blocks");return O_(()=>t.getOrInit(),{defaultColor:!1,...n})}function R_({highlighter:e,components:t}){let n=t.CodeBlock??j_({highlighter:e}),r;return{CodeBlock:n,Markdown:t.Markdown??(({md:e})=>(0,J.useMemo)(()=>(r??=z_(n),r(e)),[e])),Heading:t.Heading??(({depth:e,...t})=>(0,Y.jsx)(gt,{as:`h${e}`,...t}))}}function z_(e){function t(t){let n=J.Children.only(t.children).props,r=n.children;if(typeof r!=`string`)return null;let i=n.className?.split(` `).find(e=>e.startsWith(`language-`))?.slice(9)??`text`;return(0,Y.jsx)(e,{lang:i,code:r.trimEnd()})}let n={components:{...At,img:`img`,pre:t}},r=Uf().use(lg).use(Qp);return e=>Tg(r.runSync(r.parse(e)),n)}function B_(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function V_({storageKey:e,keyOf:t,resolve:n,defaultKey:r}){let[i,a]=(0,J.useState)(()=>r===void 0?null:n(r)),o=(0,J.useRef)(void 0);return(0,J.useEffect)(()=>{if(o.current===e)return;o.current=e;let r=localStorage.getItem(e);if(r)try{let e=JSON.parse(r);if(!B_(e)||!B_(e.variables))return;let i=n(t(e));i&&a({...i,variables:e.variables})}catch{}},[e,t,n]),(0,J.useMemo)(()=>({server:i,setServer(t){let r=n(t);r&&(localStorage.setItem(e,JSON.stringify(r)),a(r))},setServerVariables(t){a(n=>{if(!n)return null;let r={...n,variables:t};return localStorage.setItem(e,JSON.stringify(r)),r})}}),[i,n,e])}function H_(e,t){return t.startsWith(`/`)&&(t=t.slice(1)),e.endsWith(`/`)&&(e=e.slice(0,-1)),t.length>0?e+`/`+t:e}function U_(e,t){for(let[n,r]of Object.entries(t))e=e.replaceAll(`{${n}}`,r);return e}var W_=(0,J.createContext)(null),G_=e=>e.url,K_=()=>()=>{};function q_(){let e=(0,J.use)(W_);if(!e)throw Error(`Component must be used under <OpenAPIProvider />`);return e}function J_({servers:e,storageKeyPrefix:t,children:n}){let r=(0,J.useCallback)(t=>{let n=e?.find(e=>e.url===t);return n?{name:n.name,url:t,variables:Y_(n)}:null},[e]),i=V_({storageKey:`${t}server-url`,keyOf:G_,resolve:r,defaultKey:e?.[0]?.url}),{server:a}=i,o=(0,J.useSyncExternalStore)(K_,()=>!0,()=>!1),s=(0,J.useCallback)((e=``)=>{let t=o?window.location.origin:`https://example.com`,n=(a&&URL.parse(U_(a.url,a.variables),t)||new URL(t)).href;return e?H_(n,e):n},[a,o]);return(0,Y.jsx)(W_,{value:(0,J.useMemo)(()=>({servers:e,resolveUrl:s,...i}),[e,s,i]),children:n})}function Y_(e){let t={};if(!e.variables)return t;for(let[n,r]of Object.entries(e.variables))r.default!==void 0&&(t[n]=String(r.default));return t}var X_=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function Z_(e){return X_.test(e)?e:JSON.stringify(e)}function Q_(e){if(e===null)return`null`;switch(typeof e){case`string`:return JSON.stringify(e);case`number`:case`boolean`:return String(e);case`object`:{if(Array.isArray(e))return`[${e.map(Q_).join(`, `)}]`;let t=Object.entries(e);return t.length===0?`Record<string, never>`:`{ ${t.map(([e,t])=>`${Z_(e)}: ${Q_(t)}`).join(`; `)} }`}default:return`unknown`}}function $_(e){let t=``;for(let n of e)t=t.length===0?n:`${t} | ${n}`;return t.length===0?`never`:t}function ev(e){let t=0,n;for(let r=0;r<e.length;r++){let i=e[r];if(n!==void 0)i===`\\`?r++:i===n&&(n=void 0);else switch(i){case`"`:case`'`:n=i;break;case`{`:case`[`:case`(`:case`<`:t++;break;case`}`:case`]`:case`)`:case`>`:t--;break;case`|`:case`&`:if(t===0)return!0}}return!1}function tv(e){return ev(e)?`(${e})`:e}function nv(e,t,n){if(typeof e!=`object`||!e)return;let r=[];n&&typeof e.title==`string`&&e.title.length>0&&r.push(e.title),typeof e.description==`string`&&e.description.length>0&&r.push(...e.description.split(`
|
|
119
119
|
`));let i=[];if(e.deprecated===!0&&i.push(`@deprecated`),e.default!==void 0&&i.push(`@default ${JSON.stringify(e.default)}`),Array.isArray(e.examples))for(let t of e.examples)i.push(`@example ${JSON.stringify(t)}`);if(r.length===0&&i.length===0)return;i.length>0&&(r.length>0&&r.push(``),r.push(...i));let a=r.map(e=>e.replaceAll(`*/`,`*\\/`));return a.length===1?`${t}/** ${a[0]} */`:`${t}/**\n${a.map(e=>`${t} *${e.length>0?` ${e}`:``}`).join(`
|
|
120
120
|
`)}\n${t} */`}var rv=class{root;names=new Map;usedNames=new Set;declarations=[];interfaceLike=new WeakMap;INDENT;includeReadOnly;includeWriteOnly;constructor(e,t){this.root=e,this.INDENT=t.tab??` `,this.includeReadOnly=t.readOnly??!1,this.includeWriteOnly=t.writeOnly??!1}emitAll(){let e=[];for(let t=0;t<this.declarations.length;t++)e.push(this.emitDeclaration(this.declarations[t]));return`${e.join(`
|
|
@@ -134,7 +134,7 @@ ${Do(i.join(`
|
|
|
134
134
|
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]},Xk=new Set([`desc`,`foreignObject`,`title`]);function Zk(e,t,n,r){let{schema:i}=r,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];i.space===`html`&&e.tagName===`svg`&&(r.schema=HO);let c=Qk(r,e.properties);r.schema.space===`svg`&&Xk.has(e.tagName)&&(r.schema=VO);let l=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);if(r.schema=i,l&&(o=!1),c||!a||!Uk(e,t,n)){if(s.push(`<`,e.tagName,c?` `+c:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)){let e=c.charAt(c.length-1);(!r.settings.tightSelfClosing||e===`/`||e&&e!==`"`&&e!==`'`)&&s.push(` `),s.push(`/`)}s.push(`>`)}return s.push(l),o||a&&Dk(e,t,n)||s.push(`</`+e.tagName+`>`),s.join(``)}function Qk(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=$k(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function $k(e,t,n){let r=RO(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let o=uk(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Yk.name[i][a]}));if(n===!0||(n=Array.isArray(n)?(r.commaSeparated?gk:_k)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n))return o;let s;if(e.settings.preferUnquoted&&(s=uk(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Yk.unquoted[i][a]}))),s!==n){let{quote:t}=e;e.settings.quoteSmart&&Ft(n,t)>Ft(n,e.alternative)&&(t=e.alternative),s=t+uk(n,Object.assign({},e.settings.characterReferences,{subset:(t===`'`?Yk.single:Yk.double)[i][a],attribute:!0}))+t}return o+(s&&`=`+s)}var eA=[`<`,`&`];function tA(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:uk(e.value,Object.assign({},r.settings.characterReferences,{subset:eA}))}function nA(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tA(e,t,n,r)}function rA(e,t,n,r){return r.all(e)}var iA=Pt(`type`,{invalid:aA,unknown:oA,handlers:{comment:mk,doctype:hk,element:Zk,raw:nA,root:rA,text:tA}});function aA(e){throw Error("Expected node, not `"+e+"`")}function oA(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var sA={},cA={},lA=[];function uA(e,t){let n=t||sA,r=n.quote||`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");let i=r===`"`?`'`:`"`;return{one:dA,all:fA,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||uO,characterReferences:n.characterReferences||cA,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?HO:VO,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function dA(e,t,n){return iA(e,t,n,this)}function fA(e){let t=[],n=e&&e.children||lA,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var pA=/\s+/g;function mA(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(pA)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(pA);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var hA=/:?lang=["']([^"']+)["']/g,gA=/(?:```|~~~)([\w-]+)/g,_A=/\\begin\{([\w-]+)\}/g,vA=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,yA=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function bA(e){let t=AD(e,!0),n=t.map(([e])=>e),r=t.map(([,e])=>e);function i(t){if(t===e.length)return{line:n.length-1,character:n.at(-1).length};let i=0,a=n.length-1;for(;i<a;){let e=i+a+1>>>1;r[e]<=t?i=e:a=e-1}return{line:i,character:t-r[i]}}function a(e,t){return r[e]+t}return{lines:n,indexToPos:i,posToIndex:a}}function xA(e,t,n){let r=new Set;for(let t of e.matchAll(hA)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(gA)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(_A)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(vA)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(yA.test(e)&&r.add(`yaml`),!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var SA=[`color`,`background-color`];function CA(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function wA(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function TA(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=wA(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return CA(e,a)})):e}function EA(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>DA(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&SA.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new zT('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function DA(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&oE.Italic&&(t[`font-style`]=`italic`),e.fontStyle&oE.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&oE.Underline&&n.push(`underline`),e.fontStyle&oE.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function OA(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function kA(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=bA(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new zT(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new zT(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new zT(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));AA(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return TA(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new zT(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=MA(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new zT(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new zT(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&mA(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.push(()=>a(r,e));i(n.line,0,n.character,e)}}for(let e=s.length-1;e>=0;e--)s[e]()}}}function AA(e){if(!jA(e))for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new zT(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new zT(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function jA(e){let t=[],n=new Map,r=new Map;for(let i=0;i<e.length;i++){let{start:a,end:o}=e[i];if(a.offset>o.offset)return!1;a.offset!==o.offset&&(t.push(e[i]),n.has(a.offset)||n.set(a.offset,i),r.set(o.offset,i))}for(let t=0;t<e.length;t++){let{start:i,end:a}=e[t];if(i.offset===a.offset&&((n.get(i.offset)??t)<t||(r.get(i.offset)??t)>t))return!1}t.sort((e,t)=>e.start.offset-t.start.offset||t.end.offset-e.end.offset);let i=[];for(let{start:e,end:n}of t){for(;i.length&&i.at(-1)<=e.offset;)i.pop();if(i.length&&n.offset>i.at(-1))return!1;i.push(n.offset)}return!0}function MA(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(MA).join(``):``}var NA=[kA()];function PA(e){let t=FA(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...NA]}function FA(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var IA=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],LA={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function RA(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function zA(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function BA(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)LA[r]&&t.push({type:`setDecoration`,value:LA[r]});else if(r<=29){let e=LA[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:IA[r-30]}});else if(r===38){let n=zA(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:IA[r-40]}});else if(r===48){let n=zA(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:IA[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:IA[r-100+8]}})}}return t}function VA(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=RA(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=BA(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var HA={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function UA(e=HA){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<IA.length;e++)r.push(t(IA[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var WA=/#([0-9a-f]{3,8})/i,GA=/var\((--[\w-]+-ansi-[\w-]+)\)/,KA={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function qA(e,t,n){let r=xD(e,n),i=AD(t),a=UA(Object.fromEntries(IA.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||KA[t]]}))),o=VA();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=SD(i,r),o=SD(o,r),n.decorations.has(`dim`)&&(i=JA(i));let s=oE.None;return n.decorations.has(`bold`)&&(s|=oE.Bold),n.decorations.has(`italic`)&&(s|=oE.Italic),n.decorations.has(`underline`)&&(s|=oE.Underline),n.decorations.has(`strikethrough`)&&(s|=oE.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function JA(e){let t=e.match(WA);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(GA);return n?`var(${n[1]}-dim)`:e}function YA(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!TD(r)&&!DD(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return qA(r,t,n)}return $D(e,t,n)}function XA(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new zT("`themes` option must not be empty");let p=cO(e,t,n,YA);if(c=qD(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new zT(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>EA(e,h,u,l,d))),c&&KD(a,c);let g=f.map(e=>xD(e.theme,n));i=ZA(f,m,g,u,l,`fg`,d),r=ZA(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=xD(n.theme,n);a=YA(e,t,n);let l=e.getTheme(n.theme);r=SD(l.bg,s),i=SD(l.fg,s),o=l.name,c=qD(a)}else throw new zT("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function ZA(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=SD(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new zT('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${SD(t[r][a],n[r])||`inherit`}, ${SD(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var QA=/^\s+$/,$A=/^(\s*)(.*?)(\s*)$/;function ej(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>ej(e,t,n),codeToTokens:(t,n)=>XA(e,t,n)}){let i=t;for(let e of PA(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=XA(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=nj(a):d===`never`&&(a=rj(a)),f&&(a=ij(a));let p={...r,get source(){return i}};for(let e of PA(n))a=e.tokens?.call(p,a)||a;return tj(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function tj(e,t,n,r=qD(e)){let i=PA(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:mA,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
135
135
|
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=OA(a.htmlStyle||DA(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&KD(m,r),m}function nj(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&oE.Underline||i.fontStyle&oE.Strikethrough));o&&QA.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function rj(e){return e.map(e=>e.flatMap(e=>{if(QA.test(e.content))return e;let t=e.content.match($A);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function ij(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=OA(e.htmlStyle||DA(e)),i=OA(n.htmlStyle||DA(n)),a=e.fontStyle&&(e.fontStyle&oE.Underline||e.fontStyle&oE.Strikethrough),o=n.fontStyle&&(n.fontStyle&oE.Underline||n.fontStyle&oE.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var aj=uA;function oj(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>ej(e,t,n),codeToTokens:(t,n)=>XA(e,t,n)},i=aj(ej(e,t,n,r));for(let e of PA(n))i=e.postprocess?.call(r,i,n)||i;return i}async function sj(e){let t=await UD(e);return{getLastGrammarState:(...e)=>eO(t,...e),codeToTokensBase:(e,n)=>YA(t,e,n),codeToTokensWithThemes:(e,n)=>cO(t,e,n),codeToTokens:(e,n)=>XA(t,e,n),codeToHast:(e,n)=>ej(t,e,n),codeToHtml:(e,n)=>oj(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function cj(e){let t=VD(e);return{getLastGrammarState:(...e)=>eO(t,...e),codeToTokensBase:(e,n)=>YA(t,e,n),codeToTokensWithThemes:(e,n)=>cO(t,e,n),codeToTokens:(e,n)=>XA(t,e,n),codeToHast:(e,n)=>ej(t,e,n),codeToHtml:(e,n)=>oj(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function lj(e){let t;async function n(n){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}return t=e({...n,themes:n.themes||[],langs:n.langs||[]}),t}return n}var uj=lj(sj);function dj(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,ED(n))return[];let r=t[n];if(!r)throw new zT(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(OD(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new zT(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await sj({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function fj(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function pj(e,t){let n=fj(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}function mj(e={}){let{name:t=`css-variables`,variablePrefix:n=`--shiki-`,fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:`dark`,colors:{"editor.foreground":i(`foreground`),"editor.background":i(`background`),"terminal.ansiBlack":i(`ansi-black`),"terminal.ansiRed":i(`ansi-red`),"terminal.ansiGreen":i(`ansi-green`),"terminal.ansiYellow":i(`ansi-yellow`),"terminal.ansiBlue":i(`ansi-blue`),"terminal.ansiMagenta":i(`ansi-magenta`),"terminal.ansiCyan":i(`ansi-cyan`),"terminal.ansiWhite":i(`ansi-white`),"terminal.ansiBrightBlack":i(`ansi-bright-black`),"terminal.ansiBrightRed":i(`ansi-bright-red`),"terminal.ansiBrightGreen":i(`ansi-bright-green`),"terminal.ansiBrightYellow":i(`ansi-bright-yellow`),"terminal.ansiBrightBlue":i(`ansi-bright-blue`),"terminal.ansiBrightMagenta":i(`ansi-bright-magenta`),"terminal.ansiBrightCyan":i(`ansi-bright-cyan`),"terminal.ansiBrightWhite":i(`ansi-bright-white`)},tokenColors:[{scope:[`keyword.operator.accessor`,`meta.group.braces.round.function.arguments`,`meta.template.expression`,`markup.fenced_code meta.embedded.block`],settings:{foreground:i(`foreground`)}},{scope:`emphasis`,settings:{fontStyle:`italic`}},{scope:[`strong`,`markup.heading.markdown`,`markup.bold.markdown`],settings:{fontStyle:`bold`}},{scope:[`markup.italic.markdown`],settings:{fontStyle:`italic`}},{scope:`meta.link.inline.markdown`,settings:{fontStyle:`underline`,foreground:i(`token-link`)}},{scope:[`string`,`markup.fenced_code`,`markup.inline`],settings:{foreground:i(`token-string`)}},{scope:[`comment`,`string.quoted.docstring.multi`],settings:{foreground:i(`token-comment`)}},{scope:[`constant.numeric`,`constant.language`,`constant.other.placeholder`,`constant.character.format.placeholder`,`variable.language.this`,`variable.other.object`,`variable.other.class`,`variable.other.constant`,`meta.property-name`,`meta.property-value`,`support`],settings:{foreground:i(`token-constant`)}},{scope:[`keyword`,`storage.modifier`,`storage.type`,`storage.control.clojure`,`entity.name.function.clojure`,`entity.name.tag.yaml`,`support.function.node`,`support.type.property-name.json`,`punctuation.separator.key-value`,`punctuation.definition.template-expression`],settings:{foreground:i(`token-keyword`)}},{scope:`variable.parameter.function`,settings:{foreground:i(`token-parameter`)}},{scope:[`support.function`,`entity.name.type`,`entity.other.inherited-class`,`meta.function-call`,`meta.instance.constructor`,`entity.other.attribute-name`,`entity.name.function`,`constant.keyword.clojure`],settings:{foreground:i(`token-function`)}},{scope:[`entity.name.tag`,`string.quoted`,`string.regexp`,`string.interpolated`,`string.template`,`string.unquoted.plain.out.yaml`,`keyword.other.template`],settings:{foreground:i(`token-string-expression`)}},{scope:[`punctuation.definition.arguments`,`punctuation.definition.dict`,`punctuation.separator`,`meta.function-call.arguments`],settings:{foreground:i(`token-punctuation`)}},{scope:[`markup.underline.link`,`punctuation.definition.metadata.markdown`],settings:{foreground:i(`token-link`)}},{scope:[`beginning.punctuation.definition.list.markdown`],settings:{foreground:i(`token-string`)}},{scope:[`punctuation.definition.string.begin.markdown`,`punctuation.definition.string.end.markdown`,`string.other.link.title.markdown`,`string.other.link.description.markdown`],settings:{foreground:i(`token-keyword`)}},{scope:[`markup.inserted`,`meta.diff.header.to-file`,`punctuation.definition.inserted`],settings:{foreground:i(`token-inserted`)}},{scope:[`markup.deleted`,`meta.diff.header.from-file`,`punctuation.definition.deleted`],settings:{foreground:i(`token-deleted`)}},{scope:[`markup.changed`,`punctuation.definition.changed`],settings:{foreground:i(`token-changed`)}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}var hj=Et;function gj({children:e,className:t,...n}){return(0,Y.jsx)(kt,{...n,className:e=>K(`overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height,opacity] data-starting-style:opacity-0 data-starting-style:h-0 data-ending-style:h-0 data-ending-style:opacity-0`,typeof t==`function`?t(e):t),children:e})}var _j=J.createContext(void 0);function vj(e){let t=J.useContext(_j);if(t===void 0&&!e)throw Error(Ve(33));return t}var yj=J.createContext(void 0);function bj(e){let t=J.useContext(yj);if(t===void 0&&!e)throw Error(Ve(36));return t}var xj=J.createContext(void 0);function Sj(e=!0){let t=J.useContext(xj);if(t===void 0&&!e)throw Error(Ve(25));return t}var Cj=J.createContext(null);function wj(e=`root`){let t=J.useContext(Cj),n=J.useContext(yj);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var Tj={visible:!0,ref:null};function Ej(){return Tj}function Dj(e,t,n=`root`){let r=wj(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??Ej)({label:e.label,children:e.children,render:e.render}),a=M(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function Oj(e){e.preventDefault()}function kj(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=bj(),u=Sj(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return J.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?Oj:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:_e})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!j&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&ye(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var Aj={type:`regular-item`};function jj(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:o,typingRef:s=o.context.typingRef,nativeButton:c,itemMetadata:l,nodeId:u}=e,d=J.useRef(null),{getButtonProps:f,buttonRef:p}=Re({disabled:n,focusableWhenDisabled:!0,native:c,composite:!0}),m=kj({closeOnClick:t,highlighted:r,id:i,nodeId:u,store:o,typingRef:s,itemRef:d,itemMetadata:l}),h=J.useCallback(e=>a(m,{onMouseEnter(e){l.type===`submenu-trigger`&&l.setActive(e.nativeEvent)}},e,f),[m,f,l]),g=M(d,p);return J.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}var Mj=J.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=bj(),f=Be({guess:!0,label:a}),p=ee(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=jj({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:Aj});return S(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),Nj=J.forwardRef(function(e,t){let n=Dj(e,t);return n.visible?(0,Y.jsx)(Mj,{...e,ref:n.ref}):null}),Pj=J.createContext(void 0);function Fj(){return J.useContext(Pj)}function Ij(e,t){let n=Se(e.render);if(J.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function Lj(e,t,n){let r=Ij(e,t),i=r===t?void 0:r;return[r,J.useCallback(e=>n?.(e?i:void 0),[i,n])]}function Rj(e,t,n){let r=Se(e.render),i=J.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var zj=J.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:c,...u}=e,{store:d,defaultFloatingId:f,setRenderedFloatingId:p,virtualFocus:m,orientation:h}=bj(),g=Fj(),{side:_,align:v}=vj(),y=In(!0)!=null,b=d.useState(`open`),x=d.useState(`transitionStatus`),C=d.useState(`popupProps`),w=d.useState(`mounted`),T=d.useState(`instantType`),E=d.useState(`activeTriggerElement`),D=d.useState(`parent`),O=d.useState(`lastOpenChangeReason`),k=d.useState(`rootId`),A=d.useState(`floatingRootContext`),j=d.useState(`floatingTreeRoot`),M=d.useState(`closeDelay`),N=d.useState(`hoverEnabled`),ee=d.useState(`disabled`),P=d.useState(`openMethod`),F=d.useState(`activeTriggerId`),I=d.useState(`listElement`),[L,R]=Lj(e,f,p),te=Rj(e,E,F),ne=D.type===`menu`?g:void 0,z=D.type===`context-menu`,B=c??D.type!==`menu`;c===void 0&&I&&D.type!==`menu`&&(B=()=>d.state.activeIndex===null&&I),s({open:b,ref:d.context.popupRef,onComplete(){b&&d.context.onOpenChangeComplete?.(!0)}}),J.useEffect(()=>{function e(e){d.setOpen(!1,l(e.reason,e.domEvent))}return j.events.on(`close`,e),()=>{j.events.off(`close`,e)}},[j.events,d]),Kt(A,{enabled:N&&!ee&&!z&&D.type!==`menubar`,closeDelay:M});let V=d.useStateSetter(`popupElement`),{parentVirtualFocusRef:H,handleFocus:U}=(J.useContext(Cj)?.useParentHandoff??Vj)(d,D,b,m),re={transitionStatus:x,side:_,align:v,open:b,nested:D.type===`menu`,instant:T},ie=S(`div`,e,{state:re,ref:[t,d.context.popupRef,V,R],stateAttributesMapping:Bt,props:[C,{id:L,...I?{role:`presentation`}:{role:`menu`,"aria-orientation":h===`horizontal`?`horizontal`:void 0,"aria-labelledby":te},onKeyDown(e){ne?.onPopupKeyDown?.(e),y&&Le.has(e.key)&&e.stopPropagation()},onFocus:U},Ln(x),u,{"data-rootownerid":k}]}),ae=D.type===void 0||z;(E||D.type===`menubar`&&O!==`outside-press`)&&(ae=!0);let oe=ne?.getReturnElement??H;return(0,Y.jsx)(Gn,{context:A,openInteractionType:P,modal:z,disabled:!w,returnFocus:a??oe??ae,explicitReturnFocus:a===void 0&&oe?!1:void 0,initialFocus:B,restoreFocus:!0,getInsideElements:D.type===void 0?()=>[d.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:D.type===`menubar`?void 0:j,previousFocusableElement:E,nextFocusableElement:D.type===void 0?d.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:ie})}),Bj={parentVirtualFocusRef:void 0,handleFocus:void 0};function Vj(){return Bj}var Hj=J.forwardRef(function(e,t){let n=wj()?.Popup??zj;return(0,Y.jsx)(n,{...e,ref:t})}),Uj=J.createContext(void 0);function Wj(){let e=J.useContext(Uj);if(e===void 0)throw Error(Ve(32));return e}var Gj=J.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=bj();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,Y.jsx)(Uj.Provider,{value:n,children:(0,Y.jsx)(Jn,{ref:t,...r,portalOwnerRole:o})})}),Kj=J.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=Mn,style:_,...v}=e,{store:y,virtualFocus:b,syncHighlightedItem:x}=bj(),S=Wj(),C=Sj(!0),w=y.useState(`parent`),T=y.useState(`floatingRootContext`),E=y.useState(`floatingTreeRoot`),D=y.useState(`mounted`),O=y.useState(`open`),k=y.useState(`modal`),A=y.useState(`openMethod`),j=y.useState(`activeTriggerElement`),M=y.useState(`transitionStatus`),N=y.useState(`positionerElement`),ee=y.useState(`instantType`),P=y.useState(`adaptiveOrigin`),I=y.useState(`lastOpenChangeReason`),L=y.useState(`floatingNodeId`),R=y.useState(`floatingParentNodeId`),te=T.useState(`domReferenceElement`),ne=n,z=c,B=u,V=s,H=g;w.type===`context-menu`&&(ne=n??w.context?.anchor,V??=`start`,!o&&V!==`center`&&(B=e.alignOffset??2,z=e.sideOffset??-5));let re=o,ie=V;w.type===`menu`?(re??=`inline-end`,ie??=`start`,H=e.collisionAvoidance??An):w.type===`menubar`&&(re??=w.context.orientation===`vertical`?`inline-end`:`bottom`,ie??=`start`);let oe=w.type===`context-menu`,se=$t({anchor:ne,floatingRootContext:T,positionMethod:C?`fixed`:r,mounted:D,side:re,sideOffset:z,align:ie,alignOffset:B,arrowPadding:oe?0:p,collisionBoundary:d,collisionPadding:f,sticky:m,nodeId:L,keepMounted:S,disableAnchorTracking:h,collisionAvoidance:H,shift:oe?{crossAxis:!(`side`in H&&H.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:E,adaptiveOrigin:P,lazyFlip:b?`placement`:!1});J.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===L&&y.set(`hoverEnabled`,!1),e.nodeId!==L&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,l(F)))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[y,E.events,L]),J.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,l(t))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[E.events,y]);let W=He();J.useEffect(()=>{O||W.clear()},[O,W]),J.useEffect(()=>{function e(e){if(O&&e.nodeId===y.select(`floatingParentNodeId`)){if(e.target&&j&&j!==e.target){let e=y.select(`closeDelay`);e>0?W.isStarted()||W.start(e,()=>{y.setOpen(!1,l(F))}):y.setOpen(!1,l(F))}else W.clear()}}return E.events.on(`itemhover`,e),()=>{E.events.off(`itemhover`,e)}},[E.events,O,j,y,W]),J.useEffect(()=>{let e={open:O,nodeId:L,parentNodeId:R,reason:y.select(`lastOpenChangeReason`)};E.events.emit(`menuopenchange`,e)},[E.events,O,y,L,R]),Sn({store:y,domReference:te,positionerElement:N,open:O});let ce={open:O,side:se.side,align:se.align,anchorHidden:se.anchorHidden,nested:w.type===`menu`,instant:ee},le=w.type===`menubar`&&w.context.modal;Wn(O&&(le||k&&I!==`trigger-hover`),A===`touch`,N,j);let ue=It(e,ce,{styles:se.positionerStyles,transitionStatus:M,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!D,inert:!O}),de=D&&w.type!==`menu`&&(w.type!==`menubar`&&k&&I!==`trigger-hover`||w.type===`menubar`&&w.context.modal),fe=null;return w.type===`menubar`?fe=w.context.contentElement:w.type===void 0&&(fe=j),(0,Y.jsxs)(_j.Provider,{value:se,children:[de&&(0,Y.jsx)(Rn,{ref:w.type===`context-menu`||w.type===`nested-context-menu`?w.context.internalBackdropRef:null,inert:ae(!O),cutout:fe}),(0,Y.jsx)(Qn,{id:L,children:(0,Y.jsx)(U,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,onMapChange:x,children:ue})})]})}),qj=J.createContext(null);function Jj(e){let t=J.useContext(qj);if(t===null&&!e)throw Error(Ve(5));return t}var Yj={...Lt,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=Lt.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>Gt&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!Lt.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},Xj=class extends Wt{constructor(e,t,n=!1){let r=new mn,i=Qj(r,t,n,e);super(i,Zj(r),Yj),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function Zj(e){return{positionerRef:J.createRef(),popupRef:J.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:J.createRef(),beforeTriggerFocusGuardRef:J.createRef(),beforeContentFocusGuardRef:J.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function Qj(e,t,n=!1,r){return{...sr(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:f,inputProps:f,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new kn,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:f,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var $j=J.createContext(null);function eM(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function tM(e,t){return e===`list-navigation`||eM(e,t)}var nM=Xt(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:o,defaultOpen:s=!1,disabled:c=!1,modal:u,loopFocus:d=!0,orientation:p=`vertical`,actionsRef:m,closeParentOnEsc:h=!1,handle:g,triggerId:_,defaultTriggerId:v=null,highlightItemOnHover:y=!0,isSubmenu:b=!1,virtualFocus:x=!1,virtualFocusRef:S,allowEscape:C=!0,resetOnPointerLeave:w=!0}=e,T=Sj(!0),E=bj(!0),O=Jj(!0),A=E?.store,j=E?.virtualFocus??!1,M=J.useMemo(()=>b&&A?{type:`menu`,store:A}:O?{type:`menubar`,context:O}:T&&!A?{type:`context-menu`,context:T}:{type:void 0},[T,A,O,b]),N=ee(),P=ee(),[F,I]=J.useState(void 0),L=(F??P)||void 0,R=tr(),te=M.type===`menu`?M.store:void 0,ne=(n??s)&&te?.state.transitionStatus===`starting`,z=et(()=>ne?te?.state.instantType:void 0).current,B=et(()=>{let e=new Xj({open:s,openProp:n,activeTriggerId:v,triggerIdProp:_,parent:M,disabled:c,highlightItemOnHover:y,modal:M.type===void 0?u:void 0,rootId:N,instantType:z},L,R!=null);return e.context.virtualFocusRef=S,e}).current;B.useControlledProp(`openProp`,n),B.useControlledProp(`triggerIdProp`,_),B.useContextCallback(`onOpenChangeComplete`,i);let V=B.useState(`floatingTreeRoot`),H=zn(V),U=B.useState(`open`),re=B.useState(`activeTriggerElement`),ie=B.useState(`positionerElement`),ae=B.useState(`hoverEnabled`),oe=B.useState(`disabled`),se=B.useState(`lastOpenChangeReason`),ce=B.useState(`parent`),le=B.useState(`activeIndex`),ue=B.useState(`keyboardOpen`),de=B.useState(`payload`),fe=B.useState(`floatingParentNodeId`),pe=J.useRef(null),me=J.useRef(ce.type!==`context-menu`),ge=He(),_e=J.useRef(!0),ve=He(),ye=fe!=null,{openMethod:be,triggerProps:xe}=On(U);B.useSyncedValues({disabled:c,highlightItemOnHover:y,modal:ce.type===void 0?u:void 0,openMethod:be,rootId:N}),hn(B);let{forceUnmount:Se,transitionStatus:Ce}=_n(U,B,()=>{B.set(`allowMouseEnter`,!1)},ne),we=Je(B.context.popupRef);J.useEffect(()=>{if(z===void 0)return;let e=()=>{B.state.instantType===z&&B.set(`instantType`,void 0)};if(!U){e();return}if(Ce!==void 0)return;if(B.context.popupRef.current==null){e();return}let t=new AbortController;return we(e,t.signal),()=>{t.abort()}},[z,U,Ce,we,B]),W(()=>{T&&!E?B.update({parent:{type:`context-menu`,context:T},floatingNodeId:H,floatingParentNodeId:R}):(E||!B.select(`activeTriggerElement`))&&B.update({floatingNodeId:H,floatingParentNodeId:R})},[T,E,H,R,re,B]),J.useEffect(()=>{U||(pe.current=null),ce.type===`context-menu`&&(U?ge.start(500,()=>{me.current=!0}):(ge.clear(),me.current=!1))},[ge,U,ce.type]),W(()=>{!U&&!ae&&B.set(`hoverEnabled`,!0)},[U,ae,B]);let Te=De((e,t)=>{let n=t.reason;if(!e&&!B.select(`open`)||U===e&&t.trigger===re&&se===n)return;let i=Yn(t);if(!e&&t.trigger==null&&(t.trigger=re??void 0),r?.(e,t),t.isCanceled)return;B.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!_e.current)return;e&&n===`trigger-focus`?(_e.current=!1,ve.start(300,()=>{_e.current=!0})):(_e.current=!0,ve.clear());let o=!e&&(n===`escape-key`||n==null);pe.current=t.event;let s=gn(B.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&tM(n,a),s.instantType=ce.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:eM(n,a)?`click`:o?`dismiss`:void 0,B.update(s)}),Ee=Xn({popupStore:B,floatingRootContext:B.state.floatingRootContext,floatingId:L,nested:R!=null,onOpenChange:Te}),Oe=Ee.context.events;W(()=>{let e=({open:e,eventDetails:t})=>Te(e,t);return Oe.on(`setOpen`,e),()=>{Oe?.off(`setOpen`,e)}},[Oe,Te]),W(()=>B.subscribeToParentMenu(),[B]);let ke=J.useCallback(()=>{B.setOpen(!1,l(Ge))},[B]);J.useImperativeHandle(m,()=>({unmount:Se,close:ke}),[Se,ke]);let Ae;ce.type===`context-menu`&&(Ae=ce.context),J.useImperativeHandle(Ae?.positionerRef,()=>ie,[ie]),J.useImperativeHandle(Ae?.actionsRef,()=>({setOpen:Te}),[Te]);let je=Fn(Ee,{enabled:!oe,bubbles:{escapeKey:h&&ce.type===`menu`},outsidePress(){return ce.type!==`context-menu`||pe.current?.type===`contextmenu`||me.current},externalTree:ye?V:void 0}),Me=Ye(),Ne=Yr(Ee,{enabled:!oe,listRef:B.context.itemDomElements,activeIndex:le,virtual:x,nested:ce.type===`menubar`||!x&&ce.type!==void 0,parentOrientation:ce.type===`menubar`?ce.context.orientation:void 0,loopFocus:d,focusItemOnOpen:x?ue:void 0,allowEscape:x&&d&&C,orientation:p,triggerOrientation:x?`vertical`:p,rtl:Me===`rtl`,disabledIndices:k,onNavigate(e,t){B.setActiveIndex(e,xx(t),t?.nativeEvent)},openOnArrowKeyDown:ce.type!==`context-menu`&&!(x&&b),externalTree:!x&&ye?V:void 0,nestedReturnFocusRef:te?.context.virtualFocusRef,focusItemOnHover:y,resetOnPointerLeave:w}),Pe=J.useCallback(e=>{B.context.typingRef.current=e},[B]),Fe=Xr(Ee,{enabled:!oe&&!x,listRef:B.context.itemLabels,elementsRef:B.context.itemDomElements,activeIndex:le,resetMs:500,onMatch:(e,t)=>{U&&e!==le&&B.setActiveIndex(e,he,t.nativeEvent)},onTyping:Pe}),Ie=De(o),Le=J.useRef(-1),Re=De(()=>{let e=B.state.activeIndex,t=e===null?void 0:B.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(Le.current===n&&B.context.reportedItem===t)return;Le.current=n,B.context.reportedItem=t,x&&B.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=B.context;B.context.highlightReason=$e,B.context.highlightEvent=void 0,o&&Ie(t,D(r,i,{label:t===void 0?void 0:B.context.itemLabels.current[n]??void 0}))});W(()=>{Re()},[le,Re]);let ze=J.useMemo(()=>{if(!x)return Ne.reference;if(!Ne.trigger)return f;let{onFocus:e,...t}=Ne.trigger;return t},[x,Ne.reference,Ne.trigger]);B.useSyncedValue(`inputProps`,x?Ne.reference??f:f);let Be=J.useMemo(()=>{let e=a(Fe.reference,ze,je.reference,{onMouseMove(){B.set(`allowMouseEnter`,!0)}},xe);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=U,e},[B,Fe.reference,ze,je.reference,xe,U]),Ve=J.useMemo(()=>{let e=a(Ne.trigger,je.trigger,xe);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Ne.trigger,je.trigger,xe]);et(()=>(B.update({inactiveTriggerProps:Ve}),null));let Ue=J.useMemo(()=>a(Ut,{onMouseMove(){B.set(`allowMouseEnter`,!0),ce.type===`menu`&&B.set(`hoverEnabled`,!1)},onClick(){B.select(`hoverEnabled`)&&B.set(`hoverEnabled`,!1)},onKeyDown(e){let t=B.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Fe.floating,Ne.floating,je.floating),[ce.type,B,Fe.floating,Ne.floating,je.floating]),We=Ne.item??f;on(B,{floatingRootContext:Ee,activeTriggerProps:Be,inactiveTriggerProps:Ve,popupProps:Ue,itemProps:We});let Ke=J.useMemo(()=>({store:B,parent:M,orientation:p,loopFocus:d,allowEscape:C,defaultFloatingId:P,setRenderedFloatingId:I,virtualFocus:x,parentVirtualFocus:j,syncHighlightedItem:Re}),[B,M,p,d,C,P,x,j,Re]),qe=typeof t==`function`?t({payload:de}):t,Xe=(0,Y.jsxs)(yj.Provider,{value:Ke,children:[g&&(0,Y.jsx)(Yt,{handle:g,store:B}),qe]});return(ce.type===void 0||ce.type===`context-menu`)&&(Xe=(0,Y.jsx)(Cn,{externalTree:V,children:Xe})),Xe});function rM(e){let t=J.useContext($j);if(t===null)return(0,Y.jsx)(nM,{...e});let n=t.Root;return(0,Y.jsx)($j.Provider,{value:null,children:(0,Y.jsx)(n,{...t.options,...e})})}function iM(e){if(Xe(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!P(e))return iM(V(e))}function aM(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=J.useRef(!1);return J.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,re(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:f,[t,n,r])}var oM=sn(function(e,t){let{render:n,className:r,style:i,disabled:s=!1,nativeButton:c=!0,id:l,openOnHover:u,delay:d=100,closeDelay:p=0,handle:m,payload:h,...g}=e,_=bj(!0),v=cn(m)??_?.store;if(!v)throw Error(Ve(85));let y=ee(l),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),C=v.useState(`isOpenedByTrigger`,y),w=v.useState(`triggerControlsId`,y),T=J.useRef(null),E=cM(),D=Me(!0),O=En(),k=J.useMemo(()=>O??new kn,[O]),A=zn(k),j=tr(),{registerTrigger:M,isMountedByThisTrigger:N}=$n(y,T,v,{payload:h,closeDelay:p,parent:E,floatingTreeRoot:k,floatingNodeId:A,floatingParentNodeId:j,keyboardEventRelay:D?.relayKeyboardEvent}),P=E.type===`menubar`,F=v.useState(`disabled`),I=s||F||P&&E.context.disabled,{getButtonProps:L,buttonRef:R}=Re({disabled:I,native:c});J.useEffect(()=>{!C&&E.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,C,E.type]);let te=J.useRef(null),ne=He(),z=De(e=>{if(!te.current)return;ne.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;o(te.current,t)||o(v.select(`positionerElement`),t)||t===te.current||t!=null&&iM(t)===v.select(`rootId`)||Py(e,te.current)||k.events.emit(`close`,{domEvent:e,reason:ie})});J.useEffect(()=>{let e=re(te.current);if(C&&v.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,z,{once:!0}),()=>{e.removeEventListener(`mouseup`,z)}},[C,z,v]);let B=P&&E.context.hasSubmenuOpen,V=Ht(x,{enabled:(u??B)&&!I&&(!P||B&&!N),handleClose:an({blockPointerEvents:!P}),mouseOnly:!0,move:!1,restMs:E.type===void 0?d:void 0,delay:{close:p},triggerElementRef:T,externalTree:k,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),H=sM(C,v.select(`lastOpenChangeReason`)),U=bn(x,{enabled:!I,event:C&&P?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:E.type===void 0&&H}),ae=Zt(x,{enabled:!I&&B}),oe=aM({open:C,enabled:P,mouseDownAction:`open`}),se=J.useMemo(()=>a(ae.reference,U.reference),[ae.reference,U.reference]),W=v.useState(`triggerProps`,N),ce=v.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:le,handleFocusTargetFocus:ue}=Vn(v,T),de={disabled:I,open:C},fe=[te,t,R,M,T],pe=[se,V??f,W,{"aria-haspopup":`menu`,"aria-controls":w,id:y,onMouseDown:e=>{v.select(`open`)||(ne.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),re(e.currentTarget).addEventListener(`mouseup`,z,{once:!0}))}},ce,P?{role:`menuitem`}:{},oe,g,L],me=S(`button`,e,{enabled:!P,stateAttributesMapping:zt,state:de,ref:fe,props:pe});return P?(0,Y.jsx)(Qt,{tag:`button`,render:n,className:r,style:i,state:de,refs:fe,props:pe,stateAttributesMapping:zt}):C?(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(nr,{ref:v.context.beforeTriggerFocusGuardRef,onFocus:le},`${y}-pre-focus-guard`),(0,Y.jsx)(J.Fragment,{children:me},y),(0,Y.jsx)(nr,{ref:v.context.triggerFocusTargetRef,onFocus:ue},`${y}-post-focus-guard`)]}):(0,Y.jsx)(J.Fragment,{children:me},y)});function sM(e,t){let n=He(),[r,i]=J.useState(!1);return W(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function cM(){let e=Jj(!0);return J.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var lM=(0,J.createContext)(null),uM=new Set;function dM({id:e,name:t,generated:n,children:r}){let{$root:i,refs:a}=n,[o,s]=(0,J.useState)(()=>({path:[{name:t,$ref:i}]}));(0,J.useEffect)(()=>{if(uM.has(e))return;let t=new URL(window.location.href),n=t.searchParams.get(`path`);if(t.hash!==new URL(`#${e}`,t).hash||!n)return;let r=hM(n);if(r[0].$ref!==i||!pM(a,r,s))return;let o=t.searchParams.get(`s-highlight`)??void 0;uM.add(e),s({path:r,highlighted:o}),o||document.getElementById(e)?.scrollIntoView({behavior:`smooth`})},[e,i,a]);let c=(0,J.useMemo)(()=>({refs:a,path:pM(a,o.path,s),highlighted:o.highlighted,open:(e,t)=>s(n=>({path:[...n.path,{name:e,$ref:t}]})),back:e=>s(t=>({path:t.path.slice(0,e+1)})),getLink(t,n){let r=new URL(window.location.href);return r.hash=e,r.searchParams.set(`s-highlight`,n),r.searchParams.set(`path`,mM(o.path.slice(0,t+1))),r.href}}),[e,a,o]);return(0,Y.jsx)(lM,{value:c,children:r})}function fM(){let e=(0,J.use)(lM);if(!e)throw Error(`Component must be used under <SchemaUIProvider />`);return e}function pM(e,t,n){let r=[];for(let[i,a]of t.entries()){let t=[],o=[],s=e[a.$ref];for(;s&&(s.type===`or`||s.type===`and`)&&s.items.length>0;){let r=o.length,c=a.selected?.[r],l=(s.items.find(e=>e.$type===c)??s.items[0]).$type;o.push(l),t.push({schema:s,value:l,select:e=>n(({path:t,highlighted:n})=>({path:t.with(i,{...t[i],selected:[...o.slice(0,r),e]}),highlighted:n}))}),s=e[l]}if(!s)return;r.push({name:a.name,$ref:a.$ref,unions:t,schema:s})}return r}function mM(e){return e.map(e=>[e.name,e.$ref,...e.selected??[]].join(`\0`)).join(`|`)}function hM(e){return e.split(`|`).map(e=>{let[t,n,...r]=e.split(`\0`);return{name:t,$ref:n,selected:r}})}var gM=(0,J.createContext)(null),_M=`font-mono text-xs text-fd-muted-foreground`,vM=`truncate rounded-md px-1.5 py-1 text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring data-popup-open:bg-fd-accent`,yM=`size-3.5 shrink-0 text-fd-muted-foreground/60`,bM=`scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)]`,xM=`rounded-md border bg-fd-secondary px-1.5 py-0.5 text-xs text-fd-secondary-foreground`;function SM({rootId:e,name:t,required:n=!1,as:r=`property`,selector:i,actions:a,generated:o}){return(0,Y.jsx)(dM,{id:e,name:t,generated:o,children:r===`body`&&o.refs[o.$root].type!==`primitive`?(0,Y.jsx)(TM,{id:e,selector:i,actions:a}):(0,Y.jsx)(CM,{id:e,name:t,$type:o.$root,required:n,actions:(0,Y.jsxs)(Y.Fragment,{children:[i,a]})})})}function CM({id:e,name:t,$type:n,required:r,actions:i}){let{refs:a,path:o,open:s,back:c}=fM(),[l,u]=(0,J.useState)(!1);function d(e,t){return!l&&o[1]?.name===e&&o[1].$ref===t}return(0,Y.jsx)(gM,{value:{isExpanded:d,open(e,t){if(d(e,t))return u(!0);u(!1),c(0),s(e,t)}},children:(0,Y.jsx)(AM,{id:e,name:t,$type:n,required:r,parentIndex:0,actions:i,children:a[n].type!==`primitive`&&(0,Y.jsx)(hj,{open:!l&&o.length>1,children:(0,Y.jsx)(gj,{className:`flow-root overflow-clip`,children:(0,Y.jsx)(TM,{from:1,className:`mt-2.5`})})})})})}var wM={forward:`motion-safe:starting:translate-x-6`,back:`motion-safe:starting:-translate-x-6`};function TM({from:e=0,id:t,selector:n,actions:r,className:i}){let a=G({note:`schema UI`}),{path:o,open:s,back:c}=fM(),l=o.length-1,{name:u,$ref:d,unions:f,schema:p}=o[l],m=`${l}\0${u}\0${d}`,[h,g]=(0,J.useState)({key:m,value:``}),_=h.key===m?h.value:``,v=_.trim().toLowerCase(),[y,b]=(0,J.useState)(),x=(0,J.useRef)(null),S=p.type===`object`&&p.props.length>0,C=e>0&&l===e&&d===o[0].$ref,w=null;function T(e,t){(0,Yi.flushSync)(()=>{b(e),t()}),x.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})}if(p.type===`object`){let e=[];for(let t of p.props)(!v||t.name.toLowerCase().includes(v))&&e.push((0,Y.jsx)(AM,{name:t.name,$type:t.$type,required:t.required,parentIndex:l},t.name));w=e,e.length===0&&v&&(w=(0,Y.jsxs)(`div`,{className:`not-prose my-3 flex flex-col items-center gap-3 rounded-lg border border-dashed px-4 py-6 text-center text-fd-muted-foreground`,children:[(0,Y.jsx)(yr,{className:`box-content size-4 rounded-lg border bg-fd-secondary p-2`}),(0,Y.jsxs)(`p`,{children:[a(`No property matching`),` `,(0,Y.jsx)(`span`,{className:`font-medium break-all text-fd-foreground`,children:`"${_}"`})]})]}))}else p.type===`array`&&(w=(0,Y.jsx)(AM,{name:`[index: integer]`,$type:p.item.$type,parentIndex:l}));return(0,Y.jsxs)(`div`,{id:t,className:K(`@container overflow-clip rounded-xl border bg-fd-card text-fd-card-foreground`,bM,i),children:[(0,Y.jsxs)(`div`,{ref:x,className:K(`not-prose flex flex-wrap border-b`,bM),children:[n&&(0,Y.jsx)(`div`,{className:`flex h-9 basis-full items-center border-b ps-1.5 pe-1 text-[0.8125rem]`,children:n}),(0,Y.jsx)(EM,{from:e,unions:f,onBack:e=>T(`back`,()=>c(e))}),(S||r)&&(0,Y.jsxs)(`div`,{className:K(`flex h-9 items-center gap-1 pe-1`,S&&`@max-xl:basis-full @max-xl:border-t @max-xl:ps-1.5`),children:[S&&(0,Y.jsxs)(`label`,{className:`flex h-7 cursor-text items-center gap-1.5 rounded-md border bg-fd-secondary px-2 text-fd-muted-foreground transition-shadow focus-within:ring-1 focus-within:ring-fd-ring @max-xl:flex-1 @xl:w-40`,children:[(0,Y.jsx)(xr,{className:`size-3.5 shrink-0`}),(0,Y.jsx)(`input`,{value:_,onChange:e=>g({key:m,value:e.target.value}),"aria-label":a(`Filter Properties`),placeholder:a(`Filter Properties`),className:`min-w-0 flex-1 bg-transparent text-[0.8125rem] text-fd-foreground outline-none placeholder:text-fd-muted-foreground`})]}),r]})]}),(0,Y.jsx)(gM,{value:{open:(e,t)=>T(`forward`,()=>s(e,t))},children:(0,Y.jsxs)(`div`,{className:K(`px-3`,y&&`starting:opacity-0 motion-safe:transition-[opacity,translate] motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)]`,y&&wM[y]),children:[!C&&(0,Y.jsx)(MM,{schema:p,className:`py-2.5`}),w]},m)})]})}function EM({from:e,unions:t,onBack:n}){let r=G({note:`schema UI`}),{path:i}=fM(),a=i.length-1,[o,s]=(0,J.useState)(0),c=(0,J.useCallback)(e=>{if(!e)return;let t=e.parentElement,n=e.previousElementSibling,r=()=>s(DM(e,t.clientWidth-n.getBoundingClientRect().width)),i=new ResizeObserver(r);return r(),i.observe(t),i.observe(n),()=>i.disconnect()},[]),l=Math.min(o,Math.max(0,a-e-1)),u=[],d=[],f=[],p=``;for(let t=e;t<=a;t++){let r=OM(i[t].name),o=t>e&&(0,Y.jsx)(bt,{className:yM});p+=`${r}\0`,f.push((0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[o,(0,Y.jsx)(`span`,{className:K(`px-1.5 py-1`,t===a&&`font-medium`),children:r})]},t)),t>e&&t<=e+l?d.push((0,Y.jsx)(Nj,{onClick:()=>n(t),className:`truncate rounded-md px-2 py-1.5 outline-none data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground`,children:r},t)):u.push((0,Y.jsxs)(`li`,{className:K(`flex items-center gap-0.5 overflow-hidden`,t>e&&`motion-safe:transition-opacity motion-safe:starting:opacity-0`),children:[o,t<a?(0,Y.jsx)(`button`,{type:`button`,onClick:()=>n(t),className:vM,children:r}):(0,Y.jsx)(`span`,{"aria-current":`page`,className:`truncate px-1.5 py-1 font-medium`,children:r})]},t))}return d.length>0&&u.splice(1,0,(0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[(0,Y.jsx)(bt,{className:yM}),(0,Y.jsxs)(rM,{children:[(0,Y.jsx)(oM,{"aria-label":r(`Show Path`,{note:`aria-label`}),className:vM,children:`…`}),(0,Y.jsx)(Gj,{children:(0,Y.jsx)(Kj,{align:`start`,sideOffset:4,className:`z-50`,children:(0,Y.jsx)(Hj,{className:`flex max-h-(--available-height) max-w-72 min-w-40 origin-(--transform-origin) flex-col overflow-y-auto rounded-xl border bg-fd-popover p-1 font-mono text-[0.8125rem] text-fd-popover-foreground shadow-lg outline-none transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:scale-[0.97] data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0 motion-reduce:transition-none`,children:d})})})]})]},`menu`)),(0,Y.jsxs)(`div`,{className:`relative ms-1.5 me-1 flex h-9 min-w-0 flex-1 items-center font-mono text-[0.8125rem]`,children:[(0,Y.jsx)(`ol`,{className:`grid min-w-0 auto-cols-[minmax(0,max-content)] grid-flow-col items-center`,children:u}),(0,Y.jsx)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:t.map((e,t)=>(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(bt,{className:yM}),(0,Y.jsx)(kM,{union:e})]},t))}),(0,Y.jsxs)(`ol`,{ref:c,"aria-hidden":!0,className:`invisible absolute top-0 flex w-max`,children:[f,(0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[(0,Y.jsx)(bt,{className:yM}),(0,Y.jsx)(`span`,{className:`px-1.5 py-1`,children:`…`})]})]},p)]})}function DM(e,t){let n=Array.from(e.children,e=>e.getBoundingClientRect().width),r=n.pop(),i=0;for(let e of n)i+=e;if(i<=t)return 0;let a=0;for(i+=r;a<n.length-2&&i>t;)i-=n[++a];return a}function OM(e){let t=/^\[(\w+): \w+]$/.exec(e);return t?`[${t[1]}]`:e}function kM({union:{schema:e,value:t,select:n}}){let r=G({note:`schema UI`}),i=e.items.map(e=>({label:e.name,value:e.$type}));return(0,Y.jsxs)(yb,{items:i,value:t,onValueChange:e=>e&&n(e),children:[(0,Y.jsx)(xb,{"aria-label":r(`Schema variant`),className:`h-7 w-auto min-w-0 gap-1 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium text-fd-foreground hover:bg-fd-accent focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,children:(0,Y.jsx)(bb,{className:`truncate`})}),(0,Y.jsx)(Tb,{children:i.map(e=>(0,Y.jsx)(Eb,{value:e.value,className:`font-mono text-[0.8125rem]`,children:e.label},e.value))})]})}function AM({id:e,name:t,$type:n,required:r=!1,parentIndex:i,actions:a,children:o}){let s=G({note:`schema UI`}),{refs:c,path:l,highlighted:u,getLink:d}=fM(),f=c[n],p=u===t&&i===l.length-1,[m,h]=Ot(()=>navigator.clipboard.writeText(d(i,t))),g=(0,J.useCallback)(e=>{if(!e||!p)return;let t=window.setTimeout(()=>{e.scrollIntoView({behavior:`smooth`,block:`center`})},300);return()=>window.clearTimeout(t)},[p]);return(0,Y.jsxs)(`div`,{id:e,ref:g,className:`group/property scroll-m-20 border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`not-prose flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,Y.jsxs)(`code`,{className:`text-[0.8125rem] font-medium`,children:[(0,Y.jsx)(`span`,{className:K(p?`rounded-sm bg-fd-primary text-fd-primary-foreground`:`text-fd-primary`,f.deprecated&&`line-through opacity-80`),children:t}),r?(0,Y.jsx)(`span`,{className:`text-red-400`,children:`*`}):(0,Y.jsx)(`span`,{className:`text-fd-muted-foreground`,children:`?`})]}),f.type===`primitive`?(0,Y.jsx)(`span`,{className:_M,children:f.aliasName}):(0,Y.jsx)(jM,{name:t,$ref:n,children:f.aliasName}),f.deprecated&&(0,Y.jsx)(`span`,{className:`font-mono text-xs text-yellow-600 dark:text-yellow-400`,children:s(`Deprecated`)}),(0,Y.jsxs)(`button`,{type:`button`,"aria-live":`polite`,onClick:h,className:K(pt({size:`icon-xs`,variant:`ghost`}),`-my-1 ms-auto text-fd-muted-foreground opacity-0 transition-opacity group-hover/property:opacity-100 focus-visible:opacity-100 pointer-coarse:opacity-100 [&_svg]:size-3.5`),children:[m?(0,Y.jsx)(R,{}):(0,Y.jsx)(_t,{}),(0,Y.jsx)(`span`,{className:`sr-only`,children:s(m?`Copied Link`:`Copy Link`,{note:`aria-label`})})]}),a]}),(0,Y.jsx)(MM,{schema:f,className:`mt-1`}),o]})}function jM({name:e,$ref:t,children:n}){let{refs:r}=fM(),{open:i,isExpanded:a}=(0,J.use)(gM),o=r[t];return o.type===`primitive`&&!o.description&&!o.infoTags?.length?(0,Y.jsx)(`span`,{className:_M,children:n}):o.type===`and`||o.type===`or`?(0,Y.jsx)(`span`,{className:K(_M,`flex flex-wrap items-center gap-1.5`),children:o.items.map((t,n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(o.type===`and`?`&`:`|`),(0,Y.jsx)(jM,{name:e,$ref:t.$type,children:t.name})]},t.$type))}):o.type===`array`?(0,Y.jsxs)(`span`,{className:K(_M,`flex flex-wrap items-center`),children:[`array<`,(0,Y.jsx)(jM,{name:`${e}[]`,$ref:o.item.$type,children:r[o.item.$type].aliasName}),`>`]}):(0,Y.jsx)(`button`,{type:`button`,"aria-expanded":a?.(e,t),onClick:()=>i(e,t),className:K(_M,`text-start underline decoration-dotted underline-offset-4 transition-colors hover:text-fd-accent-foreground aria-expanded:text-fd-accent-foreground aria-expanded:decoration-solid`),children:n})}function MM({schema:{description:e,infoTags:t=[]},className:n}){return!e&&t.length===0?null:(0,Y.jsxs)(`div`,{className:K(`flex flex-col gap-2 text-fd-muted-foreground`,n),children:[e&&(0,Y.jsx)(`div`,{className:`prose-no-margin`,children:e}),t.length>0&&(0,Y.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:t.map((e,t)=>`node`in e?(0,Y.jsx)(J.Fragment,{children:e.node},t):`open`in e?(0,Y.jsx)(NM,{...e},t):`list`in e?(0,Y.jsxs)(`div`,{className:`not-prose flex w-full flex-wrap items-center gap-1.5 text-xs`,children:[e.label,e.list.map((e,t)=>(0,Y.jsx)(`code`,{className:xM,children:e},t))]},t):e.block?(0,Y.jsxs)(`div`,{className:`not-prose flex w-full flex-col gap-1.5 text-xs`,children:[e.label,e.value]},t):(0,Y.jsxs)(`div`,{className:K(xM,`inline-flex max-w-full items-baseline gap-1.5`),children:[(0,Y.jsx)(`span`,{className:`not-prose shrink-0 text-fd-muted-foreground`,children:e.label}),e.prose?(0,Y.jsx)(`div`,{className:`prose-xs prose-no-margin min-w-0 flex-1`,children:e.value}):(0,Y.jsx)(`code`,{className:`not-prose min-w-0 wrap-break-word`,children:e.value})]},t))})]})}function NM({label:e,value:t,open:{name:n,$ref:r}}){let{open:i,isExpanded:a}=(0,J.use)(gM);return(0,Y.jsxs)(`button`,{type:`button`,"aria-expanded":a?.(n,r),onClick:()=>i(n,r),className:K(xM,`group/open inline-flex max-w-full items-center gap-1.5 text-start transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring aria-expanded:bg-fd-accent`),children:[(0,Y.jsx)(`span`,{className:`not-prose shrink-0 text-fd-muted-foreground`,children:e}),t&&(0,Y.jsx)(`code`,{className:`not-prose min-w-0 truncate`,children:t}),(0,Y.jsx)(bt,{className:`size-3 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-hover/open:translate-x-0.5 motion-reduce:transition-none`})]})}function PM({root:e,renderMarkdown:t,renderCodeblock:n,readOnly:r=!1,writeOnly:i=!1,showExample:a=!1,translations:o={}}){let s=ht(o,{note:`schema UI`}),c=new Map,l=new WeakMap,u=new Proxy({},{get(e,t){if(typeof t==`string`&&!(t in e)){let n=c.get(t);n!==void 0&&(e[t]=g(t,n))}return Reflect.get(e,t)}});function d(e){let t=[],r=[];e.pattern&&t.push({label:s(`Match`),value:e.pattern}),e.format&&t.push({label:s(`Format`),value:e.format}),e.multipleOf&&t.push({label:s(`Multiple Of`),value:e.multipleOf});let i=FM(`value`,e.minimum,e.exclusiveMinimum,e.maximum,e.exclusiveMaximum);if(i&&t.push({label:s(`Range`),value:i}),i=FM(`length`,e.minLength,void 0,e.maxLength,void 0),i&&t.push({label:s(`Length`),value:i}),i=FM(`properties`,e.minProperties,void 0,e.maxProperties,void 0),i&&t.push({label:s(`Properties`),value:i}),i=FM(`items`,e.minItems,void 0,e.maxItems,void 0),i&&t.push({label:s(`Items`),value:i}),e.enum&&e.enum.length>0&&r.push({label:s(`Value in`),list:e.enum.map(e=>JSON.stringify(e,null,2))}),e.default!==void 0){let i=JSON.stringify(e.default,null,2);i.includes(`
|
|
136
136
|
`)?r.push({label:s(`Default`),block:!0,value:n({lang:`json`,code:i})}):t.push({label:s(`Default`),value:i})}if(a&&e.examples)for(let i of e.examples){let e=JSON.stringify(i,null,2);e.includes(`
|
|
137
|
-
`)?r.push({label:s(`Example`),block:!0,value:n({lang:`json`,code:e})}):t.push({label:s(`Example`),value:e})}return[...t,...r]}function f(e,t){let n=typeof e==`boolean`?String(e):typeof e.$ref==`string`?e.$ref:t;return c.set(n,e),n}function p(e){let t=Qi(e);if(typeof t==`boolean`||!t.allOf)return t;let n=l.get(t);return n===void 0&&l.set(t,n=ra(t)),n}function m(e){let t=p(e);return typeof t==`boolean`?!0:t.writeOnly?i:!t.readOnly||r}function h(e){let n=Qi(e);if(typeof n==`boolean`){let e=n?`any`:`never`;return{typeName:e,aliasName:e}}return{description:n.description?t(n.description):void 0,infoTags:d(n),typeName:ga(e),aliasName:ga(e,{alias:!0}),deprecated:n.deprecated}}function g(e,t){let n=Qi(t);if(typeof n==`boolean`)return{type:`primitive`,...h(t)};if(Array.isArray(n.type)){let r=[];for(let t of n.type){let i=`${e}_type:${t}`;c.set(i,{...n,type:t}),r.push({name:t,$type:i})}return{type:`or`,items:r,...h(t)}}if(n.oneOf&&n.anyOf){let r=[];for(let t of[`anyOf`,`oneOf`]){let i=`${e}_omit:${t}`;c.set(i,{...n,[t]:void 0}),r.push({name:u[i].aliasName,$type:i})}return{type:`and`,items:r,...h(t)}}let r=n.oneOf??n.anyOf;if(r){let i=[];for(let[t,a]of r.entries()){if(!a||typeof a!=`object`||!m(a))continue;let r=Qi(a);if(typeof r!=`object`)continue;let o=`${e}_extends:${typeof a.$ref==`string`?a.$ref:t}`;c.set(o,{...n,oneOf:void 0,anyOf:void 0,...r,properties:{...n.properties,...r.properties}}),i.push({$type:o,name:ga(a,{alias:!0})})}return{type:`or`,items:i,...h(t)}}if(n.allOf)return g(e,p(n));if(n.type===`object`){let{properties:r={},patternProperties:i,additionalProperties:a}=n,o=Object.entries(r);i&&o.push(...Object.entries(i));let s=[];for(let[t,[r,i]]of o.entries())i&&m(i)&&s.push({$type:f(i,`${e}#${t}`),name:r,required:n.required?.includes(r)??!1});return a&&m(a)&&s.push({$type:f(a,`${e}#*`),name:`[key: string]`,required:!1}),{type:`object`,props:s,...h(t)}}return n.type===`array`?{type:`array`,item:{$type:f(n.items??!0,`${e}#items`)},...h(t)}:{type:`primitive`,...h(t)}}return{refs:u,$root:f(e,`__root`)}}function FM(e,t,n,r,i){let a=[];if(t===void 0?n!==void 0&&a.push(`${n} <`):a.push(`${t} <=`),a.push(e),r===void 0?i!==void 0&&a.push(`< ${i}`):a.push(`<= ${r}`),a.length>1)return a.join(` `)}function IM({client:e,...t}){let n=G().translations,r=(0,J.useMemo)(()=>PM({...t,translations:n}),[t.root,t.readOnly,t.writeOnly,t.showExample,t.renderMarkdown,t.renderCodeblock,n]);return(0,Y.jsx)(SM,{...e,generated:r})}var LM=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;Object.hasOwnProperty;function RM(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(LM,``).replace(/ /g,`-`)):``}var zM=(0,J.createContext)(``);function BM({segments:e,children:t}){return(0,Y.jsx)(zM,{value:VM(e),children:t})}function VM(e){if(!e)return null;let t=(0,J.use)(zM);for(let n of e){let e=RM(n);e&&(t=t?`${t}.${e}`:e)}return t}function HM(e,t){let n=VM(e),r=(0,J.useSyncExternalStore)(WM,()=>{let e=UM();return n!==null&&(e===n||e.startsWith(`${n}.`))?e:null},()=>null),i=(0,J.useEffectEvent)(t),a=(0,J.useRef)(!1);return(0,J.useEffect)(()=>{r&&(a.current=!document.getElementById(r),i())},[r]),(0,J.useCallback)(e=>{e&&a.current&&(a.current=!1,(document.getElementById(UM())??e).scrollIntoView())},[])}function UM(){let e=window.location.hash.slice(1);try{return decodeURIComponent(e)}catch{return e}}function WM(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function GM({client:e,...t}){let{SchemaUI:n,Markdown:r,CodeBlock:i}=wv(),{schemaUI:a}=Tv(),o=(0,J.useMemo)(()=>({renderMarkdown:e=>(0,Y.jsx)(r,{md:e}),renderCodeblock:e=>(0,Y.jsx)(i,{...e})}),[r,i]);return(0,Y.jsx)(n,{...o,showExample:a?.showExample,...t,client:{...e,rootId:VM([e.name])}})}var KM=(0,J.createContext)(null);function qM({defaultValue:e,children:t}){let[n,r]=(0,J.useState)(e??null);return(0,Y.jsx)(KM,{value:(0,J.useMemo)(()=>({value:n,setValue:r}),[n]),children:t})}function JM({value:e,anchorSegments:t,...n}){let{value:r,setValue:i}=(0,J.use)(KM),a=HM(t??!1,()=>i(e));if(e!==r)return;let o=(0,Y.jsx)(`div`,{ref:a,...n});return t?(0,Y.jsx)(BM,{segments:t,children:o}):o}function YM({items:e,className:t,...n}){let{value:r,setValue:i}=(0,J.use)(KM);return e.length===1?(0,Y.jsx)(`span`,{className:`min-w-0 px-1.5 font-medium`,children:e[0].label}):(0,Y.jsxs)(yb,{items:e,value:r,onValueChange:i,children:[(0,Y.jsx)(xb,{className:K(`not-prose h-7 w-auto min-w-0 gap-1.5 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium *:min-w-0 hover:bg-fd-accent hover:text-fd-accent-foreground focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,t),...n,children:(0,Y.jsx)(bb,{})}),(0,Y.jsx)(Tb,{children:e.map(({label:e,value:t})=>(0,Y.jsx)(Eb,{value:t,children:e},t))})]})}function XM({id:e,...t}){let{Heading:n}=wv();return(0,Y.jsx)(n,{id:VM([e]),...t})}function ZM({name:e,generate:t}){let n=G({note:`TypeScript definitions`}),[r,i]=Ot(()=>{let e=t();return typeof e==`string`?navigator.clipboard.writeText(e):Promise.resolve(e).then(e=>{if(e)return navigator.clipboard.writeText(e)})});return(0,Y.jsxs)(`button`,{type:`button`,title:n(`Use the {name} type in TypeScript.`,{variables:{name:e}}),onClick:i,className:K(pt({variant:`ghost`,size:`sm`}),`-my-1 shrink-0 gap-1.5 text-fd-muted-foreground [&_svg]:size-3.5`),children:[r?(0,Y.jsx)(R,{}):(0,Y.jsx)(it,{}),`TypeScript`]})}var QM=(0,J.lazy)(()=>ct(()=>import(`./client-CFM1S4Xv.js`),[]));function $M({type:e,path:t,method:n,operation:r,pathItem:i,...a}){return(0,Y.jsx)(Jv,{type:e,path:t,method:n,operation:r,pathItem:i,children:(0,Y.jsx)(eN,{...a})})}function eN({showTitle:e,showDescription:t,headingLevel:n=2}){let r=G({note:`operation page`}),{resolve:i}=Cv().doc,a=Tv(),{type:o,path:s,method:c,operation:l,pathItem:u,title:d,description:f,requestBody:p,parameters:m,security:h,responses:g,callbacks:_}=Zv(),v=null,y=t&&f&&(0,Y.jsx)(WC,{md:f}),b=null,x=null,S=null,C=null;if(e?(v=(0,Y.jsxs)(`div`,{className:`flex gap-2 items-center justify-between`,children:[(0,Y.jsx)(XM,{id:d,depth:n,className:`my-0!`,children:d}),l.deprecated&&(0,Y.jsx)(zC,{color:`yellow`,className:`text-xs not-prose`,children:r(`Deprecated`)})]}),n++):l.deprecated&&(v=(0,Y.jsx)(Dt,{type:`warn`,title:r(`Deprecated`),className:`mt-0!`})),p){let e=Object.entries(p.content),t=e.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));b=(0,Y.jsxs)(qM,{defaultValue:t[0].value,children:[(0,Y.jsx)(tN,{id:`request-body`,depth:n,title:r(`Request Body`)}),p.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(WC,{md:p.description})}),e.map(([e,n])=>(0,Y.jsx)(JM,{anchorSegments:[`request-body`,e],value:e,children:(0,Y.jsx)(nN,{schema:n.schema,required:p.required,selector:(0,Y.jsx)(YM,{"aria-label":r(`Media type`),items:t}),request:!0})},e))]})}g.length>0&&a.showResponseSchema!==!1&&(S=(0,Y.jsx)(rN,{responses:g,headingLevel:n}));let w=m.map(({in:e,items:t})=>{let a=r(e===`path`?`Path Parameters`:e===`query`?`Query Parameters`:e===`header`?`Header Parameters`:`Cookie Parameters`);return(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(tN,{id:`parameters-${e}`,depth:n,title:a}),(0,Y.jsx)(BM,{segments:[`parameters`,e],children:(0,Y.jsx)(`div`,{className:`rounded-xl border bg-fd-card px-3`,children:t.map(e=>{if(e.schema==null)return;let t=i(e.schema);return(0,Y.jsx)(GM,{client:{name:e.name,required:e.required},root:typeof t==`object`?{...t,description:e.description??t.description,deprecated:(e.deprecated??!1)||(t.deprecated??!1)}:t,readOnly:c===`get`,writeOnly:c!==`get`},e.name)})})})]},e)});if(h.length>0){let e=h.map((e,t)=>({value:String(t),label:(0,Y.jsx)(`code`,{className:`flex min-w-0 items-center gap-1`,children:e.map(({key:e,scopes:t},n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(0,Y.jsx)(Dr,{className:`size-3 shrink-0 text-fd-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`truncate`,children:[e,t.length>0&&(0,Y.jsxs)(`span`,{className:`text-fd-muted-foreground`,children:[` `,t.join(`, `)]})]})]},e))})}));x=(0,Y.jsxs)(qM,{defaultValue:e[0].value,children:[(0,Y.jsx)(tN,{id:`authorization`,depth:n,title:r(`Authorization`)}),(0,Y.jsxs)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card`,children:[(0,Y.jsx)(`div`,{className:`flex h-9 items-center border-b ps-1.5 pe-1 text-[0.8125rem] not-prose`,children:(0,Y.jsx)(YM,{"aria-label":r(`Security scheme`),items:e})}),h.map((t,n)=>(0,Y.jsx)(JM,{value:e[n].value,className:`px-3`,children:t.map(({key:e,scopes:t,scheme:n})=>n&&(0,Y.jsx)(aN,{scheme:n,scopes:t},e))},n))]})]})}if(_.length>0&&(C=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(tN,{id:`callbacks`,depth:n,title:r(`Callbacks`)}),(0,Y.jsx)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card not-prose`,children:_.map((e,t)=>(0,Y.jsx)(oN,{item:e,path:s,headingLevel:n+1},t))})]})),o===`operation`){let e=a.playground,t=(0,Y.jsx)(HC,{method:c,route:s,deprecated:l.deprecated}),n=t;if(e?.enabled??!0){let{enabled:r,render:i,...a}=e??{};n=i?i({path:s,method:c,operation:l,pathItem:u}):(0,Y.jsx)(J.Suspense,{fallback:t,children:(0,Y.jsx)(QM,{...a})})}let r={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,apiPlayground:n,apiExample:(0,Y.jsx)(CT,{})};return a.content?.renderOperationLayout?a.content.renderOperationLayout(r,{path:s,operation:l,method:c,pathItem:u,ctx:a}):(0,Y.jsxs)(`div`,{className:`flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[r.header,r.apiPlayground,r.description,r.authSchemes,r.parameters,r.body,r.responses,r.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:r.apiExample})]})}let T={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,requests:(0,Y.jsx)(kT,{})};return a.content?.renderWebhookLayout?a.content.renderWebhookLayout(T):(0,Y.jsxs)(`div`,{className:`flex flex-col-reverse gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 prose-no-margin`,children:[T.header,T.description,T.authSchemes,T.parameters,T.body,T.responses,T.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:T.requests})]})}function tN({id:e,depth:t,title:n,children:r}){return(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 mt-10 mb-3 first:mt-0`,children:[(0,Y.jsx)(XM,{id:e,depth:t,className:`my-0! me-auto`,children:n}),r]})}function nN({schema:e,required:t,selector:n,request:r=!1}){let{method:i}=Zv(),{doc:a,generateTypeScriptDefinitions:o}=Cv();return e?(0,Y.jsx)(GM,{client:{name:r?`body`:`response`,as:`body`,required:t,selector:n,actions:o&&(0,Y.jsx)(ZM,{name:r?`request body`:`response body`,generate:()=>o(e,{name:r?`RequestBody`:`ResponseBody`,readOnly:!r,writeOnly:r,doc:a})})},root:e,readOnly:!r||i===`get`,writeOnly:r&&i!==`get`}):(0,Y.jsx)(`div`,{className:`not-prose flex h-9 items-center rounded-xl border bg-fd-card ps-1.5 pe-1 text-[0.8125rem]`,children:n})}function rN({responses:e,headingLevel:t}){let n=G({note:`operation page`}),[r,i]=(0,J.useState)(e[0].status);return(0,Y.jsxs)(Hb,{value:r,onValueChange:i,className:`mt-10 first:mt-0`,children:[(0,Y.jsx)(tN,{id:`response-body`,depth:t,title:n(`Response Body`),children:(0,Y.jsx)(Wb,{className:`max-w-full overflow-x-auto font-mono [scrollbar-width:none]`,items:e.map(e=>({value:e.status,label:e.status}))})}),e.map(e=>(0,Y.jsx)(iN,{item:e,onLink:()=>i(e.status)},e.status))]})}function iN({item:{status:e,response:t,content:n},onLink:r}){let i=G({note:`operation page`}),a=[`response`,e],o=HM(a,r),s=Object.entries(n),c=s.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));return(0,Y.jsx)(Ub,{value:e,ref:o,children:(0,Y.jsx)(BM,{segments:a,children:(0,Y.jsxs)(qM,{defaultValue:c[0]?.value,children:[t.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(WC,{md:t.description})}),s.map(([e,t])=>(0,Y.jsx)(JM,{value:e,anchorSegments:[e],children:(0,Y.jsx)(nN,{schema:t.schema,selector:(0,Y.jsx)(YM,{"aria-label":i(`Media type`),items:c})})},e))]})})})}function aN({scheme:e,scopes:t}){let n=G({note:`security scheme`}),r=n(`Authorization`),i=n(`Bearer <token>`),a=`header`,o=e.type===`openIdConnect`?e.openIdConnectUrl:void 0;switch(e.type){case`apiKey`:r=e.name,i=`<token>`,a=e.in;break;case`mutualTLS`:r=n(`Client certificate`),i=void 0,a=`tls`;break;case`http`:{let t=e.scheme?.toLowerCase();t===`basic`?i=n(`Basic <token>`):t===`bearer`&&e.bearerFormat?i=`Bearer <${e.bearerFormat}>`:e.scheme&&t!==`bearer`&&(i=`${e.scheme[0].toUpperCase()}${e.scheme.slice(1)} <token>`);break}case`oauth2`:case`openIdConnect`:break;default:return null}return(0,Y.jsxs)(`div`,{className:`border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 not-prose`,children:[(0,Y.jsx)(`span`,{className:`rounded-md border bg-fd-secondary px-1.5 font-mono text-xs leading-5 text-fd-muted-foreground`,children:a}),(0,Y.jsx)(`code`,{className:`text-[0.8125rem] font-medium text-fd-primary`,children:r}),i&&(0,Y.jsx)(`code`,{className:`text-xs text-fd-muted-foreground`,children:i}),e.deprecated&&(0,Y.jsx)(zC,{color:`red`,className:`text-xs`,children:n(`Deprecated`)})]}),(e.description||t.length>0||o)&&(0,Y.jsxs)(`div`,{className:`mt-1 prose-no-margin text-fd-muted-foreground`,children:[e.description&&(0,Y.jsx)(WC,{md:e.description}),o&&(0,Y.jsxs)(`p`,{children:[n(`OpenID Connect`),`: `,(0,Y.jsx)(`code`,{children:o})]}),t.length>0&&(0,Y.jsxs)(`p`,{children:[n(`Scope`),`: `,(0,Y.jsx)(`code`,{children:t.join(`, `)})]})]})]})}function oN({item:e,path:t,headingLevel:n}){let r=G({note:`operation page`}),i=[`callbacks`,e.name,e.path,e.method],[a,o]=(0,J.useState)(!1),s=HM(i,()=>o(!0));return(0,Y.jsxs)(cw,{open:a,onOpenChange:o,children:[(0,Y.jsxs)(uw,{className:`group grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-baseline gap-x-2 gap-y-1 border-t px-4 py-3 text-start transition-colors first:border-t-0 hover:bg-fd-accent/40 focus-visible:bg-fd-accent/40 focus-visible:outline-none`,children:[(0,Y.jsx)(`span`,{className:`col-span-2 font-mono text-[0.8125rem] font-medium`,children:e.name}),(0,Y.jsx)(bt,{className:`row-span-2 ms-1 size-4 self-center text-fd-muted-foreground transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`}),(0,Y.jsx)(VC,{className:`text-xs`,children:e.method}),(0,Y.jsx)(`code`,{className:`text-xs wrap-anywhere text-fd-muted-foreground`,children:e.path})]}),(0,Y.jsxs)(dw,{className:`sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:w-[min(64rem,calc(100vw-3rem))]`,children:[(0,Y.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 ps-4 pe-2 sm:ps-5`,children:[(0,Y.jsx)(lw,{className:`truncate font-mono text-sm font-medium`,children:e.name}),(0,Y.jsx)(JC,{"aria-label":r(`Close`),className:K(pt({variant:`ghost`,size:`icon-sm`}),`ms-auto shrink-0 text-fd-muted-foreground`),children:(0,Y.jsx)(lt,{})})]}),(0,Y.jsx)(HC,{method:e.method,route:e.path,deprecated:e.operation.deprecated,className:`mx-3 mb-3 shrink-0 sm:mx-4`}),(0,Y.jsx)(`div`,{ref:s,className:`fd-scroll-container prose prose-sm min-h-0 flex-1 overflow-y-auto border-t p-5 @container [--fd-docs-row-3:0px]`,children:(0,Y.jsx)(BM,{segments:i,children:(0,Y.jsx)($M,{type:`webhook`,path:t,headingLevel:n,method:e.method,pathItem:e.pathItem,operation:e.operation})})})]})]})}function sN(e){return kv({...e,components:{SchemaUI:IM,Operation:$M,Layout:cN,...e.components}})}function cN({operations:e,webhooks:t}){return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-24 text-sm @container`,children:[e?.map(e=>e.children),t?.map(e=>e.children)]})}var lN=4294967295;function uN(e){return!e.sticky&&!e.rawOptions?.strategy}function dN(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:lN,end:lN,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var fN=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&uN(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return dN(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:dN(a,s)}},pN=0;function mN(e){return{content:e,id:++pN}}function hN(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function gN(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var _N=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),vN=String.raw;function yN(e,t){if(e==null)throw Error(t??`Value expected`);return e}var bN=vN`\[\^?`,xN=`c.? | C(?:-.?)?|${vN`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${vN`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${vN`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${vN`o\{[^\}]*\}?`}|${vN`\d{1,3}`}`,SN=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,CN=new RegExp(vN`
|
|
137
|
+
`)?r.push({label:s(`Example`),block:!0,value:n({lang:`json`,code:e})}):t.push({label:s(`Example`),value:e})}return[...t,...r]}function f(e,t){let n=typeof e==`boolean`?String(e):typeof e.$ref==`string`?e.$ref:t;return c.set(n,e),n}function p(e){let t=Qi(e);if(typeof t==`boolean`||!t.allOf)return t;let n=l.get(t);return n===void 0&&l.set(t,n=ra(t)),n}function m(e){let t=p(e);return typeof t==`boolean`?!0:t.writeOnly?i:!t.readOnly||r}function h(e){let n=Qi(e);if(typeof n==`boolean`){let e=n?`any`:`never`;return{typeName:e,aliasName:e}}return{description:n.description?t(n.description):void 0,infoTags:d(n),typeName:ga(e),aliasName:ga(e,{alias:!0}),deprecated:n.deprecated}}function g(e,t){let n=Qi(t);if(typeof n==`boolean`)return{type:`primitive`,...h(t)};if(Array.isArray(n.type)){let r=[];for(let t of n.type){let i=`${e}_type:${t}`;c.set(i,{...n,type:t}),r.push({name:t,$type:i})}return{type:`or`,items:r,...h(t)}}if(n.oneOf&&n.anyOf){let r=[];for(let t of[`anyOf`,`oneOf`]){let i=`${e}_omit:${t}`;c.set(i,{...n,[t]:void 0}),r.push({name:u[i].aliasName,$type:i})}return{type:`and`,items:r,...h(t)}}let r=n.oneOf??n.anyOf;if(r){let i=[];for(let[t,a]of r.entries()){if(!a||typeof a!=`object`||!m(a))continue;let r=Qi(a);if(typeof r!=`object`)continue;let o=`${e}_extends:${typeof a.$ref==`string`?a.$ref:t}`;c.set(o,{...n,oneOf:void 0,anyOf:void 0,...r,properties:{...n.properties,...r.properties}}),i.push({$type:o,name:ga(a,{alias:!0})})}return{type:`or`,items:i,...h(t)}}if(n.allOf)return g(e,p(n));if(n.type===`object`){let{properties:r={},patternProperties:i,additionalProperties:a}=n,o=Object.entries(r);i&&o.push(...Object.entries(i));let s=[];for(let[t,[r,i]]of o.entries())i&&m(i)&&s.push({$type:f(i,`${e}#${t}`),name:r,required:n.required?.includes(r)??!1});return a&&m(a)&&s.push({$type:f(a,`${e}#*`),name:`[key: string]`,required:!1}),{type:`object`,props:s,...h(t)}}return n.type===`array`?{type:`array`,item:{$type:f(n.items??!0,`${e}#items`)},...h(t)}:{type:`primitive`,...h(t)}}return{refs:u,$root:f(e,`__root`)}}function FM(e,t,n,r,i){let a=[];if(t===void 0?n!==void 0&&a.push(`${n} <`):a.push(`${t} <=`),a.push(e),r===void 0?i!==void 0&&a.push(`< ${i}`):a.push(`<= ${r}`),a.length>1)return a.join(` `)}function IM({client:e,...t}){let n=G().translations,r=(0,J.useMemo)(()=>PM({...t,translations:n}),[t.root,t.readOnly,t.writeOnly,t.showExample,t.renderMarkdown,t.renderCodeblock,n]);return(0,Y.jsx)(SM,{...e,generated:r})}var LM=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;Object.hasOwnProperty;function RM(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(LM,``).replace(/ /g,`-`)):``}var zM=(0,J.createContext)(``);function BM({segments:e,children:t}){return(0,Y.jsx)(zM,{value:VM(e),children:t})}function VM(e){if(!e)return null;let t=(0,J.use)(zM);for(let n of e){let e=RM(n);e&&(t=t?`${t}.${e}`:e)}return t}function HM(e,t){let n=VM(e),r=(0,J.useSyncExternalStore)(WM,()=>{let e=UM();return n!==null&&(e===n||e.startsWith(`${n}.`))?e:null},()=>null),i=(0,J.useEffectEvent)(t),a=(0,J.useRef)(!1);return(0,J.useEffect)(()=>{r&&(a.current=!document.getElementById(r),i())},[r]),(0,J.useCallback)(e=>{e&&a.current&&(a.current=!1,(document.getElementById(UM())??e).scrollIntoView())},[])}function UM(){let e=window.location.hash.slice(1);try{return decodeURIComponent(e)}catch{return e}}function WM(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function GM({client:e,...t}){let{SchemaUI:n,Markdown:r,CodeBlock:i}=wv(),{schemaUI:a}=Tv(),o=(0,J.useMemo)(()=>({renderMarkdown:e=>(0,Y.jsx)(r,{md:e}),renderCodeblock:e=>(0,Y.jsx)(i,{...e})}),[r,i]);return(0,Y.jsx)(n,{...o,showExample:a?.showExample,...t,client:{...e,rootId:VM([e.name])}})}var KM=(0,J.createContext)(null);function qM({defaultValue:e,children:t}){let[n,r]=(0,J.useState)(e??null);return(0,Y.jsx)(KM,{value:(0,J.useMemo)(()=>({value:n,setValue:r}),[n]),children:t})}function JM({value:e,anchorSegments:t,...n}){let{value:r,setValue:i}=(0,J.use)(KM),a=HM(t??!1,()=>i(e));if(e!==r)return;let o=(0,Y.jsx)(`div`,{ref:a,...n});return t?(0,Y.jsx)(BM,{segments:t,children:o}):o}function YM({items:e,className:t,...n}){let{value:r,setValue:i}=(0,J.use)(KM);return e.length===1?(0,Y.jsx)(`span`,{className:`min-w-0 px-1.5 font-medium`,children:e[0].label}):(0,Y.jsxs)(yb,{items:e,value:r,onValueChange:i,children:[(0,Y.jsx)(xb,{className:K(`not-prose h-7 w-auto min-w-0 gap-1.5 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium *:min-w-0 hover:bg-fd-accent hover:text-fd-accent-foreground focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,t),...n,children:(0,Y.jsx)(bb,{})}),(0,Y.jsx)(Tb,{children:e.map(({label:e,value:t})=>(0,Y.jsx)(Eb,{value:t,children:e},t))})]})}function XM({id:e,...t}){let{Heading:n}=wv();return(0,Y.jsx)(n,{id:VM([e]),...t})}function ZM({name:e,generate:t}){let n=G({note:`TypeScript definitions`}),[r,i]=Ot(()=>{let e=t();return typeof e==`string`?navigator.clipboard.writeText(e):Promise.resolve(e).then(e=>{if(e)return navigator.clipboard.writeText(e)})});return(0,Y.jsxs)(`button`,{type:`button`,title:n(`Use the {name} type in TypeScript.`,{variables:{name:e}}),onClick:i,className:K(pt({variant:`ghost`,size:`sm`}),`-my-1 shrink-0 gap-1.5 text-fd-muted-foreground [&_svg]:size-3.5`),children:[r?(0,Y.jsx)(R,{}):(0,Y.jsx)(it,{}),`TypeScript`]})}var QM=(0,J.lazy)(()=>ct(()=>import(`./client-C0YCIB2j.js`),[]));function $M({type:e,path:t,method:n,operation:r,pathItem:i,...a}){return(0,Y.jsx)(Jv,{type:e,path:t,method:n,operation:r,pathItem:i,children:(0,Y.jsx)(eN,{...a})})}function eN({showTitle:e,showDescription:t,headingLevel:n=2}){let r=G({note:`operation page`}),{resolve:i}=Cv().doc,a=Tv(),{type:o,path:s,method:c,operation:l,pathItem:u,title:d,description:f,requestBody:p,parameters:m,security:h,responses:g,callbacks:_}=Zv(),v=null,y=t&&f&&(0,Y.jsx)(WC,{md:f}),b=null,x=null,S=null,C=null;if(e?(v=(0,Y.jsxs)(`div`,{className:`flex gap-2 items-center justify-between`,children:[(0,Y.jsx)(XM,{id:d,depth:n,className:`my-0!`,children:d}),l.deprecated&&(0,Y.jsx)(zC,{color:`yellow`,className:`text-xs not-prose`,children:r(`Deprecated`)})]}),n++):l.deprecated&&(v=(0,Y.jsx)(Dt,{type:`warn`,title:r(`Deprecated`),className:`mt-0!`})),p){let e=Object.entries(p.content),t=e.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));b=(0,Y.jsxs)(qM,{defaultValue:t[0].value,children:[(0,Y.jsx)(tN,{id:`request-body`,depth:n,title:r(`Request Body`)}),p.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(WC,{md:p.description})}),e.map(([e,n])=>(0,Y.jsx)(JM,{anchorSegments:[`request-body`,e],value:e,children:(0,Y.jsx)(nN,{schema:n.schema,required:p.required,selector:(0,Y.jsx)(YM,{"aria-label":r(`Media type`),items:t}),request:!0})},e))]})}g.length>0&&a.showResponseSchema!==!1&&(S=(0,Y.jsx)(rN,{responses:g,headingLevel:n}));let w=m.map(({in:e,items:t})=>{let a=r(e===`path`?`Path Parameters`:e===`query`?`Query Parameters`:e===`header`?`Header Parameters`:`Cookie Parameters`);return(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(tN,{id:`parameters-${e}`,depth:n,title:a}),(0,Y.jsx)(BM,{segments:[`parameters`,e],children:(0,Y.jsx)(`div`,{className:`rounded-xl border bg-fd-card px-3`,children:t.map(e=>{if(e.schema==null)return;let t=i(e.schema);return(0,Y.jsx)(GM,{client:{name:e.name,required:e.required},root:typeof t==`object`?{...t,description:e.description??t.description,deprecated:(e.deprecated??!1)||(t.deprecated??!1)}:t,readOnly:c===`get`,writeOnly:c!==`get`},e.name)})})})]},e)});if(h.length>0){let e=h.map((e,t)=>({value:String(t),label:(0,Y.jsx)(`code`,{className:`flex min-w-0 items-center gap-1`,children:e.map(({key:e,scopes:t},n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(0,Y.jsx)(Dr,{className:`size-3 shrink-0 text-fd-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`truncate`,children:[e,t.length>0&&(0,Y.jsxs)(`span`,{className:`text-fd-muted-foreground`,children:[` `,t.join(`, `)]})]})]},e))})}));x=(0,Y.jsxs)(qM,{defaultValue:e[0].value,children:[(0,Y.jsx)(tN,{id:`authorization`,depth:n,title:r(`Authorization`)}),(0,Y.jsxs)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card`,children:[(0,Y.jsx)(`div`,{className:`flex h-9 items-center border-b ps-1.5 pe-1 text-[0.8125rem] not-prose`,children:(0,Y.jsx)(YM,{"aria-label":r(`Security scheme`),items:e})}),h.map((t,n)=>(0,Y.jsx)(JM,{value:e[n].value,className:`px-3`,children:t.map(({key:e,scopes:t,scheme:n})=>n&&(0,Y.jsx)(aN,{scheme:n,scopes:t},e))},n))]})]})}if(_.length>0&&(C=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(tN,{id:`callbacks`,depth:n,title:r(`Callbacks`)}),(0,Y.jsx)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card not-prose`,children:_.map((e,t)=>(0,Y.jsx)(oN,{item:e,path:s,headingLevel:n+1},t))})]})),o===`operation`){let e=a.playground,t=(0,Y.jsx)(HC,{method:c,route:s,deprecated:l.deprecated}),n=t;if(e?.enabled??!0){let{enabled:r,render:i,...a}=e??{};n=i?i({path:s,method:c,operation:l,pathItem:u}):(0,Y.jsx)(J.Suspense,{fallback:t,children:(0,Y.jsx)(QM,{...a})})}let r={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,apiPlayground:n,apiExample:(0,Y.jsx)(CT,{})};return a.content?.renderOperationLayout?a.content.renderOperationLayout(r,{path:s,operation:l,method:c,pathItem:u,ctx:a}):(0,Y.jsxs)(`div`,{className:`flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[r.header,r.apiPlayground,r.description,r.authSchemes,r.parameters,r.body,r.responses,r.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:r.apiExample})]})}let T={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,requests:(0,Y.jsx)(kT,{})};return a.content?.renderWebhookLayout?a.content.renderWebhookLayout(T):(0,Y.jsxs)(`div`,{className:`flex flex-col-reverse gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 prose-no-margin`,children:[T.header,T.description,T.authSchemes,T.parameters,T.body,T.responses,T.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:T.requests})]})}function tN({id:e,depth:t,title:n,children:r}){return(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 mt-10 mb-3 first:mt-0`,children:[(0,Y.jsx)(XM,{id:e,depth:t,className:`my-0! me-auto`,children:n}),r]})}function nN({schema:e,required:t,selector:n,request:r=!1}){let{method:i}=Zv(),{doc:a,generateTypeScriptDefinitions:o}=Cv();return e?(0,Y.jsx)(GM,{client:{name:r?`body`:`response`,as:`body`,required:t,selector:n,actions:o&&(0,Y.jsx)(ZM,{name:r?`request body`:`response body`,generate:()=>o(e,{name:r?`RequestBody`:`ResponseBody`,readOnly:!r,writeOnly:r,doc:a})})},root:e,readOnly:!r||i===`get`,writeOnly:r&&i!==`get`}):(0,Y.jsx)(`div`,{className:`not-prose flex h-9 items-center rounded-xl border bg-fd-card ps-1.5 pe-1 text-[0.8125rem]`,children:n})}function rN({responses:e,headingLevel:t}){let n=G({note:`operation page`}),[r,i]=(0,J.useState)(e[0].status);return(0,Y.jsxs)(Hb,{value:r,onValueChange:i,className:`mt-10 first:mt-0`,children:[(0,Y.jsx)(tN,{id:`response-body`,depth:t,title:n(`Response Body`),children:(0,Y.jsx)(Wb,{className:`max-w-full overflow-x-auto font-mono [scrollbar-width:none]`,items:e.map(e=>({value:e.status,label:e.status}))})}),e.map(e=>(0,Y.jsx)(iN,{item:e,onLink:()=>i(e.status)},e.status))]})}function iN({item:{status:e,response:t,content:n},onLink:r}){let i=G({note:`operation page`}),a=[`response`,e],o=HM(a,r),s=Object.entries(n),c=s.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));return(0,Y.jsx)(Ub,{value:e,ref:o,children:(0,Y.jsx)(BM,{segments:a,children:(0,Y.jsxs)(qM,{defaultValue:c[0]?.value,children:[t.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(WC,{md:t.description})}),s.map(([e,t])=>(0,Y.jsx)(JM,{value:e,anchorSegments:[e],children:(0,Y.jsx)(nN,{schema:t.schema,selector:(0,Y.jsx)(YM,{"aria-label":i(`Media type`),items:c})})},e))]})})})}function aN({scheme:e,scopes:t}){let n=G({note:`security scheme`}),r=n(`Authorization`),i=n(`Bearer <token>`),a=`header`,o=e.type===`openIdConnect`?e.openIdConnectUrl:void 0;switch(e.type){case`apiKey`:r=e.name,i=`<token>`,a=e.in;break;case`mutualTLS`:r=n(`Client certificate`),i=void 0,a=`tls`;break;case`http`:{let t=e.scheme?.toLowerCase();t===`basic`?i=n(`Basic <token>`):t===`bearer`&&e.bearerFormat?i=`Bearer <${e.bearerFormat}>`:e.scheme&&t!==`bearer`&&(i=`${e.scheme[0].toUpperCase()}${e.scheme.slice(1)} <token>`);break}case`oauth2`:case`openIdConnect`:break;default:return null}return(0,Y.jsxs)(`div`,{className:`border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 not-prose`,children:[(0,Y.jsx)(`span`,{className:`rounded-md border bg-fd-secondary px-1.5 font-mono text-xs leading-5 text-fd-muted-foreground`,children:a}),(0,Y.jsx)(`code`,{className:`text-[0.8125rem] font-medium text-fd-primary`,children:r}),i&&(0,Y.jsx)(`code`,{className:`text-xs text-fd-muted-foreground`,children:i}),e.deprecated&&(0,Y.jsx)(zC,{color:`red`,className:`text-xs`,children:n(`Deprecated`)})]}),(e.description||t.length>0||o)&&(0,Y.jsxs)(`div`,{className:`mt-1 prose-no-margin text-fd-muted-foreground`,children:[e.description&&(0,Y.jsx)(WC,{md:e.description}),o&&(0,Y.jsxs)(`p`,{children:[n(`OpenID Connect`),`: `,(0,Y.jsx)(`code`,{children:o})]}),t.length>0&&(0,Y.jsxs)(`p`,{children:[n(`Scope`),`: `,(0,Y.jsx)(`code`,{children:t.join(`, `)})]})]})]})}function oN({item:e,path:t,headingLevel:n}){let r=G({note:`operation page`}),i=[`callbacks`,e.name,e.path,e.method],[a,o]=(0,J.useState)(!1),s=HM(i,()=>o(!0));return(0,Y.jsxs)(cw,{open:a,onOpenChange:o,children:[(0,Y.jsxs)(uw,{className:`group grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-baseline gap-x-2 gap-y-1 border-t px-4 py-3 text-start transition-colors first:border-t-0 hover:bg-fd-accent/40 focus-visible:bg-fd-accent/40 focus-visible:outline-none`,children:[(0,Y.jsx)(`span`,{className:`col-span-2 font-mono text-[0.8125rem] font-medium`,children:e.name}),(0,Y.jsx)(bt,{className:`row-span-2 ms-1 size-4 self-center text-fd-muted-foreground transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`}),(0,Y.jsx)(VC,{className:`text-xs`,children:e.method}),(0,Y.jsx)(`code`,{className:`text-xs wrap-anywhere text-fd-muted-foreground`,children:e.path})]}),(0,Y.jsxs)(dw,{className:`sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:w-[min(64rem,calc(100vw-3rem))]`,children:[(0,Y.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 ps-4 pe-2 sm:ps-5`,children:[(0,Y.jsx)(lw,{className:`truncate font-mono text-sm font-medium`,children:e.name}),(0,Y.jsx)(JC,{"aria-label":r(`Close`),className:K(pt({variant:`ghost`,size:`icon-sm`}),`ms-auto shrink-0 text-fd-muted-foreground`),children:(0,Y.jsx)(lt,{})})]}),(0,Y.jsx)(HC,{method:e.method,route:e.path,deprecated:e.operation.deprecated,className:`mx-3 mb-3 shrink-0 sm:mx-4`}),(0,Y.jsx)(`div`,{ref:s,className:`fd-scroll-container prose prose-sm min-h-0 flex-1 overflow-y-auto border-t p-5 @container [--fd-docs-row-3:0px]`,children:(0,Y.jsx)(BM,{segments:i,children:(0,Y.jsx)($M,{type:`webhook`,path:t,headingLevel:n,method:e.method,pathItem:e.pathItem,operation:e.operation})})})]})]})}function sN(e){return kv({...e,components:{SchemaUI:IM,Operation:$M,Layout:cN,...e.components}})}function cN({operations:e,webhooks:t}){return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-24 text-sm @container`,children:[e?.map(e=>e.children),t?.map(e=>e.children)]})}var lN=4294967295;function uN(e){return!e.sticky&&!e.rawOptions?.strategy}function dN(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:lN,end:lN,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var fN=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&uN(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return dN(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:dN(a,s)}},pN=0;function mN(e){return{content:e,id:++pN}}function hN(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function gN(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var _N=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),vN=String.raw;function yN(e,t){if(e==null)throw Error(t??`Value expected`);return e}var bN=vN`\[\^?`,xN=`c.? | C(?:-.?)?|${vN`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${vN`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${vN`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${vN`o\{[^\}]*\}?`}|${vN`\d{1,3}`}`,SN=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,CN=new RegExp(vN`
|
|
138
138
|
\\ (?:
|
|
139
139
|
${xN}
|
|
140
140
|
| [gk]<[^>]*>?
|