import{g as w,d as k,r as x,b as $}from"./i18n-Dnhn5Rxr.js";import{R as y,y as u,M as h,S,w as m,t as B,a as M,X as _,V as E,a5 as z,T as G,u as L,x as F,W as I,Y as P}from"./index-DWyDLubb.js";import{G as R,s as T}from"./utils.svelte-CCyS_0CY.js";import{M as V}from"./Index.svelte_svelte_type_style_lang-D9os8tfr.js";import{S as W}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{B as X}from"./Block-J4oodUWp.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{S as Y}from"./ScrollFade-CIgHp1zY.js";import{default as me}from"./Example-Csc6CXXA.js";import"./clone-BkeCM4Nl.js";import"./actions-CLThs9VH.js";import"./Check-DUAHzS2-.js";import"./Copy-ChCbTvli.js";import"./IconButtonWrapper-D0s9l4wW.js";import"./snippet-BWgYNF9D.js";import"./MarkdownCode-B8HQ3LiU.js";import"./html-Ih_5QVTo.js";import"./prism-python-B4lzO_Nz.js";import"./index-B_pwUImq.js";import"./Clear-BF6j078A.js";/* empty css                                              */var j=I('<!> <div data-testid="markdown-wrapper"><!></div> <!>',1);function de(g,i){y(i,!0);let c=x(i,["$$slots","$$events","$$legacy"]);const e=new R(c);let s,n=L(!1);function a(){e.props.height&&F(n,T(s?.closest(".block")),!0)}u(()=>{const t=s?.closest(".block");if(!(!t||!e.props.height))return t.addEventListener("scroll",a),h().then(a),()=>t.removeEventListener("scroll",a)}),u(()=>{e.props.value!==void 0&&h().then(a)}),X(g,{get visible(){return e.shared.visible},get elem_id(){return e.shared.elem_id},get elem_classes(){return e.shared.elem_classes},get container(){return e.shared.container},allow_overflow:!0,overflow_behavior:"auto",get height(){return e.props.height},get min_height(){return e.props.min_height},get max_height(){return e.props.max_height},get rtl(){return e.props.rtl},children:(t,q)=>{var l=j(),p=S(l);W(p,w({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status,{variant:"center",on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}));var r=_(p,2);let d;var f=E(r);{let o=z(()=>e.props.buttons?.includes("copy"));V(f,{get value(){return e.props.value},get elem_classes(){return e.shared.elem_classes},get visible(){return e.shared.visible},get rtl(){return e.props.rtl},onchange:()=>e.dispatch("change"),oncopy:b=>e.dispatch("copy",b.detail),get latex_delimiters(){return e.props.latex_delimiters},get sanitize_html(){return e.props.sanitize_html},get line_breaks(){return e.props.line_breaks},get header_links(){return e.props.header_links},get show_copy_button(){return m(o)},get loading_status(){return e.shared.loading_status},get theme_mode(){return e.shared.theme_mode}})}P(r),k(r,o=>s=o,()=>s);var v=_(r,2);Y(v,{get visible(){return m(n)}}),B(()=>d=$(r,1,"svelte-16ln60g",null,d,{padding:e.shared.padding,pending:e.shared.loading_status?.status==="pending"&&e.shared.loading_status?.show_progress!=="hidden"})),M(t,l)},$$slots:{default:!0}}),G()}export{me as BaseExample,V as BaseMarkdown,de as default};
