@esm-bundle/angular__animations
Advanced tools
Comparing version 18.2.10 to 18.2.11
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@18.2.10 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@18.2.11 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
import { DOCUMENT } from '@angular/common'; | ||
@@ -7,3 +7,3 @@ import * as i0 from '@angular/core'; | ||
/** | ||
* @license Angular v18.2.10 | ||
* @license Angular v18.2.11 | ||
* (c) 2010-2024 Google LLC. https://angular.io/ | ||
@@ -10,0 +10,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@18.2.10 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@18.2.11 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
import{DOCUMENT as t}from"@angular/common";import*as s from"@angular/core";import{inject as n,Injectable as e,ANIMATION_MODULE_TYPE as i,ViewEncapsulation as r,ɵRuntimeError as o,Inject as a}from"@angular/core";var h;!function(t){t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger"}(h||(h={}));const l="*";function c(t,s){return{type:h.Trigger,name:t,definitions:s,options:{}}}function _(t,s=null){return{type:h.Animate,styles:s,timings:t}}function u(t,s=null){return{type:h.Group,steps:t,options:s}}function d(t,s=null){return{type:h.Sequence,steps:t,options:s}}function y(t){return{type:h.Style,styles:t,offset:null}}function p(t,s,n){return{type:h.State,name:t,styles:s,options:n}}function f(t){return{type:h.Keyframes,steps:t}}function m(t,s,n=null){return{type:h.Transition,expr:t,animation:s,options:n}}function F(t,s=null){return{type:h.Reference,animation:t,options:s}}function S(t=null){return{type:h.AnimateChild,options:t}}function g(t,s=null){return{type:h.AnimateRef,animation:t,options:s}}function D(t,s,n=null){return{type:h.Query,selector:t,animation:s,options:n}}function T(t,s){return{type:h.Stagger,timings:t,animation:s}}class E{static{this.ɵfac=function(t){return new(t||E)}}static{this.ɵprov=s.ɵɵdefineInjectable({token:E,factory:()=>n(P),providedIn:"root"})}}class A{}class P extends E{constructor(t,s){super(),this.animationModuleType=n(i,{optional:!0}),this._nextAnimationId=0;const e={id:"0",encapsulation:r.None,styles:[],data:{animation:[]}};if(this._renderer=t.createRenderer(s.body,e),null===this.animationModuleType&&!function(t){const s=t.ɵtype;return 0===s||1===s}(this._renderer))throw new o(3600,!1)}build(t){const s=this._nextAnimationId;this._nextAnimationId++;const n=Array.isArray(t)?d(t):t;return k(this._renderer,null,s,"register",[n]),new R(s,this._renderer)}static{this.ɵfac=function(n){return new(n||P)(s.ɵɵinject(s.RendererFactory2),s.ɵɵinject(t))}}static{this.ɵprov=s.ɵɵdefineInjectable({token:P,factory:P.ɵfac,providedIn:"root"})}}class R extends A{constructor(t,s){super(),this._id=t,this._renderer=s}create(t,s){return new b(this._id,t,s||{},this._renderer)}}class b{constructor(t,s,n,e){this.id=t,this.element=s,this._renderer=e,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,s){return this._renderer.listen(this.element,`@@${this.id}:${t}`,s)}_command(t,...s){k(this._renderer,this.element,this.id,t,s)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return function(t){const s=t.ɵtype;if(0===s)return t;if(1===s)return t.animationRenderer;return null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function k(t,s,n,e,i){t.setProperty(s,`@@${n}:${e}`,i)}class x{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class M{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,e=0;const i=this.players.length;0==i?queueMicrotask((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==i&&this._onFinish()})),t.onDestroy((()=>{++n==i&&this._onDestroy()})),t.onStart((()=>{++e==i&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const w="!";export{l as AUTO_STYLE,E as AnimationBuilder,A as AnimationFactory,h as AnimationMetadataType,x as NoopAnimationPlayer,_ as animate,S as animateChild,F as animation,u as group,f as keyframes,D as query,d as sequence,T as stagger,p as state,y as style,m as transition,c as trigger,g as useAnimation,M as ɵAnimationGroupPlayer,P as ɵBrowserAnimationBuilder,w as ɵPRE_STYLE}; | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations/browser@18.2.10 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations/browser@18.2.11 - Ivy - es format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
import{NoopAnimationPlayer as e,AnimationMetadataType as t,style as s,AUTO_STYLE as n,ɵPRE_STYLE as i,ɵAnimationGroupPlayer as r,sequence as a}from"@angular/animations";import*as o from"@angular/core";import{Injectable as l,ɵRuntimeError as h}from"@angular/core";function c(e){return new h(3e3,!1)}const u=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function m(t){switch(t.length){case 0:return new e;case 1:return t[0];default:return new r(t)}}function d(e,t,s=new Map,r=new Map){const a=[],o=[];let l=-1,c=null;if(t.forEach((t=>{const h=t.get("offset"),u=h==l,m=u&&c||new Map;t.forEach(((t,o)=>{let l=o,h=t;if("offset"!==o)switch(l=e.normalizePropertyName(l,a),h){case i:h=s.get(o);break;case n:h=r.get(o);break;default:h=e.normalizeStyleValue(o,l,h,a)}m.set(l,h)})),u||o.push(m),c=m,l=h})),a.length)throw new h(3502,!1);return o}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&y(s,"start",e))));break;case"done":e.onDone((()=>n(s&&y(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&y(s,"destroy",e))))}}function y(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),a=e._data;return null!=a&&(r._data=a),r}function f(e,t,s,n,i="",r=0,a){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function g(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const S=(()=>"undefined"==typeof document?null:document.documentElement)();function E(e){const t=e.parentNode||e.host||null;return t===S?null:t}let w=null,v=!1;function b(e){w||(w=function(){if("undefined"!=typeof document)return document.body;return null}()||{},v=!!w.style&&"WebkitAppearance"in w.style);let t=!0;if(w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&v)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in w.style}return t}function T(e){return u.has(e)}function k(e,t){for(;t;){if(t===e)return!0;t=E(t)}return!1}function A(e,t,s){if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}class N{validateStyleProperty(e){return b(e)}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,a=[],o){return new e(n,i)}static{this.ɵfac=function(e){return new(e||N)}}static{this.ɵprov=o.ɵɵdefineInjectable({token:N,factory:N.ɵfac})}}class C{static{this.NOOP=new N}}class P{}class M{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}const F="ng-enter",x="ng-leave",R="ng-trigger",D=".ng-trigger",I="ng-animating",z=".ng-animating";function q(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:L(parseFloat(t[1]),t[2])}function L(e,t){return"s"===t?1e3*e:e}function B(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,a="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(c()),{duration:0,delay:0,easing:""};i=L(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(r=L(parseFloat(o),s[4]));const l=s[5];l&&(a=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new h(3100,!1)),e=!0),r<0&&(t.push(new h(3101,!1)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:a}}(e,t,s)}function K(e){return e.length?e[0]instanceof Map?e:e.map((e=>new Map(Object.entries(e)))):[]}function Q(e){return Array.isArray(e)?new Map(...e):new Map(e)}function O(e,t,s){t.forEach(((t,n)=>{const i=Y(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t}))}function W(e,t){t.forEach(((t,s)=>{const n=Y(s);e.style[n]=""}))}function j(e){return Array.isArray(e)?1==e.length?e[0]:a(e):e}function V(e,t,s){const n=t.params||{},i=$(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new h(3001,!1))}))}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(e){let t=[];if("string"==typeof e){let s;for(;s=H.exec(e);)t.push(s[1]);H.lastIndex=0}return t}function G(e,t,s){const n=`${e}`,i=n.replace(H,((e,n)=>{let i=t[n];return null==i&&(s.push(new h(3003,!1)),i=""),i.toString()}));return i==n?e:i}const U=/-+([a-z0-9])/g;function Y(e){return e.replace(U,((...e)=>e[1].toUpperCase()))}function Z(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function J(e,t){return 0===e||0===t}function X(e,s,n){switch(s.type){case t.Trigger:return e.visitTrigger(s,n);case t.State:return e.visitState(s,n);case t.Transition:return e.visitTransition(s,n);case t.Sequence:return e.visitSequence(s,n);case t.Group:return e.visitGroup(s,n);case t.Animate:return e.visitAnimate(s,n);case t.Keyframes:return e.visitKeyframes(s,n);case t.Style:return e.visitStyle(s,n);case t.Reference:return e.visitReference(s,n);case t.AnimateChild:return e.visitAnimateChild(s,n);case t.AnimateRef:return e.visitAnimateRef(s,n);case t.Query:return e.visitQuery(s,n);case t.Stagger:return e.visitStagger(s,n);default:throw s.type,new h(3004,!1)}}function ee(e,t){return window.getComputedStyle(e)[t]}const te=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class se extends P{normalizePropertyName(e,t){return Y(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(te.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new h(3005,!1))}return r+i}}const ne="*";function ie(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new h(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new h(3015,!1)),t;const i=n[1],r=n[2],a=n[3];t.push(oe(i,a));const o=i==ne&&a==ne;"<"!=r[0]||o||t.push(oe(a,i));return}(e,s,t))):s.push(e),s}const re=new Set(["true","1"]),ae=new Set(["false","0"]);function oe(e,t){const s=re.has(e)||ae.has(e),n=re.has(t)||ae.has(t);return(i,r)=>{let a=e==ne||e==i,o=t==ne||t==r;return!a&&s&&"boolean"==typeof i&&(a=i?re.has(e):ae.has(e)),!o&&n&&"boolean"==typeof r&&(o=r?re.has(t):ae.has(t)),a&&o}}const le=":self",he=new RegExp(`s*${le}s*,?`,"g");function ce(e,t,s,n){return new ue(e).build(t,s,n)}class ue{constructor(e){this._driver=e}build(e,t,s){const n=new me(t);this._resetContextStyleTimingState(n);return X(this,j(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,s){let n=s.queryCount=0,i=s.depCount=0;const r=[],a=[];return"@"==e.name.charAt(0)&&s.errors.push(new h(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(s),e.type==t.State){const t=e,n=t.name;n.toString().split(/\s*,\s*/).forEach((e=>{t.name=e,r.push(this.visitState(t,s))})),t.name=n}else if(e.type==t.Transition){const t=this.visitTransition(e,s);n+=t.queryCount,i+=t.depCount,a.push(t)}else s.errors.push(new h(3007,!1))})),{type:t.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,s){const n=this.visitStyle(e.styles,s),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const t=new Set,r=i||{};n.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{$(e).forEach((e=>{r.hasOwnProperty(e)||t.add(e)}))}))})),t.size&&s.errors.push((e.name,t.values(),new h(3008,!1)))}return{type:t.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,s){s.queryCount=0,s.depCount=0;const n=X(this,j(e.animation),s),i=ie(e.expr,s.errors);return{type:t.Transition,matchers:i,animation:n,queryCount:s.queryCount,depCount:s.depCount,options:de(e.options)}}visitSequence(e,s){return{type:t.Sequence,steps:e.steps.map((e=>X(this,e,s))),options:de(e.options)}}visitGroup(e,s){const n=s.currentTime;let i=0;const r=e.steps.map((e=>{s.currentTime=n;const t=X(this,e,s);return i=Math.max(i,s.currentTime),t}));return s.currentTime=i,{type:t.Group,steps:r,options:de(e.options)}}visitAnimate(e,n){const i=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return pe(B(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=pe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=B(s,t);return pe(n.duration,n.delay,n.easing)}(e.timings,n.errors);let r;n.currentAnimateTimings=i;let a=e.styles?e.styles:s({});if(a.type==t.Keyframes)r=this.visitKeyframes(a,n);else{let t=e.styles,a=!1;if(!t){a=!0;const e={};i.easing&&(e.easing=i.easing),t=s(e)}n.currentTime+=i.duration+i.delay;const o=this.visitStyle(t,n);o.isEmptyStep=a,r=o}return n.currentAnimateTimings=null,{type:t.Animate,timings:i,style:r,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,s){const i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of r)"string"==typeof e?e===n?i.push(e):s.errors.push(new h(3002,!1)):i.push(new Map(Object.entries(e)));let a=!1,o=null;return i.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!a))for(let t of e.values())if(t.toString().indexOf("{{")>=0){a=!0;break}})),{type:t.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),a=r.get(s);let o=!0;a&&(i!=n&&i>=a.startTime&&n<=a.endTime&&(t.errors.push((a.startTime,a.endTime,new h(3010,!1))),o=!1),i=a.startTime),o&&r.set(s,{startTime:i,endTime:n}),t.options&&V(e,t.options,t.errors)}))}))}visitKeyframes(e,s){const n={type:t.Keyframes,styles:[],options:null};if(!s.currentAnimateTimings)return s.errors.push(new h(3011,!1)),n;let i=0;const r=[];let a=!1,o=!1,l=0;const c=e.steps.map((e=>{const t=this._makeStyleAst(e,s);let n=null!=t.offset?t.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(t.styles),h=0;return null!=n&&(i++,h=t.offset=n),o=o||h<0||h>1,a=a||h<l,l=h,r.push(h),t}));o&&s.errors.push(new h(3012,!1)),a&&s.errors.push(new h(3200,!1));const u=e.steps.length;let m=0;i>0&&i<u?s.errors.push(new h(3202,!1)):0==i&&(m=1/(u-1));const d=u-1,p=s.currentTime,y=s.currentAnimateTimings,f=y.duration;return c.forEach(((e,t)=>{const i=m>0?t==d?1:m*t:r[t],a=i*f;s.currentTime=p+y.delay+a,y.duration=a,this._validateStyleAst(e,s),e.offset=i,n.styles.push(e)})),n}visitReference(e,s){return{type:t.Reference,animation:X(this,j(e.animation),s),options:de(e.options)}}visitAnimateChild(e,s){return s.depCount++,{type:t.AnimateChild,options:de(e.options)}}visitAnimateRef(e,s){return{type:t.AnimateRef,animation:this.visitReference(e.animation,s),options:de(e.options)}}visitQuery(e,s){const n=s.currentQuerySelector,i=e.options||{};s.queryCount++,s.currentQuery=e;const[r,a]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==le));t&&(e=e.replace(he,""));return e=e.replace(/@\*/g,D).replace(/@\w+/g,(e=>D+"-"+e.slice(1))).replace(/:animating/g,z),[e,t]}(e.selector);s.currentQuerySelector=n.length?n+" "+r:r,g(s.collectedStyles,s.currentQuerySelector,new Map);const o=X(this,j(e.animation),s);return s.currentQuery=null,s.currentQuerySelector=n,{type:t.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:de(e.options)}}visitStagger(e,s){s.currentQuery||s.errors.push(new h(3013,!1));const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:B(e.timings,s.errors,!0);return{type:t.Stagger,animation:X(this,j(e.animation),s),timings:n,options:null}}}class me{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function de(e){var t;return e?(e={...e}).params&&(e.params=(t=e.params)?{...t}:null):e={},e}function pe(e,t,s){return{duration:e,delay:t,easing:s}}function ye(e,t,s,n,i,r,a=null,o=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}class fe{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ge=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function Se(e,t,s,n,i,r=new Map,a=new Map,o,l,h=[]){return(new Ee).buildKeyframes(e,t,s,n,i,r,a,o,l,h)}class Ee{buildKeyframes(e,t,s,n,i,r,a,o,l,h=[]){l=l||new fe;const c=new ve(e,t,l,n,i,h,[]);c.options=o;const u=o.delay?q(o.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,o),X(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&a.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([a],null,c.errors,o)}return m.length?m.map((e=>e.buildKeyframes())):[ye(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(const n of e){const e=n?.delay;if(e){const i="number"==typeof e?e:q(G(e,n?.params??{},t.errors));s.delayNextStep(i)}}}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?q(s.duration):null,r=null!=s.delay?q(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),X(this,e.animation,t),t.previousNode=e}visitSequence(e,s){const n=s.subContextCount;let i=s;const r=e.options;if(r&&(r.params||r.delay)&&(i=s.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){i.previousNode.type==t.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=we);const e=q(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>X(this,e,i))),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),s.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?q(e.options.delay):0;e.steps.forEach((r=>{const a=t.createSubContext(e.options);i&&a.delayNextStep(i),X(this,r,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return B(t.params?G(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,s){const n=s.currentAnimateTimings=this._visitTiming(e.timings,s),i=s.currentTimeline;n.delay&&(s.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;r.type==t.Keyframes?this.visitKeyframes(r,s):(s.incrementTime(n.duration),this.visitStyle(r,s),i.applyStylesToKeyframe()),s.currentAnimateTimings=null,s.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,s){const n=s.currentTimeline.currentTime,i=e.options||{},r=i.delay?q(i.delay):0;r&&(s.previousNode.type===t.Style||0==n&&s.currentTimeline.hasCurrentStyleProperties())&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=we);let a=n;const o=s.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,s.errors);s.currentQueryTotal=o.length;let l=null;o.forEach(((t,n)=>{s.currentQueryIndex=n;const i=s.createSubContext(e.options,t);r&&i.delayNextStep(r),t===s.element&&(l=i.currentTimeline),X(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe();const o=i.currentTimeline.currentTime;a=Math.max(a,o)})),s.currentQueryIndex=0,s.currentQueryTotal=0,s.transformIntoNewTimeline(a),l&&(s.currentTimeline.mergeTimelineCollectedStyles(l),s.currentTimeline.snapshotCurrentStyles()),s.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),a=r*(t.currentQueryTotal-1);let o=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":o=a-o;break;case"full":o=s.currentStaggerTime}const l=t.currentTimeline;o&&l.delayNextStep(o);const h=l.currentTime;X(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const we={};class ve{constructor(e,t,s,n,i,r,a,o){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new be(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=q(s.duration)),null!=s.delay&&(n.delay=q(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=G(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new ve(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new Te(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let a=[];if(n&&a.push(this.element),e.length>0){e=(e=e.replace(ge,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),a.push(...n)}return i||0!=a.length||r.push(new h(3014,!1)),a}}class be{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new be(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||n),this._currentKeyframe.set(e,n);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},a=function(e,t){const s=new Map;let i;return e.forEach((e=>{if("*"===e){i??=t.keys();for(let e of i)s.set(e,n)}else for(let[t,n]of e)s.set(t,n)})),s}(e,this._globalTimelineStyles);for(let[e,t]of a){const i=G(t,r,s);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??n),this._updateStyle(e,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach(((e,t)=>{this._currentKeyframe.set(t,e)})),this._pendingStyles.clear(),this._localTimelineStyles.forEach(((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)})))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((a,o)=>{const l=new Map([...this._backFill,...a]);l.forEach(((s,r)=>{s===i?e.add(r):s===n&&t.add(r)})),s||l.set("offset",o/this.duration),r.push(l)}));const a=[...e.values()],o=[...t.values()];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return ye(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}class Te extends be{constructor(e,t,s,n,i,r,a=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,a=t/r,o=new Map(e[0]);o.set("offset",0),i.push(o);const l=new Map(e[0]);l.set("offset",ke(a)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let a=new Map(e[n]);const o=t+a.get("offset")*s;a.set("offset",ke(o/r)),i.push(a)}s=r,t=0,n="",e=i}return ye(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ke(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}function Ae(e,t,s,n,i,r,a,o,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}const Ne={};class Ce{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,a,o,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Ne,m=a&&a.params||Ne,d=this.buildStyles(s,m,c),p=o&&o.params||Ne,y=this.buildStyles(n,p,c),f=new Set,_=new Map,S=new Map,E="void"===n,w={params:Pe(p,u),delay:this.ast.options?.delay},v=h?[]:Se(e,t,this.ast.animation,i,r,d,y,w,l,c);let b=0;return v.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length?Ae(t,this._triggerName,s,n,E,d,y,[],[],_,S,b,c):(v.forEach((e=>{const s=e.element,n=g(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=g(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&f.add(s)})),Ae(t,this._triggerName,s,n,E,d,y,v,[...f.values()],_,S,b))}}function Pe(e,t){const s={...t};return Object.entries(e).forEach((([e,t])=>{null!=t&&(s[e]=t)})),s}class Me{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=Pe(e,this.defaultParams);return this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=G(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(i,e)}))})),s}}class Fe{constructor(e,s,n){this.name=e,this.ast=s,this._normalizer=n,this.transitionFactories=[],this.states=new Map,s.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new Me(e.style,t,n))})),xe(this.states,"true","1"),xe(this.states,"false","0"),s.transitions.forEach((t=>{this.transitionFactories.push(new Ce(e,t,this.states))})),this.fallbackTransition=function(e,s){const n=[(e,t)=>!0],i={type:t.Sequence,steps:[],options:null},r={type:t.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ce(e,r,s)}(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function xe(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const Re=new fe;class De{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=ce(this._driver,t,s,n);if(s.length)throw new h(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=d(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const i=[],r=this._animations.get(e);let a;const o=new Map;if(r?(a=Se(this._driver,t,r,F,x,new Map,new Map,s,Re,i),a.forEach((e=>{const t=g(o,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new h(3300,!1)),a=[]),i.length)throw new h(3504,!1);o.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const l=m(a.map((e=>{const t=o.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,l),l.onDestroy((()=>this.destroy(e))),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new h(3301,!1);return t}listen(e,t,s,n){const i=f(t,"","","");return p(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Ie="ng-animate-queued",ze="ng-animate-disabled",qe=[],Le={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Be={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ke="__ng_removed";class Qe{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const{value:t,...s}=e;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const Oe="void",We=new Qe(Oe);class je{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ze(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new h(3302,!1);if(null==s||0==s.length)throw new h(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new h(3400,!1);var i;const r=g(this._elementListeners,e,[]),a={name:t,phase:s,callback:n};r.push(a);const o=g(this._engine.statesByElement,e,new Map);return o.has(t)||(Ze(e,R),Ze(e,R+"-"+t),o.set(t,We)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(a);e>=0&&r.splice(e,1),this._triggers.has(t)||o.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new h(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new He(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Ze(e,R),Ze(e,R+"-"+t),this._engine.statesByElement.set(e,a=new Map));let o=a.get(t);const l=new Qe(s,this.id);!(s&&s.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a.set(t,l),o||(o=We);if(!(l.value===Oe)&&o.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(o.params,l.params)){const t=[],s=i.matchStyles(o.value,o.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{W(e,s),O(e,n)}))}return}const h=g(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(o.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:o,toState:l,player:r,isFallbackTransition:u}),u||(Ze(e,Ie),r.onStart((()=>{Je(e,Ie)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,D,!0);s.forEach((e=>{if(e[Ke])return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const a=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,Oe,n);t&&a.push(t)}})),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(a).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,a=s.get(i)||We,o=new Qe(Oe),l=new He(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:a,toState:o,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e[Ke];n&&n!==Le||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ze(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Ve{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new je(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush((()=>{})),this.afterFlushAnimationsDone((()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]})))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if($e(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!$e(t))return;const i=t[Ke];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ze(e,ze)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Je(e,ze))}removeNode(e,t,s){if($e(t)){const n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t[Ke]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return $e(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,D,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,z,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e[Ke];if(t&&t.setForRemoval){if(e[Ke]=Le,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ze)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ze(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new h(3402,!1)}_flushAnimations(e,t){const s=new fe,r=[],a=new Map,o=[],l=new Map,c=new Map,u=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),f=Ye(y,this.collectedEnterElements),_=new Map;let S=0;f.forEach(((e,t)=>{const s=F+S++;_.set(t,s),e.forEach((e=>Ze(e,s)))}));const E=[],w=new Set,v=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t[Ke];s&&s.setForRemoval&&(E.push(t),w.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>w.add(e))):v.add(t))}const b=new Map,T=Ye(y,Array.from(w));T.forEach(((e,t)=>{const s=x+S++;b.set(t,s),e.forEach((e=>Ze(e,s)))})),e.push((()=>{f.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>Je(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>Je(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],A=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,n=e.element;if(k.push(t),this.collectedEnterElements.length){const s=n[Ke];if(s&&s.setForMove){if(s.previousTriggersValues&&s.previousTriggersValues.has(e.triggerName)){const t=s.previousTriggersValues.get(e.triggerName),n=this.statesByElement.get(e.element);if(n&&n.has(e.triggerName)){const s=n.get(e.triggerName);s.value=t,n.set(e.triggerName,s)}}return void t.destroy()}}const i=!p||!this.driver.containsElement(p,n),a=b.get(n),h=_.get(n),m=this._buildInstruction(e,s,h,a,i);if(m.errors&&m.errors.length)return void A.push(m);if(i)return t.onStart((()=>W(n,m.fromStyles))),t.onDestroy((()=>O(n,m.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>W(n,m.fromStyles))),t.onDestroy((()=>O(n,m.toStyles))),void r.push(t);const d=[];m.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),m.timelines=d,s.append(n,m.timelines);const y={instruction:m,player:t,element:n};o.push(y),m.queriedElements.forEach((e=>g(l,e,[]).push(t))),m.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),m.postStyleProps.forEach(((e,t)=>{let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(A.length){const e=[];A.forEach((t=>{e.push((t.triggerName,t.errors,new h(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const N=new Map,C=new Map;o.forEach((e=>{const t=e.element;s.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,N))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{g(N,t,[]).push(e),e.destroy()}))}));const P=E.filter((e=>tt(e,c,u))),M=new Map;Ue(M,this.driver,v,u,n).forEach((e=>{tt(e,c,u)&&P.push(e)}));const R=new Map;f.forEach(((e,t)=>{Ue(R,this.driver,new Set(e),c,i)})),P.forEach((e=>{const t=M.get(e),s=R.get(e);M.set(e,new Map([...t?.entries()??[],...s?.entries()??[]]))}));const D=[],I=[],q={};o.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(d.has(t))return n.onDestroy((()=>O(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=q;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,N,a,R,M);if(n.setRealPlayer(s),e===q)D.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=m(t)),r.push(n)}}else W(t,i.fromStyles),n.onDestroy((()=>O(t,i.toStyles))),I.push(n),d.has(t)&&r.push(n)})),I.forEach((e=>{const t=a.get(e.element);if(t&&t.length){const s=m(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t[Ke];if(Je(t,x),s&&s.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,z,!0);for(let e=0;e<s.length;e++){let t=l.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?Xe(this,t,i):this.processLeaveNode(t)}return E.length=0,D.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),D}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Oe;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,o=n!==i,l=g(s,n,[]);this._getPreviousPlayers(n,o,r,a,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}W(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,a){const o=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m[Ke];if(p&&p.removedBeforeQueried)return new e(s.duration,s.delay);const y=m!==l,f=function(e){const t=[];return et(e,t),t}((n.get(m)||qe).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=a.get(m),S=d(this._normalizer,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),y){const e=new He(t,o,m);e.setRealPlayer(E),h.push(e)}return E}));h.forEach((e=>{g(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Ze(e,I)));const y=m(p);return y.onDestroy((()=>{c.forEach((e=>Je(e,I))),O(l,s.toStyles)})),u.forEach((e=>{g(i,e,[]).push(y)})),y}_buildPlayer(t,s,n){return s.length>0?this.driver.animate(t.element,s,t.duration,t.delay,t.easing,n):new e(t.duration,t.delay)}}class He{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>p(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){g(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function $e(e){return e&&1===e.nodeType}function Ge(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Ue(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ge(e))));const a=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n[Ke]=Be,a.push(n))})),e.set(n,r)}));let o=0;return s.forEach((e=>Ge(e,r[o++]))),a}function Ye(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const a=e.parentNode;return t=s.has(a)?a:n.has(a)?1:r(a),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ze(e,t){e.classList?.add(t)}function Je(e,t){e.classList?.remove(t)}function Xe(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function et(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?et(n.players,t):t.push(n)}}function tt(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}class st{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ve(e.body,t,s),this._timelineEngine=new De(e.body,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let a=this._triggerCache[r];if(!a){const e=[],t=[],s=ce(this._driver,i,e,t);if(e.length)throw new h(3404,!1);t.length,a=function(e,t,s){return new Fe(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=_(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=_(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class nt{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=nt.initialStylesByElement.get(e);n||nt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&O(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(O(this._element,this._initialStyles),this._endStyles&&(O(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(nt.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),O(this._element,this._initialStyles),this._state=3)}}function it(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}class rt{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy((()=>{this.domPlayer.removeEventListener("finish",t)}))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((e=>e())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((e=>e())),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:ee(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class at{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return ee(e,t)}animate(e,t,s,n,i,r=[]){const a={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(a.easing=i);const o=new Map,l=r.filter((e=>e instanceof rt));J(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>o.set(t,e)))}));let h=K(t).map((e=>new Map(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,ee(e,t))))}}return t}(e,h,o);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=it(t[0]),t.length>1&&(n=it(t[t.length-1]))):t instanceof Map&&(s=it(t)),s||n?new nt(e,s,n):null}(e,h);return new rt(e,h,a,c)}}function ot(e,t){return"noop"===e?new st(t,new N,new M):new st(t,new at,new se)}class lt{constructor(e,t){this._driver=e;const s=[],n=[],i=ce(e,t,s,n);if(s.length)throw new h(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?Q(t):t,a=Array.isArray(s)?Q(s):s,o=[];i=i||new fe;const l=Se(this._driver,e,this._animationAst,F,x,r,a,n,i,o);if(o.length)throw new h(3501,!1);return l}}const ht="@",ct="@.disabled";class ut{constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n,this.ɵtype=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone((()=>{queueMicrotask((()=>{this.delegate.destroy()}))})),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ht&&t==ct?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class mt extends ut{constructor(e,t,s,n,i){super(t,s,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ht?"."==t.charAt(1)&&t==ct?(s=void 0===s||!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ht){const n=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.slice(1),r="";return i.charAt(0)!=ht&&([i,r]=function(e){const t=e.indexOf("."),s=e.substring(0,t),n=e.slice(t+1);return[s,n]}(i)),this.engine.listen(this.namespaceId,n,i,r,(e=>{const t=e._data||-1;this.factory.scheduleListenerCallback(t,s,e)}))}return this.delegate.listen(e,t,s)}}class dt{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(e,t)=>{t?.removeChild(null,e)}}createRenderer(e,t){const s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const e=this._rendererCache;let t=e.get(s);if(!t){const n=()=>e.delete(s);t=new ut("",s,this.engine,n),e.set(s,t)}return t}const n=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const r=t=>{Array.isArray(t)?t.forEach(r):this.engine.registerTrigger(n,i,e,t.name,t)};return t.data.animation.forEach(r),new mt(this,i,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask((()=>{this._microtaskId++}))}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId)return void this._zone.run((()=>t(s)));const n=this._animationCallbacksBuffer;0==n.length&&queueMicrotask((()=>{this._zone.run((()=>{n.forEach((e=>{const[t,s]=e;t(s)})),this._animationCallbacksBuffer=[]}))})),n.push([t,s])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)})),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}export{C as AnimationDriver,N as NoopAnimationDriver,lt as ɵAnimation,st as ɵAnimationEngine,mt as ɵAnimationRenderer,dt as ɵAnimationRendererFactory,P as ɵAnimationStyleNormalizer,ut as ɵBaseAnimationRenderer,M as ɵNoopAnimationStyleNormalizer,at as ɵWebAnimationsDriver,rt as ɵWebAnimationsPlayer,se as ɵWebAnimationsStyleNormalizer,J as ɵallowPreviousPlayerStylesMerge,Z as ɵcamelCaseToDashCase,k as ɵcontainsElement,ot as ɵcreateEngine,E as ɵgetParentElement,A as ɵinvokeQuery,K as ɵnormalizeKeyframes,b as ɵvalidateStyleProperty,T as ɵvalidateWebAnimatableStyleProperty}; | ||
//# sourceMappingURL=angular-browser.min.js.map |
{ | ||
"name": "@esm-bundle/angular__animations", | ||
"version": "18.2.10", | ||
"version": "18.2.11", | ||
"description": "ESM and SystemJS versions of @angular/animations", | ||
@@ -47,8 +47,8 @@ "type": "module", | ||
"devDependencies": { | ||
"@angular/animations": "18.2.10", | ||
"@angular/compiler": "18.2.10", | ||
"@angular/compiler-cli": "18.2.10", | ||
"@angular/core": "18.2.10", | ||
"@angular/animations": "18.2.11", | ||
"@angular/compiler": "18.2.11", | ||
"@angular/compiler-cli": "18.2.11", | ||
"@angular/core": "18.2.11", | ||
"@rollup/plugin-babel": "6.0.4", | ||
"concurrently": "9.0.1", | ||
"concurrently": "9.1.0", | ||
"husky": "9.1.6", | ||
@@ -64,3 +64,3 @@ "karma": "6.4.4", | ||
"rimraf": "6.0.1", | ||
"rollup": "4.24.2", | ||
"rollup": "4.24.4", | ||
"rollup-plugin-terser": "7.0.2", | ||
@@ -67,0 +67,0 @@ "typescript": "5.6.3" |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@18.2.10 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@18.2.11 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register(["@angular/common","@angular/core"],(function(t){"use strict";var n,e,s,i,r,o;return{setters:[function(t){n=t.DOCUMENT},function(t){e=t,s=t.inject,t.Injectable,i=t.ANIMATION_MODULE_TYPE,r=t.ViewEncapsulation,o=t.ɵRuntimeError,t.Inject}],execute:function(){var a;t({animate:function(t,n=null){return{type:a.Animate,styles:n,timings:t}},animateChild:function(t=null){return{type:a.AnimateChild,options:t}},animation:function(t,n=null){return{type:a.Reference,animation:t,options:n}},group:function(t,n=null){return{type:a.Group,steps:t,options:n}},keyframes:function(t){return{type:a.Keyframes,steps:t}},query:function(t,n,e=null){return{type:a.Query,selector:t,animation:n,options:e}},sequence:h,stagger:function(t,n){return{type:a.Stagger,timings:t,animation:n}},state:function(t,n,e){return{type:a.State,name:t,styles:n,options:e}},style:function(t){return{type:a.Style,styles:t,offset:null}},transition:function(t,n,e=null){return{type:a.Transition,expr:t,animation:n,options:e}},trigger:function(t,n){return{type:a.Trigger,name:t,definitions:n,options:{}}},useAnimation:function(t,n=null){return{type:a.AnimateRef,animation:t,options:n}}}),t("AnimationMetadataType",a),function(t){t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger"}(a||t("AnimationMetadataType",a={}));t("AUTO_STYLE","*");function h(t,n=null){return{type:a.Sequence,steps:t,options:n}}class l{static{this.ɵfac=function(t){return new(t||l)}}static{this.ɵprov=e.ɵɵdefineInjectable({token:l,factory:()=>s(u),providedIn:"root"})}}t("AnimationBuilder",l);class c{}t("AnimationFactory",c);class u extends l{constructor(t,n){super(),this.animationModuleType=s(i,{optional:!0}),this._nextAnimationId=0;const e={id:"0",encapsulation:r.None,styles:[],data:{animation:[]}};if(this._renderer=t.createRenderer(n.body,e),null===this.animationModuleType&&!function(t){const n=t.ɵtype;return 0===n||1===n}(this._renderer))throw new o(3600,!1)}build(t){const n=this._nextAnimationId;this._nextAnimationId++;const e=Array.isArray(t)?h(t):t;return y(this._renderer,null,n,"register",[e]),new _(n,this._renderer)}static{this.ɵfac=function(t){return new(t||u)(e.ɵɵinject(e.RendererFactory2),e.ɵɵinject(n))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:u,factory:u.ɵfac,providedIn:"root"})}}t("ɵBrowserAnimationBuilder",u);class _ extends c{constructor(t,n){super(),this._id=t,this._renderer=n}create(t,n){return new d(this._id,t,n||{},this._renderer)}}class d{constructor(t,n,e,s){this.id=t,this.element=n,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}_listen(t,n){return this._renderer.listen(this.element,`@@${this.id}:${t}`,n)}_command(t,...n){y(this._renderer,this.element,this.id,t,n)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return function(t){const n=t.ɵtype;if(0===n)return t;if(1===n)return t.animationRenderer;return null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function y(t,n,e,s,i){t.setProperty(n,`@@${e}:${s}`,i)}t("NoopAnimationPlayer",class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach((t=>t())),n.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,e=0,s=0;const i=this.players.length;0==i?queueMicrotask((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++n==i&&this._onFinish()})),t.onDestroy((()=>{++e==i&&this._onDestroy()})),t.onStart((()=>{++s==i&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,n)=>Math.max(t,n.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const n=t*this.totalTime;this.players.forEach((t=>{const e=t.totalTime?Math.min(1,n/t.totalTime):1;t.setPosition(e)}))}getPosition(){const t=this.players.reduce(((t,n)=>null===t||n.totalTime>t.totalTime?n:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach((t=>t())),n.length=0}});t("ɵPRE_STYLE","!")}}})); | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations/browser@18.2.10 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations/browser@18.2.11 - Ivy - system format - es2022 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register(["@angular/animations","@angular/core"],(function(e){"use strict";var t,s,n,i,r,a,o,l,h;return{setters:[function(e){t=e.NoopAnimationPlayer,s=e.AnimationMetadataType,n=e.style,i=e.AUTO_STYLE,r=e.ɵPRE_STYLE,a=e.ɵAnimationGroupPlayer,o=e.sequence},function(e){l=e,e.Injectable,h=e.ɵRuntimeError}],execute:function(){e({ɵallowPreviousPlayerStylesMerge:J,ɵcamelCaseToDashCase:Z,ɵcontainsElement:k,ɵcreateEngine:function(e,t){if("noop"===e)return new st(t,new N,new M);return new st(t,new at,new se)},ɵgetParentElement:E,ɵinvokeQuery:A,ɵnormalizeKeyframes:K,ɵvalidateStyleProperty:b,ɵvalidateWebAnimatableStyleProperty:T});function c(e){return new h(3e3,!1)}const u=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function m(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new a(e)}}function d(e,t,s=new Map,n=new Map){const a=[],o=[];let l=-1,c=null;if(t.forEach((t=>{const h=t.get("offset"),u=h==l,m=u&&c||new Map;t.forEach(((t,o)=>{let l=o,h=t;if("offset"!==o)switch(l=e.normalizePropertyName(l,a),h){case r:h=s.get(o);break;case i:h=n.get(o);break;default:h=e.normalizeStyleValue(o,l,h,a)}m.set(l,h)})),u||o.push(m),c=m,l=h})),a.length)throw new h(3502,!1);return o}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&y(s,"start",e))));break;case"done":e.onDone((()=>n(s&&y(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&y(s,"destroy",e))))}}function y(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),a=e._data;return null!=a&&(r._data=a),r}function f(e,t,s,n,i="",r=0,a){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function g(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const S=(()=>"undefined"==typeof document?null:document.documentElement)();function E(e){const t=e.parentNode||e.host||null;return t===S?null:t}let v=null,w=!1;function b(e){v||(v=function(){if("undefined"!=typeof document)return document.body;return null}()||{},w=!!v.style&&"WebkitAppearance"in v.style);let t=!0;if(v.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in v.style,!t&&w)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in v.style}return t}function T(e){return u.has(e)}function k(e,t){for(;t;){if(t===e)return!0;t=E(t)}return!1}function A(e,t,s){if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]}class N{validateStyleProperty(e){return b(e)}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,a=[],o){return new t(n,i)}static{this.ɵfac=function(e){return new(e||N)}}static{this.ɵprov=l.ɵɵdefineInjectable({token:N,factory:N.ɵfac})}}e("NoopAnimationDriver",N);class C{static{this.NOOP=new N}}e("AnimationDriver",C);class P{}e("ɵAnimationStyleNormalizer",P);class M{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}e("ɵNoopAnimationStyleNormalizer",M);const F="ng-enter",x="ng-leave",R="ng-trigger",D=".ng-trigger",I="ng-animating",z=".ng-animating";function q(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:L(parseFloat(t[1]),t[2])}function L(e,t){return"s"===t?1e3*e:e}function B(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,a="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(c()),{duration:0,delay:0,easing:""};i=L(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(r=L(parseFloat(o),s[4]));const l=s[5];l&&(a=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new h(3100,!1)),e=!0),r<0&&(t.push(new h(3101,!1)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:a}}(e,t,s)}function K(e){return e.length?e[0]instanceof Map?e:e.map((e=>new Map(Object.entries(e)))):[]}function Q(e){return Array.isArray(e)?new Map(...e):new Map(e)}function O(e,t,s){t.forEach(((t,n)=>{const i=Y(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t}))}function W(e,t){t.forEach(((t,s)=>{const n=Y(s);e.style[n]=""}))}function j(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function V(e,t,s){const n=t.params||{},i=$(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new h(3001,!1))}))}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(e){let t=[];if("string"==typeof e){let s;for(;s=H.exec(e);)t.push(s[1]);H.lastIndex=0}return t}function G(e,t,s){const n=`${e}`,i=n.replace(H,((e,n)=>{let i=t[n];return null==i&&(s.push(new h(3003,!1)),i=""),i.toString()}));return i==n?e:i}const U=/-+([a-z0-9])/g;function Y(e){return e.replace(U,((...e)=>e[1].toUpperCase()))}function Z(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function J(e,t){return 0===e||0===t}function X(e,t,n){switch(t.type){case s.Trigger:return e.visitTrigger(t,n);case s.State:return e.visitState(t,n);case s.Transition:return e.visitTransition(t,n);case s.Sequence:return e.visitSequence(t,n);case s.Group:return e.visitGroup(t,n);case s.Animate:return e.visitAnimate(t,n);case s.Keyframes:return e.visitKeyframes(t,n);case s.Style:return e.visitStyle(t,n);case s.Reference:return e.visitReference(t,n);case s.AnimateChild:return e.visitAnimateChild(t,n);case s.AnimateRef:return e.visitAnimateRef(t,n);case s.Query:return e.visitQuery(t,n);case s.Stagger:return e.visitStagger(t,n);default:throw t.type,new h(3004,!1)}}function ee(e,t){return window.getComputedStyle(e)[t]}const te=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class se extends P{normalizePropertyName(e,t){return Y(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(te.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new h(3005,!1))}return r+i}}e("ɵWebAnimationsStyleNormalizer",se);const ne="*";function ie(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new h(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new h(3015,!1)),t;const i=n[1],r=n[2],a=n[3];t.push(oe(i,a));const o=i==ne&&a==ne;"<"!=r[0]||o||t.push(oe(a,i));return}(e,s,t))):s.push(e),s}const re=new Set(["true","1"]),ae=new Set(["false","0"]);function oe(e,t){const s=re.has(e)||ae.has(e),n=re.has(t)||ae.has(t);return(i,r)=>{let a=e==ne||e==i,o=t==ne||t==r;return!a&&s&&"boolean"==typeof i&&(a=i?re.has(e):ae.has(e)),!o&&n&&"boolean"==typeof r&&(o=r?re.has(t):ae.has(t)),a&&o}}const le=":self",he=new RegExp(`s*${le}s*,?`,"g");function ce(e,t,s,n){return new ue(e).build(t,s,n)}class ue{constructor(e){this._driver=e}build(e,t,s){const n=new me(t);this._resetContextStyleTimingState(n);return X(this,j(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push(new h(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),e.type==s.State){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,r.push(this.visitState(s,t))})),s.name=n}else if(e.type==s.Transition){const s=this.visitTransition(e,t);n+=s.queryCount,i+=s.depCount,a.push(s)}else t.errors.push(new h(3007,!1))})),{type:s.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};n.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{$(e).forEach((e=>{r.hasOwnProperty(e)||s.add(e)}))}))})),s.size&&t.errors.push((e.name,s.values(),new h(3008,!1)))}return{type:s.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=X(this,j(e.animation),t),i=ie(e.expr,t.errors);return{type:s.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:de(e.options)}}visitSequence(e,t){return{type:s.Sequence,steps:e.steps.map((e=>X(this,e,t))),options:de(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map((e=>{t.currentTime=n;const s=X(this,e,t);return i=Math.max(i,t.currentTime),s}));return t.currentTime=i,{type:s.Group,steps:r,options:de(e.options)}}visitAnimate(e,t){const i=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return pe(B(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=pe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=B(s,t);return pe(n.duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=i;let a=e.styles?e.styles:n({});if(a.type==s.Keyframes)r=this.visitKeyframes(a,t);else{let s=e.styles,a=!1;if(!s){a=!0;const e={};i.easing&&(e.easing=i.easing),s=n(e)}t.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,t);o.isEmptyStep=a,r=o}return t.currentAnimateTimings=null,{type:s.Animate,timings:i,style:r,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of r)"string"==typeof e?e===i?n.push(e):t.errors.push(new h(3002,!1)):n.push(new Map(Object.entries(e)));let a=!1,o=null;return n.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!a))for(let t of e.values())if(t.toString().indexOf("{{")>=0){a=!0;break}})),{type:s.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),a=r.get(s);let o=!0;a&&(i!=n&&i>=a.startTime&&n<=a.endTime&&(t.errors.push((a.startTime,a.endTime,new h(3010,!1))),o=!1),i=a.startTime),o&&r.set(s,{startTime:i,endTime:n}),t.options&&V(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const n={type:s.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new h(3011,!1)),n;let i=0;const r=[];let a=!1,o=!1,l=0;const c=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let n=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=n&&(i++,h=s.offset=n),o=o||h<0||h>1,a=a||h<l,l=h,r.push(h),s}));o&&t.errors.push(new h(3012,!1)),a&&t.errors.push(new h(3200,!1));const u=e.steps.length;let m=0;i>0&&i<u?t.errors.push(new h(3202,!1)):0==i&&(m=1/(u-1));const d=u-1,p=t.currentTime,y=t.currentAnimateTimings,f=y.duration;return c.forEach(((e,s)=>{const i=m>0?s==d?1:m*s:r[s],a=i*f;t.currentTime=p+y.delay+a,y.duration=a,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)})),n}visitReference(e,t){return{type:s.Reference,animation:X(this,j(e.animation),t),options:de(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:s.AnimateChild,options:de(e.options)}}visitAnimateRef(e,t){return{type:s.AnimateRef,animation:this.visitReference(e.animation,t),options:de(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,a]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==le));t&&(e=e.replace(he,""));return e=e.replace(/@\*/g,D).replace(/@\w+/g,(e=>D+"-"+e.slice(1))).replace(/:animating/g,z),[e,t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,g(t.collectedStyles,t.currentQuerySelector,new Map);const o=X(this,j(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:s.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:de(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new h(3013,!1));const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:B(e.timings,t.errors,!0);return{type:s.Stagger,animation:X(this,j(e.animation),t),timings:n,options:null}}}class me{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function de(e){var t;return e?(e={...e}).params&&(e.params=(t=e.params)?{...t}:null):e={},e}function pe(e,t,s){return{duration:e,delay:t,easing:s}}function ye(e,t,s,n,i,r,a=null,o=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}class fe{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ge=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function Se(e,t,s,n,i,r=new Map,a=new Map,o,l,h=[]){return(new Ee).buildKeyframes(e,t,s,n,i,r,a,o,l,h)}class Ee{buildKeyframes(e,t,s,n,i,r,a,o,l,h=[]){l=l||new fe;const c=new we(e,t,l,n,i,h,[]);c.options=o;const u=o.delay?q(o.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,o),X(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&a.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([a],null,c.errors,o)}return m.length?m.map((e=>e.buildKeyframes())):[ye(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(const n of e){const e=n?.delay;if(e){const i="number"==typeof e?e:q(G(e,n?.params??{},t.errors));s.delayNextStep(i)}}}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?q(s.duration):null,r=null!=s.delay?q(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),X(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){i.previousNode.type==s.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);const e=q(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>X(this,e,i))),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?q(e.options.delay):0;e.steps.forEach((r=>{const a=t.createSubContext(e.options);i&&a.delayNextStep(i),X(this,r,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return B(t.params?G(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;r.type==s.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?q(i.delay):0;r&&(t.previousNode.type===s.Style||0==n&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let a=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const i=t.createSubContext(e.options,s);r&&i.delayNextStep(r),s===t.element&&(l=i.currentTimeline),X(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe();const o=i.currentTimeline.currentTime;a=Math.max(a,o)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),a=r*(t.currentQueryTotal-1);let o=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":o=a-o;break;case"full":o=s.currentStaggerTime}const l=t.currentTimeline;o&&l.delayNextStep(o);const h=l.currentTime;X(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const ve={};class we{constructor(e,t,s,n,i,r,a,o){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new be(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=q(s.duration)),null!=s.delay&&(n.delay=q(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=G(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new we(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new Te(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let a=[];if(n&&a.push(this.element),e.length>0){e=(e=e.replace(ge,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),a.push(...n)}return i||0!=a.length||r.push(new h(3014,!1)),a}}class be{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new be(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||i),this._currentKeyframe.set(e,i);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);const r=n&&n.params||{},a=function(e,t){const s=new Map;let n;return e.forEach((e=>{if("*"===e){n??=t.keys();for(let e of n)s.set(e,i)}else for(let[t,n]of e)s.set(t,n)})),s}(e,this._globalTimelineStyles);for(let[e,t]of a){const n=G(t,r,s);this._pendingStyles.set(e,n),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??i),this._updateStyle(e,n)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach(((e,t)=>{this._currentKeyframe.set(t,e)})),this._pendingStyles.clear(),this._localTimelineStyles.forEach(((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)})))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach(((a,o)=>{const l=new Map([...this._backFill,...a]);l.forEach(((s,n)=>{s===r?e.add(n):s===i&&t.add(n)})),s||l.set("offset",o/this.duration),n.push(l)}));const a=[...e.values()],o=[...t.values()];if(s){const e=n[0],t=new Map(e);e.set("offset",0),t.set("offset",1),n=[e,t]}return ye(this.element,n,a,o,this.duration,this.startTime,this.easing,!1)}}class Te extends be{constructor(e,t,s,n,i,r,a=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,a=t/r,o=new Map(e[0]);o.set("offset",0),i.push(o);const l=new Map(e[0]);l.set("offset",ke(a)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let a=new Map(e[n]);const o=t+a.get("offset")*s;a.set("offset",ke(o/r)),i.push(a)}s=r,t=0,n="",e=i}return ye(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ke(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}function Ae(e,t,s,n,i,r,a,o,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}const Ne={};class Ce{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,a,o,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Ne,m=a&&a.params||Ne,d=this.buildStyles(s,m,c),p=o&&o.params||Ne,y=this.buildStyles(n,p,c),f=new Set,_=new Map,S=new Map,E="void"===n,v={params:Pe(p,u),delay:this.ast.options?.delay},w=h?[]:Se(e,t,this.ast.animation,i,r,d,y,v,l,c);let b=0;return w.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length?Ae(t,this._triggerName,s,n,E,d,y,[],[],_,S,b,c):(w.forEach((e=>{const s=e.element,n=g(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=g(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&f.add(s)})),Ae(t,this._triggerName,s,n,E,d,y,w,[...f.values()],_,S,b))}}function Pe(e,t){const s={...t};return Object.entries(e).forEach((([e,t])=>{null!=t&&(s[e]=t)})),s}class Me{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=Pe(e,this.defaultParams);return this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=G(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(i,e)}))})),s}}class Fe{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new Me(e.style,t,n))})),xe(this.states,"true","1"),xe(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Ce(e,t,this.states))})),this.fallbackTransition=function(e,t){const n=[(e,t)=>!0],i={type:s.Sequence,steps:[],options:null},r={type:s.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ce(e,r,t)}(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function xe(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const Re=new fe;class De{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=ce(this._driver,t,s,n);if(s.length)throw new h(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=d(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const n=[],r=this._animations.get(e);let a;const o=new Map;if(r?(a=Se(this._driver,t,r,F,x,new Map,new Map,s,Re,n),a.forEach((e=>{const t=g(o,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(n.push(new h(3300,!1)),a=[]),n.length)throw new h(3504,!1);o.forEach(((e,t)=>{e.forEach(((s,n)=>{e.set(n,this._driver.computeStyle(t,n,i))}))}));const l=m(a.map((e=>{const t=o.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,l),l.onDestroy((()=>this.destroy(e))),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new h(3301,!1);return t}listen(e,t,s,n){const i=f(t,"","","");return p(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Ie="ng-animate-queued",ze="ng-animate-disabled",qe=[],Le={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Be={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ke="__ng_removed";class Qe{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const{value:t,...s}=e;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const Oe="void",We=new Qe(Oe);class je{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ze(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new h(3302,!1);if(null==s||0==s.length)throw new h(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new h(3400,!1);var i;const r=g(this._elementListeners,e,[]),a={name:t,phase:s,callback:n};r.push(a);const o=g(this._engine.statesByElement,e,new Map);return o.has(t)||(Ze(e,R),Ze(e,R+"-"+t),o.set(t,We)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(a);e>=0&&r.splice(e,1),this._triggers.has(t)||o.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new h(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new He(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Ze(e,R),Ze(e,R+"-"+t),this._engine.statesByElement.set(e,a=new Map));let o=a.get(t);const l=new Qe(s,this.id);!(s&&s.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a.set(t,l),o||(o=We);if(!(l.value===Oe)&&o.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(o.params,l.params)){const t=[],s=i.matchStyles(o.value,o.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{W(e,s),O(e,n)}))}return}const h=g(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(o.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:o,toState:l,player:r,isFallbackTransition:u}),u||(Ze(e,Ie),r.onStart((()=>{Je(e,Ie)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,D,!0);s.forEach((e=>{if(e[Ke])return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const a=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,Oe,n);t&&a.push(t)}})),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(a).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,a=s.get(i)||We,o=new Qe(Oe),l=new He(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:a,toState:o,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e[Ke];n&&n!==Le||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ze(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Ve{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new je(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush((()=>{})),this.afterFlushAnimationsDone((()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]})))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if($e(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!$e(t))return;const i=t[Ke];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ze(e,ze)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Je(e,ze))}removeNode(e,t,s){if($e(t)){const n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t[Ke]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return $e(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,D,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,z,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e[Ke];if(t&&t.setForRemoval){if(e[Ke]=Le,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ze)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ze(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new h(3402,!1)}_flushAnimations(e,t){const s=new fe,n=[],a=new Map,o=[],l=new Map,c=new Map,u=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),f=Ye(y,this.collectedEnterElements),_=new Map;let S=0;f.forEach(((e,t)=>{const s=F+S++;_.set(t,s),e.forEach((e=>Ze(e,s)))}));const E=[],v=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t[Ke];s&&s.setForRemoval&&(E.push(t),v.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>v.add(e))):w.add(t))}const b=new Map,T=Ye(y,Array.from(v));T.forEach(((e,t)=>{const s=x+S++;b.set(t,s),e.forEach((e=>Ze(e,s)))})),e.push((()=>{f.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>Je(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>Je(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],A=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,i=e.element;if(k.push(t),this.collectedEnterElements.length){const s=i[Ke];if(s&&s.setForMove){if(s.previousTriggersValues&&s.previousTriggersValues.has(e.triggerName)){const t=s.previousTriggersValues.get(e.triggerName),n=this.statesByElement.get(e.element);if(n&&n.has(e.triggerName)){const s=n.get(e.triggerName);s.value=t,n.set(e.triggerName,s)}}return void t.destroy()}}const r=!p||!this.driver.containsElement(p,i),a=b.get(i),h=_.get(i),m=this._buildInstruction(e,s,h,a,r);if(m.errors&&m.errors.length)return void A.push(m);if(r)return t.onStart((()=>W(i,m.fromStyles))),t.onDestroy((()=>O(i,m.toStyles))),void n.push(t);if(e.isFallbackTransition)return t.onStart((()=>W(i,m.fromStyles))),t.onDestroy((()=>O(i,m.toStyles))),void n.push(t);const d=[];m.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),m.timelines=d,s.append(i,m.timelines);const y={instruction:m,player:t,element:i};o.push(y),m.queriedElements.forEach((e=>g(l,e,[]).push(t))),m.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),m.postStyleProps.forEach(((e,t)=>{let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(A.length){const e=[];A.forEach((t=>{e.push((t.triggerName,t.errors,new h(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const N=new Map,C=new Map;o.forEach((e=>{const t=e.element;s.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,N))})),n.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{g(N,t,[]).push(e),e.destroy()}))}));const P=E.filter((e=>tt(e,c,u))),M=new Map;Ue(M,this.driver,w,u,i).forEach((e=>{tt(e,c,u)&&P.push(e)}));const R=new Map;f.forEach(((e,t)=>{Ue(R,this.driver,new Set(e),c,r)})),P.forEach((e=>{const t=M.get(e),s=R.get(e);M.set(e,new Map([...t?.entries()??[],...s?.entries()??[]]))}));const D=[],I=[],q={};o.forEach((e=>{const{element:t,player:i,instruction:r}=e;if(s.has(t)){if(d.has(t))return i.onDestroy((()=>O(t,r.toStyles))),i.disabled=!0,i.overrideTotalTime(r.totalTime),void n.push(i);let e=q;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(i.namespaceId,r,N,a,R,M);if(i.setRealPlayer(s),e===q)D.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=m(t)),n.push(i)}}else W(t,r.fromStyles),i.onDestroy((()=>O(t,r.toStyles))),I.push(i),d.has(t)&&n.push(i)})),I.forEach((e=>{const t=a.get(e.element);if(t&&t.length){const s=m(t);e.setRealPlayer(s)}})),n.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t[Ke];if(Je(t,x),s&&s.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,z,!0);for(let e=0;e<s.length;e++){let t=l.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?Xe(this,t,i):this.processLeaveNode(t)}return E.length=0,D.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),D}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Oe;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,o=n!==i,l=g(s,n,[]);this._getPreviousPlayers(n,o,r,a,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}W(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,a){const o=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m[Ke];if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const y=m!==l,f=function(e){const t=[];return et(e,t),t}((n.get(m)||qe).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=a.get(m),S=d(this._normalizer,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),y){const t=new He(e,o,m);t.setRealPlayer(E),h.push(t)}return E}));h.forEach((e=>{g(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Ze(e,I)));const y=m(p);return y.onDestroy((()=>{c.forEach((e=>Je(e,I))),O(l,s.toStyles)})),u.forEach((e=>{g(i,e,[]).push(y)})),y}_buildPlayer(e,s,n){return s.length>0?this.driver.animate(e.element,s,e.duration,e.delay,e.easing,n):new t(e.duration,e.delay)}}class He{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>p(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){g(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function $e(e){return e&&1===e.nodeType}function Ge(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Ue(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ge(e))));const a=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n[Ke]=Be,a.push(n))})),e.set(n,r)}));let o=0;return s.forEach((e=>Ge(e,r[o++]))),a}function Ye(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const a=e.parentNode;return t=s.has(a)?a:n.has(a)?1:r(a),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ze(e,t){e.classList?.add(t)}function Je(e,t){e.classList?.remove(t)}function Xe(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function et(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof a?et(n.players,t):t.push(n)}}function tt(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}class st{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ve(e.body,t,s),this._timelineEngine=new De(e.body,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let a=this._triggerCache[r];if(!a){const e=[],t=[],s=ce(this._driver,i,e,t);if(e.length)throw new h(3404,!1);t.length,a=function(e,t,s){return new Fe(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=_(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=_(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}e("ɵAnimationEngine",st);class nt{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=nt.initialStylesByElement.get(e);n||nt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&O(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(O(this._element,this._initialStyles),this._endStyles&&(O(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(nt.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),O(this._element,this._initialStyles),this._state=3)}}function it(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}class rt{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy((()=>{this.domPlayer.removeEventListener("finish",t)}))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((e=>e())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((e=>e())),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:ee(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}e("ɵWebAnimationsPlayer",rt);class at{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return ee(e,t)}animate(e,t,s,n,i,r=[]){const a={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(a.easing=i);const o=new Map,l=r.filter((e=>e instanceof rt));J(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>o.set(t,e)))}));let h=K(t).map((e=>new Map(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,ee(e,t))))}}return t}(e,h,o);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=it(t[0]),t.length>1&&(n=it(t[t.length-1]))):t instanceof Map&&(s=it(t)),s||n?new nt(e,s,n):null}(e,h);return new rt(e,h,a,c)}}e("ɵWebAnimationsDriver",at);e("ɵAnimation",class{constructor(e,t){this._driver=e;const s=[],n=[],i=ce(e,t,s,n);if(s.length)throw new h(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?Q(t):t,a=Array.isArray(s)?Q(s):s,o=[];i=i||new fe;const l=Se(this._driver,e,this._animationAst,F,x,r,a,n,i,o);if(o.length)throw new h(3501,!1);return l}});const ot="@",lt="@.disabled";class ht{constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n,this.ɵtype=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone((()=>{queueMicrotask((()=>{this.delegate.destroy()}))})),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ot&&t==lt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}e("ɵBaseAnimationRenderer",ht);class ct extends ht{constructor(e,t,s,n,i){super(t,s,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ot?"."==t.charAt(1)&&t==lt?(s=void 0===s||!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ot){const n=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.slice(1),r="";return i.charAt(0)!=ot&&([i,r]=function(e){const t=e.indexOf("."),s=e.substring(0,t),n=e.slice(t+1);return[s,n]}(i)),this.engine.listen(this.namespaceId,n,i,r,(e=>{const t=e._data||-1;this.factory.scheduleListenerCallback(t,s,e)}))}return this.delegate.listen(e,t,s)}}e("ɵAnimationRenderer",ct);e("ɵAnimationRendererFactory",class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(e,t)=>{t?.removeChild(null,e)}}createRenderer(e,t){const s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const e=this._rendererCache;let t=e.get(s);if(!t){const n=()=>e.delete(s);t=new ht("",s,this.engine,n),e.set(s,t)}return t}const n=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const r=t=>{Array.isArray(t)?t.forEach(r):this.engine.registerTrigger(n,i,e,t.name,t)};return t.data.animation.forEach(r),new ct(this,i,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask((()=>{this._microtaskId++}))}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId)return void this._zone.run((()=>t(s)));const n=this._animationCallbacksBuffer;0==n.length&&queueMicrotask((()=>{this._zone.run((()=>{n.forEach((e=>{const[t,s]=e;t(s)})),this._animationCallbacksBuffer=[]}))})),n.push([t,s])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)})),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}})}}})); | ||
//# sourceMappingURL=angular-browser.min.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet