PageSourceSearch

https://mimigona1-667.hf.space/assets/Index-Dz93-sAb.js

js mimigona1-667.hf.space collected 2026-10-03 17:08:01 UTC 10,449 bytes, 2 lines download raw bytes

vendor: 10,449 bytes, lines 1-2
1import{b as ie,U as oe}from"./FullscreenButton-CY3DenSN.js";import re from"./Gallery-s3JyFS7w.js";import{S as _e}from"./StreamingBar-DwBbQPSd.js";import{BaseFileUpload as ae}from"./Index-DAhGG6wk.js";import"./MarkdownCode-B_oSAavQ.js";import"./index-6iIxEka4.js";import"./svelte/svelte.js";import"./prism-python-BTLJbtOb.js";import"./i18n-Dub1g69U.js";import"./ModifyUpload-DbxlaTpK.js";import"./DownloadLink-Clun45p7.js";import"./Image-BUv-GoCO.js";import"./ImagePreview-BH4pRMMF.js";import"./Video-2b0LB3xa.js";import"./hls-C7-VjdhD.js";import"./index-tFQomdd2.js";import"./Example-cR3xzyOo.js";const{SvelteComponent:ue,add_flush_callback:S,assign:fe,bind:A,binding_callbacks:F,check_outros:ce,create_component:U,destroy_component:z,detach:W,empty:he,flush:c,get_spread_object:me,get_spread_update:we,group_outros:de,init:ge,insert:p,mount_component:C,safe_not_equal:be,space:ve,transition_in:g,transition_out:b}=window.__gradio__svelte__internal,{createEventDispatcher:ke}=window.__gradio__svelte__internal;function je(l){let e,n,s,o;function u(i){l[32](i)}function r(i){l[33](i)}let h={label:l[5],show_label:l[4],columns:l[14],rows:l[15],height:l[16],preview:l[17],object_fit:l[19],interactive:l[21],allow_preview:l[18],show_share_button:l[20],show_download_button:l[22],i18n:l[23].i18n,_fetch:l[31],show_fullscreen_button:l[24],fullscreen:l[3]};return l[1]!==void 0&&(h.selected_index=l[1]),l[0]!==void 0&&(h.value=l[0]),e=new re({props:h}),F.push(()=>A(e,"selected_index",u)),F.push(()=>A(e,"value",r)),e.$on("change",l[34]),e.$on("select",l[35]),e.$on("share",l[36]),e.$on("error",l[37]),e.$on("preview_open",l[38]),e.$on("preview_close",l[39]),e.$on("fullscreen",l[40]),{c(){U(e.$$.fragment)},m(i,f){C(e,i,f),o=!0},p(i,f){const _={};f[0]&32&&(_.label=i[5]),f[0]&16&&(_.show_label=i[4]),f[0]&16384&&(_.columns=i[14]),f[0]&32768&&(_.rows=i[15]),f[0]&65536&&(_.height=i[16]),f[0]&131072&&(_.preview=i[17]),f[0]&524288&&(_.object_fit=i[19]),f[0]&2097152&&(_.interactive=i[21]),f[0]&262144&&(_.allow_preview=i[18]),f[0]&1048576&&(_.show_share_button=i[20]),f[0]&4194304&&(_.show_download_button=i[22]),f[0]&8388608&&(_.i18n=i[23].i18n),f[0]&8388608&&(_._fetch=i[31]),f[0]&16777216&&(_.show_fullscreen_button=i[24]),f[0]&8&&(_.fullscreen=i[3]),!n&&f[0]&2&&(n=!0,_.selected_index=i[1],S(()=>n=!1)),!s&&f[0]&1&&(s=!0,_.value=i[0],S(()=>s=!1)),e.$set(_)},i(i){o||(g(e.$$.fragment,i),o=!0)},o(i){b(e.$$.fragment,i),o=!1},d(i){z(e,i)}}}function Ue(l){let e,n;return e=new ae({props:{value:null,root:l[6],label:l[5],max_file_size:l[23].max_file_size,file_count:"multiple",file_types:l[10],i18n:l[23].i18n,upload:l[27],stream_handler:l[28],$$slots:{default:[ze]},$$scope:{ctx:l}}}),e.$on("upload",l[29]),e.$on("error",l[30]),{c(){U(e.$$.fragment)},m(s,o){C(e,s,o),n=!0},p(s,o){const u={};o[0]&64&&(u.root=s[6]),o[0]&32&&(u.label=s[5]),o[0]&8388608&&(u.max_file_size=s[23].max_file_size),o[0]&1024&&(u.file_types=s[10]),o[0]&8388608&&(u.i18n=s[23].i18n),o[0]&8388608&&(u.upload=s[27]),o[0]&8388608&&(u.stream_handler=s[28]),o[0]&8388608|o[1]&4096&&(u.$$scope={dirty:o,ctx:s}),e.$set(u)},i(s){n||(g(e.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),n=!1},d(s){z(e,s)}}}function ze(l){let e,n;return e=new oe({props:{i18n:l[23].i18n,type:"gallery"}}),{c(){U(e.$$.fragment)},m(s,o){C(e,s,o),n=!0},p(s,o){const u={};o[0]&8388608&&(u.i18n=s[23].i18n),e.$set(u)},i(s){n||(g(e.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),n=!1},d(s){z(e,s)}}}function Ce(l){let e,n,s,o,u,r;const h=[{autoscroll:l[23].autoscroll},{i18n:l[23].i18n},l[2]];let i={};for(let a=0;a<h.length;a+=1)i=fe(i,h[a]);e=new _e({props:i}),e.$on("clear_status",l[26]);const f=[Ue,je],_=[];function d(a,m){return a[21]&&a[25]?0:1}return s=d(l),o=_[s]=f[s](l),{c(){U(e.$$.fragment),n=ve(),o.c(),u=he()},m(a,m){C(e,a,m),p(a,n,m),_[s].m(a,m),p(a,u,m),r=!0},p(a,m){const B=m[0]&8388612?we(h,[m[0]&8388608&&{autoscroll:a[23].autoscroll},m[0]&8388608&&{i18n:a[23].i18n},m[0]&4&&me(a[2])]):{};e.$set(B);let v=s;s=d(a),s===v?_[s].p(a,m):(de(),b(_[v],1,1,()=>{_[v]=null}),ce(),o=_[s],o?o.p(a,m):(o=_[s]=f[s](a),o.c()),g(o,1),o.m(u.parentNode,u))},i(a){r||(g(e.$$.fragment,a),g(o),r=!0)},o(a){b(e.$$.fragment,a),b(o),r=!1},d(a){a&&(W(n),W(u)),z(e,a),_[s].d(a)}}}function Be(l){let e,n,s;function o(r){l[41](r)}let u={visible:l[9],variant:"solid",padding:!1,elem_id:l[7],elem_classes:l[8],container:l[11],scale:l[12],min_width:l[13],allow_overflow:!1,height:typeof l[16]=="number"?l[16]:void 0,$$slots:{default:[Ce]},$$scope:{ctx:l}};return l[3]!==void 0&&(u.fullscreen=l[3]),e=new ie({props:u}),F.push(()=>A(e,"fullscreen",o)),{c(){U(e.$$.fragment)},m(r,h){C(e,r,h),s=!0},p(r,h){const i={};h[0]&512&&(i.visible=r[9]),h[0]&128&&(i.elem_id=r[7]),h[0]&256&&(i.elem_classes=r[8]),h[0]&2048&&(i.container=r[11]),h[0]&4096&&(i.scale=r[12]),h[0]&8192&&(i.min_width=r[13]),h[0]&65536&&(i.height=typeof r[16]=="number"?r[16]:void 0),h[0]&67093631|h[1]&4096&&(i.$$scope={dirty:h,ctx:r}),!n&&h[0]&8&&(n=!0,i.fullscreen=r[3],S(()=>n=!1)),e.$set(i)},i(r){s||(g(e.$$.fragment,r),s=!0)},o(r){b(e.$$.fragment,r),s=!1},d(r){z(e,r)}}}async function Se(l){return(await Promise.all(l.map(async n=>{if(n.path?.toLowerCase().endsWith(".svg")&&n.url){const o=await(await fetch(n.url)).text();return{...n,url:`data:image/svg+xml,${encodeURIComponent(o)}`}}return n}))).map(n=>n.mime_type?.includes("video")?{video:n,caption:null}:{image:n,caption:null})}function Ae(l,e,n){let s,{loading_status:o}=e,{show_label:u}=e,{label:r}=e,{root:h}=e,{elem_id:i=""}=e,{elem_classes:f=[]}=e,{visible:_=!0}=e,{value:d=null}=e,{file_types:a=["image","video"]}=e,{container:m=!0}=e,{scale:B=null}=e,{min_width:v=void 0}=e,{columns:G=[2]}=e,{rows:I=void 0}=e,{height:q="auto"}=e,{preview:D}=e,{allow_preview:E=!0}=e,{selected_index:k=null}=e,{object_fit:L="cover"}=e,{show_share_button:N=!1}=e,{interactive:P}=e,{show_download_button:R=!1}=e,{gradio:w}=e,{show_fullscreen_button:T=!0}=e,{fullscreen:j=!1}=e;const H=ke(),J=()=>w.dispatch("clear_status",o),K=(...t)=>w.client.upload(...t),M=(...t)=>w.client.stream(...t),O=async t=>{const se=Array.isArray(t.detail)?t.detail:[t.detail];n(0,d=await Se(se)),w.dispatch("upload",d),w.dispatch("change",d)},Q=({detail:t})=>{n(2,o=o||{}),n(2,o.status="error",o),w.dispatch("error",t)},V=(...t)=>w.client.fetch(...t);function X(t){k=t,n(1,k)}function Y(t){d=t,n(0,d)}const Z=()=>w.dispatch("change",d),y=t=>w.dispatch("select",t.detail),x=t=>w.dispatch("share",t.detail),$=t=>w.dispatch("error",t.detail),ee=()=>w.dispatch("preview_open"),te=()=>w.dispatch("preview_close"),le=({detail:t})=>{n(3,j=t)};function ne(t){j=t,n(3,j)}return l.$$set=t=>{"loading_status"in t&&n(2,o=t.loading_status),"show_label"in t&&n(4,u=t.show_label),"label"in t&&n(5,r=t.label),"root"in t&&n(6,h=t.root),"elem_id"in t&&n(7,i=t.elem_id),"elem_classes"in t&&n(8,f=t.elem_classes),"visible"in t&&n(9,_=t.visible),"value"in t&&n(0,d=t.value),"file_types"in t&&n(10,a=t.file_types),"container"in t&&n(11,m=t.container),"scale"in t&&n(12,B=t.scale),"min_width"in t&&n(13,v=t.min_width),"columns"in t&&n(14,G=t.columns),"rows"in t&&n(15,I=t.rows),"height"in t&&n(16,q=t.height),"preview"in t&&n(17,D=t.preview),"allow_preview"in t&&n(18,E=t.allow_preview),"selected_index"in t&&n(1,k=t.selected_index),"object_fit"in t&&n(19,L=t.object_fit),"show_share_button"in t&&n(20,N=t.show_share_button),"interactive"in t&&n(21,P=t.interactive),"show_download_button"in t&&n(22,R=t.show_download_button),"gradio"in t&&n(23,w=t.gradio),"show_fullscreen_button"in t&&n(24,T=t.show_fullscreen_button),"fullscreen"in t&&n(3,j=t.fullscreen)},l.$$.update=()=>{l.$$.dirty[0]&1&&n(25,s=d===null?!0:d.length===0),l.$$.dirty[0]&2&&H("prop_change",{selected_index:k})},[d,k,o,j,u,r,h,i,f,_,a,m,B,v,G,I,q,D,E,L,N,P,R,w,T,s,J,K,M,O,Q,V,X,Y,Z,y,x,$,ee,te,le,ne]}class Oe extends ue{constructor(e){super(),ge(this,e,Ae,Be,be,{loading_status:2,show_label:4,label:5,root:6,elem_id:7,elem_classes:8,visible:9,value:0,file_types:10,container:11,scale:12,min_width:13,columns:14,rows:15,height:16,preview:17,allow_preview:18,selected_index:1,object_fit:19,show_share_button:20,interactive:21,show_download_button:22,gradio:23,show_fullscreen_button:24,fullscreen:3},null,[-1,-1])}get loading_status(){return this.$$.ctx[2]}set loading_status(e){this.$$set({loading_status:e}),c()}get show_label(){return this.$$.ctx[4]}set show_label(e){this.$$set({show_label:e}),c()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),c()}get root(){return this.$$.ctx[6]}set root(e){this.$$set({root:e}),c()}get elem_id(){return this.$$.ctx[7]}set elem_id(e){this.$$set({elem_id:e}),c()}get elem_classes(){return this.$$.ctx[8]}set elem_classes(e){this.$$set({elem_classes:e}),c()}get visible(){return this.$$.ctx[9]}set visible(e){this.$$set({visible:e}),c()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),c()}get file_types(){return this.$$.ctx[10]}set file_types(e){this.$$set({file_types:e}),c()}get container(){return this.$$.ctx[11]}set container(e){this.$$set({container:e}),c()}get scale(){return this.$$.ctx[12]}set scale(e){this.$$set({scale:e}),c()}get min_width(){return this.$$.ctx[13]}set min_width(e){this.$$set({min_width:e}),c()}get columns(){return this.$$.ctx[14]}set columns(e){this.$$set({columns:e}),c()}get rows(){return this.$$.ctx[15]}set rows(e){this.$$set({rows:e}),c()}get height(){return this.$$.ctx[16]}set height(e){this.$$set({height:e}),c()}get preview(){return this.$$.ctx[17]}set preview(e){this.$$set({preview:e}),c()}get allow_preview(){return this.$$.ctx[18]}set allow_preview(e){this.$$set({allow_preview:e}),c()}get selected_index(){return this.$$.ctx[1]}set selected_index(e){this.$$set({selected_index:e}),c()}get object_fit(){return this.$$.ctx[19]}set object_fit(e){this.$$set({object_fit:e}),c()}get show_share_button(){return this.$$.ctx[20]}set show_share_button(e){this.$$set({show_share_button:e}),c()}get interactive(){return this.$$.ctx[21]}set interactive(e){this.$$set({interactive:e}),c()}get show_download_button(){return this.$$.ctx[22]}set show_download_button(e){this.$$set({show_download_button:e}),c()}get gradio(){return this.$$.ctx[23]}set gradio(e){this.$$set({gradio:e}),c()}get show_fullscreen_button(){return this.$$.ctx[24]}set show_fullscreen_button(e){this.$$set({show_fullscreen_button:e}),c()}get fullscreen(){return this.$$.ctx[3]}set fullscreen(e){this.$$set({fullscreen:e}),c()}}export{re as BaseGallery,Oe as default};
2//# sourceMappingURL=Index-Dz93-sAb.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.