@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
1 lines • 421 kB
JavaScript
import{a as Lt,c as T3,d as ea}from"./chunk-3S4WNZ2T.js";import{a as Ft,d as v4,e as mi}from"./chunk-QTW62OKJ.js";import{a as Ea,b as ka,c as Na}from"./chunk-O67RFAWU.js";import{B as Aa,C as fn,a as fa,b as fi,c as ie,d as ua,e as w3,f as ha,g as _a,h as ga,i as Ca,j as Sa,k as pn,l as va,m as ya,n as xa,o as Ue,p as ba,q as Ta,r as Ma,s as wa,t as za,u as Di,v as dn,w as Ae,y as Pa}from"./chunk-AY2GOSJ2.js";import{a as yt}from"./chunk-ZFKCGL6X.js";import{a as z3}from"./chunk-O4AQBQBF.js";import{a as $4,b as nn,c as on,d as W4}from"./chunk-CLSVDV7J.js";import{b as J4}from"./chunk-JXZCNFW7.js";import{a as T1}from"./chunk-LB7B5RIV.js";import{a as pi}from"./chunk-MTRNPGS4.js";import{a as K1,b as Q1,c as X1,d as an}from"./chunk-MK7WZG3F.js";import{a as Ve,b as Y4,c as K4,f as Y1,h as Oe,i as Z4}from"./chunk-BW5PQAKK.js";import{a as Re,b as st,c as q1,d as j1}from"./chunk-MWFRZBJD.js";import{a as ta,b as rn,c as ca,d as pa,e as da}from"./chunk-4TEHM3AS.js";import{a as M3,g as ma}from"./chunk-ZTXJC5IC.js";import{a as Q4,b as X4}from"./chunk-SRLMFJ7C.js";import{a as co,b as mo,c as po,d as g3,e as b3,f as A1}from"./chunk-FJFNDK67.js";import{a as uo,b as I4,c as U4,f as he,g as tn}from"./chunk-4KESSWTF.js";import{$a as k4,B as Nt,Ba as v3,C as fo,D as ho,Db as rt,E as _o,Ea as at,Eb as V4,F as go,Fa as b4,Fb as O4,G as _4,Ga as T4,Gb as W1,H as g4,Ha as Q2,Hb as le,I as Y2,Ia as M4,Ib as V,J as C4,Ja as Me,Ka as w4,Kb as B4,L as Ni,M as Dt,Mb as H4,O as nt,Ob as G4,P as K2,Pa as z4,Q as Ct,Qa as It,R as S4,S as y4,Sa as E4,Sb as q4,T as C3,Ta as li,Ua as y3,Ub as j4,V as Li,Xa as o1,Za as P4,_a as A4,a as h3,ab as N4,b as oo,c as ao,cb as a1,d as ro,db as X2,eb as $1,f as Ai,fb as xe,gb as H,h as ce,hb as L4,i as E1,ib as ci,kb as q,l as so,lb as r1,m as _3,mb as Rt,nb as St,ob as D4,p as kt,pa as ai,q as C2,qa as ri,qb as F4,r as ki,ra as si,rb as P1,sa as ye,sb as Z2,ta as ot,tb as vt,u as S2,ua as f1,ub as J2,v as Ee,vb as en,w as ei,wa as S3,wb as A,x as lo,xa as x4,yb as R4}from"./chunk-WL65GYD5.js";import{a as sn,b as ia,c as u1,d as di,e as ln,f as cn,g as na,h as Be,i as oa,j as aa,m as mn,n as ra,o as sa,p as la}from"./chunk-ZZ3LHYOY.js";import{a as $0,b as f2,c as Zt,d as re,e as Jt,f as W0,g as q0}from"./chunk-XE5YHU5J.js";import{$ as e2,$b as $e,$c as u2,$e as V2,Ab as ft,Ac as L0,Ae as Ro,Af as s4,B as ve,Bd as to,Be as Vo,C as o3,Ca as s3,Cb as h,Cd as io,Dc as Xt,Dd as no,De as F2,Df as ni,E as I1,Eb as c,Ec as c2,Ed as J,Ef as l4,Fa as Ei,Fb as m3,Fd as I,Fe as I2,Ff as c4,G as Zi,Ga as Q,Gb as p3,Gc as t1,Gd as y1,Ge as Oo,Gf as G1,Ha as o2,Hb as w0,Hc as it,Hd as Co,He as Bo,Hf as $2,I as g0,Ib as ae,Ie as Uo,If as gt,Ja as a2,Jb as ne,Jc as m2,Jd as So,Jf as m4,Ka as w1,Kb as oe,Kc as D0,Kd as vo,Ke as Ho,Kf as p4,L as ke,Lb as ge,Lc as F0,Ld as v2,M as C0,Ma as r,Mb as K,Mc as p2,Md as y2,Me as Go,Mf as d4,Nb as B,Nc as I0,Nd as yo,Ne as $o,O as Ji,Ob as E,Oc as qe,Od as xo,Oe as Wo,Of as W2,Pa as x0,Pb as p,Pc as R0,Pd as bo,Pe as qo,Pf as q2,Qa as O1,Qb as x,Qc as V0,Ra as Ge,Rb as L,Rc as O0,Rd as To,Re as jo,Sb as Ze,Sc as B0,Sd as Mo,Ta as b0,Tb as me,Td as wo,Te as R2,U as S0,Ub as pe,Uc as U0,Ue as x1,Uf as b1,Vb as de,Vc as H0,Vd as x2,Ve as Yo,Vf as oi,Wb as d3,Wc as G0,We as je,Wf as f4,Xa as w,Xb as R,Xc as d2,Xd as b2,Xe as ht,Xf as u4,Ya as B1,Yb as tt,Yc as j0,Yd as T2,Z as wi,Za as r2,Zb as At,Zc as N,Zd as zo,Ze as Ko,Zf as j2,_a as l3,_b as z1,_c as Pi,_d as Eo,_e as _t,_f as h4,aa as ue,ab as U,ac as g1,ad as i1,ae as ut,af as Qo,ba as zi,bb as se,bc as z0,be as Po,bf as n1,c as u0,ca as Te,cb as jt,cd as u3,ce as Ao,cf as Xo,da as R1,dc as M,de as M2,dg as x3,ec as te,ed as _e,ee as w2,f as n3,fc as z,fd as h2,ff as O2,g as h0,ga as t2,gc as p1,ge as z2,gf as Zo,ha as v,hc as d1,hd as Y0,he as ko,ib as c3,ie as E2,if as Jo,ja as a3,jb as _,jc as E0,jd as Ce,je as P2,jf as B2,kb as g,kd as _2,ke as A2,kf as H1,lb as Xe,lc as Ie,ld as K0,le as No,lf as e4,ma as C,mc as Kt,me as Lo,mf as U2,na as S,nb as D,nd as Q0,ne as k2,oa as v0,ob as F,oc as U1,od as X0,oe as N2,of as ti,p as Mi,pa as i2,pb as d,pd as C1,pf as t4,q as qt,qb as s,qc as Qt,qd as S1,qe as L2,rb as l,rc as P0,rd as v1,rf as i4,sb as u,sd as Z0,sf as n4,t as _0,ta as n2,tb as T0,td as J0,tf as H2,ub as M0,uc as A0,uf as o4,v as Qe,va as r3,vb as Yt,vc as s2,vd as eo,vf as G2,w as Xi,wa as y0,wc as k0,wd as Se,we as Do,wf as a4,xc as f3,xd as g2,xe as Fo,xf as ii,ya as V1,yb as Le,yc as l2,yd as X,ye as D2,yf as r4,zb as b,zc as N0,ze as Io}from"./chunk-RSNLYAN6.js";import{a as e1,b as dt,c as f0,j as F1}from"./chunk-RTRJ3KFH.js";var La=(()=>{let n=class n{constructor(){this.locale=v(X),this.l10nLoader=v(to),this.bsLocaleService=v(lo);let t=v(j0);t.fixedWidth=!0,ro("bs5"),h3("fr",ao),h3("en",oo),this.l10nLoader.init().then(()=>{Nt.default.locale(this.locale.language),this.bsLocaleService.use(this.locale.language)})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=w({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(o,a){o&1&&u(0,"router-outlet")},dependencies:[Zt],encapsulation:2});let i=n;return i})();function Da(i){return new ue(3e3,!1)}function A5(){return new ue(3100,!1)}function k5(){return new ue(3101,!1)}function N5(i){return new ue(3001,!1)}function L5(i){return new ue(3003,!1)}function D5(i){return new ue(3004,!1)}function Ia(i,n){return new ue(3005,!1)}function Ra(){return new ue(3006,!1)}function Va(){return new ue(3007,!1)}function Oa(i,n){return new ue(3008,!1)}function Ba(i){return new ue(3002,!1)}function Ua(i,n,e,t,o){return new ue(3010,!1)}function Ha(){return new ue(3011,!1)}function Ga(){return new ue(3012,!1)}function $a(){return new ue(3200,!1)}function Wa(){return new ue(3202,!1)}function qa(){return new ue(3013,!1)}function ja(i){return new ue(3014,!1)}function Ya(i){return new ue(3015,!1)}function Ka(i){return new ue(3016,!1)}function Qa(i,n){return new ue(3404,!1)}function F5(i){return new ue(3502,!1)}function Xa(i){return new ue(3503,!1)}function Za(){return new ue(3300,!1)}function Ja(i){return new ue(3504,!1)}function er(i){return new ue(3301,!1)}function tr(i,n){return new ue(3302,!1)}function ir(i){return new ue(3303,!1)}function nr(i,n){return new ue(3400,!1)}function or(i){return new ue(3401,!1)}function ar(i){return new ue(3402,!1)}function rr(i,n){return new ue(3505,!1)}function lt(i){switch(i.length){case 0:return new kt;case 1:return i[0];default:return new C2(i)}}function k3(i,n,e=new Map,t=new Map){let o=[],a=[],m=-1,f=null;if(n.forEach(y=>{let T=y.get("offset"),k=T==m,P=k&&f||new Map;y.forEach((j,$)=>{let W=$,ee=j;if($!=="offset")switch(W=i.normalizePropertyName(W,o),ee){case ki:ee=e.get($);break;case E1:ee=t.get($);break;default:ee=i.normalizeStyleValue($,W,ee,o);break}P.set(W,ee)}),k||a.push(P),f=P,m=T}),o.length)throw F5(o);return a}function un(i,n,e,t){switch(n){case"start":i.onStart(()=>t(e&&E3(e,"start",i)));break;case"done":i.onDone(()=>t(e&&E3(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&E3(e,"destroy",i)));break}}function E3(i,n,e){let t=e.totalTime,o=!!e.disabled,a=hn(i.element,i.triggerName,i.fromState,i.toState,n||i.phaseName,t??i.totalTime,o),m=i._data;return m!=null&&(a._data=m),a}function hn(i,n,e,t,o="",a=0,m){return{element:i,triggerName:n,fromState:e,toState:t,phaseName:o,totalTime:a,disabled:!!m}}function s1(i,n,e){let t=i.get(n);return t||i.set(n,t=e),t}function N3(i){let n=i.indexOf(":"),e=i.substring(1,n),t=i.slice(n+1);return[e,t]}var I5=typeof document>"u"?null:document.documentElement;function _n(i){let n=i.parentNode||i.host||null;return n===I5?null:n}function R5(i){return i.substring(1,6)=="ebkit"}var Vt=null,Fa=!1;function sr(i){Vt||(Vt=V5()||{},Fa=Vt.style?"WebkitAppearance"in Vt.style:!1);let n=!0;return Vt.style&&!R5(i)&&(n=i in Vt.style,!n&&Fa&&(n="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Vt.style)),n}function V5(){return typeof document<"u"?document.body:null}function L3(i,n){for(;n;){if(n===i)return!0;n=_n(n)}return!1}function D3(i,n,e){if(e)return Array.from(i.querySelectorAll(n));let t=i.querySelector(n);return t?[t]:[]}var O5=1e3,F3="{{",B5="}}",I3="ng-enter",gn="ng-leave",Fi="ng-trigger",Ii=".ng-trigger",R3="ng-animating",Cn=".ng-animating";function Z1(i){if(typeof i=="number")return i;let n=i.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:P3(parseFloat(n[1]),n[2])}function P3(i,n){switch(n){case"s":return i*O5;default:return i}}function Ri(i,n,e){return i.hasOwnProperty("duration")?i:H5(i,n,e)}var U5=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function H5(i,n,e){let t,o=0,a="";if(typeof i=="string"){let m=i.match(U5);if(m===null)return n.push(Da(i)),{duration:0,delay:0,easing:""};t=P3(parseFloat(m[1]),m[2]);let f=m[3];f!=null&&(o=P3(parseFloat(f),m[4]));let y=m[5];y&&(a=y)}else t=i;if(!e){let m=!1,f=n.length;t<0&&(n.push(A5()),m=!0),o<0&&(n.push(k5()),m=!0),m&&n.splice(f,0,Da(i))}return{duration:t,delay:o,easing:a}}function lr(i){return i.length?i[0]instanceof Map?i:i.map(n=>new Map(Object.entries(n))):[]}function k1(i,n,e){n.forEach((t,o)=>{let a=Sn(o);e&&!e.has(o)&&e.set(o,i.style[a]),i.style[a]=t})}function xt(i,n){n.forEach((e,t)=>{let o=Sn(t);i.style[o]=""})}function ui(i){return Array.isArray(i)?i.length==1?i[0]:so(i):i}function cr(i,n,e){let t=n.params||{},o=V3(i);o.length&&o.forEach(a=>{t.hasOwnProperty(a)||e.push(N5(a))})}var A3=new RegExp(`${F3}\\s*(.+?)\\s*${B5}`,"g");function V3(i){let n=[];if(typeof i=="string"){let e;for(;e=A3.exec(i);)n.push(e[1]);A3.lastIndex=0}return n}function hi(i,n,e){let t=`${i}`,o=t.replace(A3,(a,m)=>{let f=n[m];return f==null&&(e.push(L5(m)),f=""),f.toString()});return o==t?i:o}var G5=/-+([a-z0-9])/g;function Sn(i){return i.replace(G5,(...n)=>n[1].toUpperCase())}function mr(i,n){return i===0||n===0}function pr(i,n,e){if(e.size&&n.length){let t=n[0],o=[];if(e.forEach((a,m)=>{t.has(m)||o.push(m),t.set(m,a)}),o.length)for(let a=1;a<n.length;a++){let m=n[a];o.forEach(f=>m.set(f,vn(i,f)))}}return n}function l1(i,n,e){switch(n.type){case ce.Trigger:return i.visitTrigger(n,e);case ce.State:return i.visitState(n,e);case ce.Transition:return i.visitTransition(n,e);case ce.Sequence:return i.visitSequence(n,e);case ce.Group:return i.visitGroup(n,e);case ce.Animate:return i.visitAnimate(n,e);case ce.Keyframes:return i.visitKeyframes(n,e);case ce.Style:return i.visitStyle(n,e);case ce.Reference:return i.visitReference(n,e);case ce.AnimateChild:return i.visitAnimateChild(n,e);case ce.AnimateRef:return i.visitAnimateRef(n,e);case ce.Query:return i.visitQuery(n,e);case ce.Stagger:return i.visitStagger(n,e);default:throw D5(n.type)}}function vn(i,n){return window.getComputedStyle(i)[n]}var t0=(()=>{class i{validateStyleProperty(e){return sr(e)}containsElement(e,t){return L3(e,t)}getParentElement(e){return _n(e)}query(e,t,o){return D3(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,a,m,f=[],y){return new kt(o,a)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Te({token:i,factory:i.\u0275fac})}return i})(),Bt=class{static NOOP=new t0},Ut=class{};var $5=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"]),Mn=class extends Ut{normalizePropertyName(n,e){return Sn(n)}normalizeStyleValue(n,e,t,o){let a="",m=t.toString().trim();if($5.has(e)&&t!==0&&t!=="0")if(typeof t=="number")a="px";else{let f=t.match(/^[+-]?[\d\.]+([a-z]*)$/);f&&f[1].length==0&&o.push(Ia(n,t))}return m+a}};var wn="*";function W5(i,n){let e=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>q5(t,e,n)):e.push(i),e}function q5(i,n,e){if(i[0]==":"){let y=j5(i,e);if(typeof y=="function"){n.push(y);return}i=y}let t=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return e.push(Ya(i)),n;let o=t[1],a=t[2],m=t[3];n.push(dr(o,m));let f=o==wn&&m==wn;a[0]=="<"&&!f&&n.push(dr(m,o))}function j5(i,n){switch(i){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 n.push(Ka(i)),"* => *"}}var yn=new Set(["true","1"]),xn=new Set(["false","0"]);function dr(i,n){let e=yn.has(i)||xn.has(i),t=yn.has(n)||xn.has(n);return(o,a)=>{let m=i==wn||i==o,f=n==wn||n==a;return!m&&e&&typeof o=="boolean"&&(m=o?yn.has(i):xn.has(i)),!f&&t&&typeof a=="boolean"&&(f=a?yn.has(n):xn.has(n)),m&&f}}var xr=":self",Y5=new RegExp(`s*${xr}s*,?`,"g");function br(i,n,e,t){return new $3(i).build(n,e,t)}var fr="",$3=class{_driver;constructor(n){this._driver=n}build(n,e,t){let o=new W3(e);return this._resetContextStyleTimingState(o),l1(this,ui(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector=fr,n.collectedStyles=new Map,n.collectedStyles.set(fr,new Map),n.currentTime=0}visitTrigger(n,e){let t=e.queryCount=0,o=e.depCount=0,a=[],m=[];return n.name.charAt(0)=="@"&&e.errors.push(Ra()),n.definitions.forEach(f=>{if(this._resetContextStyleTimingState(e),f.type==ce.State){let y=f,T=y.name;T.toString().split(/\s*,\s*/).forEach(k=>{y.name=k,a.push(this.visitState(y,e))}),y.name=T}else if(f.type==ce.Transition){let y=this.visitTransition(f,e);t+=y.queryCount,o+=y.depCount,m.push(y)}else e.errors.push(Va())}),{type:ce.Trigger,name:n.name,states:a,transitions:m,queryCount:t,depCount:o,options:null}}visitState(n,e){let t=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(t.containsDynamicStyles){let a=new Set,m=o||{};t.styles.forEach(f=>{f instanceof Map&&f.forEach(y=>{V3(y).forEach(T=>{m.hasOwnProperty(T)||a.add(T)})})}),a.size&&e.errors.push(Oa(n.name,[...a.values()]))}return{type:ce.State,name:n.name,style:t,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let t=l1(this,ui(n.animation),e),o=W5(n.expr,e.errors);return{type:ce.Transition,matchers:o,animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ot(n.options)}}visitSequence(n,e){return{type:ce.Sequence,steps:n.steps.map(t=>l1(this,t,e)),options:Ot(n.options)}}visitGroup(n,e){let t=e.currentTime,o=0,a=n.steps.map(m=>{e.currentTime=t;let f=l1(this,m,e);return o=Math.max(o,e.currentTime),f});return e.currentTime=o,{type:ce.Group,steps:a,options:Ot(n.options)}}visitAnimate(n,e){let t=Z5(n.timings,e.errors);e.currentAnimateTimings=t;let o,a=n.styles?n.styles:_3({});if(a.type==ce.Keyframes)o=this.visitKeyframes(a,e);else{let m=n.styles,f=!1;if(!m){f=!0;let T={};t.easing&&(T.easing=t.easing),m=_3(T)}e.currentTime+=t.duration+t.delay;let y=this.visitStyle(m,e);y.isEmptyStep=f,o=y}return e.currentAnimateTimings=null,{type:ce.Animate,timings:t,style:o,options:null}}visitStyle(n,e){let t=this._makeStyleAst(n,e);return this._validateStyleAst(t,e),t}_makeStyleAst(n,e){let t=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let f of o)typeof f=="string"?f===E1?t.push(f):e.errors.push(Ba(f)):t.push(new Map(Object.entries(f)));let a=!1,m=null;return t.forEach(f=>{if(f instanceof Map&&(f.has("easing")&&(m=f.get("easing"),f.delete("easing")),!a)){for(let y of f.values())if(y.toString().indexOf(F3)>=0){a=!0;break}}}),{type:ce.Style,styles:t,easing:m,offset:n.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(n,e){let t=e.currentAnimateTimings,o=e.currentTime,a=e.currentTime;t&&a>0&&(a-=t.duration+t.delay),n.styles.forEach(m=>{typeof m!="string"&&m.forEach((f,y)=>{let T=e.collectedStyles.get(e.currentQuerySelector),k=T.get(y),P=!0;k&&(a!=o&&a>=k.startTime&&o<=k.endTime&&(e.errors.push(Ua(y,k.startTime,k.endTime,a,o)),P=!1),a=k.startTime),P&&T.set(y,{startTime:a,endTime:o}),e.options&&cr(f,e.options,e.errors)})})}visitKeyframes(n,e){let t={type:ce.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Ha()),t;let o=1,a=0,m=[],f=!1,y=!1,T=0,k=n.steps.map(Ne=>{let De=this._makeStyleAst(Ne,e),Ye=De.offset!=null?De.offset:X5(De.styles),He=0;return Ye!=null&&(a++,He=De.offset=Ye),y=y||He<0||He>1,f=f||He<T,T=He,m.push(He),De});y&&e.errors.push(Ga()),f&&e.errors.push($a());let P=n.steps.length,j=0;a>0&&a<P?e.errors.push(Wa()):a==0&&(j=o/(P-1));let $=P-1,W=e.currentTime,ee=e.currentAnimateTimings,ze=ee.duration;return k.forEach((Ne,De)=>{let Ye=j>0?De==$?1:j*De:m[De],He=Ye*ze;e.currentTime=W+ee.delay+He,ee.duration=He,this._validateStyleAst(Ne,e),Ne.offset=Ye,t.styles.push(Ne)}),t}visitReference(n,e){return{type:ce.Reference,animation:l1(this,ui(n.animation),e),options:Ot(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:ce.AnimateChild,options:Ot(n.options)}}visitAnimateRef(n,e){return{type:ce.AnimateRef,animation:this.visitReference(n.animation,e),options:Ot(n.options)}}visitQuery(n,e){let t=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;let[a,m]=K5(n.selector);e.currentQuerySelector=t.length?t+" "+a:a,s1(e.collectedStyles,e.currentQuerySelector,new Map);let f=l1(this,ui(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:ce.Query,selector:a,limit:o.limit||0,optional:!!o.optional,includeSelf:m,animation:f,originalSelector:n.selector,options:Ot(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(qa());let t=n.timings==="full"?{duration:0,delay:0,easing:"full"}:Ri(n.timings,e.errors,!0);return{type:ce.Stagger,animation:l1(this,ui(n.animation),e),timings:t,options:null}}};function K5(i){let n=!!i.split(/\s*,\s*/).find(e=>e==xr);return n&&(i=i.replace(Y5,"")),i=i.replace(/@\*/g,Ii).replace(/@\w+/g,e=>Ii+"-"+e.slice(1)).replace(/:animating/g,Cn),[i,n]}function Q5(i){return i?e1({},i):null}var W3=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function X5(i){if(typeof i=="string")return null;let n=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){let t=e;n=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let e=i;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function Z5(i,n){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let a=Ri(i,n).duration;return O3(a,0,"")}let e=i;if(e.split(/\s+/).some(a=>a.charAt(0)=="{"&&a.charAt(1)=="{")){let a=O3(0,0,"");return a.dynamic=!0,a.strValue=e,a}let o=Ri(e,n);return O3(o.duration,o.delay,o.easing)}function Ot(i){return i?(i=e1({},i),i.params&&(i.params=Q5(i.params))):i={},i}function O3(i,n,e){return{duration:i,delay:n,easing:e}}function i0(i,n,e,t,o,a,m=null,f=!1){return{type:1,element:i,keyframes:n,preStyleProps:e,postStyleProps:t,duration:o,delay:a,totalTime:o+a,easing:m,subTimeline:f}}var Oi=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let t=this._map.get(n);t||this._map.set(n,t=[]),t.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},J5=1,el=":enter",tl=new RegExp(el,"g"),il=":leave",nl=new RegExp(il,"g");function Tr(i,n,e,t,o,a=new Map,m=new Map,f,y,T=[]){return new q3().buildKeyframes(i,n,e,t,o,a,m,f,y,T)}var q3=class{buildKeyframes(n,e,t,o,a,m,f,y,T,k=[]){T=T||new Oi;let P=new j3(n,e,T,o,a,k,[]);P.options=y;let j=y.delay?Z1(y.delay):0;P.currentTimeline.delayNextStep(j),P.currentTimeline.setStyles([m],null,P.errors,y),l1(this,t,P);let $=P.timelines.filter(W=>W.containsAnimation());if($.length&&f.size){let W;for(let ee=$.length-1;ee>=0;ee--){let ze=$[ee];if(ze.element===e){W=ze;break}}W&&!W.allowOnlyTimelineStyles()&&W.setStyles([f],null,P.errors,y)}return $.length?$.map(W=>W.buildKeyframes()):[i0(e,[],[],[],0,j,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let t=e.subInstructions.get(e.element);if(t){let o=e.createSubContext(n.options),a=e.currentTimeline.currentTime,m=this._visitSubInstructions(t,o,o.options);a!=m&&e.transformIntoNewTimeline(m)}e.previousNode=n}visitAnimateRef(n,e){let t=e.createSubContext(n.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,t),this.visitReference(n.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,t){for(let o of n){let a=o?.delay;if(a){let m=typeof a=="number"?a:Z1(hi(a,o?.params??{},e.errors));t.delayNextStep(m)}}}_visitSubInstructions(n,e,t){let a=e.currentTimeline.currentTime,m=t.duration!=null?Z1(t.duration):null,f=t.delay!=null?Z1(t.delay):null;return m!==0&&n.forEach(y=>{let T=e.appendInstructionToTimeline(y,m,f);a=Math.max(a,T.duration+T.delay)}),a}visitReference(n,e){e.updateOptions(n.options,!0),l1(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let t=e.subContextCount,o=e,a=n.options;if(a&&(a.params||a.delay)&&(o=e.createSubContext(a),o.transformIntoNewTimeline(),a.delay!=null)){o.previousNode.type==ce.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=zn);let m=Z1(a.delay);o.delayNextStep(m)}n.steps.length&&(n.steps.forEach(m=>l1(this,m,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let t=[],o=e.currentTimeline.currentTime,a=n.options&&n.options.delay?Z1(n.options.delay):0;n.steps.forEach(m=>{let f=e.createSubContext(n.options);a&&f.delayNextStep(a),l1(this,m,f),o=Math.max(o,f.currentTimeline.currentTime),t.push(f.currentTimeline)}),t.forEach(m=>e.currentTimeline.mergeTimelineCollectedStyles(m)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let t=n.strValue,o=e.params?hi(t,e.params,e.errors):t;return Ri(o,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let t=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());let a=n.style;a.type==ce.Keyframes?this.visitKeyframes(a,e):(e.incrementTime(t.duration),this.visitStyle(a,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();let a=o&&o.easing||n.easing;n.isEmptyStep?t.applyEmptyStep(a):t.setStyles(n.styles,a,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let t=e.currentAnimateTimings,o=e.currentTimeline.duration,a=t.duration,f=e.createSubContext().currentTimeline;f.easing=t.easing,n.styles.forEach(y=>{let T=y.offset||0;f.forwardTime(T*a),f.setStyles(y.styles,y.easing,e.errors,e.options),f.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(f),e.transformIntoNewTimeline(o+a),e.previousNode=n}visitQuery(n,e){let t=e.currentTimeline.currentTime,o=n.options||{},a=o.delay?Z1(o.delay):0;a&&(e.previousNode.type===ce.Style||t==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=zn);let m=t,f=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=f.length;let y=null;f.forEach((T,k)=>{e.currentQueryIndex=k;let P=e.createSubContext(n.options,T);a&&P.delayNextStep(a),T===e.element&&(y=P.currentTimeline),l1(this,n.animation,P),P.currentTimeline.applyStylesToKeyframe();let j=P.currentTimeline.currentTime;m=Math.max(m,j)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(m),y&&(e.currentTimeline.mergeTimelineCollectedStyles(y),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let t=e.parentContext,o=e.currentTimeline,a=n.timings,m=Math.abs(a.duration),f=m*(e.currentQueryTotal-1),y=m*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":y=f-y;break;case"full":y=t.currentStaggerTime;break}let k=e.currentTimeline;y&&k.delayNextStep(y);let P=k.currentTime;l1(this,n.animation,e),e.previousNode=n,t.currentStaggerTime=o.currentTime-P+(o.startTime-t.currentTimeline.startTime)}},zn={},j3=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=zn;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,t,o,a,m,f,y){this._driver=n,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=a,this.errors=m,this.timelines=f,this.currentTimeline=y||new En(this._driver,e,0),f.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let t=n,o=this.options;t.duration!=null&&(o.duration=Z1(t.duration)),t.delay!=null&&(o.delay=Z1(t.delay));let a=t.params;if(a){let m=o.params;m||(m=this.options.params={}),Object.keys(a).forEach(f=>{(!e||!m.hasOwnProperty(f))&&(m[f]=hi(a[f],m,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let t=n.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return n}createSubContext(n=null,e,t){let o=e||this.element,a=new i(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(n),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(n){return this.previousNode=zn,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,t){let o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(t??0)+n.delay,easing:""},a=new Y3(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(a),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,t,o,a,m){let f=[];if(o&&f.push(this.element),n.length>0){n=n.replace(tl,"."+this._enterClassName),n=n.replace(nl,"."+this._leaveClassName);let y=t!=1,T=this._driver.query(this.element,n,y);t!==0&&(T=t<0?T.slice(T.length+t,T.length):T.slice(0,t)),f.push(...T)}return!a&&f.length==0&&m.push(ja(e)),f}},En=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,t,o){this._driver=n,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new i(this._driver,n,e||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+=J5,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||E1),this._currentKeyframe.set(e,E1);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,t,o){e&&this._previousKeyframe.set("easing",e);let a=o&&o.params||{},m=ol(n,this._globalTimelineStyles);for(let[f,y]of m){let T=hi(y,a,t);this._pendingStyles.set(f,T),this._localTimelineStyles.has(f)||this._backFill.set(f,this._globalTimelineStyles.get(f)??E1),this._updateStyle(f,T)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,t)=>{let o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,t=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((f,y)=>{let T=new Map([...this._backFill,...f]);T.forEach((k,P)=>{k===ki?n.add(P):k===E1&&e.add(P)}),t||T.set("offset",y/this.duration),o.push(T)});let a=[...n.values()],m=[...e.values()];if(t){let f=o[0],y=new Map(f);f.set("offset",0),y.set("offset",1),o=[f,y]}return i0(this.element,o,a,m,this.duration,this.startTime,this.easing,!1)}},Y3=class extends En{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,t,o,a,m,f=!1){super(n,e,m.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=a,this._stretchStartingKeyframe=f,this.timings={duration:m.duration,delay:m.delay,easing:m.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let a=[],m=t+e,f=e/m,y=new Map(n[0]);y.set("offset",0),a.push(y);let T=new Map(n[0]);T.set("offset",ur(f)),a.push(T);let k=n.length-1;for(let P=1;P<=k;P++){let j=new Map(n[P]),$=j.get("offset"),W=e+$*t;j.set("offset",ur(W/m)),a.push(j)}t=m,e=0,o="",n=a}return i0(this.element,n,this.preStyleProps,this.postStyleProps,t,e,o,!0)}};function ur(i,n=3){let e=Math.pow(10,n-1);return Math.round(i*e)/e}function ol(i,n){let e=new Map,t;return i.forEach(o=>{if(o==="*"){t??=n.keys();for(let a of t)e.set(a,E1)}else for(let[a,m]of o)e.set(a,m)}),e}function hr(i,n,e,t,o,a,m,f,y,T,k,P,j){return{type:0,element:i,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:a,toState:t,toStyles:m,timelines:f,queriedElements:y,preStyleProps:T,postStyleProps:k,totalTime:P,errors:j}}var B3={},Pn=class{_triggerName;ast;_stateStyles;constructor(n,e,t){this._triggerName=n,this.ast=e,this._stateStyles=t}match(n,e,t,o){return al(this.ast.matchers,n,e,t,o)}buildStyles(n,e,t){let o=this._stateStyles.get("*");return n!==void 0&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,t):new Map}build(n,e,t,o,a,m,f,y,T,k){let P=[],j=this.ast.options&&this.ast.options.params||B3,$=f&&f.params||B3,W=this.buildStyles(t,$,P),ee=y&&y.params||B3,ze=this.buildStyles(o,ee,P),Ne=new Set,De=new Map,Ye=new Map,He=o==="void",$t={params:Mr(ee,j),delay:this.ast.options?.delay},L1=k?[]:Tr(n,e,this.ast.animation,a,m,W,ze,$t,T,P),Ke=0;return L1.forEach(Je=>{Ke=Math.max(Je.duration+Je.delay,Ke)}),P.length?hr(e,this._triggerName,t,o,He,W,ze,[],[],De,Ye,Ke,P):(L1.forEach(Je=>{let zt=Je.element,Wt=s1(De,zt,new Set);Je.preStyleProps.forEach(Et=>Wt.add(Et));let c0=s1(Ye,zt,new Set);Je.postStyleProps.forEach(Et=>c0.add(Et)),zt!==e&&Ne.add(zt)}),hr(e,this._triggerName,t,o,He,W,ze,L1,[...Ne.values()],De,Ye,Ke))}};function al(i,n,e,t,o){return i.some(a=>a(n,e,t,o))}function Mr(i,n){let e=e1({},n);return Object.entries(i).forEach(([t,o])=>{o!=null&&(e[t]=o)}),e}var K3=class{styles;defaultParams;normalizer;constructor(n,e,t){this.styles=n,this.defaultParams=e,this.normalizer=t}buildStyles(n,e){let t=new Map,o=Mr(n,this.defaultParams);return this.styles.styles.forEach(a=>{typeof a!="string"&&a.forEach((m,f)=>{m&&(m=hi(m,o,e));let y=this.normalizer.normalizePropertyName(f,e);m=this.normalizer.normalizeStyleValue(f,y,m,e),t.set(f,m)})}),t}};function rl(i,n,e){return new Q3(i,n,e)}var Q3=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,t){this.name=n,this.ast=e,this._normalizer=t,e.states.forEach(o=>{let a=o.options&&o.options.params||{};this.states.set(o.name,new K3(o.style,a,t))}),_r(this.states,"true","1"),_r(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Pn(n,o,this.states))}),this.fallbackTransition=sl(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,t,o){return this.transitionFactories.find(m=>m.match(n,e,t,o))||null}matchStyles(n,e,t){return this.fallbackTransition.buildStyles(n,e,t)}};function sl(i,n,e){let t=[(m,f)=>!0],o={type:ce.Sequence,steps:[],options:null},a={type:ce.Transition,animation:o,matchers:t,options:null,queryCount:0,depCount:0};return new Pn(i,a,n)}function _r(i,n,e){i.has(n)?i.has(e)||i.set(e,i.get(n)):i.has(e)&&i.set(n,i.get(e))}var ll=new Oi,X3=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,t){this.bodyNode=n,this._driver=e,this._normalizer=t}register(n,e){let t=[],o=[],a=br(this._driver,e,t,o);if(t.length)throw Xa(t);this._animations.set(n,a)}_buildPlayer(n,e,t){let o=n.element,a=k3(this._normalizer,n.keyframes,e,t);return this._driver.animate(o,a,n.duration,n.delay,n.easing,[],!0)}create(n,e,t={}){let o=[],a=this._animations.get(n),m,f=new Map;if(a?(m=Tr(this._driver,e,a,I3,gn,new Map,new Map,t,ll,o),m.forEach(k=>{let P=s1(f,k.element,new Map);k.postStyleProps.forEach(j=>P.set(j,null))})):(o.push(Za()),m=[]),o.length)throw Ja(o);f.forEach((k,P)=>{k.forEach((j,$)=>{k.set($,this._driver.computeStyle(P,$,E1))})});let y=m.map(k=>{let P=f.get(k.element);return this._buildPlayer(k,new Map,P)}),T=lt(y);return this._playersById.set(n,T),T.onDestroy(()=>this.destroy(n)),this.players.push(T),T}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw er(n);return e}listen(n,e,t,o){let a=hn(e,"","","");return un(this._getPlayer(n),t,a,o),()=>{}}command(n,e,t,o){if(t=="register"){this.register(n,o[0]);return}if(t=="create"){let m=o[0]||{};this.create(n,e,m);return}let a=this._getPlayer(n);switch(t){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n);break}}},gr="ng-animate-queued",cl=".ng-animate-queued",U3="ng-animate-disabled",ml=".ng-animate-disabled",pl="ng-star-inserted",dl=".ng-star-inserted",fl=[],wr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ul={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},N1="__ng_removed",Bi=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let t=n&&n.hasOwnProperty("value"),o=t?n.value:n;if(this.value=_l(o),t){let a=n,{value:m}=a,f=f0(a,["value"]);this.options=f}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let t=this.options.params;Object.keys(e).forEach(o=>{t[o]==null&&(t[o]=e[o])})}}},Vi="void",H3=new Bi(Vi),Z3=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,t){this.id=n,this.hostElement=e,this._engine=t,this._hostClassName="ng-tns-"+n,M1(e,this._hostClassName)}listen(n,e,t,o){if(!this._triggers.has(e))throw tr(t,e);if(t==null||t.length==0)throw ir(e);if(!gl(t))throw nr(t,e);let a=s1(this._elementListeners,n,[]),m={name:e,phase:t,callback:o};a.push(m);let f=s1(this._engine.statesByElement,n,new Map);return f.has(e)||(M1(n,Fi),M1(n,Fi+"-"+e),f.set(e,H3)),()=>{this._engine.afterFlush(()=>{let y=a.indexOf(m);y>=0&&a.splice(y,1),this._triggers.has(e)||f.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw or(n);return e}trigger(n,e,t,o=!0){let a=this._getTrigger(e),m=new Ui(this.id,e,n),f=this._engine.statesByElement.get(n);f||(M1(n,Fi),M1(n,Fi+"-"+e),this._engine.statesByElement.set(n,f=new Map));let y=f.get(e),T=new Bi(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&y&&T.absorbOptions(y.options),f.set(e,T),y||(y=H3),!(T.value===Vi)&&y.value===T.value){if(!vl(y.params,T.params)){let ee=[],ze=a.matchStyles(y.value,y.params,ee),Ne=a.matchStyles(T.value,T.params,ee);ee.length?this._engine.reportError(ee):this._engine.afterFlush(()=>{xt(n,ze),k1(n,Ne)})}return}let j=s1(this._engine.playersByElement,n,[]);j.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let $=a.matchTransition(y.value,T.value,n,T.params),W=!1;if(!$){if(!o)return;$=a.fallbackTransition,W=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:$,fromState:y,toState:T,player:m,isFallbackTransition:W}),W||(M1(n,gr),m.onStart(()=>{_i(n,gr)})),m.onDone(()=>{let ee=this.players.indexOf(m);ee>=0&&this.players.splice(ee,1);let ze=this._engine.playersByElement.get(n);if(ze){let Ne=ze.indexOf(m);Ne>=0&&ze.splice(Ne,1)}}),this.players.push(m),j.push(m),m}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let t=this._engine.driver.query(n,Ii,!0);t.forEach(o=>{if(o[N1])return;let a=this._engine.fetchNamespacesByElement(o);a.size?a.forEach(m=>m.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,t,o){let a=this._engine.statesByElement.get(n),m=new Map;if(a){let f=[];if(a.forEach((y,T)=>{if(m.set(T,y.value),this._triggers.has(T)){let k=this.trigger(n,T,Vi,o);k&&f.push(k)}}),f.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,m),t&<(f).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),t=this._engine.statesByElement.get(n);if(e&&t){let o=new Set;e.forEach(a=>{let m=a.name;if(o.has(m))return;o.add(m);let y=this._triggers.get(m).fallbackTransition,T=t.get(m)||H3,k=new Bi(Vi),P=new Ui(this.id,m,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:m,transition:y,fromState:T,toState:k,player:P,isFallbackTransition:!0})})}}removeNode(n,e){let t=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(t.totalAnimations){let a=t.players.length?t.playersByQueriedElement.get(n):[];if(a&&a.length)o=!0;else{let m=n;for(;m=m.parentNode;)if(t.statesByElement.get(m)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)t.markElementAsRemoved(this.id,n,!1,e);else{let a=n[N1];(!a||a===wr)&&(t.afterFlush(()=>this.clearElementCache(n)),t.destroyInnerAnimations(n),t._onRemovalComplete(n,e))}}insertNode(n,e){M1(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(t=>{let o=t.player;if(o.destroyed)return;let a=t.element,m=this._elementListeners.get(a);m&&m.forEach(f=>{if(f.name==t.triggerName){let y=hn(a,t.triggerName,t.fromState.value,t.toState.value);y._data=n,un(t.player,f.phase,y,f.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{let a=t.transition.ast.depCount,m=o.transition.ast.depCount;return a==0||m==0?a-m:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},J3=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,t){this.bodyNode=n,this.driver=e,this._normalizer=t}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&n.push(t)})}),n}createNamespace(n,e){let t=new Z3(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[n]=t}_balanceNamespaceList(n,e){let t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let m=!1,f=this.driver.getParentElement(e);for(;f;){let y=o.get(f);if(y){let T=t.indexOf(y);t.splice(T+1,0,n),m=!0;break}f=this.driver.getParentElement(f)}m||t.unshift(n)}else t.push(n);return o.set(e,n),n}register(n,e){let t=this._namespaceLookup[n];return t||(t=this.createNamespace(n,e)),t}registerTrigger(n,e,t){let o=this._namespaceLookup[n];o&&o.register(e,t)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(n);this.namespacesByHostElement.delete(t.hostElement);let o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1),t.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,t=this.statesByElement.get(n);if(t){for(let o of t.values())if(o.namespaceId){let a=this._fetchNamespace(o.namespaceId);a&&e.add(a)}}return e}trigger(n,e,t,o){if(bn(e)){let a=this._fetchNamespace(n);if(a)return a.trigger(e,t,o),!0}return!1}insertNode(n,e,t,o){if(!bn(e))return;let a=e[N1];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;let m=this.collectedLeaveElements.indexOf(e);m>=0&&this.collectedLeaveElements.splice(m,1)}if(n){let m=this._fetchNamespace(n);m&&m.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),M1(n,U3)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),_i(n,U3))}removeNode(n,e,t){if(bn(e)){let o=n?this._fetchNamespace(n):null;o?o.removeNode(e,t):this.markElementAsRemoved(n,e,!1,t);let a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,t)}else this._onRemovalComplete(e,t)}markElementAsRemoved(n,e,t,o,a){this.collectedLeaveElements.push(e),e[N1]={namespaceId:n,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:a}}listen(n,e,t,o,a){return bn(e)?this._fetchNamespace(n).listen(e,t,o,a):()=>{}}_buildInstruction(n,e,t,o,a){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,t,o,n.fromState.options,n.toState.options,e,a)}destroyInnerAnimations(n){let e=this.driver.query(n,Ii,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,Cn,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return lt(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[N1];if(e&&e.setForRemoval){if(n[N1]=wr,e.namespaceId){this.destroyInnerAnimations(n);let t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(U3)&&this.markElementAsDisabled(n,!1),this.driver.query(n,ml,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let o=this.collectedEnterElements[t];M1(o,pl)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{e=this._flushAnimations(t,n)}finally{for(let o=0;o<t.length;o++)t[o]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let o=this.collectedLeaveElements[t];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],e.length?lt(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(n){throw ar(n)}_flushAnimations(n,e){let t=new Oi,o=[],a=new Map,m=[],f=new Map,y=new Map,T=new Map,k=new Set;this.disabledNodes.forEach(G=>{k.add(G);let Y=this.driver.query(G,cl,!0);for(let Z=0;Z<Y.length;Z++)k.add(Y[Z])});let P=this.bodyNode,j=Array.from(this.statesByElement.keys()),$=vr(j,this.collectedEnterElements),W=new Map,ee=0;$.forEach((G,Y)=>{let Z=I3+ee++;W.set(Y,Z),G.forEach(fe=>M1(fe,Z))});let ze=[],Ne=new Set,De=new Set;for(let G=0;G<this.collectedLeaveElements.length;G++){let Y=this.collectedLeaveElements[G],Z=Y[N1];Z&&Z.setForRemoval&&(ze.push(Y),Ne.add(Y),Z.hasAnimation?this.driver.query(Y,dl,!0).forEach(fe=>Ne.add(fe)):De.add(Y))}let Ye=new Map,He=vr(j,Array.from(Ne));He.forEach((G,Y)=>{let Z=gn+ee++;Ye.set(Y,Z),G.forEach(fe=>M1(fe,Z))}),n.push(()=>{$.forEach((G,Y)=>{let Z=W.get(Y);G.forEach(fe=>_i(fe,Z))}),He.forEach((G,Y)=>{let Z=Ye.get(Y);G.forEach(fe=>_i(fe,Z))}),ze.forEach(G=>{this.processLeaveNode(G)})});let $t=[],L1=[];for(let G=this._namespaceList.length-1;G>=0;G--)this._namespaceList[G].drainQueuedTransitions(e).forEach(Z=>{let fe=Z.player,Fe=Z.element;if($t.push(fe),this.collectedEnterElements.length){let We=Fe[N1];if(We&&We.setForMove){if(We.previousTriggersValues&&We.previousTriggersValues.has(Z.triggerName)){let Pt=We.previousTriggersValues.get(Z.triggerName),_1=this.statesByElement.get(Z.element);if(_1&&_1.has(Z.triggerName)){let Qi=_1.get(Z.triggerName);Qi.value=Pt,_1.set(Z.triggerName,Qi)}}fe.destroy();return}}let D1=!P||!this.driver.containsElement(P,Fe),m1=Ye.get(Fe),pt=W.get(Fe),Pe=this._buildInstruction(Z,t,pt,m1,D1);if(Pe.errors&&Pe.errors.length){L1.push(Pe);return}if(D1){fe.onStart(()=>xt(Fe,Pe.fromStyles)),fe.onDestroy(()=>k1(Fe,Pe.toStyles)),o.push(fe);return}if(Z.isFallbackTransition){fe.onStart(()=>xt(Fe,Pe.fromStyles)),fe.onDestroy(()=>k1(Fe,Pe.toStyles)),o.push(fe);return}let d0=[];Pe.timelines.forEach(We=>{We.stretchStartingKeyframe=!0,this.disabledNodes.has(We.element)||d0.push(We)}),Pe.timelines=d0,t.append(Fe,Pe.timelines);let P5={instruction:Pe,player:fe,element:Fe};m.push(P5),Pe.queriedElements.forEach(We=>s1(f,We,[]).push(fe)),Pe.preStyleProps.forEach((We,Pt)=>{if(We.size){let _1=y.get(Pt);_1||y.set(Pt,_1=new Set),We.forEach((Qi,i3)=>_1.add(i3))}}),Pe.postStyleProps.forEach((We,Pt)=>{let _1=T.get(Pt);_1||T.set(Pt,_1=new Set),We.forEach((Qi,i3)=>_1.add(i3))})});if(L1.length){let G=[];L1.forEach(Y=>{G.push(rr(Y.triggerName,Y.errors))}),$t.forEach(Y=>Y.destroy()),this.reportError(G)}let Ke=new Map,Je=new Map;m.forEach(G=>{let Y=G.element;t.has(Y)&&(Je.set(Y,Y),this._beforeAnimationBuild(G.player.namespaceId,G.instruction,Ke))}),o.forEach(G=>{let Y=G.element;this._getPreviousPlayers(Y,!1,G.namespaceId,G.triggerName,null).forEach(fe=>{s1(Ke,Y,[]).push(fe),fe.destroy()})});let zt=ze.filter(G=>yr(G,y,T)),Wt=new Map;Sr(Wt,this.driver,De,T,E1).forEach(G=>{yr(G,y,T)&&zt.push(G)});let Et=new Map;$.forEach((G,Y)=>{Sr(Et,this.driver,new Set(G),y,ki)}),zt.forEach(G=>{let Y=Wt.get(G),Z=Et.get(G);Wt.set(G,new Map([...Y?.entries()??[],...Z?.entries()??[]]))});let t3=[],m0=[],p0={};m.forEach(G=>{let{element:Y,player:Z,instruction:fe}=G;if(t.has(Y)){if(k.has(Y)){Z.onDestroy(()=>k1(Y,fe.toStyles)),Z.disabled=!0,Z.overrideTotalTime(fe.totalTime),o.push(Z);return}let Fe=p0;if(Je.size>1){let m1=Y,pt=[];for(;m1=m1.parentNode;){let Pe=Je.get(m1);if(Pe){Fe=Pe;break}pt.push(m1)}pt.forEach(Pe=>Je.set(Pe,Fe))}let D1=this._buildAnimation(Z.namespaceId,fe,Ke,a,Et,Wt);if(Z.setRealPlayer(D1),Fe===p0)t3.push(Z);else{let m1=this.playersByElement.get(Fe);m1&&m1.length&&(Z.parentPlayer=lt(m1)),o.push(Z)}}else xt(Y,fe.fromStyles),Z.onDestroy(()=>k1(Y,fe.toStyles)),m0.push(Z),k.has(Y)&&o.push(Z)}),m0.forEach(G=>{let Y=a.get(G.element);if(Y&&Y.length){let Z=lt(Y);G.setRealPlayer(Z)}}),o.forEach(G=>{G.parentPlayer?G.syncPlayerEvents(G.parentPlayer):G.destroy()});for(let G=0;G<ze.length;G++){let Y=ze[G],Z=Y[N1];if(_i(Y,gn),Z&&Z.hasAnimation)continue;let fe=[];if(f.size){let D1=f.get(Y);D1&&D1.length&&fe.push(...D1);let m1=this.driver.query(Y,Cn,!0);for(let pt=0;pt<m1.length;pt++){let Pe=f.get(m1[pt]);Pe&&Pe.length&&fe.push(...Pe)}}let Fe=fe.filter(D1=>!D1.destroyed);Fe.length?Cl(this,Y,Fe):this.processLeaveNode