PageSourceSearch

https://lucyferyx-lsl-demo.hf.space/assets/StreamingBar.svelte_svelte_type_style_lang-CMrNvDrX.js

js lucyferyx-lsl-demo.hf.space collected 2026-10-03 17:04:42 UTC 10,612 bytes, 3 lines download raw bytes

1import{p as _t,i as L,d as St,b as N,f as ht,k as Lt}from"./i18n-D-XRiFon.js";import{b as Nt,aW as jt,E as $t,aX as It,aY as Ot,A as Rt,z as Bt,aZ as Wt,a_ as Ut,a$ as Dt,ac as yt,b0 as Ht,O as Pt,b1 as P,a as y,f as Y,D as Xt,b2 as Yt,aj as Vt,R as qt,y as Gt,w as u,X as O,t as K,a0 as pt,T as Kt,u as Z,a5 as X,x as W,V as A,a6 as nt,S as J,W as U,Y as C}from"./index-iG-u5S-q.js";import{h as Zt}from"./html-CIBSB0m2.js";import"./ScrollFade.svelte_svelte_type_style_lang-DsKPVR6v.js";import{A as Jt}from"./index-B_pwUImq.js";const Qt=()=>performance.now(),F={tick:e=>requestAnimationFrame(e),now:()=>Qt(),tasks:new Set};function kt(){const e=F.now();F.tasks.forEach(t=>{t.c(e)||(F.tasks.delete(t),t.f())}),F.tasks.size!==0&&F.tick(kt)}function te(e){let t;return F.tasks.size===0&&F.tick(kt),{promise:new Promise(r=>{F.tasks.add(t={c:e,f:r})}),abort(){F.tasks.delete(t)}}}function Q(e,t){yt(()=>{e.dispatchEvent(new CustomEvent(t))})}function ee(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function mt(e){const t={},r=e.split(";");for(const o of r){const[n,i]=o.split(":");if(!n||i===void 0)break;const v=ee(n.trim());t[v]=i.trim()}return t}const ae=e=>e;function st(e,t,r,o){var n=(e&Ut)!==0,i=(e&Dt)!==0,v=n&&i,f=(e&Wt)!==0,x=v?"both":n?"in":"out",l,s=t.inert,b=t.style.overflow,m,h;function k(){return yt(()=>l??=r()(t,o?.()??{},{direction:x}))}var c={is_global:f,in(){if(t.inert=s,!n){h?.abort(),h?.reset?.();return}i||m?.abort(),Q(t,"introstart"),m=dt(t,k(),h,1,()=>{Q(t,"introend"),m?.abort(),m=l=void 0,t.style.overflow=b})},out(j){if(!i){j?.(),l=void 0;return}t.inert=!0,Q(t,"outrostart"),h=dt(t,k(),m,0,()=>{Q(t,"outroend"),j?.()})},stop:()=>{m?.abort(),h?.abort()}},p=Nt;if((p.nodes.t??=[]).push(c),n&&jt){var d=f;if(!d){for(var g=p.parent;g&&(g.f&$t)!==0;)for(;(g=g.parent)&&(g.f&It)===0;);d=!g||(g.f&Ot)!==0}d&&Rt(()=>{Bt(()=>c.in())})}}function dt(e,t,r,o,n){var i=o===1;if(Ht(t)){var v,f=!1;return Pt(()=>{if(!f){var p=t({direction:i?"in":"out"});v=dt(e,p,r,o,n)}}),{abort:()=>{f=!0,v?.abort()},deactivate:()=>v.deactivate(),reset:()=>v.reset(),t:()=>v.t()}}if(r?.deactivate(),!t?.duration)return n(),{abort:P,deactivate:P,reset:P,t:()=>o};const{delay:x=0,css:l,tick:s,easing:b=ae}=t;var m=[];if(i&&r===void 0&&(s&&s(0,1),l)){var h=mt(l(0,1));m.push(h,h)}var k=()=>1-o,c=e.animate(m,{duration:x,fill:"forwards"});return c.onfinish=()=>{c.cancel();var p=r?.t()??1-o;r?.abort();var d=o-p,g=t.duration*Math.abs(d),j=[];if(g>0){var w=!1;if(l)for(var E=Math.ceil(g/16.666666666666668),z=0;z<=E;z+=1){var V=p+d*b(z/E),q=mt(l(V,1-V));j.push(q),w||=q.overflow==="hidden"}w&&(e.style.overflow="hidden"),k=()=>{var R=c.currentTime;return p+d*b(R/g)},s&&te(()=>{if(c.playState!=="running")return!1;var R=k();return s(R,1-R),!0})}c=e.animate(j,{duration:g,fill:"forwards"}),c.onfinish=()=>{k=()=>o,s?.(o,1-o),n()}},{abort:()=>{c&&(c.cancel(),c.effect=null,c.onfinish=P)},deactivate:()=>{n=P},reset:()=>{o===0&&s?.(1,0)},t:()=>k()}}var re=Y('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6L8 10L12 6"></path></svg>');function oe(e){var t=re();y(e,t)}var ie=Y('<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"></path></svg>');function ne(e){var t=ie();y(e,t)}var se=Y('<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"></path></svg>');function ce(e){var t=se();y(e,t)}var de=Y('<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>');function le(e){var t=de();y(e,t)}var ue=Y('<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-linecap="round" stroke-linejoin="round"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"></path></svg>');function ve(e){var t=ue();y(e,t)}const fe=(e,t=location.href)=>{try{return!!e&&new URL(e).origin!==new URL(t).origin}catch{return!1}};function _e(e){const t=new Jt,r=new DOMParser().parseFromString(e,"text/html");return bt(r.body,"A",o=>{o instanceof HTMLElement&&"target"in o&&fe(o.getAttribute("href"),location.href)&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"))}),t.sanitize(r).body.innerHTML}function bt(e,t,r){e&&(e.nodeName===t||typeof t=="function")&&r(e);const o=e?.childNodes||[];for(let n=0;n<o.length;n++)bt(o[n],t,r)}const he=e=>e;function xt(e){const t=e-1;return t*t*t+1}function gt(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function wt(e,{delay:t=0,duration:r=400,easing:o=he}={}){const n=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:o,css:i=>`opacity: ${i*n}`}}
1function Fe(e,{delay:t=0,duration:r=400,easing:o=xt,x:n=0,y:i=0,opacity:v=0}={}){const f=getComputedStyle(e),x=+f.opacity,l=f.transform==="none"?"":f.transform,s=x*(1-v),[b,m]=gt(n),[h,k]=gt(i);return{delay:t,duration:r,easing:o,css:(c,p)=>`
2			transform: ${l} translate(${(1-c)*b}${m}, ${(1-c)*h}${k});
3			opacity: ${x-s*p}`}}var ct=!1;function pe(e,{delay:t=0,duration:r=400,easing:o=xt,axis:n="y"}={}){const i=getComputedStyle(e);Xt&&!ct&&/(contents|inline|table)/.test(i.display)&&(ct=!0,Promise.resolve().then(()=>ct=!1),Yt(i.display));const v=+i.opacity,f=n==="y"?"height":"width",x=parseFloat(i[f]),l=n==="y"?["top","bottom"]:["left","right"],s=l.map(d=>`${d[0].toUpperCase()}${d.slice(1)}`),b=parseFloat(i[`padding${s[0]}`]),m=parseFloat(i[`padding${s[1]}`]),h=parseFloat(i[`margin${s[0]}`]),k=parseFloat(i[`margin${s[1]}`]),c=parseFloat(i[`border${s[0]}Width`]),p=parseFloat(i[`border${s[1]}Width`]);return{delay:t,duration:r,easing:o,css:d=>`overflow: hidden;opacity: ${Math.min(d*20,1)*v};${f}: ${d*x}px;padding-${l[0]}: ${d*b}px;padding-${l[1]}: ${d*m}px;margin-${l[0]}: ${d*h}px;margin-${l[1]}: ${d*k}px;border-${l[0]}-width: ${d*c}px;border-${l[1]}-width: ${d*p}px;min-${f}: 0`}}var me=U('<span class="toast-count svelte-irmu64"> </span>'),ge=U('<div class="toast-separator svelte-irmu64"></div>'),we=U('<div><div data-testid="toast-text"><!></div></div> <!>',1),ye=U('<div class="toast-messages svelte-irmu64"></div>'),ke=U("<div></div>"),be=U('<div role="status" aria-live="polite" data-testid="toast-body"><div class="toast-header svelte-irmu64" role="button" tabindex="0"><div><!></div> <div class="toast-title-row svelte-irmu64"><span> <!></span> <div><!></div></div> <button type="button" aria-label="Close" data-testid="toast-close"><span aria-hidden="true">&#215;</span></button></div> <!> <!></div>');function Ee(e,t){qt(t,!0);let r=_t(t,"messages",19,()=>[]),o=_t(t,"expanded",3,!0),n=Z(0),i=Z(0),v=Z(0),f=Z(!1),x;const l={error:"An error occurred.",warning:"Warning.",success:"Success.",info:"Info."};let s=X(()=>r().length),b=X(()=>r()[0]),m=X(()=>t.type.charAt(0).toUpperCase()+t.type.slice(1)),h=X(()=>u(b)?.duration!==null),k=X(()=>u(h)?`${u(b).duration}s`:"0s");function c(){t.ontoggle?.()}function p(){r().forEach(a=>{t.onclose?.(a.id)})}function d(a){W(n,a.touches[0].clientX,!0),W(i,a.touches[0].clientY,!0),W(f,!0)}function g(a){if(!u(f))return;const _=a.touches[0].clientX,M=a.touches[0].clientY,$=_-u(n),D=M-u(i);Math.abs($)>Math.abs(D)&&Math.abs($)>10&&(a.preventDefault(),W(v,$))}function j(){u(f)&&(Math.abs(u(v))>100?p():W(v,0),W(f,!1))}Gt(()=>{u(h)&&r().length===1&&setTimeout(p,u(b).duration*1e3)});var w=be();w.__touchstart=d,w.__touchmove=g,w.__touchend=j;var E=A(w);E.__click=c,E.__keydown=a=>{(a.key==="Enter"||a.key===" ")&&c()};var z=A(E),V=A(z);{var q=a=>{ve(a)},R=a=>{var _=nt(),M=J(_);{var $=T=>{ce(T)},D=T=>{var I=nt(),H=J(I);{var at=S=>{le(S)},rt=S=>{var B=nt(),ot=J(B);{var zt=it=>{ne(it)};L(ot,it=>{t.type==="error"&&it(zt)},!0)}y(S,B)};L(H,S=>{t.type==="success"?S(at):S(rt,!1)},!0)}y(T,I)};L(M,T=>{t.type==="info"?T($):T(D,!1)},!0)}y(a,_)};L(V,a=>{t.type==="warning"?a(q):a(R,!1)})}C(z);var tt=O(z,2),G=A(tt),lt=A(G),Ct=O(lt);{var Mt=a=>{var _=me(),M=A(_);C(_),K(()=>pt(M,`(${u(s)??""})`)),y(a,_)};L(Ct,a=>{u(s)>1&&a(Mt)})}C(G);var et=O(G,2);let ut;var Tt=A(et);oe(Tt),C(et),C(tt);var vt=O(tt,2);vt.__click=a=>{a.stopPropagation(),p()},C(E);var ft=O(E,2);{var At=a=>{var _=ye();Lt(_,23,r,M=>M.id,(M,$,D)=>{var T=we(),I=J(T),H=A(I),at=A(H);Zt(at,()=>_e(u($).message||l[t.type])),C(H),C(I);var rt=O(I,2);{var S=B=>{var ot=ge();y(B,ot)};L(rt,B=>{u(D)<r().length-1&&B(S)})}K(()=>{N(I,1,`toast-message-item ${t.type??""}`,"svelte-irmu64"),N(H,1,`toast-message-text ${t.type??""}`,"svelte-irmu64")}),y(M,T)}),C(_),st(3,_,()=>pe,()=>({duration:200})),y(a,_)};L(ft,a=>{o()&&a(At)})}var Ft=O(ft,2);{var Et=a=>{var _=ke();K(()=>{N(_,1,`timer ${t.type??""}`,"svelte-irmu64"),ht(_,`animation-duration: ${u(k)??""}`)}),y(a,_)};L(Ft,a=>{u(h)&&a(Et)})}C(w),St(w,a=>x=a,()=>x),K(a=>{N(w,1,`toast-body ${t.type??""}`,"svelte-irmu64"),ht(w,`transform: translateX(${u(v)??""}px); opacity: ${a??""};`),N(z,1,`toast-icon ${t.type??""}`,"svelte-irmu64"),N(G,1,`toast-title ${t.type??""}`,"svelte-irmu64"),pt(lt,`${u(m)??""} `),ut=N(et,1,"chevron svelte-irmu64",null,ut,{expanded:o(),visible:u(s)>0}),N(vt,1,`toast-close ${t.type??""}`,"svelte-irmu64")},[()=>1-Math.abs(u(v))/300]),st(1,w,()=>wt,()=>({duration:200,delay:100})),st(2,w,()=>wt,()=>({duration:200})),y(e,w),Kt()}Vt(["touchstart","touchmove","touchend","click","keydown"]);export{Ee as T,Fe as a,wt as f,te as l,F as r,pe as s,st as t};

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.