PageSourceSearch

https://chakshu123-image-colorization-with-hint.hf.space/assets/index.9a9131f6.js

js chakshu123-image-colorization-with-hint.hf.space collected 2026-10-03 10:20:04 UTC 17,368 bytes, 2 lines download raw bytes

1import{S as H,i as O,s as Q,w as A,b as f,f as B,g as h,x as U,n as N,e as C,a as D,t as W,c as T,M as ue,ae as he,d as se,Y as fe,m as V,l as M,z as ce,W as ke,D as Z,k as p,E as x,j as w,h as J,o as j,A as pe,as as we,at as ve,aa as ye,K as P,I as de,B as $,F as me,O as Be,L as Ne,P as Te,Q as Ve,X as je,R as Me,T as Ce,U as Pe,V as Ue}from"./index.396f4a72.js";import{n as ze}from"./utils.27234e1d.js";import{U as Fe}from"./Upload.5d0148e8.js";import{M as Xe}from"./ModifyUpload.2cfe71e4.js";import{B as ge}from"./BlockLabel.37da86a3.js";import{U as Se,W as qe}from"./Webcam.8816836e.js";function De(n){let e,l;return{c(){e=A("svg"),l=A("path"),f(l,"d","M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(t,r){B(t,e,r),h(e,l)},p:U,i:U,o:U,d(t){t&&N(e)}}}class Ie extends H{constructor(e){super(),O(this,e,null,De,Q,{})}}function Re(n){let e,l,t;return{c(){e=A("svg"),l=A("rect"),t=A("rect"),f(l,"x","6"),f(l,"y","4"),f(l,"width","4"),f(l,"height","16"),f(t,"x","14"),f(t,"y","4"),f(t,"width","4"),f(t,"height","16"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(r,i){B(r,e,i),h(e,l),h(e,t)},p:U,i:U,o:U,d(r){r&&N(e)}}}class We extends H{constructor(e){super(),O(this,e,null,Re,Q,{})}}function Ae(n){let e,l;return{c(){e=A("svg"),l=A("polygon"),f(l,"points","5 3 19 12 5 21 5 3"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round")},m(t,r){B(t,e,r),h(e,l)},p:U,i:U,o:U,d(t){t&&N(e)}}}class Ee extends H{constructor(e){super(),O(this,e,null,Ae,Q,{})}}function Ke(n){let e,l,t;return{c(){e=A("svg"),l=A("polygon"),t=A("rect"),f(l,"points","23 7 16 12 23 17 23 7"),f(t,"x","1"),f(t,"y","5"),f(t,"width","15"),f(t,"height","14"),f(t,"rx","2"),f(t,"ry","2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"width","100%"),f(e,"height","100%"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","1.5"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","feather feather-video")},m(r,i){B(r,e,i),h(e,l),h(e,t)},p:U,i:U,o:U,d(r){r&&N(e)}}}class ne extends H{constructor(e){super(),O(this,e,null,Ke,Q,{})}}const _e=n=>{let e=["B","KB","MB","GB","PB"],l=0;for(;n>1024;)n/=1024,l++;let t=e[l];return n.toFixed(1)+" "+t},Le=()=>!0;const{isNaN:Ge}=we;function He(n){let e,l;return e=new We({}),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Oe(n){let e,l;return e=new Ee({}),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Qe(n){let e,l;return e=new Se({}),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Ye(n){let e,l,t,r,i=!1,u,g=!0,a,_,o,c,s,b,F,y,S=ee(n[2])+"",I,E,R=ee(n[3])+"",K,L,m,G,k,X,z,d,te,re;function ie(){cancelAnimationFrame(u),l.paused||(u=ve(ie),i=!0),n[14].call(l)}const oe=[Qe,Oe,He],Y=[];function ae(v,q){return v[2]===v[3]?0:v[4]?1:2}return s=ae(n),b=Y[s]=oe[s](n),z=new Ie({}),{c(){e=C("div"),l=C("video"),t=C("track"),a=D(),_=C("div"),o=C("div"),c=C("span"),b.c(),F=D(),y=C("span"),I=W(S),E=W(" / "),K=W(R),L=D(),m=C("progress"),k=D(),X=C("div"),T(z.$$.fragment),f(t,"kind","captions"),ue(l.src,r=n[0])||f(l,"src",r),f(l,"preload","auto"),f(l,"class","w-full h-full object-contain bg-black svelte-1cgkd5k"),n[3]===void 0&&he(()=>n[15].call(l)),se(l,"mirror",n[1]),f(c,"class","w-6 cursor-pointer text-white flex justify-center svelte-1cgk
1d5k"),f(y,"class","font-mono shrink-0 text-xs mx-3 text-white svelte-1cgkd5k"),m.value=G=n[2]/n[3]||0,f(m,"class","rounded h-2 w-full mx-3 svelte-1cgkd5k"),f(X,"class","w-6 cursor-pointer text-white"),f(o,"class","flex w-full justify-space h-full items-center px-1.5 "),f(_,"class","wrap absolute bottom-0 transition duration-500 m-1.5 bg-slate-800 px-1 py-2.5 rounded-md svelte-1cgkd5k"),fe(_,"opacity",n[3]&&n[6]?1:0)},m(v,q){B(v,e,q),h(e,l),h(l,t),n[17](l),h(e,a),h(e,_),h(_,o),h(o,c),Y[s].m(c,null),h(o,F),h(o,y),h(y,I),h(y,E),h(y,K),h(o,L),h(o,m),h(o,k),h(o,X),V(z,X,null),d=!0,te||(re=[M(l,"mousemove",n[7]),M(l,"click",n[9]),M(l,"play",n[11]),M(l,"pause",n[12]),M(l,"ended",n[13]),M(l,"timeupdate",ie),M(l,"durationchange",n[15]),M(l,"play",n[16]),M(l,"pause",n[16]),M(c,"click",n[9]),M(m,"mousemove",n[8]),M(m,"touchmove",ce(n[8])),M(m,"click",ke(ce(n[10]))),M(X,"click",n[18]),M(_,"mousemove",n[7])],te=!0)},p(v,[q]){(!d||q&1&&!ue(l.src,r=v[0]))&&f(l,"src",r),!i&&q&4&&!Ge(v[2])&&(l.currentTime=v[2]),i=!1,q&16&&g!==(g=v[4])&&l[g?"pause":"play"](),q&2&&se(l,"mirror",v[1]);let le=s;s=ae(v),s!==le&&(Z(),p(Y[le],1,1,()=>{Y[le]=null}),x(),b=Y[s],b||(b=Y[s]=oe[s](v),b.c()),w(b,1),b.m(c,null)),(!d||q&4)&&S!==(S=ee(v[2])+"")&&J(I,S),(!d||q&8)&&R!==(R=ee(v[3])+"")&&J(K,R),(!d||q&12&&G!==(G=v[2]/v[3]||0))&&(m.value=G),(!d||q&72)&&fe(_,"opacity",v[3]&&v[6]?1:0)},i(v){d||(w(b),w(z.$$.fragment,v),d=!0)},o(v){p(b),p(z.$$.fragment,v),d=!1},d(v){v&&N(e),n[17](null),Y[s].d(),j(z),te=!1,pe(re)}}}function ee(n){if(isNaN(n)||!isFinite(n))return"...";const e=Math.floor(n/60);let l=Math.floor(n%60);return n<10&&(l=`0${l}`),`${e}:${l}`}function Je(n,e,l){let{src:t}=e,{mirror:r}=e,i=0,u,g=!0,a,_=!0,o;function c(){clearTimeout(o),o=setTimeout(()=>l(6,_=!1),2500),l(6,_=!0)}function s(k){if(!u)return;if(k.type==="click"){F(k);return}if(k.type!=="touchmove"&&!(k.buttons&1))return;const X=k.type==="touchmove"?k.touches[0].clientX:k.clientX,{left:z,right:d}=k.currentTarget.getBoundingClientRect();l(2,i=u*(X-z)/(d-z))}function b(){g?a.play():a.pause()}function F(k){const{left:X,right:z}=k.currentTarget.getBoundingClientRect();l(2,i=u*(k.clientX-X)/(z-X))}async function y(){await ye(),l(5,a.currentTime=9999,a),setTimeout(async()=>{l(5,a.currentTime=0,a)},50)}function S(k){P.call(this,n,k)}function I(k){P.call(this,n,k)}function E(k){P.call(this,n,k)}function R(){i=this.currentTime,l(2,i)}function K(){u=this.duration,l(3,u)}function L(){g=this.paused,l(4,g)}function m(k){de[k?"unshift":"push"](()=>{a=k,l(5,a)})}const G=()=>a.requestFullscreen();return n.$$set=k=>{"src"in k&&l(0,t=k.src),"mirror"in k&&l(1,r=k.mirror)},n.$$.update=()=>{n.$$.dirty&1&&t&&y()},[t,r,i,u,g,a,_,c,s,b,F,S,I,E,R,K,L,m,G]}class be extends H{constructor(e){super(),O(this,e,Je,Ye,Q,{src:0,mirror:1})}}function Ze(n){let e,l,t,r,i,u,g;e=new Xe({}),e.$on("clear",n[12]);const a=[et,$e],_=[];function o(c,s){return t==null&&(t=!!Le()),t?0:c[0].size?1:-1}return~(r=o(n))&&(i=_[r]=a[r](n)),{c(){T(e.$$.fragment),l=D(),i&&i.c(),u=$()},m(c,s){V(e,c,s),B(c,l,s),~r&&_[r].m(c,s),B(c,u,s),g=!0},p(c,s){let b=r;r=o(c),r===b?~r&&_[r].p(c,s):(i&&(Z(),p(_[b],1,1,()=>{_[b]=null}),x()),~r?(i=_[r],i?i.p(c,s):(i=_[r]=a[r](c),i.c()),w(i,1),i.m(u.parentNode,u)):i=null)},i(c){g||(w(e.$$.fragment,c),w(i),g=!0)},o(c){p(e.$$.fragment,c),p(i),g=!1},d(c){j(e,c),c&&N(l),~r&&_[r].d(c),c&&N(u)}}}function xe(n){let e,l,t,r;const i=[lt,tt],u=[];function g(a,_){return a[1]==="upload"?0:a[1]==="webcam"?1:-1}return~(e=g(n))&&(l=u[e]=i[e](n)),{c(){l&&l.c(),t=$()},m(a,_){~e&&u[e].m(a,_),B(a,t,_),r=!0},p(a,_){let o=e;e=g(a),e===o?~e&&u[e].p(a,_):(l&&(Z(),p(u[o],1,1,()=>{u[o]=null}),x()),~e?(l=u[e],l?l.p(a,_):(l=u[e]=i[e](a),l.c()),w(l,1),l.m(t.parentNode,t)):l=null)},i(a){r||(w(l),r=!0)},o(a){p(l),r=!1},d(a){~e&&u[e].d(a),a&&N(t)}}}function $e(n){let e,l=n[0].name+"",t,r,i,u=_e(n[0].size)+"",g;return{c(){e=C("div"),t=W(l),r=D(),i=C("div"),g=W(u),f(e,"class","file-name text-4xl p-6 break-all"),f(i,"class","file-size text-2xl p-2")},m(a,_){B(a,e,_),h(e,t),B(a,r,_),B(a,i,_),h(i,g)},p(a,_){_&1&&l!==(l=a[0].name+"")&&J(t,l),_&1&&u!==(u=_e(a[0].size)+"")&&J(g,u)},i:U,o:U,d(a){a&&N(e),a&&N(r),a&&N(i)}}}function et(n){let e,l;return e=new be({props:{src:n[0].data,mirror:n[4]&&n[1]==="webcam"}}),e.$on("play",n[16]),e.$on("pause",n[17]),e.$on("ended",n[18]),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.src=t[0].data),r&18&&(i.mirror=t[4]&&t[1]==="webcam"),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function tt(n){let e,l;return e=new qe({props:{mirror_webcam:n[4],include_audio:n[5],mode:"video"}}
1),e.$on("error",n[14]),e.$on("capture",n[15]),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,r){const i={};r&16&&(i.mirror_webcam=t[4]),r&32&&(i.include_audio=t[5]),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function lt(n){let e,l,t;function r(u){n[13](u)}let i={filetype:"video/mp4,video/x-m4v,video/*",$$slots:{default:[nt]},$$scope:{ctx:n}};return n[9]!==void 0&&(i.dragging=n[9]),e=new Fe({props:i}),de.push(()=>Be(e,"dragging",r)),e.$on("load",n[11]),{c(){T(e.$$.fragment)},m(u,g){V(e,u,g),t=!0},p(u,g){const a={};g&524736&&(a.$$scope={dirty:g,ctx:u}),!l&&g&512&&(l=!0,a.dragging=u[9],Ne(()=>l=!1)),e.$set(a)},i(u){t||(w(e.$$.fragment,u),t=!0)},o(u){p(e.$$.fragment,u),t=!1},d(u){j(e,u)}}}function nt(n){let e,l,t,r,i,u,g,a,_;return{c(){e=C("div"),l=W(n[6]),t=D(),r=C("span"),i=W("- "),u=W(n[7]),g=W(" -"),a=D(),_=W(n[8]),f(r,"class","text-gray-300"),f(e,"class","flex flex-col")},m(o,c){B(o,e,c),h(e,l),h(e,t),h(e,r),h(r,i),h(r,u),h(r,g),h(e,a),h(e,_)},p(o,c){c&64&&J(l,o[6]),c&128&&J(u,o[7]),c&256&&J(_,o[8])},d(o){o&&N(e)}}}function rt(n){let e,l,t,r,i,u;e=new ge({props:{show_label:n[3],Icon:ne,label:n[2]||"Video"}});const g=[xe,Ze],a=[];function _(o,c){return o[0]===null?0:1}return t=_(n),r=a[t]=g[t](n),{c(){T(e.$$.fragment),l=D(),r.c(),i=$()},m(o,c){V(e,o,c),B(o,l,c),a[t].m(o,c),B(o,i,c),u=!0},p(o,[c]){const s={};c&8&&(s.show_label=o[3]),c&4&&(s.label=o[2]||"Video"),e.$set(s);let b=t;t=_(o),t===b?a[t].p(o,c):(Z(),p(a[b],1,1,()=>{a[b]=null}),x(),r=a[t],r?r.p(o,c):(r=a[t]=g[t](o),r.c()),w(r,1),r.m(i.parentNode,i))},i(o){u||(w(e.$$.fragment,o),w(r),u=!0)},o(o){p(e.$$.fragment,o),p(r),u=!1},d(o){j(e,o),o&&N(l),a[t].d(o),o&&N(i)}}}function it(n,e,l){let{value:t=null}=e,{source:r}=e,{label:i=void 0}=e,{show_label:u}=e,{mirror_webcam:g}=e,{include_audio:a}=e,{drop_text:_="Drop a video file"}=e,{or_text:o="or"}=e,{upload_text:c="click to upload"}=e;const s=me();function b({detail:m}){s("change",m),s("upload",m),l(0,t=m)}function F({detail:m}){l(0,t=null),s("change",m),s("clear")}let y=!1;function S(m){y=m,l(9,y)}function I(m){P.call(this,n,m)}const E=({detail:m})=>s("change",m);function R(m){P.call(this,n,m)}function K(m){P.call(this,n,m)}function L(m){P.call(this,n,m)}return n.$$set=m=>{"value"in m&&l(0,t=m.value),"source"in m&&l(1,r=m.source),"label"in m&&l(2,i=m.label),"show_label"in m&&l(3,u=m.show_label),"mirror_webcam"in m&&l(4,g=m.mirror_webcam),"include_audio"in m&&l(5,a=m.include_audio),"drop_text"in m&&l(6,_=m.drop_text),"or_text"in m&&l(7,o=m.or_text),"upload_text"in m&&l(8,c=m.upload_text)},n.$$.update=()=>{n.$$.dirty&512&&s("drag",y)},[t,r,i,u,g,a,_,o,c,y,s,b,F,S,I,E,R,K,L]}class ot extends H{constructor(e){super(),O(this,e,it,rt,Q,{value:0,source:1,label:2,show_label:3,mirror_webcam:4,include_audio:5,drop_text:6,or_text:7,upload_text:8})}}function at(n){let e,l;return e=new be({props:{src:n[0].data,mirror:!1}}),e.$on("play",n[3]),e.$on("pause",n[4]),e.$on("ended",n[5]),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.src=t[0].data),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function ut(n){let e,l,t,r;return t=new ne({}),{c(){e=C("div"),l=C("div"),T(t.$$.fragment),f(l,"class","h-5 dark:text-white opacity-50"),f(e,"class","h-full min-h-[15rem] flex justify-center items-center")},m(i,u){B(i,e,u),h(e,l),V(t,l,null),r=!0},p:U,i(i){r||(w(t.$$.fragment,i),r=!0)},o(i){p(t.$$.fragment,i),r=!1},d(i){i&&N(e),j(t)}}}function st(n){let e,l,t,r,i,u;e=new ge({props:{show_label:n[2],Icon:ne,label:n[1]||"Video"}});const g=[ut,at],a=[];function _(o,c){return o[0]===null?0:1}return t=_(n),r=a[t]=g[t](n),{c(){T(e.$$.fragment),l=D(),r.c(),i=$()},m(o,c){V(e,o,c),B(o,l,c),a[t].m(o,c),B(o,i,c),u=!0},p(o,[c]){const s={};c&4&&(s.show_label=o[2]),c&2&&(s.label=o[1]||"Video"),e.$set(s);let b=t;t=_(o),t===b?a[t].p(o,c):(Z(),p(a[b],1,1,()=>{a[b]=null}),x(),r=a[t],r?r.p(o,c):(r=a[t]=g[t](o),r.c()),w(r,1),r.m(i.parentNode,i))},i(o){u||(w(e.$$.fragment,o),w(r),u=!0)},o(o){p(e.$$.fragment,o),p(r),u=!1},d(o){j(e,o),o&&N(l),a[t].d(o),o&&N(i)}}}function ft(n,e,l){let{value:t=null}=e,{label:r=void 0}=e,{show_label:i}=e;const u=me();function g(o){P.call(this,n,o)}function a(o){P.call(this,n,o)}function _(o){P.call(this,n,o)}return n.$$set=o=>{"value"in o&&l(0,t=o.value),"label"in o&&l(1,r=o.label),"show_label"in o&&l(2,i=o.show_label)},n.$$.update=()=>{n.$$.dirty&1&&t&&u("change",t)},[t,r,i,g,a,_]}class ct extends H{constructor(e){super(),O(this,e,ft,st,Q,{value:0,label:1,show_label:2})}}function _t(n){let e,l;return e=new ot({props:{value:n[11],label:n[4],show_label:n[6],source:n[5],drop_text:n[13]("interface.drop_video"),or_text:n[13]("or"),upload_text:n[13]("interface.click_to_upload"),mirror_webcam:n[8],include_audio:n[9]}}),e.$on("change",n[16]),e.$on("drag",n[17]),e.$on("error",n[18]),e.$on("change",n[19]),e.$on("clear",n[20]),e.$on("play",n[21]),e.$on("pause",n[22]),e.$on("upload",n[23]),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,r){const i={};r&2048&&(i.value=t[11]),r&16&&(i.label=t[4]),r&64&&(i.show_label=t[6]),r&32&&(i.source=t[5]),r&8192&&(i.drop_text=t[13]("interface.drop_video")),r&8192&&(i.or_text=t[13]("or")),r&8192&&(i.upload_text=t[13]("interface.click_to_upload")),r&256&&(i.mirror_webcam=t[8]),r&512&&(i.include_audio=t[9]),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function dt(n){let e,l;return e=new ct({props:{value:n[11],label:n[4],show_label:n[6]}}),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,r){const i={};r&2048&&(i.value=t[11]),r&16&&(i.label=t[4]),r&64&&(i.show_label=t[6]),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function mt(n){let e,l,t,r,i,u;const g=[n[1]];let a={};for(let s=0;s<g.length;s+=1)a=Me(a,g[s]);e=new Ce({props:a});const _=[dt,_t],o=[];function c(s,b){return s[10]==="static"?0:1}return t=c(n),r=o[t]=_[t](n),{c(){T(e.$$.fragment),l=D(),r.c(),i=$()},m(s,b){V(e,s,b),B(s,l,b),o[t].m(s,b),B(s,i,b),u=!0},p(s,b){const F=b&2?Pe(g,[Ue(s[1])]):{};e.$set(F);let y=t;t=c(s),t===y?o[t].p(s,b):(Z(),p(o[y],1,1,()=>{o[y]=null}),x(),r=o[t],r?r.p(s,b):(r=o[t]=_[t](s),r.c()),w(r,1),r.m(i.parentNode,i))},i(s){u||(w(e.$$.fragment,s),w(r),u=!0)},o(s){p(e.$$.fragment,s),p(r),u=!1}
1,d(s){j(e,s),s&&N(l),o[t].d(s),s&&N(i)}}}function gt(n){let e,l;return e=new Te({props:{visible:n[3],variant:n[10]==="dynamic"&&n[0]===null&&n[5]==="upload"?"dashed":"solid",color:n[12]?"green":"grey",padding:!1,elem_id:n[2],style:{height:n[7].height,width:n[7].width},$$slots:{default:[mt]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},m(t,r){V(e,t,r),l=!0},p(t,[r]){const i={};r&8&&(i.visible=t[3]),r&1057&&(i.variant=t[10]==="dynamic"&&t[0]===null&&t[5]==="upload"?"dashed":"solid"),r&4096&&(i.color=t[12]?"green":"grey"),r&4&&(i.elem_id=t[2]),r&128&&(i.style={height:t[7].height,width:t[7].width}),r&16793459&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){l||(w(e.$$.fragment,t),l=!0)},o(t){p(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function bt(n,e,l){let t;Ve(n,je,d=>l(13,t=d));let{elem_id:r=""}=e,{visible:i=!0}=e,{value:u=null}=e,{label:g}=e,{source:a}=e,{root:_}=e,{root_url:o}=e,{show_label:c}=e,{loading_status:s}=e,{style:b={}}=e,{mirror_webcam:F}=e,{include_audio:y}=e,{mode:S}=e,I,E=!1;const R=({detail:d})=>l(0,u=d),K=({detail:d})=>l(12,E=d),L=({detail:d})=>{l(1,s=s||{}),l(1,s.status="error",s),l(1,s.message=d,s)};function m(d){P.call(this,n,d)}function G(d){P.call(this,n,d)}function k(d){P.call(this,n,d)}function X(d){P.call(this,n,d)}function z(d){P.call(this,n,d)}return n.$$set=d=>{"elem_id"in d&&l(2,r=d.elem_id),"visible"in d&&l(3,i=d.visible),"value"in d&&l(0,u=d.value),"label"in d&&l(4,g=d.label),"source"in d&&l(5,a=d.source),"root"in d&&l(14,_=d.root),"root_url"in d&&l(15,o=d.root_url),"show_label"in d&&l(6,c=d.show_label),"loading_status"in d&&l(1,s=d.loading_status),"style"in d&&l(7,b=d.style),"mirror_webcam"in d&&l(8,F=d.mirror_webcam),"include_audio"in d&&l(9,y=d.include_audio),"mode"in d&&l(10,S=d.mode)},n.$$.update=()=>{n.$$.dirty&49153&&l(11,I=ze(u,o??_))},[u,s,r,i,g,a,c,b,F,y,S,I,E,t,_,o,R,K,L,m,G,k,X,z]}class ht extends H{constructor(e){super(),O(this,e,bt,gt,Q,{elem_id:2,visible:3,value:0,label:4,source:5,root:14,root_url:15,show_label:6,loading_status:1,style:7,mirror_webcam:8,include_audio:9,mode:10})}}var Nt=ht;const Tt=["static","dynamic"],Vt=n=>({type:"{ name: string; data: string }",description:"file name and base64 data of video file"});export{Nt as Component,Vt as document,Tt as modes};
2//# sourceMappingURL=index.9a9131f6.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.