import{e as y}from"./chunk-F2X3VGZZ.js";import{a as _}from"./chunk-72CHOCZD.js";import{Ea as h,Q as u,S as s,X as o,Y as a,Ya as p,ya as l}from"./chunk-56X5LYJH.js";var A=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=s({token:t,factory:()=>a(g),providedIn:"root"})}return t})(),d=class{},g=(()=>{class t extends A{animationModuleType=a(l,{optional:!0});_nextAnimationId=0;_renderer;constructor(n,i){super();let r={id:"0",encapsulation:h.None,styles:[],data:{animation:[]}};if(this._renderer=n.createRenderer(i.body,r),this.animationModuleType===null&&!M(this._renderer))throw new u(3600,!1)}build(n){let i=this._nextAnimationId;this._nextAnimationId++;let r=Array.isArray(n)?y(n):n;return f(this._renderer,null,i,"register",[r]),new c(i,this._renderer)}static \u0275fac=function(i){return new(i||t)(o(p),o(_))};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),c=class extends d{_id;_renderer;constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new m(this._id,e,n||{},this._renderer)}},m=class{id;element;_renderer;parentPlayer=null;_started=!1;constructor(e,n,i,r){this.id=e,this.element=n,this._renderer=r,this._command("create",i)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){f(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return v(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0};function f(t,e,n,i,r){t.setProperty(e,`@@${n}:${i}`,r)}function v(t){let e=t.\u0275type;return e===0?t:e===1?t.animationRenderer:null}function M(t){let e=t.\u0275type;return e===0||e===1}export{A as a};
