@aarsteinmedia/dotlottie-player 6.4.2 → 6.4.3

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.
@@ -5,13 +5,13 @@
5
5
  `,t)}}triggerConfigError(t){let e=new s9(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}triggerRenderFrameError(t){let e=new s6(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}unmute(t){t&&this.name!==t||this.audioController.unmute()}updateDocumentData(t,e,s){try{let i=this.renderer.getElementByPath(t);i?.updateDocumentData([],e,s)}catch(t){M(this.constructor.name,t)}}updateFrameModifier(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)}waitForFontsLoaded(){this.renderer.globalData?.fontManager?.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20)}}let iq=!1,ij=!0,iH=0,iW=0,iY=0,iU=[];function iJ(t){for(let e=iW-1;e>=0;e--)iU[e]?.animation.destroy(t)}function iX(){iq=!0}function iZ(){let{length:t}=iU,e=[];for(let s=0;s<t;s++)e.push(iU[s].animation);return e}function iK(t,e,s){for(let i=0;i<iW;i++)iU[i]?.animation.goToAndStop(t,e,s)}function iQ(t){try{let e=new iG;return rh(e,null),e.setParams(t),e}catch(t){throw M("AnimationManager:\n",t),Error("Could not load animation",{cause:t})}}function i0(t){for(let e=0;e<iW;e++)iU[e]?.animation.mute(t)}function i1(t){for(let e=0;e<iW;e++)iU[e]?.animation.pause(t)}function i2(t){for(let e=0;e<iW;e++)iU[e]?.animation.play(t)}function i3(t,e){try{if(!t)return null;let s=0;for(;s<iW;){if(iU[s]?.elem===t&&iU[s]?.elem!==null)return iU[s]?.animation;s++}let i=new iG;return rh(i,t),i.setData(t,e),i}catch(t){throw M("AnimationManager:\n",t),Error("Could not register animation")}}function i5(){for(let t=0;t<iW;t++)iU[t]?.animation.resize()}function i4(t,e,s){if(b)return;let i=[...document.getElementsByClassName("lottie"),...document.getElementsByClassName("bodymovin")],{length:r}=i;for(let e=0;e<r;e++)i3(i[e],t)}function i6(t,e){for(let s=0;s<iW;s++)iU[s]?.animation.setDirection(t,e)}function i9(t,e){for(let s=0;s<iW;s++)iU[s]?.animation.setSpeed(t,e)}function i8(t,e){for(let s=0;s<iW;s++)iU[s]?.animation.setVolume(t,e)}function i7(t){for(let e=0;e<iW;e++)iU[e]?.animation.stop(t);ij=!0}function rt(t){for(let e=0;e<iW;e++)iU[e]?.animation.togglePause(t)}function re(){iq=!1,ri()}function rs(t){for(let e=0;e<iW;e++)iU[e]?.animation.unmute(t)}function ri(){!iq&&iY&&ij&&!b&&(requestAnimationFrame(ra),ij=!1)}function rr(){iY++,ri()}function ra(t){iH=t,b||requestAnimationFrame(ro)}function rn({target:t}){let e=0;if(!t)throw Error("No animation to remove");for(;e<iW;)iU[e]?.animation===t&&(iU.splice(e,1),e--,iW-=1,t.isPaused||rl()),e++}function ro(t){let e=t-iH;for(let t=0;t<iW;t++)iU[t].animation.advanceTime(e);iH=t,!iY||iq||ij?ij=!0:b||requestAnimationFrame(ro)}function rh(t,e){t.addEventListener(tr.Destroy,rn),t.addEventListener(tr.Active,rr),t.addEventListener(tr.Idle,rl),iU.push({animation:t,elem:e}),iW++}function rl(){iY--}let rp=(t,e,s,i)=>[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t],rm=(t,e,s)=>t*(1-s)+e*s,rc=(t,e,s)=>[rm(t[0],e[0],s),rm(t[1],e[1],s)],rd=(t,e,s)=>{let i=t.boundingBox();return{bez:t,cx:i.cx,cy:i.cy,height:i.height,t:(e+s)/2,t1:e,t2:s,width:i.width}},ru=t=>{let e=t.bez.split(.5);if(!e[0]||!e[1])throw Error("Could not set PolynomialBezier");return[rd(e[0],t.t1,t.t),rd(e[1],t.t,t.t2)]},rf=(t,e,s,i,r,a)=>{if(!(2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height))return;if(s>=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)return void r.push([t.t,e.t]);let n=ru(t),o=ru(e);if(!n[0]||!n[1]||!o[0]||!o[1])throw Error("Could not set IntersectData");rf(n[0],o[0],s+1,i,r,a),rf(n[0],o[1],s+1,i,r,a),rf(n[1],o[0],s+1,i,r,a),rf(n[1],o[1],s+1,i,r,a)},rg=t=>new ry(t,t,t,t,!1);class ry{constructor(t,e,s,i,r){let a=e,n=s;r&&C(t,a)&&(a=rc(t,i,1/3)),r&&C(n,i)&&(n=rc(t,i,2/3));const o=rp(t[0],a[0],n[0],i[0]),h=rp(t[1],a[1],n[1],i[1]);this.a=[o[0],h[0]],this.b=[o[1],h[1]],this.c=[o[2],h[2]],this.d=[o[3],h[3]],this.points=[t,a,n,i]}boundingBox(){let t=this.bounds();return{bottom:t.y.max,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2,height:t.y.max-t.y.min,left:t.x.min,right:t.x.max,top:t.y.min,width:t.x.max-t.x.min}}bounds(){return{x:this._extrema(this,0),y:this._extrema(this,1)}}derivative(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]}inflectionPoints(){let t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(S(t))return[];let e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,s=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(s<0)return[];let i=Math.sqrt(s);return S(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(t=>t>0&&t<1)}intersections(t,e,s){let i=e,r=s;i=i??2,r=r??7;let a=[];return rf(rd(this,0,1),rd(t,0,1),0,i,a,r),a}normalAngle(t){let e=this.derivative(t);return Math.atan2(e[0]??0,e[1]??0)}point(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]}split(t){if(t<=0)return[rg(this.points[0]),this];if(t>=1)return[this,rg(this.points[this.points.length-1])];let e=rc(this.points[0],this.points[1],t),s=rc(this.points[1],this.points[2],t),i=rc(this.points[2],this.points[3],t),r=rc(e,s,t),a=rc(s,i,t),n=rc(r,a,t);return[new ry(this.points[0],e,r,n,!0),new ry(n,a,i,this.points[3],!0)]}tangentAngle(t){let e=this.derivative(t);return Math.atan2(e[1]??0,e[0]??0)}_extrema(t,e){let s=t.points[0][e]??0,i=t.points[t.points.length-1]?.[e]??0;if(s>i){let t=i;i=s,s=t}let r=((t,e,s)=>{if(0===t)return[];let i=e*e-4*t*s;if(i<0)return[];let r=-e/(2*t);if(0===i)return[r];let a=Math.sqrt(i)/(2*t);return[r-a,r+a]})(3*(t.a[e]??0),2*(t.b[e]??0),t.c[e]??0),{length:a}=r;for(let n=0;n<a;n++){if((r[n]??0)<=0||(r[n]??0)>=1)continue;let a=t.point(r[n]??0)[e]??0;if(a<s){s=a;continue}a>i&&(i=a)}return{max:i,min:s}}}function rb(t,e){let s=(e+1)%t.length();return new ry(t.v[e],t.o[e],t.i[s],t.v[s],!0)}class rv extends tZ{addShape(t){if(this.closed)return;t.sh?.container?.addDynamicProperty(t.sh);let e={data:t,localShapeCollection:ei(),shape:t.sh};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}addShapeToModifier(t){}init(t,e,s,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length>0?this.k=!0:this.getValue(!0)}initModifierProperties(t,e){throw Error(`${this.constructor.name}: Method initModifierProperties is not implemented`)}isAnimatedWithShape(t){throw Error(`${this.constructor.name}: Method isAnimatedWithShape is not implemented`)}processKeys(){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId,this.iterateDynamicProperties()),0}constructor(...t){super(...t),this.shapes=[]}}let rx=(t,e)=>[(t[1]??0)*(e[2]??0)-(t[2]??0)*(e[1]??0),(t[2]??0)*(e[0]??0)-(t[0]??0)*(e[2]??0),(t[0]??0)*(e[1]??0)-(t[1]??0)*(e[0]??0)],rw=(t,e,s)=>[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s],r_=(t,e,s)=>{let i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[rw(t,i,s),rw(e,i,s)]},rE=(t,e,s,i)=>{let r=[t[0],t[1],1],a=[e[0],e[1],1],n=[s[0],s[1],1],o=[i[0],i[1],1],h=rx(rx(r,a),rx(n,o));return S(h[2]??0)?null:[(h[0]??0)/(h[2]??0),(h[1]??0)/(h[2]??0)]},rS=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]),rC=(t,e,s,i,r)=>{let a=e.points[3],n=s.points[0];if(3===i||C(a,n))return a;if(2===i){let i=-e.tangentAngle(1),r=-s.tangentAngle(0)+Math.PI,o=rE(a,rw(a,i+Math.PI/2,100),n,rw(n,i+Math.PI/2,100)),h=o?rS(o,a):rS(a,n)/2,l=rw(a,i,2*h*.5519);return t.setXYAt(l[0],l[1],"o",t.length()-1),l=rw(n,r,2*h*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],l[0],l[1],t.length()),n}let o=C(a,e.points[2])?e.points[0]:e.points[2],h=C(n,s.points[1])?s.points[3]:s.points[1],l=rE(o,a,n,h);return l&&rS(l,a)<r?(t.setTripleAt(l[0],l[1],l[0],l[1],l[0],l[1],t.length()),l):a},rk=(t,e)=>{let s,i=(s=r_(t.points[0],t.points[1],e))[0],r=s[1],a=(s=r_(t.points[1],t.points[2],e))[0],n=s[1],o=(s=r_(t.points[2],t.points[3],e))[0],h=s[1],l=rE(i,r,a,n);l=l??r;let p=rE(o,h,a,n);return new ry(i,l,p=p??o,h)},rP=(t,e)=>{let s,i,r,a=t.inflectionPoints();if(0===a.length)return[rk(t,e)];if(1===a.length||E(a[1]??0,1))return s=(r=t.split(a[0]??0))[0],i=r[1],[rk(s,e),rk(i,e)];s=(r=t.split(a[0]??0))[0];let n=((a[1]??0)-(a[0]??0))/(1-(a[0]??0)),o=(r=r[1]?.split(n))[0];return i=r[1],[rk(s,e),rk(o,e),rk(i,e)]},rM=(t,e)=>{let s=t.intersections(e);return(s.length>0&&E(s[0]?.[0]??0,1)&&s.shift(),s.length>0)?s[0]:null},rD=(t,e)=>{let s=[...t],i=[...e],r=rM(t[t.length-1],e[0]);return(r&&(s[t.length-1]=t[t.length-1]?.split(r[0]??0)[0],i[0]=e[0]?.split(r[1]??0)[1]),t.length>1&&e.length>1&&(r=rM(t[0],e[e.length-1])))?[[t[0]?.split(r[0]??0)[0]],[e[e.length-1]?.split(r[1]??0)[1]]]:[s,i]};class rT extends rv{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=t4.getProp(t,e.a,0,null,this),this.miterLimit=t4.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e,s,i){let r=t7();r.c=t.c;let a=t.length();t.c||(a-=1);let n,o=[];for(let s=0;s<a;s++)n=rb(t,s),o.push(rP(n,e));if(!t.c)for(let s=a-1;s>=0;s--)n=function(t,e){let s=(e+1)%t.length();return new ry(t.v[s],t.i[s],t.o[e],t.v[e],!0)}(t,s),o.push(rP(n,e));o=(t=>{let e;for(let s=1;s<t.length;s++)e=rD(t[s-1],t[s]),t[s-1]=e[0],t[s]=e[1];return t.length>1&&(e=rD(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t})(o);let h=null,l=null,{length:p}=o;for(let t=0;t<p;t++){let e=o[t];l&&(h=rC(r,l,e[0],s,i)),l=e[e.length-1];let{length:a}=e;for(let t=0;t<a;t++)n=e[t],h&&C(n.points[0],h)?r.setXYAt(n.points[1][0],n.points[1][1],"o",r.length()-1):r.setTripleAt(n.points[0][0],n.points[0][1],n.points[1][0],n.points[1][1],n.points[0][0],n.points[0][1],r.length()),r.setTripleAt(n.points[3][0],n.points[3][1],n.points[3][0],n.points[3][1],n.points[2][0],n.points[2][1],r.length()),h=n.points[3]}return p>0&&l&&rC(r,l,o[0]?.[0],s,i),r}processShapes(t){let{length:e}=this.shapes,s=Number(this.amount?.v),i=Number(this.miterLimit?.v),r=Number(this.lineJoin);if(0!==s){let a,n,o;for(let h=0;h<e;h++){if(o=(n=this.shapes[h]).localShapeCollection,!(!n.shape?._mdf&&!this._mdf&&!t)){o?.releaseShapes(),n.shape&&(n.shape._mdf=!0),a=n.shape?.paths?.shapes;let t=n.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=a?.[e];t&&o?.addShape(this.processPath(t,s,r,i))}}n.shape&&(n.shape.paths=n.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class rA extends rv{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=t4.getProp(t,e.a,0,null,this),this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e){let s,i,r,a,n,o,h,l=e/100,p=[0,0],m=t._length;for(s=0;s<m;s++)p[0]+=t.v[s]?.[0]??0,p[1]+=t.v[s]?.[1]??0;p[0]/=m,p[1]/=m;let c=t7();for(c.c=t.c,s=0;s<m;s++)i=(t.v[s]?.[0]??0)+((p[0]??0)-(t.v[s]?.[0]??0))*l,r=(t.v[s]?.[1]??0)+((p[1]??0)-(t.v[s]?.[1]??0))*l,a=(t.o[s]?.[0]??0)+-(((p[0]??0)-(t.o[s]?.[0]??0))*l),n=(t.o[s]?.[1]??0)+-(((p[1]??0)-(t.o[s]?.[1]??0))*l),o=(t.i[s]?.[0]??0)+-(((p[0]??0)-(t.i[s]?.[0]??0))*l),h=(t.i[s]?.[1]??0)+-(((p[1]??0)-(t.i[s]?.[1]??0))*l),c.setTripleAt(i,r,a,n,o,h,s);return c}processShapes(t){let{length:e}=this.shapes,s=this.amount?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(r=this.shapes[n]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),i=r.shape?.paths?.shapes;let t=r.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=i?.[e];t&&a?.addShape(this.processPath(t,s||0))}}r.localShapeCollection&&r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class rI extends rv{addShapeToModifier(t){t.pathsData=[]}applyTransforms(t,e,s,i,r,a){if(!i.s||!i.p||!i.a||!i.r)throw Error(`${this.constructor.name}: Missing required data from Transform`);let n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-r),h=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*n*r,i.p.v[1]*n*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-(i.a.v[0]??0),-(i.a.v[1]??0),i.a.v[2]),s.scale(a?1/o:o,a?1/h:h),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}changeGroupRender(t,e=!1){let{length:s}=t;for(let i=0;i<s;i++)t[i]._shouldRender=e,t[i]?.ty===to.Group&&this.changeGroupRender(t[i]?.it,e)}cloneElements(t){let e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}init(t,e,s,i=[]){if(!$(e))throw TypeError(`${this.constructor.name}: Method init, param arr must be array`);let r=Number(s);for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r--,this._elements.unshift(e[r]);if(this.dynamicProperties.length>0){this.k=!0;return}this.getValue(!0)}initModifierProperties(t,e){this.getValue=this.processKeys,this.c=t4.getProp(t,e.c,0,null,this),this.o=t4.getProp(t,e.o,0,null,this),e.tr&&(this.tr=eA.getTransformProperty(t,e.tr,this),this.so=t4.getProp(t,e.tr.so,0,.01,this),this.eo=t4.getProp(t,e.tr.eo,0,.01,this)),this.data=e,0===this.dynamicProperties.length&&this.getValue(!0),this._isAnimated=this.dynamicProperties.length>0,this.pMatrix=new tu,this.rMatrix=new tu,this.sMatrix=new tu,this.tMatrix=new tu,this.matrix=new tu}processShapes(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);let i,r,a,n,o,h=!1;if(!this._mdf&&!t){for(o=Number(this._currentCopies),a=0,n=1;o;)(i=this.elemsData[a]?.it??[])[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,o--,a+=n;return h}let l=Math.ceil(Number(this.c?.v));if(this._groups.length<l){for(;this._groups.length<l;){let t={it:this.cloneElements(this._elements),ty:"gr"};t.it?.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{e:0,s:0,t:0},{e:0,s:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:to.Transform}),this.arr.splice(0,0,t),this._groups.splice(0,0,t),this._currentCopies?this._currentCopies++:this._currentCopies=1}this.elem?.reloadShapes(),h=!0}o=0;let p=this._groups.length-1;for(a=0;a<=p-1;a++){if(e=o<l,this._groups[a]&&(this._groups[a]._shouldRender=e),this.changeGroupRender(this._groups[a]?.it??[],e),!e){let t=this.elemsData[a]?.it??[],e=t[t.length-1];0===e.transform.op.v?e.transform.op._mdf=!1:(e.transform.op._mdf=!0,e.transform.op.v=0)}o++}if(this._currentCopies=l,!this.matrix||!this.pMatrix||!this.rMatrix||!this.sMatrix||!this.tMatrix)throw Error(`${this.constructor.name}: Could not set Matrix`);if(!this.tr)throw Error(`${this.constructor.name}: Transformproperty is not set`);let m=Number(this.o?.v),c=m%1,d=m>0?Math.floor(m):Math.ceil(m),u=this.pMatrix.props,f=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();let y=0;if(m>0){for(;y<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y++;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),y+=c)}else if(m<0){for(;y>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y--;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),y-=c)}for(a=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){i=this.elemsData[a]?.it??[];let{length:t}=r=i[i.length-1]?.transform.mProps.v.props??[];if(i[i.length-1]&&(i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?Number(this.so?.v):Number(this.so?.v)+(Number(this.eo?.v)-Number(this.so?.v))*(a/(this._currentCopies-1))),0===y)for(this.matrix.reset(),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;else{for((0!==a&&1===n||a!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;this.matrix.reset()}y++,o--,a+=n}return h}resetElements(t){let{length:e}=t;for(let s=0;s<e;s++){t[s]._processed=!1;let{it:e}=t[s]??{};t[s]?.ty===to.Group&&e&&this.resetElements(e)}}constructor(...t){super(...t),this.arr=[],this.data=void 0,this.elemsData=[],this._elements=[],this._groups=[]}}class rF extends rv{initModifierProperties(t,e){this.getValue=this.processKeys,this.rd=t4.getProp(t,e.r,0,null,this),this._isAnimated=this.rd.effectsSequence.length>0}processPath(t,e){let s=t7();s.c=t.c;let i=t._length,r,a,n,o,h,l,p=0,m,c,d,u,f,g;for(let y=0;y<i;y++)r=t.v[y],n=t.o[y],a=t.i[y],r[0]===n[0]&&r[1]===n[1]&&r[0]===a[0]&&r[1]===a[1]?0!==y&&y!==i-1||t.c?(o=0===y?t.v[i-1]:t.v[y-1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,m=f=r[0]+(o[0]-r[0])*l,c=g=r[1]-(r[1]-o[1])*l,d=m-(m-r[0])*.5519,u=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,f,g,p),p++,o=y===i-1?t.v[0]:t.v[y+1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,m=d=r[0]+(o[0]-r[0])*l,c=u=r[1]+(o[1]-r[1])*l,f=m-(m-r[0])*.5519,g=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,f,g,p)):s.setTripleAt(r[0],r[1],n[0],n[1],a[0],a[1],p):s.setTripleAt(t.v[y]?.[0]??0,t.v[y]?.[1]??0,t.o[y]?.[0]??0,t.o[y]?.[1]??0,t.i[y]?.[0]??0,t.i[y]?.[1]??0,p),p++;return s}processShapes(t){let{length:e}=this.shapes,s=this.rd?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(i=this.shapes[n]).localShapeCollection,!(!i.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),i.shape&&(i.shape._mdf=!0),r=i.shape?.paths?.shapes??[];let t=i.shape?.paths?._length||0;for(let e=0;e<t;e++)a?.addShape(this.processPath(r[e],s))}i.shape&&(i.shape.paths=i.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class rL extends rv{addPaths(t,e){let{length:s}=t;for(let i=0;i<s;i++)e.addShape(t[i])}addSegment(t,e,s,i,r,a,n){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(s[0],s[1],"i",a+1),n&&r.setXYAt(t[0],t[1],"v",a),r.setXYAt(i[0],i[1],"v",a+1)}addSegmentFromArray(t,e,s,i){e.setXYAt(t[1]??0,t[5]??0,"o",s),e.setXYAt(t[2]??0,t[6]??0,"i",s+1),i&&e.setXYAt(t[0]??0,t[4]??0,"v",s),e.setXYAt(t[3]??0,t[7]??0,"v",s+1)}addShapes(t,e,s){let i=s,{pathsData:r,shape:a}=t,n=a?.paths?.shapes??[],o=a?.paths?._length||0,h,l,p=0,m,c,d,u=[],f,g=!0;i?(c=i._length,f=i._length):(i=t7(),c=0,f=0),u.push(i);for(let t=0;t<o;t++){let{lengths:s}=r[t]??{lengths:[]};for(i.c=n[t]?.c,l=n[t]?.c?s.length:s.length+1,h=1;h<l;h++){if(p+(m=s[h-1]).addedLength<e.s){p+=m.addedLength,i.c=!1;continue}if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+m.addedLength?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[h],n[t]?.v[h],i,c,g),g=!1):(d=tV(n[t]?.v[h-1],n[t]?.v[h],n[t]?.o[h-1],n[t]?.i[h],(e.s-p)/m.addedLength,(e.e-p)/m.addedLength,s[h-1]),this.addSegmentFromArray(d,i,c,g),g=!1,i.c=!1),p+=m.addedLength,c++}if(n[t]?.c&&s.length>0){if(m=s[h-1],p<=e.e){let r=s[h-1]?.addedLength??0;e.s<=p&&e.e>=p+r?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[0],n[t]?.v[0],i,c,g),g=!1):(d=tV(n[t]?.v[h-1],n[t]?.v[0],n[t]?.o[h-1],n[t]?.i[0],(e.s-p)/r,(e.e-p)/r,s[h-1]),this.addSegmentFromArray(d,i,c,g),g=!1,i.c=!1)}else i.c=!1;p+=m.addedLength,c++}if(i._length&&(i.setXYAt(i.v[f]?.[0]??0,i.v[f]?.[1]??0,"i",f),i.setXYAt(i.v[i._length-1]?.[0]??0,i.v[i._length-1]?.[1]??0,"o",i._length-1)),p>e.e)break;t<o-1&&(i=t7(),g=!0,u.push(i),c=0)}return u}addShapeToModifier(t){t.pathsData=[]}calculateShapeEdges(t,e,s,i,r){let a=[];e<=1?a.push({e,s:t}):t>=1?a.push({e:e-1,s:t-1}):a.push({e:1,s:t},{e:e-1,s:0});let n=[],{length:o}=a;for(let t=0;t<o;t++)if(!((a[t]?.e??0)*r<i||(a[t]?.s??0)*r>i+s)){let e,o;e=(a[t]?.s??0)*r<=i?0:((a[t]?.s??0)*r-i)/s,o=(a[t]?.e??0)*r>=i+s?1:((a[t]?.e??0)*r-i)/s,n.push([e,o])}return 0===n.length&&n.push([0,0]),n}initModifierProperties(t,e){this.s=t4.getProp(t,e.s,0,.01,this),this.e=t4.getProp(t,e.e,0,.01,this),this.o=t4.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=this.s.effectsSequence.length>0||this.e.effectsSequence.length>0||this.o.effectsSequence.length>0}processShapes(t){let e,s;if(this._mdf||t){let t=Number(this.o?.v)%360/360;if(t<0&&t++,(e=Number(this.s?.v)>1?1+t:0>Number(this.s?.v)?0+t:Number(this.s?.v)+t)>(s=Number(this.e?.v)>1?1+t:0>Number(this.e?.v)?0+t:Number(this.e?.v)+t)){let t=e;e=s,s=t}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue||0,s=this.eValue||0;let i,r,a,n,o,h,l=0,{length:p}=this.shapes;if(s===e)for(let t=0;t<p;t++){let e=this.shapes[t];e.localShapeCollection?.releaseShapes();let{localShapeCollection:s,shape:i}=e;i&&(i._mdf=!0,i.paths=s),this._mdf&&(e.pathsData.length=0)}else if((1!==s||0!==e)&&(0!==s||1!==e)){let m,c,d=[];for(let e=0;e<p;e++)if(m=this.shapes[e],m.shape?._mdf||this._mdf||t||2===this.m){if(i=m.shape?.paths,a=i?._length||0,h=0,!m.shape?._mdf&&m.pathsData.length>0)h=m.totalShapeLength;else{for(n=this.releasePathsData(m.pathsData),r=0;r<a;r++)i&&(o=tO(i.shapes[r]),n.push(o),h+=o.totalLength);m.totalShapeLength=h,m.pathsData=n}l+=Number(h),m.shape&&(m.shape._mdf=!0)}else m.shape&&(m.shape.paths=m.localShapeCollection);let u=e,f=s,g=0,y;for(let t=p-1;t>=0;t--)if(m=this.shapes[t],m.shape?._mdf){if(!(c=m.localShapeCollection))throw Error(`${this.constructor.name}: Could not set localShapeCollection`);for(c.releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,s,m.totalShapeLength||0,g,l),g+=Number(m.totalShapeLength)):y=[[u,f]],a=y.length,r=0;r<a;r++){u=y[r]?.[0]??0,f=y[r]?.[1]??0,d.length=0,f<=1?d.push({e:Number(m.totalShapeLength)*f,s:Number(m.totalShapeLength)*u}):u>=1?d.push({e:Number(m.totalShapeLength)*(f-1),s:Number(m.totalShapeLength)*(u-1)}):d.push({e:Number(m.totalShapeLength),s:Number(m.totalShapeLength)*u},{e:Number(m.totalShapeLength)*(f-1),s:0});let t={e:0,s:0},e=this.addShapes(m,d[0]??t);if(d[0]?.s!==d[0]?.e){if(d.length>1){let s=m.shape.paths?.shapes[m.shape.paths._length-1];if(s?.c){let s=e.pop();this.addPaths(e,c),e=this.addShapes(m,d[1]??t,s)}else this.addPaths(e,c),e=this.addShapes(m,d[1]??t)}this.addPaths(e,c)}}m.shape.paths=c}}else if(this._mdf)for(let t=0;t<p;t++){let e=this.shapes[t];e.pathsData.length=0;let{shape:s}=e;s&&(s._mdf=!0)}}releasePathsData(t){let{length:e}=t;for(let s=0;s<e;s++)tN.release(t[s]);return t.length=0,t}}let r$=(t,e,s,i,r,a,n)=>{let o=s-Math.PI/2,h=s+Math.PI/2,l=e[0]+Math.cos(s)*i*r,p=e[1]-Math.sin(s)*i*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())},rN=(t,e,s,i,r,a,n)=>{let o,h,l,p,m,c,d,u=(l=0===s?e.length()-1:s-1,p=(s+1)%e.length(),m=e.v[l],c=e.v[p],o=[c[0]-m[0],c[1]-m[1]],Math.atan2(0,1)-Math.atan2((d=[Math.cos(h=-(.5*Math.PI))*(o[0]??0)-Math.sin(h)*(o[1]??0),Math.sin(h)*(o[0]??0)+Math.cos(h)*(o[1]??0)])[1],d[0])),f=e.v[s%e._length],g=e.v[0===s?e._length-1:s-1],y=e.v[(s+1)%e._length],b=2===a?Math.sqrt(Math.pow(f[0]-g[0],2)+Math.pow(f[1]-g[1],2)):0,v=2===a?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;r$(t,e.v[s%e._length]??[0,0],u,n,i,v/((r+1)*2),b/((r+1)*2))},rB=(t,e,s,i,r,a)=>{let n=a;for(let a=0;a<i;a++){let o=(a+1)/(i+1),h=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);r$(t,e.point(o),l,n,s,h/((i+1)*2),h/((i+1)*2)),n=-n}return n};class rR extends rv{initModifierProperties(t,e){this.getValue=this.processKeys,this.amplitude=t4.getProp(t,e.s,0,null,this),this.frequency=t4.getProp(t,e.r,0,null,this),this.pointsType=t4.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length>0||this.frequency.effectsSequence.length>0||this.pointsType.effectsSequence.length>0}processPath(t,e,s,i){let r=t._length,a=t7();if(a.c=t.c,t.c||(r-=1),0===r)return a;let n=-1,o=rb(t,0);rN(a,t,0,e,s,i,n);for(let h=0;h<r;h++)n=rB(a,o,e,s,i,-n),o=h!==r-1||t.c?rb(t,(h+1)%r):null,rN(a,t,h+1,e,s,i,n);return a}processShapes(t){let e=Number(this.amplitude?.v),s=Math.max(0,Math.round(Number(this.frequency?.v))),i=Number(this.pointsType?.v);if(0!==e){let r,a,n,{length:o}=this.shapes;for(let h=0;h<o;h++){if(a=(r=this.shapes[h]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),n=r.shape?.paths?.shapes??[];let{_length:t}=r.shape?.paths??{_length:0};for(let r=0;r<t;r++)a?.addShape(this.processPath(n[r],e,s,i))}r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}let rV=t=>{iV.current=t};b||("complete"===document.readyState?i4():addEventListener("DOMContentLoaded",()=>{i4()},{once:!0}));class rO{init(t){this.effectsManager=t,this.type=th.TransformEffect,this.matrix=new tu,this.opacity=-1,this._mdf=!1,this._opMdf=!1}renderFrame(t){if(this._opMdf=!1,this._mdf=!1,!t&&!this.effectsManager?._mdf)return;let e=this.effectsManager?.effectElements??[],s=e[0]?.p.v,i=e[1]?.p.v,r=e[2]?.p.v===1,a=e[3]?.p.v,n=r?a:e[4]?.p.v,o=e[5]?.p.v,h=e[6]?.p.v,l=e[7]?.p.v;this.matrix?.reset(),this.matrix?.translate(-s[0],-s[1],s[2]),this.matrix?.scale(.01*n,.01*a,1),this.matrix?.rotate(-l*f),this.matrix?.skewFromAxis(-o*f,(h+90)*f),this.matrix?.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==e[8]?.p.v&&(this.opacity=e[8]?.p.v,this._opMdf=!0)}constructor(){this.opacity=1}}let rz={};(()=>{let t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],{length:e}=t;for(let s=0;s<e;s+=1){let e=t[s];rz[e]=Math[e]}})(),rz.random=Math.random,rz.abs=t=>{if(N(t)){let e=td(t.length),{length:s}=t;for(let i=0;i<s;i++)e[i]=Math.abs(t[i]??0);return e}return Math.abs(t)};class rG{constructor(t,e,s){this.i=0,this.j=0,this.S=[],this._mask=s,this._width=e;let i=t,{length:r}=i,a=0,n=0,o;const h=this.S;for(r||(i=[r++]);a<e;)h[a]=a++;for(a=0;a<this._width;a++)h[a]=h[n=this._mask&n+(i[a%r]??0)+(o=h[a]??0)]??0,h[n]=o}g(t){let e=t,s,i=0,r=this.S;for(;e--;)s=r[this.i=this._mask&this.i+1]??0,i=i*this._width+(r[this._mask&(r[this.i]=r[this.j=this._mask&this.j+s]??0)+(r[this.j]=s)]??0);return i}}function rq(t,e){return e.i=t.i,e.j=t.j,e.S=[...t.S],e}function rj(t){return String.fromCharCode.apply(0,t)}let rH={};!function(t,e){let s="random",i=e.pow(256,6),r=e.pow(2,52),a=2*r;function n(t,e){let s=`${t}`,i=0,r=0;for(;r<s.length;)e[255&r]=255&(i^=(e[255&r]??0)*19)+s.charCodeAt(r++);return rj(e)}e[`seed${s}`]=function(o,h,l){let p=h,m=[],c=o,d=n(function t(e,s=0){let i=[],r=typeof e;if(s&&"object"===r){let r=Object.keys(e),{length:a}=r;for(let n=0;n<a;n++)try{i.push(t(e[r[n]]),s-1)}catch(t){}}return i.length>0?i:"string"===r?e:`${e}\0`}(c=(p=!0===p?{entropy:!0}:p??{})&&p.entropy?[o??"",rj(t)]:c??function(){try{let t=new Uint8Array(256);return global.crypto.getRandomValues(t),rj(t)}catch(i){let{navigator:{plugins:e},screen:s}=global;return[Date.now(),global,e,s,rj(t)]}}(),3),m),u=new rG(m,256,255),f=()=>{let t=u.g(6),e=i,s=0;for(;t<r;)t=(t+s)*256,e*=256,s=u.g(1);for(;t>=a;)t/=2,e/=2,s>>>=1;return(t+s)/e};f.int32=()=>0|u.g(4),f.quick=()=>u.g(4)/0x100000000,f.double=f,n(rj(u.S),t);let g=(t,i,r,a)=>(a&&(rq(a,u),t.state=()=>rq(u,{})),r)?(e[s]=f,i):t;return p&&p.pass?g=p.pass:l&&(g=l),g(f,d,p&&"global"in p?p.global:this===e,p?p.state:void 0)},n(e.random(),t)}([],rz);let rW=[0,0,0,0,0,0],rY=tJ(.333,0,.833,.833,"easeIn").get,rU=tJ(.33,0,.667,1,"easeInOut").get,rJ=tJ(.167,.167,.667,1,"easeOut").get,rX=(t,e,s)=>{let i=s;return(i<0&&i++,i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},rZ=t=>{let e,s,i,r=t[0]??0,a=t[1]??0,n=t[2]??0;if(0===a)e=n,i=n,s=n;else{let t=n<.5?n*(1+a):n+a-n*a,o=2*n-t;e=rX(o,t,r+1/3),s=rX(o,t,r),i=rX(o,t,r-1/3)}return[e,s,i,t[3]??0]},rK=t=>{let e=t[0],s=t[1],i=t[2],r=rz.max(e,s,i),a=rz.min(e,s,i),n=0,o,h=(r+a)/2;if(r===a)n=0,o=0;else{let t=r-a;switch(o=h>.5?t/(2-r-a):t/(r+a),r){case e:n=(s-i)/t+6*(s<i);break;case s:n=(i-e)/t+2;break;case i:n=(e-s)/t+4}n/=6}return[n,o,h,t[3]]};function rQ(t){let e=typeof t;if("number"===e||t instanceof Number||"boolean"===e)return-t;if(r8(t)){let{length:e}=t,s=[];for(let i=0;i<e;i++)s[i]=-t[i];return s}return t.propType?t.v:-t}function r0(t,e,s,i){let r,a,{length:n}=t,o=t7();o.setPathData(!!i,n);let h=[0,0];for(let i=0;i<n;i++)r=e[i]??h,a=s[i]??h,o.setTripleAt(t[i]?.[0]??0,t[i]?.[1]??0,a[0]+(t[i]?.[0]??0),a[1]+(t[i]?.[1]??0),r[0]+(t[i]?.[0]??0),r[1]+(t[i]?.[1]??0),i,!0);return o}function r1(t,e,s,i,r,a){let n=e,o=r,h=a;void 0===o?(o=s,h=i):n=(n-s)/(i-s),n>1?n=1:n<0&&(n=0);let l=t(n);if(r8(o)&&r8(h)){let t,e=o.length,s=tc(te.Float32,e);for(t=0;t<e;t+=1)s[t]=(h[t]-o[t])*l+o[t];return s}return(h-o)*l+o}function r2(t,e,s,i,r){return r1(rJ,t,e,s,i,r)}function r3(t,e,s,i,r){return r1(rY,t,e,s,i,r)}function r5(t,e,s,i,r){return r1(rU,t,e,s,i,r)}function r4(t,e,s,i,r){let a=e,n=s,o=i,h=r;if((void 0===o||void 0===h)&&(o=a,h=n,a=0,n=1),n<a){let t=n;n=a,a=t}if(t<=a)return o;if(t>=n)return h;let l=n===a?0:(t-a)/(n-a);if(!$(o)&&!$(h))return o+(h-o)*l;if($(o)&&$(h)){let{length:t}=o,e=tc(te.Float32,t);for(let s=0;s<t;s+=1)e[s]=(o[s]??0)+((h[s]??0)-(o[s]??0))*l;return e}return 0}function r6(t){return at(t,as(t))}function r9(t,e){let s=t,i=e;if(void 0===i&&(void 0===s?(s=0,i=1):(i=s,s=void 0)),N(i)){let{length:t}=i;s||(s=tc(te.Float32,t));let e=tc(te.Float32,t),r=rz.random();for(let a=0;a<t;a+=1)e[a]=(s[a]??0)+r*((i[a]??0)-(s[a]??0));return e}return(s=s??0)+rz.random()*(i-s)}function r8(t){return"object"==typeof t&&null!==t&&(t.constructor===Array||t.constructor===Float32Array)}function r7(t){return t*f}function at(t,e){let s,i,r,a=typeof t,n=typeof e;if(ae(a,t)&&ae(n,e))return Number(t)/Number(e);if(r8(t)&&ae(n,e)){for(r=t.length,s=tc(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)/Number(e);return s}if(ae(a,t)&&r8(e)){for(r=e.length,s=tc(te.Float32,r),i=0;i<r;i+=1)s[i]=Number(t)/(e[i]??0);return s}return 0}function ae(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function as(t,e){let s,i=e;if("number"==typeof t||t instanceof Number)return i=i||0,rz.abs(Number(t)-Number(i));i||(i=rW);let r=rz.min(t.length,i.length),a=0;for(s=0;s<r;s+=1)a+=rz.pow((i[s]??0)-(t[s]??0),2);return rz.sqrt(a)}function ai(t,e){let s=t,i=e;return"string"==typeof s&&(s=parseInt(s,10)),"string"==typeof i&&(i=parseInt(i,10)),s%i}function ar(t,e){let s,i,r,a=typeof t,n=typeof e;if(ae(a,t)&&ae(n,e))return Number(t)*Number(e);if(r8(t)&&ae(n,e)){for(r=t.length,s=tc(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)*Number(e);return s}if(ae(a,t)&&r8(e)){for(r=e.length,s=tc(te.Float32,r),i=0;i<r;i++)s[i]=Number(t)*(e[i]??0);return s}return 0}function aa(t){return t}function an(t){return t/f}function ao(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(ae(r,s)&&ae(a,i))return"string"===r&&(s=parseInt(s,10)),"string"===a&&(i=parseInt(i,10)),s-i;if(r8(s)&&ae(a,i))return s=[...s],s[0]-=Number(i),s;if(ae(r,s)&&r8(i))return(i=[...i])[0]=Number(s)-i[0],i;if(r8(s)&&r8(i)){let t=0,e=s.length,r=i.length,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)-(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}function ah(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(ae(r,s)&&ae(a,i)||"string"===r||"string"===a)return Number(s)+Number(i);if(r8(s)&&ae(a,i))return s=[...s],s[0]+=Number(i),s;if(ae(r,s)&&r8(i))return(i=[...i])[0]=s+i[0],i;if(r8(s)&&r8(i)){let t=0,{length:e}=s,{length:r}=i,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)+(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}let al={initiateExpression:function(t,e,s){if(!t.globalData?.renderConfig?.runExpressions)return aa;if(!t.comp?.globalData)throw Error("CompElement is not implemented");let{k:i,x:r}=e,a=/velocity\b/.test(r),n=r.includes("random"),{ip:o,nm:h,op:l,sh:p=0,sw:m=0,ty:c}=t.data,d,u,g,y=0,b;s._name=h,s.valueAtTime=s.getValueAtTime,Object.defineProperty(s,"value",{get:()=>s.v}),t.comp.frameDuration=1/t.comp.globalData.frameRate,t.comp.displayStartTime=0;let v=o/t.comp.globalData.frameRate,x=l/t.comp.globalData.frameRate,w=null,_=null,E=null,S=null,C,k=null,M,D=null,T=null,A=null,I=null,F=null,L=null,$,B={},R=Function("_lottieGlobal","$bm_div","$bm_mod","$bm_mul","$bm_neg","$bm_sub","$bm_sum","$bm_transform","active","add","anchorPoint","clamp","comp","content","createPath","degrees_to_radians","degreesToRadians","div","document","ease","easeIn","easeOut","effect","fetch","frames","framesToTime","fromComp","fromCompToSurface","fromWorld","globalData","height","hslToRgb","index","inPoint","key","length","linear","lookAt","loop_in","loop_out","loopIn","loopInDuration","loopOut","loopOutDuration","mask","mod","mul","name","nearestKey","normalize","numKeys","obj","outPoint","position","posterizeTime","propertyIndex","radians_to_degrees","radiansToDegrees","random","randSeed","rgbToHsl","rotation","scale","seedRandom","selectorValue","smooth","sourceRectAtTime","sub","substr","substring","text","textIndex","textTotal","thisComp","thisLayer","thisProperty","time","timeToFrames","toComp","toWorld","transform","value","valueAtTime","velocity","width","wiggle","window","XMLHttpRequest",`
