PageSourceSearch

https://showlab-showui.hf.space/assets/index-C5CPmCgn.js

js showlab-showui.hf.space collected 2026-10-03 10:24:18 UTC 22,188 bytes, 2 lines download raw bytes

vendor: 22,188 bytes, lines 1-2
1import{U as Ke}from"./Upload-DSEEphK_.js";import"./IconButtonWrapper.svelte_svelte_type_style_lang-DAP8_Zsr.js";import"./MarkdownCode.svelte_svelte_type_style_lang-CRfeLYV9.js";import{B as Me}from"./BlockLabel-CnzaitFN.js";import{V as Qe}from"./Video-fsmLZWjA.js";import{S as Re}from"./SelectSource-CT71dqzj.js";/* empty css                                                   */import"./Image-BRVH1yXn.js";import"./index-Dj1xzGVg.js";/* empty css                                                   */import{W as Xe}from"./ImageUploader-OFfszNpS.js";import"./StreamingBar.svelte_svelte_type_style_lang-CxOfZBE-.js";/* empty css                                              */import{p as ge,a as Ye}from"./Video-DiLYgEjl.js";import{l as jl}from"./Video-DiLYgEjl.js";import{P as Ze,V as ye}from"./VideoPreview-DnQIotBm.js";import{default as Pl}from"./Example-CAhmJarn.js";import{B as ke}from"./Block-rEXcgPfT.js";import{U as $e}from"./UploadText-DnPHeWhE.js";import{S as ve}from"./index-CAS_VNRG.js";/* empty css                                             */import"./prism-python-VskFp_Cc.js";import"./Upload-DXgDHKDd.js";import"./file-url-DgijyRSD.js";import"./context-TgWPFwN2.js";import"./svelte/svelte.js";import"./Image-Bsh8Umrh.js";import"./utils-Gtzs_Zla.js";import"./DropdownArrow-B7m41FWT.js";import"./Square-oAGqOwsh.js";import"./index-Dqmuz79m.js";import"./StreamingBar-CCUnT5tf.js";import"./IconButton-DtUbToT-.js";import"./Clear-By3xiIwg.js";import"./IconButtonWrapper-fdTarNL8.js";import"./hls-CnVhpNcu.js";import"./Empty-CMV1fpYf.js";import"./ShareButton-BhT5Qc-O.js";import"./Community-Dw1micSV.js";import"./utils-BsGrhMNe.js";import"./Download-DVtk-Jv3.js";import"./DownloadLink-IzUam-rM.js";import"./Trim-JQYgj7Jd.js";import"./Play-B0Q0U1Qz.js";import"./Undo-DCjBnnSO.js";import"./ModifyUpload-CFzRiF_2.js";const{SvelteComponent:xe,add_flush_callback:se,append:ae,attr:M,bind:re,binding_callbacks:ue,bubble:J,check_outros:he,create_component:Q,create_slot:et,destroy_component:R,detach:O,element:y,empty:tt,flush:p,get_all_dirty_from_scope:lt,get_slot_changes:nt,group_outros:ce,init:ot,insert:W,mount_component:X,noop:_e,safe_not_equal:ze,set_data:be,space:fe,text:we,transition_in:z,transition_out:S,update_slot_base:it}=window.__gradio__svelte__internal,{createEventDispatcher:st}=window.__gradio__svelte__internal;function at(l){let e,n=(l[0].orig_name||l[0].url)+"",t,o,i,r=ge(l[0].size)+"",f;return{c(){e=y("div"),t=we(n),o=fe(),i=y("div"),f=we(r),M(e,"class","file-name svelte-14jis2k"),M(i,"class","file-size svelte-14jis2k")},m(s,h){W(s,e,h),ae(e,t),W(s,o,h),W(s,i,h),ae(i,f)},p(s,h){h[0]&1&&n!==(n=(s[0].orig_name||s[0].url)+"")&&be(t,n),h[0]&1&&r!==(r=ge(s[0].size)+"")&&be(f,r)},i:_e,o:_e,d(s){s&&(O(e),O(o),O(i))}}}function rt(l){let e=l[0]?.url,n,t,o=pe(l);return{c(){o.c(),n=tt()},m(i,r){o.m(i,r),W(i,n,r),t=!0},p(i,r){r[0]&1&&ze(e,e=i[0]?.url)?(ce(),S(o,1,1,_e),he(),o=pe(i),o.c(),z(o,1),o.m(n.parentNode,n)):o.p(i,r)},i(i){t||(z(o),t=!0)},o(i){S(o),t=!1},d(i){i&&O(n),o.d(i)}}}function ut(l){let e,n,t,o;const i=[ft,_t],r=[];function f(s,h){return s[1]==="upload"?0:s[1]==="webcam"?1:-1}return~(n=f(l))&&(t=r[n]=i[n](l)),{c(){e=y("div"),t&&t.c(),M(e,"class","upload-container svelte-14jis2k")},m(s,h){W(s,e,h),~n&&r[n].m(e,null),o=!0},p(s,h){let a=n;n=f(s),n===a?~n&&r[n].p(s,h):(t&&(ce(),S(r[a],1,1,()=>{r[a]=null}),he()),~n?(t=r[n],t?t.p(s,h):(t=r[n]=i[n](s),t.c()),z(t,1),t.m(e,null)):t=null)},i(s){o||(z(t),o=!0)},o(s){S(t),o=!1},d(s){s&&O(e),~n&&r[n].d()}}}function pe(l){let e,n;return e=new Ze({props:{upload:l[15],root:l[11],interactive:!0,autoplay:l[10],src:l[0].url,subtitle:l[3]?.url,is_stream:!1,mirror:l[8]&&l[1]==="webcam",label:l[5],handle_change:l[23],handle_reset_value:l[13],loop:l[17],value:l[0],i18n:l[12],show_download_button:l[6],handle_clear:l[22],has_change_history:l[19]}}),e.$on("play",l[32]),e.$on("pause",l[33]),e.$on("stop",l[34]),e.$on("end",l[35]),{c(){Q(e.$$.fragment)},m(t,o){X(e,t,o),n=!0},p(t,o){const i={};o[0]&32768&&(i.upload=t[15]),o[0]&2048&&(i.root=t[11]),o[0]&1024&&(i.autoplay=t[10]),o[0]&1&&(i.src=t[0].url),o[0]&8&&(i.subtitle=t[3]?.url),o[0]&258&&(i.mirror=t[8]&&t[1]==="webcam"),o[0]&32&&(i.label=t[5]),o[0]&8192&&(i.handle_reset_value=t[13]),o[0]&131072&&(i.loop=t[17]),o[0]&1&&(i.value=t[0]),o[0]&4096&&(i.i18n=t[12]),o[0]&64&&(i.show_download_button=t[6]),o[0]&524288&&(i.has_change_history=t[19]),e.$set(i)},i(t){n||(z(e.$$.fragment,t),n=!0)},o(t){S(e.$$.fragment,t),n=!1},d(t){R(e,t)}}}function _t(l){let e,n;return e=new Xe({props:{root:l[11],mirror_webcam:l[8],include_audio:l[9],mode:"video",i18n:l[12],upload:l[15],stream_every:1}}),e.$on("error",l[29]),e.$on("capture",l[24]),e.$on("start_recording",l[30]),e.$on("stop_recording",l[31]),{c(){Q(e.$$.fragment)},m(t,o){X(e,t,o),n=!0},p(t,o){const i={};o[0]&2048&&(i.root=t[11]),o[0]&256&&(i.mirror_webcam=t[8]),o[0]&512&&(i.include_audio=t[9]),o[0]&4096&&(i.i18n=t[12]),o[0]&32768&&(i.upload=t[15]),e.$set(i)},i(t){n||(z(e.$$.fragment,t),n=!0)},o(t){S(e.$$.fragment,t),n=!1},d(t){R(e,t)}}}function ft(l){let e,n,t,o;function i(s){l[26](s)}function r(s){l[27](s)}let f={filetype:"video/x-m4v,video/*",max_file_size:l[14],root:l[11],upload:l[15],stream_handler:l[16],$$slots:{default:[ht]},$$scope:{ctx:l}};return l[18]!==void 0&&(f.dragging=l[18]),l[2]!==void 0&&(f.uploading=l[2]),e=new Ke({props:f}),ue.push(()=>re(e,"dragging",i)),ue.push(()=>re(e,"uploading",r)),e.$on("load",l[21]),e.$on("error",l[28]),{c(){Q(e.$$.fragment)},m(s,h){X(e,s,h),o=!0},p(s,h){const a={};h[0]&16384&&(a.max_file_size=s[14]),h[0]&2048&&(a.root=s[11]),h[0]&32768&&(a.upload=s[15]),h[0]&65536&&(a.stream_handler=s[16]),h[1]&64&&(a.$$scope={dirty:h,ctx:s}),!n&&h[0]&262144&&(n=!0,a.dragging=s[18],se(()=>n=!1)),!t&&h[0]&4&&(t=!0,a.uploading=s[2],se(()=>t=!1)),e.$set(a)},i(s){o||(z(e.$$.fragment,s),o=!0)},o(s){S(e.$$.fragment,s),o=!1},d(s){R(e,s)}}}function ht(l){let e;const n=l[25].default,t=et(n,l,l[37],null);return{c(){t&&t.c()},m(o,i){t&&t.m(o,i),e=!0},p(o,i){t&&t.p&&(!e||i[1]&64)&&it(t,n,o,o[37],e?nt(n,o[37],i,null):lt(o[37]),null)},i(o){e||(z(t,o),e=!0)},o(o){S(t,o),e=!1},d(o){t&&t.d(o)}}}function ct(l){let e,n,t,o,i,r,f,s,h,a;e=new Me({props:{show_label:l[7],Icon:Qe,label:l[5]||"Video"}});const c=[ut,rt,at],b=[];function m(d,k){return d[0]===null||d[0].url===void 0?0:(o==null&&(o=!!Ye()),o?1:d[0].size?2:-1)}~(i=m(l))&&(r=b[i]=c[i](l));function C(d){l[36](d)}let P={sources:l[4],handle_clear:l[22]};return l[1]!==void 0&&(P.active_source=l[1]),s=new Re({props:P}),ue.push(()=>re(s,"active_source",C)),{c(){Q(e.$$.fragment),n=fe(),t=y("div"),r&&r.c(),f=fe(),Q(s.$$.fragment),M(t,"data-testid","video"),M(t,"class","video-container svelte-14jis2k")},m(d,k){X(e,d,k),W(d,n,k),W(d,t,k),~i&&b[i].m(t,null),ae(t,f),X(s,t,null),a=!0},p(d,k){const V={};k[0]&128&&(V.show_label=d[7]),k[0]&32&&(V.label=d[5]||"Video"),e.$set(V);let B=i;i=m(d),i===B?~i&&b[i].p(d,k):(r&&(ce(),S(b[B],1,1,()=>{b[B]=null}),he()),~i?(r=b[i],r?r.p(d,k):(r=b[i]=c[i](d),r.c()),z(r,1),r.m(t,f)):r=null);const I={};k[0]&16&&(I.sources=d[4]),!h&&k[0]&2&&(h=!0,I.active_source=d[1],se(()=>h=!1)),s.$set(I)},i(d){a||(z(e.$$.fragment,d),z(r),z(s.$$.fragment,d),a=!0)},o(d){S(e.$$.fragment,d),S(r),S(s.$$.fragment,d),a=!1},d(d){d&&(O(n),O(t)),R(e,d),~i&&b[i].d(),R(s)}}}function dt(l,e,n){let{$$slots:t={},$$scope:o}=e,{value:i=null}=e,{subtitle:r=null}=e,{sources:f=["webcam","upload"]}=e,{label:s=void 0}=e,{show_download_button:h=!1}=e,{show_label:a=!0}=e,{mirror_webcam:c=!1}=e,{include_audio:b}=e,{autoplay:m}=e,{root:C}=e,{i18n:P}=e,{active_source:d="webcam"}=e,{handle_reset_value:k=()=>{}}=e,{max_file_size:V=null}=e,{upload:B}=e,{stream_handler:I}=e,{loop:g}=e,{uploading:E=!1}=e,F=!1;const v=st();function Y({detail:u}){n(0,i=u),v("change",u),v("upload",u)}function G(){n(0,i=null),v("change",null),v("clear")}function A(u){n(19,F=!0),v("change",u)}function H({detail:u}){v("change",u)}let U=!1;function K(u){U=u,n(18,U)}function q(u){E=u,n(2,E)}const $=({detail:u})=>v("error",u);function Z(u){J.call(this,l,u)}function x(u){J.call(this,l,u)}function ee(u){J.call(this,l,u)}function te(u){J.call(this,l,u)}function le(u){J.call(this,l,u)}function ne(u){J.call(this,l,u)}function oe(u){J.call(this,l,u)}function ie(u){d=u,n(1,d)}return l.$$set=u=>{"value"in u&&n(0,i=u.value),"subtitle"in u&&n(3,r=u.subtitle),"sources"in u&&n(4,f=u.sources),"label"in u&&n(5,s=u.label),"show_download_button"in u&&n(6,h=u.show_download_button),"show_label"in u&&n(7,a=u.show_label),"mirror_webcam"in u&&n(8,c=u.mirror_webcam),"include_audio"in u&&n(9,b=u.include_audio),"autoplay"in u&&n(10,m=u.autoplay),"root"in u&&n(11,C=u.root),"i18n"in u&&n(12,P=u.i18n),"active_source"in u&&n(1,d=u.active_source),"handle_reset_value"in u&&n(13,k=u.handle_reset_value),"max_file_size"in u&&n(14,V=u.max_file_size),"upload"in u&&n(15,B=u.upload),"stream_handler"in u&&n(16,I=u.stream_handler),"loop"in u&&n(17,g=u.loop),"uploading"in u&&n(2,E=u.uploading),"$$scope"in u&&n(37,o=u.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&262144&&v("drag",U)},[i,d,E,r,f,s,h,a,c,b,m,C,P,k,V,B,I,g,U,F,v,Y,G,A,H,t,K,q,$,Z,x,ee,te,le,ne,oe,ie,o]}class mt extends xe{constructor(e){super(),ot(this,e,dt,ct,ze,{value:0,subtitle:3,sources:4,label:5,show_download_button:6,show_label:7,mirror_webcam:8,include_audio:9,autoplay:10,root:11,i18n:12,active_source:1,handle_reset_value:13,max_file_size:14,upload:15,stream_handler:16,loop:17,uploading:2},null,[-1,-1])}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),p()}get subtitle(){return this.$$.ctx[3]}set subtitle(e){this.$$set({subtitle:e}),p()}get sources(){return this.$$.ctx[4]}set sources(e){this.$$set({sources:e}),p()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),p()}get show_download_button(){return this.$$.ctx[6]}set show_download_button(e){this.$$set({show_download_button:e}),p()}get show_label(){return this.$$.ctx[7]}set show_label(e){this.$$set({show_label:e}),p()}get mirror_webcam(){return this.$$.ctx[8]}set mirror_webcam(e){this.$$set({mirror_webcam:e}),p()}get include_audio(){return this.$$.ctx[9]}set include_audio(e){this.$$set({include_audio:e}),p()}get autoplay(){return this.$$.ctx[10]}set autoplay(e){this.$$set({autoplay:e}),p()}get root(){return this.$$.ctx[11]}set root(e){this.$$set({root:e}),p()}get i18n(){return this.$$.ctx[12]}set i18n(e){this.$$set({i18n:e}),p()}get active_source(){return this.$$.ctx[1]}set active_source(e){this.$$set({active_source:e}),p()}get handle_reset_value(){return this.$$.ctx[13]}set handle_reset_value(e){this.$$set({handle_reset_value:e}),p()}get max_file_size(){return this.$$.ctx[14]}set max_file_size(e){this.$$set({max_file_size:e}),p()}get upload(){return this.$$.ctx[15]}set upload(e){this.$$set({upload:e}),p()}get stream_handler(){return this.$$.ctx[16]}set stream_handler(e){this.$$set({stream_handler:e}),p()}get loop(){return this.$$.ctx[17]}set loop(e){this.$$set({loop:e}),p()}get uploading(){return this.$$.ctx[2]}set uploading(e){this.$$set({uploading:e}),p()}}const gt=mt,{SvelteComponent:bt,add_flush_callback:wt,assign:Se,bind:pt,binding_callbacks:kt,check_outros:vt,create_component:D,destroy_component:L,detach:de,empty:zt,flush:w,get_spread_object:Ve,get_spread_update:Be,group_outros:St,init:Vt,insert:me,mount_component:T,safe_not_equal:Bt,space:Ie,transition_in:j,transition_out:N}=window.__gradio__svelte__internal;function It(l){let e,n;return e=new ke({props:{visible:l[4],variant:l[0]===null&&l[23]==="upload"?"dashed":"solid",border_mode:l[26]?"focus":"base",padding:!1,elem_id:l[2],elem_classes:l[3],height:l[9],width:l[10],container:l[11],scale:l[12],min_width:l[13],allow_overflow:!1,$$slots:{default:[Pt]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},m(t,o){T(e,t,o),n=!0},p(t,o){const i={};o[0]&16&&(i.visible=t[4]),o[0]&8388609&&(i.variant=t[0]===null&&t[23]==="upload"?"dashed":"solid"),o[0]&67108864&&(i.border_mode=t[26]?"focus":"base"),o[0]&4&&(i.elem_id=t[2]),o[0]&8&&(i.elem_classes=t[3]),o[0]&512&&(i.height=t[9]),o[0]&1024&&(i.width=t[10]),o[0]&2048&&(i.container=t[11]),o[0]&4096&&(i.scale=t[12]),o[0]&8192&&(i.min_width=t[13]),o[0]&133906914|o[1]&8388608&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(j(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){L(e,t)}}}function jt(l){let e,n;return e=new ke({props:{visible:l[4],variant:l[0]===null&&l[23]==="upload"?"dashed":"solid",border_mode:l[26]?"focus":"base",padding:!1,elem_id:l[2],elem_classes:l[3],height:l[9],width:l[10],container:l[11],scale:l[12],min_width:l[13],allow_overflow:!1,$$slots:{default:[Ut]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},m(t,o){T(e,t,o),n=!0},p(t,o){const i={};o[0]&16&&(i.visible=t[4]),o[0]&8388609&&(i.variant=t[0]===null&&t[23]==="upload"?"dashed":"solid"),o[0]&67108864&&(i.border_mode=t[26]?"focus":"base"),o[0]&4&&(i.elem_id=t[2]),o[0]&8&&(i.elem_classes=t[3]),o[0]&512&&(i.height=t[9]),o[0]&1024&&(i.width=t[10]),o[0]&2048&&(i.container=t[11]),o[0]&4096&&(i.scale=t[12]),o[0]&8192&&(i.min_width=t[13]),o[0]&52674850|o[1]&8388608&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(j(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){L(e,t)}}}function Nt(l){let e,n;return e=new $e({props:{i18n:l[17].i18n,type:"video"}}),{c(){D(e.$$.fragment)},m(t,o){T(e,t,o),n=!0},p(t,o){const i={};o[0]&131072&&(i.i18n=t[17].i18n),e.$set(i)},i(t){n||(j(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){L(e,t)}}}function Pt(l){let e,n,t,o,i;const r=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let f={};for(let a=0;a<r.length;a+=1)f=Se(f,r[a]);e=new ve({props:f}),e.$on("clear_status",l[41]);function s(a){l[44](a)}let h={value:l[24],subtitle:l[25],label:l[5],show_label:l[8],show_download_button:l[16],sources:l[6],active_source:l[23],mirror_webcam:l[19],include_audio:l[20],autoplay:l[14],root:l[7],loop:l[21],handle_reset_value:l[27],i18n:l[17].i18n,max_file_size:l[17].max_file_size,upload:l[42],stream_handler:l[43],$$slots:{default:[Nt]},$$scope:{ctx:l}};return l[22]!==void 0&&(h.uploading=l[22]),t=new gt({props:h}),kt.push(()=>pt(t,"uploading",s)),t.$on("change",l[28]),t.$on("drag",l[45]),t.$on("error",l[29]),t.$on("clear",l[46]),t.$on("play",l[47]),t.$on("pause",l[48]),t.$on("upload",l[49]),t.$on("stop",l[50]),t.$on("end",l[51]),t.$on("start_recording",l[52]),t.$on("stop_recording",l[53]),{c(){D(e.$$.fragment),n=Ie(),D(t.$$.fragment)},m(a,c){T(e,a,c),me(a,n,c),T(t,a,c),i=!0},p(a,c){const b=c[0]&131074?Be(r,[c[0]&131072&&{autoscroll:a[17].autoscroll},c[0]&131072&&{i18n:a[17].i18n},c[0]&2&&Ve(a[1])]):{};e.$set(b);const m={};c[0]&16777216&&(m.value=a[24]),c[0]&33554432&&(m.subtitle=a[25]),c[0]&32&&(m.label=a[5]),c[0]&256&&(m.show_label=a[8]),c[0]&65536&&(m.show_download_button=a[16]),c[0]&64&&(m.sources=a[6]),c[0]&8388608&&(m.active_source=a[23]),c[0]&524288&&(m.mirror_webcam=a[19]),c[0]&1048576&&(m.include_audio=a[20]),c[0]&16384&&(m.autoplay=a[14]),c[0]&128&&(m.root=a[7]),c[0]&2097152&&(m.loop=a[21]),c[0]&131072&&(m.i18n=a[17].i18n),c[0]&131072&&(m.max_file_size=a[17].max_file_size),c[0]&131072&&(m.upload=a[42]),c[0]&131072&&(m.stream_handler=a[43]),c[0]&131072|c[1]&8388608&&(m.$$scope={dirty:c,ctx:a}),!o&&c[0]&4194304&&(o=!0,m.uploading=a[22],wt(()=>o=!1)),t.$set(m)},i(a){i||(j(e.$$.fragment,a),j(t.$$.fragment,a),i=!0)},o(a){N(e.$$.fragment,a),N(t.$$.fragment,a),i=!1},d(a){a&&de(n),L(e,a),L(t,a)}}}function Ut(l){let e,n,t,o;const i=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let r={};for(let f=0;f<i.length;f+=1)r=Se(r,i[f]);return e=new ve({props:r}),e.$on("clear_status",l[33]),t=new ye({props:{value:l[24],subtitle:l[25],label:l[5],show_label:l[8],autoplay:l[14],loop:l[21],show_share_button:l[15],show_download_button:l[16],i18n:l[17].i18n,upload:l[34]}}),t.$on("play",l[35]),t.$on("pause",l[36]),t.$on("stop",l[37]),t.$on("end",l[38]),t.$on("share",l[39]),t.$on("error",l[40]),{c(){D(e.$$.fragment),n=Ie(),D(t.$$.fragment)},m(f,s){T(e,f,s),me(f,n,s),T(t,f,s),o=!0},p(f,s){const h=s[0]&131074?Be(i,[s[0]&131072&&{autoscroll:f[17].autoscroll},s[0]&131072&&{i18n:f[17].i18n},s[0]&2&&Ve(f[1])]):{};e.$set(h);const a={};s[0]&16777216&&(a.value=f[24]),s[0]&33554432&&(a.subtitle=f[25]),s[0]&32&&(a.label=f[5]),s[0]&256&&(a.show_label=f[8]),s[0]&16384&&(a.autoplay=f[14]),s[0]&2097152&&(a.loop=f[21]),s[0]&32768&&(a.show_share_button=f[15]),s[0]&65536&&(a.show_download_button=f[16]),s[0]&131072&&(a.i18n=f[17].i18n),s[0]&131072&&(a.upload=f[34]),t.$set(a)},i(f){o||(j(e.$$.fragment,f),j(t.$$.fragment,f),o=!0)},o(f){N(e.$$.fragment,f),N(t.$$.fragment,f),o=!1},d(f){f&&de(n),L(e,f),L(t,f)}}}function qt(l){let e,n,t,o;const i=[jt,It],r=[];function f(s,h){return s[18]?1:0}return e=f(l),n=r[e]=i[e](l),{c(){n.c(),t=zt()},m(s,h){r[e].m(s,h),me(s,t,h),o=!0},p(s,h){let a=e;e=f(s),e===a?r[e].p(s,h):(St(),N(r[a],1,1,()=>{r[a]=null}),vt(),n=r[e],n?n.p(s,h):(n=r[e]=i[e](s),n.c()),j(n,1),n.m(t.parentNode,t))},i(s){o||(j(n),o=!0)},o(s){N(n),o=!1},d(s){s&&de(t),r[e].d(s)}}}function Ct(l,e,n){let{elem_id:t=""}=e,{elem_classes:o=[]}=e,{visible:i=!0}=e,{value:r=null}=e,f=null,{label:s}=e,{sources:h}=e,{root:a}=e,{show_label:c}=e,{loading_status:b}=e,{height:m}=e,{width:C}=e,{container:P=!1}=e,{scale:d=null}=e,{min_width:k=void 0}=e,{autoplay:V=!1}=e,{show_share_button:B=!0}=e,{show_download_button:I}=e,{gradio:g}=e,{interactive:E}=e,{mirror_webcam:F}=e,{include_audio:v}=e,{loop:Y=!1}=e,{input_ready:G}=e,A=!1,H=null,U=null,K,q=r;const $=()=>{q===null||r===q||n(0,r=q)};let Z=!1;function x({detail:_}){_!=null?n(0,r={video:_,subtitles:null}):n(0,r=null)}function ee({detail:_}){const[Ge,He]=_.includes("Invalid file type")?["warning","complete"]:["error","error"];n(1,b=b||{}),n(1,b.status=He,b),n(1,b.message=_,b),g.dispatch(Ge,_)}const te=()=>g.dispatch("clear_status",b),le=(..._)=>g.client.upload(..._),ne=()=>g.dispatch("play"),oe=()=>g.dispatch("pause"),ie=()=>g.dispatch("stop"),u=()=>g.dispatch("end"),je=({detail:_})=>g.dispatch("share",_),Ne=({detail:_})=>g.dispatch("error",_),Pe=()=>g.dispatch("clear_status",b),Ue=(..._)=>g.client.upload(..._),qe=(..._)=>g.client.stream(..._);function Ce(_){A=_,n(22,A)}const Ee=({detail:_})=>n(26,Z=_),Je=()=>g.dispatch("clear"),Oe=()=>g.dispatch("play"),We=()=>g.dispatch("pause"),De=()=>g.dispatch("upload"),Le=()=>g.dispatch("stop"),Te=()=>g.dispatch("end"),Ae=()=>g.dispatch("start_recording"),Fe=()=>g.dispatch("stop_recording");return l.$$set=_=>{"elem_id"in _&&n(2,t=_.elem_id),"elem_classes"in _&&n(3,o=_.elem_classes),"visible"in _&&n(4,i=_.visible),"value"in _&&n(0,r=_.value),"label"in _&&n(5,s=_.label),"sources"in _&&n(6,h=_.sources),"root"in _&&n(7,a=_.root),"show_label"in _&&n(8,c=_.show_label),"loading_status"in _&&n(1,b=_.loading_status),"height"in _&&n(9,m=_.height),"width"in _&&n(10,C=_.width),"container"in _&&n(11,P=_.container),"scale"in _&&n(12,d=_.scale),"min_width"in _&&n(13,k=_.min_width),"autoplay"in _&&n(14,V=_.autoplay),"show_share_button"in _&&n(15,B=_.show_share_button),"show_download_button"in _&&n(16,I=_.show_download_button),"gradio"in _&&n(17,g=_.gradio),"interactive"in _&&n(18,E=_.interactive),"mirror_webcam"in _&&n(19,F=_.mirror_webcam),"include_audio"in _&&n(20,v=_.include_audio),"loop"in _&&n(21,Y=_.loop),"input_ready"in _&&n(30,G=_.input_ready)},l.$$.update=()=>{l.$$.dirty[0]&4194304&&n(30,G=!A),l.$$.dirty[0]&1|l.$$.dirty[1]&2&&r&&q===null&&n(32,q=r),l.$$.dirty[0]&8388672&&h&&!K&&n(23,K=h[0]),l.$$.dirty[0]&1&&(r!=null?(n(24,H=r.video),n(25,U=r.subtitles)):(n(24,H=null),n(25,U=null))),l.$$.dirty[0]&131073|l.$$.dirty[1]&1&&JSON.stringify(r)!==JSON.stringify(f)&&(n(31,f=r),g.dispatch("change"))},[r,b,t,o,i,s,h,a,c,m,C,P,d,k,V,B,I,g,E,F,v,Y,A,K,H,U,Z,$,x,ee,G,f,q,te,le,ne,oe,ie,u,je,Ne,Pe,Ue,qe,Ce,Ee,Je,Oe,We,De,Le,Te,Ae,Fe]}class Et extends bt{constructor(e){super(),Vt(this,e,Ct,qt,Bt,{elem_id:2,elem_classes:3,visible:4,value:0,label:5,sources:6,root:7,show_label:8,loading_status:1,height:9,width:10,container:11,scale:12,min_width:13,autoplay:14,show_share_button:15,show_download_button:16,gradio:17,interactive:18,mirror_webcam:19,include_audio:20,loop:21,input_ready:30},null,[-1,-1])}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),w()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),w()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),w()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),w()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),w()}get sources(){return this.$$.ctx[6]}set sources(e){this.$$set({sources:e}),w()}get root(){return this.$$.ctx[7]}set root(e){this.$$set({root:e}),w()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),w()}get loading_status(){return this.$$.ctx[1]}set loading_status(e){this.$$set({loading_status:e}),w()}get height(){return this.$$.ctx[9]}set height(e){this.$$set({height:e}),w()}get width(){return this.$$.ctx[10]}set width(e){this.$$set({width:e}),w()}get container(){return this.$$.ctx[11]}set container(e){this.$$set({container:e}),w()}get scale(){return this.$$.ctx[12]}set scale(e){this.$$set({scale:e}),w()}get min_width(){return this.$$.ctx[13]}set min_width(e){this.$$set({min_width:e}),w()}get autoplay(){return this.$$.ctx[14]}set autoplay(e){this.$$set({autoplay:e}),w()}get show_share_button(){return this.$$.ctx[15]}set show_share_button(e){this.$$set({show_share_button:e}),w()}get show_download_button(){return this.$$.ctx[16]}set show_download_button(e){this.$$set({show_download_button:e}),w()}get gradio(){return this.$$.ctx[17]}set gradio(e){this.$$set({gradio:e}),w()}get interactive(){return this.$$.ctx[18]}set interactive(e){this.$$set({interactive:e}),w()}get mirror_webcam(){return this.$$.ctx[19]}set mirror_webcam(e){this.$$set({mirror_webcam:e}),w()}get include_audio(){return this.$$.ctx[20]}set include_audio(e){this.$$set({include_audio:e}),w()}get loop(){return this.$$.ctx[21]}set loop(e){this.$$set({loop:e}),w()}get input_ready(){return this.$$.ctx[30]}set input_ready(e){this.$$set({input_ready:e}),w()}}const Vl=Et;export{Pl as BaseExample,gt as BaseInteractiveVideo,Ze as BasePlayer,ye as BaseStaticVideo,Vl as default,jl as loaded,Ye as playable,ge as prettyBytes};
2//# sourceMappingURL=index-C5CPmCgn.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.