speechflow 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -563,4 +563,4 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
563
563
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(c){return c instanceof this?c:new this(c)}static concat(c,...e){const s=new this(c);return e.forEach(t=>s.set(t)),s}static accessor(c){const s=(this[dc]=this[dc]={accessors:{}}).accessors,t=this.prototype;function r(n){const a=z0(n);s[a]||(ff(t,n),s[a]=!0)}return D.isArray(c)?c.forEach(r):r(c),this}};R2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(R2.prototype,({value:l},c)=>{let e=c[0].toUpperCase()+c.slice(1);return{get:()=>l,set(s){this[e]=s}}});D.freezeMethods(R2);function l8(l,c){const e=this||G0,s=c||e,t=R2.from(s.headers);let r=s.data;return D.forEach(l,function(a){r=a.call(e,r,t.normalize(),c?c.status:void 0)}),t.normalize(),r}function bs(l){return!!(l&&l.__CANCEL__)}let K0=class extends g1{constructor(c,e,s){super(c??"canceled",g1.ERR_CANCELED,e,s),this.name="CanceledError",this.__CANCEL__=!0}};function Cs(l,c,e){const s=e.config.validateStatus;!e.status||!s||s(e.status)?l(e):c(new g1("Request failed with status code "+e.status,[g1.ERR_BAD_REQUEST,g1.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function uf(l){const c=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return c&&c[1]||""}function zf(l,c){l=l||10;const e=new Array(l),s=new Array(l);let t=0,r=0,n;return c=c!==void 0?c:1e3,function(o){const m=Date.now(),u=s[r];n||(n=m),e[t]=o,s[t]=m;let L=r,S=0;for(;L!==t;)S+=e[L++],L=L%l;if(t=(t+1)%l,t===r&&(r=(r+1)%l),m-n<c)return;const b=u&&m-u;return b?Math.round(S*1e3/b):void 0}}function mf(l,c){let e=0,s=1e3/c,t,r;const n=(m,u=Date.now())=>{e=u,t=null,r&&(clearTimeout(r),r=null),l(...m)};return[(...m)=>{const u=Date.now(),L=u-e;L>=s?n(m,u):(t=m,r||(r=setTimeout(()=>{r=null,n(t)},s-L)))},()=>t&&n(t)]}const W6=(l,c,e=3)=>{let s=0;const t=zf(50,250);return mf(r=>{const n=r.loaded,a=r.lengthComputable?r.total:void 0,o=n-s,m=t(o),u=n<=a;s=n;const L={loaded:n,total:a,progress:a?n/a:void 0,bytes:o,rate:m||void 0,estimated:m&&a&&u?(a-n)/m:void 0,event:r,lengthComputable:a!=null,[c?"download":"upload"]:!0};l(L)},e)},Mc=(l,c)=>{const e=l!=null;return[s=>c[0]({lengthComputable:e,total:l,loaded:s}),c[1]]},hc=l=>(...c)=>D.asap(()=>l(...c)),df=S2.hasStandardBrowserEnv?((l,c)=>e=>(e=new URL(e,S2.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port)))(new URL(S2.origin),S2.navigator&&/(msie|trident)/i.test(S2.navigator.userAgent)):()=>!0,Mf=S2.hasStandardBrowserEnv?{write(l,c,e,s,t,r,n){if(typeof document>"u")return;const a=[`${l}=${encodeURIComponent(c)}`];D.isNumber(e)&&a.push(`expires=${new Date(e).toUTCString()}`),D.isString(s)&&a.push(`path=${s}`),D.isString(t)&&a.push(`domain=${t}`),r===!0&&a.push("secure"),D.isString(n)&&a.push(`SameSite=${n}`),document.cookie=a.join("; ")},read(l){if(typeof document>"u")return null;const c=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return c?decodeURIComponent(c[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hf(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function Lf(l,c){return c?l.replace(/\/?\/$/,"")+"/"+c.replace(/^\/+/,""):l}function ws(l,c,e){let s=!hf(c);return l&&(s||e==!1)?Lf(l,c):c}const Lc=l=>l instanceof R2?{...l}:l;function p3(l,c){c=c||{};const e={};function s(m,u,L,S){return D.isPlainObject(m)&&D.isPlainObject(u)?D.merge.call({caseless:S},m,u):D.isPlainObject(u)?D.merge({},u):D.isArray(u)?u.slice():u}function t(m,u,L,S){if(D.isUndefined(u)){if(!D.isUndefined(m))return s(void 0,m,L,S)}else return s(m,u,L,S)}function r(m,u){if(!D.isUndefined(u))return s(void 0,u)}function n(m,u){if(D.isUndefined(u)){if(!D.isUndefined(m))return s(void 0,m)}else return s(void 0,u)}function a(m,u,L){if(L in c)return s(m,u);if(L in l)return s(void 0,m)}const o={url:r,method:r,data:r,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:a,headers:(m,u,L)=>t(Lc(m),Lc(u),L,!0)};return D.forEach(Object.keys({...l,...c}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const L=D.hasOwnProp(o,u)?o[u]:t,S=L(l[u],c[u],u);D.isUndefined(S)&&L!==a||(e[u]=S)}),e}const Ss=l=>{const c=p3({},l);let{data:e,withXSRFToken:s,xsrfHeaderName:t,xsrfCookieName:r,headers:n,auth:a}=c;if(c.headers=n=R2.from(n),c.url=gs(ws(c.baseURL,c.url,c.allowAbsoluteUrls),l.params,l.paramsSerializer),a&&n.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),D.isFormData(e)){if(S2.hasStandardBrowserEnv||S2.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if(D.isFunction(e.getHeaders)){const o=e.getHeaders(),m=["content-type","content-length"];Object.entries(o).forEach(([u,L])=>{m.includes(u.toLowerCase())&&n.set(u,L)})}}if(S2.hasStandardBrowserEnv&&(s&&D.isFunction(s)&&(s=s(c)),s||s!==!1&&df(c.url))){const o=t&&r&&Mf.read(r);o&&n.set(t,o)}return c},pf=typeof XMLHttpRequest<"u",gf=pf&&function(l){return new Promise(function(e,s){const t=Ss(l);let r=t.data;const n=R2.from(t.headers).normalize();let{responseType:a,onUploadProgress:o,onDownloadProgress:m}=t,u,L,S,b,x;function O(){b&&b(),x&&x(),t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}let j=new XMLHttpRequest;j.open(t.method.toUpperCase(),t.url,!0),j.timeout=t.timeout;function V(){if(!j)return;const c1=R2.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),r1={data:!a||a==="text"||a==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:c1,config:l,request:j};Cs(function(u1){e(u1),O()},function(u1){s(u1),O()},r1),j=null}"onloadend"in j?j.onloadend=V:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(V)},j.onabort=function(){j&&(s(new g1("Request aborted",g1.ECONNABORTED,l,j)),j=null)},j.onerror=function(q){const r1=q&&q.message?q.message:"Network Error",L1=new g1(r1,g1.ERR_NETWORK,l,j);L1.event=q||null,s(L1),j=null},j.ontimeout=function(){let q=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r1=t.transitional||L7;t.timeoutErrorMessage&&(q=t.timeoutErrorMessage),s(new g1(q,r1.clarifyTimeoutError?g1.ETIMEDOUT:g1.ECONNABORTED,l,j)),j=null},r===void 0&&n.setContentType(null),"setRequestHeader"in j&&D.forEach(n.toJSON(),function(q,r1){j.setRequestHeader(r1,q)}),D.isUndefined(t.withCredentials)||(j.withCredentials=!!t.withCredentials),a&&a!=="json"&&(j.responseType=t.responseType),m&&([S,x]=W6(m,!0),j.addEventListener("progress",S)),o&&j.upload&&([L,b]=W6(o),j.upload.addEventListener("progress",L),j.upload.addEventListener("loadend",b)),(t.cancelToken||t.signal)&&(u=c1=>{j&&(s(!c1||c1.type?new K0(null,l,j):c1),j.abort(),j=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u)));const e1=uf(t.url);if(e1&&S2.protocols.indexOf(e1)===-1){s(new g1("Unsupported protocol "+e1+":",g1.ERR_BAD_REQUEST,l));return}j.send(r||null)})},yf=(l,c)=>{const{length:e}=l=l?l.filter(Boolean):[];if(c||e){let s=new AbortController,t;const r=function(m){if(!t){t=!0,a();const u=m instanceof Error?m:this.reason;s.abort(u instanceof g1?u:new K0(u instanceof Error?u.message:u))}};let n=c&&setTimeout(()=>{n=null,r(new g1(`timeout of ${c}ms exceeded`,g1.ETIMEDOUT))},c);const a=()=>{l&&(n&&clearTimeout(n),n=null,l.forEach(m=>{m.unsubscribe?m.unsubscribe(r):m.removeEventListener("abort",r)}),l=null)};l.forEach(m=>m.addEventListener("abort",r));const{signal:o}=s;return o.unsubscribe=()=>D.asap(a),o}},bf=function*(l,c){let e=l.byteLength;if(e<c){yield l;return}let s=0,t;for(;s<e;)t=s+c,yield l.slice(s,t),s=t},Cf=async function*(l,c){for await(const e of wf(l))yield*bf(e,c)},wf=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const c=l.getReader();try{for(;;){const{done:e,value:s}=await c.read();if(e)break;yield s}}finally{await c.cancel()}},pc=(l,c,e,s)=>{const t=Cf(l,c);let r=0,n,a=o=>{n||(n=!0,s&&s(o))};return new ReadableStream({async pull(o){try{const{done:m,value:u}=await t.next();if(m){a(),o.close();return}let L=u.byteLength;if(e){let S=r+=L;e(S)}o.enqueue(new Uint8Array(u))}catch(m){throw a(m),m}},cancel(o){return a(o),t.return()}},{highWaterMark:2})},gc=64*1024,{isFunction:z6}=D,Sf=(({Request:l,Response:c})=>({Request:l,Response:c}))(D.global),{ReadableStream:yc,TextEncoder:bc}=D.global,Cc=(l,...c)=>{try{return!!l(...c)}catch{return!1}},vf=l=>{l=D.merge.call({skipUndefined:!0},Sf,l);const{fetch:c,Request:e,Response:s}=l,t=c?z6(c):typeof fetch=="function",r=z6(e),n=z6(s);if(!t)return!1;const a=t&&z6(yc),o=t&&(typeof bc=="function"?(x=>O=>x.encode(O))(new bc):async x=>new Uint8Array(await new e(x).arrayBuffer())),m=r&&a&&Cc(()=>{let x=!1;const O=new e(S2.origin,{body:new yc,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!O}),u=n&&a&&Cc(()=>D.isReadableStream(new s("").body)),L={stream:u&&(x=>x.body)};t&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!L[x]&&(L[x]=(O,j)=>{let V=O&&O[x];if(V)return V.call(O);throw new g1(`Response type '${x}' is not supported`,g1.ERR_NOT_SUPPORT,j)})});const S=async x=>{if(x==null)return 0;if(D.isBlob(x))return x.size;if(D.isSpecCompliantForm(x))return(await new e(S2.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(D.isArrayBufferView(x)||D.isArrayBuffer(x))return x.byteLength;if(D.isURLSearchParams(x)&&(x=x+""),D.isString(x))return(await o(x)).byteLength},b=async(x,O)=>{const j=D.toFiniteNumber(x.getContentLength());return j??S(O)};return async x=>{let{url:O,method:j,data:V,signal:e1,cancelToken:c1,timeout:q,onDownloadProgress:r1,onUploadProgress:L1,responseType:u1,headers:I,withCredentials:_="same-origin",fetchOptions:P}=Ss(x),N=c||fetch;u1=u1?(u1+"").toLowerCase():"text";let i1=yf([e1,c1&&c1.toAbortSignal()],q),j1=null;const x1=i1&&i1.unsubscribe&&(()=>{i1.unsubscribe()});let k1;try{if(L1&&m&&j!=="get"&&j!=="head"&&(k1=await b(I,V))!==0){let I1=new e(O,{method:"POST",body:V,duplex:"half"}),N1;if(D.isFormData(V)&&(N1=I1.headers.get("content-type"))&&I.setContentType(N1),I1.body){const[f2,F1]=Mc(k1,W6(hc(L1)));V=pc(I1.body,gc,f2,F1)}}D.isString(_)||(_=_?"include":"omit");const m1=r&&"credentials"in e.prototype,_1={...P,signal:i1,method:j.toUpperCase(),headers:I.normalize().toJSON(),body:V,duplex:"half",credentials:m1?_:void 0};j1=r&&new e(O,_1);let z1=await(r?N(j1,P):N(O,_1));const n1=u&&(u1==="stream"||u1==="response");if(u&&(r1||n1&&x1)){const I1={};["status","statusText","headers"].forEach(D1=>{I1[D1]=z1[D1]});const N1=D.toFiniteNumber(z1.headers.get("content-length")),[f2,F1]=r1&&Mc(N1,W6(hc(r1),!0))||[];z1=new s(pc(z1.body,gc,f2,()=>{F1&&F1(),x1&&x1()}),I1)}u1=u1||"text";let O1=await L[D.findKey(L,u1)||"text"](z1,x);return!n1&&x1&&x1(),await new Promise((I1,N1)=>{Cs(I1,N1,{data:O1,headers:R2.from(z1.headers),status:z1.status,statusText:z1.statusText,config:x,request:j1})})}catch(m1){throw x1&&x1(),m1&&m1.name==="TypeError"&&/Load failed|fetch/i.test(m1.message)?Object.assign(new g1("Network Error",g1.ERR_NETWORK,x,j1,m1&&m1.response),{cause:m1.cause||m1}):g1.from(m1,m1&&m1.code,x,j1,m1&&m1.response)}}},xf=new Map,vs=l=>{let c=l&&l.env||{};const{fetch:e,Request:s,Response:t}=c,r=[s,t,e];let n=r.length,a=n,o,m,u=xf;for(;a--;)o=r[a],m=u.get(o),m===void 0&&u.set(o,m=a?new Map:vf(c)),u=m;return m};vs();const g7={http:qo,xhr:gf,fetch:{get:vs}};D.forEach(g7,(l,c)=>{if(l){try{Object.defineProperty(l,"name",{value:c})}catch{}Object.defineProperty(l,"adapterName",{value:c})}});const wc=l=>`- ${l}`,kf=l=>D.isFunction(l)||l===null||l===!1;function _f(l,c){l=D.isArray(l)?l:[l];const{length:e}=l;let s,t;const r={};for(let n=0;n<e;n++){s=l[n];let a;if(t=s,!kf(s)&&(t=g7[(a=String(s)).toLowerCase()],t===void 0))throw new g1(`Unknown adapter '${a}'`);if(t&&(D.isFunction(t)||(t=t.get(c))))break;r[a||"#"+n]=t}if(!t){const n=Object.entries(r).map(([o,m])=>`adapter ${o} `+(m===!1?"is not supported by the environment":"is not available in the build"));let a=e?n.length>1?`since :
564
564
  `+n.map(wc).join(`
565
565
  `):" "+wc(n[0]):"as no adapter specified";throw new g1("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return t}const xs={getAdapter:_f,adapters:g7};function e8(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new K0(null,l)}function Sc(l){return e8(l),l.headers=R2.from(l.headers),l.data=l8.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),xs.getAdapter(l.adapter||G0.adapter,l)(l).then(function(s){return e8(l),s.data=l8.call(l,l.transformResponse,s),s.headers=R2.from(s.headers),s},function(s){return bs(s)||(e8(l),s&&s.response&&(s.response.data=l8.call(l,l.transformResponse,s.response),s.response.headers=R2.from(s.response.headers))),Promise.reject(s)})}const ks="1.13.5",z5={};["object","boolean","number","function","string","symbol"].forEach((l,c)=>{z5[l]=function(s){return typeof s===l||"a"+(c<1?"n ":" ")+l}});const vc={};z5.transitional=function(c,e,s){function t(r,n){return"[Axios v"+ks+"] Transitional option '"+r+"'"+n+(s?". "+s:"")}return(r,n,a)=>{if(c===!1)throw new g1(t(n," has been removed"+(e?" in "+e:"")),g1.ERR_DEPRECATED);return e&&!vc[n]&&(vc[n]=!0,console.warn(t(n," has been deprecated since v"+e+" and will be removed in the near future"))),c?c(r,n,a):!0}};z5.spelling=function(c){return(e,s)=>(console.warn(`${s} is likely a misspelling of ${c}`),!0)};function Tf(l,c,e){if(typeof l!="object")throw new g1("options must be an object",g1.ERR_BAD_OPTION_VALUE);const s=Object.keys(l);let t=s.length;for(;t-- >0;){const r=s[t],n=c[r];if(n){const a=l[r],o=a===void 0||n(a,r,l);if(o!==!0)throw new g1("option "+r+" must be "+o,g1.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new g1("Unknown option "+r,g1.ERR_BAD_OPTION)}}const k6={assertOptions:Tf,validators:z5},B2=k6.validators;let h3=class{constructor(c){this.defaults=c||{},this.interceptors={request:new mc,response:new mc}}async request(c,e){try{return await this._request(c,e)}catch(s){if(s instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+=`
566
- `+r):s.stack=r}catch{}}throw s}}_request(c,e){typeof c=="string"?(e=e||{},e.url=c):e=c||{},e=p3(this.defaults,e);const{transitional:s,paramsSerializer:t,headers:r}=e;s!==void 0&&k6.assertOptions(s,{silentJSONParsing:B2.transitional(B2.boolean),forcedJSONParsing:B2.transitional(B2.boolean),clarifyTimeoutError:B2.transitional(B2.boolean),legacyInterceptorReqResOrdering:B2.transitional(B2.boolean)},!1),t!=null&&(D.isFunction(t)?e.paramsSerializer={serialize:t}:k6.assertOptions(t,{encode:B2.function,serialize:B2.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),k6.assertOptions(e,{baseUrl:B2.spelling("baseURL"),withXsrfToken:B2.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let n=r&&D.merge(r.common,r[e.method]);r&&D.forEach(["delete","get","head","post","put","patch","common"],x=>{delete r[x]}),e.headers=R2.concat(n,r);const a=[];let o=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(e)===!1)return;o=o&&O.synchronous;const j=e.transitional||L7;j&&j.legacyInterceptorReqResOrdering?a.unshift(O.fulfilled,O.rejected):a.push(O.fulfilled,O.rejected)});const m=[];this.interceptors.response.forEach(function(O){m.push(O.fulfilled,O.rejected)});let u,L=0,S;if(!o){const x=[Sc.bind(this),void 0];for(x.unshift(...a),x.push(...m),S=x.length,u=Promise.resolve(e);L<S;)u=u.then(x[L++],x[L++]);return u}S=a.length;let b=e;for(;L<S;){const x=a[L++],O=a[L++];try{b=x(b)}catch(j){O.call(this,j);break}}try{u=Sc.call(this,b)}catch(x){return Promise.reject(x)}for(L=0,S=m.length;L<S;)u=u.then(m[L++],m[L++]);return u}getUri(c){c=p3(this.defaults,c);const e=ws(c.baseURL,c.url,c.allowAbsoluteUrls);return gs(e,c.params,c.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(c){h3.prototype[c]=function(e,s){return this.request(p3(s||{},{method:c,url:e,data:(s||{}).data}))}});D.forEach(["post","put","patch"],function(c){function e(s){return function(r,n,a){return this.request(p3(a||{},{method:c,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}h3.prototype[c]=e(),h3.prototype[c+"Form"]=e(!0)});let Ef=class _s{constructor(c){if(typeof c!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(r){e=r});const s=this;this.promise.then(t=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](t);s._listeners=null}),this.promise.then=t=>{let r;const n=new Promise(a=>{s.subscribe(a),r=a}).then(t);return n.cancel=function(){s.unsubscribe(r)},n},c(function(r,n,a){s.reason||(s.reason=new K0(r,n,a),e(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(c){if(this.reason){c(this.reason);return}this._listeners?this._listeners.push(c):this._listeners=[c]}unsubscribe(c){if(!this._listeners)return;const e=this._listeners.indexOf(c);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const c=new AbortController,e=s=>{c.abort(s)};return this.subscribe(e),c.signal.unsubscribe=()=>this.unsubscribe(e),c.signal}static source(){let c;return{token:new _s(function(t){c=t}),cancel:c}}};function Of(l){return function(e){return l.apply(null,e)}}function If(l){return D.isObject(l)&&l.isAxiosError===!0}const P8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(P8).forEach(([l,c])=>{P8[c]=l});function Ts(l){const c=new h3(l),e=ns(h3.prototype.request,c);return D.extend(e,h3.prototype,c,{allOwnKeys:!0}),D.extend(e,c,null,{allOwnKeys:!0}),e.create=function(t){return Ts(p3(l,t))},e}const i2=Ts(G0);i2.Axios=h3;i2.CanceledError=K0;i2.CancelToken=Ef;i2.isCancel=bs;i2.VERSION=ks;i2.toFormData=u5;i2.AxiosError=g1;i2.Cancel=i2.CanceledError;i2.all=function(c){return Promise.all(c)};i2.spread=Of;i2.isAxiosError=If;i2.mergeConfig=p3;i2.AxiosHeaders=R2;i2.formToJSON=l=>ys(D.isHTMLForm(l)?new FormData(l):l);i2.getAdapter=xs.getAdapter;i2.HttpStatusCode=P8;i2.default=i2;const{Axios:Bu,AxiosError:qu,CanceledError:Wu,isCancel:$u,CancelToken:Vu,VERSION:Hu,all:Zu,Cancel:Ju,isAxiosError:Yu,spread:Gu,toFormData:Ku,AxiosHeaders:Xu,HttpStatusCode:Qu,formToJSON:cz,getAdapter:lz,mergeConfig:ez}=i2;const N4=typeof window<"u",_6=N4?window:null,R0=N4?document:null,a2={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},R1={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},V2={NONE:0,AUTO:1,FORCE:2},F2={replace:0,none:1,blend:2},xc=Symbol(),m5=Symbol(),Es=Symbol(),d5=Symbol(),Af=Symbol(),J1=1e-11,j8=1e12,Z3=1e3,U8=240,L3="",Nf="var(",Os=(()=>{const l=new Map;return l.set("x","translateX"),l.set("y","translateY"),l.set("z","translateZ"),l})(),Is=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","matrix","matrix3d","perspective"],As=Is.reduce((l,c)=>({...l,[c]:c+"("}),{}),W2=()=>{},Ff=/\)\s*[-.\d]/,Df=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Rf=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Pf=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,jf=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Uf=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,kc=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Bf=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,qf=/([a-z])([A-Z])/g,Wf=/(\w+)(\([^)]+\)+)/g,$f=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/;const $6={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:U8,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:Z3,delay:0,loopDelay:0,ease:"out(2)",composition:F2.replace,modifier:l=>l,onBegin:W2,onBeforeUpdate:W2,onUpdate:W2,onLoop:W2,onPause:W2,onComplete:W2,onRender:W2},Vf={root:R0},M2={defaults:$6,precision:4,timeScale:1,tickThreshold:200},m6=N4&&_6.AnimeJSDevTools,Ns={version:"4.3.6",engine:null};N4&&(_6.AnimeJS||(_6.AnimeJS=[]),_6.AnimeJS.push(Ns));const Fs=l=>l.replace(qf,"$1-$2").toLowerCase(),Y4=(l,c)=>l.indexOf(c)===0,J3=Date.now,Y3=Array.isArray,s8=l=>l&&l.constructor===Object,Hf=l=>typeof l=="number"&&!isNaN(l),P0=l=>typeof l=="string",j0=l=>typeof l=="function",r2=l=>typeof l>"u",_0=l=>r2(l)||l===null,Ds=l=>N4&&l instanceof SVGElement,Rs=l=>Df.test(l),Ps=l=>Y4(l,"rgb"),js=l=>Y4(l,"hsl"),Zf=l=>Rs(l)||(Ps(l)||js(l))&&(l[l.length-1]===")"||!Ff.test(l)),T6=l=>!M2.defaults.hasOwnProperty(l),Jf=["opacity","rotate","overflow","color"],Yf=(l,c)=>{if(Jf.includes(c))return!1;if(l.getAttribute(c)||c in l){if(c==="scale"){const e=l.parentNode;return e&&e.tagName==="filter"}return!0}},O3=Math.pow,Gf=Math.sqrt,Kf=Math.sin,Xf=Math.cos,Qf=Math.floor,cu=Math.asin,y7=Math.PI,_c=Math.round,x2=(l,c,e)=>l<c?c:l>e?e:l,Tc={},z2=(l,c)=>{if(c<0)return l;if(!c)return _c(l);let e=Tc[c];return e||(e=Tc[c]=10**c),_c(l*e)/e},a3=(l,c,e)=>l+(c-l)*e,b7=l=>l===1/0?j8:l===-1/0?-j8:l,T0=l=>l<=J1?J1:b7(z2(l,11)),p2=l=>Y3(l)?[...l]:l,lu=(l,c)=>{const e={...l};for(let s in c){const t=l[s];e[s]=r2(t)?c[s]:t}return e},d2=(l,c,e,s="_prev",t="_next")=>{let r=l._head,n=t;for(e&&(r=l._tail,n=s);r;){const a=r[n];c(r),r=a}},g0=(l,c,e="_prev",s="_next")=>{const t=c[e],r=c[s];t?t[s]=r:l._head=r,r?r[e]=t:l._tail=t,c[e]=null,c[s]=null},N3=(l,c,e,s="_prev",t="_next")=>{let r=l._tail;for(;r&&e&&e(r,c);)r=r[s];const n=r?r[t]:l._head;r?r[t]=c:l._head=c,n?n[s]=c:l._tail=c,c[s]=r,c[t]=n};const eu=(l,c,e)=>{const s=l.style.transform;let t;if(s){const r=l[d5];let n;for(;n=Wf.exec(s);){const a=n[1],o=n[2].slice(1,-1);r[a]=o,a===c&&(t=o,e&&(e[c]=o))}}return s&&!r2(t)?t:Y4(c,"scale")?"1":Y4(c,"rotate")||Y4(c,"skew")?"0deg":"0px"};const su=l=>{const c=Rf.exec(l)||Pf.exec(l),e=r2(c[4])?1:+c[4];return[+c[1],+c[2],+c[3],e]},tu=l=>{const c=l.length,e=c===4||c===5;return[+("0x"+l[1]+l[e?1:2]),+("0x"+l[e?2:3]+l[e?2:4]),+("0x"+l[e?3:5]+l[e?3:6]),c===5||c===9?+(+("0x"+l[e?4:7]+l[e?4:8])/255).toFixed(3):1]},t8=(l,c,e)=>(e<0&&(e+=1),e>1&&(e-=1),e<1/6?l+(c-l)*6*e:e<1/2?c:e<2/3?l+(c-l)*(2/3-e)*6:l),ru=l=>{const c=jf.exec(l)||Uf.exec(l),e=+c[1]/360,s=+c[2]/100,t=+c[3]/100,r=r2(c[4])?1:+c[4];let n,a,o;if(s===0)n=a=o=t;else{const m=t<.5?t*(1+s):t+s-t*s,u=2*t-m;n=z2(t8(u,m,e+1/3)*255,0),a=z2(t8(u,m,e)*255,0),o=z2(t8(u,m,e-1/3)*255,0)}return[n,a,o,r]},nu=l=>Ps(l)?su(l):Rs(l)?tu(l):js(l)?ru(l):[0,0,0,1];const b2=(l,c)=>r2(l)?c:l,b4=(l,c,e,s,t)=>{let r;if(j0(l))r=()=>{const n=l(c,e,s);return isNaN(+n)?n||0:+n};else if(P0(l)&&Y4(l,Nf))r=()=>{const n=l.match($f),a=n[1],o=n[2];let m=getComputedStyle(c)?.getPropertyValue(a);return(!m||m.trim()===L3)&&o&&(m=o.trim()),m||0};else return l;return t&&(t.func=r),r()},Us=(l,c)=>l[m5]?l[Es]&&Yf(l,c)?a2.ATTRIBUTE:Is.includes(c)||Os.get(c)?a2.TRANSFORM:Y4(c,"--")?a2.CSS_VAR:c in l.style?a2.CSS:c in l?a2.OBJECT:a2.ATTRIBUTE:a2.OBJECT,Ec=(l,c,e)=>{const s=l.style[c];s&&e&&(e[c]=s);const t=s||getComputedStyle(l[Af]||l).getPropertyValue(c);return t==="auto"?"0":t},m0=(l,c,e,s)=>{const t=r2(e)?Us(l,c):e;return t===a2.OBJECT?l[c]||0:t===a2.ATTRIBUTE?l.getAttribute(c):t===a2.TRANSFORM?eu(l,c,s):t===a2.CSS_VAR?Ec(l,c,s).trimStart():Ec(l,c,s)},r8=(l,c,e)=>e==="-"?l-c:e==="+"?l+c:l*c,C7=()=>({t:R1.NUMBER,n:0,u:null,o:null,d:null,s:null}),X2=(l,c)=>{if(c.t=R1.NUMBER,c.n=0,c.u=null,c.o=null,c.d=null,c.s=null,!l)return c;const e=+l;if(isNaN(e)){let s=l;s[1]==="="&&(c.o=s[0],s=s.slice(2));const t=s.includes(" ")?!1:Bf.exec(s);if(t)return c.t=R1.UNIT,c.n=+t[1],c.u=t[2],c;if(c.o)return c.n=+s,c;if(Zf(s))return c.t=R1.COLOR,c.d=nu(s),c;{const r=s.match(kc);return c.t=R1.COMPLEX,c.d=r?r.map(Number):[],c.s=s.split(kc)||[],c}}else return c.n=e,c},Oc=(l,c)=>(c.t=l._valueType,c.n=l._toNumber,c.u=l._unit,c.o=null,c.d=p2(l._toNumbers),c.s=p2(l._strings),c),i3=C7();const E6=(l,c,e,s,t)=>{const r=l.parent,n=l.duration,a=l.completed,o=l.iterationDuration,m=l.iterationCount,u=l._currentIteration,L=l._loopDelay,S=l._reversed,b=l._alternate,x=l._hasChildren,O=l._delay,j=l._currentTime,V=O+o,e1=c-O,c1=x2(j,-O,n),q=x2(e1,-O,n),r1=e1-j,L1=q>0,u1=q>=n,I=n<=J1,_=t===V2.FORCE;let P=0,N=e1,i1=0;if(m>1){const _1=~~(q/(o+(u1?0:L)));l._currentIteration=x2(_1,0,m),u1&&l._currentIteration--,P=l._currentIteration%2,N=q%(o+L)||0}const j1=S^(b&&P),x1=l._ease;let k1=u1?j1?0:n:j1?o-N:N;x1&&(k1=o*x1(k1/o)||0);const m1=(r?r.backwards:e1<j)?!j1:!!j1;if(l._currentTime=e1,l._iterationTime=k1,l.backwards=m1,L1&&!l.began?(l.began=!0,!e&&!(r&&(m1||!r.began))&&l.onBegin(l)):e1<=0&&(l.began=!1),!e&&!x&&L1&&l._currentIteration!==u&&l.onLoop(l),_||t===V2.AUTO&&(c>=O&&c<=V||c<=O&&c1>O||c>=V&&c1!==n)||k1>=V&&c1!==n||k1<=O&&c1>0||c<=c1&&c1===n&&a||u1&&!a&&I){if(L1&&(l.computeDeltaTime(c1),e||l.onBeforeUpdate(l)),!x){const _1=_||(m1?r1*-1:r1)>=M2.tickThreshold,z1=l._offset+(r?r._offset:0)+O+k1;let n1=l._head,O1,I1,N1,f2,F1=0;for(;n1;){const D1=n1._composition,Y1=n1._currentTime,G1=n1._changeDuration,K1=n1._absoluteStartTime+n1._changeDuration,L2=n1._nextRep,n2=n1._prevRep,c2=D1!==F2.none;if((_1||(Y1!==G1||z1<=K1+(L2?L2._delay:0))&&(Y1!==0||z1>=n1._absoluteStartTime))&&(!c2||!n1._isOverridden&&(!n1._isOverlapped||z1<=K1)&&(!L2||L2._isOverridden||z1<=L2._absoluteStartTime)&&(!n2||n2._isOverridden||z1>=n2._absoluteStartTime+n2._changeDuration+n1._delay))){const g=n1._currentTime=x2(k1-n1._startTime,0,G1),C=n1._ease(g/n1._updateDuration),F=n1._modifier,W=n1._valueType,U=n1._tweenType,B=U===a2.OBJECT,Z=W===R1.NUMBER,J=Z&&B||C===0||C===1?-1:M2.precision;let H,E;if(Z)H=E=F(z2(a3(n1._fromNumber,n1._toNumber,C),J));else if(W===R1.UNIT)E=F(z2(a3(n1._fromNumber,n1._toNumber,C),J)),H=`${E}${n1._unit}`;else if(W===R1.COLOR){const l1=n1._fromNumbers,G=n1._toNumbers,s1=z2(x2(F(a3(l1[0],G[0],C)),0,255),0),a1=z2(x2(F(a3(l1[1],G[1],C)),0,255),0),d1=z2(x2(F(a3(l1[2],G[2],C)),0,255),0),E1=x2(F(z2(a3(l1[3],G[3],C),J)),0,1);if(H=`rgba(${s1},${a1},${d1},${E1})`,c2){const M1=n1._numbers;M1[0]=s1,M1[1]=a1,M1[2]=d1,M1[3]=E1}}else if(W===R1.COMPLEX){H=n1._strings[0];for(let l1=0,G=n1._toNumbers.length;l1<G;l1++){const s1=F(z2(a3(n1._fromNumbers[l1],n1._toNumbers[l1],C),J)),a1=n1._strings[l1+1];H+=`${a1?s1+a1:s1}`,c2&&(n1._numbers[l1]=s1)}}if(c2&&(n1._number=E),!s&&D1!==F2.blend){const l1=n1.property;O1=n1.target,B?O1[l1]=H:U===a2.ATTRIBUTE?O1.setAttribute(l1,H):(I1=O1.style,U===a2.TRANSFORM?(O1!==N1&&(N1=O1,f2=O1[d5]),f2[l1]=H,F1=1):U===a2.CSS?I1[l1]=H:U===a2.CSS_VAR&&I1.setProperty(l1,H)),L1&&(i1=1)}else n1._value=H}if(F1&&n1._renderTransforms){let g=L3;for(let C in f2)g+=`${As[C]}${f2[C]}) `;I1.transform=g,F1=0}n1=n1._next}!e&&i1&&l.onRender(l)}!e&&L1&&l.onUpdate(l)}return r&&I?!e&&(r.began&&!m1&&e1>0&&!a||m1&&e1<=J1&&a)&&(l.onComplete(l),l.completed=!m1):L1&&u1?m===1/0?l._startTime+=l.duration:l._currentIteration>=m-1&&(l.paused=!0,!a&&!x&&(l.completed=!0,!e&&!(r&&(m1||!r.began))&&(l.onComplete(l),l._resolve(l)))):l.completed=!1,i1},I3=(l,c,e,s,t)=>{const r=l._currentIteration;if(E6(l,c,e,s,t),l._hasChildren){const n=l,a=n.backwards,o=s?c:n._iterationTime,m=J3();let u=0,L=!0;if(!s&&n._currentIteration!==r){const S=n.iterationDuration;d2(n,b=>{if(!a)!b.completed&&!b.backwards&&b._currentTime<b.iterationDuration&&E6(b,S,e,1,V2.FORCE),b.began=!1,b.completed=!1;else{const x=b.duration,O=b._offset+b._delay,j=O+x;!e&&x<=J1&&(!O||j===S)&&b.onComplete(b)}}),e||n.onLoop(n)}d2(n,S=>{const b=z2((o-S._offset)*S._speed,12),x=S._fps<n._fps?S.requestTick(m):t;u+=E6(S,b,e,s,x),!S.completed&&L&&(L=!1)},a),!e&&u&&n.onRender(n),(L||a)&&n._currentTime>=n.duration&&(n.paused=!0,n.completed||(n.completed=!0,e||(n.onComplete(n),n._resolve(n))))}};const Ic={},au=(l,c,e)=>{if(e===a2.TRANSFORM){const s=Os.get(l);return s||l}else if(e===a2.CSS||e===a2.ATTRIBUTE&&Ds(c)&&l in c.style){const s=Ic[l];if(s)return s;{const t=l&&Fs(l);return Ic[l]=t,t}}else return l},Bs=l=>{if(l._hasChildren)d2(l,Bs,!0);else{const c=l;c.pause(),d2(c,e=>{const s=e.property,t=e.target;if(t[m5]){const r=t.style,n=e._inlineValue,a=_0(n)||n===L3;if(e._tweenType===a2.TRANSFORM){const o=t[d5];if(a?delete o[s]:o[s]=n,e._renderTransforms)if(!Object.keys(o).length)r.removeProperty("transform");else{let m=L3;for(let u in o)m+=As[u]+o[u]+") ";r.transform=m}}else a?r.removeProperty(Fs(s)):r[s]=n;c._tail===e&&c.targets.forEach(o=>{o.getAttribute&&o.getAttribute("style")===L3&&o.removeAttribute("style")})}})}return l};class qs{constructor(c=0){this.deltaTime=0,this._currentTime=c,this._lastTickTime=c,this._startTime=c,this._lastTime=c,this._scheduledTime=0,this._frameDuration=Z3/U8,this._fps=U8,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(c){const e=this._frameDuration,s=+c,t=s<J1?J1:s,r=Z3/t;t>$6.frameRate&&($6.frameRate=t),this._fps=t,this._frameDuration=r,this._scheduledTime+=r-e}get speed(){return this._speed}set speed(c){const e=+c;this._speed=e<J1?J1:e}requestTick(c){const e=this._scheduledTime;if(this._lastTickTime=c,c<e)return V2.NONE;const s=this._frameDuration,t=c-e;return this._scheduledTime+=t<s?s:t,V2.AUTO}computeDeltaTime(c){const e=c-this._lastTime;return this.deltaTime=e,this._lastTime=c,e}}const q3={animation:null,update:W2},iu=l=>{let c=q3.animation;return c||(c={duration:J1,computeDeltaTime:W2,_offset:0,_delay:0,_head:null,_tail:null},q3.animation=c,q3.update=()=>{l.forEach(e=>{for(let s in e){const t=e[s],r=t._head;if(r){const n=r._valueType,a=n===R1.COMPLEX||n===R1.COLOR?p2(r._fromNumbers):null;let o=r._fromNumber,m=t._tail;for(;m&&m!==r;){if(a)for(let u=0,L=m._numbers.length;u<L;u++)a[u]+=m._numbers[u];else o+=m._number;m=m._prevAdd}r._toNumber=o,r._toNumbers=a}}}),E6(c,1,1,0,V2.FORCE)}),c};const Ws=N4?requestAnimationFrame:setImmediate,ou=N4?cancelAnimationFrame:clearImmediate;class fu extends qs{constructor(c){super(c),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=$6,this.paused=!0,this.reqId=0}update(){const c=this._currentTime=J3();if(this.requestTick(c)){this.computeDeltaTime(c);const e=this._speed,s=this._fps;let t=this._head;for(;t;){const r=t._next;t.paused?(g0(this,t),this._hasChildren=!!this._tail,t._running=!1,t.completed&&!t._cancelled&&t.cancel()):I3(t,(c-t._startTime)*t._speed*e,0,0,t._fps<s?t.requestTick(c):V2.AUTO),t=r}q3.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(J3()),this.reqId=Ws($s)),this}pause(){if(this.reqId)return this.paused=!0,uu()}resume(){if(this.paused)return this.paused=!1,d2(this,c=>c.resetTime()),this.wake()}get speed(){return this._speed*(M2.timeScale===1?1:Z3)}set speed(c){this._speed=c*M2.timeScale,d2(this,e=>e.speed=e._speed)}get timeUnit(){return M2.timeScale===1?"ms":"s"}set timeUnit(c){const s=c==="s",t=s?.001:1;if(M2.timeScale!==t){M2.timeScale=t,M2.tickThreshold=200*t;const r=s?.001:Z3;this.defaults.duration*=r,this._speed*=r}}get precision(){return M2.precision}set precision(c){M2.precision=c}}const g2=(()=>{const l=new fu(J3());return N4&&(Ns.engine=l,R0.addEventListener("visibilitychange",()=>{l.pauseOnDocumentHidden&&(R0.hidden?l.pause():l.resume())})),l})(),$s=()=>{g2._head?(g2.reqId=Ws($s),g2.update()):g2.reqId=0},uu=()=>(ou(g2.reqId),g2.reqId=0,g2);const V6={_rep:new WeakMap,_add:new Map},w7=(l,c,e="_rep")=>{const s=V6[e];let t=s.get(l);return t||(t={},s.set(l,t)),t[c]?t[c]:t[c]={_head:null,_tail:null}},zu=(l,c)=>l._isOverridden||l._absoluteStartTime>c._absoluteStartTime,O6=l=>{l._isOverlapped=1,l._isOverridden=1,l._changeDuration=J1,l._currentTime=J1},Vs=(l,c)=>{const e=l._composition;if(e===F2.replace){const s=l._absoluteStartTime;N3(c,l,zu,"_prevRep","_nextRep");const t=l._prevRep;if(t){const r=t.parent,n=t._absoluteStartTime+t._changeDuration;if(l.parent.id!==r.id&&r.iterationCount>1&&n+(r.duration-r.iterationDuration)>s){O6(t);let m=t._prevRep;for(;m&&m.parent.id===r.id;)O6(m),m=m._prevRep}const a=s-l._delay;if(n>a){const m=t._startTime,u=n-(m+t._updateDuration),L=z2(a-u-m,12);t._changeDuration=L,t._currentTime=L,t._isOverlapped=1,L<J1&&O6(t)}let o=!0;if(d2(r,m=>{m._isOverlapped||(o=!1)}),o){const m=r.parent;if(m){let u=!0;d2(m,L=>{L!==r&&d2(L,S=>{S._isOverlapped||(u=!1)})}),u&&m.cancel()}else r.cancel()}}}else if(e===F2.blend){const s=w7(l.target,l.property,"_add"),t=iu(V6._add);let r=s._head;r||(r={...l},r._composition=F2.replace,r._updateDuration=J1,r._startTime=0,r._numbers=p2(l._fromNumbers),r._number=0,r._next=null,r._prev=null,N3(s,r),N3(t,r));const n=l._toNumber;if(l._fromNumber=r._fromNumber-n,l._toNumber=0,l._numbers=p2(l._fromNumbers),l._number=0,r._fromNumber=n,l._toNumbers){const a=p2(l._toNumbers);a&&a.forEach((o,m)=>{l._fromNumbers[m]=r._fromNumbers[m]-o,l._toNumbers[m]=0}),r._fromNumbers=a}N3(s,l,null,"_prevAdd","_nextAdd")}return l},mu=l=>{const c=l._composition;if(c!==F2.none){const e=l.target,s=l.property,n=V6._rep.get(e)[s];if(g0(n,l,"_prevRep","_nextRep"),c===F2.blend){const a=V6._add,o=a.get(e);if(!o)return;const m=o[s],u=q3.animation;g0(m,l,"_prevAdd","_nextAdd");const L=m._head;if(L&&L===m._tail){g0(m,L,"_prevAdd","_nextAdd"),g0(u,L);let S=!0;for(let b in o)if(o[b]._head){S=!1;break}S&&a.delete(e)}}}return l};const Ac=l=>(l.paused=!0,l.began=!1,l.completed=!1,l),B8=l=>(l._cancelled&&(l._hasChildren?d2(l,B8):d2(l,c=>{c._composition!==F2.none&&Vs(c,w7(c.target,c.property))}),l._cancelled=0),l);let Nc=0;class du extends qs{constructor(c={},e=null,s=0){super(0),++Nc;const{id:t,delay:r,duration:n,reversed:a,alternate:o,loop:m,loopDelay:u,autoplay:L,frameRate:S,playbackRate:b,onComplete:x,onLoop:O,onPause:j,onBegin:V,onBeforeUpdate:e1,onUpdate:c1}=c,q=e?0:g2._lastTickTime,r1=e?e.defaults:M2.defaults,L1=j0(r)||r2(r)?r1.delay:+r,u1=j0(n)||r2(n)?1/0:+n,I=b2(m,r1.loop),_=b2(u,r1.loopDelay);let P=I===!0||I===1/0||I<0?1/0:I+1;if(m6){const i1=P===1/0;if(m6.register(this,c,i1)&&i1){const x1=o?2:1,k1=e?m6.maxNestedInfiniteLoops:m6.maxInfiniteLoops;P=Math.max(k1,x1)}}let N=0;e?N=s:(g2.reqId||g2.requestTick(J3()),N=(g2._lastTickTime-g2._startTime)*M2.timeScale),this.id=r2(t)?Nc:t,this.parent=e,this.duration=b7((u1+_)*P-_)||J1,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=V||r1.onBegin,this.onBeforeUpdate=e1||r1.onBeforeUpdate,this.onUpdate=c1||r1.onUpdate,this.onLoop=O||r1.onLoop,this.onPause=j||r1.onPause,this.onComplete=x||r1.onComplete,this.iterationDuration=u1,this.iterationCount=P,this._autoplay=e?!1:b2(L,r1.autoplay),this._offset=N,this._delay=L1,this._loopDelay=_,this._iterationTime=0,this._currentIteration=0,this._resolve=W2,this._running=!1,this._reversed=+b2(a,r1.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=b2(o,r1.alternate),this._prev=null,this._next=null,this._lastTickTime=q,this._startTime=q,this._lastTime=q,this._fps=b2(S,r1.frameRate),this._speed=b2(b,r1.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(c){c?this.cancel():this.reset(!0).play()}get currentTime(){return x2(z2(this._currentTime,M2.precision),-this._delay,this.duration)}set currentTime(c){const e=this.paused;this.pause().seek(+c),e||this.resume()}get iterationCurrentTime(){return x2(z2(this._iterationTime,M2.precision),0,this.iterationDuration)}set iterationCurrentTime(c){this.currentTime=this.iterationDuration*this._currentIteration+c}get progress(){return x2(z2(this._currentTime/this.duration,10),0,1)}set progress(c){this.currentTime=this.duration*c}get iterationProgress(){return x2(z2(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(c){const e=this.iterationDuration;this.currentTime=e*this._currentIteration+e*c}get currentIteration(){return this._currentIteration}set currentIteration(c){this.currentTime=this.iterationDuration*x2(+c,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(c){c?this.reverse():this.play()}get speed(){return super.speed}set speed(c){super.speed=c,this.resetTime()}reset(c=!1){return B8(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,I3(this,0,1,~~c,V2.FORCE),Ac(this),this._hasChildren&&d2(this,Ac),this}init(c=!1){this.fps=this._fps,this.speed=this._speed,!c&&this._hasChildren&&I3(this,this.duration,1,~~c,V2.FORCE),this.reset(c);const e=this._autoplay;return e===!0?this.resume():e&&!r2(e.linked)&&e.link(this),this}resetTime(){const c=1/(this._speed*g2._speed);return this._startTime=J3()-(this._currentTime+this._delay)*c,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=J1&&!this._hasChildren?I3(this,J1,0,0,V2.FORCE):(this._running||(N3(g2,this),g2._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,g2.wake()),this):this}restart(){return this.reset().resume()}seek(c,e=0,s=0){B8(this),this.completed=!1;const t=this.paused;return this.paused=!0,I3(this,c+this._delay,~~e,~~s,V2.AUTO),t?this:this.resume()}alternate(){const c=this._reversed,e=this.iterationCount,s=this.iterationDuration,t=e===1/0?Qf(j8/s):e;return this._reversed=+(this._alternate&&!(t%2)?c:!c),e===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(s*t-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?d2(this,c=>c.cancel(),!0):d2(this,mu),this._cancelled=1,this.pause()}stretch(c){const e=this.duration,s=T0(c);if(e===s)return this;const t=c/e,r=c<=J1;return this.duration=r?J1:s,this.iterationDuration=r?J1:T0(this.iterationDuration*t),this._offset*=t,this._delay*=t,this._loopDelay*=t,this}revert(){I3(this,0,1,0,V2.AUTO);const c=this._autoplay;return c&&c.linked&&c.linked===this&&c.revert(),this.cancel()}complete(c=0){return this.seek(this.duration,c).cancel()}then(c=W2){const e=this.then,s=()=>{this.then=null,c(this),this.then=e,this._resolve=W2};return new Promise(t=>(this._resolve=()=>t(s()),this.completed&&this._resolve(),this))}}function Fc(l){const c=P0(l)?Vf.root.querySelectorAll(l):l;if(c instanceof NodeList||c instanceof HTMLCollection)return c}function Mu(l){if(_0(l))return[];if(!N4)return Y3(l)&&l.flat(1/0)||[l];if(Y3(l)){const e=l.flat(1/0),s=[];for(let t=0,r=e.length;t<r;t++){const n=e[t];if(!_0(n)){const a=Fc(n);if(a)for(let o=0,m=a.length;o<m;o++){const u=a[o];if(!_0(u)){let L=!1;for(let S=0,b=s.length;S<b;S++)if(s[S]===u){L=!0;break}L||s.push(u)}}else{let o=!1;for(let m=0,u=s.length;m<u;m++)if(s[m]===n){o=!0;break}o||s.push(n)}}}return s}const c=Fc(l);return c?Array.from(c):[l]}function hu(l){const c=Mu(l),e=c.length;if(e)for(let s=0;s<e;s++){const t=c[s];if(!t[xc]){t[xc]=!0;const r=Ds(t);(t.nodeType||r)&&(t[m5]=!0,t[Es]=r,t[d5]={})}}return c}const n8={deg:1,rad:180/y7,turn:360},Dc={},Rc=(l,c,e,s=!1)=>{const t=c.u,r=c.n;if(c.t===R1.UNIT&&t===e)return c;const n=r+t+e,a=Dc[n];if(!r2(a)&&!s)c.n=a;else{let o;if(t in n8)o=r*n8[t]/n8[e];else{const u=l.cloneNode(),L=l.parentNode,S=L&&L!==R0?L:R0.body;S.appendChild(u);const b=u.style;b.width=100+t;const x=u.offsetWidth||100;b.width=100+e;const O=u.offsetWidth||100,j=x/O;S.removeChild(u),o=j*r}c.n=o,Dc[n]=o}return c.t,R1.UNIT,c.u=e,c};const Q4=l=>l;const d0=(l=1.68)=>c=>O3(c,+l),q8={in:l=>c=>l(c),out:l=>c=>1-l(1-c),inOut:l=>c=>c<.5?l(c*2)/2:1-l(c*-2+2)/2,outIn:l=>c=>c<.5?(1-l(1-c*2))/2:(l(c*2-1)+1)/2},Lu=y7/2,Pc=y7*2,jc={[L3]:d0,Quad:d0(2),Cubic:d0(3),Quart:d0(4),Quint:d0(5),Sine:l=>1-Xf(l*Lu),Circ:l=>1-Gf(1-l*l),Expo:l=>l?O3(2,10*l-10):0,Bounce:l=>{let c,e=4;for(;l<((c=O3(2,--e))-1)/11;);return 1/O3(4,3-e)-7.5625*O3((c*3-2)/22-l,2)},Back:(l=1.7)=>c=>(+l+1)*c*c*c-+l*c*c,Elastic:(l=1,c=.3)=>{const e=x2(+l,1,10),s=x2(+c,J1,2),t=s/Pc*cu(1/e),r=Pc/s;return n=>n===0||n===1?n:-e*O3(2,-10*(1-n))*Kf((1-n-t)*r)}},a8=(()=>{const l={linear:Q4,none:Q4};for(let c in q8)for(let e in jc){const s=jc[e],t=q8[c];l[c+e]=e===L3||e==="Back"||e==="Elastic"?(r,n)=>t(s(r,n)):t(s)}return l})(),d6={linear:Q4,none:Q4},pu=l=>{if(d6[l])return d6[l];if(l.indexOf("(")<=-1){const e=q8[l]||l.includes("Back")||l.includes("Elastic")?a8[l]():a8[l];return e?d6[l]=e:Q4}else{const c=l.slice(0,-1).split("("),e=a8[c[0]];return e?d6[l]=e(...c[1].split(",")):Q4}},Uc=["steps(","irregular(","linear(","cubicBezier("],Bc=l=>{if(P0(l)){for(let e=0,s=Uc.length;e<s;e++)if(Y4(l,Uc[e]))return console.warn(`String syntax for \`ease: "${l}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${l}\``),Q4}return j0(l)?l:P0(l)?pu(l):Q4};const p1=C7(),T1=C7(),_3={},M6={func:null},i8={func:null},h6=[null],T3=[null,null],L6={to:null};let gu=0,qc=0,q4,a4;const yu=(l,c)=>{const e={};if(Y3(l)){const s=[].concat(...l.map(t=>Object.keys(t))).filter(T6);for(let t=0,r=s.length;t<r;t++){const n=s[t],a=l.map(o=>{const m={};for(let u in o){const L=o[u];T6(u)?u===n&&(m.to=L):m[u]=L}return m});e[n]=a}}else{const s=b2(c.duration,M2.defaults.duration);Object.keys(l).map(r=>({o:parseFloat(r)/100,p:l[r]})).sort((r,n)=>r.o-n.o).forEach(r=>{const n=r.o,a=r.p;for(let o in a)if(T6(o)){let m=e[o];m||(m=e[o]=[]);const u=n*s;let L=m.length,S=m[L-1];const b={to:a[o]};let x=0;for(let O=0;O<L;O++)x+=m[O].duration;L===1&&(b.from=S.to),a.ease&&(b.ease=a.ease),b.duration=u-(L?x:0),m.push(b)}return r});for(let r in e){const n=e[r];let a;for(let o=0,m=n.length;o<m;o++){const u=n[o],L=u.ease;u.ease=a||void 0,a=L}n[0].duration||n.shift()}}return e};class bu extends du{constructor(c,e,s,t,r=!1,n=0,a=0){super(e,s,t),++qc;const o=hu(c),m=o.length,u=e.keyframes,L=u?lu(yu(u,e),e):e,{id:S,delay:b,duration:x,ease:O,playbackEase:j,modifier:V,composition:e1,onRender:c1}=L,q=s?s.defaults:M2.defaults,r1=b2(O,q.ease),L1=b2(j,q.playbackEase),u1=L1?Bc(L1):null,I=!r2(r1.ease),_=I?r1.ease:b2(O,u1?"linear":q.ease),P=I?r1.settlingDuration:b2(x,q.duration),N=b2(b,q.delay),i1=V||q.modifier,j1=r2(e1)&&m>=Z3?F2.none:r2(e1)?q.composition:e1,x1=this._offset+(s?s._offset:0);I&&(r1.parent=this);let k1=NaN,m1=NaN,_1=0,z1=0;for(let n1=0;n1<m;n1++){const O1=o[n1],I1=n||n1,N1=a||m;let f2=NaN,F1=NaN;for(let D1 in L)if(T6(D1)){const Y1=Us(O1,D1),G1=au(D1,O1,Y1);let K1=L[D1];const L2=Y3(K1);if(r&&!L2&&(T3[0]=K1,T3[1]=K1,K1=T3),L2){const W=K1.length,U=!s8(K1[0]);W===2&&U?(L6.to=K1,h6[0]=L6,q4=h6):W>2&&U?(q4=[],K1.forEach((B,Z)=>{Z?Z===1?(T3[1]=B,q4.push(T3)):q4.push(B):T3[0]=B})):q4=K1}else h6[0]=K1,q4=h6;let n2=null,c2=null,g=NaN,C=0,F=0;for(let W=q4.length;F<W;F++){const U=q4[F];s8(U)?a4=U:(L6.to=U,a4=L6),M6.func=null,i8.func=null;const B=b4(a4.to,O1,I1,N1,M6);let Z;s8(B)&&!r2(B.to)?(a4=B,Z=B.to):Z=B;const J=b4(a4.from,O1,I1,N1),H=a4.ease||_,E=b4(H,O1,I1,N1),l1=j0(E)||P0(E)?E:H,G=!r2(l1)&&!r2(l1.ease),s1=G?l1.ease:l1,a1=G?l1.settlingDuration:b4(b2(a4.duration,W>1?b4(P,O1,I1,N1)/W:P),O1,I1,N1),d1=b4(b2(a4.delay,F?0:N),O1,I1,N1),E1=b4(b2(a4.composition,j1),O1,I1,N1),M1=Hf(E1)?E1:F2[E1],e2=a4.modifier||i1,d=!r2(J),i=!r2(Z),f=Y3(Z),h=f||d&&i,w=c2?C+d1:d1,T=z2(x1+w,12);!z1&&(d||f)&&(z1=1);let A=c2;if(M1!==F2.none){n2||(n2=w7(O1,G1));let o1=n2._head;for(;o1&&!o1._isOverridden&&o1._absoluteStartTime<=T;)if(A=o1,o1=o1._nextRep,o1&&o1._absoluteStartTime>=T)for(;o1;)O6(o1),o1=o1._nextRep}if(h){X2(f?b4(Z[0],O1,I1,N1,i8):J,p1),X2(f?b4(Z[1],O1,I1,N1,M6):Z,T1);const o1=m0(O1,G1,Y1,_3);p1.t===R1.NUMBER&&(A?A._valueType===R1.UNIT&&(p1.t=R1.UNIT,p1.u=A._unit):(X2(o1,i3),i3.t===R1.UNIT&&(p1.t=R1.UNIT,p1.u=i3.u)))}else i?X2(Z,T1):c2?Oc(c2,T1):X2(s&&A&&A.parent.parent===s?A._value:m0(O1,G1,Y1,_3),T1),d?X2(J,p1):c2?Oc(c2,p1):X2(s&&A&&A.parent.parent===s?A._value:m0(O1,G1,Y1,_3),p1);if(p1.o&&(p1.n=r8(A?A._toNumber:X2(m0(O1,G1,Y1,_3),i3).n,p1.n,p1.o)),T1.o&&(T1.n=r8(p1.n,T1.n,T1.o)),p1.t!==T1.t){if(p1.t===R1.COMPLEX||T1.t===R1.COMPLEX){const o1=p1.t===R1.COMPLEX?p1:T1,b1=p1.t===R1.COMPLEX?T1:p1;b1.t=R1.COMPLEX,b1.s=p2(o1.s),b1.d=o1.d.map(()=>b1.n)}else if(p1.t===R1.UNIT||T1.t===R1.UNIT){const o1=p1.t===R1.UNIT?p1:T1,b1=p1.t===R1.UNIT?T1:p1;b1.t=R1.UNIT,b1.u=o1.u}else if(p1.t===R1.COLOR||T1.t===R1.COLOR){const o1=p1.t===R1.COLOR?p1:T1,b1=p1.t===R1.COLOR?T1:p1;b1.t=R1.COLOR,b1.s=o1.s,b1.d=[0,0,0,1]}}if(p1.u!==T1.u){let o1=T1.u?p1:T1;o1=Rc(O1,o1,T1.u?T1.u:p1.u,!1)}if(T1.d&&p1.d&&T1.d.length!==p1.d.length){const o1=p1.d.length>T1.d.length?p1:T1,b1=o1===p1?T1:p1;b1.d=o1.d.map((X0,l0)=>r2(b1.d[l0])?0:b1.d[l0]),b1.s=p2(o1.s)}const y1=z2(+a1||J1,12);let U1=_3[G1];_0(U1)||(_3[G1]=null);const B1={parent:this,id:gu++,property:G1,target:O1,_value:null,_toFunc:M6.func,_fromFunc:i8.func,_ease:Bc(s1),_fromNumbers:p2(p1.d),_toNumbers:p2(T1.d),_strings:p2(T1.s),_fromNumber:p1.n,_toNumber:T1.n,_numbers:p2(p1.d),_number:p1.n,_unit:T1.u,_modifier:e2,_currentTime:0,_startTime:w,_delay:+d1,_updateDuration:y1,_changeDuration:y1,_absoluteStartTime:T,_tweenType:Y1,_valueType:T1.t,_composition:M1,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:U1,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};M1!==F2.none&&Vs(B1,n2),isNaN(g)&&(g=B1._startTime),C=z2(w+y1,12),c2=B1,_1++,N3(this,B1)}(isNaN(m1)||g<m1)&&(m1=g),(isNaN(k1)||C>k1)&&(k1=C),Y1===a2.TRANSFORM&&(f2=_1-F,F1=_1)}if(!isNaN(f2)){let D1=0;d2(this,Y1=>{D1>=f2&&D1<F1&&(Y1._renderTransforms=1,Y1._composition===F2.blend&&d2(q3.animation,G1=>{G1.id===Y1.id&&(G1._renderTransforms=1)})),D1++})}}m||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),m1?(d2(this,n1=>{n1._startTime-n1._delay||(n1._delay-=m1),n1._startTime-=m1}),k1-=m1):m1=0,k1||(k1=J1,this.iterationCount=0),this.targets=o,this.id=r2(S)?qc:S,this.duration=k1===J1?J1:b7((k1+this._loopDelay)*this.iterationCount-this._loopDelay)||J1,this.onRender=c1||q.onRender,this._ease=u1,this._delay=m1,this.iterationDuration=k1,!this._autoplay&&z1&&this.onRender(this)}stretch(c){const e=this.duration;if(e===T0(c))return this;const s=c/e;return d2(this,t=>{t._updateDuration=T0(t._updateDuration*s),t._changeDuration=T0(t._changeDuration*s),t._currentTime*=s,t._startTime*=s,t._absoluteStartTime*=s}),super.stretch(c)}refresh(){return d2(this,c=>{const e=c._toFunc,s=c._fromFunc;(e||s)&&(s?(X2(s(),p1),p1.u!==c._unit&&c.target[m5]&&Rc(c.target,p1,c._unit,!0),c._fromNumbers=p2(p1.d),c._fromNumber=p1.n):e&&(X2(m0(c.target,c.property,c._tweenType),i3),c._fromNumbers=p2(i3.d),c._fromNumber=i3.n),e&&(X2(e(),T1),c._toNumbers=p2(T1.d),c._strings=p2(T1.s),c._toNumber=T1.o?r8(c._fromNumber,T1.n,T1.o):T1.n))}),this.duration===J1&&this.restart(),this}revert(){return super.revert(),Bs(this)}then(c){return super.then(c)}}const Cu=(l,c)=>new bu(l,c,null,0,!1).init(),wu={class:"app"},Su={class:"dashboard"},vu={class:"block-content"},xu={key:0,class:"audio-col"},ku={class:"audio-value"},_u={class:"block-name"},Tu={class:"popups"},Eu={class:"popup-cols"},Ou={class:"time"},Iu={class:"level"},Au={class:"message"},Nu=400,Fu=wl({name:"app",data:()=>({info:[],ws:null,lufsTimer:null,popup:[],popupTimer:null}),async mounted(){const l=new URL("/api",document.location.href),c=new URL("/api",document.location.href);c.protocol=l.protocol==="https:"?"wss:":"ws:";const e=await i2.get(`${l.toString()}/dashboard`);for(const r of e.data)r.type==="audio"?this.info.push({type:r.type,id:r.id,name:r.name,value:-60,lastKind:"",lufsBuffer:[]}):r.type==="text"&&this.info.push({type:r.type,id:r.id,name:r.name,value:[],lastKind:""});this.lufsTimer=setInterval(()=>{this.updateLufsDisplayValues()},50),this.popupTimer=setInterval(()=>{this.removeExpiredPopups()},50),this.ws=new qi(c.toString(),[],{reconnectionDelayGrowFactor:1.3,maxReconnectionDelay:4e3,minReconnectionDelay:1e3,connectionTimeout:4e3,minUptime:5e3}),this.ws.addEventListener("error",r=>{this.log("ERROR",`WebSocket error: ${r.message}`)});let s=!0,t=0;this.ws.addEventListener("open",r=>{s?(s=!1,this.log("INFO","WebSocket server connection: opened"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"info",message:"server connection: opened",removing:!1})):(this.log("INFO","WebSocket server connection: re-opened"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"info",message:"server connection: re-opened",removing:!1}))}),this.ws.addEventListener("close",r=>{for(const n of this.info)n.type==="audio"&&n.lufsBuffer!==void 0&&(n.value=-60,n.lufsBuffer.length=0);this.log("INFO","WebSocket server connection: closed"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"warning",message:"server connection: closed",removing:!1})}),this.ws.addEventListener("message",r=>{let n;try{n=JSON.parse(r.data)}catch(a){this.log("ERROR","Failed to parse WebSocket message",{error:a,data:r.data});return}if(n.response==="DASHBOARD"){const[a,o,m,u]=n.args;for(const L of this.info)if(L.type===a&&L.id===o)if(L.type==="audio"&&L.lufsBuffer!==void 0)m==="final"&&typeof u=="number"&&L.lufsBuffer.push({value:u,time:Date.now()});else{if(typeof u=="string"){const S=L.value;L.lastKind==="intermediate"?S[S.length-1]=u:(S.push(u),L.value=S.slice(-20))}L.lastKind=m,this.$nextTick(()=>{for(const S of this.$refs.textCol)S.scrollTop=S.scrollHeight})}}else if(n.response==="HINT"){const a=n.node,[o,m,u]=n.args;this.popup.unshift({id:t++,time:o,node:a,level:m,message:u,removing:!1})}})},beforeUnmount(){this.lufsTimer&&(clearInterval(this.lufsTimer),this.lufsTimer=null),this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=null),this.ws&&(this.ws.close(),this.ws=null)},methods:{log(l,c,e=null){let t=`${C1.now().toFormat("yyyy-MM-dd HH:mm:ss.SSS")} [${l}]: ${c}`;e!==null&&(t+=` (${Object.keys(e).map(r=>r+": "+JSON.stringify(e[r])).join(", ")})`),console.log(t)},updateLufsDisplayValues(){const l=Date.now();for(const c of this.info){if(c.type!=="audio"||c.lufsBuffer===void 0)continue;const e=c.lufsBuffer;for(;e.length>0&&l-e[0].time>Nu;)e.shift();if(e.length>0){const s=e.reduce((t,r)=>t+r.value,0);c.value=s/e.length}else c.value=-60}},removeExpiredPopups(){this.popup.forEach(l=>{if(l.time<Date.now()-8e3&&!l.removing){const c=this.$refs[`popup-${l.id}`][0];l.removing=!0,Cu(c,{opacity:[1,0],duration:2e3,easing:"easeOutQuad",onComplete:()=>{const e=this.popup.findIndex(s=>s.id===l.id);this.popup.splice(e,1)}})}})}}}),Du=wl({...Fu,setup(l){return(c,e)=>(i4(),g4("div",wu,[A2("div",Su,[(i4(!0),g4($2,null,P5(c.info,s=>(i4(),g4("div",{key:s.id,class:"block"},[A2("div",vu,[s.type==="audio"?(i4(),g4("div",xu,[A2("div",{class:"audio-meter",style:Y6({height:100*(1-s.value/-60)+"%"})},[A2("div",ku,[Jl(W4(s.value.toFixed(1))+" ",1),e[0]||(e[0]=A2("div",{class:"audio-unit"},"LUFS-M",-1))])],4)])):p9("",!0),s.type==="text"?(i4(),g4("div",{key:1,ref_for:!0,ref:"textCol",class:E0(["text-col",{intermediate:s.lastKind==="intermediate"}])},[(i4(!0),g4($2,null,P5(s.value,t=>(i4(),g4("div",{key:t,class:"text-value"},W4(t),1))),128))],2)):p9("",!0)]),A2("div",_u,W4(s.name),1)]))),128))]),A2("div",Tu,[A2("div",Eu,[(i4(!0),g4($2,null,P5(c.popup,(s,t)=>(i4(),g4("div",{class:E0(["popup",{warning:s.level==="warning",error:s.level==="error"}]),ref_for:!0,ref:`popup-${s.id}`,key:s.id},[A2("span",Ou,"["+W4(dl(C1).fromMillis(s.time).toFormat("yyyy-MM-dd HH:mm:ss"))+"] ",1),A2("span",Iu,W4(s.level.toUpperCase())+": ",1),sr(A2("span",{class:"node"},W4(s.node)+": ",513),[[pn,s.node!==""]]),A2("span",Au,W4(s.message),1)],2))),128))])])]))}});document.addEventListener("DOMContentLoaded",l=>{(async()=>{Fn(Du).mount("#app")})().catch(c=>{console.error(`app: ERROR: top-level: ${c}`)})});
566
+ `+r):s.stack=r}catch{}}throw s}}_request(c,e){typeof c=="string"?(e=e||{},e.url=c):e=c||{},e=p3(this.defaults,e);const{transitional:s,paramsSerializer:t,headers:r}=e;s!==void 0&&k6.assertOptions(s,{silentJSONParsing:B2.transitional(B2.boolean),forcedJSONParsing:B2.transitional(B2.boolean),clarifyTimeoutError:B2.transitional(B2.boolean),legacyInterceptorReqResOrdering:B2.transitional(B2.boolean)},!1),t!=null&&(D.isFunction(t)?e.paramsSerializer={serialize:t}:k6.assertOptions(t,{encode:B2.function,serialize:B2.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),k6.assertOptions(e,{baseUrl:B2.spelling("baseURL"),withXsrfToken:B2.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let n=r&&D.merge(r.common,r[e.method]);r&&D.forEach(["delete","get","head","post","put","patch","common"],x=>{delete r[x]}),e.headers=R2.concat(n,r);const a=[];let o=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(e)===!1)return;o=o&&O.synchronous;const j=e.transitional||L7;j&&j.legacyInterceptorReqResOrdering?a.unshift(O.fulfilled,O.rejected):a.push(O.fulfilled,O.rejected)});const m=[];this.interceptors.response.forEach(function(O){m.push(O.fulfilled,O.rejected)});let u,L=0,S;if(!o){const x=[Sc.bind(this),void 0];for(x.unshift(...a),x.push(...m),S=x.length,u=Promise.resolve(e);L<S;)u=u.then(x[L++],x[L++]);return u}S=a.length;let b=e;for(;L<S;){const x=a[L++],O=a[L++];try{b=x(b)}catch(j){O.call(this,j);break}}try{u=Sc.call(this,b)}catch(x){return Promise.reject(x)}for(L=0,S=m.length;L<S;)u=u.then(m[L++],m[L++]);return u}getUri(c){c=p3(this.defaults,c);const e=ws(c.baseURL,c.url,c.allowAbsoluteUrls);return gs(e,c.params,c.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(c){h3.prototype[c]=function(e,s){return this.request(p3(s||{},{method:c,url:e,data:(s||{}).data}))}});D.forEach(["post","put","patch"],function(c){function e(s){return function(r,n,a){return this.request(p3(a||{},{method:c,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}h3.prototype[c]=e(),h3.prototype[c+"Form"]=e(!0)});let Ef=class _s{constructor(c){if(typeof c!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(r){e=r});const s=this;this.promise.then(t=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](t);s._listeners=null}),this.promise.then=t=>{let r;const n=new Promise(a=>{s.subscribe(a),r=a}).then(t);return n.cancel=function(){s.unsubscribe(r)},n},c(function(r,n,a){s.reason||(s.reason=new K0(r,n,a),e(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(c){if(this.reason){c(this.reason);return}this._listeners?this._listeners.push(c):this._listeners=[c]}unsubscribe(c){if(!this._listeners)return;const e=this._listeners.indexOf(c);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const c=new AbortController,e=s=>{c.abort(s)};return this.subscribe(e),c.signal.unsubscribe=()=>this.unsubscribe(e),c.signal}static source(){let c;return{token:new _s(function(t){c=t}),cancel:c}}};function Of(l){return function(e){return l.apply(null,e)}}function If(l){return D.isObject(l)&&l.isAxiosError===!0}const P8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(P8).forEach(([l,c])=>{P8[c]=l});function Ts(l){const c=new h3(l),e=ns(h3.prototype.request,c);return D.extend(e,h3.prototype,c,{allOwnKeys:!0}),D.extend(e,c,null,{allOwnKeys:!0}),e.create=function(t){return Ts(p3(l,t))},e}const i2=Ts(G0);i2.Axios=h3;i2.CanceledError=K0;i2.CancelToken=Ef;i2.isCancel=bs;i2.VERSION=ks;i2.toFormData=u5;i2.AxiosError=g1;i2.Cancel=i2.CanceledError;i2.all=function(c){return Promise.all(c)};i2.spread=Of;i2.isAxiosError=If;i2.mergeConfig=p3;i2.AxiosHeaders=R2;i2.formToJSON=l=>ys(D.isHTMLForm(l)?new FormData(l):l);i2.getAdapter=xs.getAdapter;i2.HttpStatusCode=P8;i2.default=i2;const{Axios:Bu,AxiosError:qu,CanceledError:Wu,isCancel:$u,CancelToken:Vu,VERSION:Hu,all:Zu,Cancel:Ju,isAxiosError:Yu,spread:Gu,toFormData:Ku,AxiosHeaders:Xu,HttpStatusCode:Qu,formToJSON:cz,getAdapter:lz,mergeConfig:ez}=i2;const N4=typeof window<"u",_6=N4?window:null,R0=N4?document:null,a2={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},R1={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},V2={NONE:0,AUTO:1,FORCE:2},F2={replace:0,none:1,blend:2},xc=Symbol(),m5=Symbol(),Es=Symbol(),d5=Symbol(),Af=Symbol(),J1=1e-11,j8=1e12,Z3=1e3,U8=240,L3="",Nf="var(",Os=(()=>{const l=new Map;return l.set("x","translateX"),l.set("y","translateY"),l.set("z","translateZ"),l})(),Is=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","matrix","matrix3d","perspective"],As=Is.reduce((l,c)=>({...l,[c]:c+"("}),{}),W2=()=>{},Ff=/\)\s*[-.\d]/,Df=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Rf=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Pf=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,jf=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Uf=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,kc=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Bf=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,qf=/([a-z])([A-Z])/g,Wf=/(\w+)(\([^)]+\)+)/g,$f=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/;const $6={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:U8,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:Z3,delay:0,loopDelay:0,ease:"out(2)",composition:F2.replace,modifier:l=>l,onBegin:W2,onBeforeUpdate:W2,onUpdate:W2,onLoop:W2,onPause:W2,onComplete:W2,onRender:W2},Vf={root:R0},M2={defaults:$6,precision:4,timeScale:1,tickThreshold:200},m6=N4&&_6.AnimeJSDevTools,Ns={version:"4.3.6",engine:null};N4&&(_6.AnimeJS||(_6.AnimeJS=[]),_6.AnimeJS.push(Ns));const Fs=l=>l.replace(qf,"$1-$2").toLowerCase(),Y4=(l,c)=>l.indexOf(c)===0,J3=Date.now,Y3=Array.isArray,s8=l=>l&&l.constructor===Object,Hf=l=>typeof l=="number"&&!isNaN(l),P0=l=>typeof l=="string",j0=l=>typeof l=="function",r2=l=>typeof l>"u",_0=l=>r2(l)||l===null,Ds=l=>N4&&l instanceof SVGElement,Rs=l=>Df.test(l),Ps=l=>Y4(l,"rgb"),js=l=>Y4(l,"hsl"),Zf=l=>Rs(l)||(Ps(l)||js(l))&&(l[l.length-1]===")"||!Ff.test(l)),T6=l=>!M2.defaults.hasOwnProperty(l),Jf=["opacity","rotate","overflow","color"],Yf=(l,c)=>{if(Jf.includes(c))return!1;if(l.getAttribute(c)||c in l){if(c==="scale"){const e=l.parentNode;return e&&e.tagName==="filter"}return!0}},O3=Math.pow,Gf=Math.sqrt,Kf=Math.sin,Xf=Math.cos,Qf=Math.floor,cu=Math.asin,y7=Math.PI,_c=Math.round,x2=(l,c,e)=>l<c?c:l>e?e:l,Tc={},z2=(l,c)=>{if(c<0)return l;if(!c)return _c(l);let e=Tc[c];return e||(e=Tc[c]=10**c),_c(l*e)/e},a3=(l,c,e)=>l+(c-l)*e,b7=l=>l===1/0?j8:l===-1/0?-j8:l,T0=l=>l<=J1?J1:b7(z2(l,11)),p2=l=>Y3(l)?[...l]:l,lu=(l,c)=>{const e={...l};for(let s in c){const t=l[s];e[s]=r2(t)?c[s]:t}return e},d2=(l,c,e,s="_prev",t="_next")=>{let r=l._head,n=t;for(e&&(r=l._tail,n=s);r;){const a=r[n];c(r),r=a}},g0=(l,c,e="_prev",s="_next")=>{const t=c[e],r=c[s];t?t[s]=r:l._head=r,r?r[e]=t:l._tail=t,c[e]=null,c[s]=null},N3=(l,c,e,s="_prev",t="_next")=>{let r=l._tail;for(;r&&e&&e(r,c);)r=r[s];const n=r?r[t]:l._head;r?r[t]=c:l._head=c,n?n[s]=c:l._tail=c,c[s]=r,c[t]=n};const eu=(l,c,e)=>{const s=l.style.transform;let t;if(s){const r=l[d5];let n;for(;n=Wf.exec(s);){const a=n[1],o=n[2].slice(1,-1);r[a]=o,a===c&&(t=o,e&&(e[c]=o))}}return s&&!r2(t)?t:Y4(c,"scale")?"1":Y4(c,"rotate")||Y4(c,"skew")?"0deg":"0px"};const su=l=>{const c=Rf.exec(l)||Pf.exec(l),e=r2(c[4])?1:+c[4];return[+c[1],+c[2],+c[3],e]},tu=l=>{const c=l.length,e=c===4||c===5;return[+("0x"+l[1]+l[e?1:2]),+("0x"+l[e?2:3]+l[e?2:4]),+("0x"+l[e?3:5]+l[e?3:6]),c===5||c===9?+(+("0x"+l[e?4:7]+l[e?4:8])/255).toFixed(3):1]},t8=(l,c,e)=>(e<0&&(e+=1),e>1&&(e-=1),e<1/6?l+(c-l)*6*e:e<1/2?c:e<2/3?l+(c-l)*(2/3-e)*6:l),ru=l=>{const c=jf.exec(l)||Uf.exec(l),e=+c[1]/360,s=+c[2]/100,t=+c[3]/100,r=r2(c[4])?1:+c[4];let n,a,o;if(s===0)n=a=o=t;else{const m=t<.5?t*(1+s):t+s-t*s,u=2*t-m;n=z2(t8(u,m,e+1/3)*255,0),a=z2(t8(u,m,e)*255,0),o=z2(t8(u,m,e-1/3)*255,0)}return[n,a,o,r]},nu=l=>Ps(l)?su(l):Rs(l)?tu(l):js(l)?ru(l):[0,0,0,1];const b2=(l,c)=>r2(l)?c:l,b4=(l,c,e,s,t)=>{let r;if(j0(l))r=()=>{const n=l(c,e,s);return isNaN(+n)?n||0:+n};else if(P0(l)&&Y4(l,Nf))r=()=>{const n=l.match($f),a=n[1],o=n[2];let m=getComputedStyle(c)?.getPropertyValue(a);return(!m||m.trim()===L3)&&o&&(m=o.trim()),m||0};else return l;return t&&(t.func=r),r()},Us=(l,c)=>l[m5]?l[Es]&&Yf(l,c)?a2.ATTRIBUTE:Is.includes(c)||Os.get(c)?a2.TRANSFORM:Y4(c,"--")?a2.CSS_VAR:c in l.style?a2.CSS:c in l?a2.OBJECT:a2.ATTRIBUTE:a2.OBJECT,Ec=(l,c,e)=>{const s=l.style[c];s&&e&&(e[c]=s);const t=s||getComputedStyle(l[Af]||l).getPropertyValue(c);return t==="auto"?"0":t},m0=(l,c,e,s)=>{const t=r2(e)?Us(l,c):e;return t===a2.OBJECT?l[c]||0:t===a2.ATTRIBUTE?l.getAttribute(c):t===a2.TRANSFORM?eu(l,c,s):t===a2.CSS_VAR?Ec(l,c,s).trimStart():Ec(l,c,s)},r8=(l,c,e)=>e==="-"?l-c:e==="+"?l+c:l*c,C7=()=>({t:R1.NUMBER,n:0,u:null,o:null,d:null,s:null}),X2=(l,c)=>{if(c.t=R1.NUMBER,c.n=0,c.u=null,c.o=null,c.d=null,c.s=null,!l)return c;const e=+l;if(isNaN(e)){let s=l;s[1]==="="&&(c.o=s[0],s=s.slice(2));const t=s.includes(" ")?!1:Bf.exec(s);if(t)return c.t=R1.UNIT,c.n=+t[1],c.u=t[2],c;if(c.o)return c.n=+s,c;if(Zf(s))return c.t=R1.COLOR,c.d=nu(s),c;{const r=s.match(kc);return c.t=R1.COMPLEX,c.d=r?r.map(Number):[],c.s=s.split(kc)||[],c}}else return c.n=e,c},Oc=(l,c)=>(c.t=l._valueType,c.n=l._toNumber,c.u=l._unit,c.o=null,c.d=p2(l._toNumbers),c.s=p2(l._strings),c),i3=C7();const E6=(l,c,e,s,t)=>{const r=l.parent,n=l.duration,a=l.completed,o=l.iterationDuration,m=l.iterationCount,u=l._currentIteration,L=l._loopDelay,S=l._reversed,b=l._alternate,x=l._hasChildren,O=l._delay,j=l._currentTime,V=O+o,e1=c-O,c1=x2(j,-O,n),q=x2(e1,-O,n),r1=e1-j,L1=q>0,u1=q>=n,I=n<=J1,_=t===V2.FORCE;let P=0,N=e1,i1=0;if(m>1){const _1=~~(q/(o+(u1?0:L)));l._currentIteration=x2(_1,0,m),u1&&l._currentIteration--,P=l._currentIteration%2,N=q%(o+L)||0}const j1=S^(b&&P),x1=l._ease;let k1=u1?j1?0:n:j1?o-N:N;x1&&(k1=o*x1(k1/o)||0);const m1=(r?r.backwards:e1<j)?!j1:!!j1;if(l._currentTime=e1,l._iterationTime=k1,l.backwards=m1,L1&&!l.began?(l.began=!0,!e&&!(r&&(m1||!r.began))&&l.onBegin(l)):e1<=0&&(l.began=!1),!e&&!x&&L1&&l._currentIteration!==u&&l.onLoop(l),_||t===V2.AUTO&&(c>=O&&c<=V||c<=O&&c1>O||c>=V&&c1!==n)||k1>=V&&c1!==n||k1<=O&&c1>0||c<=c1&&c1===n&&a||u1&&!a&&I){if(L1&&(l.computeDeltaTime(c1),e||l.onBeforeUpdate(l)),!x){const _1=_||(m1?r1*-1:r1)>=M2.tickThreshold,z1=l._offset+(r?r._offset:0)+O+k1;let n1=l._head,O1,I1,N1,f2,F1=0;for(;n1;){const D1=n1._composition,Y1=n1._currentTime,G1=n1._changeDuration,K1=n1._absoluteStartTime+n1._changeDuration,L2=n1._nextRep,n2=n1._prevRep,c2=D1!==F2.none;if((_1||(Y1!==G1||z1<=K1+(L2?L2._delay:0))&&(Y1!==0||z1>=n1._absoluteStartTime))&&(!c2||!n1._isOverridden&&(!n1._isOverlapped||z1<=K1)&&(!L2||L2._isOverridden||z1<=L2._absoluteStartTime)&&(!n2||n2._isOverridden||z1>=n2._absoluteStartTime+n2._changeDuration+n1._delay))){const g=n1._currentTime=x2(k1-n1._startTime,0,G1),C=n1._ease(g/n1._updateDuration),F=n1._modifier,W=n1._valueType,U=n1._tweenType,B=U===a2.OBJECT,Z=W===R1.NUMBER,J=Z&&B||C===0||C===1?-1:M2.precision;let H,E;if(Z)H=E=F(z2(a3(n1._fromNumber,n1._toNumber,C),J));else if(W===R1.UNIT)E=F(z2(a3(n1._fromNumber,n1._toNumber,C),J)),H=`${E}${n1._unit}`;else if(W===R1.COLOR){const l1=n1._fromNumbers,G=n1._toNumbers,s1=z2(x2(F(a3(l1[0],G[0],C)),0,255),0),a1=z2(x2(F(a3(l1[1],G[1],C)),0,255),0),d1=z2(x2(F(a3(l1[2],G[2],C)),0,255),0),E1=x2(F(z2(a3(l1[3],G[3],C),J)),0,1);if(H=`rgba(${s1},${a1},${d1},${E1})`,c2){const M1=n1._numbers;M1[0]=s1,M1[1]=a1,M1[2]=d1,M1[3]=E1}}else if(W===R1.COMPLEX){H=n1._strings[0];for(let l1=0,G=n1._toNumbers.length;l1<G;l1++){const s1=F(z2(a3(n1._fromNumbers[l1],n1._toNumbers[l1],C),J)),a1=n1._strings[l1+1];H+=`${a1?s1+a1:s1}`,c2&&(n1._numbers[l1]=s1)}}if(c2&&(n1._number=E),!s&&D1!==F2.blend){const l1=n1.property;O1=n1.target,B?O1[l1]=H:U===a2.ATTRIBUTE?O1.setAttribute(l1,H):(I1=O1.style,U===a2.TRANSFORM?(O1!==N1&&(N1=O1,f2=O1[d5]),f2[l1]=H,F1=1):U===a2.CSS?I1[l1]=H:U===a2.CSS_VAR&&I1.setProperty(l1,H)),L1&&(i1=1)}else n1._value=H}if(F1&&n1._renderTransforms){let g=L3;for(let C in f2)g+=`${As[C]}${f2[C]}) `;I1.transform=g,F1=0}n1=n1._next}!e&&i1&&l.onRender(l)}!e&&L1&&l.onUpdate(l)}return r&&I?!e&&(r.began&&!m1&&e1>0&&!a||m1&&e1<=J1&&a)&&(l.onComplete(l),l.completed=!m1):L1&&u1?m===1/0?l._startTime+=l.duration:l._currentIteration>=m-1&&(l.paused=!0,!a&&!x&&(l.completed=!0,!e&&!(r&&(m1||!r.began))&&(l.onComplete(l),l._resolve(l)))):l.completed=!1,i1},I3=(l,c,e,s,t)=>{const r=l._currentIteration;if(E6(l,c,e,s,t),l._hasChildren){const n=l,a=n.backwards,o=s?c:n._iterationTime,m=J3();let u=0,L=!0;if(!s&&n._currentIteration!==r){const S=n.iterationDuration;d2(n,b=>{if(!a)!b.completed&&!b.backwards&&b._currentTime<b.iterationDuration&&E6(b,S,e,1,V2.FORCE),b.began=!1,b.completed=!1;else{const x=b.duration,O=b._offset+b._delay,j=O+x;!e&&x<=J1&&(!O||j===S)&&b.onComplete(b)}}),e||n.onLoop(n)}d2(n,S=>{const b=z2((o-S._offset)*S._speed,12),x=S._fps<n._fps?S.requestTick(m):t;u+=E6(S,b,e,s,x),!S.completed&&L&&(L=!1)},a),!e&&u&&n.onRender(n),(L||a)&&n._currentTime>=n.duration&&(n.paused=!0,n.completed||(n.completed=!0,e||(n.onComplete(n),n._resolve(n))))}};const Ic={},au=(l,c,e)=>{if(e===a2.TRANSFORM){const s=Os.get(l);return s||l}else if(e===a2.CSS||e===a2.ATTRIBUTE&&Ds(c)&&l in c.style){const s=Ic[l];if(s)return s;{const t=l&&Fs(l);return Ic[l]=t,t}}else return l},Bs=l=>{if(l._hasChildren)d2(l,Bs,!0);else{const c=l;c.pause(),d2(c,e=>{const s=e.property,t=e.target;if(t[m5]){const r=t.style,n=e._inlineValue,a=_0(n)||n===L3;if(e._tweenType===a2.TRANSFORM){const o=t[d5];if(a?delete o[s]:o[s]=n,e._renderTransforms)if(!Object.keys(o).length)r.removeProperty("transform");else{let m=L3;for(let u in o)m+=As[u]+o[u]+") ";r.transform=m}}else a?r.removeProperty(Fs(s)):r[s]=n;c._tail===e&&c.targets.forEach(o=>{o.getAttribute&&o.getAttribute("style")===L3&&o.removeAttribute("style")})}})}return l};class qs{constructor(c=0){this.deltaTime=0,this._currentTime=c,this._lastTickTime=c,this._startTime=c,this._lastTime=c,this._scheduledTime=0,this._frameDuration=Z3/U8,this._fps=U8,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(c){const e=this._frameDuration,s=+c,t=s<J1?J1:s,r=Z3/t;t>$6.frameRate&&($6.frameRate=t),this._fps=t,this._frameDuration=r,this._scheduledTime+=r-e}get speed(){return this._speed}set speed(c){const e=+c;this._speed=e<J1?J1:e}requestTick(c){const e=this._scheduledTime;if(this._lastTickTime=c,c<e)return V2.NONE;const s=this._frameDuration,t=c-e;return this._scheduledTime+=t<s?s:t,V2.AUTO}computeDeltaTime(c){const e=c-this._lastTime;return this.deltaTime=e,this._lastTime=c,e}}const q3={animation:null,update:W2},iu=l=>{let c=q3.animation;return c||(c={duration:J1,computeDeltaTime:W2,_offset:0,_delay:0,_head:null,_tail:null},q3.animation=c,q3.update=()=>{l.forEach(e=>{for(let s in e){const t=e[s],r=t._head;if(r){const n=r._valueType,a=n===R1.COMPLEX||n===R1.COLOR?p2(r._fromNumbers):null;let o=r._fromNumber,m=t._tail;for(;m&&m!==r;){if(a)for(let u=0,L=m._numbers.length;u<L;u++)a[u]+=m._numbers[u];else o+=m._number;m=m._prevAdd}r._toNumber=o,r._toNumbers=a}}}),E6(c,1,1,0,V2.FORCE)}),c};const Ws=N4?requestAnimationFrame:setImmediate,ou=N4?cancelAnimationFrame:clearImmediate;class fu extends qs{constructor(c){super(c),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=$6,this.paused=!0,this.reqId=0}update(){const c=this._currentTime=J3();if(this.requestTick(c)){this.computeDeltaTime(c);const e=this._speed,s=this._fps;let t=this._head;for(;t;){const r=t._next;t.paused?(g0(this,t),this._hasChildren=!!this._tail,t._running=!1,t.completed&&!t._cancelled&&t.cancel()):I3(t,(c-t._startTime)*t._speed*e,0,0,t._fps<s?t.requestTick(c):V2.AUTO),t=r}q3.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(J3()),this.reqId=Ws($s)),this}pause(){if(this.reqId)return this.paused=!0,uu()}resume(){if(this.paused)return this.paused=!1,d2(this,c=>c.resetTime()),this.wake()}get speed(){return this._speed*(M2.timeScale===1?1:Z3)}set speed(c){this._speed=c*M2.timeScale,d2(this,e=>e.speed=e._speed)}get timeUnit(){return M2.timeScale===1?"ms":"s"}set timeUnit(c){const s=c==="s",t=s?.001:1;if(M2.timeScale!==t){M2.timeScale=t,M2.tickThreshold=200*t;const r=s?.001:Z3;this.defaults.duration*=r,this._speed*=r}}get precision(){return M2.precision}set precision(c){M2.precision=c}}const g2=(()=>{const l=new fu(J3());return N4&&(Ns.engine=l,R0.addEventListener("visibilitychange",()=>{l.pauseOnDocumentHidden&&(R0.hidden?l.pause():l.resume())})),l})(),$s=()=>{g2._head?(g2.reqId=Ws($s),g2.update()):g2.reqId=0},uu=()=>(ou(g2.reqId),g2.reqId=0,g2);const V6={_rep:new WeakMap,_add:new Map},w7=(l,c,e="_rep")=>{const s=V6[e];let t=s.get(l);return t||(t={},s.set(l,t)),t[c]?t[c]:t[c]={_head:null,_tail:null}},zu=(l,c)=>l._isOverridden||l._absoluteStartTime>c._absoluteStartTime,O6=l=>{l._isOverlapped=1,l._isOverridden=1,l._changeDuration=J1,l._currentTime=J1},Vs=(l,c)=>{const e=l._composition;if(e===F2.replace){const s=l._absoluteStartTime;N3(c,l,zu,"_prevRep","_nextRep");const t=l._prevRep;if(t){const r=t.parent,n=t._absoluteStartTime+t._changeDuration;if(l.parent.id!==r.id&&r.iterationCount>1&&n+(r.duration-r.iterationDuration)>s){O6(t);let m=t._prevRep;for(;m&&m.parent.id===r.id;)O6(m),m=m._prevRep}const a=s-l._delay;if(n>a){const m=t._startTime,u=n-(m+t._updateDuration),L=z2(a-u-m,12);t._changeDuration=L,t._currentTime=L,t._isOverlapped=1,L<J1&&O6(t)}let o=!0;if(d2(r,m=>{m._isOverlapped||(o=!1)}),o){const m=r.parent;if(m){let u=!0;d2(m,L=>{L!==r&&d2(L,S=>{S._isOverlapped||(u=!1)})}),u&&m.cancel()}else r.cancel()}}}else if(e===F2.blend){const s=w7(l.target,l.property,"_add"),t=iu(V6._add);let r=s._head;r||(r={...l},r._composition=F2.replace,r._updateDuration=J1,r._startTime=0,r._numbers=p2(l._fromNumbers),r._number=0,r._next=null,r._prev=null,N3(s,r),N3(t,r));const n=l._toNumber;if(l._fromNumber=r._fromNumber-n,l._toNumber=0,l._numbers=p2(l._fromNumbers),l._number=0,r._fromNumber=n,l._toNumbers){const a=p2(l._toNumbers);a&&a.forEach((o,m)=>{l._fromNumbers[m]=r._fromNumbers[m]-o,l._toNumbers[m]=0}),r._fromNumbers=a}N3(s,l,null,"_prevAdd","_nextAdd")}return l},mu=l=>{const c=l._composition;if(c!==F2.none){const e=l.target,s=l.property,n=V6._rep.get(e)[s];if(g0(n,l,"_prevRep","_nextRep"),c===F2.blend){const a=V6._add,o=a.get(e);if(!o)return;const m=o[s],u=q3.animation;g0(m,l,"_prevAdd","_nextAdd");const L=m._head;if(L&&L===m._tail){g0(m,L,"_prevAdd","_nextAdd"),g0(u,L);let S=!0;for(let b in o)if(o[b]._head){S=!1;break}S&&a.delete(e)}}}return l};const Ac=l=>(l.paused=!0,l.began=!1,l.completed=!1,l),B8=l=>(l._cancelled&&(l._hasChildren?d2(l,B8):d2(l,c=>{c._composition!==F2.none&&Vs(c,w7(c.target,c.property))}),l._cancelled=0),l);let Nc=0;class du extends qs{constructor(c={},e=null,s=0){super(0),++Nc;const{id:t,delay:r,duration:n,reversed:a,alternate:o,loop:m,loopDelay:u,autoplay:L,frameRate:S,playbackRate:b,onComplete:x,onLoop:O,onPause:j,onBegin:V,onBeforeUpdate:e1,onUpdate:c1}=c,q=e?0:g2._lastTickTime,r1=e?e.defaults:M2.defaults,L1=j0(r)||r2(r)?r1.delay:+r,u1=j0(n)||r2(n)?1/0:+n,I=b2(m,r1.loop),_=b2(u,r1.loopDelay);let P=I===!0||I===1/0||I<0?1/0:I+1;if(m6){const i1=P===1/0;if(m6.register(this,c,i1)&&i1){const x1=o?2:1,k1=e?m6.maxNestedInfiniteLoops:m6.maxInfiniteLoops;P=Math.max(k1,x1)}}let N=0;e?N=s:(g2.reqId||g2.requestTick(J3()),N=(g2._lastTickTime-g2._startTime)*M2.timeScale),this.id=r2(t)?Nc:t,this.parent=e,this.duration=b7((u1+_)*P-_)||J1,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=V||r1.onBegin,this.onBeforeUpdate=e1||r1.onBeforeUpdate,this.onUpdate=c1||r1.onUpdate,this.onLoop=O||r1.onLoop,this.onPause=j||r1.onPause,this.onComplete=x||r1.onComplete,this.iterationDuration=u1,this.iterationCount=P,this._autoplay=e?!1:b2(L,r1.autoplay),this._offset=N,this._delay=L1,this._loopDelay=_,this._iterationTime=0,this._currentIteration=0,this._resolve=W2,this._running=!1,this._reversed=+b2(a,r1.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=b2(o,r1.alternate),this._prev=null,this._next=null,this._lastTickTime=q,this._startTime=q,this._lastTime=q,this._fps=b2(S,r1.frameRate),this._speed=b2(b,r1.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(c){c?this.cancel():this.reset(!0).play()}get currentTime(){return x2(z2(this._currentTime,M2.precision),-this._delay,this.duration)}set currentTime(c){const e=this.paused;this.pause().seek(+c),e||this.resume()}get iterationCurrentTime(){return x2(z2(this._iterationTime,M2.precision),0,this.iterationDuration)}set iterationCurrentTime(c){this.currentTime=this.iterationDuration*this._currentIteration+c}get progress(){return x2(z2(this._currentTime/this.duration,10),0,1)}set progress(c){this.currentTime=this.duration*c}get iterationProgress(){return x2(z2(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(c){const e=this.iterationDuration;this.currentTime=e*this._currentIteration+e*c}get currentIteration(){return this._currentIteration}set currentIteration(c){this.currentTime=this.iterationDuration*x2(+c,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(c){c?this.reverse():this.play()}get speed(){return super.speed}set speed(c){super.speed=c,this.resetTime()}reset(c=!1){return B8(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,I3(this,0,1,~~c,V2.FORCE),Ac(this),this._hasChildren&&d2(this,Ac),this}init(c=!1){this.fps=this._fps,this.speed=this._speed,!c&&this._hasChildren&&I3(this,this.duration,1,~~c,V2.FORCE),this.reset(c);const e=this._autoplay;return e===!0?this.resume():e&&!r2(e.linked)&&e.link(this),this}resetTime(){const c=1/(this._speed*g2._speed);return this._startTime=J3()-(this._currentTime+this._delay)*c,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=J1&&!this._hasChildren?I3(this,J1,0,0,V2.FORCE):(this._running||(N3(g2,this),g2._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,g2.wake()),this):this}restart(){return this.reset().resume()}seek(c,e=0,s=0){B8(this),this.completed=!1;const t=this.paused;return this.paused=!0,I3(this,c+this._delay,~~e,~~s,V2.AUTO),t?this:this.resume()}alternate(){const c=this._reversed,e=this.iterationCount,s=this.iterationDuration,t=e===1/0?Qf(j8/s):e;return this._reversed=+(this._alternate&&!(t%2)?c:!c),e===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(s*t-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?d2(this,c=>c.cancel(),!0):d2(this,mu),this._cancelled=1,this.pause()}stretch(c){const e=this.duration,s=T0(c);if(e===s)return this;const t=c/e,r=c<=J1;return this.duration=r?J1:s,this.iterationDuration=r?J1:T0(this.iterationDuration*t),this._offset*=t,this._delay*=t,this._loopDelay*=t,this}revert(){I3(this,0,1,0,V2.AUTO);const c=this._autoplay;return c&&c.linked&&c.linked===this&&c.revert(),this.cancel()}complete(c=0){return this.seek(this.duration,c).cancel()}then(c=W2){const e=this.then,s=()=>{this.then=null,c(this),this.then=e,this._resolve=W2};return new Promise(t=>(this._resolve=()=>t(s()),this.completed&&this._resolve(),this))}}function Fc(l){const c=P0(l)?Vf.root.querySelectorAll(l):l;if(c instanceof NodeList||c instanceof HTMLCollection)return c}function Mu(l){if(_0(l))return[];if(!N4)return Y3(l)&&l.flat(1/0)||[l];if(Y3(l)){const e=l.flat(1/0),s=[];for(let t=0,r=e.length;t<r;t++){const n=e[t];if(!_0(n)){const a=Fc(n);if(a)for(let o=0,m=a.length;o<m;o++){const u=a[o];if(!_0(u)){let L=!1;for(let S=0,b=s.length;S<b;S++)if(s[S]===u){L=!0;break}L||s.push(u)}}else{let o=!1;for(let m=0,u=s.length;m<u;m++)if(s[m]===n){o=!0;break}o||s.push(n)}}}return s}const c=Fc(l);return c?Array.from(c):[l]}function hu(l){const c=Mu(l),e=c.length;if(e)for(let s=0;s<e;s++){const t=c[s];if(!t[xc]){t[xc]=!0;const r=Ds(t);(t.nodeType||r)&&(t[m5]=!0,t[Es]=r,t[d5]={})}}return c}const n8={deg:1,rad:180/y7,turn:360},Dc={},Rc=(l,c,e,s=!1)=>{const t=c.u,r=c.n;if(c.t===R1.UNIT&&t===e)return c;const n=r+t+e,a=Dc[n];if(!r2(a)&&!s)c.n=a;else{let o;if(t in n8)o=r*n8[t]/n8[e];else{const u=l.cloneNode(),L=l.parentNode,S=L&&L!==R0?L:R0.body;S.appendChild(u);const b=u.style;b.width=100+t;const x=u.offsetWidth||100;b.width=100+e;const O=u.offsetWidth||100,j=x/O;S.removeChild(u),o=j*r}c.n=o,Dc[n]=o}return c.t,R1.UNIT,c.u=e,c};const Q4=l=>l;const d0=(l=1.68)=>c=>O3(c,+l),q8={in:l=>c=>l(c),out:l=>c=>1-l(1-c),inOut:l=>c=>c<.5?l(c*2)/2:1-l(c*-2+2)/2,outIn:l=>c=>c<.5?(1-l(1-c*2))/2:(l(c*2-1)+1)/2},Lu=y7/2,Pc=y7*2,jc={[L3]:d0,Quad:d0(2),Cubic:d0(3),Quart:d0(4),Quint:d0(5),Sine:l=>1-Xf(l*Lu),Circ:l=>1-Gf(1-l*l),Expo:l=>l?O3(2,10*l-10):0,Bounce:l=>{let c,e=4;for(;l<((c=O3(2,--e))-1)/11;);return 1/O3(4,3-e)-7.5625*O3((c*3-2)/22-l,2)},Back:(l=1.7)=>c=>(+l+1)*c*c*c-+l*c*c,Elastic:(l=1,c=.3)=>{const e=x2(+l,1,10),s=x2(+c,J1,2),t=s/Pc*cu(1/e),r=Pc/s;return n=>n===0||n===1?n:-e*O3(2,-10*(1-n))*Kf((1-n-t)*r)}},a8=(()=>{const l={linear:Q4,none:Q4};for(let c in q8)for(let e in jc){const s=jc[e],t=q8[c];l[c+e]=e===L3||e==="Back"||e==="Elastic"?(r,n)=>t(s(r,n)):t(s)}return l})(),d6={linear:Q4,none:Q4},pu=l=>{if(d6[l])return d6[l];if(l.indexOf("(")<=-1){const e=q8[l]||l.includes("Back")||l.includes("Elastic")?a8[l]():a8[l];return e?d6[l]=e:Q4}else{const c=l.slice(0,-1).split("("),e=a8[c[0]];return e?d6[l]=e(...c[1].split(",")):Q4}},Uc=["steps(","irregular(","linear(","cubicBezier("],Bc=l=>{if(P0(l)){for(let e=0,s=Uc.length;e<s;e++)if(Y4(l,Uc[e]))return console.warn(`String syntax for \`ease: "${l}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${l}\``),Q4}return j0(l)?l:P0(l)?pu(l):Q4};const p1=C7(),T1=C7(),_3={},M6={func:null},i8={func:null},h6=[null],T3=[null,null],L6={to:null};let gu=0,qc=0,q4,a4;const yu=(l,c)=>{const e={};if(Y3(l)){const s=[].concat(...l.map(t=>Object.keys(t))).filter(T6);for(let t=0,r=s.length;t<r;t++){const n=s[t],a=l.map(o=>{const m={};for(let u in o){const L=o[u];T6(u)?u===n&&(m.to=L):m[u]=L}return m});e[n]=a}}else{const s=b2(c.duration,M2.defaults.duration);Object.keys(l).map(r=>({o:parseFloat(r)/100,p:l[r]})).sort((r,n)=>r.o-n.o).forEach(r=>{const n=r.o,a=r.p;for(let o in a)if(T6(o)){let m=e[o];m||(m=e[o]=[]);const u=n*s;let L=m.length,S=m[L-1];const b={to:a[o]};let x=0;for(let O=0;O<L;O++)x+=m[O].duration;L===1&&(b.from=S.to),a.ease&&(b.ease=a.ease),b.duration=u-(L?x:0),m.push(b)}return r});for(let r in e){const n=e[r];let a;for(let o=0,m=n.length;o<m;o++){const u=n[o],L=u.ease;u.ease=a||void 0,a=L}n[0].duration||n.shift()}}return e};class bu extends du{constructor(c,e,s,t,r=!1,n=0,a=0){super(e,s,t),++qc;const o=hu(c),m=o.length,u=e.keyframes,L=u?lu(yu(u,e),e):e,{id:S,delay:b,duration:x,ease:O,playbackEase:j,modifier:V,composition:e1,onRender:c1}=L,q=s?s.defaults:M2.defaults,r1=b2(O,q.ease),L1=b2(j,q.playbackEase),u1=L1?Bc(L1):null,I=!r2(r1.ease),_=I?r1.ease:b2(O,u1?"linear":q.ease),P=I?r1.settlingDuration:b2(x,q.duration),N=b2(b,q.delay),i1=V||q.modifier,j1=r2(e1)&&m>=Z3?F2.none:r2(e1)?q.composition:e1,x1=this._offset+(s?s._offset:0);I&&(r1.parent=this);let k1=NaN,m1=NaN,_1=0,z1=0;for(let n1=0;n1<m;n1++){const O1=o[n1],I1=n||n1,N1=a||m;let f2=NaN,F1=NaN;for(let D1 in L)if(T6(D1)){const Y1=Us(O1,D1),G1=au(D1,O1,Y1);let K1=L[D1];const L2=Y3(K1);if(r&&!L2&&(T3[0]=K1,T3[1]=K1,K1=T3),L2){const W=K1.length,U=!s8(K1[0]);W===2&&U?(L6.to=K1,h6[0]=L6,q4=h6):W>2&&U?(q4=[],K1.forEach((B,Z)=>{Z?Z===1?(T3[1]=B,q4.push(T3)):q4.push(B):T3[0]=B})):q4=K1}else h6[0]=K1,q4=h6;let n2=null,c2=null,g=NaN,C=0,F=0;for(let W=q4.length;F<W;F++){const U=q4[F];s8(U)?a4=U:(L6.to=U,a4=L6),M6.func=null,i8.func=null;const B=b4(a4.to,O1,I1,N1,M6);let Z;s8(B)&&!r2(B.to)?(a4=B,Z=B.to):Z=B;const J=b4(a4.from,O1,I1,N1),H=a4.ease||_,E=b4(H,O1,I1,N1),l1=j0(E)||P0(E)?E:H,G=!r2(l1)&&!r2(l1.ease),s1=G?l1.ease:l1,a1=G?l1.settlingDuration:b4(b2(a4.duration,W>1?b4(P,O1,I1,N1)/W:P),O1,I1,N1),d1=b4(b2(a4.delay,F?0:N),O1,I1,N1),E1=b4(b2(a4.composition,j1),O1,I1,N1),M1=Hf(E1)?E1:F2[E1],e2=a4.modifier||i1,d=!r2(J),i=!r2(Z),f=Y3(Z),h=f||d&&i,w=c2?C+d1:d1,T=z2(x1+w,12);!z1&&(d||f)&&(z1=1);let A=c2;if(M1!==F2.none){n2||(n2=w7(O1,G1));let o1=n2._head;for(;o1&&!o1._isOverridden&&o1._absoluteStartTime<=T;)if(A=o1,o1=o1._nextRep,o1&&o1._absoluteStartTime>=T)for(;o1;)O6(o1),o1=o1._nextRep}if(h){X2(f?b4(Z[0],O1,I1,N1,i8):J,p1),X2(f?b4(Z[1],O1,I1,N1,M6):Z,T1);const o1=m0(O1,G1,Y1,_3);p1.t===R1.NUMBER&&(A?A._valueType===R1.UNIT&&(p1.t=R1.UNIT,p1.u=A._unit):(X2(o1,i3),i3.t===R1.UNIT&&(p1.t=R1.UNIT,p1.u=i3.u)))}else i?X2(Z,T1):c2?Oc(c2,T1):X2(s&&A&&A.parent.parent===s?A._value:m0(O1,G1,Y1,_3),T1),d?X2(J,p1):c2?Oc(c2,p1):X2(s&&A&&A.parent.parent===s?A._value:m0(O1,G1,Y1,_3),p1);if(p1.o&&(p1.n=r8(A?A._toNumber:X2(m0(O1,G1,Y1,_3),i3).n,p1.n,p1.o)),T1.o&&(T1.n=r8(p1.n,T1.n,T1.o)),p1.t!==T1.t){if(p1.t===R1.COMPLEX||T1.t===R1.COMPLEX){const o1=p1.t===R1.COMPLEX?p1:T1,b1=p1.t===R1.COMPLEX?T1:p1;b1.t=R1.COMPLEX,b1.s=p2(o1.s),b1.d=o1.d.map(()=>b1.n)}else if(p1.t===R1.UNIT||T1.t===R1.UNIT){const o1=p1.t===R1.UNIT?p1:T1,b1=p1.t===R1.UNIT?T1:p1;b1.t=R1.UNIT,b1.u=o1.u}else if(p1.t===R1.COLOR||T1.t===R1.COLOR){const o1=p1.t===R1.COLOR?p1:T1,b1=p1.t===R1.COLOR?T1:p1;b1.t=R1.COLOR,b1.s=o1.s,b1.d=[0,0,0,1]}}if(p1.u!==T1.u){let o1=T1.u?p1:T1;o1=Rc(O1,o1,T1.u?T1.u:p1.u,!1)}if(T1.d&&p1.d&&T1.d.length!==p1.d.length){const o1=p1.d.length>T1.d.length?p1:T1,b1=o1===p1?T1:p1;b1.d=o1.d.map((X0,l0)=>r2(b1.d[l0])?0:b1.d[l0]),b1.s=p2(o1.s)}const y1=z2(+a1||J1,12);let U1=_3[G1];_0(U1)||(_3[G1]=null);const B1={parent:this,id:gu++,property:G1,target:O1,_value:null,_toFunc:M6.func,_fromFunc:i8.func,_ease:Bc(s1),_fromNumbers:p2(p1.d),_toNumbers:p2(T1.d),_strings:p2(T1.s),_fromNumber:p1.n,_toNumber:T1.n,_numbers:p2(p1.d),_number:p1.n,_unit:T1.u,_modifier:e2,_currentTime:0,_startTime:w,_delay:+d1,_updateDuration:y1,_changeDuration:y1,_absoluteStartTime:T,_tweenType:Y1,_valueType:T1.t,_composition:M1,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:U1,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};M1!==F2.none&&Vs(B1,n2),isNaN(g)&&(g=B1._startTime),C=z2(w+y1,12),c2=B1,_1++,N3(this,B1)}(isNaN(m1)||g<m1)&&(m1=g),(isNaN(k1)||C>k1)&&(k1=C),Y1===a2.TRANSFORM&&(f2=_1-F,F1=_1)}if(!isNaN(f2)){let D1=0;d2(this,Y1=>{D1>=f2&&D1<F1&&(Y1._renderTransforms=1,Y1._composition===F2.blend&&d2(q3.animation,G1=>{G1.id===Y1.id&&(G1._renderTransforms=1)})),D1++})}}m||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),m1?(d2(this,n1=>{n1._startTime-n1._delay||(n1._delay-=m1),n1._startTime-=m1}),k1-=m1):m1=0,k1||(k1=J1,this.iterationCount=0),this.targets=o,this.id=r2(S)?qc:S,this.duration=k1===J1?J1:b7((k1+this._loopDelay)*this.iterationCount-this._loopDelay)||J1,this.onRender=c1||q.onRender,this._ease=u1,this._delay=m1,this.iterationDuration=k1,!this._autoplay&&z1&&this.onRender(this)}stretch(c){const e=this.duration;if(e===T0(c))return this;const s=c/e;return d2(this,t=>{t._updateDuration=T0(t._updateDuration*s),t._changeDuration=T0(t._changeDuration*s),t._currentTime*=s,t._startTime*=s,t._absoluteStartTime*=s}),super.stretch(c)}refresh(){return d2(this,c=>{const e=c._toFunc,s=c._fromFunc;(e||s)&&(s?(X2(s(),p1),p1.u!==c._unit&&c.target[m5]&&Rc(c.target,p1,c._unit,!0),c._fromNumbers=p2(p1.d),c._fromNumber=p1.n):e&&(X2(m0(c.target,c.property,c._tweenType),i3),c._fromNumbers=p2(i3.d),c._fromNumber=i3.n),e&&(X2(e(),T1),c._toNumbers=p2(T1.d),c._strings=p2(T1.s),c._toNumber=T1.o?r8(c._fromNumber,T1.n,T1.o):T1.n))}),this.duration===J1&&this.restart(),this}revert(){return super.revert(),Bs(this)}then(c){return super.then(c)}}const Cu=(l,c)=>new bu(l,c,null,0,!1).init(),wu={class:"app"},Su={class:"dashboard"},vu={class:"block-content"},xu={key:0,class:"audio-col"},ku={class:"audio-value"},_u={class:"block-name"},Tu={class:"popups"},Eu={class:"popup-cols"},Ou={class:"time"},Iu={class:"level"},Au={class:"message"},Nu=400,Fu=wl({name:"app",data:()=>({info:[],ws:null,lufsTimer:null,popup:[],popupTimer:null}),async mounted(){const l=new URL("/api",document.location.href),c=new URL("/api",document.location.href);c.protocol=l.protocol==="https:"?"wss:":"ws:";const e=await i2.get(`${l.toString()}/dashboard`);for(const r of e.data)r.type==="audio"?this.info.push({type:r.type,id:r.id,name:r.name,value:-60,lastKind:"",lufsBuffer:[]}):r.type==="text"&&this.info.push({type:r.type,id:r.id,name:r.name,value:[],lastKind:""});this.lufsTimer=setInterval(()=>{this.updateLufsDisplayValues()},50),this.popupTimer=setInterval(()=>{this.removeExpiredPopups()},50),this.ws=new qi(c.toString(),[],{reconnectionDelayGrowFactor:1.3,maxReconnectionDelay:4e3,minReconnectionDelay:1e3,connectionTimeout:4e3,minUptime:5e3}),this.ws.addEventListener("error",r=>{this.log("ERROR",`WebSocket error: ${r.message}`)});let s=!0,t=0;this.ws.addEventListener("open",r=>{s?(s=!1,this.log("INFO","WebSocket server connection: opened"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"info",message:"server connection: opened",removing:!1})):(this.log("INFO","WebSocket server connection: re-opened"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"info",message:"server connection: re-opened",removing:!1}))}),this.ws.addEventListener("close",r=>{for(const n of this.info)n.type==="audio"&&n.lufsBuffer!==void 0&&(n.value=-60,n.lufsBuffer.length=0);this.log("INFO","WebSocket server connection: closed"),this.popup.unshift({id:t++,time:Date.now(),node:"",level:"warning",message:"server connection: closed",removing:!1})}),this.ws.addEventListener("message",r=>{let n;try{n=JSON.parse(r.data)}catch(a){this.log("ERROR","Failed to parse WebSocket message",{error:a,data:r.data});return}if(n.response==="DASHBOARD"){const[a,o,m,u]=n.args;for(const L of this.info)if(L.type===a&&L.id===o)if(L.type==="audio"&&L.lufsBuffer!==void 0)m==="final"&&typeof u=="number"&&L.lufsBuffer.push({value:u,time:Date.now()});else{if(typeof u=="string"){const S=L.value;L.lastKind==="intermediate"?S[S.length-1]=u:(S.push(u),L.value=S.slice(-20))}L.lastKind=m,this.$nextTick(()=>{for(const S of this.$refs.textCol)S.scrollTop=S.scrollHeight})}}else if(n.response==="HINT"){const a=n.node,[o,m,u]=n.args;this.popup.unshift({id:t++,time:o,node:a,level:m,message:u,removing:!1})}})},beforeUnmount(){this.lufsTimer&&(clearInterval(this.lufsTimer),this.lufsTimer=null),this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=null),this.ws&&(this.ws.close(),this.ws=null)},methods:{log(l,c,e=null){let t=`${C1.now().toFormat("yyyy-MM-dd HH:mm:ss.SSS")} [${l}]: ${c}`;e!==null&&(t+=` (${Object.keys(e).map(r=>r+": "+JSON.stringify(e[r])).join(", ")})`),console.log(t)},updateLufsDisplayValues(){const l=Date.now();for(const c of this.info){if(c.type!=="audio"||c.lufsBuffer===void 0)continue;const e=c.lufsBuffer;for(;e.length>0&&l-e[0].time>Nu;)e.shift();if(e.length>0){const s=e.reduce((t,r)=>t+r.value,0);c.value=s/e.length}else c.value=-60}},removeExpiredPopups(){this.popup.forEach(l=>{if(l.time<Date.now()-8e3&&!l.removing){const c=this.$refs[`popup-${l.id}`][0];l.removing=!0,Cu(c,{opacity:[1,0],duration:2e3,easing:"easeOutQuad",onComplete:()=>{const e=this.popup.findIndex(s=>s.id===l.id);this.popup.splice(e,1)}})}})}}}),Du=wl({...Fu,setup(l){return(c,e)=>(i4(),g4("div",wu,[A2("div",Su,[(i4(!0),g4($2,null,P5(c.info,s=>(i4(),g4("div",{key:s.id,class:"block"},[A2("div",vu,[s.type==="audio"?(i4(),g4("div",xu,[A2("div",{class:"audio-meter",style:Y6({height:100*(1-s.value/-60)+"%"})},[A2("div",ku,[Jl(W4(s.value.toFixed(1))+" ",1),e[0]||(e[0]=A2("div",{class:"audio-unit"},"LUFS-M",-1))])],4)])):p9("",!0),s.type==="text"?(i4(),g4("div",{key:1,ref_for:!0,ref:"textCol",class:E0(["text-col",{intermediate:s.lastKind==="intermediate"}])},[(i4(!0),g4($2,null,P5(s.value,t=>(i4(),g4("div",{key:t,class:"text-value"},W4(t),1))),128))],2)):p9("",!0)]),A2("div",_u,W4(s.name),1)]))),128))]),A2("div",Tu,[A2("div",Eu,[(i4(!0),g4($2,null,P5(c.popup,s=>(i4(),g4("div",{class:E0(["popup",{warning:s.level==="warning",error:s.level==="error"}]),ref_for:!0,ref:`popup-${s.id}`,key:s.id},[A2("span",Ou,"["+W4(dl(C1).fromMillis(s.time).toFormat("yyyy-MM-dd HH:mm:ss"))+"] ",1),A2("span",Iu,W4(s.level.toUpperCase())+": ",1),sr(A2("span",{class:"node"},W4(s.node)+": ",513),[[pn,s.node!==""]]),A2("span",Au,W4(s.message),1)],2))),128))])])]))}});document.addEventListener("DOMContentLoaded",l=>{(async()=>{Fn(Du).mount("#app")})().catch(c=>{console.error(`app: ERROR: top-level: ${c}`)})});
@@ -38,8 +38,8 @@
38
38
 