6
6
  ${r}
7
7
  obj.scoped_bm_rt = $bm_rt;`),V=0,O,z=null,G,q,j,H,W=s.kf?i.length:0,Y=e.ix,U=!this.data||!0!==this.data.hd,J=(t=5,e=20)=>{let{pv:s}=this,i=N(s)?s.length:1,r=tc(te.Float32,i),a=rz.floor(V*t),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]=(r[t]??0)+-e+2*e*rz.random();n++}let o=V*t,h=o-rz.floor(o),l=tc(te.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*rz.random())*h;return l}return s+r[0]+(-e+2*e*rz.random())*h};function X(t,e){C(t,e,!0)}function Z(t,e){M(t,e,!0)}s.loopIn&&(k=C=s.loopIn.bind(s)),s.loopOut&&(D=M=s.loopOut.bind(s)),s.smooth&&(A=s.smooth.bind(s));let K=this.getValueAtTime.bind(this),Q=this.getVelocityAtTime.bind(this),{frameRate:tt,projectInterface:ts}=t.comp.globalData;function ti(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=rz.atan2(s[0],rz.sqrt(s[1]*s[1]+s[2]*s[2]))/f;return[-rz.atan2(s[1],s[2])/f,i,0]}function tr(t){let s,r,a=t,n,o=i.length;if(0===i.length||"number"==typeof i[0])s=0,r=0;else if(s=-1,(a*=tt)<(i[0]?.t??0))s=1,r=i[0]?.t??0;else{for(n=0;n<o-1;n+=1)if(a===i[n]?.t){s=n+1,r=i[n]?.t??0;break}else if(a>(i[n]?.t??0)&&a<(i[n+1]?.t??0)){a-(i[n]?.t??0)>(i[n+1]?.t??0)-a?(s=n+2,r=i[n+1]?.t??0):(s=n+1,r=i[n]?.t??0);break}-1===s&&(s=n+1,r=e.k[n]?.t??0)}return{index:s,time:r||0/tt}}function ta(t){let s=t;if(0===e.k.length||"number"==typeof e.k[0])throw Error(`The property has no keyframe at index ${s}`);s-=1;let i={time:(e.k[s]?.t??0)/tt,value:[]},r=(Object.hasOwn(e.k[s]??{},"s")?e.k[s]?.s:e.k[s-1]?.e)??[],{length:a}=r;for(let t=0;t<a;t+=1)i[t]=r[t],i.value[t]=r[t];return i}function tn(t,e){let s=e;return s||(s=tt),t/s}function to(t,e){let s=t,i=e;return s||0===s||(s=V),i||(i=tt),s*i}function th(t){rz.seedrandom(y+t)}function tp(){return t.sourceRectAtTime()}function tm(t,e){return"string"==typeof z?void 0===e?z.slice(rz.max(0,t)):z.slice(t,e):""}function td(t,e){return"string"==typeof z?void 0===e?z.slice(t):z.slice(t,e):""}let tu=t.data.ind,tf=t.hierarchy.length>0,tg=null;y=rz.floor(1e6*rz.random());let{globalData:ty}=t;function tb(t){z=K(V=0===t?0:rz.floor(V*t)/t)}return function(e){return(z=e,this.frameExpressionId===ty.frameId&&this.propType!==tl.TextSelector)?z:(this.propType===tl.TextSelector&&(q=this.textIndex??0,j=this.textTotal??0,H=this.selectorValue),$||(G=t.layerInterface?.text,$=t.layerInterface,I=t.comp?.compInterface??null,L=$?.toWorld.bind($)??null,S=$?.fromWorld.bind($)??null,_=$?.fromComp.bind($)??null,F=$?.toComp.bind($)??null,T=$?.mask??null,E=_),!b&&(d=b=t.layerInterface?.getInterface("ADBE Transform Group"),b&&(w=b.anchorPoint)),4!==c||u||(u=$?.getInterface("ADBE Root Vectors Group")),g=g??$?.getInterface(4),t.hierarchy.length>0&&!tg&&(tg=t.hierarchy[0]?.layerInterface??null),V=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&th(y+V),a&&(O=Q(V)),R(rH,at,ai,ar,rQ,ao,ah,d,U,ah,w,P,ts,u,r0,an,r7,at,null,r5,r3,r2,g,null,null,tn,_,E,S,ty,p,rZ,tu,v,ta,as,r4,ti,k,D,C,X,M,Z,T,ai,ar,h,tr,r6,W,B,x,null,tb,Y,an,an,r9,y,rK,null,null,th,H,A,tp,ao,td,tm,G,q,j,I,$,s,V,to,F,L,b,z,K,O,m,J,null,null),this.frameExpressionId=ty.frameId,B.scoped_bm_rt?.propType===tl.Shape?B.scoped_bm_rt.v:B.scoped_bm_rt)}},resetFrame:function(){rH={}}},ap={getSpeedAtTime:function(t){let e=this.getValueAtTime(t),s=this.getValueAtTime(t+-.01),i=0;if(N(e)&&N(s)){let{length:t}=e;for(let r=0;r<t;r++)i+=Math.pow(s[r]-e[r],2);i=100*Math.sqrt(i)}else i=0;return i},getStaticValueAtTime:function(t,e){return this.pv},getValueAtTime:function(t){let e=t;return e*=this.elem?.globalData?.frameRate??60,e-=this.offsetTime,this._cachingAtTime&&e!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime?.value},getVelocityAtTime:function(t){let e;if(void 0!==this.vel)return this.vel;let s=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(N(s)&&N(i)){let{length:t}=s;e=tc(te.Float32,t);for(let r=0;r<t;r++)e[r]=-((i[r]-s[r])/.001);return e}return-((i-s)/.001)},searchExpressions:function(t,e,s){e?.x&&s&&(s.k=!0,s.x=!0,s.initiateExpression=al.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class am extends eo{inTangents(t){return this.vertices("i",t)}isClosed(){return!!this.v?.c}normalOnPath(t,e){return this.vectorOnPath(t,e,"normal")}outTangents(t){return this.vertices("o",t)}pointOnPath(t,e){let s,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),!this._segmentsLength&&i&&(this._segmentsLength=tO(i));let r=this._segmentsLength,{lengths:a}=r??{lengths:[]},n=(r?.totalLength??0)*t,o=0,h=a.length,l=0;for(;o<h;){if(l+a[o].addedLength>n){let t=o,e=i?.c&&o===h-1?0:o+1,r=(n-l)/a[o].addedLength;i&&(s=tY(i.v[t],i.v[e],i.o[t],i.i[e],r,a[o]));break}l+=a[o].addedLength,o++}return i&&(s=s??(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])),s}points(t){return this.vertices("v",t)}tangentOnPath(t,e){return this.vectorOnPath(t,e,"tangent")}vectorOnPath(t,e,s){let i=t;1==i?i=Number(this.v?.c):0==i&&(i=.999);let r=this.pointOnPath(i,e)??[],a=this.pointOnPath(i+.001,e)??[],n=a[0]-r[0],o=a[1]-r[1],h=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===h?[0,0]:"tangent"===s?[n/h,o/h]:[-o/h,n/h]}vertices(t,e){this.k&&this.getValue();let s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));let i=s?._length??0,r=s?.[t],a=s?.v,n=td(i);for(let e=0;e<i;e+=1)"i"===t||"o"===t?n[e]=[r[e][0]-a[e][0],r[e][1]-a[e][1]]:n[e]=[r[e][0],r[e][1]];return n}constructor(...t){super(...t),this.getValueAtTime=ap.getStaticValueAtTime,this.setGroupProperty=ap.setGroupProperty}}let ac=(t,e)=>{let s,{length:i}=t;for(let r=0;r<i;r++){let i=Object.getOwnPropertyNames(s=t[r]?.prototype),{length:a}=i;for(let t=0;t<a;t++)"constructor"!==i[t]&&Object.hasOwn(s,i[t]??"")&&(e.prototype[i[t]??""]=s[i[t]??""])}};function ad(t,e,s){let i,r,a;if(!this.k||this.keyframes?.length===0)return this.pv;let n=e,{comp:o,elem:h,keyframes:l=[],pv:p}=this;if(!h?.comp)throw Error("Element is not implemented");if(!o)throw Error("Comp is not implemented");let m=t?t.toLowerCase():"",c=o.renderedFrame,d=l[l.length-1]?.t??0,{frameRate:u}=h.comp.globalData??{frameRate:60};if(c<=d)return p;let f,g=0;switch(s?f=n?Math.abs(d-u*n):Math.max(0,d-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=d-(g=l[l.length-1-n]?.t??0)),m){case"pingpong":if(Math.floor((c-g)/f)%2!=0)return this.getValueAtTime((f-(c-g)%f+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(d/u,0),s=this.getValueAtTime(((c-g)%f+g)/u,0),n=Math.floor((c-g)/f);if(N(p)&&N(t)&&N(e)&&N(s)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i++)a[i]=(e[i]-t[i])*n+s[i];return a}return(e-t)*n+s}case"continue":{let t=this.getValueAtTime(d/u,0),e=this.getValueAtTime((d-.001)/u,0);if(N(p)&&N(t)&&N(e)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i+=1)a[i]=t[i]+(t[i]-e[i])*((c-d)/u)/5e-4;return a}return t+(c-d)/.001*(t-e)}}return this.getValueAtTime(((c-g)%f+g)/u,0)}function au(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:m=[],pv:c}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:d}=p.comp.globalData??{frameRate:60},u=t?t.toLowerCase():"",f=l.renderedFrame,g=m[0]?.t??0;if(f>=g)return c;switch(s?(i=h?Math.abs(d*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>m.length-1)&&(h=m.length-1),i=(r=m[h]?.t??0)-g),u){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(r/d,0),s=this.getValueAtTime((i-(g-f)%i+g)/d,0),h=Math.floor((g-f)/i)+1;if(N(c)&&N(t)&&N(e)&&N(s)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=s[a]-(e[a]-t[a])*h;return o}return s-(e-t)*h}case"continue":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime((g+.001)/d,0);if(N(c)&&N(t)&&N(e)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=t[a]+(t[a]-e[a])*(g-f)/.001;return o}return t+(t-e)*(g-f)/.001}}return this.getValueAtTime((i-((g-f)%i+g))/d,0)}function af(t,e){let s,{comp:i,k:r,pv:a}=this;if(!r)return a;let{renderedFrame:n}=i??{renderedFrame:0},{frameRate:o}=i?.globalData??{frameRate:60},h=.5*(t||.4),l=Math.floor(e||5);if(l<=1)return a;let p=n/o,m=p-h,c=l>1?(p+h-m)/(l-1):1,d=0,u,f;for(f=N(a)?tc(te.Float32,a.length):0;d<l;){if(s=this.getValueAtTime(m+d*c),N(a)&&N(f)&&N(s)){for(u=0;u<a.length;u++)f[u]+=s[u];d++;continue}f+=s,d++}if(N(a)&&N(f)){for(u=0;u<a.length;u+=1)f[u]/=l;return f}return f/l}function ag(t){this._transformCachingAtTime=this._transformCachingAtTime??{v:new tu};let{v:e}=this._transformCachingAtTime,{mult:s=1}=this.a??{mult:1},{mult:i=1}=this.s??{mult:1};if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){let i=this.a?.getValueAtTime(t)??[0,0,0];e.translate(-i[0]*s,-i[1]*s,i[2]*s)}if(this.appliedTransformations<2){let s=this.s?.getValueAtTime(t)??[0,0,0];e.scale(s[0]*i,s[1]*i,s[2]*i)}if(this.sk&&this.appliedTransformations<3){let s=this.sk.getValueAtTime(t),i=this.sa?.getValueAtTime(t)??0;e.skewFromAxis(-s*(this.sk.mult??1),i*(this.sa?.mult??1))}if(this.r&&this.appliedTransformations<4){let s=this.r.getValueAtTime(t);e.rotate(-s*(this.r.mult??1))}else if(!this.r&&this.appliedTransformations<4){let s=Number(this.rz?.getValueAtTime(t)),i=Number(this.ry?.getValueAtTime(t)),r=Number(this.rx?.getValueAtTime(t)),a=this.or?.getValueAtTime(t)??[];e.rotateZ(-s*(this.rz?.mult??1)).rotateY(i*(this.ry?.mult??1)).rotateX(r*(this.rx?.mult??1)).rotateZ(-a[2]*(this.or?.mult??1)).rotateY(a[1]*(this.or?.mult??1)).rotateX(a[0]*(this.or?.mult??1))}if(this.data.p?.s){let s=this.px?.getValueAtTime(t),i=this.py?.getValueAtTime(t);if(this.data.p.z){let r=this.pz?.getValueAtTime(t);e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),-r*(this.pz?.mult??1))}else e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),0)}else{let s=this.p?.getValueAtTime(t)??[0,0,0];e.translate(s[0]*(this.p?.mult??1),s[1]*(this.p?.mult??1),-s[2]*(this.p?.mult??1))}return e}function ay(){return this.v.clone(new tu)}function ab(t,e){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:ee(this.pv)};let s=t;return s*=this.elem?.globalData?.frameRate??60,(s-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<s?this._caching?.lastIndex??0:0,this._cachingAtTime.lastTime=s,this.interpolateShape(s,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}class av{constructor(t){this.displayStartTime=0,this.pixelAspect=1,this.comp=t,this._name=t.data?.nm,this.layer=this,this.height=t.data?.h||t.globalData?.compSize?.h,this.width=t.data?.w||t.globalData?.compSize?.w,this.frameDuration=1/(t.globalData?.frameRate??60),this.numLayers=t.layers?.length}getInterface(t){let e=0,{length:s}=this.comp.layers??[];for(;e<s;){if(this.comp.layers?.[e]?.nm===t||this.comp.layers?.[e]?.ind===t)return this.comp.elements[e]?.layerInterface??null;e++}return null}}let{resetFrame:ax}=al,aw={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new av(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e++},t.renderer.globalData.popExpression=function(){0==--e&&function(){let{length:t}=s;for(let e=0;e<t;e++)s[e]?.release?.();s.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){s.includes(t)||s.push(t)}},resetFrame:ax};function a_(){return this.data.d?.x?(this.calculateExpression=al.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}class aE{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp?.currentFrame??0)}),t.numKeys=e.keyframes?.length??0,t.key=function(i){let r;if(!t.numKeys)return 0;e.keyframes&&(r="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s);let a=s===tl.UniDimensional?new Number(r):{...r};return a.time=Number(e.keyframes?.[i-1].t)/(e.elem?.comp?.globalData?.frameRate??60),a.value=s===tl.UniDimensional?r[0]:r,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}defaultGetter(){return this.defaultUnidimensionalValue}getInterface(t){return t?t.propType===tl.UniDimensional?this.UnidimensionalPropertyInterface(t):this.MultidimensionalPropertyInterface(t):this.defaultGetter}MultidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultMultidimensionalValue);let s=1/e?.mult,i=e.data?.l??e.pv.length,r=tc(te.Float32,i),a=tc(te.Float32,i);return r.value=a,this.completeProperty(r,e,"multidimensional"),function(){e.k&&e.getValue();for(let t=0;t<i;t+=1)a[t]=e.v[t]*s,r[t]=a[t];return r}}UnidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultUnidimensionalValue);let s=1/e.mult,i=e.pv*s,r=new Number(i);return r.value=i,this.completeProperty(r,e,tl.UniDimensional),()=>(e.k&&e.getValue(),i=e.v*s,r.value!==i&&((r=new Number(i)).value=i,r[0]=i,this.completeProperty(r,e,tl.UniDimensional)),r)}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function aS(t){return new aE().getInterface(t)}class aC{constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup(t-1)}}class ak{constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup(t-1)}}class aP{get numProperties(){return this.effects.length}constructor(t,e){this.effects=t,this.effectElements=e}getInterface(t){let e=0,{length:s}=this.effects;for(;e<s;){if([this.effects[e].nm,this.effects[e].mn,this.effects[e].ix].includes(t))return this.effectElements[e];e++}return null}}class aM{get maskOpacity(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}get maskPath(){return this._mask.prop?.k&&this._mask.prop.getValue(),this._mask.prop}constructor(t,e){this._mask=t,this._data=e}}class aD{constructor(t,e){this.maskManager=t,this._masksInterfaces=td(t.viewData.length);const{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new aM(t.viewData[e],t.masksProperties[e])}getInterface(t){let e=0;for(;e<length;){if(this.maskManager.masksProperties[e]?.nm===t)return this._masksInterfaces[e];e++}return null}}class aT{get anchorPoint(){return aS(this.transform.a)}get opacity(){return aS(this.transform.o)}get orientation(){return aS(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return aS(this.transform.r??this.transform.rz)}get scale(){return aS(this.transform.s)}get skew(){return aS(this.transform.sk)}get skewAxis(){return aS(this.transform.sa)}get xPosition(){return aS(this.transform.px)}get xRotation(){return aS(this.transform.rx)}get yPosition(){return aS(this.transform.py)}get yRotation(){return aS(this.transform.ry)}get zPosition(){return aS(this.transform.pz)}get zRotation(){return aS(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=aS(t.p):(this._px=aS(t.px),this._py=aS(t.py),t.pz&&(this._pz=aS(t.pz)))}getInterface(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return this.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return this.rotation;case"ADBE Rotate X":return this.xRotation;case"ADBE Rotate Y":return this.yRotation;case"position":case"Position":case"ADBE Position":case 2:return this.position;case"ADBE Position_0":return this.xPosition;case"ADBE Position_1":return this.yPosition;case"ADBE Position_2":return this.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return this.anchorPoint;case"opacity":case"Opacity":case 11:return this.opacity;default:return null}}}class aA{getInterface(t){throw Error("Method not implemented")}}class aI extends aA{getInterface(t){let e=0,{length:s}=this.interfaces;for(;e<s;){if(this.interfaces[e]?._name===t||this.interfaces[e]?.mn===t||this.interfaces[e]?.propertyIndex===t||this.interfaces[e]?.ix===t||this.interfaces[e]?.ind===t)return this.interfaces[e];e++}return"number"==typeof t?this.interfaces[t-1]:null}constructor(...t){super(...t),this.interfaces=[]}}class aF extends aA{get position(){return aS(this.prop?.p)}get size(){return aS(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.s?.ix===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class aL extends aA{get color(){return aS(this.c)}get opacity(){return aS(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class a$ extends aA{get endPoint(){return aS(this.prop?.e)}get opacity(){return aS(this.prop?.o)}get startPoint(){return aS(this.prop?.s)}get type(){return"a"}getInterface(t){return"Start Point"===t||"start point"===t?this.startPoint:"End Point"===t||"end point"===t?this.endPoint:"Opacity"===t||"opacity"===t?this.opacity:null}constructor(...t){super(...t),this.prop=void 0}}class aN extends aA{get _name(){return this.shape?.nm}getInterface(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return this.content;default:return this.transform}}}class aB extends aA{get position(){return aS(this.prop?.p)}get roundness(){return aS(this.prop?.r)}get size(){return aS(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.roundness:this.shape?.s?.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class aR extends aA{get copies(){return aS(this.prop?.c)}get offset(){return aS(this.prop?.o)}getInterface(t){return this.shape?.c?.ix===t||"Copies"===t?this.copies:this.shape?.o?.ix===t||"Offset"===t?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}class aV extends aA{get radius(){return aS(this.prop?.rd)}getInterface(t){return this.shape?.r?.ix===t||"Round Corners 1"===t?this.radius:null}constructor(...t){super(...t),this.prop=void 0}}class aO{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;const i=new aC(this,s);this.prop?.setGroupProperty(new ak("Path",i)),this._name=t.nm,this.ix=t.ix,this.mn=t.mn,this.propertyGroup=s,this.propertyIndex=t.ix}getInterface(t){return["Shape","shape","Path","path","ADBE Vector Shape",2].includes(t)?this.path:null}}class az extends aA{get innerRadius(){return aS(this.prop?.ir)}get innerRoundness(){return aS(this.prop?.is)}get outerRadius(){return aS(this.prop?.or)}get outerRoundness(){return aS(this.prop?.os)}get points(){return aS(this.prop?.pt)}get position(){return aS(this.prop?.p)}get rotation(){return aS(this.prop?.r)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.rotation:this.shape?.pt?.ix===t?this.points:this.shape?.or?.ix===t||"ADBE Vector Star Outer Radius"===t?this.outerRadius:this.shape?.os?.ix===t?this.outerRoundness:this.shape?.ir?.ix===t||"ADBE Vector Star Inner Radius"===t?this.innerRadius:this.shape?.is?.ix===t?this.innerRoundness:null}constructor(...t){super(...t),this.prop=void 0}}class aG extends aA{get color(){return aS(this.prop?.c)}get dash(){return this.dashOb}get opacity(){return aS(this.prop?.o)}get strokeWidth(){return aS(this.prop?.w)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:"Stroke Width"===t||"stroke width"===t?this.strokeWidth:null}constructor(...t){super(...t),this.prop=void 0}}class aq extends aA{get anchorPoint(){return aS(this.prop?.transform?.mProps.a)}get opacity(){return aS(this.prop?.transform?.mProps.o)}get position(){return aS(this.prop?.transform?.mProps.p)}get rotation(){return aS(this.prop?.transform?.mProps.r)}get scale(){return aS(this.prop?.transform?.mProps.s)}get skew(){return aS(this.prop?.transform?.mProps.sk)}get skewAxis(){return aS(this.prop?.transform?.mProps.sa)}getInterface(t){return this.shape?.a?.ix===t||"Anchor Point"===t?this.anchorPoint:this.shape?.o?.ix===t||"Opacity"===t?this.opacity:this.shape?.p?.ix===t||"Position"===t?this.position:this.shape?.r?.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?this.rotation:this.shape?.s?.ix===t||"Scale"===t?this.scale:this.shape?.sk?.ix===t||"Skew"===t?this.skew:this.shape?.sa?.ix===t||"Skew Axis"===t?this.skewAxis:null}constructor(...t){super(...t),this.prop=void 0}}class aj extends aA{get end(){return aS(this.prop?.e)}get offset(){return aS(this.prop?.o)}get start(){return aS(this.prop?.s)}getInterface(t){return t===this.shape?.e?.ix||"End"===t||"end"===t?this.end:t===this.shape?.s?.ix?this.start:t===this.shape?.o?.ix?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}let aH={comp:av,effects:class{createEffectsInterface(t,e){if(t.effectsManager){this.effectsData=t.data?.ef??[];let{length:s}=t.effectsManager.effectElements;for(let i=0;i<s;i++)this.effectElements.push(this.createGroupInterface(this.effectsData[i],t.effectsManager.effectElements[i],e,t));return this.effects=t.data?.ef??[],new aP(this.effects,this.effectElements)}return null}createGroupInterface(t,e,s,i){let r=e=>{let s=t.ef??[],i=0,{length:r}=s;for(;i<r;){if([s[i].nm,s[i].mn,s[i].ix].includes(e)){if(5===s[i].ty)return this.effectElements[i];return this.effectElements[i]()}i++}throw Error("Could not create Group Interface")},a=new aC(r,s),{length:n}=t.ef??[];for(let s=0;s<n;s+=1)t.ef?.[s].ty===5?this.effectElements.push(this.createGroupInterface(t.ef[s],e.effectElements[s],e.effectElements[s].propertyGroup,i)):this.effectElements.push(this.createValueInterface(e.effectElements[s],t.ef[s].ty,i,a));return"ADBE Color Control"===t.mn&&Object.defineProperty(r,"color",{get(){return this.effectElements[0]()}}),Object.defineProperties(r,{_name:{value:t.nm},numProperties:{get:()=>t.np},propertyGroup:{value:a}}),r.enabled=0!==t.en,r.active=r.enabled,r}createValueInterface(t,e,s,i){let r=aS(t.p);return t.p?.setGroupProperty&&t.p.setGroupProperty(new ak("",i)),function(){return 10===e?s.comp?.compInterface?.getInterface(t.p?.v):r()}}constructor(){this.effectElements=[],this.effects=[],this.effectsData=[]}},footage:class{constructor(t){this.currentPropertyName="",this.elem=t,this._name="Data",this.dataInterface=this.dataInterfaceFactory(t)}dataInterfaceFactory(t){return this._name="Outline",this.outlineInterface=this.outlineInterfaceFactory(t),this}getInterface(t){return"Data"===t?this.dataInterface:"Outline"===t?void this.outlineInterface():null}init(){return this.currentPropertyName="",this.currentProperty=this.elem.getFootageData(),this.searchProperty}outlineInterface(t){throw Error("Method is not implemented")}outlineInterfaceFactory(t){return this.currentPropertyName="",this.currentProperty=t.getFootageData(),this.elem=t,this.init}searchProperty(t){if(this.currentProperty?.[t])return(this.currentPropertyName=t,this.currentProperty=this.currentProperty[t],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty;let e=t.indexOf(this.currentPropertyName);if(-1!==e){let s=parseInt(t.slice(e+this.currentPropertyName.length),10);return(this.currentProperty=this.currentProperty?.[s],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty}return""}},layer:class{get active(){return this._elem.isInRange}get hasParent(){return this._elem.hierarchy.length>0}get parent(){return this._elem.hierarchy[0]?.layerInterface??null}get transform(){return this.transformInterface}constructor(t){if(this.sourceRectAtTime=t.sourceRectAtTime.bind(t),this._elem=t,!t.finalTransform)throw Error(`FinalTransform is not iplemented in ${t.constructor.name}`);this.transformInterface=new aT(t.finalTransform.mProp);const{anchorPoint:e,opacity:s,position:i,rotation:r,scale:a}=this.transformInterface;this.anchor_point=e,this.anchorPoint=e,this.opacity=s,this.position=i,this.rotation=r,this.scale=a,this.toComp=this.toWorld;const{frameRate:n}=t.comp?.globalData??{frameRate:60};this.startTime=t.data.st,this.index=t.data.ind,this.source=t.data.refId,this.height=0===t.data.ty?t.data.h:100,this.width=0===t.data.ty?t.data.w:100,this.inPoint=t.data.ip/n,this.outPoint=t.data.op/n,this._name=t.data.nm}applyPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0]??0,e[1]??0,e[2]??0)}fromComp(t){let e=new tu;if(e.reset(),this._elem.finalTransform?.mProp.applyToMatrix(e),this._elem.hierarchy.length>0){let t,s=this._elem.hierarchy.length;for(t=0;t<s;t+=1)this._elem.hierarchy[t]?.finalTransform?.mProp.applyToMatrix(e)}return e.inversePoint(t)}fromWorld(t,e){let s=this.getMatrix(e);return this.invertPoint(s,t)}fromWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.invertPoint(s,t)}getInterface(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return this.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return this.transformInterface;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return this.effect;case"ADBE Text Properties":return this.textInterface;default:return null}}getMatrix(t){let e=new tu;if(void 0===t){let t=this._elem.finalTransform?.mProp;t?.applyToMatrix(e)}else(this._elem.finalTransform?.mProp.getValueAtTime(t)).clone(e);return e}invertPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.inversePoint(e)}registerEffectsInterface(t){this.effect=t}registerMaskInterface(t){this.mask=new aD(t,this._elem)}sampleImage(){return[1,1,1,1]}toComp(t,e){throw Error("Method is not implemented")}toWorld(t,e){let s=this.getMatrix(e);return this.applyPoint(s,t)}toWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.applyPoint(s,t)}},shape:class{constructor(t,e,s){this._name="Contents",this.arr=[],this.parentGroup=s,this.propertyGroup=new aC(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length}contentsInterfaceFactory(t,e,s){aI.prototype.propertyGroup=new aC(aI,s),this.interfaces=this.iterateElements(t.it??null,e.it,aI.prototype.propertyGroup),aI.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],aI.prototype.propertyGroup);return aI.prototype.transform=i,aI.prototype.propertyIndex=t.cix,aI.prototype._name=t.nm,aI.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new aC(aF,s);aF.prototype.shape=t,aF.prototype.propertyIndex=t.ix;let r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new ak("Size",i)),r.p?.setGroupProperty(new ak("Position",i)),aF.prototype._name=t.nm,aF.prototype.prop=r,aF.prototype.mn=t.mn,aF.prototype.getInterface}fillInterfaceFactory(t,e,s){return aL.prototype._name=t.nm,aL.prototype.c=e.c,aL.prototype.mn=t.mn,aL.prototype.o=e.o,e.c?.setGroupProperty(new ak("Color",s)),e.o?.setGroupProperty(new ak("Opacity",s)),aL.prototype.getInterface}getInterface(t){let e=t;if("number"==typeof e)return 0===(e=t??1)?propertyGroup:this.interfaces[e-1];let s=0,{length:i}=this.interfaces;for(;s<i;){if(this.interfaces[s]._name===e)return this.interfaces[s];s++}return null}gradientFillInterfaceFactory(t,e,s){return a$.prototype._name=t.nm,a$.prototype.prop=e,a$.prototype.mn=t.mn,e.s?.setGroupProperty(new ak("Start Point",s)),e.e?.setGroupProperty(new ak("End Point",s)),e.o?.setGroupProperty(new ak("Opacity",s)),a$.prototype.getInterface}groupInterfaceFactory(t,e,s){aN.prototype.propertyGroup=new aC(aN,s);let i=this.contentsInterfaceFactory(t,e,aN.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],aN.prototype.propertyGroup);return aN.prototype.content=i,aN.prototype.transform=r,aN.prototype.shape=t,aN.prototype.numProperties=t.np,aN.prototype.propertyIndex=t.ix,aN.prototype.nm=t.nm,aN.prototype.mn=t.mn,aN.prototype.getInterface}iterateElements(t,e,s){let i=[],{length:r}=t??[];for(let a=0;a<r;a++)if(t)switch(t[a].ty){case to.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case to.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case to.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case to.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case to.Transform:break;case to.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case to.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case to.Path:i.push(new aO(t[a],e[a],s));break;case to.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case to.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case to.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case to.GradientFill:i.push(this.gradientFillInterfaceFactory(t[a],e[a],s));break;default:i.push(this.defaultInterfaceFactory(t[a],e[a],s))}return i}parentGroupWrapper(){return this.parentGroup}rectInterfaceFactory(t,e,s){aB.prototype.shape=t;let i=new aC(aB,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return aB.prototype.propertyIndex=t.ix,r.p?.setGroupProperty(new ak("Position",i)),r.s.setGroupProperty(new ak("Size",i)),r.r.setGroupProperty(new ak("Rotation",i)),aB.prototype.prop=r,aB.prototype._name=t.nm,aB.prototype.mn=t.mn,aB.prototype.getInterface}repeaterInterfaceFactory(t,e,s){aR.prototype.shape=t,aR.prototype.propertyIndex=t.ix,aR.prototype._name=t.nm,aR.prototype.mn=t.mn;let i=new aC(aR,s);return aR.prototype.prop=e,e.c?.setGroupProperty(new ak("Copies",i)),e.o?.setGroupProperty(new ak("Offset",i)),aR.prototype.getInterface}roundedInterfaceFactory(t,e,s){aV.prototype.shape=t,aV.prototype._name=t.nm,aV.prototype.propertyIndex=t.ix,aV.prototype.mn=t.mn;let i=new aC(aV,s);return e.rd.setGroupProperty(new ak("Radius",i)),aV.prototype.getInterface}starInterfaceFactory(t,e,s){az.prototype.shape=t;let i=new aC(az,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return az.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new ak("Outer Radius",i)),r.os.setGroupProperty(new ak("Outer Roundness",i)),r.pt.setGroupProperty(new ak("Points",i)),r.p.setGroupProperty(new ak("Position",i)),r.r.setGroupProperty(new ak("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new ak("Inner Radius",i)),r.is.setGroupProperty(new ak("Inner Roundness",i))),az.prototype._name=t.nm,az.prototype.prop=r,az.prototype.mn=t.mn,az.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i={},r=new aC(aG,s),a=new aC(i,r),{length:n}=t.d??[];for(let s=0;s<n;s++){var o;o=s,Object.defineProperty(i,t.d?.[o].nm,{get:aS(e.d.dataProps[o].p)}),e.d.dataProps[s].p.setGroupProperty(a)}return aG.prototype._name=t.nm,aG.prototype.mn=t.mn,aG.prototype.dashOb=i,aG.prototype.prop=e,e.c?.setGroupProperty(new ak("Color",r)),e.o?.setGroupProperty(new ak("Opacity",r)),e.w?.setGroupProperty(new ak("Stroke Width",r)),aG.prototype.getInterface}transformInterfaceFactory(t,e,s){aq.prototype.shape=t;let i=new aC(aq,s);return e.transform?.mProps.o?.setGroupProperty(new ak("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new ak("Position",i)),e.transform?.mProps.a?.setGroupProperty(new ak("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new ak("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new ak("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new ak("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new ak("Skew Angle",i))),e.transform?.op.setGroupProperty(new ak("Opacity",i)),aq.prototype._name=t.nm,aq.prototype.prop=e,aq.prototype.ty=to.Transform,aq.prototype.mn=t.mn,aq.prototype.propertyGroup=s,aq.prototype.getInterface}trimInterfaceFactory(t,e,s){aj.prototype.shape=t;let i=new aC(aj,s);return aj.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new ak("Start",i)),e.e?.setGroupProperty(new ak("End",i)),e.o?.setGroupProperty(new ak("Offset",i)),aj.prototype.propertyIndex=t.ix,aj.prototype.propertyGroup=s,aj.prototype._name=t.nm,aj.prototype.prop=e,aj.prototype.mn=t.mn,aj.prototype.getInterface}noOp(){return null}},text:class{get sourceText(){this.elem.textProperty?.getValue();let t=this.elem.textProperty?.currentData.t;return this._sourceText&&t===this._sourceText.value||(this._sourceText=new String(t),this._sourceText.value=t||new String(t),Object.defineProperty(this._sourceText,"style",{get(){return{fillColor:this.elem.textProperty.currentData.fc}}})),this._sourceText}constructor(t){this.elem=t}getInterface(t){return"ADBE Text Document"===t?this.sourceText:null}}};function aW(t){return aH[t]}let{Lottie:aY}=function({effects:t,expressions:e,renderers:s}){let i={destroy:iJ,freeze:iX,getRegisteredAnimations:iZ,goToAndStop:iK,installPlugin:e?.installPlugin,loadAnimation:iQ,mute:i0,pause:i1,play:i2,registerAnimation:i3,resize:i5,setDirection:i6,setLocationHref:ty,setPrefix:_,setQuality:tF,setSpeed:i9,setSubframeRendering:rV,setVolume:i8,stop:i7,togglePause:rt,unfreeze:re,unmute:rs,useWebWorker:iP,version:"1.5.6"};return s.forEach(({renderer:t,rendererType:e})=>{s7[e]=t}),sp(ts.TrimModifier,rL),sp(ts.PuckerAndBloatModifier,rA),sp(ts.RepeaterModifier,rI),sp(ts.RoundCornersModifier,rF),sp(ts.ZigZagModifier,rR),sp(ts.OffsetPathModifier,rT),e?.registerExpressions(),t.forEach(({countsAsEffect:t,effect:e,id:s,isCanvas:i})=>{i?tv[s]={countsAsEffect:void 0,effect:e}:eH[s]={countsAsEffect:t,effect:e}}),{installPlugin:e?.installPlugin,Lottie:i,setSubframeRendering:rV}}({effects:[{effect:class extends rO{constructor(t){super(),this.init(t)}},id:35,isCanvas:!0}],expressions:{installPlugin:(t,e)=>{"expressions"===t&&eP(e)},registerExpressions:()=>{eP(aw),ek.interface=aW,function(){let{getTransformProperty:t}=eA;eA.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=ag.bind(r):r.getValueAtTime=ay.bind(r),r.setGroupProperty=ap.setGroupProperty,r};let e=t4.getProp;t4.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=ap.getValueAtTime.bind(n):n.getValueAtTime=ap.getStaticValueAtTime.bind(n),n.setGroupProperty=ap.setGroupProperty,n.loopOut=ad,n.loopIn=au,n.smooth=af,n.getVelocityAtTime=ap.getVelocityAtTime.bind(n),n.getSpeedAtTime=ap.getSpeedAtTime.bind(n),n.numKeys=s?.a===1?s.k.length:0,n.propertyIndex=s?.ix;let o=0;return 0!==i&&(o=tc(te.Float32,s?.a===1?s.k[0]?.s.length:(s?.k).length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},ap.searchExpressions(t,s,n),n.k&&a?.addDynamicProperty(n),n};let s=ep.getConstructorFunction(),i=ep.getKeyframedConstructorFunction();ac([am],s),ac([am],i),i.prototype.getValueAtTime=ab,i.prototype.initiateExpression=al.initiateExpression;let r=ep.getShapeProp;ep.getShapeProp=function(t,e,s,i,a){let n=r(t,e,s,i,a);return n&&(n.propertyIndex=e.ix,n.lock=!1,3===s?ap.searchExpressions(t,e.pt,n):4===s&&ap.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n)),n}}(),sL.prototype.getExpressionValue=function(t,e){let s=this.calculateExpression(e);if(t.t!==s){let e={};return this.copyData(e,t),e.t=s.toString(),e.__complete=!1,e}return t},sL.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},sL.prototype.searchExpressions=a_}},renderers:[{renderer:sQ,rendererType:tn.Canvas}]});var aU={},aJ=function(t,e,s,i,r){var a=new Worker(aU[e]||(aU[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,s=e.$e$;if(s){var i=Error(s[0]);i.code=s[1],i.stack=s[2],r(i,null)}else r(null,e)},a.postMessage(s,i),a},aX=Uint8Array,aZ=Uint16Array,aK=Int32Array,aQ=new aX([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]),a0=new aX([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]),a1=new aX([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a2=function(t,e){for(var s=new aZ(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new aK(s[30]),i=1;i<30;++i)for(var a=s[i];a<s[i+1];++a)r[a]=a-s[i]<<5|i;return{b:s,r:r}},a3=a2(aQ,2),a5=a3.b,a4=a3.r;a5[28]=258,a4[258]=28;for(var a6=a2(a0,0),a9=a6.b,a8=a6.r,a7=new aZ(32768),nt=0;nt<32768;++nt){var ne=(43690&nt)>>1|(21845&nt)<<1;ne=(61680&(ne=(52428&ne)>>2|(13107&ne)<<2))>>4|(3855&ne)<<4,a7[nt]=((65280&ne)>>8|(255&ne)<<8)>>1}for(var ns=function(t,e,s){for(var i,r=t.length,a=0,n=new aZ(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aZ(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aZ(1<<e);var h=15-e;for(a=0;a<r;++a)if(t[a])for(var l=a<<4|t[a],p=e-t[a],m=o[t[a]-1]++<<p,c=m|(1<<p)-1;m<=c;++m)i[a7[m]>>h]=l}else for(i=new aZ(r),a=0;a<r;++a)t[a]&&(i[a]=a7[o[t[a]-1]++]>>15-t[a]);return i},ni=new aX(288),nt=0;nt<144;++nt)ni[nt]=8;for(var nt=144;nt<256;++nt)ni[nt]=9;for(var nt=256;nt<280;++nt)ni[nt]=7;for(var nt=280;nt<288;++nt)ni[nt]=8;for(var nr=new aX(32),nt=0;nt<32;++nt)nr[nt]=5;var na=ns(ni,9,0),nn=ns(ni,9,1),no=ns(nr,5,0),nh=ns(nr,5,1),nl=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},np=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},nm=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},nc=function(t){return(t+7)/8|0},nd=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new aX(t.subarray(e,s))},nu=["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"],nf=function(t,e,s){var i=Error(e||nu[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,nf),!s)throw i;return i},ng=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new aX(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new aX(3*r));var l=function(t){var e=s.length;if(t>e){var i=new aX(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,m=e.p||0,c=e.b||0,d=e.l,u=e.d,f=e.m,g=e.n,y=8*r;do{if(!d){p=np(t,m,1);var b=np(t,m+1,3);if(m+=3,b)if(1==b)d=nn,u=nh,f=9,g=5;else if(2==b){var v=np(t,m,31)+257,x=np(t,m+10,15)+4,w=v+np(t,m+5,31)+1;m+=14;for(var _=new aX(w),E=new aX(19),S=0;S<x;++S)E[a1[S]]=np(t,m+3*S,7);m+=3*x;for(var C=nl(E),k=(1<<C)-1,P=ns(E,C,1),S=0;S<w;){var M=P[np(t,m,k)];m+=15&M;var D=M>>4;if(D<16)_[S++]=D;else{var T=0,A=0;for(16==D?(A=3+np(t,m,3),m+=2,T=_[S-1]):17==D?(A=3+np(t,m,7),m+=3):18==D&&(A=11+np(t,m,127),m+=7);A--;)_[S++]=T}}var I=_.subarray(0,v),F=_.subarray(v);f=nl(I),g=nl(F),d=ns(I,f,1),u=ns(F,g,1)}else nf(1);else{var D=nc(m)+4,L=t[D-4]|t[D-3]<<8,$=D+L;if($>r){h&&nf(0);break}o&&l(c+L),s.set(t.subarray(D,$),c),e.b=c+=L,e.p=m=8*$,e.f=p;continue}if(m>y){h&&nf(0);break}}o&&l(c+131072);for(var N=(1<<f)-1,B=(1<<g)-1,R=m;;R=m){var T=d[nm(t,m)&N],V=T>>4;if((m+=15&T)>y){h&&nf(0);break}if(T||nf(2),V<256)s[c++]=V;else if(256==V){R=m,d=null;break}else{var O=V-254;if(V>264){var S=V-257,z=aQ[S];O=np(t,m,(1<<z)-1)+a5[S],m+=z}var G=u[nm(t,m)&B],q=G>>4;G||nf(3),m+=15&G;var F=a9[q];if(q>3){var z=a0[q];F+=nm(t,m)&(1<<z)-1,m+=z}if(m>y){h&&nf(0);break}o&&l(c+131072);var j=c+O;if(c<F){var H=a-F,W=Math.min(F,j);for(H+c<0&&nf(3);c<W;++c)s[c]=i[H+c]}for(;c<j;++c)s[c]=s[c-F]}}e.l=d,e.p=R,e.b=c,e.f=p,d&&(p=1,e.m=f,e.d=u,e.n=g)}while(!p);return c!=s.length&&n?nd(s,0,c):s.subarray(0,c)},ny=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},nb=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8,t[i+2]|=s>>16},nv=function(t,e){for(var s=[],i=0;i<t.length;++i)t[i]&&s.push({s:i,f:t[i]});var r=s.length,a=s.slice();if(!r)return{t:nk,l:0};if(1==r){var n=new aX(s[0].s+1);return n[s[0].s]=1,{t:n,l:1}}s.sort(function(t,e){return t.f-e.f}),s.push({s:-1,f:25001});var o=s[0],h=s[1],l=0,p=1,m=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[m].f?l++:m++],h=s[l!=p&&s[l].f<s[m].f?l++:m++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var c=a[0].s,i=1;i<r;++i)a[i].s>c&&(c=a[i].s);var d=new aZ(c+1),u=nx(s[p-1],d,0);if(u>e){var i=0,f=0,g=u-e,y=1<<g;for(a.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<r;++i){var b=a[i].s;if(d[b]>e)f+=y-(1<<u-d[b]),d[b]=e;else break}for(f>>=g;f>0;){var v=a[i].s;d[v]<e?f-=1<<e-d[v]++-1:++i}for(;i>=0&&f;--i){var x=a[i].s;d[x]==e&&(--d[x],++f)}u=e}return{t:new aX(d),l:u}},nx=function(t,e,s){return -1==t.s?Math.max(nx(t.l,e,s+1),nx(t.r,e,s+1)):e[t.s]=s},nw=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aZ(++e),i=0,r=t[0],a=1,n=function(t){s[i++]=t},o=1;o<=e;++o)if(t[o]==r&&o!=e)++a;else{if(!r&&a>2){for(;a>138;a-=138)n(32754);a>2&&(n(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(n(r),--a;a>6;a-=6)n(8304);a>2&&(n(a-3<<5|8208),a=0)}for(;a--;)n(r);a=1,r=t[o]}return{c:s.subarray(0,i),n:e}},n_=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},nE=function(t,e,s){var i=s.length,r=nc(e+2);t[r]=255&i,t[r+1]=i>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var a=0;a<i;++a)t[r+a+4]=s[a];return(r+4+i)*8},nS=function(t,e,s,i,r,a,n,o,h,l,p){ny(e,p++,s),++r[256];for(var m,c,d,u,f=nv(r,15),g=f.t,y=f.l,b=nv(a,15),v=b.t,x=b.l,w=nw(g),_=w.c,E=w.n,S=nw(v),C=S.c,k=S.n,P=new aZ(19),M=0;M<_.length;++M)++P[31&_[M]];for(var M=0;M<C.length;++M)++P[31&C[M]];for(var D=nv(P,7),T=D.t,A=D.l,I=19;I>4&&!T[a1[I-1]];--I);var F=l+5<<3,L=n_(r,ni)+n_(a,nr)+n,$=n_(r,g)+n_(a,v)+n+14+3*I+n_(P,T)+2*P[16]+3*P[17]+7*P[18];if(h>=0&&F<=L&&F<=$)return nE(e,p,t.subarray(h,h+l));if(ny(e,p,1+($<L)),p+=2,$<L){m=ns(g,y,0),c=g,d=ns(v,x,0),u=v;var N=ns(T,A,0);ny(e,p,E-257),ny(e,p+5,k-1),ny(e,p+10,I-4),p+=14;for(var M=0;M<I;++M)ny(e,p+3*M,T[a1[M]]);p+=3*I;for(var B=[_,C],R=0;R<2;++R)for(var V=B[R],M=0;M<V.length;++M){var O=31&V[M];ny(e,p,N[O]),p+=T[O],O>15&&(ny(e,p,V[M]>>5&127),p+=V[M]>>12)}}else m=na,c=ni,d=no,u=nr;for(var M=0;M<o;++M){var z=i[M];if(z>255){var O=z>>18&31;nb(e,p,m[O+257]),p+=c[O+257],O>7&&(ny(e,p,z>>23&31),p+=aQ[O]);var G=31&z;nb(e,p,d[G]),p+=u[G],G>3&&(nb(e,p,z>>5&8191),p+=a0[G])}else nb(e,p,m[z]),p+=c[z]}return nb(e,p,m[256]),p+c[256]},nC=new aK([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nk=new aX(0),nP=function(t,e,s,i,r,a){var n=a.z||t.length,o=new aX(i+n+5*(1+Math.ceil(n/7e3))+r),h=o.subarray(i,o.length-r),l=a.l,p=7&(a.r||0);if(e){p&&(h[0]=a.r>>3);for(var m=nC[e-1],c=m>>13,d=8191&m,u=(1<<s)-1,f=a.p||new aZ(32768),g=a.h||new aZ(u+1),y=Math.ceil(s/3),b=2*y,v=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<b)&u},x=new aK(25e3),w=new aZ(288),_=new aZ(32),E=0,S=0,C=a.i||0,k=0,P=a.w||0,M=0;C+2<n;++C){var D=v(C),T=32767&C,A=g[D];if(f[T]=A,g[D]=T,P<=C){var I=n-C;if((E>7e3||k>24576)&&(I>423||!l)){p=nS(t,h,0,x,w,_,S,k,M,C-M,p),k=E=S=0,M=C;for(var F=0;F<286;++F)w[F]=0;for(var F=0;F<30;++F)_[F]=0}var L=2,$=0,N=d,B=T-A&32767;if(I>2&&D==v(C-B))for(var R=Math.min(c,I)-1,V=Math.min(32767,C),O=Math.min(258,I);B<=V&&--N&&T!=A;){if(t[C+L]==t[C+L-B]){for(var z=0;z<O&&t[C+z]==t[C+z-B];++z);if(z>L){if(L=z,$=B,z>R)break;for(var G=Math.min(B,z-2),q=0,F=0;F<G;++F){var j=C-B+F&32767,H=f[j],W=j-H&32767;W>q&&(q=W,A=j)}}}A=f[T=A],B+=T-A&32767}if($){x[k++]=0x10000000|a4[L]<<18|a8[$];var Y=31&a4[L],U=31&a8[$];S+=aQ[Y]+a0[U],++w[257+Y],++_[U],P=C+L,++E}else x[k++]=t[C],++w[t[C]]}}for(C=Math.max(C,P);C<n;++C)x[k++]=t[C],++w[t[C]];p=nS(t,h,l,x,w,_,S,k,M,C-M,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=C,a.w=P)}else{for(var C=a.w||0;C<n+l;C+=65535){var J=C+65535;J>=n&&(h[p/8|0]=l,J=n),p=nE(h,p+1,t.subarray(C,J))}a.i=n}return nd(o,0,i+nc(p)+r)},nM=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var s=e,i=9;--i;)s=(1&s&&-0x12477ce0)^s>>>1;t[e]=s}return t}(),nD=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=nM[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},nT=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new aX(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return nP(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,s,i,r)},nA=function(t,e){var s={};for(var i in t)s[i]=t[i];for(var i in e)s[i]=e[i];return s},nI=function(t,e,s){for(var i=t(),r=t.toString(),a=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),n=0;n<i.length;++n){var o=i[n],h=a[n];if("function"==typeof o){e+=";"+h+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var p=l.indexOf(" ",8)+1;e+=l.slice(p,l.indexOf("(",p))}else for(var m in e+=l,o.prototype)e+=";"+h+".prototype."+m+"="+o.prototype[m].toString();else e+=l}else s[h]=o}return e},nF=[],nL=function(t){var e=[];for(var s in t)t[s].buffer&&e.push((t[s]=new t[s].constructor(t[s])).buffer);return e},n$=function(t,e,s,i){if(!nF[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=nI(t[o],r,a);nF[s]={c:nI(t[n],r,a),e:a}}var h=nA({},nF[s].e);return aJ(nF[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,nL(h),i)},nN=function(){return[aX,aZ,aK,aQ,a0,a1,a5,a9,nn,nh,a7,nu,ns,nl,np,nm,nc,nd,nf,ng,nW,nR,nV]},nB=function(){return[aX,aZ,aK,aQ,a0,a1,a4,a8,na,ni,no,nr,a7,nC,nk,ns,ny,nb,nv,nx,nw,n_,nE,nS,nc,nd,nP,nT,nH,nR]},nR=function(t){return postMessage(t,[t.buffer])},nV=function(t){return t&&{out:t.size&&new aX(t.size),dictionary:t.dictionary}},nO=function(t,e,s,i,r,a){var n=n$(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},nz=function(t,e){return t[e]|t[e+1]<<8},nG=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},nq=function(t,e){return nG(t,e)+0x100000000*nG(t,e+4)},nj=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nH(t,e){return nT(t,e||{},0,0)}function nW(t,e){return ng(t,{i:2},e&&e.out,e&&e.dictionary)}var nY=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=nA(i,a[1]),a=a[0]),ArrayBuffer.isView(a)?s[n]=[a,o]:(s[n+="/"]=[new aX(0),o],nY(a,n,s,i))}},nU="u">typeof TextEncoder&&new TextEncoder,nJ="u">typeof TextDecoder&&new TextDecoder;try{nJ.decode(nk,{stream:!0})}catch(t){}var nX=function(t){for(var e="",s=0;;){var i=t[s++],r=(i>127)+(i>223)+(i>239);if(s+r>t.length)return{s:e,r:nd(t,s-1)};r?3==r?e+=String.fromCharCode(55296|(i=((15&i)<<18|(63&t[s++])<<12|(63&t[s++])<<6|63&t[s++])-65536)>>10,56320|1023&i):1&r?e+=String.fromCharCode((31&i)<<6|63&t[s++]):e+=String.fromCharCode((15&i)<<12|(63&t[s++])<<6|63&t[s++]):e+=String.fromCharCode(i)}};function nZ(t,e){if(e){for(var s=new aX(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nU)return nU.encode(t);for(var r=t.length,a=new aX(t.length+(t.length>>1)),n=0,o=function(t){a[n++]=t},i=0;i<r;++i){if(n+5>a.length){var h=new aX(n+8+(r-i<<1));h.set(a),a=h}var l=t.charCodeAt(i);l<128||e?o(l):(l<2048?o(192|l>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++i))>>18),o(128|l>>12&63)):o(224|l>>12),o(128|l>>6&63)),o(128|63&l))}return nd(a,0,n)}function nK(t,e){if(e){for(var s="",i=0;i<t.length;i+=16384)s+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return s}if(nJ)return nJ.decode(t);var r=nX(t),a=r.s,s=r.r;return s.length&&nf(8),a}var nQ=function(t,e,s){var i=nz(t,e+28),r=nz(t,e+30),a=nK(t.subarray(e+46,e+46+i),!(2048&nz(t,e+8))),n=e+46+i,o=n0(t,n,r,s,nG(t,e+20),nG(t,e+24),nG(t,e+42)),h=o[0],l=o[1],p=o[2];return[nz(t,e+10),h,l,a,n+r+nz(t,e+32),p]},n0=function(t,e,s,i,r,a,n){var o=0xffffffff==r,h=0xffffffff==a,l=0xffffffff==n,p=e+s;if(i&&o+h+l){for(;e+4<p;e+=4+nz(t,e+2))if(1==nz(t,e))return[o?nq(t,e+4+8*h):r,h?nq(t,e+4):a,l?nq(t,e+4+8*(h+o)):n,1];i<2&&nf(13)}return[r,a,n,0]},n1=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&nf(9),e+=i+4}return e},n2=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,m=n1(l);nj(t,e,null!=n?0x2014b50:0x4034b50),e+=4,null!=n&&(t[e++]=20,t[e++]=s.os),t[e]=20,e+=2,t[e++]=s.flag<<1|(a<0&&8),t[e++]=r&&8,t[e++]=255&s.compression,t[e++]=s.compression>>8;var c=new Date(null==s.mtime?Date.now():s.mtime),d=c.getFullYear()-1980;if((d<0||d>119)&&nf(10),nj(t,e,d<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=a&&(nj(t,e,s.crc),nj(t,e+4,a<0?-a-2:a),nj(t,e+8,s.size)),nj(t,e+12,h),nj(t,e+14,m),e+=16,null!=n&&(nj(t,e,p),nj(t,e+6,s.attrs),nj(t,e+10,n),e+=14),t.set(i,e),e+=h,m)for(var u in l){var f=l[u],g=f.length;nj(t,e,+u),nj(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},n3=function(t,e,s,i,r){nj(t,e,0x6054b50),nj(t,e+8,s),nj(t,e+10,s),nj(t,e+12,i),nj(t,e+16,r)},n5="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};let n4=async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&nf(7);var i={};nY(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],m=function(){for(var t=0;t<p.length;++t)p[t]()},c=function(t,e){n5(function(){s(t,e)})};n5(function(){c=s});var d=function(){var t=new aX(o+22),e=n,s=o-n;o=0;for(var i=0;i<h;++i){var r=l[i];try{var a=r.c.length;n2(t,o,r,r.f,r.u,a);var p=30+r.f.length+n1(r.extra),m=o+p;t.set(r.c,m),n2(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=m+a}catch(t){return c(t,null)}}n3(t,n,l.length,s,e),c(null,t)};a||d();for(var u=function(t){var e,s,h=r[t],u=i[h],f=u[0],g=u[1],y=nD(),b=f.length;y.p(f);var v=nZ(h),x=v.length,w=g.comment,_=w&&nZ(w),E=_&&_.length,S=n1(g.extra),C=8*(0!=g.level),k=function(e,s){if(e)m(),c(e,null);else{var i=s.length;l[t]=nA(g,{size:b,crc:y.d(),c:s,f:v,m:_,u:x!=h.length||_&&w.length!=E,compression:C}),n+=30+x+S+i,o+=76+2*(x+S)+(E||0)+i,--a||d()}};if(x>65535&&k(nf(11,0,1),null),C)if(b<16e4)try{k(null,nH(f,g))}catch(t){k(t,null)}else p.push((e=g,(s=k)||(s=e,e={}),"function"!=typeof s&&nf(7),nO(f,e,[nB],function(t){return nR(nH(t.data[0],t.data[1]))},0,s)));else k(null,f)},f=0;f<h;++f)u(f)}(t,{level:9},(t,i)=>{t?s(t):i.buffer instanceof ArrayBuffer?e(i.buffer):s(Error("Data is not transferable"))})}),n6=async t=>{let e=await fetch(t),s=await e.blob();return new Promise((t,e)=>{try{let i=new FileReader;i.onload=()=>{"string"==typeof i.result?t(i.result):e(Error("Could not create bas64"))},i.readAsDataURL(s)}catch(t){t instanceof Error&&e(t)}})},n9=t=>nZ(b?Buffer.from(O(t),"base64").toString("binary"):atob(O(t)),!0);async function n8({animations:t=[],fileName:e,manifest:s,shouldDownload:i=!0}){try{if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
8
- ${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let r=L("lottie",e)||`${k()}.lottie`,a={"manifest.json":[nZ(JSON.stringify(s),!0),{level:0}]},{length:n}=t;for(let e=0;e<n;e++){let{length:i}=t[e]?.assets??[];for(let s=0;s<i;s++){let i=t[e]?.assets[s];if(!i.p||!R(i)&&!B(i))continue;let{p:r,u:n}=i;if(!r)continue;let o=k(),h=r.startsWith("data:"),l=h?I(r):A(r),p=h?r:await n6(n?n.endsWith("/")&&`${n}${r}`||`${n}/${r}`:r),m=t[e]?.assets[s];m.e=1,m.p=`${o}.${l}`,m.u="",a[`${B(i)?"audio":"i"}/${o}.${l}`]=[n9(p),{level:9}]}let{length:r}=t[e]?.layers??[];for(let s=0;s<r;s++){let{ks:i}=t[e]?.layers[s]??{},r=Object.keys(i),{length:a}=r;for(let n=0;n<a;n++){let{x:a}=i[r[n]];if(!a)continue;let o=t[e]?.layers[s]?.ks[r[n]];o.x=btoa(a),o.e=1}}a[`a/${s.animations[e]?.id}.json`]=[nZ(JSON.stringify(t[e]),!0),{level:9}]}let o=await n4(a);if(i)return D(o,{mimeType:"application/zip+dotlottie",name:r}),null;return o}catch(t){return M(t),null}}let n7=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},ot=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(O(t));async function oe(t,e){if(!Array.isArray(e))return;let s=[],{length:i}=e;for(let r=0;r<i;r++){let i,a=e[r];if(!B(a)&&!R(a))continue;let n=R(a),o=n?"images":"audio",h=a.u?.replace(/^\/+/,"");h&&""!==h?i=t?.[`${h}${a.p}`]:n&&(i=t?.[`i/${a.p}`]),(i=i??t?.[`${o}/${a.p}`])&&s.push(new Promise(t=>{let e;if(b)e=Buffer.from(i).toString("base64");else{let t="",{length:s}=i;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=btoa(t)}a.p=a.p?.startsWith("data:")||ot(a.p)?a.p:`data:${n7(A(a.p))};base64,${e}`,a.e=1,a.u="",t()}))}await Promise.all(s)}let os=async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&nf(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){n5(function(){s(t,e)})};n5(function(){n=s});for(var o=t.length-22;0x6054b50!=nG(t,o);--o)if(!o||t.length-o>65558)return n(nf(13,0,1),null),r;var h=nz(t,o+8);if(h){var l=h,p=nG(t,o+16),m=0x7064b50==nG(t,o-20);if(m){var c=nG(t,o-12);(m=0x6064b50==nG(t,c))&&(l=h=nG(t,c+32),p=nG(t,c+48))}for(var d=e&&e.filter,u=0;u<l;++u)!function(){var e=nQ(t,p,m),s=e[0],o=e[1],l=e[2],c=e[3],u=e[4],f=e[5],g=f+30+nz(t,f+26)+nz(t,f+28);p=u;var y=function(t,e){t?(r(),n(t,null)):(e&&(a[c]=e),--h||n(null,a))};if(!d||d({name:c,size:o,originalSize:l,compression:s}))if(s)if(8==s){var b,v,x=t.subarray(g,g+o);if(l<524288||o>.8*l)try{y(null,nW(x,{out:new aX(l)}))}catch(t){y(t,null)}else i.push((b={size:l},(v=y)||(v=b,b={}),"function"!=typeof v&&nf(7),nO(x,b,[nN],function(t){return nR(nW(t.data[0],nV(t.data[1])))},1,v)))}else y(nf(14,"unknown compression type "+s,1),null);else y(null,nd(t,g,g+o));else y(null,null)}()}else n(null,{})}(e,(e,i)=>{e&&s(e),t(i)})})},oi=t=>t.replaceAll(RegExp(/"""/,"g"),'""').replaceAll(/(["'])(.*?)\1/g,(t,e,s)=>`${e}${s}${e}`);async function or(t){let e=await os(t),s=(t=>{let e=JSON.parse(nK(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e})(e),i=[],r=[],{length:a}=s.animations,n="animations";("2"===s.version||e[`a/${s.animations[0]?.id}.json`])&&(n="a");for(let t=0;t<a;t++){let a=JSON.parse(oi(nK(e[`${n}/${s.animations[t]?.id}.json`]))),{length:o}=a.layers;for(let t=0;t<o;t++){let{ks:e}=a.layers[t]??{},s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++){let{e:i,x:n}=e[s[r]];if(!n||!i)continue;let o=a.layers[t]?.ks[s[r]];o&&(o.x=atob(n))}}r.push(oe(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}}async function oa(t){try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{"Content-Type":"application/json; charset=UTF-8"}});if(!e.ok)throw Error(e.statusText);let s=!0,i=e.headers.get("content-type");if("application/zip+dotlottie"===i&&(s=!1),s){let s=A(t);if("json"===s)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let i=await e.clone().text();try{return{animations:[JSON.parse(i)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:r,manifest:a}=await or(e);return{animations:r,isDotLottie:!0,manifest:a}}catch(t){return M(t),{animations:void 0,isDotLottie:!1,manifest:null}}}function on({animation:t,fileName:e,shouldDownload:s}){try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let i=L("json",e)||`${k()}.json`,r=JSON.stringify(t);if(s)return D(r,{mimeType:"application/json",name:i}),null;return r}catch(t){return M(t),null}}var oo=Object.freeze({__proto__:null,addAnimation:async function({configs:t,fileName:e,generator:s,id:i,shouldDownload:r=!0,src:a}){let{animations:n=[],manifest:o={animations:a?[{id:i}]:[]}}=a?await oa(a):{};try{if(!o)throw Error("Manifest is not set");o.generator=s;let{length:i}=t;for(let e=0;e<i;e++){let{url:s}=t[e]??{},{animations:i}=await oa(s);if(!i)throw Error("No animation loaded");if(o.animations.some(s=>s.id===t[e]?.id))throw Error("Duplicate id for animation");o.animations=[...o.animations,{id:t[e]?.id??""}],n.push(...i)}return{result:await n8({animations:n,fileName:e,manifest:o,shouldDownload:r}),success:!0}}catch(t){return{error:t.message,success:!1}}},convert:async function({animations:t,currentAnimation:e=0,fileName:s,generator:i,isDotLottie:r,manifest:a,shouldDownload:n=!0,src:o,typeCheck:h}){try{if(!o&&!t?.length)throw Error("No animation to convert");let l=t;if(l||(l=(await oa(o)).animations??[]),h||r){let t=F(s||o||"converted");return l.length>1&&(t+=`-${e+1}`),t+=".json",{result:on({animation:l[e],fileName:t,shouldDownload:n}),success:!0}}return{result:await n8({animations:l,fileName:`${F(s||o||"converted")}.lottie`,manifest:{...a??a,generator:i,version:"2"},shouldDownload:n}),success:!0}}catch(t){return{error:t.message,success:!1}}},createDotLottie:n8,createJSON:on,getAnimationData:oa,getLottieJSON:or,resolveAssets:oe});let oh=Symbol("UPDATE_ON_CONNECTED");b&&(global.HTMLElement=class{});class ol extends HTMLElement{constructor(){super(),oh in this&&(this[oh]=[]);const{observedProperties:t}=this.constructor,{length:e}=t;for(let s=0;s<e;s++){const e=this[t[s]],i=Symbol(t[s]);this[i]=e,Object.defineProperty(this,t[s]??"",{get(){return this[i]},set(e){let r=this[i];this[i]=e,this.propertyChangedCallback(t[s],r,e)}}),void 0!==e&&oh in this&&Array.isArray(this[oh])&&this[oh].push(t[s])}}connectedCallback(){let t=[];oh in this&&Array.isArray(this[oh])&&(t=this[oh]);let{length:e}=t;for(let s=0;s<e;s++)"propertyChangedCallback"in this&&"function"==typeof this.propertyChangedCallback&&(t[s]??""in this)&&this.propertyChangedCallback(t[s]??"",void 0,this[t[s]])}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}let op=null,om=null,oc=`
8
+ ${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let r=L("lottie",e)||`${k()}.lottie`,a={"manifest.json":[nZ(JSON.stringify(s),!0),{level:0}]},{length:n}=t;for(let e=0;e<n;e++){let{length:i}=t[e]?.assets??[];for(let s=0;s<i;s++){let i=t[e]?.assets[s];if(!i.p||!R(i)&&!B(i))continue;let{p:r,u:n}=i;if(!r)continue;let o=k(),h=r.startsWith("data:"),l=h?I(r):A(r),p=h?r:await n6(n?n.endsWith("/")&&`${n}${r}`||`${n}/${r}`:r),m=t[e]?.assets[s];m.e=1,m.p=`${o}.${l}`,m.u="",a[`${B(i)?"audio":"i"}/${o}.${l}`]=[n9(p),{level:9}]}let{length:r}=t[e]?.layers??[];for(let s=0;s<r;s++){let{ks:i}=t[e]?.layers[s]??{},r=Object.keys(i),{length:a}=r;for(let n=0;n<a;n++){let{x:a}=i[r[n]];if(!a)continue;let o=t[e]?.layers[s]?.ks[r[n]];o.x=btoa(a),o.e=1}}a[`a/${s.animations[e]?.id}.json`]=[nZ(JSON.stringify(t[e]),!0),{level:9}]}let o=await n4(a);if(i)return D(o,{mimeType:"application/zip+dotlottie",name:r}),null;return o}catch(t){return M(t),null}}let n7=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},ot=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(O(t));async function oe(t,e){if(!Array.isArray(e))return;let s=[],{length:i}=e;for(let r=0;r<i;r++){let i,a=e[r];if(!B(a)&&!R(a))continue;let n=R(a),o=n?"images":"audio",h=a.u?.replace(/^\/+/,"");h&&""!==h?i=t?.[`${h}${a.p}`]:n&&(i=t?.[`i/${a.p}`]),(i=i??t?.[`${o}/${a.p}`])&&s.push(new Promise(t=>{let e;if(b)e=Buffer.from(i).toString("base64");else{let t="",{length:s}=i;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=btoa(t)}a.p=a.p?.startsWith("data:")||ot(a.p)?a.p:`data:${n7(A(a.p))};base64,${e}`,a.e=1,a.u="",t()}))}await Promise.all(s)}let os=async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&nf(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){n5(function(){s(t,e)})};n5(function(){n=s});for(var o=t.length-22;0x6054b50!=nG(t,o);--o)if(!o||t.length-o>65558)return n(nf(13,0,1),null),r;var h=nz(t,o+8);if(h){var l=h,p=nG(t,o+16),m=0x7064b50==nG(t,o-20);if(m){var c=nG(t,o-12);(m=0x6064b50==nG(t,c))&&(l=h=nG(t,c+32),p=nG(t,c+48))}for(var d=e&&e.filter,u=0;u<l;++u)!function(){var e=nQ(t,p,m),s=e[0],o=e[1],l=e[2],c=e[3],u=e[4],f=e[5],g=f+30+nz(t,f+26)+nz(t,f+28);p=u;var y=function(t,e){t?(r(),n(t,null)):(e&&(a[c]=e),--h||n(null,a))};if(!d||d({name:c,size:o,originalSize:l,compression:s}))if(s)if(8==s){var b,v,x=t.subarray(g,g+o);if(l<524288||o>.8*l)try{y(null,nW(x,{out:new aX(l)}))}catch(t){y(t,null)}else i.push((b={size:l},(v=y)||(v=b,b={}),"function"!=typeof v&&nf(7),nO(x,b,[nN],function(t){return nR(nW(t.data[0],nV(t.data[1])))},1,v)))}else y(nf(14,"unknown compression type "+s,1),null);else y(null,nd(t,g,g+o));else y(null,null)}()}else n(null,{})}(e,(e,i)=>{e&&s(e),t(i)})})},oi=t=>t.replaceAll(RegExp(/"""/,"g"),'""').replaceAll(/(["'])(.*?)\1/g,(t,e,s)=>`${e}${s}${e}`);async function or(t){let e=await os(t),s=(t=>{let e=JSON.parse(nK(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e})(e),i=[],r=[],{length:a}=s.animations,n="animations";("2"===s.version||e[`a/${s.animations[0]?.id}.json`])&&(n="a");for(let t=0;t<a;t++){let a=JSON.parse(oi(nK(e[`${n}/${s.animations[t]?.id}.json`]))),{length:o}=a.layers;for(let t=0;t<o;t++){let{ks:e}=a.layers[t]??{},s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++){let{e:i,x:n}=e[s[r]];if(!n||!i)continue;let o=a.layers[t]?.ks[s[r]];o&&(o.x=atob(n))}}r.push(oe(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}}async function oa(t){try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{"Content-Type":"application/json; charset=UTF-8"}});if(!e.ok)throw Error(e.statusText);let s=!0,i=e.headers.get("content-type");if("application/zip+dotlottie"===i&&(s=!1),s){let s=A(t);if("json"===s)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let i=await e.clone().text();try{return{animations:[JSON.parse(i)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:r,manifest:a}=await or(e);return{animations:r,isDotLottie:!0,manifest:a}}catch(t){return M(t),{animations:void 0,isDotLottie:!1,manifest:null}}}function on({animation:t,fileName:e,shouldDownload:s}){try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let i=L("json",e)||`${k()}.json`,r=JSON.stringify(t);if(s)return D(r,{mimeType:"application/json",name:i}),null;return r}catch(t){return M(t),null}}var oo=Object.freeze({__proto__:null,addAnimation:async function({configs:t,fileName:e,generator:s,id:i,shouldDownload:r=!0,src:a}){let{animations:n=[],manifest:o={animations:a?[{id:i}]:[]}}=a?await oa(a):{};try{if(!o)throw Error("Manifest is not set");o.generator=s;let{length:i}=t;for(let e=0;e<i;e++){let{url:s}=t[e]??{},{animations:i}=await oa(s);if(!i)throw Error("No animation loaded");if(o.animations.some(s=>s.id===t[e]?.id))throw Error("Duplicate id for animation");o.animations=[...o.animations,{id:t[e]?.id??""}],n.push(...i)}return{result:await n8({animations:n,fileName:e,manifest:o,shouldDownload:r}),success:!0}}catch(t){return{error:t.message,success:!1}}},convert:async function({animations:t,currentAnimation:e=0,fileName:s,generator:i,isDotLottie:r,manifest:a,shouldDownload:n=!0,src:o,typeCheck:h}){try{if(!o&&!t?.length)throw Error("No animation to convert");let l=t;if(l||(l=(await oa(o)).animations??[]),h||r){let t=F(s||o||"converted");return l.length>1&&(t+=`-${e+1}`),t+=".json",{result:on({animation:l[e],fileName:t,shouldDownload:n}),success:!0}}return{result:await n8({animations:l,fileName:`${F(s||o||"converted")}.lottie`,manifest:{...a??a,generator:i,version:"2"},shouldDownload:n}),success:!0}}catch(t){return{error:t.message,success:!1}}},createDotLottie:n8,createJSON:on,getAnimationData:oa,getLottieJSON:or,resolveAssets:oe});let oh=null,ol=Symbol("UPDATE_ON_CONNECTED");b&&(global.HTMLElement=class{});class op extends HTMLElement{constructor(){super(),ol in this&&(this[ol]=[]);const{observedProperties:t}=this.constructor,{length:e}=t;for(let s=0;s<e;s++){const e=this[t[s]],i=Symbol(t[s]);this[i]=e,Object.defineProperty(this,t[s]??"",{get(){return this[i]},set(e){let r=this[i];this[i]=e,this.propertyChangedCallback(t[s],r,e)}}),void 0!==e&&ol in this&&Array.isArray(this[ol])&&this[ol].push(t[s])}}connectedCallback(){let t=[];ol in this&&Array.isArray(this[ol])&&(t=this[ol]);let{length:e}=t;for(let s=0;s<e;s++)"propertyChangedCallback"in this&&"function"==typeof this.propertyChangedCallback&&(t[s]??""in this)&&this.propertyChangedCallback(t[s]??"",void 0,this[t[s]])}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}let om=null,oc=null,od=`
9
9
  <svg width="24" height="24" aria-hidden="true" focusable="false">
10
10
  <path
11
11
  d="m11.8 13.2-.3.3c-.5.5-1.1 1.1-1.7 1.5-.5.4-1 .6-1.5.8-.5.2-1.1.3-1.6.3s-1-.1-1.5-.3c-.6-.2-1-.5-1.4-1-.5-.6-.8-1.2-.9-1.9-.2-.9-.1-1.8.3-2.6.3-.7.8-1.2 1.3-1.6.3-.2.6-.4 1-.5.2-.2.5-.2.8-.3.3 0 .7-.1 1 0 .3 0 .6.1.9.2.9.3 1.7.9 2.4 1.5.4.4.8.7 1.1 1.1l.1.1.4-.4c.6-.6 1.2-1.2 1.9-1.6.5-.3 1-.6 1.5-.7.4-.1.7-.2 1-.2h.9c1 .1 1.9.5 2.6 1.4.4.5.7 1.1.8 1.8.2.9.1 1.7-.2 2.5-.4.9-1 1.5-1.8 2-.4.2-.7.4-1.1.4-.4.1-.8.1-1.2.1-.5 0-.9-.1-1.3-.3-.8-.3-1.5-.9-2.1-1.5-.4-.4-.8-.7-1.1-1.1h-.3zm-1.1-1.1c-.1-.1-.1-.1 0 0-.3-.3-.6-.6-.8-.9-.5-.5-1-.9-1.6-1.2-.4-.3-.8-.4-1.3-.4-.4 0-.8 0-1.1.2-.5.2-.9.6-1.1 1-.2.3-.3.7-.3 1.1 0 .3 0 .6.1.9.1.5.4.9.8 1.2.5.4 1.1.5 1.7.5.5 0 1-.2 1.5-.5.6-.4 1.1-.8 1.6-1.3.1-.3.3-.5.5-.6zM13 12c.5.5 1 1 1.5 1.4.5.5 1.1.9 1.9 1 .4.1.8 0 1.2-.1.3-.1.6-.3.9-.5.4-.4.7-.9.8-1.4.1-.5 0-.9-.1-1.4-.3-.8-.8-1.2-1.7-1.4-.4-.1-.8-.1-1.2 0-.5.1-1 .4-1.4.7-.5.4-1 .8-1.4 1.2-.2.2-.4.3-.5.5z"
12
12
  />
13
13
  </svg>
14
- `,od=`
14
+ `,ou=`
15
15
  <svg
16
16
  width="24"
17
17
  height="24"
@@ -22,7 +22,7 @@
22
22
  d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"
23
23
  />
24
24
  </svg>
25
- `,ou=`
25
+ `,of=`
26
26
  <svg
27
27
  width="24"
28
28
  height="24"
@@ -33,40 +33,40 @@
33
33
  d="M16.8 10.8 12 15.6l-4.8-4.8h3V3.6h3.6v7.2h3zM12 15.6H3v4.8h18v-4.8h-9zm7.8 2.4h-2.4v-1.2h2.4V18z"
34
34
  />
35
35
  </svg>
36
- `,of=`
36
+ `,og=`
37
37
  <svg width="24" height="24" aria-hidden="true" focusable="false">
38
38
  <path
39
39
  d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"
40
40
  />
41
41
  </svg>
42
- `,og=`
42
+ `,oy=`
43
43
  <svg width="24" height="24" aria-hidden="true" focusable="false">
44
44
  <path d="m6.1 5.8 9.8 6.2-9.8 6.2V5.8zM16.4 5.8h1.5v12.4h-1.5z" />
45
45
  </svg>
46
- `,oy=`
46
+ `,ob=`
47
47
  <svg width="24" height="24" aria-hidden="true" focusable="false">
48
48
  <path
49
49
  d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"
50
50
  />
51
51
  </svg>
52
- `,ob=`
52
+ `,ov=`
53
53
  <svg width="24" height="24" aria-hidden="true" focusable="false">
54
54
  <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />
55
55
  </svg>
56
- `,ov=`
56
+ `,ox=`
57
57
  <svg width="24" height="24" aria-hidden="true" focusable="false">
58
58
  <path d="M17.9 18.2 8.1 12l9.8-6.2v12.4zm-10.3 0H6.1V5.8h1.5v12.4z" />
59
59
  </svg>
60
- `,ox=`
60
+ `,ow=`
61
61
  <svg width="24" height="24" aria-hidden="true" focusable="false">
62
62
  <circle cx="12" cy="5.4" r="2.5" />
63
63
  <circle cx="12" cy="12" r="2.5" />
64
64
  <circle cx="12" cy="18.6" r="2.5" />
65
65
  </svg>
66
- `,ow=`
66
+ `,o_=`
67
67
  <svg width="24" height="24" aria-hidden="true" focusable="false">
68
68
  <path d="M6 6h12v12H6V6z" />
69
69
  </svg>
70
- `;var o_=((K={}).Contain="contain",K.Cover="cover",K.Fill="fill",K.None="none",K.ScaleDown="scale-down",K),oE=((Q={}).Pause="pause",Q.Reverse="reverse",Q.Stop="stop",Q.Void="void",Q),oS=((tt={}).Completed="completed",tt.Destroyed="destroyed",tt.Error="error",tt.Frozen="frozen",tt.Loading="loading",tt.Paused="paused",tt.Playing="playing",tt.Stopped="stopped",tt);let oC="dotlottie-player";function ok(t,e){let s=e===oS.Playing||e===oS.Paused;t.dataset.active=s.toString(),t.innerHTML=e===oS.Playing?oy:ob}var oP=Object.freeze({__proto__:null,default:function(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===oS.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="${this.autoplay}" aria-label="Toggle Play/Pause">${ob}</button> <button class="stop" data-active="${!this.autoplay}" aria-label="Stop">${ow}</button> <button class="prev" aria-label="Previous animation" hidden="false">${ov}</button> <button class="next" aria-label="Next animation" hidden>${og}</button><form class="progress-container${this.simple?" simple":""}"><input type="range" class="seeker" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" tabindex="0" aria-label="Toggle loop">${of}</button> <button class="toggleBoomerang" data-active="${this.mode===ti.Bounce}" aria-label="Toggle boomerang" tabindex="0">${oc}</button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${this._isSettingsOpen}" aria-controls="${this._identifier}-settings">${ox}</button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert JSON animation to dotLottie format" aria-label="Convert ${this.isDotLottie?"dotLottie animation to JSON format":"JSON animation to dotLottie format"}" hidden>${od} ${this.isDotLottie?"Convert to JSON":"Convert to dotLottie"}</button> <button class="snapshot" aria-label="Download still image">${ou} Download still image</button></div>`}</div>`;let e=this.shadow.querySelector(".togglePlay");e instanceof HTMLButtonElement&&(e.onclick=this.togglePlay);let s=this.shadow.querySelector(".stop");s instanceof HTMLButtonElement&&(s.onclick=this.stop);let i=this.shadow.querySelector(".prev");i instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation&&(i.hidden=!1),i.onclick=this.prev);let r=this.shadow.querySelector(".next");r instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation<this.animations.length-1&&(r.hidden=!1),r.onclick=this.next);let a=this.shadow.querySelector(".seeker");if(a instanceof HTMLInputElement&&(a.onchange=this._handleSeekChange,a.onmousedown=this._freeze),!this.simple){let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let s=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&(s.onclick=async()=>{s.disabled=!0;try{let{convert:t}=await (op?Promise.resolve(op):om=om??(async()=>{let{addAnimation:t,convert:e}=await Promise.resolve().then(function(){return oo});return op={addAnimation:t,convert:e},{addAnimation:t,convert:e}})());await t({isDotLottie:this.isDotLottie,manifest:this.getManifest(),src:this.src||this.source})}finally{s.disabled=!1}});let i=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&(i.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}},updatePlayPauseButton:ok});async function oM(){if(!this.shadow||!this.template)throw Error("No Shadow Element or Template");this.template.innerHTML=`<div class="animation-container main" data-controls="${this.controls??!1}" lang="${this.description?document.documentElement.lang:"en"}" data-loaded="${this._playerState.loaded}"><figure class="animation" style="background:${this.background}" ${this.description?`
70
+ `;var oE=((K={}).Contain="contain",K.Cover="cover",K.Fill="fill",K.None="none",K.ScaleDown="scale-down",K),oS=((Q={}).Pause="pause",Q.Reverse="reverse",Q.Stop="stop",Q.Void="void",Q),oC=((tt={}).Completed="completed",tt.Destroyed="destroyed",tt.Error="error",tt.Frozen="frozen",tt.Loading="loading",tt.Paused="paused",tt.Playing="playing",tt.Stopped="stopped",tt);let ok="dotlottie-player";function oP(t,e){let s=e===oC.Playing||e===oC.Paused;t.dataset.active=s.toString(),t.innerHTML=e===oC.Playing?ob:ov}var oM=Object.freeze({__proto__:null,renderControls:function(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===oC.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="${this.autoplay}" aria-label="Toggle Play/Pause">${ov}</button> <button class="stop" data-active="${!this.autoplay}" aria-label="Stop">${o_}</button> <button class="prev" aria-label="Previous animation" hidden="false">${ox}</button> <button class="next" aria-label="Next animation" hidden>${oy}</button><form class="progress-container${this.simple?" simple":""}"><input type="range" class="seeker" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" tabindex="0" aria-label="Toggle loop">${og}</button> <button class="toggleBoomerang" data-active="${this.mode===ti.Bounce}" aria-label="Toggle boomerang" tabindex="0">${od}</button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${this._isSettingsOpen}" aria-controls="${this._identifier}-settings">${ow}</button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert JSON animation to dotLottie format" aria-label="Convert ${this.isDotLottie?"dotLottie animation to JSON format":"JSON animation to dotLottie format"}" hidden>${ou} ${this.isDotLottie?"Convert to JSON":"Convert to dotLottie"}</button> <button class="snapshot" aria-label="Download still image">${of} Download still image</button></div>`}</div>`;let e=this.shadow.querySelector(".togglePlay");e instanceof HTMLButtonElement&&(e.onclick=this.togglePlay);let s=this.shadow.querySelector(".stop");s instanceof HTMLButtonElement&&(s.onclick=this.stop);let i=this.shadow.querySelector(".prev");i instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation&&(i.hidden=!1),i.onclick=this.prev);let r=this.shadow.querySelector(".next");r instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation<this.animations.length-1&&(r.hidden=!1),r.onclick=this.next);let a=this.shadow.querySelector(".seeker");if(a instanceof HTMLInputElement&&(a.onchange=this._handleSeekChange,a.onmousedown=this._freeze),!this.simple){let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let s=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&(s.onclick=async()=>{s.disabled=!0;try{let{convert:t}=await (om?Promise.resolve(om):oc=oc??(async()=>{let{addAnimation:t,convert:e}=await Promise.resolve().then(function(){return oo});return om={addAnimation:t,convert:e},{addAnimation:t,convert:e}})());await t({isDotLottie:this.isDotLottie,manifest:this.getManifest(),src:this.src||this.source})}finally{s.disabled=!1}});let i=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&(i.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}},updatePlayPauseButton:oP});async function oD(){if(!this.shadow||!this.template)throw Error("No Shadow Element or Template");this.template.innerHTML=`<div class="animation-container main" data-controls="${this.controls??!1}" lang="${this.description?document.documentElement.lang:"en"}" data-loaded="${this._playerState.loaded}"><figure class="animation" style="background:${this.background}" ${this.description?`
71
71
  aria-label="${this.description}"
72
- `:""}></figure><slot name="controls"></slot></div>`,this.shadow.adoptedStyleSheets=[await o$.styles()],this.shadow.appendChild(this.template.content.cloneNode(!0))}let oD=t=>{let e={message:"Unknown error",status:b?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},oT=(t,e)=>null!=t&&Object.keys(e).filter(t=>Number.isNaN(Number(t))).some(s=>e[s]===t),oA=t=>null!==t&&["true","","1"].includes(t),oI=null,oF="Method is not implemented",oL=async()=>{let t=new CSSStyleSheet;return await t.replace("* {\n box-sizing: border-box;\n}\n\n:host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: #fff;\n --lottie-player-toolbar-icon-color: #000;\n --lottie-player-toolbar-icon-hover-color: #000;\n --lottie-player-toolbar-icon-active-color: #4285f4;\n --lottie-player-seeker-track-color: rgb(0 0 0 / 20%);\n --lottie-player-seeker-thumb-color: #4285f4;\n --lottie-player-seeker-display: block;\n\n width: 100%;\n height: 100%;\n\n &:not([hidden]) {\n display: block;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n [data-controls='true'] .animation {\n height: calc(100% - 35px);\n }\n\n .animation-container {\n position: relative;\n }\n\n .popover {\n position: absolute;\n right: 5px;\n bottom: 40px;\n background-color: var(--lottie-player-toolbar-background-color);\n border-radius: 5px;\n padding: 10px 15px;\n border: solid 2px var(--lottie-player-toolbar-icon-color);\n animation: fade-in 0.2s ease-in-out;\n\n &::before {\n content: '';\n right: 10px;\n border: 7px solid transparent;\n margin-right: -7px;\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n top: 100%;\n border-top-color: var(--lottie-player-toolbar-icon-color);\n }\n }\n\n .error {\n display: flex;\n margin: auto;\n justify-content: center;\n height: 100%;\n align-items: center;\n\n & svg {\n width: 100%;\n height: auto;\n }\n }\n\n .toolbar {\n display: flex;\n place-items: center center;\n background: var(--lottie-player-toolbar-background-color);\n margin: 0;\n height: 35px;\n padding: 5px;\n border-radius: 5px;\n gap: 5px;\n\n &.has-error {\n pointer-events: none;\n opacity: 0.5;\n }\n\n & button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n color: var(--lottie-player-toolbar-icon-color);\n background: none;\n border: 0;\n padding: 0;\n outline: 0;\n height: 100%;\n margin: 0;\n align-items: center;\n gap: 5px;\n opacity: 0.9;\n\n &:not([hidden]) {\n display: flex;\n }\n\n &:hover {\n opacity: 1;\n }\n\n &[data-active='true'] {\n opacity: 1;\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n &:disabled {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n & svg {\n pointer-events: none;\n\n & > * {\n fill: inherit;\n }\n }\n\n &.disabled svg {\n display: none;\n }\n }\n }\n\n .progress-container {\n position: relative;\n width: 100%;\n\n &.simple {\n margin-right: 12px;\n }\n }\n\n & progress {\n appearance: none;\n outline: none;\n position: absolute;\n width: 100%;\n height: 5px;\n border-radius: 3px;\n border: 0;\n top: 0;\n left: 0;\n margin: 7.5px 0;\n background-color: var(--lottie-player-seeker-track-color);\n pointer-events: none;\n\n &::-webkit-progress-inner-element {\n border-radius: 3px;\n overflow: hidden;\n }\n\n &::-webkit-slider-runnable-track {\n background-color: transparent;\n }\n\n &::-webkit-progress-value {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n }\n\n .seeker {\n appearance: none;\n outline: none;\n width: 100%;\n height: 20px;\n border-radius: 3px;\n border: 0;\n cursor: pointer;\n background-color: transparent;\n\n display: var(--lottie-player-seeker-display);\n color: var(--lottie-player-seeker-thumb-color);\n margin: 0;\n padding: 7.5px 0;\n position: relative;\n z-index: 1;\n\n &::-webkit-slider-runnable-track,\n &::-webkit-slider-thumb {\n appearance: none;\n outline: none;\n }\n\n &::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n border: 0;\n background-color: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-webkit-slider-thumb,\n &:focus::-webkit-slider-thumb {\n transform: scale(1);\n }\n\n &::-moz-range-progress {\n background-color: var(--lottie-player-seeker-thumb-color);\n height: 5px;\n border-radius: 3px;\n }\n\n &::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background-color: var(--lottie-player-seeker-thumb-color);\n border: 0;\n cursor: pointer;\n -moz-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-moz-range-thumb,\n &:focus::-moz-range-thumb {\n transform: scale(1);\n }\n\n &::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n\n &::-ms-fill-lower {\n background-color: var(--lottie-player-seeker-thumb-color);\n border-radius: 3px;\n }\n\n &::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -ms-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-ms-thumb {\n transform: scale(1);\n }\n\n &:focus {\n &::-ms-thumb {\n transform: scale(1);\n }\n\n &::-ms-fill-lower,\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n }\n }\n\n & *::-moz-progress-bar {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-color-scheme: dark) {\n :host {\n --lottie-player-toolbar-background-color: #000;\n --lottie-player-toolbar-icon-color: #fff;\n --lottie-player-toolbar-icon-hover-color: #fff;\n --lottie-player-seeker-track-color: rgb(255 255 255 / 60%);\n }\n}\n"),t};class o$ extends ol{static get observedAttributes(){return["animateOnScroll","autoplay","controls","direction","hover","loop","mode","playOnClick","playOnVisible","selector","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}static get styles(){return oL}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){return oA(this.getAttribute("animateOnScroll"))}get animations(){return this._animations}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){return oA(this.getAttribute("autoplay"))}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){return oA(this.getAttribute("controls"))}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}get currentAnimation(){return this._currentAnimation}set delay(t){this.setAttribute("delay",t.toString())}get delay(){let t=this.getAttribute("delay");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set dontFreezeOnBlur(t){this.setAttribute("dontFreezeOnBlur",(!!t).toString())}get dontFreezeOnBlur(){return oA(this.getAttribute("dontFreezeOnBlur"))}set hover(t){this.setAttribute("hover",(!!t).toString())}get hover(){return oA(this.getAttribute("hover"))}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}get isDotLottie(){return this._isDotLottie}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){return oA(this.getAttribute("loop"))}set mode(t){this.setAttribute("mode",t)}get mode(){let t=this.getAttribute("mode");return t===ti.Bounce?t:ti.Normal}set mouseout(t){this.setAttribute("mouseout",t)}get mouseout(){let t=this.getAttribute("mouseout");switch(t){case oE.Void:case oE.Pause:case oE.Reverse:return t;default:return oE.Stop}}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return oT(t,o_)?t:o_.Contain}set once(t){this.setAttribute("once",(!!t).toString())}get once(){return oA(this.getAttribute("once"))}set playOnClick(t){this.setAttribute("playOnClick",(!!t).toString())}get playOnClick(){return oA(this.getAttribute("playOnClick"))}set playOnVisible(t){this.setAttribute("playOnVisible",(!!t).toString())}get playOnVisible(){return oA(this.getAttribute("playOnVisible"))}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||ta.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return oT(t,ta)?t:null}set quiet(t){this.setAttribute("quiet",(!!t).toString())}get quiet(){return oA(this.getAttribute("quiet"))}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===tn.Canvas||t===tn.HTML?t:tn.SVG}set selector(t){t?this.setAttribute("selector",t):this.removeAttribute("selector")}get selector(){return this.getAttribute("selector")}set simple(t){this.setAttribute("simple",(!!t).toString())}get simple(){return oA(this.getAttribute("simple"))}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){return oA(this.getAttribute("subframe"))}constructor(){super(),this.isLight=!1,this.playerState=oS.Loading,this._container=null,this._DOMRect=null,this._errorMessage="Something went wrong",this._identifier=this.id||k(),this._isSettingsOpen=!1,this._playerState={count:0,loaded:!1,prev:oS.Loading,scrollTimeout:null,scrollY:0,visible:!1},this._render=oM,this._seeker=0,this._animations=[],this._controlsLoadId=0,this._currentAnimation=0,this._errorLoadId=0,this._isBounce=!1,this._isDotLottie=!1,this._lottieInstance=null,this._multiAnimationSettings=[],this._renderControls=async()=>{let t=this.shadow?.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}let e=++this._controlsLoadId,{default:i}=await (s=s??Promise.resolve().then(function(){return oP}));e===this._controlsLoadId&&i.call(this)},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleClick=this._handleClick.bind(this),this._handleScroll=this._handleScroll.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._switchInstance=this._switchInstance.bind(this),this._handleSettingsClick=this._handleSettingsClick.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}addAnimation(t){throw Error(oF)}async attributeChangedCallback(t,e,s){if(this._lottieInstance&&this.shadow&&this._container)switch(t){case"animateOnScroll":if(""===s||s){this._lottieInstance.autoplay=!1,addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0});return}removeEventListener("scroll",this._handleScroll,!0);break;case"autoplay":if(this.animateOnScroll||this.playOnVisible)return;if(""===s||s)return void this.play();this.stop();break;case"controls":await this._renderControls();break;case"direction":if(-1===Number(s))return void this.setDirection(-1);this.setDirection(1);break;case"hover":if(""===s||s){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave);break;case"loop":{let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=s),this.setLoop(""===s||!!s);break}case"mode":{let t=this.shadow.querySelector(".toggleBoomerang");if(!oT(s,ti))break;t instanceof HTMLButtonElement&&(t.dataset.active=(s===ti.Bounce).toString()),this._isBounce=s===ti.Bounce;break}case"playOnClick":if(""===s||s){this._lottieInstance.autoplay=!1,this._container.addEventListener("click",this._handleClick);return}this._container.removeEventListener("click",this._handleClick);break;case"playOnVisible":(""===s||s)&&(this._lottieInstance.autoplay=!1);break;case"selector":{let t=document.getElementById(this.selector??"");t?.addEventListener("click",this._handleClick);break}case"speed":{let t=Number(s);t&&!isNaN(t)&&this.setSpeed(t);break}case"src":await this.load(s);break;case"subframe":this.setSubframe(""===s||!!s)}}connectedCallback(){super.connectedCallback();try{(async()=>{if(await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),await this.load(this.src),void 0!==document.hidden&&document.addEventListener("visibilitychange",this._onVisibilityChange),this._container&&(this._DOMRect=this._container.getBoundingClientRect()),this._addIntersectionObserver(),this.dispatchEvent(new CustomEvent(tr.Rendered))})()}catch(t){this._handleError(t)}}convert(t){throw Error(oF)}destroy(){this._lottieInstance?.destroy&&(this.playerState=oS.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.dispatchEvent(new CustomEvent(tr.Destroyed)),this.remove(),document.removeEventListener("visibilitychange",this._onVisibilityChange))}disconnectedCallback(){this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=void 0),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.destroy()}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){try{if(!this.shadowRoot||!t)return;this.source=t;let{animations:e,isDotLottie:s,manifest:i}=await oa(t);if(!e||e.some(t=>!["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e))))throw Error("Broken or corrupted file");let r=this.parentElement?.querySelector('script[type="application/ld+json"]');if(r){let t=JSON.parse(r.innerHTML);t.selector&&(this.selector=t.selector),t.segment&&this.setSegment(t.segment),t.multiAnimationSettings&&this.setMultiAnimationSettings(t.multiAnimationSettings)}this._isBounce=this.mode===ti.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce);let a=i?.animations[0];a&&(a.autoplay=!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,a.loop=this.loop),this._isDotLottie=s,this._animations=e,this._manifest=i??{animations:[{autoplay:!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,direction:this.direction,id:k(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._clearPrevious(),this.playerState=oS.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay||this.playOnVisible)&&(this.playerState=oS.Playing),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]}),this._addEventListeners();let n=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,o=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(n),this._lottieInstance.setDirection(o),this._lottieInstance.setSubframe(!!this.subframe),(this.autoplay||this.animateOnScroll||this.playOnVisible)&&-1===this.direction&&this.seek("99%"),await this._renderControls()}catch(t){await this._handleError(t)}}loadAnimation(t){throw Error(oF)}next(){this._currentAnimation++,this._switchInstance()}pause(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Pause))}catch(e){t=!0,console.error(e)}finally{this.playerState=t?oS.Error:oS.Paused}}play(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(tr.Play))}catch(e){t=!0,console.error(e)}finally{this.playerState=t?oS.Error:oS.Playing}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,s){if(!this.shadow)return;let i=this.shadow.querySelector(".togglePlay"),r=this.shadow.querySelector(".stop"),a=this.shadow.querySelector(".prev"),n=this.shadow.querySelector(".next"),o=this.shadow.querySelector(".seeker"),h=this.shadow.querySelector("progress"),l=this.shadow.querySelector(".popover"),p=this.shadow.querySelector(".convert"),m=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&r instanceof HTMLButtonElement&&n instanceof HTMLButtonElement&&a instanceof HTMLButtonElement&&o instanceof HTMLInputElement&&h instanceof HTMLProgressElement&&("playerState"===t&&(ok(i,s),r.dataset.active=(s===oS.Stopped).toString()),"_seeker"===t&&"number"==typeof s&&(o.value=s.toString(),o.ariaValueNow=s.toString(),h.value=s),"_animations"===t&&Array.isArray(s)&&this._currentAnimation+1<s.length&&(n.hidden=!1),"_currentAnimation"===t&&"number"==typeof s&&(n.hidden=s+1>=this._animations.length,a.hidden=!s),"_isSettingsOpen"===t&&"boolean"==typeof s&&l instanceof HTMLDivElement&&p instanceof HTMLButtonElement&&m instanceof HTMLButtonElement&&(l.hidden=!s,p.hidden=this.isLight,m.hidden=this.renderer!==tn.SVG))}async reload(){this._lottieInstance&&this.src&&(this._lottieInstance.destroy(),await this.load(this.src))}seek(t){if(!this._lottieInstance)return;let e=t.toString().match(/^(\d+)(%?)$/);if(!e)return;let s=Math.round("%"===e[2]?this._lottieInstance.totalFrames*Number(e[1])/100:Number(e[1]));if(this._seeker=s,this.playerState===oS.Playing||this.playerState===oS.Frozen&&this._playerState.prev===oS.Playing){this._lottieInstance.goToAndPlay(s,!0),this.playerState=oS.Playing;return}this._lottieInstance.goToAndStop(s,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot)throw Error("Unknown error");let s=this.shadowRoot.querySelector(".animation svg");if(!s)throw Error("Could not retrieve animation from DOM");let i=s instanceof Node?new XMLSerializer().serializeToString(s):null;if(!i)throw Error("Could not serialize SVG element");return t&&D(i,{mimeType:"image/svg+xml",name:`${F(this.src||e)}-${((this._seeker??0)+1).toString().padStart(3,"0")}.svg`}),i}catch(t){return console.error(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(tr.Stop))}finally{this.playerState=oS.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation]??{};if(void 0!==t.mode){if(t.mode===ti.Normal){t.mode=ti.Bounce,this._isBounce=!0;return}t.mode=ti.Normal,this._isBounce=!1;return}if(this.mode===ti.Normal){this.mode=ti.Bounce,this._isBounce=!0;return}this.mode=ti.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:s}=this._lottieInstance;if(this.playerState===oS.Playing)return void this.pause();if(this.playerState!==oS.Completed)return void this.play();if(this.playerState=oS.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}-1===e?this._lottieInstance.goToAndPlay(s,!0):this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Freeze))}finally{this.playerState=oS.Frozen}}}_handleBlur(){setTimeout(()=>{this._toggleSettings(!1)},200)}_handleClick(){(this.playOnClick||this.selector)&&this.togglePlay()}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_handleSettingsClick({target:t}){this._toggleSettings(),t instanceof HTMLElement&&t.focus()}async _showError(){if(this.playerState!==oS.Error)return;let t=this.shadow?.querySelector(".animation"),e=this.shadow?.querySelector("slot[name=controls]");if(e&&(e.innerHTML=""),!(t instanceof HTMLElement))return;let s=++this._errorLoadId,{default:i}=await (oI=oI??Promise.resolve().then(function(){return oB}));s===this._errorLoadId&&(t.innerHTML=i(this._errorMessage))}setOptions(t){throw Error("Method not implemented")}_addEventListeners(){this._toggleEventListeners("add")}_addIntersectionObserver(){if(this._container&&!this._intersectionObserver){if(!("IntersectionObserver"in window)){this._intersectionObserverFallback(),removeEventListener("scroll",this._intersectionObserverFallback,!0),addEventListener("scroll",this._intersectionObserverFallback,{capture:!0,passive:!0});return}this._intersectionObserver=new IntersectionObserver(t=>{let{length:e}=t;for(let s=0;s<e;s++){if(!t[s]?.isIntersecting||document.hidden){this.playerState===oS.Playing&&this._freeze(),this._playerState.visible=!1;continue}this.animateOnScroll||this.playOnVisible||this.playerState!==oS.Frozen||this.play(),this.playOnVisible&&(this.playerState!==oS.Completed||this.once?setTimeout(()=>{this.play()},this.delay):(this.playerState=oS.Playing,this._lottieInstance?.goToAndPlay(1===this.direction?0:this._lottieInstance.totalFrames))),!this._playerState.scrollY&&(t[s]?.boundingClientRect.y||0)>0&&(this._playerState.scrollY=scrollY),this._playerState.visible=!0}}),this._intersectionObserver.observe(this._container)}}_clearPrevious(){this._lottieInstance?.destroy();let t=this.shadow?.querySelector(".animation");t&&(t.innerHTML="")}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=oS.Completed,this.dispatchEvent(new CustomEvent(tr.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=oS.Error,this.dispatchEvent(new CustomEvent(tr.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(tr.Load))}_DOMLoaded(){this._playerState.loaded=!0,this.dispatchEvent(new CustomEvent(tr.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(tr.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??(t=>{switch(t){case o_.Contain:case o_.ScaleDown:return ta.Contain;case o_.Cover:return ta.Cover;case o_.Fill:return ta.Initial;case o_.None:return ta.None;default:return ta.Contain}})(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,s=this._manifest?.animations[this._currentAnimation],i=!!this.loop;s?.loop!==void 0&&(i=!!s.loop),e?.loop!==void 0&&(i=!!e.loop);let r=!!this.autoplay;s?.autoplay!==void 0&&(r=!!s.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),this.animateOnScroll&&(r=!1);let a=this._segment;return this._segment?.every(t=>t>0)&&(a=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(a=void 0),this.setOptions({container:this._container,hasAutoplay:r,hasLoop:i,initialSegment:a,preserveAspectRatio:t,rendererType:this.renderer})}async _handleError(t){this.playerState=oS.Error,this.quiet||(this._errorMessage=oD(t).message,await this._showError()),this.dispatchEvent(new CustomEvent(tr.Error)),console.error(t)}_handleScroll(){if(!this.animateOnScroll||!this._DOMRect||!this._lottieInstance)return;if(b)return void console.warn("DotLottie: Scroll animations might not work properly in a Server Side Rendering context. Try to wrap this in a client component.");if(!this._playerState.visible)return;this._playerState.scrollTimeout&&clearTimeout(this._playerState.scrollTimeout),this._playerState.scrollTimeout=setTimeout(()=>{this.playerState=oS.Paused},400);let{totalFrames:t}=this._lottieInstance,e=scrollY-this._playerState.scrollY;scrollY<=this._playerState.scrollY&&(e=this._playerState.scrollY-scrollY);let{bottom:s,height:i,top:r}=this._DOMRect,a=i-s;r>=innerHeight&&(a=i);let n=P(e/(innerHeight+a)*(t-1),0,t);requestAnimationFrame(()=>{if(n>=t){this.playerState=oS.Paused;return}this.playerState=oS.Playing,this._lottieInstance?.goToAndStop(n,!0)})}_handleWindowBlur({type:t}){this.dontFreezeOnBlur||(this.playerState===oS.Playing&&"blur"===t&&this._freeze(),this.playerState===oS.Frozen&&"focus"===t&&this.play())}_intersectionObserverFallback(){if(!this._container)return;let{bottom:t,left:e,right:s,top:i}=this._container.getBoundingClientRect();this._playerState.visible=i>=0&&e>=0&&t<=innerHeight&&s<=innerWidth,(this.autoplay||this.playOnVisible||this.playerState===oS.Playing||this.playerState===oS.Frozen)&&(this._playerState.visible?this.play():this._freeze())}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,s=this._segment?this._segment[0]:0,i=this._segment?this._segment[1]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=oS.Completed,this.dispatchEvent(new CustomEvent(tr.Complete));return}return(this.dispatchEvent(new CustomEvent(tr.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?s:.99*i,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*i:s,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){if(!(!this.hover||!this._lottieInstance||"ontouchstart"in window)){if(this.mouseout===oE.Reverse&&this._lottieInstance.setDirection(1),this.playerState===oS.Completed){this._lottieInstance.goToAndPlay(0,!0),this.playerState=oS.Playing;return}this.playerState!==oS.Playing&&this.play()}}_mouseLeave(){if(!(!this.hover||!this._lottieInstance||"ontouchstart"in window))switch(this.mouseout){case oE.Void:break;case oE.Pause:this.pause();break;case oE.Reverse:this._lottieInstance.setDirection(-1),this.play();break;default:this.stop()}}_onVisibilityChange(){document.hidden&&this.playerState===oS.Playing?this._freeze():this.playerState===oS.Frozen&&this.play()}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance&&this._lottieInstance.destroy(),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?tr.Previous:tr.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this._lottieInstance.goToAndStop(0,!0),this.playerState=oS.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=oS.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=oS.Stopped}catch(t){this._errorMessage=oD(t).message,this.playerState=oS.Error,this.dispatchEvent(new CustomEvent(tr.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";if(this._lottieInstance&&(this._lottieInstance[e](tr.EnterFrame,this._enterFrame),this._lottieInstance[e](tr.Complete,this._complete),this._lottieInstance[e](tr.LoopComplete,this._loopComplete),this._lottieInstance[e](tr.DOMLoaded,this._DOMLoaded),this._lottieInstance[e](tr.DataReady,this._dataReady),this._lottieInstance[e](tr.DataFailed,this._dataFailed)),this.selector){let t=document.getElementById(this.selector);t?this.hover?(t[e]("mouseenter",this._mouseEnter),t[e]("mouseleave",this._mouseLeave)):t[e]("click",this._handleClick):this.selector=null}this._container&&!this.selector&&(this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),this.playOnClick&&this._container[e]("click",this._handleClick)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0}),this.animateOnScroll&&window[e]("scroll",this._handleScroll,{capture:!0,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}class oN extends o${get renderer(){return tn.SVG}constructor(){super(),this.isLight=!0}loadAnimation(t){return aY.loadAnimation(t)}setOptions({container:t,hasAutoplay:e,hasLoop:s,initialSegment:i,preserveAspectRatio:r}){return{autoplay:e,container:t,initialSegment:i,loop:s,renderer:tn.Canvas,rendererSettings:{clearCanvas:!0,contentVisibility:"visible",id:this.id,imagePreserveAspectRatio:r,preserveAspectRatio:r,progressiveLoad:!0}}}}globalThis.dotLottiePlayer=()=>new oN,b||customElements.define(oC,oN);var oB=Object.freeze({__proto__:null,default:function(t){return`<div class="error"><svg preserveAspectRatio="${ta.Cover}" xmlns="${y}" width="1920" height="1080" viewBox="0 0 1920 1080" style="white-space:preserve"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${t}</text></svg></div>`}});t.DotLottiePlayerBase=o$,t.MouseOut=oE,t.PlayMode=ti,t.PlayerEvent=tr,t.PlayerState=oS,t.RendererType=tn,t.default=oN,t.tagName=oC,Object.defineProperty(t,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});
72
+ `:""}></figure><slot name="controls"></slot></div>`,this.shadow.adoptedStyleSheets=[await oN.styles()],this.shadow.appendChild(this.template.content.cloneNode(!0))}let oT=t=>{let e={message:"Unknown error",status:b?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},oA=(t,e)=>null!=t&&Object.keys(e).filter(t=>Number.isNaN(Number(t))).some(s=>e[s]===t),oI=t=>["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e)),oF=t=>null!==t&&["true","","1"].includes(t),oL="Method is not implemented",o$=async()=>{let t=new CSSStyleSheet;return await t.replace("* {\n box-sizing: border-box;\n}\n\n:host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: #fff;\n --lottie-player-toolbar-icon-color: #000;\n --lottie-player-toolbar-icon-hover-color: #000;\n --lottie-player-toolbar-icon-active-color: #4285f4;\n --lottie-player-seeker-track-color: rgb(0 0 0 / 20%);\n --lottie-player-seeker-thumb-color: #4285f4;\n --lottie-player-seeker-display: block;\n\n width: 100%;\n height: 100%;\n\n &:not([hidden]) {\n display: block;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n [data-controls='true'] .animation {\n height: calc(100% - 35px);\n }\n\n .animation-container {\n position: relative;\n }\n\n .popover {\n position: absolute;\n right: 5px;\n bottom: 40px;\n background-color: var(--lottie-player-toolbar-background-color);\n border-radius: 5px;\n padding: 10px 15px;\n border: solid 2px var(--lottie-player-toolbar-icon-color);\n animation: fade-in 0.2s ease-in-out;\n\n &::before {\n content: '';\n right: 10px;\n border: 7px solid transparent;\n margin-right: -7px;\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n top: 100%;\n border-top-color: var(--lottie-player-toolbar-icon-color);\n }\n }\n\n .error {\n display: flex;\n margin: auto;\n justify-content: center;\n height: 100%;\n align-items: center;\n\n & svg {\n width: 100%;\n height: auto;\n }\n }\n\n .toolbar {\n display: flex;\n place-items: center center;\n background: var(--lottie-player-toolbar-background-color);\n margin: 0;\n height: 35px;\n padding: 5px;\n border-radius: 5px;\n gap: 5px;\n\n &.has-error {\n pointer-events: none;\n opacity: 0.5;\n }\n\n & button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n color: var(--lottie-player-toolbar-icon-color);\n background: none;\n border: 0;\n padding: 0;\n outline: 0;\n height: 100%;\n margin: 0;\n align-items: center;\n gap: 5px;\n opacity: 0.9;\n\n &:not([hidden]) {\n display: flex;\n }\n\n &:hover {\n opacity: 1;\n }\n\n &[data-active='true'] {\n opacity: 1;\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n &:disabled {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n & svg {\n pointer-events: none;\n\n & > * {\n fill: inherit;\n }\n }\n\n &.disabled svg {\n display: none;\n }\n }\n }\n\n .progress-container {\n position: relative;\n width: 100%;\n\n &.simple {\n margin-right: 12px;\n }\n }\n\n & progress {\n appearance: none;\n outline: none;\n position: absolute;\n width: 100%;\n height: 5px;\n border-radius: 3px;\n border: 0;\n top: 0;\n left: 0;\n margin: 7.5px 0;\n background-color: var(--lottie-player-seeker-track-color);\n pointer-events: none;\n\n &::-webkit-progress-inner-element {\n border-radius: 3px;\n overflow: hidden;\n }\n\n &::-webkit-slider-runnable-track {\n background-color: transparent;\n }\n\n &::-webkit-progress-value {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n }\n\n .seeker {\n appearance: none;\n outline: none;\n width: 100%;\n height: 20px;\n border-radius: 3px;\n border: 0;\n cursor: pointer;\n background-color: transparent;\n\n display: var(--lottie-player-seeker-display);\n color: var(--lottie-player-seeker-thumb-color);\n margin: 0;\n padding: 7.5px 0;\n position: relative;\n z-index: 1;\n\n &::-webkit-slider-runnable-track,\n &::-webkit-slider-thumb {\n appearance: none;\n outline: none;\n }\n\n &::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n border: 0;\n background-color: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-webkit-slider-thumb,\n &:focus::-webkit-slider-thumb {\n transform: scale(1);\n }\n\n &::-moz-range-progress {\n background-color: var(--lottie-player-seeker-thumb-color);\n height: 5px;\n border-radius: 3px;\n }\n\n &::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background-color: var(--lottie-player-seeker-thumb-color);\n border: 0;\n cursor: pointer;\n -moz-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-moz-range-thumb,\n &:focus::-moz-range-thumb {\n transform: scale(1);\n }\n\n &::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n\n &::-ms-fill-lower {\n background-color: var(--lottie-player-seeker-thumb-color);\n border-radius: 3px;\n }\n\n &::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -ms-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-ms-thumb {\n transform: scale(1);\n }\n\n &:focus {\n &::-ms-thumb {\n transform: scale(1);\n }\n\n &::-ms-fill-lower,\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n }\n }\n\n & *::-moz-progress-bar {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-color-scheme: dark) {\n :host {\n --lottie-player-toolbar-background-color: #000;\n --lottie-player-toolbar-icon-color: #fff;\n --lottie-player-toolbar-icon-hover-color: #fff;\n --lottie-player-seeker-track-color: rgb(255 255 255 / 60%);\n }\n}\n"),t};class oN extends op{static get observedAttributes(){return["animateOnScroll","autoplay","controls","direction","hover","loop","mode","playOnClick","playOnVisible","selector","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}static get styles(){return o$}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){return oF(this.getAttribute("animateOnScroll"))}get animations(){return this._animations}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){return oF(this.getAttribute("autoplay"))}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){return oF(this.getAttribute("controls"))}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}get currentAnimation(){return this._currentAnimation}set delay(t){this.setAttribute("delay",t.toString())}get delay(){let t=this.getAttribute("delay");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set dontFreezeOnBlur(t){this.setAttribute("dontFreezeOnBlur",(!!t).toString())}get dontFreezeOnBlur(){return oF(this.getAttribute("dontFreezeOnBlur"))}set hover(t){this.setAttribute("hover",(!!t).toString())}get hover(){return oF(this.getAttribute("hover"))}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}get isDotLottie(){return this._isDotLottie}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){return oF(this.getAttribute("loop"))}set mode(t){this.setAttribute("mode",t)}get mode(){let t=this.getAttribute("mode");return t===ti.Bounce?t:ti.Normal}set mouseout(t){this.setAttribute("mouseout",t)}get mouseout(){let t=this.getAttribute("mouseout");switch(t){case oS.Void:case oS.Pause:case oS.Reverse:return t;default:return oS.Stop}}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return oA(t,oE)?t:oE.Contain}set once(t){this.setAttribute("once",(!!t).toString())}get once(){return oF(this.getAttribute("once"))}set playOnClick(t){this.setAttribute("playOnClick",(!!t).toString())}get playOnClick(){return oF(this.getAttribute("playOnClick"))}set playOnVisible(t){this.setAttribute("playOnVisible",(!!t).toString())}get playOnVisible(){return oF(this.getAttribute("playOnVisible"))}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||ta.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return oA(t,ta)?t:null}set quiet(t){this.setAttribute("quiet",(!!t).toString())}get quiet(){return oF(this.getAttribute("quiet"))}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===tn.Canvas||t===tn.HTML?t:tn.SVG}set selector(t){t?this.setAttribute("selector",t):this.removeAttribute("selector")}get selector(){return this.getAttribute("selector")}set simple(t){this.setAttribute("simple",(!!t).toString())}get simple(){return oF(this.getAttribute("simple"))}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){return oF(this.getAttribute("subframe"))}constructor(){super(),this.isLight=!1,this.playerState=oC.Loading,this._container=null,this._DOMRect=null,this._errorMessage="Something went wrong",this._identifier=this.id||k(),this._isSettingsOpen=!1,this._playerState={count:0,loaded:!1,prev:oC.Loading,scrollTimeout:null,scrollY:0,visible:!1},this._render=oD,this._seeker=0,this._animations=[],this._controlsLoadId=0,this._currentAnimation=0,this._errorLoadId=0,this._isBounce=!1,this._isDotLottie=!1,this._lottieInstance=null,this._multiAnimationSettings=[],this._renderControls=async()=>{let t=this.shadow?.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}let e=++this._controlsLoadId,{renderControls:i}=await (s=s??Promise.resolve().then(function(){return oM}));e===this._controlsLoadId&&i.call(this)},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleClick=this._handleClick.bind(this),this._handleScroll=this._handleScroll.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._switchInstance=this._switchInstance.bind(this),this._handleSettingsClick=this._handleSettingsClick.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}addAnimation(t){throw Error(oL)}async attributeChangedCallback(t,e,s){if(this._lottieInstance&&this.shadow&&this._container)switch(t){case"animateOnScroll":if(""===s||s){this._lottieInstance.autoplay=!1,addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0});return}removeEventListener("scroll",this._handleScroll,!0);break;case"autoplay":if(this.animateOnScroll||this.playOnVisible)return;if(""===s||s)return void this.play();this.stop();break;case"controls":await this._renderControls();break;case"direction":if(-1===Number(s))return void this.setDirection(-1);this.setDirection(1);break;case"hover":if(""===s||s){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave);break;case"loop":{let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=s),this.setLoop(""===s||!!s);break}case"mode":{let t=this.shadow.querySelector(".toggleBoomerang");if(!oA(s,ti))break;t instanceof HTMLButtonElement&&(t.dataset.active=(s===ti.Bounce).toString()),this._isBounce=s===ti.Bounce;break}case"playOnClick":if(""===s||s){this._lottieInstance.autoplay=!1,this._container.addEventListener("click",this._handleClick);return}this._container.removeEventListener("click",this._handleClick);break;case"playOnVisible":(""===s||s)&&(this._lottieInstance.autoplay=!1);break;case"selector":{let t=document.getElementById(this.selector??"");t?.addEventListener("click",this._handleClick);break}case"speed":{let t=Number(s);t&&!isNaN(t)&&this.setSpeed(t);break}case"src":await this.load(s);break;case"subframe":this.setSubframe(""===s||!!s)}}connectedCallback(){super.connectedCallback();try{(async()=>{if(await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),await this.load(this.src),void 0!==document.hidden&&document.addEventListener("visibilitychange",this._onVisibilityChange),this._container&&(this._DOMRect=this._container.getBoundingClientRect()),this._addIntersectionObserver(),this.dispatchEvent(new CustomEvent(tr.Rendered))})()}catch(t){this._handleError(t)}}convert(t){throw Error(oL)}destroy(){this._lottieInstance?.destroy&&(this.playerState=oC.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.dispatchEvent(new CustomEvent(tr.Destroyed)),this.remove(),document.removeEventListener("visibilitychange",this._onVisibilityChange))}disconnectedCallback(){this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=void 0),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.destroy()}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){try{if(!this.shadowRoot||!t)return;this.source=t;let{animations:e,isDotLottie:s,manifest:i}=await oa(t);if(!e?.every(oI))throw Error("Broken or corrupted file");let r=this.parentElement?.querySelector('script[type="application/ld+json"]');if(r){let t=JSON.parse(r.innerHTML);t.selector&&(this.selector=t.selector),t.segment&&this.setSegment(t.segment),t.multiAnimationSettings&&this.setMultiAnimationSettings(t.multiAnimationSettings)}this._isBounce=this.mode===ti.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce);let a=i?.animations[0];a&&(a.autoplay=!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,a.loop=this.loop),this._isDotLottie=s,this._animations=e,this._manifest=i??{animations:[{autoplay:!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,direction:this.direction,id:k(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._clearPrevious(),this.playerState=oC.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay||this.playOnVisible)&&(this.playerState=oC.Playing),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]}),this._addEventListeners();let n=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,o=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(n),this._lottieInstance.setDirection(o),this._lottieInstance.setSubframe(!!this.subframe),(this.autoplay||this.animateOnScroll||this.playOnVisible)&&-1===this.direction&&this.seek("99%"),await this._renderControls()}catch(t){await this._handleError(t)}}loadAnimation(t){throw Error(oL)}next(){this._currentAnimation++,this._switchInstance()}pause(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Pause))}catch(e){t=!0,console.error(e)}finally{this.playerState=t?oC.Error:oC.Paused}}play(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(tr.Play))}catch(e){t=!0,console.error(e)}finally{this.playerState=t?oC.Error:oC.Playing}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,s){if(!this.shadow)return;let i=this.shadow.querySelector(".togglePlay"),r=this.shadow.querySelector(".stop"),a=this.shadow.querySelector(".prev"),n=this.shadow.querySelector(".next"),o=this.shadow.querySelector(".seeker"),h=this.shadow.querySelector("progress"),l=this.shadow.querySelector(".popover"),p=this.shadow.querySelector(".convert"),m=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&r instanceof HTMLButtonElement&&n instanceof HTMLButtonElement&&a instanceof HTMLButtonElement&&o instanceof HTMLInputElement&&h instanceof HTMLProgressElement&&("playerState"===t&&(oP(i,s),r.dataset.active=(s===oC.Stopped).toString()),"_seeker"===t&&"number"==typeof s&&(o.value=s.toString(),o.ariaValueNow=s.toString(),h.value=s),"_animations"===t&&Array.isArray(s)&&this._currentAnimation+1<s.length&&(n.hidden=!1),"_currentAnimation"===t&&"number"==typeof s&&(n.hidden=s+1>=this._animations.length,a.hidden=!s),"_isSettingsOpen"===t&&"boolean"==typeof s&&l instanceof HTMLDivElement&&p instanceof HTMLButtonElement&&m instanceof HTMLButtonElement&&(l.hidden=!s,p.hidden=this.isLight,m.hidden=this.renderer!==tn.SVG))}async reload(){this._lottieInstance&&this.src&&(this._lottieInstance.destroy(),await this.load(this.src))}seek(t){if(!this._lottieInstance)return;let e=t.toString().match(/^(\d+)(%?)$/);if(!e)return;let s=Math.round("%"===e[2]?this._lottieInstance.totalFrames*Number(e[1])/100:Number(e[1]));if(this._seeker=s,this.playerState===oC.Playing||this.playerState===oC.Frozen&&this._playerState.prev===oC.Playing){this._lottieInstance.goToAndPlay(s,!0),this.playerState=oC.Playing;return}this._lottieInstance.goToAndStop(s,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot)throw Error("Unknown error");let s=this.shadowRoot.querySelector(".animation svg");if(!s)throw Error("Could not retrieve animation from DOM");let i=s instanceof Node?new XMLSerializer().serializeToString(s):null;if(!i)throw Error("Could not serialize SVG element");return t&&D(i,{mimeType:"image/svg+xml",name:`${F(this.src||e)}-${((this._seeker??0)+1).toString().padStart(3,"0")}.svg`}),i}catch(t){return console.error(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(tr.Stop))}finally{this.playerState=oC.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation]??{};if(void 0!==t.mode){if(t.mode===ti.Normal){t.mode=ti.Bounce,this._isBounce=!0;return}t.mode=ti.Normal,this._isBounce=!1;return}if(this.mode===ti.Normal){this.mode=ti.Bounce,this._isBounce=!0;return}this.mode=ti.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:s}=this._lottieInstance;if(this.playerState===oC.Playing)return void this.pause();if(this.playerState!==oC.Completed)return void this.play();if(this.playerState=oC.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}-1===e?this._lottieInstance.goToAndPlay(s,!0):this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Freeze))}finally{this.playerState=oC.Frozen}}}_handleBlur(){setTimeout(()=>{this._toggleSettings(!1)},200)}_handleClick(){(this.playOnClick||this.selector)&&this.togglePlay()}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_handleSettingsClick({target:t}){this._toggleSettings(),t instanceof HTMLElement&&t.focus()}async _showError(){if(this.playerState!==oC.Error)return;let t=this.shadow?.querySelector(".animation"),e=this.shadow?.querySelector("slot[name=controls]");if(e&&(e.innerHTML=""),!(t instanceof HTMLElement))return;let s=++this._errorLoadId,{errorScreen:i}=await (oh=oh??Promise.resolve().then(function(){return oR}));s===this._errorLoadId&&(t.innerHTML=i(this._errorMessage))}setOptions(t){throw Error("Method not implemented")}_addEventListeners(){this._toggleEventListeners("add")}_addIntersectionObserver(){if(this._container&&!this._intersectionObserver){if(!("IntersectionObserver"in window)){this._intersectionObserverFallback(),removeEventListener("scroll",this._intersectionObserverFallback,!0),addEventListener("scroll",this._intersectionObserverFallback,{capture:!0,passive:!0});return}this._intersectionObserver=new IntersectionObserver(t=>{let{length:e}=t;for(let s=0;s<e;s++){if(!t[s]?.isIntersecting||document.hidden){this.playerState===oC.Playing&&this._freeze(),this._playerState.visible=!1;continue}this.animateOnScroll||this.playOnVisible||this.playerState!==oC.Frozen||this.play(),this.playOnVisible&&(this.playerState!==oC.Completed||this.once?setTimeout(()=>{this.play()},this.delay):(this.playerState=oC.Playing,this._lottieInstance?.goToAndPlay(1===this.direction?0:this._lottieInstance.totalFrames))),!this._playerState.scrollY&&(t[s]?.boundingClientRect.y||0)>0&&(this._playerState.scrollY=scrollY),this._playerState.visible=!0}}),this._intersectionObserver.observe(this._container)}}_clearPrevious(){this._lottieInstance?.destroy();let t=this.shadow?.querySelector(".animation");t&&(t.innerHTML="")}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=oC.Completed,this.dispatchEvent(new CustomEvent(tr.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=oC.Error,this.dispatchEvent(new CustomEvent(tr.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(tr.Load))}_DOMLoaded(){this._playerState.loaded=!0,this.dispatchEvent(new CustomEvent(tr.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(tr.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??(t=>{switch(t){case oE.Contain:case oE.ScaleDown:return ta.Contain;case oE.Cover:return ta.Cover;case oE.Fill:return ta.Initial;case oE.None:return ta.None;default:return ta.Contain}})(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,s=this._manifest?.animations[this._currentAnimation],i=!!this.loop;s?.loop!==void 0&&(i=!!s.loop),e?.loop!==void 0&&(i=!!e.loop);let r=!!this.autoplay;s?.autoplay!==void 0&&(r=!!s.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),this.animateOnScroll&&(r=!1);let a=this._segment;return this._segment?.every(t=>t>0)&&(a=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(a=void 0),this.setOptions({container:this._container,hasAutoplay:r,hasLoop:i,initialSegment:a,preserveAspectRatio:t,rendererType:this.renderer})}async _handleError(t){this.playerState=oC.Error,this.quiet||(this._errorMessage=oT(t).message,await this._showError()),this.dispatchEvent(new CustomEvent(tr.Error)),console.error(t)}_handleScroll(){if(!this.animateOnScroll||!this._DOMRect||!this._lottieInstance)return;if(b)return void console.warn("DotLottie: Scroll animations might not work properly in a Server Side Rendering context. Try to wrap this in a client component.");if(!this._playerState.visible)return;this._playerState.scrollTimeout&&clearTimeout(this._playerState.scrollTimeout),this._playerState.scrollTimeout=setTimeout(()=>{this.playerState=oC.Paused},400);let{totalFrames:t}=this._lottieInstance,e=scrollY-this._playerState.scrollY;scrollY<=this._playerState.scrollY&&(e=this._playerState.scrollY-scrollY);let{bottom:s,height:i,top:r}=this._DOMRect,a=i-s;r>=innerHeight&&(a=i);let n=P(e/(innerHeight+a)*(t-1),0,t);requestAnimationFrame(()=>{if(n>=t){this.playerState=oC.Paused;return}this.playerState=oC.Playing,this._lottieInstance?.goToAndStop(n,!0)})}_handleWindowBlur({type:t}){this.dontFreezeOnBlur||(this.playerState===oC.Playing&&"blur"===t&&this._freeze(),this.playerState===oC.Frozen&&"focus"===t&&this.play())}_intersectionObserverFallback(){if(!this._container)return;let{bottom:t,left:e,right:s,top:i}=this._container.getBoundingClientRect();this._playerState.visible=i>=0&&e>=0&&t<=innerHeight&&s<=innerWidth,(this.autoplay||this.playOnVisible||this.playerState===oC.Playing||this.playerState===oC.Frozen)&&(this._playerState.visible?this.play():this._freeze())}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,s=this._segment?this._segment[0]:0,i=this._segment?this._segment[1]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=oC.Completed,this.dispatchEvent(new CustomEvent(tr.Complete));return}return(this.dispatchEvent(new CustomEvent(tr.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?s:.99*i,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*i:s,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){if(!(!this.hover||!this._lottieInstance||"ontouchstart"in window)){if(this.mouseout===oS.Reverse&&this._lottieInstance.setDirection(1),this.playerState===oC.Completed){this._lottieInstance.goToAndPlay(0,!0),this.playerState=oC.Playing;return}this.playerState!==oC.Playing&&this.play()}}_mouseLeave(){if(!(!this.hover||!this._lottieInstance||"ontouchstart"in window))switch(this.mouseout){case oS.Void:break;case oS.Pause:this.pause();break;case oS.Reverse:this._lottieInstance.setDirection(-1),this.play();break;default:this.stop()}}_onVisibilityChange(){document.hidden&&this.playerState===oC.Playing?this._freeze():this.playerState===oC.Frozen&&this.play()}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance&&this._lottieInstance.destroy(),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?tr.Previous:tr.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this._lottieInstance.goToAndStop(0,!0),this.playerState=oC.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=oC.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=oC.Stopped}catch(t){this._errorMessage=oT(t).message,this.playerState=oC.Error,this.dispatchEvent(new CustomEvent(tr.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";if(this._lottieInstance&&(this._lottieInstance[e](tr.EnterFrame,this._enterFrame),this._lottieInstance[e](tr.Complete,this._complete),this._lottieInstance[e](tr.LoopComplete,this._loopComplete),this._lottieInstance[e](tr.DOMLoaded,this._DOMLoaded),this._lottieInstance[e](tr.DataReady,this._dataReady),this._lottieInstance[e](tr.DataFailed,this._dataFailed)),this.selector){let t=document.getElementById(this.selector);t?this.hover?(t[e]("mouseenter",this._mouseEnter),t[e]("mouseleave",this._mouseLeave)):t[e]("click",this._handleClick):this.selector=null}this._container&&!this.selector&&(this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),this.playOnClick&&this._container[e]("click",this._handleClick)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0}),this.animateOnScroll&&window[e]("scroll",this._handleScroll,{capture:!0,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}class oB extends oN{get renderer(){return tn.SVG}constructor(){super(),this.isLight=!0}loadAnimation(t){return aY.loadAnimation(t)}setOptions({container:t,hasAutoplay:e,hasLoop:s,initialSegment:i,preserveAspectRatio:r}){return{autoplay:e,container:t,initialSegment:i,loop:s,renderer:tn.Canvas,rendererSettings:{clearCanvas:!0,contentVisibility:"visible",id:this.id,imagePreserveAspectRatio:r,preserveAspectRatio:r,progressiveLoad:!0}}}}globalThis.dotLottiePlayer=()=>new oB,b||customElements.define(ok,oB);var oR=Object.freeze({__proto__:null,errorScreen:function(t){return`<div class="error"><svg preserveAspectRatio="${ta.Cover}" xmlns="${y}" width="1920" height="1080" viewBox="0 0 1920 1080" style="white-space:preserve"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${t}</text></svg></div>`}});t.DotLottiePlayerBase=oN,t.MouseOut=oS,t.PlayMode=ti,t.PlayerEvent=tr,t.PlayerState=oC,t.RendererType=tn,t.default=oB,t.tagName=ok,Object.defineProperty(t,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});