import{s as De,n as fe,o as je,f as Te,i as He,r as Me,t as Re,b as qe}from"./scheduler.7da89386.js";import{S as Ve,i as Ie,e as O,a as A,f as v,g as C,H as q,h as k,j as E,C as Z,k as g,l as ee,s as P,r as se,c as x,u as ne,y as b,v as re,B as le,d as B,p as Q,t as z,b as $,w as ie,x as X,z as ae,m as J,n as K,D as Be,o as te,E as Ge}from"./index.20910acc.js";import{e as W}from"./each.e59479a4.js";import{I as oe}from"./getInferenceSnippets.7cf363b6.js";const Ze=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ce(n){let e,t,l;return{c(){e=C("div"),t=new q(!1),this.h()},l(s){e=k(s,"DIV",{class:!0,style:!0,id:!0});var h=E(e);t=Z(h,!1),h.forEach(v),this.h()},h(){t.a=null,g(e,"class",l="absolute text-base py-1.5 p-2 break-words bg-white border-2 border-black dark:border-gray-500 rounded shadow-alternate-xl z-50 "+(n[0].length>1e3?"max-w-lg":"max-w-xs")),ee(e,"top",n[2]+15+"px"),ee(e,"left",n[1]+15+"px"),g(e,"id",n[3])},m(s,h){A(s,e,h),t.m(n[0],e)},p(s,h){h&1&&t.p(s[0]),h&1&&l!==(l="absolute text-base py-1.5 p-2 break-words bg-white border-2 border-black dark:border-gray-500 rounded shadow-alternate-xl z-50 "+(s[0].length>1e3?"max-w-lg":"max-w-xs"))&&g(e,"class",l),h&4&&ee(e,"top",s[2]+15+"px"),h&2&&ee(e,"left",s[1]+15+"px"),h&8&&g(e,"id",s[3])},d(s){s&&v(e)}}}function Ue(n){let e,t=n[0]&&ce(n);return{c(){t&&t.c(),e=O()},l(l){t&&t.l(l),e=O()},m(l,s){t&&t.m(l,s),A(l,e,s)},p(l,[s]){l[0]?t?t.p(l,s):(t=ce(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:fe,o:fe,d(l){l&&v(e),t&&t.d(l)}}}function Xe(n,e,t){let{txt:l}=e,{x:s}=e,{y:h}=e,{id:o}=e;return n.$$set=i=>{"txt"in i&&t(0,l=i.txt),"x"in i&&t(1,s=i.x),"y"in i&&t(2,h=i.y),"id"in i&&t(3,o=i.id)},[l,s,h,o]}class Oe extends Ve{constructor(e){super(),Ie(this,e,Xe,Ue,De,{txt:0,x:1,y:2,id:3})}}const ue="docstring-tooltip";function Ye(n,e){let t;function l(i){o(),t=new Oe({props:{txt:e,x:i.pageX,y:i.pageY,id:ue},target:document.body})}function s(i){t.$set({x:i.pageX,y:i.pageY})}function h(){t.$destroy()}function o(){var p;const i=document.getElementById(ue);i&&((p=i.parentNode)==null||p.removeChild(i))}return n.addEventListener("mouseover",l),n.addEventListener("mouseleave",h),n.addEventListener("mousemove",s),{destroy(){n.removeEventListener("mouseover",l),n.removeEventListener("mouseleave",h),n.removeEventListener("mousemove",s)}}}const{window:We}=Ze;function he(n,e,t){const l=n.slice();return l[26]=e[t].title,l[11]=e[t].parametersDescription,l}function de(n,e,t){const l=n.slice();return l[9]=e[t].anchor,l[29]=e[t].description,l}function me(n,e,t){const l=n.slice();return l[9]=e[t].anchor,l[29]=e[t].description,l}function pe(n,e,t){const l=n.slice();return l[10]=e[t].name,l[34]=e[t].val,l}function _e(n){let e,t,l="<",s,h,o="source",i,p,d=">";return{c(){e=C("a"),t=C("span"),t.textContent=l,s=P(),h=C("span"),h.textContent=o,i=P(),p=C("span"),p.textContent=d,this.h()},l(u){e=k(u,"A",{class:!0,href:!0,target:!0});var a=E(e);t=k(a,"SPAN",{"data-svelte-h":!0}),X(t)!=="svelte-1kd6by1"&&(t.textContent=l),s=x(a),h=k(a,"SPAN",{class:!0,"data-svelte-h":!0}),X(h)!=="svelte-122apf4"&&(h.textContent=o),i=x(a),p=k(a,"SPAN",{"data-svelte-h":!0}),X(p)!=="svelte-x0xyl0"&&(p.textContent=d),a.forEach(v),this.h()},h(){g(h,"class","hidden md:block mx-0.5 hover:!underline"),g(e,"class","!ml-auto !text-gray-400 !no-underline text-sm flex items-center"),g(e,"href",n[7]),g(e,"target","_blank")},m(u,a){A(u,e,a),b(e,t),b(e,s),b(e,h),b(e,i),b(e,p)},p(u,a){a[0]&128&&g(e,"href",u[7])},d(u){u&&v(e)}}}function ge(n){let e,t,l="(",s,h,o,i=")",p,d=W(n[1]),u=[];for(let c=0;cz(i[d],1,1,()=>{i[d]=null});return{c(){e=C("p"),e.innerHTML=t,l=P(),s=C("ul");for(let d=0;dz(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;oz(a[f],1,1,()=>{a[f]=null});return{c(){e=C("p"),l=J(t),s=P(),h=C("span"),o=P(),i=C("ul");for(let f=0;f{S=null}),$()),y[2]?L?(L.p(y,_),_[0]&4&&B(L,1)):(L=ye(y),L.c(),B(L,1),L.m(c,m)):L&&(Q(),z(L,1,1,()=>{L=null}),$()),y[4]?V?V.p(y,_):(V=xe(y),V.c(),V.m(c,w)):V&&(V.d(1),V=null),y[6]?I?I.p(y,_):(I=Se(y),I.c(),I.m(c,null)):I&&(I.d(1),I=null),(!D||_[0]&8192&&N!==(N="!mb-10 relative docstring-details "+(y[13]?"max-h-96 overflow-hidden":"")))&&g(c,"class",N)},i(y){D||(B(i.$$.fragment,y),B(S),B(L),D=!0)},o(y){z(i.$$.fragment,y),z(S),z(L),D=!1},d(y){y&&v(e),ie(i),H&&H.d(),T&&T.d(),M&&M.d(),S&&S.d(),L&&L.d(),V&&V.d(),I&&I.d(),n[24](null),j=!1,U()}}}const F="bg-yellow-50 dark:bg-[#494a3d]";function Ne(n){const e=/\s*

(((?!

).)*)<\/p>\s*/gms;return n.replace(e,(t,l)=>`${l}`)}function Je(n,e,t){let{anchor:l}=e,{name:s}=e,{parameters:h=[]}=e,{parametersDescription:o}=e,{parameterGroups:i}=e,{returnDescription:p}=e,{returnType:d}=e,{isYield:u=!1}=e,{raiseDescription:a}=e,{raiseType:c}=e,{source:f=void 0}=e,{hashlink:r}=e,{isGetSetDescriptor:m=!1}=e,w,N,D=!1;const j=(o==null?void 0:o.reduce((_,G)=>{const{name:R,description:Y}=G;return{..._,[R]:Y}},{}))||{},U=u?"Yields":"Returns",H=U.toLowerCase();je(()=>{const{hash:_}=window.location;t(0,r=_.substring(1));const Y=[...w.querySelectorAll('[href^="#"]')].map(ze=>ze.id).includes(r);t(13,D=!Y&&w.clientHeight>500),S()});async function T(_,G){G&&(t(13,D=!1),await Re(),window.location.hash=_)}function M(_){if(_.startsWith("class ")){const G=_.substring(6).split("."),R=G.pop();return`

class ${G.join(".")}.${R}

`}else return m?`
property ${_}
`:`

${_}

`}function S(){var G;const{hash:_}=window.location;if(t(0,r=_.substring(1)),N&&N.classList.remove(...F.split(" ")),r===l){const R=(G=document.getElementById(r))==null?void 0:G.closest(".docstring");R&&(N=R,N.classList.add(...F.split(" ")))}}const L=_=>T(`${l}.${_}`,!!j[_]),V=()=>T(`${l}.${H}`,!!p),I=()=>t(13,D=!1);function y(_){qe[_?"unshift":"push"](()=>{w=_,t(12,w)})}return n.$$set=_=>{"anchor"in _&&t(9,l=_.anchor),"name"in _&&t(10,s=_.name),"parameters"in _&&t(1,h=_.parameters),"parametersDescription"in _&&t(11,o=_.parametersDescription),"parameterGroups"in _&&t(2,i=_.parameterGroups),"returnDescription"in _&&t(3,p=_.returnDescription),"returnType"in _&&t(4,d=_.returnType),"isYield"in _&&t(20,u=_.isYield),"raiseDescription"in _&&t(5,a=_.raiseDescription),"raiseType"in _&&t(6,c=_.raiseType),"source"in _&&t(7,f=_.source),"hashlink"in _&&t(0,r=_.hashlink),"isGetSetDescriptor"in _&&t(8,m=_.isGetSetDescriptor)},[r,h,i,p,d,a,c,f,m,l,s,o,w,D,j,U,H,T,M,S,u,L,V,I,y]}class t1 extends Ve{constructor(e){super(),Ie(this,e,Je,Fe,De,{anchor:9,name:10,parameters:1,parametersDescription:11,parameterGroups:2,returnDescription:3,returnType:4,isYield:20,raiseDescription:5,raiseType:6,source:7,hashlink:0,isGetSetDescriptor:8},null,[-1,-1])}}export{t1 as D,Ze as g};