vendor: 8,174 bytes, line 1
1import{a as T,b as z,f as wt,g as Ie,n as J,o as ge,p as ae}from"./chunk-TQGG4IA2.js";import{a as pe,d as vt,ea as v,ha as bt,j as l}from"./chunk-GOV3CBS3.js";function At(n){return new v(3e3,!1)}function ws(){return new v(3100,!1)}function As(){return new v(3101,!1)}function Ps(n){return new v(3001,!1)}function Ns(n){return new v(3003,!1)}function Ms(n){return new v(3004,!1)}function Nt(n,e){return new v(3005,!1)}function Mt(){return new v(3006,!1)}function Ct(){return new v(3007,!1)}function kt(n,e){return new v(3008,!1)}function Dt(n){return new v(3002,!1)}function Rt(n,e,t,s,i){return new v(3010,!1)}function Ot(){return new v(3011,!1)}function Lt(){return new v(3012,!1)}function Ft(){return new v(3200,!1)}function It(){return new v(3202,!1)}function zt(){return new v(3013,!1)}function Kt(n){return new v(3014,!1)}function qt(n){return new v(3015,!1)}function Bt(n){return new v(3016,!1)}function Qt(n){return new v(3500,!1)}function Vt(n){return new v(3501,!1)}function $t(n,e){return new v(3404,!1)}function Cs(n){return new v(3502,!1)}function Ut(n){return new v(3503,!1)}function Gt(){return new v(3300,!1)}function jt(n){return new v(3504,!1)}function Wt(n){return new v(3301,!1)}function Ht(n,e){return new v(3302,!1)}function Yt(n){return new v(3303,!1)}function Xt(n,e){return new v(3400,!1)}function Jt(n){return new v(3401,!1)}function Zt(n){return new v(3402,!1)}function xt(n,e){return new v(3505,!1)}var ks=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 j(n){switch(n.length){case 0:return new J;case 1:return n[0];default:return new ge(n)}}function Be(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(u=>{let c=u.get("offset"),h=c==a,d=h&&o||new Map;u.forEach((S,_)=>{let p=_,y=S;if(_!=="offset")switch(p=n.normalizePropertyName(p,i),y){case ae:y=t.get(_);break;case z:y=s.get(_);break;default:y=n.normalizeStyleValue(_,p,y,i);break}d.set(p,y)}),h||r.push(d),o=d,a=c}),i.length)throw Cs(i);return r}function ye(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ze(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ze(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ze(t,"destroy",n)));break}}function ze(n,e,t){let s=t.totalTime,i=!!t.disabled,r=_e(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s==null?n.totalTime:s,i),a=n._data;return a!=null&&(r._data=a),r}function _e(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function R(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Qe(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function Se(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Rs(n){return n.substring(1,6)=="ebkit"}var Z=null,Pt=!1;function es(n){Z||(Z=Ls()||{},Pt=Z.style?"WebkitAppearance"in Z.style:!1);let e=!0;return Z.style&&!Rs(n)&&(e=n in Z.style,!e&&Pt&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Z.style)),e}function Os(n){return ks.has(n)}function Ls(){return typeof document<"u"?document.body:null}function Ve(n,e){for(;e;){if(e===n)return!0;e=Se(e)}return!1}function $e(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Fs=1e3,Ue="{{",Is="}}",Ee="ng-enter",oe="ng-leave",le="ng-trigger",ue=".ng-trigger",Ge="ng-animating",Te=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(n,e){switch(e){case"s":return n*Fs;default:return n}}function ce(n,e,t){return n.hasOwnProperty("duration")?n:zs(n,e,t)}function zs(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(At(n)),{duration:0,delay:0,easing:""};i=Ke(parseFloat(o[1]),o[2]);let u=o[3];u!=null&&(r=Ke(parseFloat(u),o[4]));let c=o[5];c&&(a=c)}else i=n;if(!t){let o=!1,u=e.length;i<0&&(e.push(ws()),o=!0),r<0&&(e.push(As()),o=!0),o&&e.splice(u,0,At(n))}return{duration:i,delay:r,easing:a}}function ts(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function je(n){return Array.isArray(n)?new Map(...n):new Map(n)}function K(n,e,t){e.forEach((s,i)=>{let r=ve(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function H(n,e){e.forEach((t,s)=>{let i=ve(s);n.style[i]=""})}function te(n){return Array.isArray(n)?n.length==1?n[0]:wt(n):n}function ss(n,e,t){let s=e.params||{},i=We(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ps(r))})}var qe=new RegExp("".concat(Ue,"\\s*(.+?)\\s*").concat(Is),"g");function We(n){let e=[];
1if(typeof n=="string"){let t;for(;t=qe.exec(n);)e.push(t[1]);qe.lastIndex=0}return e}function se(n,e,t){let s="".concat(n),i=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Ns(a)),o=""),o.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function ve(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function qs(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function is(n,e){return n===0||e===0}function ns(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,be(n,o)))}}return e}function O(n,e,t){switch(e.type){case T.Trigger:return n.visitTrigger(e,t);case T.State:return n.visitState(e,t);case T.Transition:return n.visitTransition(e,t);case T.Sequence:return n.visitSequence(e,t);case T.Group:return n.visitGroup(e,t);case T.Animate:return n.visitAnimate(e,t);case T.Keyframes:return n.visitKeyframes(e,t);case T.Style:return n.visitStyle(e,t);case T.Reference:return n.visitReference(e,t);case T.AnimateChild:return n.visitAnimateChild(e,t);case T.AnimateRef:return n.visitAnimateRef(e,t);case T.Query:return n.visitQuery(e,t);case T.Stagger:return n.visitStagger(e,t);default:throw Ms(e.type)}}function be(n,e){return window.getComputedStyle(n)[e]}var ys=(()=>{let e=class e{validateStyleProperty(s){return es(s)}containsElement(s,i){return Ve(s,i)}getParentElement(s){return Se(s)}query(s,i,r){return $e(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,a,o,u=[],c){return new J(r,a)}};l(e,"\u0275fac",function(i){return new(i||e)}),l(e,"\u0275prov",bt({token:e,factory:e.\u0275fac}));let n=e;return n})(),He=class{};l(He,"NOOP",new ys);var et=class{},tt=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Bs=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"]),st=class extends et{normalizePropertyName(e,t){return ve(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Nt(e,s))}return a+r}};var Me="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Vs(s,t,e)):t.push(n),t}function Vs(n,e,t){if(n[0]==":"){let u=$s(n,t);if(typeof u=="function"){e.push(u);return}n=u}let s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(qt(n)),e;let i=s[1],r=s[2],a=s[3];e.push(rs(i,a));let o=i==Me&&a==Me;r[0]=="<"&&!o&&e.push(rs(a,i))}function $s(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Bt(n)),"* => *"}}var we=new Set(["true","1"]),Ae=new Set(["false","0"]);function rs(n,e){let t=we.has(n)||Ae.has(n),s=we.has(e)||Ae.has(e);return(i,r)=>{let a=n==Me||n==i,o=e==Me||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?we.has(n):Ae.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?we.has(e):Ae.has(e)),a&&o}}var _s=":self",Us=new RegExp("s*".concat(_s,"s*,?"),"g");function pt(n,e,t,s){return new it(n).build(e,t,s)}var as="",it=class{constructor(e){l(this,"_driver");this._driver=e}build(e,t,s){let i=new nt(t);return this._resetContextStyleTimingState(i),O(this,te(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=as,e.collectedStyles=new Map,e.collectedStyles.set(as,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Mt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==T.State){let u=o,c=u.name;c.toString().split(/\s*,\s*/).forEach(h=>{u.name=h,r.push(this.visitState(u,t))}),u.name=c}else if(o.type==T.Transition){let u=this.visitTransition(o,t);s+=u.queryCount,i+=u.depCount,a.push(u)}else t.errors.push(Ct())}),{type:T.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};
vendor: 10,509 bytes, line 1
1s.styles.forEach(o=>{o instanceof Map&&o.forEach(u=>{We(u).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(kt(e.name,[...r.values()]))}return{type:T.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,te(e.animation),t),i=Qs(e.expr,t.errors);return{type:T.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return{type:T.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:x(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:T.Group,steps:r,options:x(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Ie({});if(r.type==T.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let c={};s.easing&&(c.easing=s.easing),a=Ie(c)}t.currentTime+=s.duration+s.delay;let u=this.visitStyle(a,t);u.isEmptyStep=o,i=u}return t.currentAnimateTimings=null,{type:T.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===z?s.push(o):t.errors.push(Dt(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let u of o.values())if(u.toString().indexOf(Ue)>=0){r=!0;break}}}),{type:T.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,u)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(u),d=!0;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(Rt(u,h.startTime,h.endTime,r,i)),d=!1),r=h.startTime),d&&c.set(u,{startTime:r,endTime:i}),t.options&&ss(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:T.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ot()),s;let i=1,r=0,a=[],o=!1,u=!1,c=0,h=e.steps.map(P=>{let N=this._makeStyleAst(P,t),k=N.offset!=null?N.offset:Ws(N.styles),M=0;return k!=null&&(r++,M=N.offset=k),u=u||M<0||M>1,o=o||M<c,c=M,a.push(M),N});u&&t.errors.push(Lt()),o&&t.errors.push(Ft());let d=e.steps.length,S=0;r>0&&r<d?t.errors.push(It()):r==0&&(S=i/(d-1));let _=d-1,p=t.currentTime,y=t.currentAnimateTimings,b=y.duration;return h.forEach((P,N)=>{let k=S>0?N==_?1:S*N:a[N],M=k*b;t.currentTime=p+y.delay+M,y.duration=M,this._validateStyleAst(P,t),P.offset=k,s.styles.push(P)}),s}visitReference(e,t){return{type:T.Reference,animation:O(this,te(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:T.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return{type:T.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Gs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,te(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:T.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(zt());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ce(e.timings,t.errors,!0);return{type:T.Stagger,animation:O(this,te(e.animation),t),timings:s,options:null}}};function Gs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==_s);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,ue).replace(/@\w+/g,t=>ue+"-"+t.slice(1)).replace(/:animating/g,Te),[n,e]}function js(n){return n?pe({},n):null}var nt=class{constructor(e){l(this,"errors");l(this,"queryCount",0);l(this,"depCount",0);l(this,"currentTransition",null);l(this,"currentQuery",null);l(this,"currentQuerySelector",null);l(this,"currentAnimateTimings",null);l(this,"currentTime",0);l(this,"collectedStyles",new Map);l(this,"options",null);l(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function Ws(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ce(n,e).duration;return Ye(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ye(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ce(t,e);return Ye(i.duration,i.delay,i.easing)}function x(n){return n?(n=pe({},n),n.params&&(n.params=js(n.params))):n={},n}function Ye(n,e,t){return{duration:n,delay:e,easing:t}}function gt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ne=class{constructor(){l(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()}},Ys=1,Xs=":enter",Js=new RegExp(Xs,"g"),Zs=":leave",xs=new RegExp(Zs,"g");function yt(n,e,t,s,i,r=new Map,a=new Map,o,u,c=[]){return new rt().buildKeyframes(n,e,t,s,i,r,a,o,u,c)}var rt=class{buildKeyframes(e,t,s,i,r,a,o,u,c,h=[]){c=c||new ne;let d=new at(e,t,c,i,r,h,[]);d.options=u;let S=u.delay?$(u.delay):0;d.currentTimeline.delayNextStep(S),d.currentTimeline.setStyles([a],null,d.errors,u),O(this,s,d);let _=d.timelines.filter(p=>p.containsAnimation());if(_.length&&o.size){let p;for(let y=_.length-1;y>=0;y--){let b=_[y];if(b.element===t){p=b;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([o],null,d.errors,u)}return _.length?_.map(p=>p.buildKeyframes()):[gt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let 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){var i;for(let r of e){let a=r==null?void 0:r.delay;if(a){let o=typeof a=="number"?a:$(se(a,(i=r==null?void 0:r.params)!=null?i:{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(u=>{let c=t.appendInstructionToTimeline(u,a,o);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==T.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ce);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?se(s,t.params,t.errors):s;return ce(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==T.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(u=>{let c=u.offset||0;o.forwardTime(c*r),o.setStyles(u.styles,u.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===T.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ce);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let u=null;o.forEach((c,h)=>{t.currentQueryIndex=h;let d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(u=d.currentTimeline),O(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let S=d.currentTimeline.currentTime;a=Math.max(a,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),u=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":u=o-u;break;case"full":u=s.currentStaggerTime;break}let h=t.currentTimeline;u&&h.delayNextStep(u);let d=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-d+(i.startTime-s.currentTimeline.startTime)}},Ce={},at=class n{constructor(e,t,s,i,r,a,o,u){l(this,"_driver");l(this,"element");
1l(this,"subInstructions");l(this,"_enterClassName");l(this,"_leaveClassName");l(this,"errors");l(this,"timelines");l(this,"parentContext",null);l(this,"currentTimeline");l(this,"currentAnimateTimings",null);l(this,"previousNode",Ce);l(this,"subContextCount",0);l(this,"options",{});l(this,"currentQueryIndex",0);l(this,"currentQueryTotal",0);l(this,"currentStaggerTime",0);this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=u||new ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=se(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ce,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t!=null?t:e.duration,delay:this.currentTimeline.currentTime+(s!=null?s:0)+e.delay,easing:""},r=new ot(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Js,"."+this._enterClassName),e=e.replace(xs,"."+this._leaveClassName);let u=s!=1,c=this._driver.query(this.element,e,u);s!==0&&(c=s<0?c.slice(c.length+s,c.length):c.slice(0,s)),o.push(...c)}return!r&&o.length==0&&a.push(Kt(t)),o}},ke=class n{constructor(e,t,s,i){l(this,"_driver");l(this,"element");
1l(this,"startTime");l(this,"_elementTimelineStylesLookup");l(this,"duration",0);l(this,"easing",null);l(this,"_previousKeyframe",new Map);l(this,"_currentKeyframe",new Map);l(this,"_keyframes",new Map);l(this,"_styleSummary",new Map);l(this,"_localTimelineStyles",new Map);l(this,"_globalTimelineStyles");l(this,"_pendingStyles",new Map);l(this,"_backFill",new Map);l(this,"_currentEmptyStepKeyframe",null);this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(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+=Ys,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[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||z),this._currentKeyframe.set(t,z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){var o;t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[u,c]of a){let h=se(c,r,s);this._pendingStyles.set(u,h),this._localTimelineStyles.has(u)||this._backFill.set(u,(o=this._globalTimelineStyles.get(u))!=null?o:z),this._updateStyle(u,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(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(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}
vendor: 6,118 bytes, line 1
1mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,u)=>{let c=new Map([...this._backFill,...o]);c.forEach((h,d)=>{h===ae?e.add(d):h===z&&t.add(d)}),s||c.set("offset",u/this.duration),i.push(c)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],u=new Map(o);o.set("offset",0),u.set("offset",1),i=[o,u]}return gt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},ot=class extends ke{constructor(t,s,i,r,a,o,u=!1){super(t,s,o.delay);l(this,"keyframes");l(this,"preStyleProps");l(this,"postStyleProps");l(this,"_stretchStartingKeyframe");l(this,"timings");this.keyframes=i,this.preStyleProps=r,this.postStyleProps=a,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:s,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&s){let a=[],o=i+s,u=s/o,c=new Map(t[0]);c.set("offset",0),a.push(c);let h=new Map(t[0]);h.set("offset",os(u)),a.push(h);let d=t.length-1;for(let S=1;S<=d;S++){let _=new Map(t[S]),p=_.get("offset"),y=s+p*i;_.set("offset",os(y/o)),a.push(_)}i=o,s=0,r="",t=a}return gt(this.element,t,this.preStyleProps,this.postStyleProps,i,s,r,!0)}};function os(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s!=null||(s=e.keys());for(let r of s)t.set(r,z)}else for(let[r,a]of i)t.set(r,a)}),t}function ls(n,e,t,s,i,r,a,o,u,c,h,d,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:u,preStyleProps:c,postStyleProps:h,totalTime:d,errors:S}}var Xe={},De=class{constructor(e,t,s){l(this,"_triggerName");l(this,"ast");l(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e==null?void 0:e.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,u,c,h){var Q;let d=[],S=this.ast.options&&this.ast.options.params||Xe,_=o&&o.params||Xe,p=this.buildStyles(s,_,d),y=u&&u.params||Xe,b=this.buildStyles(i,y,d),P=new Set,N=new Map,k=new Map,M=i==="void",ee={params:Ss(y,S),delay:(Q=this.ast.options)==null?void 0:Q.delay},B=h?[]:yt(e,t,this.ast.animation,r,a,p,b,ee,c,d),D=0;return B.forEach(U=>{D=Math.max(U.duration+U.delay,D)}),d.length?ls(t,this._triggerName,s,i,M,p,b,[],[],N,k,D,d):(B.forEach(U=>{let G=U.element,_t=R(N,G,new Set);U.preStyleProps.forEach(Y=>_t.add(Y));let re=R(k,G,new Set);U.postStyleProps.forEach(Y=>re.add(Y)),G!==t&&P.add(G)}),ls(t,this._triggerName,s,i,M,p,b,B,[...P.values()],N,k,D))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Ss(n,e){let t=pe({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var lt=class{constructor(e,t,s){l(this,"styles");l(this,"defaultParams");l(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Ss(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=se(a,i,t));let u=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,u,a,t),s.set(o,a)})}),s}};function si(n,e,t){return new ut(n,e,t)}var ut=class{constructor(e,t,s){l(this,"name");l(this,"ast");l(this,"_normalizer");l(this,"transitionFactories",[]);l(this,"fallbackTransition");l(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new lt(i.style,r,s))}),us(this.states,"true","1"),us(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new De(e,i,this.states))}),this.fallbackTransition=ii(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>!0],i={type:T.Sequence,steps:[],options:null},r={type:T.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new De(n,r,e)}function us(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new ne,ct=class{constructor(e,t,s){l(this,"bodyNode");l(this,"_driver");l(this,"_normalizer");l(this,"_animations",new Map);l(this,"_playersById",new Map);l(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],i=[],r=pt(this._driver,t,s,i);if(s.length)throw Ut(s);this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Be(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=yt(this._driver,t,r,Ee,oe,new Map,new Map,s,ni,i),a.forEach(h=>{let d=R(o,h.element,new Map);h.postStyleProps.forEach(S=>d.set(S,null))})):(i.push(Gt()),a=[]),i.length)throw jt(i);o.forEach((h,d)=>{h.forEach((S,_)=>{h.set(_,this._driver.computeStyle(d,_,z))})});let u=a.map(h=>{let d=o.get(h.element);return this._buildPlayer(h,new Map,d)}),c=j(u);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Wt(e);return t}listen(e,t,s,i){let r=_e(t,"","","");return ye(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;
1case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},cs="ng-animate-queued",ri=".ng-animate-queued",Je="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",ui=[],Es={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ci={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},q="__ng_removed",de=class{constructor(e,t=""){l(this,"namespaceId");l(this,"value");l(this,"options");this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=di(i),s){let r=e,{value:a}=r,o=vt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},he="void",Ze=new de(he),ht=class{constructor(e,t,s){l(this,"id");l(this,"hostElement");l(this,"_engine");l(this,"players",[]);l(this,"_triggers",new Map);l(this,"_queue",[]);l(this,"_elementListeners",new Map);l(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"
vendor: 4,350 bytes, line 1
1+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ht(s,t);if(s==null||s.length==0)throw Yt(t);if(!fi(s))throw Xt(s,t);let r=R(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,le),I(e,le+"-"+t),o.set(t,Ze)),()=>{this._engine.afterFlush(()=>{let u=r.indexOf(a);u>=0&&r.splice(u,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Jt(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new fe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,le),I(e,le+"-"+t),this._engine.statesByElement.set(e,o=new Map));let u=o.get(t),c=new de(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),o.set(t,c),u||(u=Ze),!(c.value===he)&&u.value===c.value){if(!gi(u.params,c.params)){let y=[],b=r.matchStyles(u.value,u.params,y),P=r.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{H(e,b),K(e,P)})}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let _=r.matchTransition(u.value,c.value,e,c.params),p=!1;if(!_){if(!i)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:u,toState:c,player:a,isFallbackTransition:p}),p||(I(e,cs),a.onStart(()=>{ie(e,cs)})),a.onDone(()=>{let y=this.players.indexOf(a);y>=0&&this.players.splice(y,1);let b=this._engine.playersByElement.get(e);if(b){let P=b.indexOf(a);P>=0&&b.splice(P,1)}}),this.players.push(a),S.push(a),a}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(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ue,!0);s.forEach(i=>{if(i[q])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((u,c)=>{if(a.set(c,u.value),this._triggers.has(c)){let h=this.trigger(e,c,he,i);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&j(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let u=this._triggers.get(a).fallbackTransition,c=s.get(a)||Ze,h=new de(he),d=new fe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:u,fromState:c,toState:h,player:d,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[q];(!r||r===Es)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let u=_e(r,s.triggerName,s.fromState.value,s.toState.value);u._data=e,ye(s.player,o.phase,u,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}
1destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},dt=class{constructor(e,t,s){l(this,"bodyNode");l(this,"driver");l(this,"_normalizer");l(this,"players",[]);l(this,"newHostElements",new Map);l(this,"playersByElement",new Map);l(this,"playersByQueriedElement",new Map);l(this,"statesByElement",new Map);l(this,"disabledNodes",new Set);l(this,"totalAnimations",0);l(this,"totalQueuedPlayers",0);l(this,"_namespaceLookup",{});l(this,"_namespaceList",[]);l(this,"_flushFns",[]);l(this,"_whenQuietFns",[]);l(this,"namespacesByHostElement",new Map);l(this,"collectedEnterElements",[]);l(this,"collectedLeaveElements",[]);l(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=s}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new ht(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){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let u=i.get(o);if(u){let c=s.indexOf(u);s.splice(c+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.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 i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(Pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!Pe(t))return;let r=t[q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Je)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ie(e,Je))}removeNode(e,t,s){if(Pe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[q]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return Pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ue,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Te,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){var s;let t=e[q];if(t&&t.setForRemoval){if(e[q]=Es,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(s=e.classList)!=null&&s.contains(Je)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ai,!0).forEac
vendor: 3,446 bytes, line 1
1h(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let i=this.collectedEnterElements[s];I(i,oi)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e)}finally{for(let i=0;i<s.length;i++)s[i]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let i=this.collectedLeaveElements[s];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Zt(e)}_flushAnimations(e,t){let s=new ne,i=[],r=new Map,a=[],o=new Map,u=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(f=>{h.add(f);let m=this.driver.query(f,ri,!0);for(let g=0;g<m.length;g++)h.add(m[g])});let d=this.bodyNode,S=Array.from(this.statesByElement.keys()),_=fs(S,this.collectedEnterElements),p=new Map,y=0;_.forEach((f,m)=>{let g=Ee+y++;p.set(m,g),f.forEach(E=>I(E,g))});let b=[],P=new Set,N=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let m=this.collectedLeaveElements[f],g=m[q];g&&g.setForRemoval&&(b.push(m),P.add(m),g.hasAnimation?this.driver.query(m,li,!0).forEach(E=>P.add(E)):N.add(m))}let k=new Map,M=fs(S,Array.from(P));M.forEach((f,m)=>{let g=oe+y++;k.set(m,g),f.forEach(E=>I(E,g))}),e.push(()=>{_.forEach((f,m)=>{let g=p.get(m);f.forEach(E=>ie(E,g))}),M.forEach((f,m)=>{let g=k.get(m);f.forEach(E=>ie(E,g))}),b.forEach(f=>{this.processLeaveNode(f)})});let ee=[],B=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(g=>{let E=g.player,A=g.element;if(ee.push(E),this.collectedEnterElements.length){let C=A[q];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(g.triggerName)){let X=C.previousTriggersValues.get(g.triggerName),F=this.statesByElement.get(g.element);if(F&&F.has(g.triggerName)){let me=F.get(g.triggerName);me.value=X,F.set(g.triggerName,me)}}E.destroy();return}}let V=!d||!this.driver.containsElement(d,A),L=k.get(A),W=p.get(A),w=this._buildInstruction(g,s,W,L,V);if(w.errors&&w.errors.length){B.push(w);return}if(V){E.onStart(()=>H(A,w.fromStyles)),E.onDestroy(()=>K(A,w.toStyles)),i.push(E);return}if(g.isFallbackTransition){E.onStart(()=>H(A,w.fromStyles)),E.onDestroy(()=>K(A,w.toStyles)),i.push(E);return}let Tt=[];w.timelines.forEach(C=>{C.stretchStartingKeyframe=!0,this.disabledNodes.has(C.element)||Tt.push(C)}),w.timelines=Tt,s.append(A,w.timelines);let bs={instruction:w,player:E,element:A};a.push(bs),w.queriedElements.forEach(C=>R(o,C,[]).push(E)),w.preStyleProps.forEach((C,X)=>{if(C.size){let F=u.get(X);F||u.set(X,F=new Set),C.forEach((me,Fe)=>F.add(Fe))}}),w.postStyleProps.forEach((C,X)=>{let F=c.get(X);F||c.set(X,F=new Set),C.forEach((me,Fe)=>F.add(Fe))})});if(B.length){let f=[];B.forEach(m=>{f.push(xt(m.triggerName,m.errors))}),ee.forEach(m=>m.destroy()),this.reportError(f)}let D=new Map,Q=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(Q.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,D))}
1),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(E=>{R(D,m,[]).push(E),E.destroy()})});let U=b.filter(f=>ms(f,u,c)),G=new Map;ds(G,this.driver,N,c,z).forEach(f=>{ms(f,u,c)&&U.push(f)});let re=new Map;_.forEach((f,m)=>{ds(re,this.driver,new Set(f),u,ae)}),U.forEach(f=>{var E,A;let m=G.get(f),g=re.get(f);G.set(f,new Map([...(E=m==null?void 0:m.entries())!=null?E:[],...(A=g==null?void 0:g.entries())!=null?A:[]]))});let Y=[],St=[],Et={};a.forEach(f=>{let{element:m,player:g,instruction:E}=f;if(s.has(m)){if(h.has(m)){g.onDestroy(()=>K(m,E.toStyles)),g.disabled=!0,g.overrideTotalTime(E.totalTime),i.push(g);return}let A=Et;if(Q.size>1){let L=m,W=[];for(;L=L.parentNode;){let w=Q.get(L);if(w){A=w;break}W.push(L)}W.forEach(w=>Q.set(w,A))}let V=this._buildAnimation(g.namespaceId,E,D,r,re,G);if(g.setRealPlayer(V),A===Et)Y.push(g);else{let L=this.playersByElement.get(A);L&&L.length&&(g.parentPlayer=j(L)),i.push(g)}}else H(m,E.fromStyles),g.onDestroy(()=>K(m,E.toStyles)),St.push(g),h.has(m)&&i.push(g)}),St.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let g=j(m);f.setRealPlayer(g)}}
vendor: 2,277 bytes, line 1
1),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f<b.length;f++){let m=b[f],g=m[q];if(ie(m,oe),g&&g.hasAnimation)continue;let E=[];if(o.size){let V=o.get(m);V&&V.length&&E.push(...V);let L=this.driver.query(m,Te,!0);for(let W=0;W<L.length;W++){let w=o.get(L[W]);w&&w.length&&E.push(...w)}}let A=E.filter(V=>!V.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return b.length=0,Y.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Y}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let u=!r||r==he;o.forEach(c=>{c.queued||!u&&c.triggerName!=i||a.push(c)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let u of t.timelines){let c=u.element,h=c!==r,d=R(s,c,[]);this._getPreviousPlayers(c,h,a,o,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),d.push(_)})}H(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,u=t.element,c=[],h=new Set,d=new Set,S=t.timelines.map(p=>{let y=p.element;h.add(y);let b=y[q];if(b&&b.removedBeforeQueried)return new J(p.duration,p.delay);let P=y!==u,N=pi((s.get(y)||ui).map(D=>D.getRealPlayer())).filter(D=>{let Q=D;return Q.element?Q.element===y:!1}),k=r.get(y),M=a.get(y),ee=Be(this._normalizer,p.keyframes,k,M),B=this._buildPlayer(p,ee,N);if(p.subTimeline&&i&&d.add(y),P){let D=new fe(e,o,y);D.setRealPlayer(B),c.push(D)}return B});c.forEach(p=>{R(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>hi(this.playersByQueriedElement,p.element,p))}),h.forEach(p=>I(p,Ge));let _=j(S);return _.onDestroy(()=>{h.forEach(p=>ie(p,Ge)),K(u,t.toStyles)}),d.forEach(p=>{R(i,p,[]).push(_)}),_}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new J(e.duration,e.delay)}},fe=class{constructor(e,t,s){l(this,"namespaceId");l(this,"triggerName");l(this,"element");
1l(this,"_player",new J);l(this,"_containsRealPlayer",!1);l(this,"_queuedCallbacks",new Map);l(this,"destroyed",!1);l(this,"parentPlayer",null);l(this,"markedForDestroy",!1);l(this,"disabled",!1);l(this,"queued",!0);l(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>ye(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){R(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?!1: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){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function di(n){return n!=null?n:null}function Pe(n){return n&&n.nodeType===1}function fi(n){return n=="start"||n=="done"}function hs(n,e){let t=n.style.display;return n.style.display=e!=null?e:"none",t}function ds(n,e,t,s,i){let r=[];t.forEach(u=>r.push(hs(u)));let a=[];s.forEach((u,c)=>{let h=new Map;u.forEach(d=>{let S=e.computeStyle(c,d,i);h.set(d,S),(!S||S.length==0)&&(c[q]=ci,a.push(c))}),n.set(c,h)});let o=0;return t.forEach(u=>hs(u,r[o++])),a}function fs(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let u=r.get(o);if(u)return u;let c=o.parentNode;return t.has(c)?u=c:i.has(c)?u=s:u=a(c),r.set(o,u),u}return e.forEach(o=>{let u=a(o);u!==s&&t.get(u).push(o)}),t}function I(n,e){var t;(t=n.classList)==null||t.add(e)}function ie(n,e){var t;(t=n.classList)==null||t.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return Ts(n,e),e}function Ts(n,e){for(let t=0;t<n.length;t++){let s=n[t];s instanceof ge?Ts(s.players,e):e.push(s)}}function gi(n,e){let t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function ms(n,e,t){let s=t.get(n);if(!s)return!1;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),!0}var Re=class{constructor(e,t,s){l(this,"_driver");l(this,"_normalizer");l(this,"_transitionEngine");l(this,"_timelineEngine");l(this,"_triggerCache",{});l(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=s,this._transitionEngine=new dt(e.body,t,s),this._timelineEngine=new ct(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let u=[],c=[],h=pt(this._driver,r,u,c);if(u.length)throw $t(i,u);o=si(i,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Qe(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Qe(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}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)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=xe(e[0]),e.length>1&&(s=xe(e[e.length-1]))):e instanceof Map&&(t=xe(e)),t||s?new _i(n,t,s):null}var _i=(()=>{let e=class e{constructor(s,i,r){l(this,"_element");
1l(this,"_startStyles");l(this,"_endStyles");l(this,"_state",0);l(this,"_initialStyles");this._element=s,this._startStyles=i,this._endStyles=r;let a=e.initialStylesByElement.get(s);a||e.initialStylesByElement.set(s,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}};l(e,"initialStylesByElement",new WeakMap);let n=e;return n})();function xe(n){let e=null;return n.forEach((t,s)=>{Si(s)&&(e=e||new Map,e.set(s,t))}),e}function Si(n){return n==="display"||n==="position"}var Oe=class{constructor(e,t,s,i){l(this,"element");
1l(this,"keyframes");l(this,"options");l(this,"_specialStyles");l(this,"_onDoneFns",[]);l(this,"_onStartFns",[]);l(this,"_onDestroyFns",[]);l(this,"_duration");l(this,"_delay");l(this,"_initialized",!1);l(this,"_finished",!1);l(this,"_started",!1);l(this,"_destroyed",!1);l(this,"_finalKeyframe");l(this,"_originalOnDoneFns",[]);l(this,"_originalOnStartFns",[]);l(this,"domPlayer");l(this,"time",0);l(this,"parentPlayer",null);l(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let 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){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),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){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){var e;return+((e=this.domPlayer.currentTime)!=null?e:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:be(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ft=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ve(e,t)}getParentElement(e){return Se(e)}query(e,t,s){return $e(e,t,s)}computeStyle(e,t,s){return be(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",u={duration:s,delay:i,fill:o};r&&(u.easing=r);let c=new Map,h=a.filter(_=>_ instanceof Oe);is(s,i)&&h.forEach(_=>{_.currentSnapshot.forEach((p,y)=>c.set(y,p))});let d=ts(t).map(_=>new Map(_));d=ns(e,d,c);let S=yi(e,d);return new Oe(e,d,u,S)}};function Mi(n,e){return n==="noop"?new Re(e,new ys,new tt):new Re(e,new ft,new st)}var ps=class{constructor(e,t){l(this,"_driver");l(this,"_animationAst");this._driver=e;let s=[],r=pt(e,t,s,[]);if(s.length)throw Qt(s);this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?je(t):t,o=Array.isArray(s)?je(s):s,u=[];r=r||new ne;let c=yt(this._driver,e,this._animationAst,Ee,oe,a,o,i,r,u);if(u.length)throw Vt(u);return c}},Ne="@",vs="@.disabled",Le=class{constructor(e,t,s,i){l(this,"namespaceId");l(this,"delegate");l(this,"engine");l(this,"_onDestroy");l(this,"\u0275type",0);this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){var t,s;(s=(t=this.delegate).destroyNode)==null||s.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}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)}
1insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}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,i){this.delegate.setAttribute(e,t,s,i)}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,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Ne&&t==vs?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},mt=class extends Le{constructor(t,s,i,r,a){super(s,i,r,a);l(this,"factory");this.factory=t,this.namespaceId=s}setProperty(t,s,i){s.charAt(0)==Ne?s.charAt(1)=="."&&s==vs?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,s.slice(1),i):this.delegate.setProperty(t,s,i)}listen(t,s,i,r){if(s.charAt(0)==Ne){let a=Ei(t),o=s.slice(1),u="";return o.charAt(0)!=Ne&&([o,u]=Ti(o)),this.engine.listen(this.namespaceId,a,o,u,c=>{let h=c._data||-1;this.factory.scheduleListenerCallback(h,i,c)})}return this.delegate.listen(t,s,i,r)}};function Ei(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ti(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var gs=class{constructor(e,t,s){l(this,"delegate");l(this,"engine");l(this,"_zone");l(this,"_currentId",0);l(this,"_microtaskId",1);l(this,"_animationCallbacksBuffer",[]);l(this,"_rendererCache",new Map);l(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r==null||r.removeChild(null,i)}}createRenderer(e,t){var c;let s="",i=this.delegate.createRenderer(e,t);if(!e||!((c=t==null?void 0:t.data)!=null&&c.animation)){let h=this._rendererCache,d=h.get(i);if(!d){let S=()=>h.delete(i);d=new Le(s,i,this.engine,S),h.set(i,d)}return d}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new mt(this,a,i,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){this._zone.run(()=>t(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,s;this.engine.flush(),(s=(t=this.delegate).componentReplaced)==null||s.call(t,e)}};export{Se as a,es as b,Os as c,Ve as d,$e as e,Ee as f,oe as g,ts as h,qs as i,is as j,ys as k,He as l,et as m,tt as n,st as o,fe as p,Re as q,Oe as r,ft as s,Mi as t,ps as u,Le as v,mt as w,gs as x};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.