PageSourceSearch

https://zombieben-medrag2-chat.hf.space/assets/Index-BRjrOZ4Y.js

js zombieben-medrag2-chat.hf.space collected 2026-10-03 17:33:16 UTC 23,867 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Blocks-VSle3shO.js","./index-B5Zu_GVg.js","./index-DjiShSXF.css","./i18n-B4hKvn1K.js","./i18n-BHxvmanQ.css","./StreamingBar-BCIMpGXo.js","./ScrollFade-Z5OOjlGL.js","./MarkdownCode-DBmitoTT.js","./prism-python-B0Zan1LT.js","./MarkdownCode-BoA7s7hW.css","./ScrollFade--X35ErLD.css","./StreamingBar-K0YZHDYh.css","./utils.svelte-kG009vb9.js","./init.svelte-Cw9DJq2D.js","./index-tFQomdd2.js","./state.svelte-DFm6rEHb.js","./Blocks-CXVCGwNW.css","./Login-DW8YrY3m.js","./BaseForm-Cq4NTR3O.js","./BaseForm-uUC7FH4e.css","./Index-CtqVze3K.js","./Example-gF45j9DF.js","./Example-Cvv6PwrD.css","./Index-B5AH0EoL.css","./Button-Df8YIieX.js","./Image-Bdf4wQSw.js","./Image-Da_XA0w6.css","./ImagePreview-DKUn6ibw.js","./ShareButton-803mPI0v.js","./FullscreenButton-DwvGFBPZ.js","./ImagePreview-CCVfwC4m.css","./Button-BZ4d-rtD.css","./Index.svelte_svelte_type_style_lang-BdRVTW9S.js","./Index-BDcHJDzf.css","./Login-DLnqC4Fa.css"])))=>i.map(i=>d[i]);
2import{_ as ke}from"./index-B5Zu_GVg.js";import"./svelte/svelte_internal_flags_legacy.js";import"./svelte/svelte_internal_flags_async.js";import{writable as Ze}from"./svelte/svelte_store.js";import{s as Je,E as Ye,$ as Ke,p as Ae,m as Le}from"./i18n-B4hKvn1K.js";import*as e from"./svelte/svelte_internal_client.js";import{createEventDispatcher as Qe,onMount as Re,onDestroy as Xe}from"./svelte/svelte_svelte.js";import{S as et}from"./StreamingBar-BCIMpGXo.js";import"./svelte/svelte_animate.js";import"./svelte/svelte_attachments.js";import"./svelte/svelte_easing.js";import"./svelte/svelte_internal_flags_tracing.js";import"./svelte/svelte_internal_server.js";import"./svelte/svelte_legacy.js";import"./svelte/svelte_motion.js";import"./svelte/svelte_reactivity.js";import"./svelte/svelte_reactivity_window.js";import"./svelte/svelte_server.js";import"./svelte/svelte_transition.js";import"./svelte/svelte_events.js";import"./ScrollFade-Z5OOjlGL.js";import"./MarkdownCode-DBmitoTT.js";import"./prism-python-B0Zan1LT.js";var tt=()=>{const r=document.createElement("link");r.href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap",r.rel="stylesheet";const t=document.createElement("link");t.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap",t.rel="stylesheet",document.head.appendChild(r),document.head.appendChild(t)},rt=()=>{const r=document.createElement("div");return r.style.backgroundImage="linear-gradient(to top, #f9fafb, white)",r.style.border="1px solid #e5e7eb",r.style.borderRadius="0.75rem",r.style.boxShadow="0 0 10px rgba(0, 0, 0, 0.1)",r.style.color="#374151",r.style.display="flex",r.style.flexDirection="row",r.style.alignItems="center",r.style.height="40px",r.style.justifyContent="space-between",r.style.overflow="hidden",r.style.position="fixed",r.style.right=".75rem",r.style.top=".75rem",r.style.width="auto",r.style.zIndex="20",r.style.paddingLeft="1rem",r.setAttribute("id","huggingface-space-header"),window.matchMedia("(max-width: 768px)").addEventListener("change",t=>{t.matches?r.style.display="none":r.style.display="flex"}),r},st=()=>{const r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink"),r.setAttribute("aria-hidden","true"),r.setAttribute("focusable","false"),r.setAttribute("role","img"),r.setAttribute("width","1em"),r.setAttribute("height","1em"),r.setAttribute("preserveAspectRatio","xMidYMid meet"),r.setAttribute("viewBox","0 0 12 12"),r.setAttribute("fill","currentColor");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d","M0.375001 10.3828L0.375 1.61719C0.375 1.104 0.816001 0.687501 1.35938 0.687501L10.6406 0.6875C10.9017 0.6875 11.1521 0.785449 11.3367 0.959797C11.5213 1.13415 11.625 1.37062 11.625 1.61719V10.3828C11.625 10.6294 11.5213 10.8659 11.3367 11.0402C11.1521 11.2145 10.9017 11.3125 10.6406 11.3125H1.35938C0.816001 11.3125 0.375001 10.896 0.375001 10.3828ZM1.35938 10.5156H10.6406C10.7183 10.5156 10.7813 10.4561 10.7813 10.3828V4.40625H1.21875V10.3828C1.21875 10.418 1.23356 10.4518 1.25994 10.4767C1.28631 10.5017 1.32208 10.5156 1.35938 10.5156ZM4.61052 6.38251L5.9999 7.69472L7.38927 6.38251C7.44083 6.33007 7.50645 6.29173 7.57913 6.27153C7.6518 6.25134 7.72898 6.25003 7.8024 6.26776C7.87583 6.28549 7.9428 6.3216 7.99628 6.37227C8.04983 6.42295 8.08785 6.48631 8.10645 6.5557C8.12528 6.62497 8.12393 6.69773 8.10263 6.76635C8.0814 6.83497 8.0409 6.8969 7.98555 6.94564L6.29802 8.53936C6.21892 8.61399 6.11169 8.65592 5.9999 8.65592C5.8881 8.65592 5.78087 8.61399 5.70177 8.53936L4.01427 6.94564C3.95874 6.89694 3.91814 6.835 3.89676 6.76633C3.87538 6.69766 3.874 6.62483 3.89277 6.55549C3.91154 6.48615 3.94977 6.42287 4.00343 6.37233C4.05708 6.32179 4.12418 6.28585 4.19765 6.2683C4.27098 6.25054 4.34803 6.25178 4.42068 6.27188C4.49334 6.29198 4.55891 6.3302 4.610
252 6.38251Z"),r.appendChild(t),r},nt=(r,t)=>{const a=document.createElement("div");return a.setAttribute("id","space-header__collapse"),a.style.display="flex",a.style.flexDirection="row",a.style.alignItems="center",a.style.justifyContent="center",a.style.fontSize="16px",a.style.paddingLeft="10px",a.style.paddingRight="10px",a.style.height="40px",a.style.cursor="pointer",a.style.color="#40546e",a.style.transitionDuration="0.1s",a.style.transitionProperty="all",a.style.transitionTimingFunction="ease-in-out",a.appendChild(st()),a.addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),t()}),a.addEventListener("mouseenter",()=>{a.style.color="#213551"}),a.addEventListener("mouseleave",()=>{a.style.color="#40546e"}),a},ot=r=>{const t=document.createElement("p");return t.style.margin="0",t.style.padding="0",t.style.color="#9ca3af",t.style.fontSize="14px",t.style.fontFamily="Source Sans Pro, sans-serif",t.style.padding="0px 6px",t.style.borderLeft="1px solid #e5e7eb",t.style.marginLeft="4px",t.textContent=(r??0).toString(),t},at=()=>{const r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink"),r.setAttribute("aria-hidden","true"),r.setAttribute("focusable","false"),r.setAttribute("role","img"),r.setAttribute("width","1em"),r.setAttribute("height","1em"),r.setAttribute("preserveAspectRatio","xMidYMid meet"),r.setAttribute("viewBox","0 0 32 32"),r.setAttribute("fill","#6b7280");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d","M22.45,6a5.47,5.47,0,0,1,3.91,1.64,5.7,5.7,0,0,1,0,8L16,26.13,5.64,15.64a5.7,5.7,0,0,1,0-8,5.48,5.48,0,0,1,7.82,0L16,10.24l2.53-2.58A5.44,5.44,0,0,1,22.45,6m0-2a7.47,7.47,0,0,0-5.34,2.24L16,7.36,14.89,6.24a7.49,7.49,0,0,0-10.68,0,7.72,7.72,0,0,0,0,10.82L16,29,27.79,17.06a7.72,7.72,0,0,0,0-10.82A7.49,7.49,0,0,0,22.45,4Z"),r.appendChild(t),r},it=r=>{const t=document.createElement("a");return t.setAttribute("href",`https://huggingface.co/spaces/${r.id}`),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t.style.border="1px solid #e5e7eb",t.style.borderRadius="6px",t.style.display="flex",t.style.flexDirection="row",t.style.alignItems="center",t.style.margin="0 0 0 12px",t.style.fontSize="14px",t.style.paddingLeft="4px",t.style.textDecoration="none",t.appendChild(at()),t.appendChild(ot(r.likes)),t},lt=(r,t="user")=>{const a=t==="user"?"users":"organizations",o=document.createElement("img");return o.src=`https://huggingface.co/api/${a}/${r}/avatar`,o.style.width="0.875rem",o.style.height="0.875rem",o.style.borderRadius="50%",o.style.flex="none",o.style.marginRight="0.375rem",o},ct=r=>{const[t,a]=r.split("/"),o=document.createElement("a");return o.setAttribute("href",`https://huggingface.co/spaces/${r}`),o.setAttribute("rel","noopener noreferrer"),o.setAttribute("target","_blank"),o.style.color="#1f2937",o.style.textDecoration="none",o.style.fontWeight="600",o.style.fontSize="15px",o.style.lineHeight="24px",o.style.flex="none",o.style.fontFamily="IBM Plex Mono, sans-serif",o.addEventListener("mouseover",()=>{o.style.color="#2563eb"}),o.addEventListener("mouseout",()=>{o.style.color="#1f2937"}),o.textContent=a,o},dt=()=>{const r=document.createElement("div");return r.style.marginLeft=".125rem",r.style.marginRight=".125rem",r.style.color="#d1d5db",r.textContent="/",r},ut=r=>{const t=document.createElement("a");return t.setAttribute("href",`https://huggingface.co/${r}`),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t.style.color="rgb(107, 114, 128)",t.style.textDecoration="none",t.style.fontWeight="400",t.style.fontSize="16px",t.style.lineHeight="24px",t.style.flex="none",t.style.fontFamily="Source Sans Pro, sans-serif",t.addEventListener("mouseover",()=>{t.style.color="#2563eb"}),t.addEventListener("mouseout",()=>{t.style.color="rgb(107, 114, 128)"}),t.textContent=r,t},gt=r=>{const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="row",t.style.alignItems="center",t.style.justifyContent="center",t.style.borderRight="1px solid #e5e7eb",t.style.paddingRight="12px",t.style.height="40px",r.type!=="unknown"&&t.appendChild(lt(r.author,r.type)),t.appendChild(ut(r.author)),t.appendChild(dt()),t.appendChild(ct(r.id)),t.appendChild(it(r)),t},pt=r=>{const t=rt(),a=()=>t.style.display="none";return t.appendChild(gt(r)),t.appendChild(nt(r,a)),t},Se=async(r,t="user")=>{const a=t==="user"?"users":"organizations";try{return(await fetch(`https://huggingface.co/api/${a}/${r}/avatar`)).ok}catch{return!1}},_t=async r=>{try{return await(await fetch(`https://huggingface.co/api/spaces/${r}`)).json()}catch{return null}},mt=(r,t)=>{if(document.body===null)return console.error("document.body is null");document.body.appendChild(r)};async function ht(r,t){var a,o;if(window===void 0)return console.error("Please run this script in a browser environment");
2if(Object.values((o=(a=window.location)==null?void 0:a.ancestorOrigins)!=null?o:{0:window.document.referrer}).some(x=>{var M;return((M=new URL(x))==null?void 0:M.origin)==="https://huggingface.co"}))return;tt();let g;if(typeof r=="string"){if(g=await _t(r),g===null)return console.error("Space not found")}else g=r;const[h,P]=await Promise.all([Se(g.author,"user"),Se(g.author,"org")]);g.type=h?"user":P?"org":"unknown";const E=pt(g);return mt(E),{element:E}}var ft=(r,t)=>ht(r);let vt=-1;function yt(){const r=Ze({}),t=new Map,a=new IntersectionObserver(C=>{C.forEach(g=>{if(g.isIntersecting){let h=t.get(g.target);h!==void 0&&r.update(P=>({...P,[h]:!0}))}})});function o(C,g){t.set(g,C),a.observe(g)}return{register:o,subscribe:r.subscribe}}const $e=yt();var wt=e.from_html('<p>If your custom component never loads, consult the troubleshooting <a style="color: blue;" href="https://www.gradio.app/guides/frequently-asked-questions#the-development-server-didnt-work-for-me" class="svelte-15izthb">guide</a>.</p>'),bt=e.from_html('<div class="load-text" slot="additional-loading-text"><!></div>'),xt=e.from_html('<p class="svelte-15izthb">Please <a class="svelte-15izthb">contact the author of the space</a> to let them know.</p>'),Ct=e.from_html('<p class="svelte-15izthb"> </p>'),Et=e.from_html('<div class="error svelte-15izthb" slot="error"><p class="svelte-15izthb"><strong> </strong></p> <!></div>'),kt=e.from_html("<!> <!>",1);function Zt(r,t){e.push(t,!1);const a=()=>e.store_get($e,"$intersecting",C),o=()=>e.store_get(Ke,"$_",C),[C,g]=e.setup_stores();let h=e.mutable_source(!1);Je().then(()=>{e.set(h,!0)});const P=Qe();let E=e.prop(t,"autoscroll",12),x=e.prop(t,"version",12),M=e.prop(t,"initial_height",12),V=e.prop(t,"app_mode",12),m=e.prop(t,"is_embed",12),Q=e.prop(t,"theme_mode",12,"system"),X=e.prop(t,"control_page_title",12),ee=e.prop(t,"container",12),te=e.prop(t,"info",12),G=e.prop(t,"eager",12),re,ge=e.mutable_source([]),pe=e.mutable_source(),_e=e.mutable_source(),W=e.prop(t,"Client",12),k=e.prop(t,"space",12),se=e.prop(t,"src",12),me=vt++,q=e.mutable_source("pending"),Ie=e.mutable_source(null),A=e.mutable_source(),j=e.mutable_source(!1),Z=e.mutable_source(!1),n=e.mutable_source(),he=e.mutable_source("Loading..."),fe=e.mutable_source(),J,B=null;async function ve(s){s&&(B||(B=document.createElement("style"),document.head.appendChild(B)),B.textContent=Ae(s,x(),B)),await Le(e.get(n).root+"/theme.css?v="+e.get(n).theme_hash,document.head),e.get(n).stylesheets&&await Promise.all(e.get(n).stylesheets.map(l=>l.startsWith("http:")||l.startsWith("https:")?Le(l,document.head):fetch(e.get(n).root+"/"+l).then(c=>c.text()).then(c=>{Ae(c,x())})))}async function ye(s){if(s){const l=new DOMParser,i=Array.from(l.parseFromString(s,"text/html").head.children);if(i)for(let c of i){let d=document.createElement(c.tagName);if(Array.from(c.attributes).forEach(f=>{d.setAttribute(f.name,f.value)}),d.textContent=c.textContent,d.tagName=="META"){const f=d.getAttribute("property"),_=d.getAttribute("name");if(f||_){const R=Array.from(document.head.getElementsByTagName("meta")??[]).find(w=>f&&w.getAttribute("property")===f||_&&w.getAttribute("name")===_?!w.isEqualNode(d):!1);if(R){document.head.replaceChild(d,R);continue}}}document.head.appendChild(d)}}}function Pe(s){const l=window.__gradio_mode__==="website";let i;if(l)i="light";else{const d=new URL(window.location.toString()).searchParams.get("__theme");i=Q()||d||"system"}return i==="dark"||i==="light"?we(s,i):i=Me(s),i}function Me(s){const l=i();window?.matchMedia("(prefers-color-scheme: dark)")?.addEventListener("change",i);function i(){let c=window?.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return we(s,c),c}return l}function we(s,l){const i=m()?s.parentElement:document.body,c=m()?s:s.parentElement;c.style.background="var(--body-background-fill)",l==="dark"?i.classList.add("dark"):i.classList.remove("dark")}let u=e.mutable_source({message:"",load_status:"pending",status:"sleeping",detail:"SLEEPING"}),p=e.mutable_source(),ne=e.mutable_source(!1);function be(s){e.set(u,s)}const xe=window.__GRADIO_DEV__;let Y=e.mutable_source(!1),z=e.mutable_source(),oe=e.mutable_source(0);Re(async()=>{e.set(fe,Pe(e.get(A)));const s=window.__GRADIO__SERVER_PORT__;J=xe==="dev"?`http://localhost:${typeof s=="number"?s:7860}`:k()||se()||new URL(location.pathname,location.origin).href.replace(/\/$/,"");const l=new URLSearchParams(window.location.search).get("deep_link"),i={};if(l&&(i.deep_link=l),e.set(p,await W().connect(J,{status_callback:be,with_null_state:!0,events:["data","log","status","render"],query_params:i})),window.addEventListener("beforeunload",()=>{e.get(p).close()}),!e.get(p).config&&!e.get(n)?.auth_required)throw new Error("Could not resolve app config");e.set(n,e.get(p).get_url_config()),window.__gradio_space__=e.get(n).space_id,window.__gradio_session_hash__=e.get(p).session_hash,e.set(u,{message:"",load_status:"complete",status:"running",detail:"RUNNING"}),await ve(e.get(n).css),await ye(e.get(n).head),e.set(ne,!0),window.__is_colab__=e.get(n).is_colab;const c="supports-zerogpu-headers";window.addEventListener("message",_=>{_.data===c&&(window.supports_zerogpu_headers=!0)});const d=window.location.hostname;if(d.includes(".dev.")||d.endsWith(".hf.space")){const _=d.includes(".dev.")?`https://moon-${d.split(".")[1]}.dev.spaces.huggingface.tech`:"https://huggingface.co";window.parent.postMessage(c,_)}if(P("loaded"),e.set(ge,e.get(n).pages),e.set(pe,e.get(n).current_page),e.set(_e,e.get(n).root),e.get(n).deep_link_state==="invalid"&&e.set(Y,!0),e.get(n).js)try{const _=document.createElement("script");_.textContent=e.get(n).js,document.head.appendChild(_)}catch(_){console.error("Error executing custom JS:",_)}e.get(n).dev_mode&&setTimeout(()=>{const{host:_}=new URL(J);let F=new URL(`${window.location.protocol}//${_}${e.get(p).api_prefix}/dev/reload`);re=new EventSource(F),re.addEventListener("error",async R=>{let w=R.data;w&&(e.get(z)("Error","Error reloading app",-1,"error",10,!0),console.error(JSON.parse(w)))}),re.addEventListener("reload",async R=>{if(e.get(p).close(),e.set(p,await W().connect(J,{status_callback:be,with_null_state:!0,events:["data","log","status","render"],session_hash:e.get(p).session_hash})),!e.get(p).config)throw new Error("Could not resolve app config");e.set(n,e.get(p).get_url_config()),window.__gradio_space__=e.get(n).space_id,await ve(e.get(n).css),await ye(e.get(n).head),e.set(ne,!0),window.__is_colab__=e.get(n).is_colab,e.set(oe,e.get(oe)+1),P("loaded")})},200)});let ae=e.mutable_source(),K=e.mutable_source();async function qe(){e.set(ae,(await ke(async()=>{const{default:s}=await import("./Blocks-VSle3shO.js").then(l=>l.B);return{default:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)).default)}async function ze(){e.set(K,(await ke(async()=>{const{default:s}=await import("./Login-DW8YrY3m.js");return{default:s}},__vite__mapDeps([17,3,1,2,4,18,19,20,6,7,8,9,10,5,11,12,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url)).default)}function De(){e.get(n).auth_required?ze():qe()}let L=e.mutable_source();Re(async()=>{$e.register(me,e.get(A))});let T;async function Ne(s,l){if(s&&!l&&window.self===window.top){T&&(T.remove(),T=void 0);const i=await ft(s);i&&(T=i.element)}}Xe(()=>{T?.remove()}),e.legacy_pre_effect(()=>e.get(n),()=>{e.get(n)?.app_id&&e.set(Ie,e.get(n).app_id)}),e.legacy_pre_effect(()=>(e.get(z),e.get(Y)),()=>
2{e.get(z)&&e.get(Y)&&(e.get(z)("Error","Deep link was not valid",-1,"error",10,!0),e.set(Y,!1))}),e.legacy_pre_effect(()=>(e.get(j),e.get(u)),()=>{e.set(q,!e.get(j)&&e.get(u).load_status!=="error"?"pending":!e.get(j)&&e.get(u).load_status==="error"?"error":e.get(u).load_status)}),e.legacy_pre_effect(()=>(e.get(n),e.deep_read_state(G()),a()),()=>{e.get(n)&&(G()||a()[me])&&De()}),e.legacy_pre_effect(()=>(e.get(h),o()),()=>{e.get(h)&&(e.set(he,o()("common.loading")+"..."),e.set(L,{readable_error:{NO_APP_FILE:o()("errors.no_app_file"),CONFIG_ERROR:o()("errors.config_error"),BUILD_ERROR:o()("errors.build_error"),RUNTIME_ERROR:o()("errors.runtime_error"),PAUSED:o()("errors.space_paused")},title(s){return encodeURIComponent(o()("errors.space_not_working"))},description(s,l){return encodeURIComponent(`Hello,
3
4Firstly, thanks for creating this space!
5
6I noticed that the space isn't working correctly because there is ${this.readable_error[s]||"an error"}.
7
8It would be great if you could take a look at this because this space is being embedded on ${l}.
9
10Thanks!`)}}))}),e.legacy_pre_effect(()=>(e.get(Z),e.get(A)),()=>{e.get(Z)&&e.get(A).dispatchEvent(new CustomEvent("render",{bubbles:!0,cancelable:!1,composed:!0}))}),e.legacy_pre_effect(()=>(e.get(p),e.deep_read_state(m())),()=>{e.get(p)?.config&&Ne(e.get(p)?.config?.space_id,m())}),e.legacy_pre_effect_reset();var Oe={get autoscroll(){return E()},set autoscroll(s){E(s),e.flush()},get version(){return x()},set version(s){x(s),e.flush()},get initial_height(){return M()},set initial_height(s){M(s),e.flush()},get app_mode(){return V()},set app_mode(s){V(s),e.flush()},get is_embed(){return m()},set is_embed(s){m(s),e.flush()},get theme_mode(){return Q()},set theme_mode(s){Q(s),e.flush()},get control_page_title(){return X()},set control_page_title(s){X(s),e.flush()},get container(){return ee()},set container(s){ee(s),e.flush()},get info(){return te()},set info(s){te(s),e.flush()},get eager(){return G()},set eager(s){G(s),e.flush()},get Client(){return W()},set Client(s){W(s),e.flush()},get space(){return k()},set space(s){k(s),e.flush()},get src(){return se()},set src(s){se(s),e.flush()}};e.init();{let s=e.derived_safe_equal(()=>ee()&&m()),l=e.derived_safe_equal(()=>!!k()&&te()),i=e.derived_safe_equal(()=>e.get(q)==="complete"),c=e.derived_safe_equal(()=>(e.get(n),e.untrack(()=>e.get(n)?.fill_width||!1))),d=e.derived_safe_equal(()=>(e.get(n),e.untrack(()=>e.get(n)?.components||[])));Ye(r,{get display(){return e.get(s)},get is_embed(){return m()},get info(){return e.get(l)},get version(){return x()},get initial_height(){return M()},get space(){return k()},get loaded(){return e.get(i)},get fill_width(){return e.get(c)},get pages(){return e.get(ge)},get current_page(){return e.get(pe)},get root(){return e.get(_e)},get components(){return e.get(d)},get wrapper(){return e.get(A)},set wrapper(f){e.set(A,f)},children:(f,_)=>{var F=e.comment(),R=e.first_child(F);{var w=ie=>{var Ce=kt(),Ee=e.first_child(Ce);{var je=y=>{{let D=e.derived_safe_equal(()=>!m());et(y,{get absolute(){return e.get(D)},get status(){return e.get(q)},timer:!1,queue_position:null,queue_size:null,translucent:!0,get loading_text(){return e.get(he)},get i18n(){return o()},get autoscroll(){return E()},$$slots:{"additional-loading-text":(S,le)=>{var v=bt(),$=e.child(v);{var N=I=>{var b=wt();e.append(I,b)};e.if($,I=>{xe==="dev"&&I(N)})}e.reset(v),e.append(S,v)},error:(S,le)=>{var v=Et(),$=e.child(v),N=e.child($),I=e.child(N,!0);e.reset(N),e.reset($);var b=e.sibling($,2);{var He=O=>
10{var U=xt(),ce=e.sibling(e.child(U));e.next(),e.reset(U),e.template_effect((de,H)=>e.set_attribute(ce,"href",`https://huggingface.co/spaces/${k()??""}/discussions/new?title=${de??""}&description=${H??""}`),[()=>(e.get(L),e.get(u),e.untrack(()=>e.get(L).title(e.get(u)?.detail))),()=>(e.get(L),e.get(u),e.untrack(()=>e.get(L).description(e.get(u)?.detail,location.origin)))]),e.append(O,U)},Ve=O=>{var U=e.comment(),ce=e.first_child(U);{var de=H=>{var ue=Ct(),Ge=e.child(ue,!0);e.reset(ue),e.template_effect(We=>e.set_text(Ge,We),[()=>(o(),e.untrack(()=>o()("errors.contact_page_author")))]),e.append(H,ue)};e.if(ce,H=>{e.get(h)&&H(de)},!0)}e.append(O,U)};e.if(b,O=>{e.get(u),e.get(L),e.untrack(()=>(e.get(u).status==="space_error"||e.get(u).status==="paused")&&e.get(u).discussions_enabled&&e.get(L))?O(He):O(Ve,!1)})}e.reset(v),e.template_effect(()=>e.set_text(I,(e.get(u),e.untrack(()=>e.get(u)?.message||"")))),e.append(S,v)}}})}};e.if(Ee,y=>{e.get(q),e.get(n),e.untrack(()=>(e.get(q)==="pending"||e.get(q)==="error")&&!(e.get(n)&&e.get(n)?.auth_required))&&y(je)})}var Be=e.sibling(Ee,2);{var Te=y=>{{let D=e.derived_safe_equal(()=>e.get(h)?o():S=>S);e.get(K)(y,{get auth_message(){return e.get(n),e.untrack(()=>e.get(n).auth_message)},get root(){return e.get(n),e.untrack(()=>e.get(n).root)},get space_id(){return k()},get i18n(){return e.get(D)},get app_mode(){return V()}})}},Fe=y=>{var D=e.comment(),S=e.first_child(D);{var le=v=>{{let $=e.derived_safe_equal(()=>(e.deep_read_state(m()),e.get(n),e.untrack(()=>!m()&&e.get(n).fill_height))),N=e.derived_safe_equal(()=>(e.deep_read_state(m()),e.get(n),e.untrack(()=>m()?[]:e.get(n).footer_links))),I=e.derived_safe_equal(()=>(e.get(n),e.untrack(()=>e.get(n).api_prefix||"")));e.get(ae)(v,e.spread_props({get app(){return e.get(p)}},()=>e.get(n),{get fill_height(){return e.get($)},get theme_mode(){return e.get(fe)},get control_page_title(){return X()},get target(){return e.get(A)},get autoscroll(){return E()},get footer_links(){return e.get(N)},get app_mode(){return V()},get version(){return x()},get api_prefix(){return e.get(I)},get max_file_size(){return e.get(n),e.untrack(()=>e.get(n).max_file_size)},initial_layout:void 0,search_params:e.untrack(()=>new URLSearchParams(window.location.search)),get reload_count(){return e.get(oe)},get ready(){return e.get(j)},set ready(b){e.set(j,b)},get render_complete(){return e.get(Z)},set render_complete(b){e.set(Z,b)},get add_new_message(){return e.get(z)},set add_new_message(b){e.set(z,b)},$$legacy:!0}))}};e.if(S,v=>{e.get(n)&&e.get(ae)&&e.get(ne)&&v(le)},!0)}e.append(y,D)};e.if(Be,y=>{e.get(n),e.get(K),e.untrack(()=>e.get(n)?.auth_required&&e.get(K))?y(Te):y(Fe,!1)})}e.append(ie,Ce)};e.if(R,ie=>{e.get(h)&&ie(w)})}e.append(f,F)},$$slots:{default:!0},$$legacy:!0})}var Ue=e.pop(Oe);return g(),Ue}export{Zt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.