39
39
  "@vue/eslint-config-typescript": "14.7.0",
40
40
  "vue-eslint-parser": "10.4.0",
41
- "eslint": "10.0.1",
42
- "@eslint/js": "10.0.1",
41
+ "eslint": "9.39.2",
42
+ "@eslint/js": "9.39.2",
43
43
  "neostandard": "0.12.2",
44
44
  "eslint-plugin-import": "2.32.0",
45
45
  "eslint-plugin-vue": "10.8.0",
@@ -40,7 +40,7 @@
40
40
  <div class="popups">
41
41
  <div class="popup-cols">
42
42
  <div class="popup"
43
- v-for="(entry, idx) in popup"
43
+ v-for="(entry) in popup"
44
44
  v-bind:class="{ warning: entry.level === 'warning', error: entry.level === 'error' }"
45
45
  v-bind:ref="`popup-${entry.id}`"
46
46
  v-bind:key="entry.id">
@@ -157,11 +157,11 @@
157
157
  display: flex
158
158
  flex-direction: row
159
159
  justify-content: center
160
- align-items: flex-begin
160
+ align-items: flex-start
161
161
  .popup-cols
162
162
  display: flex
163
163
  flex-direction: column
164
- justify-content: flex-begin
164
+ justify-content: flex-start
165
165
  align-items: center
166
166
  width: 30vw
167
167
  .popup