vendor: 22,391 bytes, lines 1-2
1import{a as Ke}from"./Upload-DFn3To6N.js";import"./IconButtonWrapper.svelte_svelte_type_style_lang-Dn324h3u.js";import"./MarkdownCode.svelte_svelte_type_style_lang-D96FH13R.js";import{B as Me}from"./BlockLabel-8WtM61r3.js";import{V as Qe}from"./Video-fsmLZWjA.js";import{S as Re}from"./SelectSource-CKfu_LoW.js";import"./DownloadLink.svelte_svelte_type_style_lang-C_5UIfol.js";import"./Image-CnqB5dbD.js";/* empty css */import{W as Xe}from"./ImageUploader-BS_ouPDJ.js";import"./StreamingBar.svelte_svelte_type_style_lang-CDNxkBIr.js";import"./index-BL1Z-Foy.js";/* empty css */import{p as ge,a as Ye}from"./Video-C-llMUaJ.js";import{l as Il}from"./Video-C-llMUaJ.js";import{P as Ze,V as ye}from"./VideoPreview-CjFU8yfd.js";import{default as Nl}from"./Example-NyqANfzY.js";import{B as ve}from"./Block-CygNNd5z.js";import{U as $e}from"./UploadText-YdnnISct.js";import{S as ke}from"./index-CQBmOxAf.js";/* empty css */import"./prism-python-BRDN3PNV.js";import"./file-url-DoxvUUVV.js";import"./IconButton-DSs-aBrk.js";import"./Clear-By3xiIwg.js";import"./FullscreenButton-CZXRKqXs.js";import"./IconButtonWrapper-jknaAjP6.js";import"./utils-Gtzs_Zla.js";import"./DropdownArrow-CFmkDyPW.js";import"./Square-oAGqOwsh.js";import"./index-DfebmzpM.js";import"./StreamingBar-BU9S4hA7.js";import"./svelte/svelte.js";import"./hls-CnVhpNcu.js";import"./Empty-AVq7jL0F.js";import"./ShareButton-CuWfx-Ef.js";import"./Community-Dw1micSV.js";import"./utils-BsGrhMNe.js";import"./Download-DVtk-Jv3.js";import"./DownloadLink-QIttOhoR.js";import"./Trim-JQYgj7Jd.js";import"./Play-B0Q0U1Qz.js";import"./Undo-DCjBnnSO.js";import"./ModifyUpload-Dv9MTHze.js";import"./Edit-BpRIf5rU.js";const{SvelteComponent:xe,add_flush_callback:se,append:ae,attr:M,bind:ue,binding_callbacks:re,bubble:J,check_outros:ce,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:he,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,u=ge(l[0].size)+"",f;return{c(){e=y("div"),t=we(n),o=fe(),i=y("div"),f=we(u),M(e,"class","file-name svelte-14jis2k"),M(i,"class","file-size svelte-14jis2k")},m(s,c){W(s,e,c),ae(e,t),W(s,o,c),W(s,i,c),ae(i,f)},p(s,c){c[0]&1&&n!==(n=(s[0].orig_name||s[0].url)+"")&&be(t,n),c[0]&1&&u!==(u=ge(s[0].size)+"")&&be(f,u)},i:_e,o:_e,d(s){s&&(O(e),O(o),O(i))}}}function ut(l){let e=l[0]?.url,n,t,o=pe(l);return{c(){o.c(),n=tt()},m(i,u){o.m(i,u),W(i,n,u),t=!0},p(i,u){u[0]&1&&ze(e,e=i[0]?.url)?(he(),S(o,1,1,_e),ce(),o=pe(i),o.c(),z(o,1),o.m(n.parentNode,n)):o.p(i,u)},i(i){t||(z(o),t=!0)},o(i){S(o),t=!1},d(i){i&&O(n),o.d(i)}}}function rt(l){let e,n,t,o;const i=[ft,_t],u=[];function f(s,c){return s[1]==="upload"?0:s[1]==="webcam"?1:-1}return~(n=f(l))&&(t=u[n]=i[n](l)),{c(){e=y("div"),t&&t.c(),M(e,"class","upload-container svelte-14jis2k")},m(s,c){W(s,e,c),~n&&u[n].m(e,null),o=!0},p(s,c){let a=n;n=f(s),n===a?~n&&u[n].p(s,c):(t&&(he(),S(u[a],1,1,()=>{u[a]=null}),ce()),~n?(t=u[n],t?t.p(s,c):(t=u[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&&u[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].mirror&&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].mirror&&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].mirror,webcam_constraints:l[8].constraints,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].mirror),o[0]&256&&(i.webcam_constraints=t[8].constraints),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 u(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],aria_label:l[12]("video.drop_to_upload"),$$slots:{default:[ct]},$$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}),re.push(()=>ue(e,"dragging",i)),re.push(()=>ue(e,"uploading",u)),e.$on("load",l[21]),e.$on("error",l[28]),{c(){Q(e.$$.fragment)},m(s,c){X(e,s,c),o=!0},p(s,c){const a={};c[0]&16384&&(a.max_file_size=s[14]),c[0]&2048&&(a.root=s[11]),c[0]&32768&&(a.upload=s[15]),c[0]&65536&&(a.stream_handler=s[16]),c[0]&4096&&(a.aria_label=s[12]("video.drop_to_upload")),c[1]&64&&(a.$$scope={dirty:c,ctx:s}),!n&&c[0]&262144&&(n=!0,a.dragging=s[18],se(()=>n=!1)),!t&&c[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 ct(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 ht(l){let e,n,t,o,i,u,f,s,c,a;e=new Me({props:{show_label:l[7],Icon:Qe,label:l[5]||"Video"}});const h=[rt,ut,at],b=[];function m(d,v){return d[0]===null||d[0].url===void 0?0:(o==null&&(o=!!Ye()),o?1:d[0].size?2:-1)}~(i=m(l))&&(u=b[i]=h[i](l));function U(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}),re.push(()=>ue(s,"active_source",U)),{c(){Q(e.$$.fragment),n=fe(),t=y("div"),u&&u.c(),f=fe(),Q(s.$$.fragment),M(t,"data-testid","video"),M(t,"class","video-container svelte-14jis2k")},m(d,v){X(e,d,v),W(d,n,v),W(d,t,v),~i&&b[i].m(t,null),ae(t,f),X(s,t,null),a=!0},p(d,v){const V={};v[0]&128&&(V.show_label=d[7]),v[0]&32&&(V.label=d[5]||"Video"),e.$set(V);let B=i;i=m(d),i===B?~i&&b[i].p(d,v):(u&&(he(),S(b[B],1,1,()=>{b[B]=null}),ce()),~i?(u=b[i],u?u.p(d,v):(u=b[i]=h[i](d),u.c()),z(u,1),u.m(t,f)):u=null);const I={};v[0]&16&&(I.sources=d[4]),!c&&v[0]&2&&(c=!0,I.active_source=d[1],se(()=>c=!1)),s.$set(I)},i(d){a||(z(e.$$.fragment,d),z(u),z(s.$$.fragment,d),a=!0)},o(d){S(e.$$.fragment,d),S(u),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:u=null}=e,{sources:f=["webcam","upload"]}=e,{label:s=void 0}=e,{show_download_button:c=!1}=e,{show_label:a=!0}=e,{webcam_options:h}=e,{include_audio:b}=e,{autoplay:m}=e,{root:U}=e,{i18n:P}=e,{active_source:d="webcam"}=e,{handle_reset_value:v=()=>{}}=e,{max_file_size:V=null}=e,{upload:B}=e,{stream_handler:I}=e,{loop:g}=e,{uploading:E=!1}=e,F=!1;const k=st();function Y({detail:r}){n(0,i=r),k("change",r),k("upload",r)}function G(){n(0,i=null),k("change",null),k("clear")}function A(r){n(19,F=!0),k("change",r)}function H({detail:r}){k("change",r)}let q=!1;function K(r){q=r,n(18,q)}function C(r){E=r,n(2,E)}const $=({detail:r})=>k("error",r);function Z(r){J.call(this,l,r)}function x(r){J.call(this,l,r)}function ee(r){J.call(this,l,r)}function te(r){J.call(this,l,r)}function le(r){J.call(this,l,r)}function ne(r){J.call(this,l,r)}function oe(r){J.call(this,l,r)}function ie(r){d=r,n(1,d)}return l.$$set=r=>{"value"in r&&n(0,i=r.value),"subtitle"in r&&n(3,u=r.subtitle),"sources"in r&&n(4,f=r.sources),"label"in r&&n(5,s=r.label),"show_download_button"in r&&n(6,c=r.show_download_button),"show_label"in r&&n(7,a=r.show_label),"webcam_options"in r&&n(8,h=r.webcam_options),"include_audio"in r&&n(9,b=r.include_audio),"autoplay"in r&&n(10,m=r.autoplay),"root"in r&&n(11,U=r.root),"i18n"in r&&n(12,P=r.i18n),"active_source"in r&&n(1,d=r.active_source),"handle_reset_value"in r&&n(13,v=r.handle_reset_value),"max_file_size"in r&&n(14,V=r.max_file_size),"upload"in r&&n(15,B=r.upload),"stream_handler"in r&&n(16,I=r.stream_handler),"loop"in r&&n(17,g=r.loop),"uploading"in r&&n(2,E=r.uploading),"$$scope"in r&&n(37,o=r.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&262144&&k("drag",q)},[i,d,E,u,f,s,c,a,h,b,m,U,P,v,V,B,I,g,q,F,k,Y,G,A,H,t,K,C,$,Z,x,ee,te,le,ne,oe,ie,o]}class mt extends xe{constructor(e){super(),ot(this,e,dt,ht,ze,{value:0,subtitle:3,sources:4,label:5,show_download_button:6,show_label:7,webcam_options: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 webcam_options(){return this.$$.ctx[8]}set webcam_options(e){this.$$set({webcam_options: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:vt,check_outros:kt,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 ve({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 ve({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:[qt]},$$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 u=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let f={};for(let a=0;a<u.length;a+=1)f=Se(f,u[a]);e=new ke({props:f}),e.$on("clear_status",l[41]);function s(a){l[44](a)}let c={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],webcam_options: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&&(c.uploading=l[22]),t=new gt({props:c}),vt.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,h){T(e,a,h),me(a,n,h),T(t,a,h),i=!0},p(a,h){const b=h[0]&131074?Be(u,[h[0]&131072&&{autoscroll:a[17].autoscroll},h[0]&131072&&{i18n:a[17].i18n},h[0]&2&&Ve(a[1])]):{};e.$set(b);const m={};h[0]&16777216&&(m.value=a[24]),h[0]&33554432&&(m.subtitle=a[25]),h[0]&32&&(m.label=a[5]),h[0]&256&&(m.show_label=a[8]),h[0]&65536&&(m.show_download_button=a[16]),h[0]&64&&(m.sources=a[6]),h[0]&8388608&&(m.active_source=a[23]),h[0]&524288&&(m.webcam_options=a[19]),h[0]&1048576&&(m.include_audio=a[20]),h[0]&16384&&(m.autoplay=a[14]),h[0]&128&&(m.root=a[7]),h[0]&2097152&&(m.loop=a[21]),h[0]&131072&&(m.i18n=a[17].i18n),h[0]&131072&&(m.max_file_size=a[17].max_file_size),h[0]&131072&&(m.upload=a[42]),h[0]&131072&&(m.stream_handler=a[43]),h[0]&131072|h[1]&8388608&&(m.$$scope={dirty:h,ctx:a}),!o&&h[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 qt(l){let e,n,t,o;const i=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let u={};for(let f=0;f<i.length;f+=1)u=Se(u,i[f]);return e=new ke({props:u}),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 c=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(c);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 Ct(l){let e,n,t,o;const i=[jt,It],u=[];function f(s,c){return s[18]?1:0}return e=f(l),n=u[e]=i[e](l),{c(){n.c(),t=zt()},m(s,c){u[e].m(s,c),me(s,t,c),o=!0},p(s,c){let a=e;e=f(s),e===a?u[e].p(s,c):(St(),N(u[a],1,1,()=>{u[a]=null}),kt(),n=u[e],n?n.p(s,c):(n=u[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),u[e].d(s)}}}function Ut(l,e,n){let{elem_id:t=""}=e,{elem_classes:o=[]}=e,{visible:i=!0}=e,{value:u=null}=e,f=null,{label:s}=e,{sources:c}=e,{root:a}=e,{show_label:h}=e,{loading_status:b}=e,{height:m}=e,{width:U}=e,{container:P=!1}=e,{scale:d=null}=e,{min_width:v=void 0}=e,{autoplay:V=!1}=e,{show_share_button:B=!0}=e,{show_download_button:I}=e,{gradio:g}=e,{interactive:E}=e,{webcam_options:F}=e,{include_audio:k}=e,{loop:Y=!1}=e,{input_ready:G}=e,A=!1,H=null,q=null,K,C=u;const $=()=>{C===null||u===C||n(0,u=C)};let Z=!1;function x({detail:_}){_!=null?n(0,u={video:_,subtitles:null}):n(0,u=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"),r=()=>g.dispatch("end"),je=({detail:_})=>g.dispatch("share",_),Ne=({detail:_})=>g.dispatch("error",_),Pe=()=>g.dispatch("clear_status",b),qe=(..._)=>g.client.upload(..._),Ce=(..._)=>g.client.stream(..._);function Ue(_){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,u=_.value),"label"in _&&n(5,s=_.label),"sources"in _&&n(6,c=_.sources),"root"in _&&n(7,a=_.root),"show_label"in _&&n(8,h=_.show_label),"loading_status"in _&&n(1,b=_.loading_status),"height"in _&&n(9,m=_.height),"width"in _&&n(10,U=_.width),"container"in _&&n(11,P=_.container),"scale"in _&&n(12,d=_.scale),"min_width"in _&&n(13,v=_.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),"webcam_options"in _&&n(19,F=_.webcam_options),"include_audio"in _&&n(20,k=_.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&&u&&C===null&&n(32,C=u),l.$$.dirty[0]&8388672&&c&&!K&&n(23,K=c[0]),l.$$.dirty[0]&1&&(u!=null?(n(24,H=u.video),n(25,q=u.subtitles)):(n(24,H=null),n(25,q=null))),l.$$.dirty[0]&131073|l.$$.dirty[1]&1&&JSON.stringify(u)!==JSON.stringify(f)&&(n(31,f=u),g.dispatch("change"))},[u,b,t,o,i,s,c,a,h,m,U,P,d,v,V,B,I,g,E,F,k,Y,A,K,H,q,Z,$,x,ee,G,f,C,te,le,ne,oe,ie,r,je,Ne,Pe,qe,Ce,Ue,Ee,Je,Oe,We,De,Le,Te,Ae,Fe]}class Et extends bt{constructor(e){super(),Vt(this,e,Ut,Ct,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,webcam_options: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 webcam_options(){return this.$$.ctx[19]}set webcam_options(e){this.$$set({webcam_options: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 Sl=Et;export{Nl as BaseExample,gt as BaseInteractiveVideo,Ze as BasePlayer,ye as BaseStaticVideo,Sl as default,Il as loaded,Ye as playable,ge as prettyBytes}; 2//# sourceMappingURL=index-BWQzaVaR.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.