vendor: 6,656 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B07oWCSx.js","./DPlU4xhr.js","./L1cue2ys.js","./BkDCLacB.js","./CRspGpI1.js","./IbZXltk7.js","./NNgoVV18.js","./De5-GsJI.js","./dMdLYHJ2.js"])))=>i.map(i=>d[i]); 2import{t as e}from"./HclGiUj8.js";var t={},n=function(e,n,r,i,a){var o=new Worker(t[n]||(t[n]=URL.createObjectURL(new Blob([e+`;addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})`],{type:`text/javascript`}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=Error(n[0]);r.code=n[1],r.stack=n[2],a(r,null)}else a(null,t)},o.postMessage(r,i),o},r=Uint8Array,i=Uint16Array,a=Int32Array,o=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new a(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},u=l(o,2),d=u.b,f=u.r;d[28]=258,f[258]=28;var p=l(s,0).b,m=new i(32768);for(g=0;g<32768;++g)h=(g&43690)>>1|(g&21845)<<1,h=(h&52428)>>2|(h&13107)<<2,h=(h&61680)>>4|(h&3855)<<4,m[g]=((h&65280)>>8|(h&255)<<8)>>1;var h,g,_=function(e,t,n){for(var r=e.length,a=0,o=new i(t);a<r;++a)e[a]&&++o[e[a]-1];var s=new i(t);for(a=1;a<t;++a)s[a]=s[a-1]+o[a-1]<<1;var c;if(n){c=new i(1<<t);var l=15-t;for(a=0;a<r;++a)if(e[a])for(var u=a<<4|e[a],d=t-e[a],f=s[e[a]-1]++<<d,p=f|(1<<d)-1;f<=p;++f)c[m[f]>>l]=u}else for(c=new i(r),a=0;a<r;++a)e[a]&&(c[a]=m[s[e[a]-1]++]>>15-e[a]);return c},v=new r(288);for(g=0;g<144;++g)v[g]=8;var g;for(g=144;g<256;++g)v[g]=9;var g;for(g=256;g<280;++g)v[g]=7;var g;for(g=280;g<288;++g)v[g]=8;var g,y=new r(32);for(g=0;g<32;++g)y[g]=5;var g,ee=_(v,9,1),b=_(y,5,1),x=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},S=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},te=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ne=function(e){return(e+7)/8|0},re=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new r(e.subarray(t,n))},C=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],w=function(e,t,n){var r=Error(t||C[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,w),!n)throw r;return r},T=function(e,t,n,i){var a=e.length,l=i?i.length:0;if(!a||t.f&&!t.l)return n||new r(0);var u=!n,f=u||t.i!=2,m=t.i;u&&(n=new r(a*3));var h=function(e){var t=n.length;if(e>t){var i=new r(Math.max(t*2,e));i.set(n),n=i}},g=t.f||0,v=t.p||0,y=t.b||0,C=t.l,T=t.d,E=t.m,D=t.n,ie=a*8;do{if(!C){g=S(e,v,1);var O=S(e,v+1,3);if(v+=3,O){if(O==1)C=ee,T=b,E=9,D=5;else if(O==2){var ae=S(e,v,31)+257,oe=S(e,v+10,15)+4,se=ae+S(e,v+5,31)+1;v+=14;for(var k=new r(se),ce=new r(19),A=0;A<oe;++A)ce[c[A]]=S(e,v+A*3,7);v+=oe*3;for(var j=x(ce),M=(1<<j)-1,le=_(ce,j,1),A=0;A<se;){var ue=le[S(e,v,M)];v+=ue&15;var N=ue>>4;if(N<16)k[A++]=N;else{var P=0,de=0;for(N==16?(de=3+S(e,v,3),v+=2,P=k[A-1]):N==17?(de=3+S(e,v,7),v+=3):N==18&&(de=11+S(e,v,127),v+=7);de--;)k[A++]=P}}var F=k.subarray(0,ae),I=k.subarray(ae);E=x(F),D=x(I),C=_(F,E,1),T=_(I,D,1)}else w(1)}else{var N=ne(v)+4,fe=e[N-4]|e[N-3]<<8,pe=N+fe;if(pe>a){m&&w(0);break}f&&h(y+fe),n.set(e.subarray(N,pe),y),t.b=y+=fe,t.p=v=pe*8,t.f=g;continue}if(v>ie){m&&w(0);break}}f&&h(y+131072);for(var me=(1<<E)-1,he=(1<<D)-1,ge=v;;ge=v){var P=C[te(e,v)&me],L=P>>4;if(v+=P&15,v>ie){m&&w(0);break}if(P||w(2),L<256)n[y++]=L;else if(L==256){ge=v,C=null;break}else{var _e=L-254;if(L>264){var A=L-257,ve=o[A];_e=S(e,v,(1<<ve)-1)+d[A],v+=ve}var R=T[te(e,v)&he],z=R>>4;R||w(3),v+=R&15;var I=p[z];if(z>3){var ve=s[z];I+=te(e,v)&(1<<ve)-1,v+=ve}if(v>ie){m&&w(0);break}f&&h(y+131072);var B=y+_e;if(y<I){var ye=l-I,V=Math.min(I,B);for(ye+y<0&&w(3);y<V;++y)n[y]=i[ye+y]}for(;y<B;++y)n[y]=n[y-I]}}t.l=C,t.p=ge,t.b=y,t.f=g,C&&(g=1,t.m=E,t.d=T,t.n=D)}while(!g);return y!=n.length&&u?re(n,0,y):n.subarray(0,y)},E=new r(0),D=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},ie=function(e,t,n){for(var r=e(),i=e.toString(),a=i.slice(i.indexOf(`[`)+1,i.lastIndexOf(`]`)).replace(/\s+/g,``).split(`,`),o=0;o<r.length;++o){var s=r[o],c=a[o];if(typeof s==`function`){t+=`;`+c+`=`;var l=s.toString();if(s.prototype){if(l.indexOf(`[native code]`)!=-1){var u=l.indexOf(` `,8)+1;t+=l.slice(u,l.indexOf(`(`,u))}else for(var d in t+=l,s.prototype)t+=`;`+c+`.prototype.`+d+`=`+s.prototype[d].toString()}else t+=l}else n[c]=s}return t},O=[],ae=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},oe=function(e,t,r,i){if(!O[r]){for(var a=``,o={},s=e.length-1,c=0;c<s;++c)a=ie(e[c],a,o);O[r]={c:ie(e[s],a,o),e:o}}var l=D({},O[r].e);return n(O[r].c+`;onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=`+t.toString()+`}`,r,l,ae(l),i)},se=function(){return[r,i,a,o,s,c,d,p,ee,b,m,C,_,x,S,te,ne,re,w,T,N,k,ce]},k=function(e){return postMessage(e,[e.buffer])},ce=function(e){return e&&{out:e.size&&new r(e.size),dictionary:e.dictionary}},A=function(e,t,n,r,i,a){var o=oe(n,r,i,function(e,t){o.terminate(),a(e,t)});return o.postMessage([e,t],t.consume?[e.buffer]:[]),function(){o.terminate()}},j=function(e,t){return e[t]|e[t+1]<<8},M=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},le=function(e,t){return M(e,t)+M(e,t+4)*4294967296};function ue(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&w(7),A(e,t,[se],function(e){return k(N(e.data[0],ce(e.data[1])))},1,n)}function N(e,t){return T(e,{i:2},t&&t.out,t&&t.dictionary)}var P=typeof TextDecoder<`u`&&new TextDecoder;try{P.decode(E,{stream:!0})}catch{}var de=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:re(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function F(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(P)return P.decode(e);var i=de(e),a=i.s,n=i.r;return n.length&&w(8),a}var I=function(e,t){return t+30+j(e,t+26)+j(e,t+28)},fe=function(e,t,n){var r=j(e,t+28),i=F(e.subarray(t+46,t+46+r),!(j(e,t+8)&2048)),a=t+46+r,o=M(e,t+20),s=n&&o==4294967295?pe(e,a):[o,M(e,t+24),M(e,t+42)
2],c=s[0],l=s[1],u=s[2];return[j(e,t+10),c,l,i,a+j(e,t+30)+j(e,t+32),u]},pe=function(e,t){for(;j(e,t)!=1;t+=4+j(e,t+2));return[le(e,t+12),le(e,t+4),le(e,t+20)]},me=typeof queueMicrotask==`function`?queueMicrotask:typeof setTimeout==`function`?setTimeout:function(e){e()};function he(e,t,n){n||(n=t,t={}),typeof n!=`function`&&w(7);var i=[],a=function(){for(var e=0;e<i.length;++e)i[e]()},o={},s=function(e,t){me(function(){n(e,t)})};me(function(){s=n});for(var c=e.length-22;M(e,c)!=101010256;--c)if(!c||e.length-c>65558)return s(w(13,0,1),null),a;var l=j(e,c+8);if(l){var u=l,d=M(e,c+16),f=d==4294967295||u==65535;if(f){var p=M(e,c-12);f=M(e,p)==101075792,f&&(u=l=M(e,p+32),d=M(e,p+48))}for(var m=t&&t.filter,h=function(t){var n=fe(e,d,f),c=n[0],u=n[1],p=n[2],h=n[3],g=n[4],_=n[5],v=I(e,_);d=g;var y=function(e,t){e?(a(),s(e,null)):(t&&(o[h]=t),--l||s(null,o))};if(!m||m({name:h,size:u,originalSize:p,compression:c})){if(!c)y(null,re(e,v,v+u));else if(c==8){var ee=e.subarray(v,v+u);if(u<32e4)try{y(null,N(ee,{out:new r(p)}))}catch(e){y(e,null)}else i.push(ue(ee,{size:p},y))}else y(w(14,`unknown compression type `+c,1),null)}else y(null,null)},g=0;g<u;++g)h(g)}else s(null,{});return a}function ge(e){return(Array.isArray(e)?e:e.issues).reduce((e,t)=>{if(t.path){let n=t.path.map(({key:e})=>e).join(`.`);e.nested[n]=[...e.nested[n]||[],t.message]}else e.root=[...e.root||[],t.message];return e},{nested:{}})}var L=class extends Error{issues;constructor(e){super(e[0].message),this.name=`ValiError`,this.issues=e}};function _e(e,t){return{reason:e?.reason,validation:t.validation,origin:e?.origin||`value`,message:t.message,input:t.input,abortEarly:e?.abortEarly,abortPipeEarly:e?.abortPipeEarly}}function ve(e,t){return{reason:t,origin:e?.origin,abortEarly:e?.abortEarly,abortPipeEarly:e?.abortPipeEarly}}function R(e,t,n,r){if(!t||!t.length)return{output:e};let i,a,o=e;for(let e of t){let t=e(o);if(t.issue){i||=ve(n,r);let e=_e(i,t.issue);if(a?a.push(e):a=[e],i.abortEarly||i.abortPipeEarly)break}else o=t.output}return a?{issues:a}:{output:o}}function z(e,t){return!e||typeof e==`string`?[e,t]:[void 0,e]}function B(e,t,n,r,i,a){return{issues:[{reason:t,validation:n,origin:e?.origin||`value`,message:r,input:i,issues:a,abortEarly:e?.abortEarly,abortPipeEarly:e?.abortPipeEarly}]}}function ye(e=[]){return{schema:`any`,async:!1,_parse(t,n){return R(t,e,n,`any`)}}}function V(e,t,n){let[r,i]=z(t,n);return{schema:`array`,array:{item:e},async:!1,_parse(t,n){if(!Array.isArray(t))return B(n,`type`,`array`,r||`Invalid type`,t);let a,o=[];for(let r=0;r<t.length;r++){let i=t[r],s=e._parse(i,n);if(s.issues){let e={schema:`array`,input:t,key:r,value:i};for(let t of s.issues)t.path?t.path.unshift(e):t.path=[e],a?.push(t);if(a||=s.issues,n!=null&&n.abortEarly)break}else o.push(s.output)}return a?{issues:a}:R(o,i,n,`array`)}}}function be(e,t){let[n,r]=z(e,t);return{schema:`boolean`,async:!1,_parse(e,t){return typeof e==`boolean`?R(e,r,t,`boolean`):B(t,`type`,`boolean`,n||`Invalid type`,e)}}}function xe(e,t){return{schema:`literal`,literal:e,async:!1,_parse(n,r){return n===e?{output:n}:B(r,`type`,`literal`,t||`Invalid type`,n)}}}function Se(e,t){return{schema:`native_enum`,nativeEnum:e,async:!1,_parse(n,r){return Object.values(e).includes(n)?{output:n}:B(r,`type`,`native_enum`,t||`Invalid type`,n)}}}function H(e,t){let[n,r]=z(e,t);return{schema:`number`,async:!1,_parse(e,t){return typeof e==`number`?R(e,r,t,`number`):B(t,`type`,`number`,n||`Invalid type`,e)}}}function U(e,t,n){let[r,i]=z(t,n),a;return{schema:`object`,object:e,async:!1,_parse(t,n){if(!t||typeof t!=`object`)return B(n,`type`,`object`,r||`Invalid type`,t);a||=Object.entries(e);let o,s={};for(let[e,r]of a){let i=t[e],a=r._parse(i,n);if(a.issues){let r={schema:`object`,input:t,key:e,value:i};for(let e of a.issues)e.path?e.path.unshift(r):e.path=[r],o?.push(e);if(o||=a.issues,n!=null&&n.abortEarly)break}else s[e]=a.output}return o?{issues:o}:R(s,i,n,`object`)}}}function W(e){return{schema:`optional`,wrapped:e,async:!1,_parse(t,n){return t===void 0?{output:t}:e._parse(t,n)}}}function G(e,t){let[n,r]=z(e,t);return{schema:`string`,async:!1,_parse(e,t){return typeof e==`string`?R(e,r,t,`string`):B(t,`type`,`string`,n||`Invalid type`,e)}}}function Ce(e,t,n,r){if(typeof t==`object`&&!Array.isArray(t)){let[i,a]=z(n,r);return[e,t,i,a]}let[i,a]=z(t,n);return[G(),e,i,a]}var we=[`__proto__`,`prototype`,`constructor`];function Te(e,t,n,r){let[i,a,o,s]=Ce(e,t,n,r);return{schema:`record`,record:{key:i,value:a},async:!1,_parse(e,t){if(!e||typeof e!=`object`)return B(t,`type`,`record`,o||`Invalid type`,e);let n,r={};for(let[o,s]of Object.entries(e))if(!we.includes(o)){let c,l=i._parse(o,{origin:`key`,abortE
2arly:t?.abortEarly,abortPipeEarly:t?.abortPipeEarly});if(l.issues){c={schema:`record`,input:e,key:o,value:s};for(let e of l.issues)e.path=[c],n?.push(e);if(n||=l.issues,t!=null&&t.abortEarly)break}let u=a._parse(s,t);if(u.issues){c||={schema:`record`,input:e,key:o,value:s};for(let e of u.issues)e.path?e.path.unshift(c):e.path=[c],n?.push(e);if(n||=u.issues,t!=null&&t.abortEarly)break}!l.issues&&!u.issues&&(r[l.output]=u.output)}return n?{issues:n}:R(r,s,t,`record`)}}}function Ee(e,t,n){if(typeof e==`object`&&!Array.isArray(e)){let[r,i]=z(t,n);return[e,r,i]}let[r,i]=z(e,t);return[void 0,r,i]}function De(e,t,n,r){let[i,a,o]=Ee(t,n,r);return{schema:`tuple`,tuple:{items:e,rest:i},async:!1,_parse(t,n){if(!Array.isArray(t)||!i&&e.length!==t.length||i&&e.length>t.length)return B(n,`type`,`tuple`,a||`Invalid type`,t);let r,s=[];for(let i=0;i<e.length;i++){let a=t[i],o=e[i]._parse(a,n);if(o.issues){let e={schema:`tuple`,input:t,key:i,value:a};for(let t of o.issues)t.path?t.path.unshift(e):t.path=[e],r?.push(t);if(r||=o.issues,n!=null&&n.abortEarly)break}else s[i]=o.output}if(i)for(let a=e.length;a<t.length;a++){let e=t[a],o=i._parse(e,n);if(o.issues){let i={schema:`tuple`,input:t,key:a,value:e};for(let e of o.issues)e.path?e.path.unshift(i):e.path=[i],r?.push(e);if(r||=o.issues,n!=null&&n.abortEarly)break}else s[a]=o.output}return r?{issues:r}:R(s,o,n,`tuple`)}}}function Oe(e,t){return{schema:`union`,union:e,async:!1,_parse(n,r){let i,a;for(let t of e){let e=t._parse(n,r);if(e.issues){if(i)for(let t of e.issues)i.push(t);else i=e.issues}else{a=[e.output];break}}return a?{output:a[0]}:B(r,`type`,`union`,t||`Invalid type`,n,i)}}}function ke(e,t,n){let[r,i]=z(t,n);return U(e.reduce((e,t)=>({...e,...t.object}),{}),r,i)}function Ae(e,t,n,r){let[i,a]=z(n,r);return U(Object.entries(e.object).reduce((e,[n,r])=>t.includes(n)?e:{...e,[n]:r},{}),i,a)}function je(e,t,n){let r=e._parse(t,n);return r.issues?{success:!1,error:new L(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function Me(e,t){return n=>n>e?{issue:{validation:`max_value`,message:t||`Invalid value`,input:n}}:{output:n}}function Ne(e,t){return n=>n<e?{issue:{validation:`min_value`,message:t||`Invalid value`,input:n}}:{output:n}}var Pe=Object.create,Fe=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Le=Object.getOwnPropertyNames,Re=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty,Be=(e,t,n)=>t in e?Fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ve=(e,t)=>function(){return t||(0,e[Le(e)[0]])((t={exports:{}}).exports,t),t.exports},He=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Le(t))!ze.call(e,i)&&i!==n&&Fe(e,i,{get:()=>t[i],enumerable:!(r=Ie(t,i))||r.enumerable});return e},Ue=(e,t,n)=>(n=e==null?{}:Pe(Re(e)),He(t||!e||!e.__esModule?Fe(n,`default`,{value:e,enumerable:!0}):n,e)),We=(e,t,n)=>(Be(e,typeof t==`symbol`?t:t+``,n),n),Ge=Ve({"../../node_modules/.pnpm/@[email protected]/node_modules/@rgba-image/copy/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.copy=void 0,e.copy=(e,t,n=0,r=0,i=e.width-n,a=e.height-r,o=0,s=0)=>{if(n|=0,r|=0,i|=0,a|=0,o|=0,s|=0,i<=0||a<=0)return;let c=new Uint32Array(e.data.buffer),l=new Uint32Array(t.data.buffer);for(let u=0;u<a;u++){let a=r+u;if(a<0||a>=e.height)continue;let d=s+u;if(!(d<0||d>=t.height))for(let r=0;r<i;r++){let i=n+r;if(i<0||i>=e.width)continue;let s=o+r;if(s<0||s>=t.width)continue;let u=a*e.width+i,f=d*t.width+s;l[f]=c[u]}}}}}),Ke=Ve({"../../node_modules/.pnpm/@[email protected]/node_modules/@rgba-image/create-image/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreateImageFactory=(e=[0,0,0,0],t=4)=>{if(t=Math.floor(t),isNaN(t)||t<1)throw TypeError(`channels should be a positive non-zero number`);if(!(`length`in e)||e.length<t)throw TypeError(`fill should be iterable with at least ${t} members`);e=new Uint8ClampedArray(e).slice(0,t);let n=e.every(e=>e===0);return(r,i,a)=>{if(r===void 0||i===void 0)throw TypeError(`Not enough arguments`);if(r=Math.floor(r),i=Math.floor(i),isNaN(r)||r<1||isNaN(i)||i<1)throw TypeError(`Index or size is negative or greater than the allowed amount`);let o=r*i*t;if(a===void 0&&(a=new Uint8ClampedArray(o)),a instanceof Uint8ClampedArray){if(a.length!==o)throw TypeError(`Index or size is negative or greater than the allowed amount`);if(!n)for(let n=0;n<i;n++)for(let i=0;i<r;i++){let o=(n*r+i)*t;for(let n=0;n<t;n++)a[o+n]=e[n]}return{get width(){return r},get height(){return i},get data(){return a}}}throw TypeError(`Expected data to be Uint8ClampedArray or undefined`)}},e.createImage=e.CreateImageFactory()}}),qe=Ve({"../../node_modules/.pnpm/@[email protected]/node_modules/@rgba-image/lanczos/dist/filters.js"(e){Object.defineProperty(e,"__esMo
2dule",{value:!0}),e.filters=void 0;var t=14,n=(e,t)=>{if(e<=-t||e>=t||e==0)return 0;let n=e*Math.PI;return Math.sin(n)/n*Math.sin(n/t)/(n/t)},r=e=>Math.round(e*((1<<t)-1));e.filters=(e,t,i,a,o)=>{let s=o?2:3,c=1/i,l=Math.min(1,i),u=s/l,d=Math.floor((u+1)*2),f=new Int16Array((d+2)*t),p=0;for(let i=0;i<t;i++){let o=(i+.5)*c+a,d=Math.max(0,Math.floor(o-u)),m=Math.min(e-1,Math.ceil(o+u)),h=m-d+1,g=new Float32Array(h),_=new Int16Array(h),v=0,y=0;for(let e=d;e<=m;e++){let t=n((e+.5-o)*l,s);v+=t,g[y]=t,y++}let ee=0;for(let e=0;e<g.length;e++){let t=g[e]/v;ee+=t,_[e]=r(t)}_[t>>1]+=r(1-ee);let b=0;for(;b<_.length&&_[b]===0;)b++;let x=_.length-1;for(;x>0&&_[x]===0;)x--;let S=d+b,te=x-b+1;f[p++]=S,f[p++]=te,f.set(_.subarray(b,x+1),p),p+=te}return f}}}),Je=Ve({"../../node_modules/.pnpm/@[email protected]/node_modules/@rgba-image/lanczos/dist/convolve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convolve=void 0;var t=14;e.convolve=(e,n,r,i,a,o)=>{let s=0,c=0;for(let l=0;l<i;l++){let u=0;for(let r=0;r<a;r++){let r=o[u++],a=s+r*4|0,l=0,d=0,f=0,p=0;for(let t=o[u++];t>0;t--){let t=o[u++];l=l+t*e[a]|0,d=d+t*e[a+1]|0,f=f+t*e[a+2]|0,p=p+t*e[a+3]|0,a=a+4|0}n[c]=l+8192>>t,n[c+1]=d+8192>>t,n[c+2]=f+8192>>t,n[c+3]=p+8192>>t,c=c+i*4|0}c=(l+1)*4|0,s=(l+1)*r*4|0}}}}),Ye=Ve({"../../node_modules/.pnpm/@[email protected]/node_modules/@rgba-image/lanczos/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lanczos2=e.lanczos=void 0;var t=Ge(),n=Ke(),r=qe(),i=Je(),a=(e,t,n=!1)=>{let a=t.width/e.width,o=t.height/e.height,s=r.filters(e.width,t.width,a,0,n),c=r.filters(e.height,t.height,o,0,n),l=new Uint8ClampedArray(t.width*e.height*4);i.convolve(e.data,l,e.width,e.height,t.width,s),i.convolve(l,t.data,e.height,t.width,t.height,c)};e.lanczos=(e,r,i=0,o=0,s=e.width-i,c=e.height-o,l=0,u=0,d=r.width-l,f=r.height-u)=>{if(i|=0,o|=0,s|=0,c|=0,l|=0,u|=0,d|=0,f|=0,s<=0||c<=0||d<=0||f<=0)return;if(i===0&&o===0&&s===e.width&&c===e.height&&l===0&&u===0&&d===r.width&&f===r.height){a(e,r);return}let p=n.createImage(s,c),m=n.createImage(d,f);t.copy(e,p,i,o),a(p,m),t.copy(m,r,0,0,m.width,m.height,l,u)},e.lanczos2=(e,r,i=0,o=0,s=e.width-i,c=e.height-o,l=0,u=0,d=r.width-l,f=r.height-u)=>{if(i|=0,o|=0,s|=0,c|=0,l|=0,u|=0,d|=0,f|=0,s<=0||c<=0||d<=0||f<=0)return;if(i===0&&o===0&&s===e.width&&c===e.height&&l===0&&u===0&&d===r.width&&f===r.height){a(e,r,!0);return}let p=n.createImage(s,c),m=n.createImage(d,f);t.copy(e,p,i,o),a(p,m,!0),t.copy(m,r,0,0,m.width,m.height,l,u)}}}),Xe=(e=>(e.Bounce=`bounce`,e.Normal=`normal`,e))(Xe||{}),Ze=Se(Xe),Qe=U({autoplay:W(be()),defaultTheme:W(G()),direction:W(Oe([xe(1),xe(-1)])),hover:W(be()),id:G(),intermission:W(H()),loop:W(Oe([be(),H()])),playMode:W(Ze),speed:W(H()),themeColor:W(G())}),$e=U({animations:V(G()),id:G()}),et=U({activeAnimationId:W(G()),animations:V(Qe),author:W(G()),custom:W(Te(G(),ye())),description:W(G()),generator:W(G()),keywords:W(G()),revision:W(H()),themes:W(V($e)),states:W(V(G())),version:W(G())}),tt=Ae(Qe,[`id`]),K=U({state:G()}),nt=K,rt=ke([K,U({ms:H()})]),it=ke([K,U({count:H()})]),at=K,ot=K,st=K,ct=ke([K,U({threshold:W(V(H([Ne(0),Me(1)])))})]),lt=U({onAfter:W(rt),onClick:W(nt),onComplete:W(st),onEnter:W(it),onMouseEnter:W(at),onMouseLeave:W(ot),onShow:W(ct)}),ut=ke([tt,U({playOnScroll:W(De([H([Ne(0),Me(1)]),H([Ne(0),Me(1)])])),segments:W(Oe([De([H(),H()]),G()]))})]);ke([lt,U({animationId:W(G()),playbackSettings:ut})]);var dt={jpeg:`image/jpeg`,png:`image/png`,gif:`image/gif`,bmp:`image/bmp`,svg:`image/svg+xml`,webp:`image/webp`,mpeg:`audio/mpeg`,mp3:`audio/mp3`},ft={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120],mp3:[73,68,51,3,0,0,0,0],mpeg:[73,68,51,3,0,0,0,0]},pt=e=>{let t=null,n=[];if(!e)return null;let r=e.substring(e.indexOf(`,`)+1);t=typeof window>`u`?Buffer.from(r,`base64`).toString(`binary`):atob(r);let i=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)i[e]=t.charCodeAt(e);n=Array.from(i.subarray(0,8));for(let e in ft){let t=ft[e];if(t&&n.every((e,n)=>e===t[n]))return dt[e]}return null}
2,mt=class extends Error{constructor(e,t){super(e),We(this,`code`),this.name=`[dotlottie-js]`,this.code=t}};function ht(e){let t;if(typeof window>`u`)t=Buffer.from(e).toString(`base64`);else{let n=Array.prototype.map.call(e,e=>String.fromCharCode(e)).join(``);t=window.btoa(n)}return`data:${pt(t)};base64,${t}`}function gt(e){return`w`in e&&`h`in e&&!(`xt`in e)&&`p`in e}function _t(e){return!(`h`in e)&&!(`w`in e)&&`p`in e&&`e`in e&&`u`in e&&`id`in e}async function vt(e,t=()=>!0){if(!(e instanceof Uint8Array))throw new mt(`DotLottie not found`,`INVALID_DOTLOTTIE`);return await new Promise((n,r)=>{he(e,{filter:t},(e,t)=>{e&&r(e),n(t)})})}async function yt(e,t,n){if(!(e instanceof Uint8Array))throw new mt(`DotLottie not found`,`INVALID_DOTLOTTIE`);return(await vt(e,e=>e.name===t&&(!n||n(e))))[t]}async function bt(e){let t=`manifest.json`,n=(await vt(e,e=>e.name===t))[t];if(!(typeof n>`u`))return JSON.parse(F(n,!1))}async function xt(e){if(!(e instanceof Uint8Array))return{success:!1,error:`DotLottie not found`};let t=await bt(e);if(typeof t>`u`)return{success:!1,error:`Invalid .lottie file, manifest.json is missing`};let n=je(et,t);return n.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(ge(n.error).nested,null,2)}`}}async function St(e){let t=new Uint8Array(e),n=await xt(t);if(n.error)throw new mt(n.error,`INVALID_DOTLOTTIE`);return t}async function Ct(e,t){let n=await vt(e,e=>{let n=e.name.replace(`audio/`,``);return e.name.startsWith(`audio/`)&&(!t||t({...e,name:n}))}),r={};for(let e in n){let t=n[e];if(t instanceof Uint8Array){let n=e.replace(`audio/`,``);r[n]=ht(t)}}return r}async function wt(e,t){var n;let r=new Map;for(let[e,i]of Object.entries(t))for(let t of i.assets||[])if(_t(t)){let i=t.p;r.has(i)||r.set(i,new Set),(n=r.get(i))==null||n.add(e)}let i=await Ct(e,e=>r.has(e.name));for(let[e,n]of r){let r=i[e];if(r)for(let i of n){let n=t[i];for(let t of n?.assets||[])_t(t)&&t.p===e&&(t.p=r,t.u=``,t.e=1)}}}async function Tt(e,t){let n=await vt(e,e=>{let n=e.name.replace(`images/`,``);return e.name.startsWith(`images/`)&&(!t||t({...e,name:n}))}),r={};for(let e in n){let t=n[e];if(t instanceof Uint8Array){let n=e.replace(`images/`,``);r[n]=ht(t)}}return r}async function Et(e,t){var n;let r=new Map;for(let[e,i]of Object.entries(t))for(let t of i.assets||[])if(gt(t)){let i=t.p;r.has(i)||r.set(i,new Set),(n=r.get(i))==null||n.add(e)}let i=await Tt(e,e=>r.has(e.name));for(let[e,n]of r){let r=i[e];if(r)for(let i of n){let n=t[i];for(let t of n?.assets||[])gt(t)&&t.p===e&&(t.p=r,t.u=``,t.e=1)}}}async function Dt(e,t,{inlineAssets:n}={},r){let i=await yt(e,`animations/${t}.json`,r);if(typeof i>`u`)return;let a=JSON.parse(F(i,!1));if(!n)return a;let o={[t]:a};return await Et(e,o),await wt(e,o),a}async function Ot(e,t,n){let r=await yt(e,`themes/${t}.json`,n);if(!(typeof r>`u`))return JSON.parse(F(r,!1))}async function kt(e,t){let n={},r=await vt(e,e=>{let n=e.name.replace(`states/`,``).replace(`.json`,``);return e.name.startsWith(`states/`)&&(!t||t({...e,name:n}))});for(let e in r){let t=r[e];if(t instanceof Uint8Array){let r=e.replace(`states/`,``).replace(`.json`,``);n[r]=F(t,!1)}}return n}async function At(e,t,n){let r=await yt(e,`states/${t}.json`,n);return typeof r>`u`?void 0:JSON.parse(F(r,!1))}Ue(Ye());function q(e,t=`dotLottie-common`){return Error(`[${t}]: ${e}`)}function J(e,t=`dotLottie-common`,...n){console.error(`[${t}]:`,e,...n)}function Y(e,t=`dotLottie-common`,...n){console.warn(`[${t}]:`,e,...n)}function jt(e=``){let t=e.trim(),n=t.lastIndexOf(`/`),r=t.substring(n+1),i=r.indexOf(`.`);return i===-1?r:r.substring(0,i)}function Mt(e){return[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`].every(t=>Object.prototype.hasOwnProperty.call(e,t))}function Nt(e){let t=e.assets;return t?t.some(e=>_t(e)):!1}function Pt(e){try{return Mt(JSON.parse(e))}catch{return!1}}function Ft(e,t){let n=Object.keys(e).find(n=>e[n]===t);if(n===void 0)throw Error(`Value not found in the object.`);return n}function It(e){return JSON.parse(JSON.stringify(e))}var Lt=class{_dotLottie;_animationsMap=new Map;_themeMap=new Map;_stateMachinesMap=new Map;_manifest;get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(e){let t=await fetch(e,{method:`GET`,mode:`cors`});if(!t.ok)throw Error(`Failed to load dotLottie from ${e} with status ${t.status}`);let n=t.headers.get(`content-type`);if(n!=null&&n.includes(`application/json`)){let n=await t.json();if(!Mt(n))throw Error(`Invalid lottie JSON at ${e}`);let r=jt(e);this._animationsMap.set(r,n);let i={activeAnimationId:r,animations:[{id:r}]};this._manifest=i}
2else{this._dotLottie=await St(await t.arrayBuffer());let e=await bt(this._dotLottie);if(!e)throw Error(`Manifest not found`);this._manifest=e}}loadFromLottieJSON(e){if(!Mt(e))throw Error(`Invalid lottie JSON`);let t=`my-animation`;this._animationsMap.set(t,e);let n={activeAnimationId:t,animations:[{id:t}]};this._manifest=n}async loadFromArrayBuffer(e){this._dotLottie=await St(e);let t=await bt(this._dotLottie);if(!t)throw Error(`Manifest not found`);this._manifest=t}async getAnimation(e){if(this._animationsMap.get(e))return this._animationsMap.get(e);if(!this._dotLottie)return;let t=await Dt(this._dotLottie,e,{inlineAssets:!0});return t&&this._animationsMap.set(e,t),t}async getTheme(e){if(this._themeMap.get(e))return this._themeMap.get(e);if(!this._dotLottie)return;let t=await Ot(this._dotLottie,e);return t&&this._themeMap.set(e,t),t}async getStateMachines(){if(!this._dotLottie)return;let e=await kt(this._dotLottie);for(let t in e)if(t){let n=e[t];if(n){let e=JSON.parse(n);if(e){let t=e.descriptor.id;this._stateMachinesMap.get(t)||this._stateMachinesMap.set(t,e)}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(e){if(this._stateMachinesMap.get(e))return this._stateMachinesMap.get(e);if(!this._dotLottie)return;let t=await At(this._dotLottie,e);return t&&this._stateMachinesMap.set(t.descriptor.id,t),t}};function Rt(){throw Error(`Cycle detected`)}function zt(){if(Vt>1)Vt--;else{for(var e,t=!1;Bt!==void 0;){var n=Bt;for(Bt=void 0,Ht++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Kt(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(Ht=0,Vt--,t)throw e}}var X=void 0,Bt=void 0,Vt=0,Ht=0,Ut=0;function Wt(e){if(X!==void 0){var t=e.n;if(t===void 0||t.t!==X)return t={i:0,S:e,p:X.s,n:void 0,t:X,e:void 0,x:void 0,r:t},X.s!==void 0&&(X.s.n=t),X.s=t,e.n=t,32&X.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=X.s,t.n=void 0,X.s.n=t,X.s=t),t}}function Z(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Z.prototype.h=function(){return!0},Z.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Z.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Z.prototype.subscribe=function(e){var t=this;return $t(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+``},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){return this.v},Object.defineProperty(Z.prototype,"value",{get:function(){var e=Wt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(X instanceof Q&&function(){throw Error(`Computed cannot have side-effects`)}(),e!==this.v){Ht>100&&Rt(),this.v=e,this.i++,Ut++,Vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{zt()}}}});function Gt(e){return new Z(e)}function Kt(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function qt(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Jt(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Q(e){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=Ut-1,this.f=4}(Q.prototype=new Z).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ut))return!0;if(this.g=Ut,this.f|=1,this.i>0&&!Kt(this))return this.f&=-2,!0;var e=X;try{qt(this),X=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return X=e,Jt(this),this.f&=-2,!0},Q.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Z.prototype.S.call(this,e)},Q.prototype.U=function(e){if(this.t!==void 0&&(Z.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Q.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Q.prototype.peek=function(){if(this.h()||Rt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Q.prototype,"value",{get:function(){1&this.f&&Rt();var e=Wt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Yt(e){var t=e.u;if(e.u=void 0,typeof t==`function`){Vt++;var n=X;X=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Xt(e),t}finally{X=n,zt()}}}function Xt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Yt(e)}function Zt(e){if(X!==this)throw Error(`Out-of-order effect`);Jt(this),X=e,this.f&=-2,8&this.f&&Xt(this),zt()}function Qt(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Qt.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.u=t)}finally{e()}},Qt.prototype.S=function(){1&this.f&&Rt(),this.f|=1,this.f&=-9,Yt(this),qt(this),Vt++;var e=X;return X=this,Zt.bind(this,e)},Qt.prototype.N=function(){2&this.f||(this.f|=2,this.o=Bt,Bt=this)},Qt.prototype.d=function(){this.f|=8,1&this.f||Xt(this)};function $t(e){var t=new Qt(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}var en=class{_state;_prevState;constructor(e){this._prevState=e,this._state=Gt(e)}setState(e){this._prevState=this._state.value,this._state.value=e}subscribe(e){return this._state.subscribe(t=>e(t,this._prevState))}};async function tn(t,n){let[{DotLottieStateMachineManager:r}]=await Promise.all([e(()=>import(`./CGuhRMzS.js`),[],import.meta.url)]);if(!t.length)throw q(`No state machines available inside this .lottie!`);return new r(t,n)}var nn={name:`@dotlottie/common`,version:`0.7.11`,type:`module`,description:``,author:`Afsal <[email protected]>, Sam Osborne <[email protected]>`,license:`MIT`,engines:{node:`>18.0.0`},module:`dist/index.js`,main:`dist/index.js`,types:`dist/index.d.ts`,files:[`dist`],keywords:[],scripts:{build:`tsup`,dev:`t
2sup --watch`,lint:`eslint .`,"type-check":`tsc --noEmit`},dependencies:{"@dotlottie/dotlottie-js":`^0.7.0`,"@preact/signals-core":`^1.2.3`,howler:`^2.2.3`,"lottie-web":`^5.12.2`,xstate:`^4.38.1`},devDependencies:{"@lottiefiles/lottie-types":`^1.2.0`,"@types/howler":`^2.2.8`,tsup:`^7.2.0`,typescript:`^4.7.4`},publishConfig:{access:`public`}},rn=(e=>(e.Complete=`complete`,e.DataFail=`data_fail`,e.DataReady=`data_ready`,e.Error=`error`,e.Frame=`frame`,e.Freeze=`freeze`,e.LoopComplete=`loopComplete`,e.Pause=`pause`,e.Play=`play`,e.Ready=`ready`,e.Stop=`stop`,e.VisibilityChange=`visibilityChange`,e))(rn||{}),an=(e=>(e.Completed=`completed`,e.Error=`error`,e.Fetching=`fetching`,e.Frozen=`frozen`,e.Initial=`initial`,e.Loading=`loading`,e.Paused=`paused`,e.Playing=`playing`,e.Ready=`ready`,e.Stopped=`stopped`,e))(an||{}),on=(e=>(e.Bounce=`bounce`,e.Normal=`normal`,e))(on||{}),$={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:`normal`,speed:1,defaultTheme:``},sn={activeStateId:``,autoplay:!1,currentState:`initial`,frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:`normal`,speed:1,background:`transparent`,intermission:0,currentAnimationId:void 0,visibilityPercentage:0},cn=class{_lottie;_src;_animationConfig;_prevUserPlaybackOptions={};_userPlaybackOptions;_hover=!1;_loop=!1;_counter=0;_intermission=0;_counterInterval=null;_container=null;_name;_mode=`normal`;_background=`transparent`;_animation;_defaultTheme;_activeAnimationId;_currentAnimationId;_testId;_listeners=new Map;_currentState=`initial`;_stateBeforeFreeze=`initial`;state=new en(sn);_light=!1;_worker=!1;_dotLottieLoader=new Lt;_activeStateId;_inInteractiveMode=!1;_scrollTicking=!1;_scrollCallback=void 0;_onShowIntersectionObserver=void 0;_visibilityPercentage=0;_audios=[];_stateMachineManager;constructor(e,t,n){this._src=typeof e==`string`?e:It(e),n!=null&&n.testId&&(this._testId=n.testId),this._defaultTheme=n?.defaultTheme||``,this._userPlaybackOptions=this._validatePlaybackOptions(n||{}),typeof n?.activeAnimationId==`string`&&(this._activeAnimationId=n.activeAnimationId),this._container=t||null,typeof n?.background==`string`&&this.setBackground(n.background),typeof n?.activeStateId<`u`&&(this._activeStateId=n.activeStateId);let{rendererSettings:r,...i}=n||{};this._animationConfig={loop:!1,autoplay:!1,renderer:`svg`,rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0,filterSize:{width:`200%`,height:`200%`,x:`-50%`,y:`-50%`},...r},...i},n!=null&&n.light&&(this._light=n.light),n!=null&&n.worker&&(this._worker=n.worker),this._listenToHover(),this._listenToVisibilityChange()}_listenToHover(){var e,t,n,r;let i=()=>{this._hover&&this.currentState!==`playing`&&this.play()},a=()=>{this._hover&&this.currentState===`playing`&&this.stop()};(e=this._container)==null||e.removeEventListener(`mouseenter`,i),(t=this._container)==null||t.removeEventListener(`mouseleave`,a),(n=this._container)==null||n.addEventListener(`mouseleave`,a),(r=this._container)==null||r.addEventListener(`mouseenter`,i)}_onVisibilityChange(){!this._lottie||typeof document>`u`||(document.hidden&&this.currentState===`playing`?this.freeze():this.currentState===`frozen`&&this.unfreeze())}_listenToVisibilityChange(){typeof document<`u`&&typeof document.hidden<`u`&&document.addEventListener(`visibilitychange`,()=>this._onVisibilityChange())}_getOption(e){if(typeof this._userPlaybackOptions[e]<`u`)return this._userPlaybackOptions[e];let t=this._dotLottieLoader.manifest?.animations.find(e=>e.id===this._currentAnimationId);return t&&typeof t[e]<`u`?t[e]:$[e]}_getPlaybackOptions(){let e={};for(let t in $)typeof $[t]<`u`&&(e[t]=this._getOption(t));return e}_setPlayerState(e){var t,n,r;let i=e(this._getPlaybackOptions());try{tt._parse(i)}catch{Y(`Invalid PlaybackOptions, ${JSON.stringify(i,null,2)}`);return}typeof i.defaultTheme<`u`&&(this._defaultTheme=i.defaultTheme),typeof i.playMode<`u`&&(this._mode=i.playMode),typeof i.intermission<`u`&&(this._intermission=i.intermission),typeof i.hover<`u`&&(this._hover=i.hover),typeof i.loop<`u`&&(this.clearCountTimer(),this._loop=i.loop,this._counter=0,(t=this._lottie)==null||t.setLoop(typeof i.loop==`number`||i.loop)),typeof i.speed<`u`&&((n=this._lottie)==null||n.setSpeed(i.speed)),typeof i.autoplay<`u`&&this._lottie&&(this._lottie.autoplay=i.autoplay),typeof i.direction<`u`&&((r=this._lottie)==null||r.setDirection(i.direction))}_getOptionsFromAnimation(e){let{id:t,...n}=e;return{...$,...n}}_updateTestData(){!this._testId||!this._lottie||(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed})}setContainer(e){e!==this._container&&(this._container=e,this.setBackgroun
2d(this._background),this._listenToHover())}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval)}setCurrentState(e){this._currentState=e,this._notify(),this._updateTestData()}static isPathJSON(e){return e.split(`.`).pop()?.toLowerCase()===`json`}get src(){return this._src}updateSrc(e){this._src!==e&&(this._src=typeof e==`string`?e:It(e),this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load())}get intermission(){return this._intermission}get hover(){return this._hover}setHover(e){typeof e==`boolean`&&(this._hover=e,this._userPlaybackOptions.hover=e,this._notify())}setIntermission(e){this._intermission=e,this._userPlaybackOptions.intermission=e,this._notify()}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(e){typeof e==`string`&&(this._mode=e,this._userPlaybackOptions.playMode=e,this._setPlayerState(()=>({playMode:e})),this._notify(),this._updateTestData())}get container(){if(this._container)return this._container}goToAndPlay(e,t,n){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`goToAndPlay() Can't use whilst loading.`);return}this._lottie.goToAndPlay(e,t,n),this.setCurrentState(`playing`)}goToAndStop(e,t,n){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`goToAndStop() Can't use whilst loading.`);return}this._lottie.goToAndStop(e,t,n),this.setCurrentState(`stopped`)}seek(e){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`seek() Can't use whilst loading.`);return}let t=e;typeof t==`number`&&(t=Math.round(t));let n=/^(\d+)(%?)$/u.exec(t.toString());if(!n)return;let r=n[2]===`%`?this.totalFrames*Number(n[1])/100:n[1];r!==void 0&&(this._lottie.goToAndPlay(r,!0),this.currentState===`playing`?this.play():this.currentState===`frozen`?this.freeze():this.pause())}_areNumbersInRange(e,t){return e>=0&&e<=1&&t>=0&&t<=1}_updatePosition(e,t,n){let[r,i]=e??[0,this.totalFrames-1],[a,o]=t??[0,1];if(!this._areNumbersInRange(a,o)){J(`threshold values must be between 0 and 1`);return}if(this.container){let{height:e,top:t}=this.container.getBoundingClientRect(),s=(window.innerHeight-t)/(window.innerHeight+e),c=r+Math.round((s-a)/(o-a)*(i-r));n&&n(s),this.goToAndStop(c,!0),(c>=i||s>=o)&&this._handleAnimationComplete()}this._scrollTicking=!1}_requestTick(e,t,n){this._scrollTicking||=(requestAnimationFrame(()=>this._updatePosition(e,t,n)),!0)}playOnScroll(e){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(e?.segments,e?.threshold,e?.positionCallback),window.addEventListener(`scroll`,this._scrollCallback)}stopPlayOnScroll(){this._scrollCallback&&=(window.removeEventListener(`scroll`,this._scrollCallback),void 0)}stopPlayOnShow(){this._onShowIntersectionObserver&&=(this._onShowIntersectionObserver.disconnect(),void 0)}addIntersectionObserver(e){if(!this.container)throw q(`Can't play on show, player container element not available.`);let t={root:null,rootMargin:`0px`,threshold:e!=null&&e.threshold?e.threshold:[0,1]},n=t=>{t.forEach(t=>{var n,r;this._visibilityPercentage=t.intersectionRatio*100,t.isIntersecting?(e!=null&&e.callbackOnIntersect&&e.callbackOnIntersect(this._visibilityPercentage),(n=this._container)==null||n.dispatchEvent(new Event(`visibilityChange`))):e!=null&&e.callbackOnIntersect&&(e.callbackOnIntersect(0),(r=this._container)==null||r.dispatchEvent(new Event(`visibilityChange`)))})};this._onShowIntersectionObserver=new IntersectionObserver(n,t),this._onShowIntersectionObserver.observe(this.container)}playOnShow(e){if(this.stop(),!this.container)throw q(`Can't play on show, player container element not available.`);this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:e?.threshold??[],callbackOnIntersect:e=>{e===0?this.pause():this.play()}})}_validatePlaybackOptions(e){if(!e)return{};let t={};for(let[n,r]of Object.entries(e))switch(n){case`autoplay`:typeof r==`boolean`&&(t.autoplay=r);break;case`direction`:typeof r==`number`&&[1,-1].includes(r)&&(t.direction=r);break;case`loop`:(typeof r==`boolean`||typeof r==`number`)&&(t.loop=r);break;case`playMode`:typeof r==`string`&&[`normal`,`bounce`].includes(r)&&(t.playMode=r);break;case`speed`:typeof r==`number`&&(t.speed=r);break;case`themeColor`:typeof r==`string`&&(t.themeColor=r);break;case`hover`:typeof r==`boolean`&&(t.hover=r);break;case`intermission`:typeof r==`number`&&(t.intermission=r);break;case`defaultTheme`:typeof r==`string`&&(t.defaultTheme=r);break}return this._requireValidPlaybackOptions(t),t}_requireAnimationsInTheManifest(){var e;if(!((e=this._dotLottieLoader.manifest)!=null&&e.animations.length))throw q(`No animations foun
2d in manifest.`)}_requireAnimationsToBeLoaded(){if(this._dotLottieLoader.animationsMap.size===0)throw q(`No animations have been loaded.`)}async play(e,t){if([`initial`,`loading`].includes(this._currentState)){Y(`Player unable to play whilst loading.`);return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!e){this._lottie.playDirection===-1&&this._lottie.currentFrame===0?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState(`playing`);return}if(typeof e==`number`){let n=this._dotLottieLoader.manifest?.animations[e];if(!n)throw q(`animation not found.`);typeof t==`function`?await this.render({id:n.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):await this.render({id:n.id})}if(typeof e==`string`){let n=this._dotLottieLoader.manifest?.animations.find(t=>t.id===e);if(!n)throw q(`animation not found.`);typeof t==`function`?await this.render({id:n.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):await this.render({id:n.id})}}playSegments(e,t){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`playSegments() Can't use whilst loading.`);return}this._lottie.playSegments(e,t),this.setCurrentState(`playing`)}resetSegments(e){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`resetSegments() Can't use whilst loading.`);return}this._lottie.resetSegments(e)}togglePlay(){this.currentState===`playing`?this.pause():this.play()}_getAnimationByIdOrIndex(e){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof e==`number`){let t=this._dotLottieLoader.manifest?.animations[e];if(!t)throw q(`animation not found.`);return t}if(typeof e==`string`){let t=this._dotLottieLoader.manifest?.animations.find(t=>t.id===e);if(!t)throw q(`animation not found.`);return t}throw q(`first param must be a number or string`)}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(e){if(!this._inInteractiveMode){J(`Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.`);return}if(this._dotLottieLoader.stateMachinesMap.size===0&&await this._dotLottieLoader.getStateMachines(),this._dotLottieLoader.stateMachinesMap.size===0)throw q(`No interactivity states are available.`);if(e===`undefined`)throw q(`stateId is not specified.`);this._stateMachineManager||=await tn(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this),this._stateMachineManager.start(e)}enterInteractiveMode(e){var t;if(e)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&((t=this._stateMachineManager)==null||t.stop()),this._activeStateId=e,this._inInteractiveMode=!0,this._startInteractivity(e);else throw q(`stateId must be a non-empty string.`)}exitInteractiveMode(){var e;this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId=``,(e=this._stateMachineManager)==null||e.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset())}reset(){let e=this._getActiveAnimationId(),t=this._dotLottieLoader.manifest?.animations.find(t=>t.id===e);if(this._inInteractiveMode&&this.exitInteractiveMode(),!t)throw q(`animation not found.`);this.play(e)}previous(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw q(`manifest not found.`);if(this._inInteractiveMode){Y(`previous() is not supported in interactive mode.`);return}let t=this._dotLottieLoader.manifest.animations.findIndex(e=>e.id===this._currentAnimationId);if(t===-1)throw q(`animation not found.`);let n=this._dotLottieLoader.manifest.animations[(t-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw q(`animation not found.`);typeof e==`function`?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}next(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw q(`manifest not found.`);if(this._inInteractiveMode){Y(`next() is not supported in interactive mode.`);return}let t=this._dotLottieLoader.manifest.animations.findIndex(e=>e.id===this._currentAnimationId);if(t===-1)throw q(`animation not found.`);let n=this._dotLottieLoader.manifest.animations[(t+1)%this._dotLottieLoader.manifest.animations.length];if(!n||!n.id)throw q(`animation not found.`);typeof e==`function`?this.render({id:n.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):this.render({id:n.id})}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`resize() Can't use whilst loading.`);return}this._lottie.resize()}stop(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`stop() Can't use whilst loading.`);return}this.clearCountTimer(),this._counter=0,this._setPlayerState(()=>({direction:this._getOption(`direction`)})),this._lottie.stop(),this.setCurrentState(`stopped`)}pause(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`pause() Can't use whilst loading.`);return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState(`paused`)}freeze(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`freeze() Can't use whilst loading.`);return}this.currentState!==`frozen`&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState(`frozen`)}unfreeze(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`unfreeze() Can't use whilst loading.`);return}this._stateBeforeFreeze===`playing`?this.play():this.pause()}destroy(){var e,t;(e=this._container)!=null&&e.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this._audios.length&&(this._audios.forEach(e
2=>{e.unload()}),this._audios=[]),this.clearCountTimer(),typeof document<`u`&&document.removeEventListener(`visibilitychange`,()=>this._onVisibilityChange()),this._counter=0,(t=this._lottie)==null||t.destroy(),this._lottie=void 0}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return`${nn.dependencies[`lottie-web`]}`}addEventListener(e,t){var n,r,i;this._listeners.has(e)||this._listeners.set(e,new Set),(n=this._listeners.get(e))==null||n.add(t);try{e===`complete`?(r=this._container)==null||r.addEventListener(e,t):(i=this._lottie)==null||i.addEventListener(e,t)}catch(e){J(`addEventListener ${e}`)}}getState(){return{autoplay:this._lottie?.autoplay??!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:this._lottie?.playDirection??1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:this._lottie?.playSpeed??1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:this._activeStateId??``}}_notify(){this.state.setState(this.getState())}get totalFrames(){return this._lottie?.totalFrames||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(e){this._requireValidDirection(e),this._setPlayerState(()=>({direction:e})),this._userPlaybackOptions.direction=e}get speed(){return this._lottie?.playSpeed||1}setSpeed(e){this._requireValidSpeed(e),this._setPlayerState(()=>({speed:e})),this._userPlaybackOptions.speed=e}get autoplay(){return this._lottie?.autoplay??!1}setAutoplay(e){if(this._requireValidAutoplay(e),!this._lottie||[`loading`].includes(this._currentState)){Y(`setAutoplay() Can't use whilst loading.`);return}this._setPlayerState(()=>({autoplay:e})),this._userPlaybackOptions.autoplay=e}toggleAutoplay(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`toggleAutoplay() Can't use whilst loading.`);return}this.setAutoplay(!this._lottie.autoplay)}get defaultTheme(){return this._defaultTheme}setDefaultTheme(e){this._setPlayerState(()=>({defaultTheme:e})),this._userPlaybackOptions.defaultTheme=e,this._animation&&this.render()}get loop(){return this._loop}setLoop(e){this._requireValidLoop(e),this._setPlayerState(()=>({loop:e})),this._userPlaybackOptions.loop=e}toggleLoop(){if(!this._lottie||[`loading`].includes(this._currentState)){Y(`toggleLoop() Can't use whilst loading.`);return}this.setLoop(!this._loop)}get background(){return this._background}setBackground(e){this._requireValidBackground(e),this._background=e,this._container&&(this._container.style.backgroundColor=e)}get _frame(){return this._lottie?this.currentState===`completed`?this.direction===-1?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(e){let t;t=!Array.isArray(e)||e.length===0?[`autoplay`,`defaultTheme`,`direction`,`hover`,`intermission`,`loop`,`playMode`,`speed`,`activeAnimationId`]:e;let n=!1;if(t.includes(`activeAnimationId`)){let e=this._dotLottieLoader.manifest?.activeAnimationId,t=this._getAnimationByIdOrIndex(e||0);this._activeAnimationId=e,await this._setCurrentAnimation(t.id),n=!0}t.forEach(e=>{switch(e){case`autoplay`:delete this._userPlaybackOptions.autoplay,this.setAutoplay(this._getOption(`autoplay`));break;case`defaultTheme`:delete this._userPlaybackOptions.defaultTheme,this.setDefaultTheme(this._getOption(`defaultTheme`));break;case`direction`:delete this._userPlaybackOptions.direction,this.setDirection(this._getOption(`direction`));break;case`hover`:delete this._userPlaybackOptions.hover,this.setHover(this._getOption(`hover`));break;case`intermission`:delete this._userPlaybackOptions.intermission,this.setIntermission(this._getOption(`intermission`));break;case`loop`:delete this._userPlaybackOptions.loop,this.setLoop(this._getOption(`loop`));break;case`playMode`:delete this._userPlaybackOptions.playMode,this.setMode(this._getOption(`playMode`)),this.setDirection(this._getOption(`direction`));break;case`speed`:delete this._userPlaybackOptions.speed,this.setSpeed(this._getOption(`speed`))}}),n&&this.render()}removeEventListener(e,t){var n,r,i;try{e===`complete`?(n=this._container)==null||n.removeEventListener(e,t):(r=this._lottie)==null||r.removeEventListener(e,t),(i=this._listeners.get(e))==null||i.delete(t)}catch(e){J(`removeEventListener`,e)}}_handleAnimationComplete(){var e;typeof this._loop==`number`&&this.stop();let t=this.direction===-1?0:this.totalFrames-1;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState(`completed`),(e=this._container)==null||e.dispatchEvent(new Event(`complete`))}addEventListeners(){var e;if(!this._lottie||[`loading`].includes(this._currentState)){Y(`addEventListeners() Can't use whilst loading.`);return}this._lottie.addEventListener(`enterFrame`,()=>{var e;if(!this._lottie){Y(`enterFrame event : Lottie is undefined.`);return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&((e=this._container)==null||e.dispatchEvent(new Event(`complete`)),this.loop||this.setCurrentState(`completed`)),this._notify()}),this._lottie.addEventListener(`loopComplete`,()=>{var e;if(!this._lottie){Y(`loopComplete event : Lottie is undefined.`);return}(e=this._container)==null||e.dispatchEvent(new Event(`loopComplete`)),this.intermission>0&&this.pause();let t=this._lottie.playDirection;if(typeof this._loop==`number`&&this._loop>0&&(this._counter+=this._mode===`bounce`?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}this._mode===`bounce`&&typeof t==`number`&&(t=Number(t)*-1);let n=t===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(n,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(n,!0))},this._intermission)):(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(t===-1?this.totalFrames-1:0,!0))}),this._lottie.addEventListener(`complete`,()=>{if(this._lottie&&this._loop===!1&&this._mode===`bounce`){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let e=this._lottie.playDirection;this._mode===`bounce`&&typeof e==`number`&&(e=Number(e)*-1);let t=e===-1?this.totalFrames-1:0;this._setPlayerState(()=>({direction:e})),this.goToAndPlay(t,!0)},this._intermission)}else this._handleAnimationComplete()});for(let[t,n]of this._listeners)if(t===`complete`)for(let r of n)(e=this._container)==null||e.addEventListener(t,r);else for(let e of n)this._lottie.addEventListener(t,e)}async _setCurrentAnimation(e){this._currentState=`loading`;let t=await this._dotLottieLoader.getAnimation(e);this._currentAnimationId=e,this._animation=t,this._currentState=`ready`}async _getAudioFactory(){if(this._animation&&Nt(this._animation)){let{DotLottieAudio:t}=await e(async()=>{let{DotLottieAudio:e}=await import(`./B07oWCSx.js`);return{DotLottieAudio:e}},__vite__mapDeps([0,1]),import.meta.url);return e=>{let n=new t({src:[e]});return this._audios.push(n),n}}return null}async render(e){if(e!=null&&e.id)await this._setCurrentAnimation(e.id);else if(!this._animation)throw q(`no animation selected`);
2let t=$.loop??!1,n=$.autoplay??!1,r=$.playMode??`normal`,i=$.intermission??0,a=$.hover??!1,o=$.direction??1,s=$.speed??1,c=$.defaultTheme??``;t=e?.loop??this._getOption(`loop`),n=e?.autoplay??this._getOption(`autoplay`),r=e?.playMode??this._getOption(`playMode`),i=e?.intermission??this._getOption(`intermission`),a=e?.hover??this._getOption(`hover`),o=e?.direction??this._getOption(`direction`),s=e?.speed??this._getOption(`speed`),c=e?.defaultTheme??this._getOption(`defaultTheme`);let l={...this._animationConfig,autoplay:!a&&n,loop:typeof t==`number`||t,renderer:this._worker?`svg`:this._animationConfig.renderer??`svg`},[u,d,f]=await Promise.all([this._dotLottieLoader.getTheme(c),this._getLottiePlayerInstance(),this._getAudioFactory()]);if(u&&this._animation?(this._animation=It(this._animation),this._animation.slots=u):this._animation=await this._dotLottieLoader.getAnimation(this._currentAnimationId??``),this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:c,playMode:r,intermission:i,hover:a,loop:t})),this._lottie=f?d.loadAnimation({...l,container:this._container,animationData:this._animation,audioFactory:f}):d.loadAnimation({...l,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>`u`&&(this._lottie.resetSegments=()=>{var e;(e=this._lottie)==null||e.playSegments([0,this._lottie.totalFrames],!0)}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:o,speed:s})),n&&!a&&(t===!1&&o===-1?this.play():this.setCurrentState(`playing`)),this._updateTestData()}async _getLottiePlayerInstance(){let t=this._animationConfig.renderer??`svg`,n;if(this._worker)return t!==`svg`&&Y(`Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning.`),n=await e(()=>import(`./L1cue2ys.js`),__vite__mapDeps([2,1]),import.meta.url),n.default;switch(t){case`svg`:n=this._light?await e(()=>import(`./BkDCLacB.js`),__vite__mapDeps([3,1]),import.meta.url):await e(()=>import(`./CRspGpI1.js`),__vite__mapDeps([4,1]),import.meta.url);break;case`canvas`:n=this._light?await e(()=>import(`./IbZXltk7.js`),__vite__mapDeps([5,1]),import.meta.url):await e(()=>import(`./NNgoVV18.js`),__vite__mapDeps([6,1]),import.meta.url);break;case`html`:n=this._light?await e(()=>import(`./De5-GsJI.js`),__vite__mapDeps([7,1]),import.meta.url):await e(()=>import(`./dMdLYHJ2.js`),__vite__mapDeps([8,1]),import.meta.url);break;default:throw Error(`Invalid renderer: ${t}`)}return n.default}_getActiveAnimationId(){let e=this._dotLottieLoader.manifest;return this._activeAnimationId??e?.activeAnimationId??e?.animations[0]?.id??void 0}async load(e){if(this._currentState===`loading`){Y(`Loading in progress..`);return}try{if(this.setCurrentState(`loading`),typeof this._src==`string`){if(Pt(this._src)){let e=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(e)}else{let e=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(e.toString())}}else if(typeof this._src==`object`&&Mt(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw q(`Invalid src provided`);if(!this._dotLottieLoader.manifest)throw q(`No manifest found`);let t=this._getActiveAnimationId();if(!t)throw q(`No active animation found`);await this._setCurrentAnimation(t),await this.render(e)}catch(e){this.setCurrentState(`error`),e instanceof Error&&J(`Error loading animation: ${e.message}`)}}setErrorState(e){this.setCurrentState(`error`),J(e)}_requireValidDirection(e){if(e!==-1&&e!==1)throw q(`Direction can only be -1 (backwards) or 1 (forwards)`)}_requireValidIntermission(e){if(e<0||!Number.isInteger(e))throw q(`intermission must be a positive number`)}_requireValidLoop(e){if(typeof e==`number`&&(!Number.isInteger(e)||e<0))throw q(`loop must be a positive number or boolean`)}_requireValidSpeed(e){if(typeof e!=`number`)throw q(`speed must be a number`)}_requireValidBackground(e){if(typeof e!=`string`)throw q(`background must be a string`)}_requireValidAutoplay(e){if(typeof e!=`boolean`)throw q(`autoplay must be a boolean`)}_requireValidPlaybackOptions(e){e.direction&&this._requireValidDirection(e.direction),e.intermission&&this._requireValidIntermission(e.intermission),e.loop&&this._requireValidLoop(e.loop),e.speed&&this._requireValidSpeed(e.speed)}};export{cn as a,$ as c,q as i,Ft as l,on as n,Y as o,J as r,sn as s,rn as t,an as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.