(function(){var lr=document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[1],{"03A+":function(W,$,p){var S=p("JTzB"),E=p("ExA7"),k=Object.prototype,I=k.hasOwnProperty,et=k.propertyIsEnumerable,H=S(function(){return arguments}())?S:function(Q){return E(Q)&&I.call(Q,"callee")&&!et.call(Q,"callee")};W.exports=H},"2gN3":function(W,$,p){var S=p("Kz5y"),E=S["__core-js_shared__"];W.exports=E},"3Fdi":function(W,$){var p=Function.prototype,S=p.toString;function E(k){if(k!=null){try{return S.call(k)}catch(I){}try{return k+""}catch(I){}}return""}W.exports=E},"6sVZ":function(W,$){var p=Object.prototype;function S(E){var k=E&&E.constructor,I=typeof k=="function"&&k.prototype||p;return E===I}W.exports=S},"7uCZ":function(W,$){(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(p,S,E){"use strict";E.d(S,"d",function(){return k}),E.d(S,"g",function(){return I}),E.d(S,"c",function(){return et}),E.d(S,"a",function(){return H}),E.d(S,"b",function(){return Q}),E.d(S,"e",function(){return G}),E.d(S,"f",function(){return z});var k={SCENE:"scenejs",ANIME:"animejs"},I={ENTRANCE:"entrance",ALWAYS:"always",HOVER:"hover"},et={MOUSE_PROXIMITY:"mouse-proximity",VIEWPORT:"viewport"},H={ATOMIC:"atomic",MIX:"mix",JOIN:"join"},Q="data-anim-descriptor",G={intensity:1,duration:1,delay:0,yoyo:!1,loop:!1,reverse:!1,arrive:!1,easing:"cubic-bezier(0.42, 0, 0.58, 1)",relative:!1,proximityThreshold:1e3,viewportThresholds:{top:0,bottom:0}},z=["translate","translate3d","translateX","translateY","translateZ","scale","scale3d","scaleX","scaleY","scaleZ","rotate","rotate3d","rotateX","rotateY","rotateZ","skew","skewX","skewY"]},function(p,S,E){"use strict";function k(b){return(k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(b)}function I(b){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=arguments.length>2&&arguments[2]!==void 0&&arguments[2];try{var M=b.ownerDocument.defaultView,P=Q(b),x=-P.width
1&&arguments[1]!==void 0&&arguments[1],j=getComputedStyle(b),M=j.position==="absolute",P=N?/(auto|scroll|hidden)/:/(auto|scroll)/;if(j.position==="fixed")return H();for(var x=b;x=x.parentElement;)if(j=getComputedStyle(x),(!M||j.position!=="static")&&P.test(j.overflow+j.overflowY+j.overflowX)){var U=!0;if(x.scrollTop===0&&(x.scrollTop=1,x.scrollTop===0?U=!1:x.scrollTop=0),U)return x===document.body?H():x}return H()}function H(){return document.scrollingElement||document.documentElement||document.body}function Q(b){if(!F(b.originalElementStyle)){var N=b.getAttribute("style");b.setAttribute("style",b.originalElementStyle);var j=b.getBoundingClientRect();return N==="null"?b.removeAttribute("style"):b.setAttribute("style",N),j}return b.getBoundingClientRect()}function G(b,N){if(!N(b)){for(var j=b+"-2",M=3;!N(j);M++)j=b+"-".concat(M);return j}return b}function z(b){return Array.isArray(b)?b:[b]}E.d(S,"g",function(){return I}),E.d(S,"d",function(){return et}),E.d(S,"b",function(){return H}),E.d(S,"c",function(){return Q}),E.d(S,"e",function(){return G}),E.d(S,"a",function(){return z}),E.d(S,"h",function(){return ft}),E.d(S,"j",function(){return mt}),E.d(S,"i",function(){return at}),E.d(S,"f",function(){return D}),E.d(S,"k",function(){return F});var ct=function(b){return Object.prototype.toString.call(b).match(/^\[object\s(.*)\]$/)[1]},ft=function(b){return ct(b)==="Function"},mt=function(b){return ct(b)==="String"};function at(b){var N=k(b);return b!=null&&(N==="object"||N==="function")}var D=function b(N,j){return ft(N)?b(N(j),j):N},F=function(b){return b===void 0}},function(p,S,E){"use strict";E.d(S,"a",function(){return at});var k=E(6),I=E.n(k),et=E(1);function H(D,F){var b=Object.keys(D);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(D);F&&(N=N.filter(function(j){return Object.getOwnPropertyDescriptor(D,j).enumerable})),b.push.apply(b,N)}return b}function Q(D){for(var F=1;FD.length)&&(F=D.length);for(var b=0,N=new Array(F);b0&&arguments[0]!==void 0?arguments[0]:"",M=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];ct(this,D),mt(this,"strState",null),D.sharedElement||(D.sharedElement=document.createElement("div")),this.elem.setAttribute("style",j),M&&this._cleanStyle()}var F,b,N;return F=D,N=[{key:"fromObject",value:function(j){var M=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],P=function x(U,w,X){return Object.entries(U).map(function(nt){var J=G(nt,2),it=J[0],K=J[1];return it==="transform"&&Object(et.i)(K)?"".concat(it,": ").concat(x(K,function(ot,yt){return"".concat(ot,"(").concat(yt,")")}," ")):w(it,K)}).join(X)};return new D(P(j,function(x,U){return"".concat(x,": ").concat(U)},"; "),M)}},{key:"_objectifyTransformString",value:function(j){var M={};return j.split(") ").forEach(function(P){if(P.trim()){var x=G(P.split("(").map(function(X){return I()(X,"() ")}),2),U=x[0],w=x[1];M[U]=w}}),M}},{key:"_transformObjectToString",value:function(j){return Object.entries(j).sort(D.transformSorter).map(function(M){var P=G(M,2),x=P[0],U=P[1];return"".concat(x,"(").concat(U,")")}).join(" ")}},{key:"sortTransform",value:function(j){return D._transformObjectToString(new D("transform: ".concat(j)).toObject().transform)}},{key:"getNegativeTransform",value:function(j){var M=this;if(!j)return j;var P=this._objectifyTransformString(j);return Object.entries(P).map(function(x){var U=G(x,2),w=U[0],X=U[1],nt=M._extractTransformParams(X).map(function(J,it){return w.startsWith("scale")?String(1/J.number):w==="rotate3d"&&it!==3?"".concat(J.number).concat(J.unit):"".concat(-J.number).concat(J.unit)}).join(", ");return"".concat(w,"(").concat(nt,")")}).join(" ")}},{key:"_extractTransformParams",value:function(j){var M=/[^0-9-.]/;return j.split(",").map(function(P){return P.trim()}).map(function(P){return{raw:P,number:parseFloat(P),unit:P.match(M)?P.substr(P.match(M).index):""}})}},{key:"transformSorter",value:function(j,M){var P=G(j,1)[0],x=G(M,1)[0],U=function(w){return P.startsWith(w)&&!x.startsWith(w)?-1:!P.startsWith(w)&&x.startsWith(w)?1:0};return U("translate")||U("scale")||0}}],(b=[{key:"toString",value:function(){return this.elem.getAttribute("style")}},{key:"toObject",value:function(){for(var j=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],M=this.elem.style,P={},x=0;x1&&arguments[1]!==void 0)||arguments[1],x=(j=j instanceof D?j:new D(j)).toObject();return Object.entries(x).forEach(function(U){var w=G(U,2),X=w[0],nt=w[1];if(X==="transform"){var J=M._mergeTransform(x.transform,P);M.elem.style.transform=Object.entries(J).sort(D.transformSorter).map(function(it){var K=G(it,2),ot=K[0],yt=K[1];return"".concat(ot,"(").concat(yt,")")}).join(" ")}else P&&M.elem.style[X]!==void 0&&(M.elem.style[X]=nt)}),this}},{key:"addTransform",value:function(j){if(!j)return this;Object(et.j)(j)&&(j=new D("transform: ".concat(j)).toObject().transform);var M=Object.entries(j).sort(D.transformSorter).reduce(function(P,x){var U=G(x,2),w=U[0],X=U[1];if(P[w]){var nt=D._extractTransformParams(X),J=D._extractTransformParams(P[w]);P[w]=nt.map(function(it,K){if(it.unit!==J[K].unit&&J[K].unit&&it.unit)throw"unit mismatch: "+J[K].unit+" | "+it.unit;var ot;return w==="rotate3d"&&K<3?J[K].number!==it.number?console.error("trying to add rotation on different axis"):ot=J[K].number:ot=w.startsWith("scale")?J[K].number*it.number:J[K].number+it.number,"".concat(ot).concat(it.unit||J[K].unit)}).join(", ")}else P[w]=X;return P},this.toObject().transform||{});return this.elem.style.transform="",this.extend(D.fromObject({transform:M})),this}},{key:"_mergeTransform",value:function(j){var M=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return Object.entries(j).reduce(function(P,x){var U=G(x,2),w=U[0],X=U[1],nt=["translate","scale","rotate"];if(nt.some(function(it){return[it+"X",it+"Y",it+"Z"].includes(w)}))P[w.slice(0,-1)]&&!M||(P[w]=X);else if(nt.includes(w)){var J=Object.keys(P);nt.some(function(it){return J.some(function(K){return K.startsWith(it)})})&&!M||(P[w]=X)}else(P[w]===void 0||M)&&(P[w]=X);return P},Q({},this.toObject().transform))}},{key:"_cleanStyle",value:function(){var j=this.toObject();if(j.transform){var M={translate:{},scale:{},rotate:{}},P=["X","Y","Z"];Object.entries(j.transform).forEach(function(x){var U=G(x,2),w=U[0],X=U[1],nt=Object.keys(M).find(function(J){return w.startsWith(J)});nt&&(nt===w||w===nt+"3d"&&nt!=="rotate"?D._extractTransformParams(X).forEach(function(J,it){var K=M[nt][P[it].toLowerCase()];K?K.unit===J.unit||!J.unit&&!J.number||!K.unit&&!K.number?nt==="scale"?M[nt][P[it].toLowerCase()].number*=J.number:M[nt][P[it].toLowerCase()].number+=J.number:console.error("Transform conflict!",w):M[nt][P[it].toLowerCase()]=J}):w==="rotate3d"?M.rotate["3d"]=X:P.forEach(function(J){if(w===nt+J){var it=M[nt][J.toLowerCase()],K=D._extractTransformParams(X)[0];it?it.unit===K.unit||!it.unit&&!it.number||!K.unit&&!K.number?nt==="scale"?M[nt][J.toLowerCase()].number*=K.number:M[nt][J.toLowerCase()].number+=K.number:console.error("Transform conflict!",w):M[nt][J.toLowerCase()]=K}}))}),Object.keys(M).forEach(function(x){if(Object.keys(M[x]).length){j.transform=Object.fromEntries(Object.entries(j.transform).filter(function(w){return!G(w,1)[0].startsWith(x)}));var U=Object.keys(M[x]).length;U>1||x==="rotate"&&!M[x]["3d"]?j.transform[x+(U===3?"3d":"")]=P.map(function(w){var X=M[x][w.toLowerCase()];if(X)return String(X.number+X.unit)}).filter(function(w){return!!w}).join(", "):P.forEach(function(w){var X=M[x][w.toLowerCase()];X&&(j.transform[x+w]=X.number+X.unit)})}M.rotate["3d"]&&(j.transform.rotate3d=M.rotate["3d"])}),this.elem.style.transform=D._transformObjectToString(j.transform)}}},{key:"elem",get:function(){return D.current!==this&&(D.current&&(D.current.strState=D.sharedElement.getAttribute("style")),D.sharedElement.setAttribute("style",this.strState),D.current=this),D.sharedElement}}])&&ft(F.prototype,b),N&&ft(F,N),D}();mt(at,"sharedElement",null),mt(at,"current",null)},function(p,S,E){"use strict";E.d(S,"a",function(){return lt});var k=E(1),I=E(0),et=E(7),H=E.n(et),Q=E(12),G=E.n(Q),z=E(2);function ct(l){return function(f){if(Array.isArray(f))return F(f)}(l)||function(f){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(f))return Array.from(f)}(l)||D(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ft(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);f&&(m=m.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),v.push.apply(v,m)}return v}function mt(l,f,v){return f in l?Object.defineProperty(l,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):l[f]=v,l}function at(l,f){return function(v){if(Array.isArray(v))return v}(l)||function(v,m){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(v)))){var a=[],u=!0,g=!1,y=void 0;try{for(var R,L=v[Symbol.iterator]();!(u=(R=L.next()).done)&&(a.push(R.value),!m||a.length!==m);u=!0);}catch(q){g=!0,y=q}finally{try{u||L.return==null||L.return()}finally{if(g)throw y}}return a}}(l,f)||D(l,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D(l,f){if(l){if(typeof l=="string")return F(l,f);var v=Object.prototype.toString.call(l).slice(8,-1);return v==="Object"&&l.constructor&&(v=l.constructor.name),v==="Map"||v==="Set"?Array.from(l):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?F(l,f):void 0}}function F(l,f){(f==null||f>l.length)&&(f=l.length);for(var v=0,m=new Array(f);v0&&arguments[0]!==void 0&&arguments[0],g=u?"getTransformPropertyNamesAt":"getPropertyNamesAt";return this.getTimeKeys().map(function(y){return a[g](y)}).reduce(function(y,R){return R.forEach(function(L){y.includes(L)||y.push(L)}),y},[])}},{key:"getAllTransformPropertyNames",value:function(){return this.getAllPropertyNames(!0)}},{key:"getFirstValues",value:function(){return this._getFirstOrLastValue(!0)}},{key:"getLastValues",value:function(){return this._getFirstOrLastValue(!1)}},{key:"_getFirstOrLastValue",value:function(){var a=this,u=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.getTimeKeys().reduce(function(g,y){a.getPropertyNamesAt(y).forEach(function(ht){!Object(k.k)(g[ht])&&u||ht==="transform"||(g[ht]=a.getPropertyAt(y,ht))});var R=a.getPropertyAt(y,"transform"),L=u?{transform:R}:{transform:g.transform||""},q=u?{transform:g.transform||""}:{transform:R};return R&&(g.transform=z.a.fromObject(L).extend(z.a.fromObject(q)).toObject(!1).transform),g},{})}},{key:"normalize",value:function(){var a=this.getOffset(),u=100/this.getDuration();return this.rawTimeline=this.getEntries().reduce(function(g,y){var R=at(y,2),L=R[0],q=R[1];return g[String(((parseFloat(L)-a)*u).toFixed(2))]=q,g},{}),this}},{key:"getTimeKeys",value:function(){return Object.keys(this.rawTimeline).map(function(a){return parseFloat(a)}).sort(function(a,u){return au?1:0})}},{key:"getEntries",value:function(){return Object.entries(this.rawTimeline).map(function(a){var u=at(a,2),g=u[0],y=u[1];return[parseFloat(g),y]}).sort(function(a,u){var g=at(a,1)[0],y=at(u,1)[0];return gy?1:0})}},{key:"getDuration",value:function(){var a=this.getTimeKeys();return a.slice(-1)[0]-a[0]}},{key:"getTotalDuration",value:function(){return this.getTimeKeys().slice(-1)[0]}},{key:"getOffset",value:function(){return this.getTimeKeys()[0]}},{key:"transform",value:function(a){var u=a.duration,g=u===void 0?null:u,y=a.delay,R=y===void 0?0:y;return g&&this.changeDuration(g),this.addOffset(R),this}},{key:"changeDuration",value:function(a){var u=this.getOffset(),g=a/this.getDuration();return this.rawTimeline=this.getEntries().reduce(function(y,R){var L=at(R,2),q=L[0],ht=L[1];return y[String(((parseFloat(q)-u)*g+u).toFixed(2))]=ht,y},{}),this}},{key:"addOffset",value:function(a){return this.rawTimeline=this.getEntries().reduce(function(u,g){var y=at(g,2),R=y[0],L=y[1];return u[(parseFloat(R)+a).toFixed(2)]=L,u},{}),this}},{key:"removeOffset",value:function(){var a=this.getOffset();return this.rawTimeline=this.getEntries().reduce(function(u,g){var y=at(g,2),R=y[0],L=y[1];return u[String((parseFloat(R)-a).toFixed(2))]=L,u},{}),this}},{key:"reverse",value:function(){var a=this.getOffset(),u=this.getDuration();return this.rawTimeline=this.getEntries().reverse().reduce(function(g,y){var R=at(y,2),L=R[0],q=R[1];return g[String((u-(parseFloat(L)-a)).toFixed(2))]=q,g},{}),this}},{key:"addTransform",value:function(a){return a?(this.rawTimeline=this.getEntries().reduce(function(u,g){var y=at(g,2),R=y[0],L=y[1],q=z.a.fromObject(L);return q.addTransform(a),u[R.toFixed(2)]=q.toObject(!1),u},{}),this):this}},{key:"subtractTransform",value:function(a){return this.addTransform(z.a.getNegativeTransform(a))}}])&&b(f.prototype,v),m&&b(f,m),l}();function j(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);f&&(m=m.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),v.push.apply(v,m)}return v}function M(l){return function(f){if(Array.isArray(f))return P(f)}(l)||function(f){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(f))return Array.from(f)}(l)||function(f,v){if(!!f){if(typeof f=="string")return P(f,v);var m=Object.prototype.toString.call(f).slice(8,-1);if(m==="Object"&&f.constructor&&(m=f.constructor.name),m==="Map"||m==="Set")return Array.from(f);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return P(f,v)}}(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(l,f){(f==null||f>l.length)&&(f=l.length);for(var v=0,m=new Array(f);v0&&arguments[0]!==void 0?arguments[0]:{},u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.getAnimation()._recompose(a,u),this._replaceAnimation(this.getAnimation())}},{key:"_saveTargetElementOriginalStyle",value:function(){this.originalElementStyle=this.targetElement.getAttribute("style"),this.targetElement.originalElementStyle=this.originalElementStyle,this.targetElement.scrollParent=Object(k.d)(this.targetElement)}},{key:"_seekToViewportPosition",value:function(){if(this.getAnimation().manager.libOptions.jitAnimation&&!Object(k.g)(this.targetElement,0,!0))this.seekToEnd();else{var a=this.targetElement.scrollParent===Object(k.b)(),u=a?window.innerHeight:this.targetElement.scrollParent.clientHeight,g=Object(k.c)(this.targetElement),y=Object(k.c)(this.targetElement.scrollParent),R=a?g.top:g.top-y.top,L=function(bt){for(var Ot=1;Otl.length)&&(f=l.length);for(var v=0,m=new Array(f);v1&&arguments[1]!==void 0&&arguments[1];if(Object(k.j)(a))return this._getMultiInstanceAPI(Array.from(document.querySelectorAll(a)).reduce(function(L,q){return L.push(u.apply(q)),L},[]));var y=this.manager.getInstancesByElement(a).filter(function(L){return L.getAnimation().getTrigger()===u.getTrigger()});y.forEach(function(L){L.remove(),u.manager._removeInstance(L)});var R=new w(this,a,this.manager.EngineClass);return this._registerInstance(R,g),R}},{key:"createVariation",value:function(a){var u=this.manager.createAnimation(ot(ot(ot({},this.descriptor),a),{},{options:ot({},this.getOptions())}));return u.setOptions(a.options||{}),u.compositionType=this.compositionType,u.subAnimations=X(this.subAnimations),u}},{key:"setEffect",value:function(a){var u,g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return(Object(k.j)(a)||Object(k.h)(a))&&(this.originalEffect=a),Object(k.j)(a)&&this.descriptor&&(this.descriptor.effect=a),this.effect=Object(k.j)(a)?this.manager._getEffect(a,ot(ot({},((u=this.manager._getEffect(a))===null||u===void 0?void 0:u.defaultOptions)||{}),this.getOptions())):a,g&&this.resetAllInstances(),this}},{key:"getEffect",value:function(){return this.descriptor.effect&&Object(k.j)(this.descriptor.effect)?this.descriptor.effect:this.originalEffect}},{key:"setTrigger",value:function(a){return this.descriptor.trigger=a,this._updateTimeline(),this}},{key:"setOptions",value:function(a){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return a.duration==="auto"&&this._isAtomic&&(a=ot(ot({},a),{},{duration:this.getDuration()})),a.duration==="auto"||this._isAtomic||(this.autoDuration=!1),this.descriptor.options=ot(ot({},this.descriptor.options),a),this._updateInstances(),this._updateTimeline(),u&&this.resetAllInstances(),this}},{key:"resetAllInstances",value:function(){this.manager.getInstancesByAnimation(this).forEach(function(a){a.reset()})}},{key:"contains",value:function(a){return this.subAnimations.includes(a)||this.subAnimations.some(function(u){return u.contains(a)})}},{key:"reverse",value:function(){return this.setOptions({reverse:!this.getOptions().reverse}),this}},{key:"setName",value:function(a){return this.descriptor.name=a,this._updateTimeline(),this}},{key:"getName",value:function(){return this.descriptor.name||(this._isAtomic?this.originalEffect:this.compositionType)}},{key:"setDelay",value:function(a){return this.setOptions({delay:a}),this}},{key:"setDuration",value:function(a){return this.setOptions({duration:a}),this}},{key:"join",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._compose(I.a.JOIN,a,u)}},{key:"mix",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._compose(I.a.MIX,a,u)}},{key:"getChild",value:function(a){return Object(k.j)(a)?this.subAnimations.find(function(u){return u.getName()===a}):this.subAnimations[a]?this.subAnimations[a]:void 0}},{key:"getOption",value:function(a){return this.descriptor.options[a]||null}},{key:"getSub",value:function(a){var u=this.getChild(a);return u||((u=this.subAnimations.find(function(g){return g.getSub(a)}))?u.getSub(a):void 0)}},{key:"insertChildAfter",value:function(a,u){var g=this.subAnimations.indexOf(u);if(g!==-1)return this.insertChild(a,g+1),!0}},{key:"insertChild",value:function(a,u){if(!this._isAtomic)if(a instanceof l)this.subAnimations.splice(u,0,a),this.resetAllInstances();else{var g=this.manager.createAnimation(a);g&&(this.subAnimations.splice(u,0,g),this.resetAllInstances())}}},{key:"removeChild",value:function(a){if(this.contains(a))return this.subAnimations.includes(a)?this.subAnimations.splice(this.subAnimations.indexOf(a),1):this.subAnimations.find(function(g){return g.contains(a)}).removeChild(a),this.subAnimations.length===1?this._replace(this.subAnimations[0]):this.setDuration(this.getDuration()-a.getDuration()),this.resetAllInstances(),!0;var u=this.getChild(a);u&&this.removeChild(u)}},{key:"getController",value:function(){if(this.manager._getExtra("getController",!0))return this.manager._getExtra("getController")(this)}},{key:"showComposition",value:function(){this.manager._getExtra("showComposition",!0)&&this.manager._getExtra("showComposition")(this)}},{key:"_updateTimeline",value:function(){this.manager._getExtra("updateTimeline")&&this.manager._getExtra("updateTimeline")(this)}},{key:"_registerInstance",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.manager._addInstance(a,u)}},{key:"_getTimeline",value:function(){var a,u=ot(ot({},this.effect.defaultOptions||{}),this.getOptions());if(this.effect.timeline?a=this.effect.timeline instanceof N?this.effect.timeline.rawTimeline:Object(k.f)(this.effect.timeline,u):this.effect.tween&&(a=N.fromTween(Object(k.f)(this.effect.tween,u)).rawTimeline),a){var g=new N(a);return this.getOptions().arrive&&g.subtractTransform(g.getLastValues().transform),this.getOptions().reverse?g.reverse():g}return null}},{key:"_getMultiInstanceAPI",value:function(a){var u=this;return Object.getOwnPropertyNames(w.prototype).reduce(function(g,y){return y==="constructor"||y.startsWith("_")||y==="getAnimation"||(g[y]=function(){for(var R=arguments.length,L=new Array(R),q=0;q1&&arguments[1]!==void 0&&arguments[1];return this.descriptor=a,this.setEffect(this.descriptor.effect,u),this}},{key:"_replace",value:function(a){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._replaceDescriptor(a.descriptor),l._copy(a,this),u&&this.resetAllInstances(),this}},{key:"_recompose",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._isAtomic)this.copyOf?this._replaceDescriptor(ot(ot(ot({},this.getOriginal().descriptor),this.descriptor),{},{options:ot(ot({},this.getOriginal().getOptions()),this.getOptions())})):this._resetEffect();else{this.subAnimations.forEach(function(g){return g._recompose()});var u=this.manager._compose(this.compositionType,this.subAnimations,{trigger:a.trigger||this.getTrigger(),name:a.name||this.getName(),options:ot(ot({},this.getOptions()),a.options)});this._replace(u,!1)}return this._updateTimeline(),this}},{key:"_compose",value:function(a,u){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u=l._getAnimationsArray(this.manager,Object(k.a)(u)),this.compositionType===a){var y;if(g)return(y=this.subAnimations).push.apply(y,X(u)),this._recompose();var R,L=this.clone();return(R=L.subAnimations).push.apply(R,X(u)),L._recompose()}var q=this.manager._compose(a,[this.clone()].concat(X(u)));return q.setDuration(this.autoDuration?"auto":this.getDuration()),g?(this._replace(q),this):q}},{key:"_updateInstances",value:function(){this.manager.getInstancesByAnimation(this).forEach(function(a){a._update()})}},{key:"_resetEffect",value:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.originalEffect&&this.setEffect(this.originalEffect,a)}},{key:"_isAtomic",get:function(){return this.compositionType===I.a.ATOMIC}}])&&yt(f.prototype,v),m&&yt(f,m),l}();function $t(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);f&&(m=m.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),v.push.apply(v,m)}return v}function wt(l){for(var f=1;f0&&arguments[0]!==void 0?arguments[0]:null,g=u||this.manager.getInstancesByTrigger(I.g.ENTRANCE);g.forEach(function(y){y.didPlay||(a.manager.libOptions.jitAnimation?(y.visibilityPriority=Object(k.k)(y.visibilityPriority)?y.targetElement.style.getPropertyPriority("visibility"):y.visibilityPriority,y.targetElement.style.visibility="hidden",y.seekToEnd()):y.seek(0),Object(k.g)(y.targetElement,0,!0)&&(a.manager.libOptions.jitAnimation&&(y.seek(0),y.targetElement.style.setProperty("visibility","visible",y.visibilityPriority)),g.length>20?requestAnimationFrame(function(){return y.play()}):y.play()))})}},{key:"_driveViewportDrivenAnimations",value:function(a){var u=this;this.manager.getInstancesByTrigger(I.c.VIEWPORT).filter(function(g){return g.targetElement.scrollParent===Object(k.b)()&&[document,Object(k.b)(),window].includes(a.target)?u.manager.libOptions.jitAnimation||Object(k.g)(g.targetElement,0,!0):g.targetElement.scrollParent===a.target}).forEach(function(g){g._seekToViewportPosition()})}}])&&vt(f.prototype,v),m&&vt(f,m),l}();function Gt(l,f){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);f&&(m=m.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),v.push.apply(v,m)}return v}function Qt(l){for(var f=1;fl.length)&&(f=l.length);for(var v=0,m=new Array(f);v0&&arguments[0]!==void 0?arguments[0]:{};tt(this,l),st(this,"EngineClass",null),st(this,"effects",{}),st(this,"animationInstances",[]),st(this,"disabled",!1),this.setEngine(l.SceneEngine?"scenejs":"animejs"),zt(this),this.libOptions=a,this.dispatcher=new jt(this),this._scanDomForAnimations(),this._activate()}var f,v,m;return f=l,(v=[{key:"setEngine",value:function(a){var u=l[a===I.d.SCENE?"SceneEngine":a===I.d.ANIME?"AnimeEngine":null];if(!u)throw"Failed to load engine";this.EngineClass=u}},{key:"reset",value:function(){A(this.animationInstances).forEach(function(a){a.reset()})}},{key:"defineEffect",value:function(a,u){this.effects[a]=u}},{key:"getAllEffectNames",value:function(){return Object.keys(this.effects)}},{key:"getOptionsForEffect",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=this._getEffect(a);return u?g.defaultOptions||{}:Object.fromEntries(Object.entries(g.defaultOptions||{}).filter(function(y){var R=qt(y,1)[0];return!I.e[R]}))}},{key:"getInstancesByElement",value:function(a){return this._filterInstances(function(u){return u.targetElement===a})}},{key:"mix",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._compose(I.a.MIX,a,u)}},{key:"join",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._compose(I.a.JOIN,a,u)}},{key:"animate",value:function(a){var u=this;return function(g){return g instanceof Pt?g.apply(a):u.createAnimation(g).apply(a)}}},{key:"createAnimation",value:function(a){var u=this;return function g(y){var R=function(L){return L[I.a.JOIN]?I.a.JOIN:L[I.a.MIX]?I.a.MIX:null};if(R(y))return u[R(y)](y[R(y)].map(function(L){return L instanceof Pt?L:R(L)?g(L):new Pt(u,L)}));if(y.effect)return new Pt(u,y);throw"Illegal composition structure"}(a)}},{key:"composeTimelines",value:function(a){var u=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.a.MIX,y=Object.entries(a).map(function(R){var L=qt(R,2),q=L[0],ht=L[1];return u.createAnimation({effect:q,options:ht})});return this.createAnimation(st({},g,y))._getTimeline().rawTimeline}},{key:"cleanDOM",value:function(){this.animationInstances.forEach(function(a){return a.cleanElement()})}},{key:"disable",value:function(){this.disabled=!0,this.cleanDOM()}},{key:"enable",value:function(){this.disabled=!1,this.animationInstances.filter(function(a){return a.getAnimation().getTrigger()!==I.g.ENTRANCE}).forEach(function(a){return a.reset()})}},{key:"removeAll",value:function(){A(this.animationInstances).forEach(function(a){return a.remove()})}},{key:"destroy",value:function(){this.removeAll(),this.dispatcher.removeListeners()}},{key:"getInstancesByAnimation",value:function(a){return this._filterInstances(function(u){return u.getAnimation()===a||u.getAnimation().contains(a)||u.getAnimation().copyOf===a})}},{key:"getInstancesByTrigger",value:function(a){return this._filterInstances(function(u){return u.getAnimation().getTrigger()===a})}},{key:"getInstancesByEffect",value:function(a){return this._filterInstances(function(u){return u.getAnimation().descriptor.effect===a})}},{key:"_writeDescriptorsToElement",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=this.getInstancesByElement(a).map(function(y){return y.getAnimation()}).filter(function(y){return!u.includes(y)}).concat(u).map(function(y){return y.getDescriptor()});a.setAttribute(I.b,btoa(JSON.stringify(g)))}},{key:"_filterInstances",value:function(a){return this.animationInstances.filter(a)}},{key:"_addInstance",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.animationInstances.includes(a)||(this.animationInstances.push(a),u||this._activate(),this.dispatcher.addScrollListener(a.targetElement))}},{key:"_compose",value:function(a,u){var g,y,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};u=Pt._getAnimationsArray(this,Object(k.a)(u));var L=R.trigger||u[0].getTrigger(),q=u.map(function(Ot){return Ot._getTimeline().normalize().transform({duration:Ot.getDuration(),delay:Ot.getOptions().delay})}),ht=N[a](q),Mt=((g=R.options)===null||g===void 0?void 0:g.arrive)||u[0].getOptions().arrive;Mt&&ht.subtractTransform(ht.getLastValues().transform);var bt=this.createAnimation({trigger:L,name:R.name,effect:{timeline:ht.removeOffset()},options:Qt({duration:ht.getDuration(),delay:ht.getOffset(),viewportThresholds:u[0].getOptions().viewportThresholds},R.options)});return bt.compositionType=a,bt.subAnimations=A(u),bt.setDuration(((y=R.options)===null||y===void 0?void 0:y.duration)||"auto"),bt}},{key:"_getExtra",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=window[Symbol.for("DAM.EXTRAS")],y=g&&g[a]?g[a]:null;return!y&&u&&console.error("extras module is needed for ",a),y}},{key:"_activate",value:function(){this.dispatcher._activateEntranceAnimationsInViewport(),this._activateAlwaysRunningAnimations(),this._initViewportAnimations(),this._initHoverAnimations()}},{key:"_syncInstance",value:function(a){a.getAnimation().getTrigger()===I.g.ENTRANCE?this.dispatcher._activateEntranceAnimationsInViewport([a]):a.getAnimation().getTrigger()===I.c.VIEWPORT&&a._seekToViewportPosition()}},{key:"_removeInstance",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=this.animationInstances.indexOf(a);if(g>=0){var y,R=[g,1];u&&R.push(u),(y=this.animationInstances).splice.apply(y,R),this.dispatcher.removeScrollListener(a.targetElement),u&&this.dispatcher.addScrollListener(u.targetElement)}}},{key:"_replaceInstance",value:function(a,u){this._removeInstance(a,u)}},{key:"_getHoverInstancesForElement",value:function(a){return this.getInstancesByTrigger(I.g.HOVER).filter(function(u){return u.targetElement===a})}},{key:"_initHoverAnimations",value:function(){this.getInstancesByTrigger(I.g.HOVER).forEach(function(a){return a.seek(0)})}},{key:"_initViewportAnimations",value:function(){this.disabled||this.getInstancesByTrigger(I.c.VIEWPORT).forEach(function(a){return a._seekToViewportPosition()})}},{key:"_activateAlwaysRunningAnimations",value:function(){var a=this.getInstancesByTrigger(I.g.ALWAYS);this._runAnimations(a)}},{key:"_scanDomForAnimations",value:function(){var a=this;document.querySelectorAll("[".concat(I.b,"]")).forEach(function(u){JSON.parse(atob(u.getAttribute(I.b))).forEach(function(g){var y;y=a.createAnimation(g),a._addInstance(y.apply(u))})})}},{key:"_runAnimations",value:function(a){a.forEach(function(u){u.play()})}},{key:"_stopAnimations",value:function(a){a.forEach(function(u){u.pauseOnIterationEnd()})}},{key:"_getEffect",value:function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Object(k.j)(a)){var g=Object(k.f)(this.effects[a],u);if(!g)throw"Unknown effect: "+a;return g}return a}}])&&_(f.prototype,v),m&&_(f,m),l}();st(lt,"SceneEngine",null),st(lt,"AnimeEngine",null)},,function(p,S,E){"use strict";E.d(S,"a",function(){return et});var k=E(0);function I(H,Q){for(var G=0;G-1}function ct(A,V,Y){for(var tt=-1,_=A?A.length:0;++tt<_;)if(Y(V,A[tt]))return!0;return!1}function ft(A,V){for(var Y=-1,tt=A?A.length:0,_=Array(tt);++Y-1&&tt%1==0&&tt<=9007199254740991}(Y.length)&&!Qt(Y)}(V)}(A)?A:[]}function vt(A,V){var Y,tt,_=A.__data__;return((tt=typeof(Y=V))=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?Y!=="__proto__":Y===null)?_[typeof V=="string"?"string":"hash"]:_.map}function Xt(A,V){var Y=function(tt,_){return tt==null?void 0:tt[_]}(A,V);return oe(Y)?Y:void 0}yt.prototype.clear=function(){this.__data__=ot?ot(null):{}},yt.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},yt.prototype.get=function(A){var V=this.__data__;if(ot){var Y=V[A];return Y==="__lodash_hash_undefined__"?void 0:Y}return U.call(V,A)?V[A]:void 0},yt.prototype.has=function(A){var V=this.__data__;return ot?V[A]!==void 0:U.call(V,A)},yt.prototype.set=function(A,V){return this.__data__[A]=ot&&V===void 0?"__lodash_hash_undefined__":V,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(A){var V=this.__data__,Y=wt(V,A);return!(Y<0)&&(Y==V.length-1?V.pop():nt.call(V,Y,1),!0)},Tt.prototype.get=function(A){var V=this.__data__,Y=wt(V,A);return Y<0?void 0:V[Y][1]},Tt.prototype.has=function(A){return wt(this.__data__,A)>-1},Tt.prototype.set=function(A,V){var Y=this.__data__,tt=wt(Y,A);return tt<0?Y.push([A,V]):Y[tt][1]=V,this},Pt.prototype.clear=function(){this.__data__={hash:new yt,map:new(K||Tt),string:new yt}},Pt.prototype.delete=function(A){return vt(this,A).delete(A)},Pt.prototype.get=function(A){return vt(this,A).get(A)},Pt.prototype.has=function(A){return vt(this,A).has(A)},Pt.prototype.set=function(A,V){return vt(this,A).set(A,V),this},$t.prototype.add=$t.prototype.push=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this},$t.prototype.has=function(A){return this.__data__.has(A)};var St,jt,Gt=(St=function(A){var V=ft(A,zt);return V.length&&V[0]===A[0]?function(Y,tt,_){for(var st=_?ct:z,lt=Y[0].length,l=Y.length,f=l,v=Array(l),m=1/0,a=[];f--;){var u=Y[f];f&&tt&&(u=ft(u,at(tt))),m=it(u.length,m),v[f]=!_&&(tt||lt>=120&&u.length>=120)?new $t(f&&u):void 0}u=Y[0];var g=-1,y=v[0];t:for(;++g0&&arguments[0]!==void 0&&arguments[0],X=this.getTargetElement();["startAnimation","pauseAnimation"].forEach(function(nt){X.classList.contains(nt)&&X.classList.remove(nt)}),w&&this.instance._restoreElementStyle()}},{key:"_removeStyleSheet",value:function(){if(this.ref){var w=document.querySelector("#__SCENEJS_STYLE_".concat(this.ref.getId()));w&&w.remove()}}},{key:"seek",value:function(w){this._resetCSSAnim(),this.ref.setTime(w)}},{key:"getTime",value:function(){return this.ref.getTime()}},{key:"isPlaying",value:function(){return this.ref&&this.ref.getPlayState()==="running"}},{key:"kill",value:function(){this._resetCSSAnim(!0),this._removeClass(),this._removeStyleSheet()}},{key:"_addClass",value:function(){var w=this.getTargetElement();w.classList.contains(this.className)||w.classList.add(this.className)}},{key:"cleanElement",value:function(){this._resetCSSAnim(!0),this._removeClass(),this._removeStyleSheet()}},{key:"_removeClass",value:function(){var w=this.getTargetElement();w.classList.contains(this.className)&&(w.classList.remove(this.className),w.classList.length||w.removeAttribute("class"))}}],[{key:"disableCSSAnimation",value:function(){this.cssAnimationDisabled=!0}},{key:"enableCSSAnimation",value:function(){this.cssAnimationDisabled=!1}}]),U}(Q.a);j(M,"cssAnimationDisabled",!0)},function(I,et){I.exports=k},,,,,function(I,et,H){"use strict";H.r(et);var Q=H(10),G=H(3);H.d(et,"DudaAnimationManager",function(){return G.a}),G.a.SceneEngine=Q.a}])})},JTzB:function(W,$,p){var S=p("NykK"),E=p("ExA7"),k="[object Arguments]";function I(et){return E(et)&&S(et)==k}W.exports=I},MMmD:function(W,$,p){var S=p("lSCD"),E=p("shjB");function k(I){return I!=null&&E(I.length)&&!S(I)}W.exports=k},NKxu:function(W,$,p){var S=p("lSCD"),E=p("E2jh"),k=p("GoyQ"),I=p("3Fdi"),et=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Q=Function.prototype,G=Object.prototype,z=Q.toString,ct=G.hasOwnProperty,ft=RegExp("^"+z.call(ct).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mt(at){if(!k(at)||E(at))return!1;var D=S(at)?ft:H;return D.test(I(at))}W.exports=mt},Npjl:function(W,$){function p(S,E){return S==null?void 0:S[E]}W.exports=p},"Of+w":function(W,$,p){var S=p("Cwc5"),E=p("Kz5y"),k=S(E,"WeakMap");W.exports=k},QqLw:function(W,$,p){var S=p("tadb"),E=p("ebwN"),k=p("HOxn"),I=p("yGk4"),et=p("Of+w"),H=p("NykK"),Q=p("3Fdi"),G="[object Map]",z="[object Object]",ct="[object Promise]",ft="[object Set]",mt="[object WeakMap]",at="[object DataView]",D=Q(S),F=Q(E),b=Q(k),N=Q(I),j=Q(et),M=H;(S&&M(new S(new ArrayBuffer(1)))!=at||E&&M(new E)!=G||k&&M(k.resolve())!=ct||I&&M(new I)!=ft||et&&M(new et)!=mt)&&(M=function(P){var x=H(P),U=x==z?P.constructor:void 0,w=U?Q(U):"";if(w)switch(w){case D:return at;case F:return G;case b:return ct;case N:return ft;case j:return mt}return x}),W.exports=M},UiZK:function(W,$,p){(function(S){var E=1/0,k="[object Symbol]",I=/^\s+|\s+$/g,et="\\ud800-\\udfff",H="\\u0300-\\u036f\\ufe20-\\ufe23",Q="\\u20d0-\\u20f0",G="\\ufe0e\\ufe0f",z="["+et+"]",ct="["+H+Q+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="(?:"+ct+"|"+ft+")",at="[^"+et+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",F="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",N=mt+"?",j="["+G+"]?",M="(?:"+b+"(?:"+[at,D,F].join("|")+")"+j+N+")*",P=j+N+M,x="(?:"+[at+ct+"?",ct,D,F,z].join("|")+")",U=RegExp(ft+"(?="+ft+")|"+x+P,"g"),w=RegExp("["+b+et+H+Q+G+"]"),X=typeof S=="object"&&S&&S.Object===Object&&S,nt=typeof self=="object"&&self&&self.Object===Object&&self,J=X||nt||Function("return this")();function it(_){return _.split("")}function K(_,st,lt,l){for(var f=_.length,v=lt+(l?1:-1);l?v--:++v-1;);return lt}function Pt(_,st){for(var lt=_.length;lt--&&ot(st,_[lt],0)>-1;);return lt}function $t(_){return w.test(_)}function wt(_){return $t(_)?oe(_):it(_)}function oe(_){return _.match(U)||[]}var zt=Object.prototype,vt=zt.toString,Xt=J.Symbol,St=Xt?Xt.prototype:void 0,jt=St?St.toString:void 0;function Gt(_,st,lt){var l=-1,f=_.length;st<0&&(st=-st>f?0:f+st),lt=lt>f?f:lt,lt<0&&(lt+=f),f=st>lt?0:lt-st>>>0,st>>>=0;for(var v=Array(f);++l=l?_:Gt(_,st,lt)}function A(_){return!!_&&typeof _=="object"}function V(_){return typeof _=="symbol"||A(_)&&vt.call(_)==k}function Y(_){return _==null?"":Qt(_)}function tt(_,st,lt){if(_=Y(_),_&&(lt||st===void 0))return _.replace(I,"");if(!_||!(st=Qt(st)))return _;var l=wt(_),f=wt(st),v=Tt(l,f),m=Pt(l,f)+1;return qt(l,v,m).join("")}W.exports=tt}).call(this,p("yLpj"))},V6Ve:function(W,$,p){var S=p("kekF"),E=S(Object.keys,Object);W.exports=E},YuTi:function(W,$){W.exports=function(p){return p.webpackPolyfill||(p.deprecate=function(){},p.paths=[],p.children||(p.children=[]),Object.defineProperty(p,"loaded",{enumerable:!0,get:function(){return p.l}}),Object.defineProperty(p,"id",{enumerable:!0,get:function(){return p.i}}),p.webpackPolyfill=1),p}},Z0cm:function(W,$){var p=Array.isArray;W.exports=p},c6wG:function(W,$,p){var S=p("dD9F"),E=p("sEf8"),k=p("mdPL"),I=k&&k.isTypedArray,et=I?E(I):S;W.exports=et},dD9F:function(W,$,p){var S=p("NykK"),E=p("shjB"),k=p("ExA7"),I="[object Arguments]",et="[object Array]",H="[object Boolean]",Q="[object Date]",G="[object Error]",z="[object Function]",ct="[object Map]",ft="[object Number]",mt="[object Object]",at="[object RegExp]",D="[object Set]",F="[object String]",b="[object WeakMap]",N="[object ArrayBuffer]",j="[object DataView]",M="[object Float32Array]",P="[object Float64Array]",x="[object Int8Array]",U="[object Int16Array]",w="[object Int32Array]",X="[object Uint8Array]",nt="[object Uint8ClampedArray]",J="[object Uint16Array]",it="[object Uint32Array]",K={};K[M]=K[P]=K[x]=K[U]=K[w]=K[X]=K[nt]=K[J]=K[it]=!0,K[I]=K[et]=K[N]=K[H]=K[j]=K[Q]=K[G]=K[z]=K[ct]=K[ft]=K[mt]=K[at]=K[D]=K[F]=K[b]=!1;function ot(yt){return k(yt)&&E(yt.length)&&!!K[S(yt)]}W.exports=ot},ebwN:function(W,$,p){var S=p("Cwc5"),E=p("Kz5y"),k=S(E,"Map");W.exports=k},kekF:function(W,$){function p(S,E){return function(k){return S(E(k))}}W.exports=p},mdPL:function(W,$,p){(function(S){var E=p("WFqU"),k=$&&!$.nodeType&&$,I=k&&typeof S=="object"&&S&&!S.nodeType&&S,et=I&&I.exports===k,H=et&&E.process,Q=function(){try{var G=I&&I.require&&I.require("util").types;return G||H&&H.binding&&H.binding("util")}catch(z){}}();S.exports=Q}).call(this,p("YuTi")(W))},pcmO:function(W,$,p){"use strict";p.r($),p.d($,"Animator",function(){return Xn}),p.d($,"EASE",function(){return hn}),p.d($,"EASE_IN",function(){return vn}),p.d($,"EASE_IN_OUT",function(){return mn}),p.d($,"EASE_OUT",function(){return gn}),p.d($,"EVENTS",function(){return Un}),p.d($,"FIXED",function(){return fe}),p.d($,"Frame",function(){return Wn}),p.d($,"LINEAR",function(){return ln}),p.d($,"NAME_SEPARATOR",function(){return be}),p.d($,"OPTIONS",function(){return Tn}),p.d($,"ROLES",function(){return _e}),p.d($,"STEP_END",function(){return ee}),p.d($,"STEP_START",function(){return fn}),p.d($,"SceneItem",function(){return xn}),p.d($,"animate",function(){return ur}),p.d($,"animateItem",function(){return cr}),p.d($,"bezier",function(){return ue}),p.d($,"isRole",function(){return d}),p.d($,"setAlias",function(){return Yn}),p.d($,"setRole",function(){return Sn}),p.d($,"steps",function(){return Re});var S="rgb",E="rgba",k="hsl",I="hsla",et=[S,E,k,I],H="function",Q="property",G="array",z="object",ct="string",ft="number",mt="undefined",at=typeof window!==mt,D=typeof document!==mt&&document,F=["webkit","ms","moz","o"],b=function(r){if(!D)return"";var i=(D.body||D.documentElement).style,e=F.length;if(typeof i[r]!==mt)return r;for(var t=0;t-1&&(c=Tt(o,i,n+1,t)),c===-1)break;n=c}return-1}function Pt(r,i){for(var e="(\\s*"+(i||",")+`\\s*|\\(|\\)|"|'|\\\\"|\\\\'|\\s+)`,t=new RegExp(e,"g"),n=r.split(t).filter(Boolean),o=n.length,c=[],h=[],O=0;O-1)B=Tt(C,n,O+1,o);else if(C===i){h.length&&(c.push(h.join("")),h=[]);continue}}B===-1&&(B=o-1),h.push(n.slice(O,B+1).join("")),O=B}return h.length&&c.push(h.join("")),c}function $t(r){return Pt(r,"")}function wt(r){return Pt(r,",")}function oe(r){var i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(r);return!i||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]}}function zt(r){var i=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(r);if(!i)return{prefix:"",unit:"",value:NaN};var e=i[1],t=i[2],n=i[3];return{prefix:e,unit:n,value:parseFloat(t)}}function vt(r){return r.replace(/[\s-_]([a-z])/g,function(i,e){return e.toUpperCase()})}function Xt(r,i){return i===void 0&&(i="-"),r.replace(/([a-z])([A-Z])/g,function(e,t,n){return""+t+i+n.toLowerCase()})}function St(r){return[].slice.call(r)}function jt(){return Date.now?Date.now():new Date().getTime()}function Gt(r,i,e){e===void 0&&(e=-1);for(var t=r.length,n=0;n-1?r[t]:e}var qt=function(){var r=jt(),i=at&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return i?i.bind(window):function(e){var t=jt(),n=window.setTimeout(function(){e(t-r)},1e3/60);return n}}(),A=function(){var r=at&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return r?r.bind(window):function(i){clearTimeout(i)}}();function V(r){if(Object.keys)return Object.keys(r);var i=[];for(var e in i)i.push(e);return i}function Y(r,i){i===void 0&&(i=[]),r.sort(function(e,t){var n=i.indexOf(e),o=i.indexOf(t);return o===-1&&n===-1?0:n===-1?1:o===-1?-1:n-o})}function tt(r,i){var e=zt(r),t=e.value,n=e.unit;if(J(i)){var o=i[n];if(o){if(yt(o))return o(t);if(w[n])return w[n](t,o)}}else if(n==="%")return t*i/100;return w[n]?w[n](t):t}function _(r,i,e){return Math.max(i,Math.min(r,e))}function st(r,i){return i?Math.round(r/i)*i:r}function lt(r,i,e){return[[st(i[0],U),st(i[0]*r[1]/r[0],U)],[st(i[1]*r[0]/r[1],U),st(i[1],U)]].filter(function(t){return t.every(function(n,o){return e?n<=i[o]:n>=i[o]})})[0]||r}function l(r,i,e,t){if(!t)return r.map(function(ut,gt){return _(ut,i[gt],e[gt])});var n=r[0],o=r[1],c=lt(r,i,!1),h=c[0],O=c[1],C=lt(r,e,!0),B=C[0],rt=C[1];return nB||o>rt)&&(n=B,o=rt),[n,o]}function f(r){for(var i=r.length,e=0,t=i-1;t>=0;--t)e+=r[t];return e}function v(r){for(var i=r.length,e=0,t=i-1;t>=0;--t)e+=r[t];return i?e/i:0}function m(r,i){var e=i[0]-r[0],t=i[1]-r[1],n=Math.atan2(t,e);return n>=0?n:n+Math.PI*2}function a(r){return[0,1].map(function(i){return v(r.map(function(e){return e[i]}))})}function u(r){var i=a(r),e=m(i,r[0]),t=m(i,r[1]);return et&&t-e<-Math.PI?1:-1}function g(r,i){return Math.sqrt(Math.pow((i?i[0]:0)-r[0],2)+Math.pow((i?i[1]:0)-r[1],2))}function y(r){return r.replace("#","")}function R(r){var i=y(r),e=parseInt(i.substring(0,2),16),t=parseInt(i.substring(2,4),16),n=parseInt(i.substring(4,6),16),o=parseInt(i.substring(6,8),16)/255;return isNaN(o)&&(o=1),[e,t,n,o]}function L(r){var i=r.charAt(1),e=r.charAt(2),t=r.charAt(3),n=r.charAt(4),o=["#",i,i,e,e,t,t,n,n];return o.join("")}function q(r){var i,e=r[0],t=r[1],n=r[2];e<0&&(e+=Math.floor((Math.abs(e)+360)/360)*360),e%=360;var o=(1-Math.abs(2*n-1))*t,c=o*(1-Math.abs(e/60%2-1)),h=n-o/2,O;return e<60?O=[o,c,0]:e<120?O=[c,o,0]:e<180?O=[0,o,c]:e<240?O=[0,c,o]:e<300?O=[c,0,o]:e<360?O=[o,0,c]:O=[0,0,0],[Math.round((O[0]+h)*255),Math.round((O[1]+h)*255),Math.round((O[2]+h)*255),(i=r[3])!==null&&i!==void 0?i:1]}function ht(r){if(r.charAt(0)==="#")return r.length===4||r.length===5?R(L(r)):R(r);if(r.indexOf("(")!==-1){var i=oe(r),e=i.prefix,t=i.value;if(!e||!t)return;var n=wt(t),o=[0,0,0,1],c=n.length;switch(e){case S:case E:for(var h=0;h-1&&o.splice(c,1)}}return this},i.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(o){n._addEvent(e,o,{once:!0})})},i.emit=function(e,t){var n=this;t===void 0&&(t={});var o=this._events[e];if(!e||!o)return!0;var c=!1;return t.eventType=e,t.stop=function(){c=!0},t.currentTarget=this,se(o).forEach(function(h){h.listener(t),h.once&&n.off(e,h.listener)}),!c},i.trigger=function(e,t){return t===void 0&&(t={}),this.emit(e,t)},i._addEvent=function(e,t,n){var o=this._events;o[e]=o[e]||[];var c=o[e];c.push(ae({listener:t},n))},r}(),kn=Cn,Ke=function(){function r(e){this.separator=e,this.orderMap={}}var i=r.prototype;return i.getFullName=function(e){return e.join(this.separator)},i.get=function(e){return this.orderMap[this.getFullName(e)]},i.gets=function(e,t){t===void 0&&(t=!0);var n=[],o=this;function c(h,O){var C=o.get(h);if(!!C)return C.forEach(function(B){var rt=O.concat([B]),ut=c(h.concat([B]),rt);(!ut||!ut.length)&&n.push(O.concat([B]))}),C}return c(e,t?e:[]),n},i.set=function(e,t){var n=this;return e.forEach(function(o,c){n.addName(e.slice(0,c),o)}),this.orderMap[this.getFullName(e)]=t,t},i.add=function(e){var t=e.length;return t?this.addName(e.slice(0,-1),e[t-1]):[]},i.addName=function(e,t){var n=this.get(e)||this.set(e,[]);return n.indexOf(t)===-1&&n.push(t),n},i.findIndex=function(e,t){var n=this.orderMap[this.getFullName(e)];return n?n.indexOf(t):-1},i.remove=function(e){var t=this.getFullName(e),n=this.orderMap;for(var o in n)o.indexOf(t)===0&&delete n[o];var c=e.length;if(c){var h=e.slice(0,-1),O=e[c-1];this.splice(h,this.findIndex(h,O),1)}return this},i.filter=function(e,t,n){n===void 0&&(n=!0);var o=this.gets(e,n).filter(t),c=new r(this.separator),h=n?[]:e;return o.forEach(function(O){c.add(h.concat(O))}),c},i.splice=function(e,t,n){for(var o=[],c=3;c>>0}var We=He;function $e(r){return We(r).toString(36)}function we(r){if(r&&r.getRootNode){var i=r.getRootNode();if(i.nodeType===11)return i}}function Mn(r,i,e){return e.original?i:i.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(t,n){var o=n.trim();return(o?wt(o):[""]).map(function(c){var h=c.trim();return h.indexOf("@")===0?h:h.indexOf(":global")>-1?h.replace(/\:global/g,""):h.indexOf(":host")>-1?""+h.replace(/\:host/g,"."+r):h?"."+r+" "+h:"."+r}).join(", ")+" {"})}function Dn(r,i,e,t){var n=document.createElement("style");return n.setAttribute("type","text/css"),n.setAttribute("data-styled-id",r),e.nonce&&n.setAttribute("nonce",e.nonce),n.innerHTML=Mn(r,i,e),(t||document.head||document.body).appendChild(n),n}function Nn(r){var i="rCS"+$e(r),e=0,t;return{className:i,inject:function(n,o){o===void 0&&(o={});var c=we(n),h=e===0,O;return(c||h)&&(O=Dn(i,r,o,c)),h&&(t=O),c||++e,{destroy:function(){c?(n.removeChild(O),O=null):(e>0&&--e,e===0&&t&&(t.parentNode.removeChild(t),t=null))}}}}}var sn=Nn;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ge=function(r,i){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ge(r,i)};function Le(r,i){Ge(r,i);function e(){this.constructor=r}r.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}function un(r,i,e,t){var n=arguments.length,o=n<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,i,e,t);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(n<3?c(o):n>3?c(i,e,o):c(i,e))||o);return n>3&&o&&Object.defineProperty(i,e,o),o}function _t(){for(var r=0,i=0,e=arguments.length;i1/1e3;){if(n=cn(r,i,t),o=n-e,Math.abs(o)<1/1e3)return t;t-=o/2}return t}function ue(r,i,e,t){var n=function(o){var c=Fn(r,e,_(o,0,1));return cn(i,t,c)};return n.easingName="cubic-bezier("+r+","+i+","+e+","+t+")",n}function Re(r,i){var e=function(t){var n=1/r;return t>=1?1:(i==="start"?n:0)+Math.floor(t/n)*n};return e.easingName="steps("+r+", "+i+")",e}var fn=Re(1,"start"),ee=Re(1,"end"),ln=ue(0,0,1,1),hn=ue(.25,.1,.25,1),vn=ue(.42,0,1,1),gn=ue(0,0,.58,1),mn=ue(.42,0,.58,1),ne,dn="__SCENEJS_",pn="data-scene-id",ce="animation-timing-function",_e={transform:{},filter:{},attribute:{},html:!0},Ie={easing:[ce]},fe=(ne={},ne[ce]=!0,ne.contents=!0,ne.html=!0,ne),yn=1e6,Pe=1e-6,re="duration",Ue="fillMode",xe="direction",Zt="iterationCount",Ut="delay",le="easing",he="playSpeed",ve="easingName",Ln="iterationTime",ge="paused",Je="ended",bn="timeupdate",Rn="animate",Ze="play",ye="running",Ce="iteration",Ee="startAnimation",Ve="pauseAnimation",ze="alternate",On="reverse",Qe="alternate-reverse",_n="normal",Ae="infinite",me="playState",qe="playCSS",Te="prevTime",Vt="tickTime",ke="currentTime",Ft="selector",En="transform",An={linear:ln,ease:hn,"ease-in":vn,"ease-out":gn,"ease-in-out":mn,"step-start":fn,"step-end":ee},be="_///_",Tn=[re,Ue,xe,Zt,Ut,le,he],Un=[ge,Je,bn,Rn,Ze,Ce],de=function(){function r(e,t){this.prefix="",this.suffix="",this.model="",this.type="",this.separator=",",t&&this.setOptions(t),this.value=K(e)?e.split(this.separator):e}var i=r.prototype;return i.setOptions=function(e){for(var t in e)this[t]=e[t];return this},i.size=function(){return this.value.length},i.get=function(e){return this.value[e]},i.set=function(e,t){return this.value[e]=t,this},i.clone=function(){var e=this,t=e.separator,n=e.prefix,o=e.suffix,c=e.model,h=e.type,O=this.value.map(function(C){return C instanceof r?C.clone():C});return new r(O,{separator:t,prefix:n,suffix:o,model:c,type:h})},i.toValue=function(){return this.prefix+this.join()+this.suffix},i.join=function(){return this.value.map(function(e){return e instanceof r?e.toValue():e}).join(this.separator)},i.forEach=function(e){return this.value.forEach(e),this},r}();function jn(r){for(var i=Pt(r,";"),e={},t=i.length,n=t,o=0;o-1)return pe(ht(r));var o=Ht(t,e),c=[t],h=",",O=e+"(",C=")"+n;return o instanceof de&&(h=o.separator,c=o.value,O+=o.prefix,C=o.suffix+C),new de(c,{separator:h,model:e,prefix:O,suffix:C})}function Be(r,i){return new de(r,{type:"array",separator:i})}function Bn(r){var i=ht(r);return i?pe(i):r}function Ht(r,i){if(!K(r))return it(r)?Be(r,","):r;var e=wt(r);return e.length>1?Be(e.map(function(t){return Ht(t)}),","):(e=$t(r),e.length>1?Be(e.map(function(t){return Ht(t)})," "):(e=/^(['"])([^'"]*)(['"])$/g.exec(r),e&&e[1]===e[3]?new de([Ht(e[2])],{prefix:e[1],suffix:e[1]}):r.indexOf("(")!==-1?Vn(r):r.charAt(0)==="#"&&i!=="url"?Bn(r):r))}function tn(r,i){i===void 0&&(i={});var e=r.model;if(e){r.setOptions({model:"",suffix:"",prefix:""});var t=r.size()>1?r:r.get(0);i[e]=t}else r.forEach(function(n){tn(n,i)});return i}function en(r){return r instanceof de}function Yn(r,i){Ie[r]=i}function Sn(r,i,e){for(var t=r.length,n=_e,o=fe,c=0;c=1?Qe:ze):e===(r%2>=1?ze:Qe)}var Fe=["id",Zt,Ut,Ue,xe,he,re,he,Ln,me],nr=_t(Fe,[le,ve]),Xn=function(r){Le(i,r);function i(t){var n=r.call(this)||this;return n.timerId=0,n.state={id:"",easing:0,easingName:"linear",iterationCount:1,delay:0,fillMode:"forwards",direction:_n,playSpeed:1,currentTime:0,iterationTime:-1,iteration:0,tickTime:0,prevTime:0,playState:ge,duration:0},n.setOptions(t),n}var e=i.prototype;return e.setEasing=function(t){var n=on(t),o=n&&n[ve]||"linear",c=this.state;return c[le]=n,c[ve]=o,this},e.setOptions=function(t){t===void 0&&(t={});for(var n in t){var o=t[n];if(n===le){this.setEasing(o);continue}else if(n===re){o&&this.setDuration(o);continue}Tn.indexOf(n)>-1&&(this.state[n]=o)}return this},e.getTotalDuration=function(){return this.getActiveDuration(!0)},e.getActiveDuration=function(t){var n=this.state,o=n[Zt];return o===Ae?Infinity:(t?n[Ut]:0)+this.getDuration()*o},e.isEnded=function(){return this.state[Vt]===0&&this.state[me]===ge?!0:!(this.getTime()=t?(this.trigger(Ze),!0):!1},e.play=function(t){var n=this,o=this.state,c=o[Ut],h=this.getTime();return o[me]=ye,this.isEnded()&&(h===0||h>=this.getActiveDuration())&&this.setTime(-c,!0),this.timerId=qt(function(O){o[Te]=O,n.tick(O,t)}),this.start(),this},e.pause=function(){var t=this.state;return t[me]!==ge&&(t[me]=ge,this.trigger(ge)),A(this.timerId),this},e.finish=function(){return this.setTime(0),this.state[Vt]=0,this.end(),this},e.end=function(){return this.pause(),this.trigger(Je),this},e.setTime=function(t,n,o){var c=this.getActiveDuration(),h=this.state,O=h[Vt],C=h[Ut],B=n?t:this.getUnitTime(t);if(h[Vt]=C+B,B<0?B=0:B>c&&(B=c),h[ke]=B,this.calculate(),n&&!o){var rt=h[Vt];if(O=0&&this.start(0),rt"?h+Pe:h}else return je(t)},e.isDelay=function(){var t=this.state,n=t[Ut],o=t[Vt];return n>0&&o=n&&(B=h*(gt?n%1||1:0),rt&&(B=h-B))}return this.setIterationTime(B),this},e.tick=function(t,n){var o=this;if(!this.isPaused()){var c=this.state,h=c[he],O=c[Te],C=c[Ut],B=c[Vt],rt=B+Math.min(1e3,t-O)/1e3*h;c[Te]=t,this.setTime(rt-C,!0),n&&n*1e3=n?o:an(o,i[c],e,t)})}function rr(r,i,e,t){var n=r.value,o=i.value,c=r.model,h=i.model;if(c!==h)return an(r.toValue(),i.toValue(),e,t);n.length===3&&(n[3]=1),o.length===3&&(o[3]=1);for(var O=$n(n,o,e,t),C=c,B=0;B<3;++B)O[B]=parseInt(O[B],10);var rt=new de(O,{type:"color",model:C,prefix:C+"(",suffix:")"});return rt}function ir(r,i,e,t){var n=r.type;if(n==="color")return rr(r,i,e,t);var o=r.value,c=i.value,h=$n(o,c,e,t);return new de(h,{type:n,separator:r.separator||i.separator,prefix:r.prefix||i.prefix,suffix:r.suffix||i.suffix,model:r.model||i.model})}function an(r,i,e,t){if(t===0)return i;if(e===0||e+t===0)return r;var n=Me(r),o=Me(i),c=n===H,h=o===H;if(c||h)return function(){return an(c?Ht(r()):r,h?Ht(i()):i,e,t)};if(n===o){if(n===Q)return ir(r,i,e,t);if(n===G)return $n(r,i,e,t);if(n!=="value")return r}else return r;var O=zt(""+r),C=zt(""+i),B;if(isNaN(O.value)||isNaN(C.value))return r;B=X(O.value,C.value,e,t);var rt=O.prefix||C.prefix,ut=O.unit||C.unit;return!rt&&!ut?B:rt+B+ut}function or(r,i,e,t,n,o){if(r===i)return t;if(r===e)return n;if(!o)return an(t,n,r-i,e-r);var c=o((r-i)/(e-i)),h=an(t,n,c,1-c);return h}function qn(r,i){for(var e=r.length,t=0;ti)return[t>0?t-1:0,t]}return[e-1,e-1]}function tr(r){var i=[];for(var e in r)i.push(M+"-"+Xt(e)+":"+r[e]+";");return i.join("")}function ar(r,i){for(var e=r.length,t=0;tut){if(dt!==0){var Ct=B*gt+(pt?B-Et[0]:Et[0]),kt=X(Et[1],Yt,ut-Ct,Rt-ut);Gn(t,(c+B*o)/h,kt)}break}else if(Rt===ut&&t.length&&t[t.length-1][0]===ut+c)break;Gn(t,(c+Rt)/h,Yt)}c&&t.unshift([0,t[0][1]]),e=t,t=[]}),e}var xn=function(r){Le(i,r);function i(t,n){var o=r.call(this)||this;return o.times=[],o.items={},o.nameMap=new te(be),o.elements=[],o.needUpdate=!0,o.load(t,n),o}var e=i.prototype;return e.getDuration=function(){var t=this.times,n=t.length;return(n===0?0:t[n-1])||this.state[re]},e.size=function(){return this.times.length},e.setDuration=function(t){if(!t)return this;var n=this.getDuration();if(n>0){var o=t/n,c=this,h=c.times,O=c.items,C={};this.times=h.map(function(B){var rt=je(B*o);return C[rt]=O[B],rt}),this.items=C}else this.newFrame(t);return this},e.setId=function(t){var n=this.state,o=this.elements,c=o.length;if(n.id=t||Bt(!!c),c&&!n[Ft]){var h=rn(this.getId());n[Ft]="["+pn+'="'+h+'"]',o.forEach(function(O){O.setAttribute(pn,h)})}return this},e.set=function(t){for(var n=this,o=[],c=1;c-1;for(var Et in dt){var Ct=Rt?It-parseFloat(Et):parseFloat(Et);n.set(gt+Ct,dt[Et])}}else if(o.length===1&&it(rt))rt.forEach(function(Se){n.set(gt,Se)});else{var kt=n.newFrame(gt);kt.set.apply(kt,o)}})}return this.needUpdate=!0,this},e.get=function(t){for(var n=[],o=1;o-1&&this.times.splice(c,1),this.needUpdate=!0,this},e.hasFrame=function(t){return this.getUnitTime(t)in this.items},e.hasName=function(t){return this.needUpdate&&this.update(),!!this.nameMap.get(t)},e.mergeFrame=function(t,n){if(n){var o=this.newFrame(t);o.merge(n)}return this},e.getNowFrame=function(t,n,o){var c=this;this.needUpdate&&this.update();var h=new Wn,O=qn(this.times,t),C=O[0],B=O[1],rt=this.getEasing()||n,ut=this.nameMap;if(this.hasName([ce])){var gt=this.getNowValue(t,[ce],C,B,!1,0,!0);yt(gt)&&(rt=gt)}if(o){var pt=this.getFrame(t),dt=pt.orderMap.filter([],function(Et){return pt.has.apply(pt,Et)});for(var It in _e){var Yt=ut.get([It]);dt.get([It])&&Yt&&dt.set([It],Yt)}ut=dt}var Rt=ut.gets([]);return h.setOrderObject(ut.orderMap),Rt.forEach(function(Et){var Ct=c.getNowValue(t,Et,C,B,o,rt,T(Et));nt(Ct)||h.set(Et,Ct)}),h},e.load=function(t,n){var o;if(t===void 0&&(t={}),n===void 0&&(n=t.options),n&&this.setOptions(n),it(t))this.set(t);else if(t.keyframes)this.set(t.keyframes);else for(var c in t)c!=="options"&&this.set((o={},o[c]=t[c],o));return n&&n[re]&&this.setDuration(n[re]),this},e.clone=function(){var t=new i;return t.setOptions(this.state),t.setOrderObject(this.nameMap.orderMap),this.forEach(function(n,o){t.setFrame(o,n.clone())}),t},e.forEach=function(t){var n=this.times,o=this.items;return n.forEach(function(c){t(o[c],c,o)}),this},e.setOptions=function(t){t===void 0&&(t={}),r.prototype.setOptions.call(this,t);var n=t.id,o=t.selector,c=t.elements,h=t.element,O=t.target;return n&&this.setId(n),O?this.setTarget(O):o?this.setSelector(o):(c||h)&&this.setElement(c||h),this},e.toCSS=function(t,n,o){t===void 0&&(t={className:Ee}),n===void 0&&(n=this.getDuration()),o===void 0&&(o=[]);var c=this.state,h=c[Ft];if(!h)return"";var O=this.getDuration();c[re]=O,o.push(c);var C=St(o).reverse(),B=rn(Lt(this)),rt=o[0],ut=Gt(C,function(Nt){return Nt[Zt]===Ae||!isFinite(Nt[re])},o.length-1),gt=C.slice(0,ut),pt=n||gt.reduce(function(Nt,Wt){return(Wt[Ut]+Nt*Wt[Zt])/Wt[he]},O),dt=C.slice(ut).reduce(function(Nt,Wt){return(Nt+Wt[Ut])/Wt[he]},0),It=Qt(C,function(Nt){return Nt[le]&&Nt[ve]},c)[ve],Yt=C[ut][Zt],Rt=rt[Ue],Et=C[ut][xe],Ct=tr({fillMode:Rt,direction:Et,iterationCount:Yt,delay:dt+"s",name:dn+"KEYFRAMES_"+B,duration:pt/rt[he]+"s",timingFunction:It}),kt=wt(h).map(function(Nt){var Wt=/([\s\S]+)(:+[a-zA-Z]+)$/g.exec(Nt);return Wt?[Wt[1],Wt[2]]:[Nt,""]}),Se=t.className,Jn=t.selector,fr=yt(Jn)?Jn(this,h):Jn;return`
`+(fr||kt.map(function(Nt){var Wt=Nt[0],Zn=Nt[1];return Wt+"."+Se+Zn}))+" {"+Ct+`}
`+kt.map(function(Nt){var Wt=Nt[0],Zn=Nt[1];return Wt+"."+Ve+Zn})+" {"+M+`-play-state: paused;}
@`+P+" "+dn+"KEYFRAMES_"+B+"{"+this._toKeyframes(pt,gt,Et)+"}"},e.exportCSS=function(t,n,o){if(!this.elements.length)return"";var c=this.toCSS(t,n,o),h=o&&!nt(o[Zt]);return h||(this.styledInjector&&(this.styledInjector.destroy(),this.styledInjector=null),this.styled=sn(c),this.styledInjector=this.styled.inject(this.getAnimationElement(),{original:!0})),this},e.pause=function(){return r.prototype.pause.call(this),xt(this)&&this.pauseCSS(),this},e.pauseCSS=function(){return this.elements.forEach(function(t){Ot(t,Ve)}),this},e.endCSS=function(){return this.elements.forEach(function(t){At(t,Ve),At(t,Ee)}),Z(this,!1),this},e.end=function(){return Dt(this)&&this.endCSS(),r.prototype.end.call(this),this},e.playCSS=function(t,n,o){return t===void 0&&(t=!0),o===void 0&&(o={}),Oe(this,t,n,o),this},e.getAnimationElement=function(){return this.elements[0]},e.addPlayClass=function(t,n,o){o===void 0&&(o={});var c=this.elements,h=c.length,O=tr(o);if(!!h)return t?c.forEach(function(C){At(C,Ve)}):(c.forEach(function(C){C.style.cssText+=O,bt(C,Ee)&&At(C,Ee)}),c.forEach(function(C){C.clientWidth}),c.forEach(function(C){Ot(C,Ee)})),c[0]},e.clear=function(){return this.times=[],this.items={},this.nameMap=new te(be),this.styledInjector&&this.styledInjector.destroy(),this.styled=null,this.styledInjector=null,this.temp=null,this.needUpdate=!0,this},e.getNowValue=function(t,n,o,c,h,O,C){var B=this.times,rt=B.length,ut,gt,pt,dt,It=nt(o),Yt=nt(c);if(It||Yt){var Rt=qn(B,t);It&&(o=Rt[0]),Yt&&(c=Rt[1])}for(var Et=o;Et>=0;--Et){var Ct=this.getFrame(B[Et]);if(Ct.has.apply(Ct,n)){ut=B[Et],pt=Ct;break}}var kt=pt&&pt.raw.apply(pt,n);if(h&&!d([n[0]]))return ut===t?kt:void 0;if(C)return kt;for(var Et=c;Et