PageSourceSearch

https://vonagam-nemo-forced-aligner.hf.space/assets/Index-CLYYF5f_.js

js vonagam-nemo-forced-aligner.hf.space collected 2026-10-03 10:24:38 UTC 25,390 bytes, 2 lines download raw bytes

1import{C as tt,S as lt}from"./Index-B0pzGNvZ.js";import{B as it}from"./BlockTitle-DI0Oegzl.js";import{F as nt}from"./File-BQ_9P3Ye.js";import{M as st}from"./Music-CDm0RGMk.js";import{V as at}from"./Video-fsmLZWjA.js";import{U as ot}from"./Upload-B4kDUXWy.js";/* empty css                                                   */import{I as ut}from"./Image-D0PROUKW.js";import"./index-BBXRYz6K.js";/* empty css                                                   */import{B as rt}from"./Button-B9ZzokJD.js";import{default as Zl}from"./Example-CU0kEvz5.js";import"./Info-0jkNQh-4.js";import"./file-url-MvGfSkSF.js";import"./svelte/svelte.js";const{SvelteComponent:ft,append:_e,attr:U,detach:_t,init:ct,insert:ht,noop:be,safe_not_equal:dt,svg_element:ie}=window.__gradio__svelte__internal;function mt(l){let e,t,i,o,n;return{c(){e=ie("svg"),t=ie("g"),i=ie("g"),o=ie("g"),n=ie("path"),U(t,"id","SVGRepo_bgCarrier"),U(t,"stroke-width","0"),U(i,"id","SVGRepo_tracerCarrier"),U(i,"stroke-linecap","round"),U(i,"stroke-linejoin","round"),U(n,"d","M1752.768 221.109C1532.646.986 1174.283.986 954.161 221.109l-838.588 838.588c-154.052 154.165-154.052 404.894 0 558.946 149.534 149.421 409.976 149.308 559.059 0l758.738-758.626c87.982-88.094 87.982-231.417 0-319.51-88.32-88.208-231.642-87.982-319.51 0l-638.796 638.908 79.85 79.849 638.795-638.908c43.934-43.821 115.539-43.934 159.812 0 43.934 44.047 43.934 115.877 0 159.812l-758.739 758.625c-110.23 110.118-289.355 110.005-399.36 0-110.118-110.117-110.005-289.242 0-399.247l838.588-838.588c175.963-175.962 462.382-176.188 638.909 0 176.075 176.188 176.075 462.833 0 638.908l-798.607 798.72 79.849 79.85 798.607-798.72c220.01-220.123 220.01-578.485 0-798.607"),U(n,"fill-rule","evenodd"),U(o,"id","SVGRepo_iconCarrier"),U(e,"fill","currentColor"),U(e,"viewBox","0 0 1920 1920"),U(e,"xmlns","http://www.w3.org/2000/svg")},m(u,d){ht(u,e,d),_e(e,t),_e(e,i),_e(e,o),_e(o,n)},p:be,i:be,o:be,d(u){u&&_t(e)}}}class gt extends ft{constructor(e){super(),ct(this,e,null,mt,dt,{})}}const{SvelteComponent:bt,append:ce,attr:E,detach:wt,init:kt,insert:vt,noop:we,safe_not_equal:pt,svg_element:ne}=window.__gradio__svelte__internal;function Lt(l){let e,t,i,o,n;return{c(){e=ne("svg"),t=ne("g"),i=ne("g"),o=ne("g"),n=ne("path"),E(t,"id","SVGRepo_bgCarrier"),E(t,"stroke-width","0"),E(i,"id","SVGRepo_tracerCarrier"),E(i,"stroke-linecap","round"),E(i,"stroke-linejoin","round"),E(n,"d","M19.1168 12.1484C19.474 12.3581 19.9336 12.2384 20.1432 11.8811C20.3528 11.5238 20.2331 11.0643 19.8758 10.8547L19.1168 12.1484ZM6.94331 4.13656L6.55624 4.77902L6.56378 4.78344L6.94331 4.13656ZM5.92408 4.1598L5.50816 3.5357L5.50816 3.5357L5.92408 4.1598ZM5.51031 5.09156L4.76841 5.20151C4.77575 5.25101 4.78802 5.29965 4.80505 5.34671L5.51031 5.09156ZM7.12405 11.7567C7.26496 12.1462 7.69495 12.3477 8.08446 12.2068C8.47397 12.0659 8.67549 11.6359 8.53458 11.2464L7.12405 11.7567ZM19.8758 12.1484C20.2331 11.9388 20.3528 11.4793 20.1432 11.122C19.9336 10.7648 19.474 10.6451 19.1168 10.8547L19.8758 12.1484ZM6.94331 18.8666L6.56375 18.2196L6.55627 18.2241L6.94331 18.8666ZM5.92408 18.8433L5.50815 19.4674H5.50815L5.92408 18.8433ZM5.51031 17.9116L4.80505 17.6564C4.78802 17.7035 4.77575 17.7521 4.76841 17.8016L5.51031 17.9116ZM8.53458 11.7567C8.67549 11.3672 8.47397 10.9372 8.08446 10.7963C7.69495 10.6554 7.26496 10.8569 7.12405 11.2464L8.53458 11.7567ZM19.4963 12.2516C19.9105 12.2516 20.2463 11.9158 20.2463 11.5016C20.2463 11.0873 19.9105 10.7516 19.4963 10.7516V12.2516ZM7.82931 10.7516C7.4151 10.7516 7.07931 11.0873 7.07931 11.5016C7.07931 11.9158 7.4151 12.2516 7.82931 12.2516V10.7516ZM19.8758 10.8547L7.32284 3.48968L6.56378 4.78344L19.1168 12.1484L19.8758 10.8547ZM7.33035 3.49414C6.76609 3.15419 6.05633 3.17038 5.50816 3.5357L6.34 4.78391C6.40506 4.74055 6.4893 4.73863 6.55627 4.77898L7.33035 3.49414ZM5.50816 3.5357C4.95998 3.90102 4.67184 4.54987 4.76841 5.20151L6.25221 4.98161C6.24075 4.90427 6.27494 4.82727 6.34 4.78391L5.50816 3.5357ZM4.80505 5.34671L7.12405 11.7567L8.53458 11.2464L6.21558 4.83641L4.80505 5.34671ZM19.1168 10.8547L6.56378 18.2197L7.32284 19.5134L19.8758 12.1484L19.1168 10.8547ZM6.55627 18.2241C6.4893 18.2645 6.40506 18.2626 6.34 18.2192L5.50815 19.4674C6.
105633 19.8327 6.76609 19.8489 7.33035 19.509L6.55627 18.2241ZM6.34 18.2192C6.27494 18.1759 6.24075 18.0988 6.25221 18.0215L4.76841 17.8016C4.67184 18.4532 4.95998 19.1021 5.50815 19.4674L6.34 18.2192ZM6.21558 18.1667L8.53458 11.7567L7.12405 11.2464L4.80505 17.6564L6.21558 18.1667ZM19.4963 10.7516H7.82931V12.2516H19.4963V10.7516Z"),E(n,"fill","currentColor"),E(o,"id","SVGRepo_iconCarrier"),E(e,"viewBox","0 0 22 24"),E(e,"width","100%"),E(e,"height","100%"),E(e,"fill","none"),E(e,"xmlns","http://www.w3.org/2000/svg")},m(u,d){vt(u,e,d),ce(e,t),ce(e,i),ce(e,o),ce(o,n)},p:we,i:we,o:we,d(u){u&&wt(e)}}}class Ct extends bt{constructor(e){super(),kt(this,e,null,Lt,pt,{})}}const{tick:Mt}=window.__gradio__svelte__internal;async function he(l,e,t){if(await Mt(),e===t)return;let i=t===void 0?!1:t===void 0?21*11:21*(t+1),o=21*(e+1);l.style.height="1px";let n;i&&l.scrollHeight>i?n=i:l.scrollHeight<o?n=o:n=l.scrollHeight,l.style.height=`${n}px`}function Zt(l,e){if(e.lines!==e.max_lines&&(l.style.overflowY="scroll",l.addEventListener("input",t=>he(t.target,e.lines,e.max_lines)),!!e.text.trim()))return he(l,e.lines,e.max_lines),{destroy:()=>l.removeEventListener("input",t=>he(t.target,e.lines,e.max_lines))}}const{SvelteComponent:St,action_destroyer:zt,add_flush_callback:ke,append:A,attr:z,bind:ve,binding_callbacks:se,bubble:pe,check_outros:oe,create_component:y,destroy_component:N,destroy_each:Vt,detach:x,element:W,ensure_array_like:Se,flush:Z,group_outros:ue,init:Ht,insert:$,is_function:Bt,listen:K,mount_component:Y,noop:re,run_all:Tt,safe_not_equal:qt,set_data:Et,set_input_value:ze,set_style:Ve,space:X,text:Ae,toggle_class:te,transition_in:C,transition_out:V}=window.__gradio__svelte__internal,{beforeUpdate:Gt,afterUpdate:Rt,createEventDispatcher:Dt,tick:He}=window.__gradio__svelte__internal;function Be(l,e,t){const i=l.slice();return i[51]=e[t],i[53]=t,i}function jt(l){let e;return{c(){e=Ae(l[4])},m(t,i){$(t,e,i)},p(t,i){i[0]&16&&Et(e,t[4])},d(t){t&&x(e)}}}function Te(l){let e,t,i,o=Se(l[0].files),n=[];for(let f=0;f<o.length;f+=1)n[f]=qe(Be(l,o,f));const u=f=>V(n[f],1,1,()=>{n[f]=null});let d=l[21]&&Ee();return{c(){e=W("div");for(let f=0;f<n.length;f+=1)n[f].c();t=X(),d&&d.c(),z(e,"class","thumbnails scroll-hide svelte-1942l89"),z(e,"data-testid","container_el"),Ve(e,"display",l[0].files.length>0||l[21]?"flex":"none")},m(f,m){$(f,e,m);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null);A(e,t),d&&d.m(e,null),i=!0},p(f,m){if(m[0]&134217737){o=Se(f[0].files);let s;for(s=0;s<o.length;s+=1){const c=Be(f,o,s);n[s]?(n[s].p(c,m),C(n[s],1)):(n[s]=qe(c),n[s].c(),C(n[s],1),n[s].m(e,t))}for(ue(),s=o.length;s<n.length;s+=1)u(s);oe()}f[21]?d||(d=Ee(),d.c(),d.m(e,null)):d&&(d.d(1),d=null),(!i||m[0]&2097153)&&Ve(e,"display",f[0].files.length>0||f[21]?"flex":"none")},i(f){if(!i){for(let m=0;m<o.length;m+=1)C(n[m]);i=!0}},o(f){n=n.filter(Boolean);for(let m=0;m<n.length;m+=1)V(n[m]);i=!1},d(f){f&&x(e),Vt(n,f),d&&d.d()}}}function Ut(l){let e,t;return e=new nt({}),{c(){y(e.$$.fragment)},m(i,o){Y(e,i,o),t=!0},p:re,i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){V(e.$$.fragment,i),t=!1},d(i){N(e,i)}}}function At(l){let e,t;return e=new at({}),{c(){y(e.$$.fragment)},m(i,o){Y(e,i,o),t=!0},p:re,i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){V(e.$$.fragment,i),t=!1},d(i){N(e,i)}}}function Ft(l){let e,t;return e=new st({}),{c(){y(e.$$.fragment)},m(i,o){Y(e,i,o),t=!0},p:re,i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){V(e.$$.fragment,i),t=!1},d(i){N(e,i)}}}function It(l){let e,t;return e=new ut({props:{src:l[51].url,title:null,alt:"",loading:"lazy",class:"thumbnail-image"}}),{c(){y(e.$$.fragment)},m(i,o){Y(e,i,o),t=!0},p(i,o){const n={};o[0]&1&&(n.src=i[51].url),e.$set(n)},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){V(e.$$.fragment,i),t=!1},d(i){N(e,i)}}}function qe(l){let e,t,i,o,n,u,d,f,m,s,c,h;i=new tt({});function F(...w){return l[37](l[53],...w)}const g=[It,Ft,At,Ut],M=[];function q(w,S){return S[0]&1&&(n=null),S[0]&1&&(u=null),S[0]&1&&(d=null),n==null&&(n=!!(w[51].mime_type&&w[51].mime_type.includes("image"))),n?0:(u==null&&(u=!!(w[51].mime_type&&w[51].mime_type.includes("audio"))),u?1:(d==null&&(d=!!(w[51].mime_type&&w[51].mime_type.includes("video"))),d?2:3))}return f=q(l,[-1,-1]),m=M[f]=g[f](l),{c(){e=W("button"),t=W("button"),y(i.$$.fragment),o=X(),m.c(),z(t,"class","delete-button svelte-1942l89"),te(t,"disabled",l[3]),z(e,"class","thumbnail-item thumbnail-small svelte-1942l89")},m(w,S){$(w,e,S),A(e,t),Y(i,t,null),A(e,o),M[f].m(e,null),s=!0,c||(h=K(t,"click",F),c=!0)},p(w,S){l=w,(!s||S[0]&8)&&te(t,"disabled",l[3]);let k=f;f=q(l,S),f===k?M[f].p(l,S):(ue(),V(M[k],1,1,()=>{M[k]=null}
1),oe(),m=M[f],m?m.p(l,S):(m=M[f]=g[f](l),m.c()),C(m,1),m.m(e,null))},i(w){s||(C(i.$$.fragment,w),C(m),s=!0)},o(w){V(i.$$.fragment,w),V(m),s=!1},d(w){w&&x(e),N(i),M[f].d(),c=!1,h()}}}function Ee(l){let e;return{c(){e=W("div"),z(e,"class","loader svelte-1942l89")},m(t,i){$(t,e,i)},d(t){t&&x(e)}}}function Ge(l){let e,t,i,o,n,u;const d=[Pt,Kt],f=[];function m(s,c){return s[9]===!0?0:1}return t=m(l),i=f[t]=d[t](l),{c(){e=W("button"),i.c(),z(e,"class","submit-button svelte-1942l89"),te(e,"padded-button",l[9]!==!0)},m(s,c){$(s,e,c),f[t].m(e,null),o=!0,n||(u=K(e,"click",l[29]),n=!0)},p(s,c){let h=t;t=m(s),t!==h&&(ue(),V(f[h],1,1,()=>{f[h]=null}),oe(),i=f[t],i||(i=f[t]=d[t](s),i.c()),C(i,1),i.m(e,null)),(!o||c[0]&512)&&te(e,"padded-button",s[9]!==!0)},i(s){o||(C(i),o=!0)},o(s){V(i),o=!1},d(s){s&&x(e),f[t].d(),n=!1,u()}}}function Kt(l){let e;return{c(){e=Ae("Hello World")},m(t,i){$(t,e,i)},i:re,o:re,d(t){t&&x(e)}}}function Pt(l){let e,t;return e=new Ct({}),{c(){y(e.$$.fragment)},m(i,o){Y(e,i,o),t=!0},i(i){t||(C(e.$$.fragment,i),t=!0)},o(i){V(e.$$.fragment,i),t=!1},d(i){N(e,i)}}}function Wt(l){let e,t,i,o,n,u,d,f,m,s,c,h,F,g,M,q,w,S,k,D,J;t=new it({props:{show_label:l[6],info:l[5],$$slots:{default:[jt]},$$scope:{ctx:l}}});let v=(l[0].files.length>0||l[21])&&Te(l);function P(_){l[39](_)}function G(_){l[40](_)}function H(_){l[41](_)}let j={filetype:l[22],root:l[13],max_file_size:l[14],show_progress:!1,disable_click:!0,hidden:!0,upload:l[15],stream_handler:l[16]};l[18]!==void 0&&(j.dragging=l[18]),l[21]!==void 0&&(j.uploading=l[21]),l[20]!==void 0&&(j.hidden_upload=l[20]),u=new ot({props:j}),l[38](u),se.push(()=>ve(u,"dragging",P)),se.push(()=>ve(u,"uploading",G)),se.push(()=>ve(u,"hidden_upload",H)),u.$on("load",l[26]),u.$on("error",l[42]),h=new gt({});let L=l[9]&&Ge(l);return{c(){e=W("label"),y(t.$$.fragment),i=X(),v&&v.c(),o=X(),n=W("div"),y(u.$$.fragment),s=X(),c=W("button"),y(h.$$.fragment),F=X(),g=W("textarea"),S=X(),L&&L.c(),z(c,"data-testid","upload-button"),z(c,"class","upload-button svelte-1942l89"),z(g,"data-testid","textbox"),z(g,"class","scroll-hide svelte-1942l89"),z(g,"dir",M=l[10]?"rtl":"ltr"),z(g,"placeholder",l[2]),z(g,"rows",l[1]),g.disabled=l[3],g.autofocus=l[11],z(g,"style",q=l[12]?"text-align: "+l[12]:""),z(n,"class","input-container svelte-1942l89"),te(e,"container",l[7])},m(_,b){$(_,e,b),Y(t,e,null),A(e,i),v&&v.m(e,null),A(e,o),A(e,n),Y(u,n,null),A(n,s),A(n,c),Y(h,c,null),A(n,F),A(n,g),ze(g,l[0].text),l[44](g),A(n,S),L&&L.m(n,null),k=!0,l[11]&&g.focus(),D||(J=[K(c,"click",l[28]),zt(w=Zt.call(null,g,{text:l[0].text,lines:l[1],max_lines:l[8]})),K(g,"input",l[43]),K(g,"keypress",l[24]),K(g,"blur",l[35]),K(g,"select",l[23]),K(g,"focus",l[36]),K(g,"scroll",l[25]),K(g,"paste",l[30])],D=!0)},p(_,b){const I={};b[0]&64&&(I.show_label=_[6]),b[0]&32&&(I.info=_[5]),b[0]&16|b[1]&8388608&&(I.$$scope={dirty:b,ctx:_}),t.$set(I),_[0].files.length>0||_[21]?v?(v.p(_,b),b[0]&2097153&&C(v,1)):(v=Te(_),v.c(),C(v,1),v.m(e,o)):v&&(ue(),V(v,1,1,()=>{v=null}),oe());const T={};b[0]&4194304&&(T.filetype=_[22]),b[0]&8192&&(T.root=_[13]),b[0]&16384&&(T.max_file_size=_[14]),b[0]&32768&&(T.upload=_[15]),b[0]&65536&&(T.stream_handler=_[16]),!d&&b[0]&262144&&(d=!0,T.dragging=_[18],ke(()=>d=!1)),!f&&b[0]&2097152&&(f=!0,T.uploading=_[21],ke(()=>f=!1)),!m&&b[0]&1048576&&(m=!0,T.hidden_upload=_[20],ke(()=>m=!1)),u.$set(T),(!k||b[0]&1024&&M!==(M=_[10]?"rtl":"ltr"))&&z(g,"dir",M),(!k||b[0]&4)&&z(g,"placeholder",_[2]),(!k||b[0]&2)&&z(g,"rows",_[1]),(!k||b[0]&8)&&(g.disabled=_[3]),(!k||b[0]&2048)&&(g.autofocus=_[11]),(!k||b[0]&4096&&q!==(q=_[12]?"text-align: "+_[12]:""))&&z(g,"style",q),w&&Bt(w.update)&&b[0]&259&&w.update.call(null,{text:_[0].text,lines:_[1],max_lines:_[8]}),b[0]&1&&ze(g,_[0].text),_[9]?L?(L.p(_,b),b[0]&512&&C(L,1)):(L=Ge(_),L.c(),C(L,1),L.m(n,null)):L&&(ue(),V(L,1,1,()=>{L=null}),oe()),(!k||b[0]&128)&&te(e,"container",_[7])},i(_){k||(C(t.$$.fragment,_),C(v),C(u.$$.fragment,_),C(h.$$.fragment,_),C(L),k=!0)},o(_){V(t.$$.fragment,_),V(v),V(u.$$.fragment,_),V(h.$$.fragment,_),V(L),k=!1},d(_){_&&x(e),N(t),v&&v.d(),l[38](null),N(u),N(h),l[44](null),L&&L.d(),D=!1,Tt(J)}}}function yt(l,e,t){let{value:i={text:"",files:[]}}=e,{value_is_output:o=!1}=e,{lines:n=1}=e,{placeholder:u="Type here..."}=e,{disabled:d=!1}=e,{label:f}=e,{info:m=void 0}=e,{show_label:s=!0}=e,{container:c=!0}=e,{max_lines:h}=e,{submit_btn:F=null}=e,{rtl:g=!1}=e,{autofocus:M=!1}=e,{text_align:q=void 0}=e,{autoscroll:w=!0}=e,{root:S}=e,{file_types:k=null}=e,{max_file_size:D=null}=e,{upload:J}=e,{stream_handler:v}=e,P,G,H,j,L=0,_=!1,b=!1,I=!1,T=i.text,le;k==null?le=null:(k=k.map(a=>a.startsWith(".")?a:a+"/*"),le=k.join(", "));const R=Dt();Gt(()=>{j=H&&H.offsetHeight+H.scrollTop>H.scrollHeight-100});const de=()=>{j&&w&&!_&&H.scrollTo(0,H.scrollHeight)};
1async function fe(){R("change",i),o||R("input")}Rt(()=>{M&&H!==null&&H.focus(),j&&w&&de(),t(31,o=!1)});function me(a){const B=a.target,Q=B.value,O=[B.selectionStart,B.selectionEnd];R("select",{value:Q.substring(...O),index:O})}async function r(a){await He(),(a.key==="Enter"&&a.shiftKey&&n>1||a.key==="Enter"&&!a.shiftKey&&n===1&&h>=1)&&(a.preventDefault(),R("submit"))}function Fe(a){const B=a.target,Q=B.scrollTop;Q<L&&(_=!0),L=Q;const O=B.scrollHeight-B.clientHeight;Q>=O&&(_=!1)}async function Ie({detail:a}){if(fe(),Array.isArray(a))for(let B of a)i.files.push(B);else i.files.push(a),t(0,i);await He(),R("change",i),R("upload",a)}function Ze(a,B){fe(),a.stopPropagation(),i.files.splice(B,1),t(0,i)}function Ke(){G&&(t(20,G.value="",G),G.click())}async function Pe(){R("submit")}function We(a){if(!a.clipboardData)return;const B=a.clipboardData.items;for(let Q in B){const O=B[Q];if(O.kind==="file"&&O.type.includes("image")){const ge=O.getAsFile();ge&&P.load_files([ge])}}}function ye(a){pe.call(this,l,a)}function Ne(a){pe.call(this,l,a)}const Ye=(a,B)=>Ze(B,a);function Je(a){se[a?"unshift":"push"](()=>{P=a,t(19,P)})}function Oe(a){b=a,t(18,b)}function Qe(a){I=a,t(21,I)}function Xe(a){G=a,t(20,G)}function xe(a){pe.call(this,l,a)}function $e(){i.text=this.value,t(0,i)}function et(a){se[a?"unshift":"push"](()=>{H=a,t(17,H)})}return l.$$set=a=>{"value"in a&&t(0,i=a.value),"value_is_output"in a&&t(31,o=a.value_is_output),"lines"in a&&t(1,n=a.lines),"placeholder"in a&&t(2,u=a.placeholder),"disabled"in a&&t(3,d=a.disabled),"label"in a&&t(4,f=a.label),"info"in a&&t(5,m=a.info),"show_label"in a&&t(6,s=a.show_label),"container"in a&&t(7,c=a.container),"max_lines"in a&&t(8,h=a.max_lines),"submit_btn"in a&&t(9,F=a.submit_btn),"rtl"in a&&t(10,g=a.rtl),"autofocus"in a&&t(11,M=a.autofocus),"text_align"in a&&t(12,q=a.text_align),"autoscroll"in a&&t(33,w=a.autoscroll),"root"in a&&t(13,S=a.root),"file_types"in a&&t(32,k=a.file_types),"max_file_size"in a&&t(14,D=a.max_file_size),"upload"in a&&t(15,J=a.upload),"stream_handler"in a&&t(16,v=a.stream_handler)},l.$$.update=()=>{l.$$.dirty[0]&262144&&R("drag",b),l.$$.dirty[0]&1&&i===null&&t(0,i={text:"",files:[]}),l.$$.dirty[0]&1|l.$$.dirty[1]&8&&T!==i.text&&(R("change",i),t(34,T=i.text)),l.$$.dirty[0]&131331&&H&&n!==h&&he(H,n,h)},[i,n,u,d,f,m,s,c,h,F,g,M,q,S,D,J,v,H,b,P,G,I,le,me,r,Fe,Ie,Ze,Ke,Pe,We,o,k,w,T,ye,Ne,Ye,Je,Oe,Qe,Xe,xe,$e,et]}class Nt extends St{constructor(e){super(),Ht(this,e,yt,Wt,qt,{value:0,value_is_output:31,lines:1,placeholder:2,disabled:3,label:4,info:5,show_label:6,container:7,max_lines:8,submit_btn:9,rtl:10,autofocus:11,text_align:12,autoscroll:33,root:13,file_types:32,max_file_size:14,upload:15,stream_handler:16},null,[-1,-1])}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),Z()}get value_is_output(){return this.$$.ctx[31]}set value_is_output(e){this.$$set({value_is_output:e}),Z()}get lines(){return this.$$.ctx[1]}set lines(e){this.$$set({lines:e}),Z()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),Z()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),Z()}get label(){return this.$$.ctx[4]}set label(e){this.$$set({label:e}),Z()}get info(){return this.$$.ctx[5]}set info(e){this.$$set({info:e}),Z()}get show_label(){return this.$$.ctx[6]}set show_label(e){this.$$set({show_label:e}),Z()}get container(){return this.$$.ctx[7]}set container(e){this.$$set({container:e}),Z()}get max_lines(){return this.$$.ctx[8]}set max_lines(e){this.$$set({max_lines:e}),Z()}get submit_btn(){return this.$$.ctx[9]}set submit_btn(e){this.$$set({submit_btn:e}),Z()}get rtl(){return this.$$.ctx[10]}set rtl(e){this.$$set({rtl:e}),Z()}get autofocus(){return this.$$.ctx[11]}set autofocus(e){this.$$set({autofocus:e}),Z()}get text_align(){return this.$$.ctx[12]}set text_align(e){this.$$set({text_align:e}),Z()}get autoscroll(){return this.$$.ctx[33]}set autoscroll(e){this.$$set({autoscroll:e}),Z()}get root(){return this.$$.ctx[13]}set root(e){this.$$set({root:e}),Z()}get file_types(){return this.$$.ctx[32]}set file_types(e){this.$$set({file_types:e}),Z()}get max_file_size(){return this.$$.ctx[14]}set max_file_size(e){this.$$set({max_file_size:e}),Z()}get upload(){return this.$$.ctx[15]}set upload(e){this.$$set({upload:e}),Z()}get stream_handler(){return this.$$.ctx[16]}set stream_handler(e){this.$$set({stream_handler:e}),Z()}}const Yt=Nt,{SvelteComponent:Jt,add_flush_callback:Re,assign:Ot,bind:De,binding_callbacks:je,check_outros:Qt,create_component:Le,destroy_component:Ce,detach:Xt,flush:p,get_spread_object:xt,get_spread_update:$t,group_outros:el,init:tl,insert:ll,mount_component:Me,safe_not_equal:il,space:nl,transition_in:ee,transition_out:ae}=window.__gradio__svelte__internal;function Ue(l){let e,t;const i=[{autoscroll:l[2].autoscroll},{i18n:l[2].i18n},l[17]];let o={};for(let n=0;n<i.length;n+=1)o=Ot(o,i[n]);return e=new lt({props:o}),e.$on("clear_status",l[24]),{c(){Le(e.$$.fragment)},m(n,u){Me(e,n,u),t=!0},p(n,u){const d=u[0]&131076?$t(i,[u[0]&4&&{autoscroll:n[2].autoscroll},u[0]&4&&{i18n:n[2].i18n},u[0]&131072&&xt(n[17])]):{};e.$set(d)},i(n){t||(ee(e.$$.fragment,n),t=!0)},o(n){ae(e.$$.fragment,n),t=!1},d(n){Ce(e,n)}}}function sl(l){let e,t,i,o,n,u=l[17]&&Ue(l);function d(s){l[25](s)}function f(s){l[26](s)}let m={file_types:l[6],root:l[23],label:l[9],info:l[10],show_label:l[11],lines:l[7],rtl:l[18],text_align:l[19],max_lines:l[12]?l[12]:l[7]+1,placeholder:l[8],submit_btn:l[16],autofocus:l[20],container:l[13],autoscroll:l[21],max_file_size:l[2].max_file_size,disabled:!l[22],upload:l[2].client.upload,stream_handler:l[2].client.stream};return l[0]!==void 0&&(m.value=l[0]),l[1]!==void 0&&(m.value_is_output=l[1]),t=new Yt({props:m}),je.push(()=>De(t,"value",d)),je.push(()=>De(t,"value_is_output",f)),t.$on("change",l[27]),t.$on("input",l[28]),t.$on("submit",l[29]),t.$on("blur",l[30]),t.$on("select",l[31]),t.$on("focus",l[32]),t.$on("error",l[33]),{c(){u&&u.c(),e=nl(),Le(t.$$.fragment)},m(s,c){u&&u.m(s,c),ll(s,e,c),Me(t,s,c),n=!0},p(s,c){s[17]?u?(u.p(s,c),c[0]&131072&&ee(u,1)):(u=Ue(s),u.c(),ee(u,1),u.m(e.parentNode,e)):u&&(el(),ae(u,1,1,()=>{u=null}),Qt());const h={};c[0]&64&&(h.file_types=s[6]),c[0]&8388608&&(h.root=s[23]),c[0]&512&&(h.label=s[9]),c[0]&1024&&(h.info=s[10]),c[0]&2048&&(h.show_label=s[11]),c[0]&128&&(h.lines=s[7]),c[0]&262144&&(h.rtl=s[18]),c[0]&524288&&(h.text_align=s[19]),c[0]&4224&&(h.max_lines=s[12]?s[12]:s[7]+1),c[0]&256&&(h.placeholder=s[8]),c[0]&65536&&(h.submit_btn=s[16]),c[0]&1048576&&(h.autofocus=s[20]),c[0]&8192&&(h.container=s[13]),c[0]&2097152&&(h.autoscroll=s[21]),c[0]&4&&(h.max_file_size=s[2].max_file_size),c[0]&4194304&&(h.disabled=!s[22]),c[0]&4&&(h.upload=s[2].client.upload),c[0]&4&&(h.stream_handler=s[2].client.stream),!i&&c[0]&1&&(i=!0,h.value=s[0],Re(()=>i=!1)),!o&&c[0]&2&&(o=!0,h.value_is_output=s[1],Re(()=>
vendor: 4,934 bytes, lines 1-2
1o=!1)),t.$set(h)},i(s){n||(ee(u),ee(t.$$.fragment,s),n=!0)},o(s){ae(u),ae(t.$$.fragment,s),n=!1},d(s){s&&Xt(e),u&&u.d(s),Ce(t,s)}}}function al(l){let e,t;return e=new rt({props:{visible:l[5],elem_id:l[3],elem_classes:l[4],scale:l[14],min_width:l[15],allow_overflow:!1,padding:l[13],$$slots:{default:[sl]},$$scope:{ctx:l}}}),{c(){Le(e.$$.fragment)},m(i,o){Me(e,i,o),t=!0},p(i,o){const n={};o[0]&32&&(n.visible=i[5]),o[0]&8&&(n.elem_id=i[3]),o[0]&16&&(n.elem_classes=i[4]),o[0]&16384&&(n.scale=i[14]),o[0]&32768&&(n.min_width=i[15]),o[0]&8192&&(n.padding=i[13]),o[0]&16728007|o[1]&8&&(n.$$scope={dirty:o,ctx:i}),e.$set(n)},i(i){t||(ee(e.$$.fragment,i),t=!0)},o(i){ae(e.$$.fragment,i),t=!1},d(i){Ce(e,i)}}}function ol(l,e,t){let{gradio:i}=e,{elem_id:o=""}=e,{elem_classes:n=[]}=e,{visible:u=!0}=e,{value:d={text:"",files:[]}}=e,{file_types:f=null}=e,{lines:m}=e,{placeholder:s=""}=e,{label:c="MultimodalTextbox"}=e,{info:h=void 0}=e,{show_label:F}=e,{max_lines:g}=e,{container:M=!0}=e,{scale:q=null}=e,{min_width:w=void 0}=e,{submit_btn:S=null}=e,{loading_status:k=void 0}=e,{value_is_output:D=!1}=e,{rtl:J=!1}=e,{text_align:v=void 0}=e,{autofocus:P=!1}=e,{autoscroll:G=!0}=e,{interactive:H}=e,{root:j}=e;const L=()=>i.dispatch("clear_status",k);function _(r){d=r,t(0,d)}function b(r){D=r,t(1,D)}const I=()=>i.dispatch("change",d),T=()=>i.dispatch("input"),le=()=>i.dispatch("submit"),R=()=>i.dispatch("blur"),de=r=>i.dispatch("select",r.detail),fe=()=>i.dispatch("focus"),me=({detail:r})=>{i.dispatch("error",r)};return l.$$set=r=>{"gradio"in r&&t(2,i=r.gradio),"elem_id"in r&&t(3,o=r.elem_id),"elem_classes"in r&&t(4,n=r.elem_classes),"visible"in r&&t(5,u=r.visible),"value"in r&&t(0,d=r.value),"file_types"in r&&t(6,f=r.file_types),"lines"in r&&t(7,m=r.lines),"placeholder"in r&&t(8,s=r.placeholder),"label"in r&&t(9,c=r.label),"info"in r&&t(10,h=r.info),"show_label"in r&&t(11,F=r.show_label),"max_lines"in r&&t(12,g=r.max_lines),"container"in r&&t(13,M=r.container),"scale"in r&&t(14,q=r.scale),"min_width"in r&&t(15,w=r.min_width),"submit_btn"in r&&t(16,S=r.submit_btn),"loading_status"in r&&t(17,k=r.loading_status),"value_is_output"in r&&t(1,D=r.value_is_output),"rtl"in r&&t(18,J=r.rtl),"text_align"in r&&t(19,v=r.text_align),"autofocus"in r&&t(20,P=r.autofocus),"autoscroll"in r&&t(21,G=r.autoscroll),"interactive"in r&&t(22,H=r.interactive),"root"in r&&t(23,j=r.root)},[d,D,i,o,n,u,f,m,s,c,h,F,g,M,q,w,S,k,J,v,P,G,H,j,L,_,b,I,T,le,R,de,fe,me]}class Ll extends Jt{constructor(e){super(),tl(this,e,ol,al,il,{gradio:2,elem_id:3,elem_classes:4,visible:5,value:0,file_types:6,lines:7,placeholder:8,label:9,info:10,show_label:11,max_lines:12,container:13,scale:14,min_width:15,submit_btn:16,loading_status:17,value_is_output:1,rtl:18,text_align:19,autofocus:20,autoscroll:21,interactive:22,root:23},null,[-1,-1])}get gradio(){return this.$$.ctx[2]}set gradio(e){this.$$set({gradio:e}),p()}get elem_id(){return this.$$.ctx[3]}set elem_id(e){this.$$set({elem_id:e}),p()}get elem_classes(){return this.$$.ctx[4]}set elem_classes(e){this.$$set({elem_classes:e}),p()}get visible(){return this.$$.ctx[5]}set visible(e){this.$$set({visible:e}),p()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),p()}get file_types(){return this.$$.ctx[6]}set file_types(e){this.$$set({file_types:e}),p()}get lines(){return this.$$.ctx[7]}set lines(e){this.$$set({lines:e}),p()}get placeholder(){return this.$$.ctx[8]}set placeholder(e){this.$$set({placeholder:e}),p()}get label(){return this.$$.ctx[9]}set label(e){this.$$set({label:e}),p()}get info(){return this.$$.ctx[10]}set info(e){this.$$set({info:e}),p()}get show_label(){return this.$$.ctx[11]}set show_label(e){this.$$set({show_label:e}),p()}get max_lines(){return this.$$.ctx[12]}set max_lines(e){this.$$set({max_lines:e}),p()}get container(){return this.$$.ctx[13]}set container(e){this.$$set({container:e}),p()}get scale(){return this.$$.ctx[14]}set scale(e){this.$$set({scale:e}),p()}get min_width(){return this.$$.ctx[15]}set min_width(e){this.$$set({min_width:e}),p()}get submit_btn(){return this.$$.ctx[16]}set submit_btn(e){this.$$set({submit_btn:e}),p()}get loading_status(){return this.$$.ctx[17]}set loading_status(e){this.$$set({loading_status:e}),p()}get value_is_output(){return this.$$.ctx[1]}set value_is_output(e){this.$$set({value_is_output:e}),p()}get rtl(){return this.$$.ctx[18]}set rtl(e){this.$$set({rtl:e}),p()}get text_align(){return this.$$.ctx[19]}set text_align(e){this.$$set({text_align:e}),p()}get autofocus(){return this.$$.ctx[20]}set autofocus(e){this.$$set({autofocus:e}),p()}get autoscroll(){return this.$$.ctx[21]}set autoscroll(e){this.$$set({autoscroll:e}),p()}get interactive(){return this.$$.ctx[22]}set interactive(e){this.$$set({interactive:e}),p()}get root(){return this.$$.ctx[23]}set root(e){this.$$set({root:e}),p()}}export{Zl as BaseExample,Yt as BaseMultimodalTextbox,Ll as default};
2//# sourceMappingURL=Index-CLYYF5f_.js.map

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.