1import{S as ye,e as Ve,s as Ee,m as I,o as G,g as w,N as A,h as y,j as C,n as Ae,k as V,p as B,b as ge,ag as he,B as pe,t as K,x as j,I as Se,Q as we,O as rl,w as M,r as ke,u as F,v as ve,C as ul,ah as Ml,F as Q,G as W,H as Z,a6 as Rl,R as Pe,a0 as Dl,a1 as Il,ai as Ul,_ as Oe,E as Ne,U as Re,X as De,a9 as Fl,ab as Ol,ac as Nl,ad as Bl,af as T,Z as Ll,ae as Tl,V as Cl,W as zl}from"./index-a959df42.js";import{a as ol,B as Kl,n as jl}from"./Button-fb0eed2f.js";import{U as Xl}from"./UploadText-7108cd7a.js";import{U as Yl}from"./Upload-4d8da01b.js";import{M as ql}from"./ModifyUpload-5670912c.js";import{B as Jl}from"./BlockLabel-5f053d92.js";import{M as Gl,A as Ql}from"./Audio-54d4bec8.js";import"./IconButton-a920ab53.js";import"./Undo-5cacac6a.js";import"./file-url-43c83f6d.js";function Be(l,e,i){const n=l.slice();return n[27]=e[i],n[29]=i,n}function Le(l){let e,i,n,a,t=(l[6]==="label"||l[7]==="label")&&Te(l);return{c(){e=I("span"),t&&t.c(),w(e,"class","pip first"),w(e,"style",i=l[14]+": 0%;"),A(e,"selected",l[17](l[0])),A(e,"in-range",l[16](l[0]))},m(s,f){y(s,e,f),t&&t.m(e,null),n||(a=[B(e,"click",function(){ge(l[20](l[0]))&&l[20](l[0]).apply(this,arguments)}),B(e,"touchend",he(function(){ge(l[20](l[0]))&&l[20](l[0]).apply(this,arguments)}))],n=!0)},p(s,f){l=s,l[6]==="label"||l[7]==="label"?t?t.p(l,f):(t=Te(l),t.c(),t.m(e,null)):t&&(t.d(1),t=null),f&16384&&i!==(i=l[14]+": 0%;")&&w(e,"style",i),f&131073&&A(e,"selected",l[17](l[0])),f&65537&&A(e,"in-range",l[16](l[0]))},d(s){s&&V(e),t&&t.d(),n=!1,pe(a)}}}function Te(l){let e,i=l[12](l[0],0,0)+"",n,a=l[10]&&Ce(l),t=l[11]&&ze(l);return{c(){e=I("span"),a&&a.c(),n=K(i),t&&t.c(),w(e,"class","pipVal")},m(s,f){y(s,e,f),a&&a.m(e,null),C(e,n),t&&t.m(e,null)},p(s,f){s[10]?a?a.p(s,f):(a=Ce(s),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f&4097&&i!==(i=s[12](s[0],0,0)+"")&&j(n,i),s[11]?t?t.p(s,f):(t=ze(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),a&&a.d(),t&&t.d()}}}function Ce(l){let e,i;return{c(){e=I("span"),i=K(l[10]),w(e,"class","pipVal-prefix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&1024&&j(i,n[10])},d(n){n&&V(e)}}}function ze(l){let e,i;return{c(){e=I("span"),i=K(l[11]),w(e,"class","pipVal-suffix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&2048&&j(i,n[11])},d(n){n&&V(e)}}}function Ke(l){let e,i=Se(Array(l[19]+1)),n=[];for(let a=0;a<i.length;a+=1)n[a]=Je(Be(l,i,a));return{c(){for(let a=0;a<n.length;a+=1)n[a].c();e=we()},m(a,t){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(a,t);y(a,e,t)},p(a,t){if(t&2088515){i=Se(Array(a[19]+1));let s;for(s=0;s<i.length;s+=1){const f=Be(a,i,s);n[s]?n[s].p(f,t):(n[s]=Je(f),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length}},d(a){a&&V(e),rl(n,a)}}}function je(l){let e,i,n,a,t,s=(l[6]==="label"||l[9]==="label")&&Xe(l);return{c(){e=I("span"),s&&s.c(),i=G(),w(e,"class","pip"),w(e,"style",n=l[14]+": "+l[15](l[18](l[29]))+"%;"),A(e,"selected",l[17](l[18](l[29]))),A(e,"in-range",l[16](l[18](l[29])))},m(f,u){y(f,e,u),s&&s.m(e,null),C(e,i),a||(t=[B(e,"click",function(){ge(l[20](l[18](l[29])))&&l[20](l[18](l[29])).apply(this,arguments)}),B(e,"touchend",he(function(){ge(l[20](l[18](l[29])))&&l[20](l[18](l[29])).apply(this,arguments)}))],a=!0)},p(f,u){l=f,l[6]==="label"||l[9]==="label"?s?s.p(l,u):(s=Xe(l),s.c(),s.m(e,i)):s&&(s.d(1),s=null),u&311296&&n!==(n=l[14]+": "+l[15](l[18](l[29]))+"%;")&&w(e,"style",n),u&393216&&A(e,"selected",l[17](l[18](l[29]))),u&327680&&A(e,"in-range",l[16](l[18](l[29])))},d(f){f&&V(e),s&&s.d(),a=!1,pe(t)}}}function Xe(l){let e,i=l[12](l[18](l[29]),l[29],l[15](l[18](l[29])))+"",n,a=l[10]&&Ye(l),t=l[11]&&qe(l);return{c(){e=I("span"),a&&a.c(),n=K(i),t&&t.c(),w(e,"class","pipVal")},m(s,f){y(s,e,f),a&&a.m(e,null),C(e,n),t&&t.m(e,null)},p(s,f){s[10]?a?a.p(s,f):(a=Ye(s),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f&299008&&i!==(i=s[12](s[18](s[29]),s[29],s[15](s[18](s[29])))+"")&&j(n,i),s[11]?t?t.p(s,f):(t=qe(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),a&&a.d(),t&&t.d()}}}function Ye(l){let e,i;return{c(){e=I("span"),i=K(l[10]),w(e,"class","pipVal-prefix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&1024&&j(i,n[10])},d(n){n&&V(e)}}}function qe(l){let e,i;return{c(){e=I("span"),i=K(l[11]),w(e,"class","pipVal-suffix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&2048&&j(i,n[11])},d(n){n&&V(e)}}}function Je(l){let e=l[18](l[29])!==l[0]&&l[18](l[29])!==l[1],i,n=e&&je(l);return{c(){n&&n.c(),i=we()},m(a,t){n&&n.m(a,t),y(a,i,t)},p(a,t){t&262147&&(e=a[18](a[29])!==a[0]&&a[18](a[29])!==a[1]),e?n?n.p(a,t):(n=je(a),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(a){a&&V(i),n&&n.d(a)}}}function Ge(l){let e,i,n,a,t=(l[6]==="label"||l[8]==="label")&&Qe(l);return{c(){e=I("span"),t&&t.c(),w(e,"class","pip last"),w(e,"style",i=l[14]+": 100%;"),A(e,"selected",l[17](l[1])),A(e,"in-range",l[16](l[1]))},m(s,f){y(s,e,f),t&&t.m(e,null),n||(a=[B(e,"click",function(){ge(l[20](l[1]))&&l[20](l[1]).apply(this,arguments)}),B(e,"touchend",he(function(){ge(l[20](l[1]))&&l[20](l[1]).apply(this,arguments)}))],n=!0)},p(s,f){l=s,l[6]==="label"||l[8]==="label"?t?t.p(l,f):(t=Qe(l),t.c(),t.m(e,null)):t&&(t.d(1),t=null),f&16384&&i!==(i=l[14]+": 100%;")&&w(e,"style",i),f&131074&&A(e,"selected",l[17](l[1])),f&65538&&A(e,"in-range",l[16](l[1]))},d(s){s&&V(e),t&&t.d(),n=!1,pe(a)}}}function Qe(l){let e,i=l[12](l[1],l[19],100)+"",n,a=l[10]&&We(l),t=l[11]&&Ze(l);return{c(){e=I("span"),a&&a.c(),n=K(i),t&&t.c(),w(e,"class","pipVal")},m(s,f){y(s,e,f),a&&a.m(e,null),C(e,n),t&&t.m(e,null)},p(s,f){s[10]?a?a.p(s,f):(a=We(s),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f&528386&&i!==(i=s[12](s[1],s[19],100)+"")&&j(n,i),s[11]?t?t.p(s,f):(t=Ze(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),a&&a.d(),t&&t.d()}}}function We(l){let e,i;return{c(){e=I("span"),i=K(l[10]),w(e,"class","pipVal-prefix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&1024&&j(i,n[10])},d(n){n&&V(e)}}}function Ze(l){let e,i;return{c(){e=I("span"),i=K(l[11]),w(e,"class","pipVal-suffix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a&2048&&j(i,n[11])},d(n){n&&V(e)}}}function Wl(l){let e,i,n,a=(l[6]&&l[7]!==!1||l[7])&&Le(l),t=(l[6]&&l[9]!==!1||l[9])&&Ke(l),s=(l[6]&&l[8]!==!1||l[8])&&Ge(l);return{c(){e=I("div"),a&&a.c(),i=G(),t&&t.c(),n=G(),s&&s.c(),w(e,"class","rangePips"),A(e,"disabled",l[5]),A(e,"hoverable",l[4]),A(e,"vertical",l[2]),A(e,"reversed",l[3]),A(e,"focus",l[13])},m(f,u){y(f,e,u),a&&a.m(e,null),C(e,i),t&&t.m(e,null),C(e,n),s&&s.m(e,null)},p(f,[u]){f[6]&&f[7]!==!1||f[7]?a?a.p(f,u):(a=Le(f),a.c(),a.m(e,i)):a&&(a.d(1),a=null),f[6]&&f[9]!==!1||f[9]?t?t.p(f,u):(t=Ke(f),t.c(),t.m(e,n)):t&&(t.d(1),t=null),f[6]&&f[8]!==!1||f[8]?s?s.p(f,u):(s=Ge(f),s.c(),s.m(e,null)):s&&(s.d(1),s=null),u&32&&A(e,"disabled",f[5]),u&16&&A(e,"hoverable",f[4]),u&4&&A(e,"vertical",f[2]),u&8&&A(e,"reversed",f[3]),u&8192&&A(e,"focus",f[13])},i:Ae,o:Ae,d(f){f&&V(e),a&&a.d(),t&&t.d(),s&&s.d()}}}function Zl(l,e,i){let n,a,t,s,f,{range:u=!1}=e,{min:h=0}=e,{max:_=100}=e,{step:o=1}=e,{values:d=[(_+h)/2]}=e,{vertical:g=!1}=e,{reversed:m=!1}=e,{hoverable:S=!0}=e,{disabled:P=!1}=e,{pipstep:v=void 0}=e,{all:R=!0}=e,{first:z=void 0}=e,{last:O=void 0}=e,{rest:D=void 0}=e,{prefix:N=""}=e,{suffix:J=""}=e,{formatter:X=(c,le)=>c}=e,{focus:$=void 0}=e,{orientationStart:ee=void 0}=e,{percentOf:U=void 0}=e,{moveHandle:Y=void 0}=e;function ae(c){Y(void 0,c)}return l.$$set=c=>{"range"in c&&i(21,u=c.range),"min"in c&&i(0,h=c.min),"max"in c&&i(1,_=c.max),"step"in c&&i(22,o=c.step),"values"in c&&i(23,d=c.values),"vertical"in c&&i(2,g=c.vertical),"reversed"in c&&i(3,m=c.reversed),"hoverable"in c&&i(4,S=c.hoverable),"disabled"in c&&i(5,P=c.disabled),"pipstep"in c&&i(24,v=c.pi
1pstep),"all"in c&&i(6,R=c.all),"first"in c&&i(7,z=c.first),"last"in c&&i(8,O=c.last),"rest"in c&&i(9,D=c.rest),"prefix"in c&&i(10,N=c.prefix),"suffix"in c&&i(11,J=c.suffix),"formatter"in c&&i(12,X=c.formatter),"focus"in c&&i(13,$=c.focus),"orientationStart"in c&&i(14,ee=c.orientationStart),"percentOf"in c&&i(15,U=c.percentOf),"moveHandle"in c&&i(25,Y=c.moveHandle)},l.$$.update=()=>{l.$$.dirty&20971527&&i(26,n=v||((_-h)/o>=(g?50:100)?(_-h)/(g?10:20):1)),l.$$.dirty&71303171&&i(19,a=parseInt((_-h)/(o*n),10)),l.$$.dirty&71303169&&i(18,t=function(c){return h+c*o*n}),l.$$.dirty&8388608&&i(17,s=function(c){return d.some(le=>le===c)}),l.$$.dirty&10485760&&i(16,f=function(c){if(u==="min")return d[0]>c;if(u==="max")return d[0]<c;if(u)return d[0]<c&&d[1]>c})},[h,_,g,m,S,P,R,z,O,D,N,J,X,$,ee,U,f,s,t,a,ae,u,o,d,v,Y,n]}class xl extends ye{constructor(e){super(),Ve(this,e,Zl,Wl,Ee,{range:21,min:0,max:1,step:22,values:23,vertical:2,reversed:3,hoverable:4,disabled:5,pipstep:24,all:6,first:7,last:8,rest:9,prefix:10,suffix:11,formatter:12,focus:13,orientationStart:14,percentOf:15,moveHandle:25})}}function xe(l,e,i){const n=l.slice();return n[63]=e[i],n[65]=i,n}function $e(l){let e,i=l[21](l[63],l[65],l[23](l[63]))+"",n,a=l[18]&&el(l),t=l[19]&&ll(l);return{c(){e=I("span"),a&&a.c(),n=K(i),t&&t.c(),w(e,"class","rangeFloat")},m(s,f){y(s,e,f),a&&a.m(e,null),C(e,n),t&&t.m(e,null)},p(s,f){s[18]?a?a.p(s,f):(a=el(s),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f[0]&10485761&&i!==(i=s[21](s[63],s[65],s[23](s[63]))+"")&&j(n,i),s[19]?t?t.p(s,f):(t=ll(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),a&&a.d(),t&&t.d()}}}function el(l){let e,i;return{c(){e=I("span"),i=K(l[18]),w(e,"class","rangeFloat-prefix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a[0]&262144&&j(i,n[18])},d(n){n&&V(e)}}}function ll(l){let e,i;return{c(){e=I("span"),i=K(l[19]),w(e,"class","rangeFloat-suffix")},m(n,a){y(n,e,a),C(e,i)},p(n,a){a[0]&524288&&j(i,n[19])},d(n){n&&V(e)}}}function nl(l){let e,i,n,a,t,s,f,u,h,_,o,d,g=l[7]&&$e(l);return{c(){e=I("span"),i=I("span"),n=G(),g&&g.c(),w(i,"class","rangeNub"),w(e,"role","slider"),w(e,"class","rangeHandle"),w(e,"data-handle",l[65]),w(e,"style",a=l[28]+": "+l[29][l[65]]+"%; z-index: "+(l[26]===l[65]?3:2)+";"),w(e,"aria-valuemin",t=l[2]===!0&&l[65]===1?l[0][0]:l[3]),w(e,"aria-valuemax",s=l[2]===!0&&l[65]===0?l[0][1]:l[4]),w(e,"aria-valuenow",f=l[63]),w(e,"aria-valuetext",u=""+(l[18]+l[21](l[63],l[65],l[23](l[63]))+l[19])),w(e,"aria-orientation",h=l[6]?"vertical":"horizontal"),w(e,"aria-disabled",l[10]),w(e,"disabled",l[10]),w(e,"tabindex",_=l[10]?-1:0),A(e,"active",l[24]&&l[26]===l[65]),A(e,"press",l[25]&&l[26]===l[65])},m(m,S){y(m,e,S),C(e,i),C(e,n),g&&g.m(e,null),o||(d=[B(e,"blur",l[33]),B(e,"focus",l[34]),B(e,"keydown",l[35])],o=!0)},p(m,S){m[7]?g?g.p(m,S):(g=$e(m),g.c(),g.m(e,null)):g&&(g.d(1),g=null),S[0]&872415232&&a!==(a=m[28]+": "+m[29][m[65]]+"%; z-index: "+(m[26]===m[65]?3:2)+";")&&w(e,"style",a),S[0]&13&&t!==(t=m[2]===!0&&m[65]===1?m[0][0]:m[3])&&w(e,"aria-valuemin",t),S[0]&21&&s!==(s=m[2]===!0&&m[65]===0?m[0][1]:m[4])&&w(e,"aria-valuemax",s),S[0]&1&&f!==(f=m[63])&&w(e,"aria-valuenow",f),S[0]&11272193&&u!==(u=""+(m[18]+m[21](m[63],m[65],m[23](m[63]))+m[19]))&&w(e,"aria-valuetext",u),S[0]&64&&h!==(h=m[6]?"vertical":"horizontal")&&w(e,"aria-orientation",h),S[0]&1024&&w(e,"aria-disabled",m[10]),S[0]&1024&&w(e,"disabled",m[10]),S[0]&1024&&_!==(_=m[10]?-1:0)&&w(e,"tabindex",_),S[0]&83886080&&A(e,"active",m[24]&&m[26]===m[65]),S[0]&100663296&&A(e,"press",m[25]&&m[26]===m[65])},d(m){m&&V(e),g&&g.d(),o=!1,pe(d)}}}function il(l){let e,i;return{c(){e=I("span"),w(e,"class","rangeBar"),w(e,"style",i=l[28]+": "+l[31](l[29])+"%; "+l[27]+": "+l[32](l[29])+"%;")},m(n,a){y(n,e,a)},p(n,a){a[0]&939524096&&i!==(i=n[28]+": "+n[31](n[29])+"%; "+n[27]+": "+n[32](n[29])+"%;")&&w(e,"style",i)},d(n){n&&V(e)}}}function al(l){let e,i;return e=new xl({props:{values:l[0],min:l[3],max:l[4],step:l[5],range:l[2],vertical:l[6],reversed:l[8],orientationStart:l[28],hoverable:l[9],disabled:l[10],all:l[13],first:l[14],last:l[15],rest:l[16],pipstep:l[12],prefix:l[18],suffix:l[19],formatter:l[20],focus:l[24],percentOf:l[23],moveHandle:l[30]}}),{c(){Q(e.$$.fragment)},m(n,a){W(e,n,a),i=!0},p(n,a){const t={};a[0]&1&&(t.values=n[0]),a[0]&8&&(t.min=n[3]),a[0]&16&&(t.max=n[4]),a[0]&32&&(t.step=n[5]),a[0]&4&&(t.range=n[2]),a[0]&64&&(t.vertical=n[6]),a[0]&256&&(t.reversed=n[8]),a[0]&268435456&&(t.orientationStart=n[28]),a[0]&512&&(t.hoverable=n[9]),a[0]&1024&&(t.disabled=n[10]),a[0]&8192&&(t.all=n[13]),a[0]&16384&&(t.first=n[14]),a[0]&32768&&(t.last=n[15]),a[0]&65536&&(t.rest=n[16]),a[0]&4096&&(t.pipstep=n[12]),a[0]&262144&&(t.prefix=n[18]),a[0]&524288&&(t.suffix=n[19]),a[0]&1048576&&(t.formatter=n[20]),a[0]&16777216&&(t.focus=n[24]),a[0]&8388608&&(t.percentOf=n[23]),e.$set(t)},i(n){i||(M(e.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function $l(l){let e,i,n,a,t,s,f=Se(l[0]),u=[];for(let o=0;o<f.length;o+=1)u[o]=nl(xe(l,f,o));let h=l[2]&&il(l),_=l[11]&&al(l);return{c(){e=I("div");for(let o=0;o<u.length;o+=1)u[o].c();i=G(),h&&h.c(),n=G(),_&&_.c(),w(e,"id",l[17]),w(e,"class","rangeSlider"),A(e,"range",l[2]),A(e,"disabled",l[10]),A(e,"hoverable",l[9]),A(e,"vertical",l[6]),A(e,"reversed",l[8]),A(e,"focus",l[24]),A(e,"min",l[2]==="min"),A(e,"max",l[2]==="max"),A(e,"pips",l[11]),A(e,"pip-labels",l[13]==="label"||l[14]==="label"||l[15]==="label"||l[16]==="label")},m(o,d){y(o,e,d);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(e,null);C(e,i),h&&h.m(e,null),C(e,n),_&&_.m(e,null),l[49](e),a=!0,t||(s=[B(window,"mousedown",l[38]),B(window,"touchstart",l[38]),B(window,"mousemove",l[39]),B(window,"touchmove",l[39]),B(window,"mouseup",l[40]),B(window,"touchend",l[41]),B(window,"keydown",l[42]),B(e,"mousedown",l[36]),B(e,"mouseup",l[37]),B(e,"touchstart",he(l[36])),B(e,"touchend",he(l[37]))],t=!0)},p(o,d){if(d[0]&934020317|d[1]&28){f=Se(o[0]);let g;for(g=0;g<f.length;g+=1){const m=xe(o,f,g);u[g]?u[g].p(m,d):(u[g]=nl(m),u[g].c(),u[g].m(e,i))}for(;g<u.length;g+=1)u[g].d(1);u.length=f.length}o[2]?h?h.p(o,d):(h=il(o),h.c(),h.m(e,n)):h&&(h.d(1),h=null),o[11]?_?(_.p(o,d),d[0]&2048&&M(_,1)):(_=al(o),_.c(),M(_,1),_.m(e,null)):_&&(ke(),F(_,1,1,()=>{_=null}),ve()),(!a||d[0]&131072)&&w(e,"id",o[17]),(!a||d[0]&4)&&A(e,"range",o[2]),(!a||d[0]&1024)&&A(e,"disabled",o[10]),(!a||d[0]&512)&&A(e,"hoverable",o[9]),(!a||d[0]&64)&&A(e,"vertical",o[6]),(!a||d[0]&256)&&A(e,"reversed",o[8]),(!a||d[0]&16777216)&&A(e,"focus",o[24]),(!a||d[0]&4)&&A(e,"min",o[2]==="min"),(!a||d[0]&4)&&A(e,"max",o[2]==="max"),(!a||d[0]&2048)&&A(e,"pips",o[11]),(!a||d[0]&122880)&&A(e,"pip-labels",o[13]==="label"||o[14]==="label"||o[15]==="label"||o[16]==="label")},i(o){a||(M(_),a=!0)},o(o){F(_),a=!1},d(o){o&&V(e),rl(u,o),h&&h.d(),_&&_.d(),l[49](null),t=!1,pe(s)}}}function tl(l){if(!l)return-1;for(var e=0;l=l.previousElementSibling;)e++;return e}function Me(l){return l.type.includes("touch")?l.touches[0]:l}function en(l,e,i){let n,a,t,s,f,u,h=Ae,_=()=>(h(),h=Rl(L,r=>i(29,u=r)),L);l.$$.on_destroy.push(()=>h());let{slider:o}=e,{range:d=!1}=e,{pushy:g=!1}=e,{min:m=0}=e,{max:S=100}=e,{step:P=1}=e,{values:v=[(S+m)/2]}=e,{vertical:R=!1}=e,{float:z=!1}=e,{reversed:O=!1}=e,{hoverable:D=!0}=e,{disabled:N=!1}=e,{pips:J=!1}=e,{pipstep:X=void 0}=e,{all:$=void 0}=e,{first:ee=void 0}=e,{last:U=void 0}=e,{rest:Y=void 0}=e,{id:ae=void 0}=e,{prefix:c=""}=e,{suffix:le=""}=e,{formatter:re=(r,k,H)=>r}=e,{handleFormatter:de=re}=e,{precision:te=2}=e,{springValues:ue={stiffness:.15,damping:.4}}=e;const oe=ul();let x=0,p=!1,se=!1,fe=!1,ce=!1,q=v.length-1,_e,b,L;function ne(r){const k=o.querySelectorAll(".handle"),H=Array.prototype.includes.call(k,r),E=Array.prototype.some.call(k,ie=>ie.contains(r));return H||E}function be(r){return d==="min"||d==="max"?r.slice(0,1):d?r.slice(0,2):r}function Ie(){return o.getBoundingClientRect()}function _l(r){const k=Ie();let H=0,E=0,ie=0;R?(H=r.clientY-k.top,E=H/k.height*100,E=O?E:100-E):(H=r.clientX-k.left,E=H/k.width*100,E=O?100-E:E),ie=(S-m)/100*E+m;let Fe;return d===!0&&v[0]===v[1]?ie>v[1]?1:0:(Fe=v.indexOf([...v].sort((Pl,Hl)=>Math.abs(ie-Pl)-Math.abs(ie-Hl))[0]),Fe)}function He(r){const k=Ie();let H=0,E=0,ie=0;R?(H=r.clientY-k.top,E=H/k.height*100,E=O?E:100-E):(H=r.clientX-k.left,E=H/k.width*100,E=O?100-E:E),ie=(S-m)/100*E+m,me(q,ie)}function me(r,k){return k=t(k),typeof r>"u"&&(r=q),d&&(r===0&&k>v[1]?g?i(0,v[1]=k,v):k=v[1]:r===1&&k<v[0]&&(g?i(0,v[0]=k,v):k=v[0])),v[r]!==k&&i(0,v[r]=k,v),b!==k&&(Vl(),b=k),k}function dl(r){return d==="min"?0:r[0]}function ml(r){return d==="max"?0:d==="min"?100-r[0]:100-r[1]}function gl(r){ce&&(i(24,p=!1),se=!1,i(25,fe=!1))}function cl(r){N||(i(26,q=tl(r.target)),i(24,p=!0))}function bl(r){if(!N){const k=tl(r.target);let H=r.ctrlKey||r.metaKey||r.shiftKey?P*10:P,E=!1;switch(r.key){case"PageDown":H*=10;case"ArrowRight":case"ArrowUp":me(k,v[k]+H),E=!0;break;case"PageUp":H*=10;case"ArrowLeft":case"ArrowDown":me(k,v[k]-H),E=!0;break;case"Home":me(k,m),E=!0;break;case"End":me(k,S),E=!0;break}E&&(r.preventDefault(),r.stopPropagation())}}function hl(r){if(!N){const k=r.target,H=Me(r);i(24,p=!0),se=!0,i(25,fe=!0),i(26,q=_l(H)),_e=b=t(v[q]),yl(),r.type==="touchstart"&&!k.matches(".pipVal")&&He(H)}}function pl(r){r.type==="touchend"&&Ue(),i(25,fe=!1)}function wl(r){ce=!1,p&&r.target!==o&&!o.contains(r.target)&&i(24,p=!1)}function kl(r){N||se&&He(Me(r))}function vl(r){if(!N){const k=r.target;se&&((k===o||o.contains(k))&&(i(24,p=!0),!ne(k)&&!k.matches(".pipVal")&&He(Me(r))),Ue())}se=!1,i(25,fe=!1)}function Al(r){se=!1,i(25,fe=!1)}function Sl(r){N||(r.target===o||o.contains(r.target))&&(ce=!0)}function yl(){!N&&oe("start",{activeHandle:q,value:_e,values:v.map(r=>t(r))})}function Ue(){!N&&oe("stop",{activeHandle:q,startValue:_e,value:v[q],values:v.map(r=>t(r))})}function Vl(){!N&&oe("change",{activeHandle:q,startValue:_e,previousValue:typeof b>"u"?_e:b,value:v[q],values:v.map(r=>t(r))})}function El(r){Pe[r?"unshift":"push"](()=>{o=r,i(1,o)})}return l.$$set=r=>{"slider"in r&&i(1,o=r.slider),"range"in r&&i(2,d=r.range),"pushy"in r&&i(43,g=r.pushy),"min"in r&&i(3,m=r.min),"max"in r&&i(4,S=r.max),"step"in r&&i(5,P=r.step),"values"in r&&i(0,v=r.values),"vertical"in r&&i(6,R=r.vertical),"float"in r&&i(7,z=r.float),"reversed"in r&&i(8,O=r.reversed),"hoverable"in r&&i(9,D=r.hoverable),"disabled"in r&&i(10,N=r.disabled),"pips"in r&&i(11,J=r.pips),"pipstep"in r&&i(12,X=r.pipstep),"all"in r&&i(13,$=r.all),"first"in r&&i(14,ee=r.first),"last"in r&&i(15,U=r.last),"rest"in r&&i(16,Y=r.rest),"id"in r&&i(17,ae=r.id),"prefix"in r&&i(18,c=r.prefix),"suffix"in r&&i(19,le=r.suffix),"formatter"in r&&i(20,re=r.formatter),"handleFormatter"in r&&i(21,de=r.handleFormatter),"precision"in r&&i(44,te=r.precision),"springValues"in r&&i(45,ue=r.springValues)},l.$$.update=()=>{l.$$.dirty[0]&24&&i(48,a=function(r){return r<=m?m:r>=S?S:r}),l.$$.dirty[0]&56|l.$$.dirty[1]&139264&&i(47,t=function(r){if(r<=m)return m;if(r>=S)return S;let k=(r-m)%P,H=r-k;return Math.abs(k)*2>=P&&(H+=k>0?P:-P),H=a(H),parseFloat(H.toFixed(te))}),l.$$.dirty[0]&24|l.$$.dirty[1]&8192&&i(23,n=function(r){let k=(r-m)/(S-m)*100;return isNaN(k)||k<=0?0:k>=100?100:parseFloat(k.toFixed(te))}),l.$$.dirty[0]&12582937|l.$$.dirty[1]&114688&&(Array.isArray(v)||(i(0,v=[(S+m)/2]),console.error("'values' prop should be an Array (https://github.com/simeyd
1otme/svelte-range-slider-pips#slider-props)")),i(0,v=be(v.map(r=>t(r)))),x!==v.length?_(i(22,L=Ml(v.map(r=>n(r)),ue))):L.set(v.map(r=>n(r))),i(46,x=v.length)),l.$$.dirty[0]&320&&i(28,s=R?O?"top":"bottom":O?"right":"left"),l.$$.dirty[0]&320&&i(27,f=R?O?"bottom":"top":O?"left":"right")},[v,o,d,m,S,P,R,z,O,D,N,J,X,$,ee,U,Y,ae,c,le,re,de,L,n,p,fe,q,f,s,u,me,dl,ml,gl,cl,bl,hl,pl,wl,kl,vl,Al,Sl,g,te,ue,x,t,a,El]}class ln extends ye{constructor(e){super(),Ve(this,e,en,$l,Ee,{slider:1,range:2,pushy:43,min:3,max:4,step:5,values:0,vertical:6,float:7,reversed:8,hoverable:9,disabled:10,pips:11,pipstep:12,all:13,first:14,last:15,rest:16,id:17,prefix:18,suffix:19,formatter:20,handleFormatter:21,precision:44,springValues:45},null,[-1,-1,-1])}}function nn(l){let e,i,n,a,t,s,f,u;e=new ql({props:{editable:l[7],absolute:!0}}),e.$on("clear",l[15]),e.$on("edit",l[26]);function h(d){l[27](d)}let _={controls:!0,autoplay:l[6],crop_values:l[11],preload:"metadata",src:l[1]?.data,"data-testid":`${l[2]}-audio`};l[10]!==void 0&&(_.node=l[10]),a=new Ql({props:_}),Pe.push(()=>Re(a,"node",h)),a.$on("play",l[28]),a.$on("pause",l[29]),a.$on("ended",l[18]);let o=l[9]==="edit"&&l[10]?.duration&&sl(l);return{c(){Q(e.$$.fragment),i=G(),n=I("div"),Q(a.$$.fragment),s=G(),o&&o.c(),f=we(),w(n,"class","container")},m(d,g){W(e,d,g),y(d,i,g),y(d,n,g),W(a,n,null),y(d,s,g),o&&o.m(d,g),y(d,f,g),u=!0},p(d,g){const m={};g[0]&128&&(m.editable=d[7]),e.$set(m);const S={};g[0]&64&&(S.autoplay=d[6]),g[0]&2048&&(S.crop_values=d[11]),g[0]&2&&(S.src=d[1]?.data),g[0]&4&&(S["data-testid"]=`${d[2]}-audio`),!t&&g[0]&1024&&(t=!0,S.node=d[10],De(()=>t=!1)),a.$set(S),d[9]==="edit"&&d[10]?.duration?o?(o.p(d,g),g[0]&1536&&M(o,1)):(o=sl(d),o.c(),M(o,1),o.m(f.parentNode,f)):o&&(ke(),F(o,1,1,()=>{o=null}),ve())},i(d){u||(M(e.$$.fragment,d),M(a.$$.fragment,d),M(o),u=!0)},o(d){F(e.$$.fragment,d),F(a.$$.fragment,d),F(o),u=!1},d(d){d&&(V(i),V(n),V(s),V(f)),Z(e,d),Z(a),o&&o.d(d)}}}function an(l){let e,i,n,a;const t=[sn,tn],s=[];function f(u,h){return u[4]==="microphone"?0:u[4]==="upload"?1:-1}return~(e=f(l))&&(i=s[e]=t[e](l)),{c(){i&&i.c(),n=we()},m(u,h){~e&&s[e].m(u,h),y(u,n,h),a=!0},p(u,h){let _=e;e=f(u),e===_?~e&&s[e].p(u,h):(i&&(ke(),F(s[_],1,1,()=>{s[_]=null}),ve()),~e?(i=s[e],i?i.p(u,h):(i=s[e]=t[e](u),i.c()),M(i,1),i.m(n.parentNode,n)):i=null)},i(u){a||(M(i),a=!0)},o(u){F(i),a=!1},d(u){u&&V(n),~e&&s[e].d(u)}}}function sl(l){let e,i,n;function a(s){l[30](s)}let t={range:!0,min:0,max:100,step:1};return l[11]!==void 0&&(t.values=l[11]),e=new ln({props:t}),Pe.push(()=>Re(e,"values",a)),e.$on("change",l[16]),{c(){Q(e.$$.fragment)},m(s,f){W(e,s,f),n=!0},p(s,f){const u={};!i&&f[0]&2048&&(i=!0,u.values=s[11],De(()=>i=!1)),e.$set(u)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){F(e.$$.fragment,s),n=!1},d(s){Z(e,s)}}}function tn(l){let e,i,n;function a(s){l[25](s)}let t={filetype:"audio/aac,audio/midi,audio/mpeg,audio/ogg,audio/wav,audio/x-wav,audio/opus,audio/webm,audio/flac,audio/vnd.rn-realaudio,audio/x-ms-wma,audio/x-aiff,audio/amr,audio/*",$$slots:{default:[fn]},$$scope:{ctx:l}};return l[0]!==void 0&&(t.dragging=l[0]),e=new Yl({props:t}),Pe.push(()=>Re(e,"dragging",a)),e.$on("load",l[17]),{c(){Q(e.$$.fragment)},m(s,f){W(e,s,f),n=!0},p(s,f){const u={};f[1]&1&&(u.$$scope={dirty:f,ctx:s}),!i&&f[0]&1&&(i=!0,u.dragging=s[0],De(()=>i=!1)),e.$set(u)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){F(e.$$.fragment,s),n=!1},d(s){Z(e,s)}}}function sn(l){let e,i,n,a;const t=[un,rn],s=[];function f(u,h){return u[8]?0:1}return i=f(l),n=s[i]=t[i](l),{c(){e=I("div"),n.c(),w(e,"class","mic-wrap svelte-600m6y")},m(u,h){y(u,e,h),s[i].m(e,null),a=!0},p(u,h){let _=i;i=f(u),i===_?s[i].p(u,h):(ke(),F(s[_],1,1,()=>{s[_]=null}),ve(),n=s[i],n?n.p(u,h):(n=s[i]=t[i](u),n.c()),M(n,1),n.m(e,null))},i(u){a||(M(n),a=!0)},o(u){F(n),a=!1},d(u){u&&V(e),s[i].d()}}}function fn(l){let e;const i=l[24].default,n=Fl(i,l,l[31],null);return{c(){n&&n.c()},m(a,t){n&&n.m(a,t),e=!0},p(a,t){n&&n.p&&(!e||t[1]&1)&&Ol(n,i,a,a[31],e?Bl(i,a[31],t,null):Nl(a[31]),null)},i(a){e||(M(n,a),e=!0)},o(a){F(n,a),e=!1},d(a){n&&n.d(a)}}}function rn(l){let e,i;return e=new ol({props:{size:"sm",$$slots:{default:[on]},$$scope:{ctx:l}}}),e.$on("click",l[13]),{c(){Q(e.$$.fragment)},m(n,a){W(e,n,a),i=!0},p(n,a){const t={};a[0]&4096|a[1]&1&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){i||(M(e.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function un(l){let e,i;return e=new ol({props:{size:"sm",$$slots:{default:[_n]},$$scope:{ctx:l}}}),e.$on("click",l[14]),{c(){Q(e.$$.fragment)},m(n,a){W(e,n,a),i=!0},p(n,a){const t={};a[0]&4096|a[1]&1&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){i||(M(e.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function on(l){let e,i,n=l[12]("audio.record_from_microphone")+"",a;return{c(){e=I("span"),e.innerHTML='<span class="dot svelte-600m6y"></span>',i=G(),a=K(n),w(e,"class","record-icon svelte-600m6y")},m(t,s){y(t,e,s),y(t,i,s),y(t,a,s)},p(t,s){s[0]&4096&&n!==(n=t[12]("audio.record_from_microphone")+"")&&j(a,n)},d(t){t&&(V(e),V(i),V(a))}}}function _n(l){let e,i,n=l[12]("audio.stop_recording")+"",a;return{c(){e=I("span"),e.innerHTML='<span class="pinger svelte-600m6y"></span> <span class="dot svelte-600m6y"></span>',i=G(),a=K(n),w(e,"class","record-icon svelte-600m6y")},m(t,s){y(t,e,s),y(t,i,s),y(t,a,s)},p(t,s){s[0]&4096&&n!==(n=t[12]("audio.stop_recording")+"")&&j(a,n)},d(t){t&&(V(e),V(i),V(a))}}}function dn(l){let e,i,n,a,t,s;e=new Jl({props:{show_label:l[3],Icon:Gl,float:l[4]==="upload"&&l[1]===null,label:l[2]||l[12]("audio.audio")}});const f=[an,nn],u=[];function h(_,o){return _[1]===null||_[5]?0:1}return n=h(l),a=u[n]=f[n](l),{c(){Q(e.$$.fragment),i=G(),a.c(),t=we()},m(_,o){W(e,_,o),y(_,i,o),u[n].m(_,o),y(_,t,o),s=!0},p(_,o){const d={};o[0]&8&&(d.show_label=_[3]),o[0]&18&&(d.float=_[4]==="upload"&&_[1]===null),o[0]&4100&&(d.label=_[2]||_[12]("audio.audio")),e.$set(d);let g=n;n=h(_),n===g?u[n].p(_,o):(ke(),F(u[g],1,1,()=>{u[g]=null}),ve(),a=u[n],a?a.p(_,o):(a=u[n]=f[n](_),a.c()),M(a,1),a.m(t.parentNode,t))},i(_){s||(M(e.$$.fragment,_),M(a),s=!0)},o(_){F(e.$$.fragment,_),F(a),s=!1},d(_){_&&(V(i),V(t)),Z(e,_),u[n].d(_)}}}const mn=500,fl=44;function gn(l){return new Promise((e,i)=>{let n=new FileReader;n.onerror=i,n.onload=()=>e(n.result),n.readAsDataURL(l)})}function cn(l,e,i){let n;Dl(l,Il,b=>i(12,n=b));let{$$slots:a={},$$scope:t}=e,{value:s=null}=e,{label:f}=e,{show_label:u=!0}=e,{name:h=""}=e,{source:_}=e,{pending:o=!1}=e,{streaming:d=!1}=e,{autoplay:g=!1}=e,{show_edit_button:m=!0}=e,S=!1,P,v="",R,z=[],O=!1,D,N=!1,J=[0,100],X=[],$;function ee(){$=[Oe(()=>import("./module-97b03cd4.js"),["./module-97b03cd4.js","./index-a959df42.js","./index-5ac12191.css"],import.meta.url),Oe(()=>import("./module-1791af61.js"),[],import.meta.url)]}d&&ee();const U=ul(),Y=async(b,L)=>{let ne=new Blob(b,{type:"audio/wav"});i(1,s={data:await gn(ne),name:"audio.wav"}),U(L,s)};async function ae(){let b;try{b=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(L){if(!navigator.mediaDevices){U("error",n("audio.no_device_support"));return}if(L instanceof DOMException&&L.name=="NotAllowedError"){U("error",n("audio.allow_recording_access"));return}throw L}if(b!=null){if(d){const[{MediaRecorder:L,register:ne},{connect:be}]=await Promise.all($);await ne(await be()),P=new L(b,{mimeType:"audio/wav"}),P.addEventListener("dataavailable",c)}else P=new MediaRecorder(b),P.addEventListener("dataavailable",L=>{X.push(L.data)}),P.addEventListener("stop",async()=>{i(8,S=!1),await Y(X,"change"),await Y(X,"stop_recording"),X=[]});N=!0}}async function c(b){let L=await b.data.arrayBuffer(),ne=new Uint8Array(L);if(R||(i(21,R=new Uint8Array(L.slice(0,fl))),ne=new Uint8Array(L.slice(fl))),o)z.push(ne);else{let be=[R].concat(z,[ne]);Y(be,"stream"),i(22,z=[])}}async function le(){if(!navigator.mediaDevices){U("error",n("audio.no_device_support"));return}i(8,S=!0),U("start_recording"),N||await ae(),i(21,R=void 0),d?P.start(mn):P.start()}Ul(()=>{P&&P.state!=="inactive"&&P.stop()});function re(){P.stop(),d&&(i(8,S=!1),U("stop_recording"),o&&i(23,O=!0))}function de(){U("change",null),U("clear"),i(9,v=""),i(1,s=null)}
1function te({detail:{values:b}}){s&&(U("change",{data:s.data,name:h,crop_min:b[0],crop_max:b[1]}),U("edit"))}function ue({detail:b}){i(1,s=b),U("change",{data:b.data,name:b.name}),U("upload",b)}function oe(){U("stop"),U("end")}let{dragging:x=!1}=e;function p(b){x=b,i(0,x)}const se=()=>i(9,v="edit");function fe(b){D=b,i(10,D)}function ce(b){Ne.call(this,l,b)}function q(b){Ne.call(this,l,b)}function _e(b){J=b,i(11,J)}return l.$$set=b=>{"value"in b&&i(1,s=b.value),"label"in b&&i(2,f=b.label),"show_label"in b&&i(3,u=b.show_label),"name"in b&&i(19,h=b.name),"source"in b&&i(4,_=b.source),"pending"in b&&i(20,o=b.pending),"streaming"in b&&i(5,d=b.streaming),"autoplay"in b&&i(6,g=b.autoplay),"show_edit_button"in b&&i(7,m=b.show_edit_button),"dragging"in b&&i(0,x=b.dragging),"$$scope"in b&&i(31,t=b.$$scope)},l.$$.update=()=>{if(l.$$.dirty[0]&15728640&&O&&o===!1&&(i(23,O=!1),R&&z)){let b=[R].concat(z);i(22,z=[]),Y(b,"stream")}l.$$.dirty[0]&1&&U("drag",x)},[x,s,f,u,_,d,g,m,S,v,D,J,n,le,re,de,te,ue,oe,h,o,R,z,O,a,p,se,fe,ce,q,_e,t]}class bn extends ye{constructor(e){super(),Ve(this,e,cn,dn,Ee,{value:1,label:2,show_label:3,name:19,source:4,pending:20,streaming:5,autoplay:6,show_edit_button:7,dragging:0},null,[-1,-1])}}function hn(l){let e,i;return e=new Xl({props:{type:"audio"}}),{c(){Q(e.$$.fragment)},m(n,a){W(e,n,a),i=!0},p:Ae,i(n){i||(M(e.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function pn(l){let e,i,n,a;const t=[l[1]];let s={};for(let f=0;f<t.length;f+=1)s=Ll(s,t[f]);return e=new Tl({props:s}),n=new bn({props:{label:l[7],show_label:l[8],value:l[17],name:l[5],source:l[6],pending:l[9],streaming:l[10],autoplay:l[14],show_edit_button:l[15],$$slots:{default:[hn]},$$scope:{ctx:l}}}),n.$on("change",l[22]),n.$on("stream",l[23]),n.$on("drag",l[24]),n.$on("edit",l[25]),n.$on("play",l[26]),n.$on("pause",l[27]),n.$on("stop",l[28]),n.$on("end",l[29]),n.$on("start_recording",l[30]),n.$on("stop_recording",l[31]),n.$on("upload",l[32]),n.$on("clear",l[33]),n.$on("error",l[34]),{c(){Q(e.$$.fragment),i=G(),Q(n.$$.fragment)},m(f,u){W(e,f,u),y(f,i,u),W(n,f,u),a=!0},p(f,u){const h=u[0]&2?Cl(t,[zl(f[1])]):{};e.$set(h);const _={};u[0]&128&&(_.label=f[7]),u[0]&256&&(_.show_label=f[8]),u[0]&131072&&(_.value=f[17]),u[0]&32&&(_.name=f[5]),u[0]&64&&(_.source=f[6]),u[0]&512&&(_.pending=f[9]),u[0]&1024&&(_.streaming=f[10]),u[0]&16384&&(_.autoplay=f[14]),u[0]&32768&&(_.show_edit_button=f[15]),u[1]&16&&(_.$$scope={dirty:u,ctx:f}),n.$set(_)},i(f){a||(M(e.$$.fragment,f),M(n.$$.fragment,f),a=!0)},o(f){F(e.$$.fragment,f),F(n.$$.fragment,f),a=!1},d(f){f&&V(i),Z(e,f),Z(n,f)}}}function wn(l){let e,i;return e=new Kl({props:{variant:l[0]===null&&l[6]==="upload"?"dashed":"solid",border_mode:l[18]?"focus":"base",padding:!1,elem_id:l[2],elem_classes:l[3],visible:l[4],container:l[11],scale:l[12],min_width:l[13],$$slots:{default:[pn]},$$scope:{ctx:l}}}),{c(){Q(e.$$.fragment)},m(n,a){W(e,n,a),i=!0},p(n,a){const t={};a[0]&65&&(t.variant=n[0]===null&&n[6]==="upload"?"dashed":"solid"),a[0]&262144&&(t.border_mode=n[18]?"focus":"base"),a[0]&4&&(t.elem_id=n[2]),a[0]&8&&(t.elem_classes=n[3]),a[0]&16&&(t.visible=n[4]),a[0]&2048&&(t.container=n[11]),a[0]&4096&&(t.scale=n[12]),a[0]&8192&&(t.min_width=n[13]),a[0]&509923|a[1]&16&&(t.$$scope={dirty:a,ctx:n}),e.$set(t)},i(n){i||(M(e.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function kn(l,e,i){let{elem_id:n=""}=e,{elem_classes:a=[]}=e,{visible:t=!0}=e,{value:s=null}=e,{name:f}=e,{source:u}=e,{label:h}=e,{root:_}=e,{show_label:o}=e,{pending:d}=e,{streaming:g}=e,{root_url:m}=e,{container:S=!0}=e,{scale:P=null}=e,{min_width:v=void 0}=e,{loading_status:R}=e,{autoplay:z=!1}=e,{show_edit_button:O=!0}=e,{gradio:D}=e,N=null,J,X;const $=({detail:p})=>i(0,s=p),ee=({detail:p})=>{i(0,s=p),D.dispatch("stream",s)},U=({detail:p})=>i(18,X=p),Y=()=>D.dispatch("edit"),ae=()=>D.dispatch("play"),c=()=>D.dispatch("pause"),le=()=>D.dispatch("stop"),re=()=>D.dispatch("end"),de=()=>D.dispatch("start_recording"),te=()=>D.dispatch("stop_recording"),ue=()=>D.dispatch("upload"),oe=()=>D.dispatch("clear"),x=({detail:p})=>{i(1,R=R||{}),i(1,R.status="error",R),D.dispatch("error",p)};return l.$$set=p=>{"elem_id"in p&&i(2,n=p.elem_id),"elem_classes"in p&&i(3,a=p.elem_classes),"visible"in p&&i(4,t=p.visible),"value"in p&&i(0,s=p.value),"name"in p&&i(5,f=p.name),"source"in p&&i(6,u=p.source),"label"in p&&i(7,h=p.label),"root"in p&&i(19,_=p.root),"show_label"in p&&i(8,o=p.show_label),"pending"in p&&i(9,d=p.pending),"streaming"in p&&i(10,g=p.streaming),"root_url"in p&&i(20,m=p.root_url),"container"in p&&i(11,S=p.container),"scale"in p&&i(12,P=p.scale),"min_width"in p&&i(13,v=p.min_width),"loading_status"in p&&i(1,R=p.loading_status),"autoplay"in p&&i(14,z=p.autoplay),"show_edit_button"in p&&i(15,O=p.show_edit_button),"gradio"in p&&i(16,D=p.gradio)},l.$$.update=()=>{l.$$.dirty[0]&1572865&&i(17,J=jl(s,_,m)),l.$$.dirty[0]&2162689&&JSON.stringify(s)!==JSON.stringify(N)&&(i(21,N=s),D.dispatch("change"))},[s,R,n,a,t,f,u,h,o,d,g,S,P,v,z,O,D,J,X,_,m,N,$,ee,U,Y,ae,c,le,re,de,te,ue,oe,x]}class vn extends ye{constructor(e){super(),Ve(this,e,kn,wn,Ee,{elem_id:2,elem_classes:3,visible:4,value:0,name:5,source:6,label:7,root:19,show_label:8,pending:9,streaming:10,root_url:20,container:11,scale:12,min_width:13,loading_status:1,autoplay:14,show_edit_button:15,gradio:16},null,[-1,-1])}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),T()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),T()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),T()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),T()}get name(){return this.$$.ctx[5]}set name(e){this.$$set({name:e}),T()}get source(){return this.$$.ctx[6]}set source(e){this.$$set({source:e}),T()}get label(){return this.$$.ctx[7]}set label(e){this.$$set({label:e}),T()}get root(){return this.$$.ctx[19]}set root(e){this.$$set({root:e}),T()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),T()}get pending(){return this.$$.ctx[9]}set pending(e){this.$$set({pending:e}),T()}get streaming(){return this.$$.ctx[10]}set streaming(e){this.$$set({streaming:e}),T()}get root_url(){return this.$$.ctx[20]}set root_url(e){this.$$set({root_url:e}),T()}get container(){return this.$$.ctx[11]}set container(e){this.$$set({container:e}),T()}get scale(){return this.$$.ctx[12]}set scale(e){this.$$set({scale:e}),T()}get min_width(){return this.$$.ctx[13]}set min_width(e){this.$$set({min_width:e}),T()}get loading_status(){return this.$$.ctx[1]}set loading_status(e){this.$$set({loading_status:e}),T()}get autoplay(){return this.$$.ctx[14]}set autoplay(e){this.$$set({autoplay:e}),T()}get show_edit_button(){return this.$$.ctx[15]}set show_edit_button(e){this.$$set({show_edit_button:e}),T()}get gradio(){return this.$$.ctx[16]}set gradio(e){this.$$set({gradio:e}),T()}}const In=vn;export{In as default}; 2//# sourceMappingURL=index-dbae8ad5.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.