vendor: 4,788 bytes, line 1
1import{a as cs}from"./chunk-2R7VAL5U.js";import{a as Ts}from"./chunk-JSTVQHBZ.js";import{a as ps}from"./chunk-JNXMN3LW.js";import{a as Jt}from"./chunk-EMLP2JWY.js";import{a as mt}from"./chunk-EWOR7EF7.js";import{a as b,b as W,e as rn,f as Ht,h as pe,i as nt,j as ke}from"./chunk-PT2JM3JA.js";import{b as gs}from"./chunk-WLJFCSH3.js";import{a as us}from"./chunk-EY7P5QQV.js";import{d as bs}from"./chunk-HDA6BECH.js";import{a as _s}from"./chunk-A4CI25QH.js";import{c as Ss,d as vs}from"./chunk-FT5O6646.js";import{a as Tn,b as En,c as bn,d as An,e as wn,f as Pn,g as Mn,h as Nn}from"./chunk-C54ICKXQ.js";import"./chunk-Y7MOP2YA.js";import{a as Es}from"./chunk-7VNZ3YPM.js";import{a as ss,b as rs,c as os,d as as,e as ls}from"./chunk-K56YSYIN.js";import{a as As}from"./chunk-F3DMSDUB.js";import{a as ht}from"./chunk-EPRELWEK.js";import"./chunk-26DAXRCE.js";import{a as fs}from"./chunk-4GFH7WKH.js";import{a as ys}from"./chunk-RCG25HWZ.js";import"./chunk-ZBMZSUJZ.js";import"./chunk-BW3CMVIZ.js";import"./chunk-DXZTG5ME.js";import"./chunk-XQ662V5Z.js";import{a as ms,b as hs}from"./chunk-IN2MU5AF.js";import"./chunk-TRKN2INW.js";import{b as sn}from"./chunk-OCZ2PHCT.js";import"./chunk-SGSFUOCE.js";import"./chunk-4R3EBHTJ.js";import"./chunk-5IQWYWAE.js";import"./chunk-JUUZ5E2H.js";import{a as vn}from"./chunk-H2FMOZZG.js";import"./chunk-GJ4MDIQY.js";import"./chunk-23FD5HLB.js";import{a as ds}from"./chunk-7IVY3KZU.js";import"./chunk-2TUOEJ35.js";import"./chunk-K2447XFF.js";import{w as ns}from"./chunk-RHWRFGGO.js";import{A as Wn,B as Hn,C as Xn,D as Yn,b as ge,h as In,i as Cn,j as Dn,k as On,l as Rn,m as kn,n as Ln,o as Bn,p as Fn,q as zn,r as xn,s as jn,t as Vn,u as Un,v as Kn,w as qn,x as Gn,y as $n,z as Qn}from"./chunk-24Y3IJ63.js";import"./chunk-K7OOE7GQ.js";import"./chunk-HMCNQJYB.js";import{c as dt}from"./chunk-KQ4TPOIS.js";import"./chunk-DKFQS2T7.js";import"./chunk-LYZ2I5BW.js";import{B as Wt,Ia as ut,Oa as es,Pa as ts,Qa as is,oa as ct}from"./chunk-VHAZRQ4P.js";import"./chunk-JZIF2MGQ.js";import{K as Zn}from"./chunk-EFV77AEF.js";import{A as mn,a as Zi,b as en,c as tn,j as et,k as tt,l as it,n as nn,p as on,q as Xt,r as an,s as ln,t as cn,u as un,v as dn,w as st,x as rt}from"./chunk-LJ5C7PD6.js";import"./chunk-33QZLY4O.js";import"./chunk-NOTWEDDJ.js";import{a as hn,b as fn,c as pn,d as Yt,e as ot,f as at,g as gn,h as yn,i as _n,j as T,k as ue,m as Sn,q as Jn}from"./chunk-DQSZBLUJ.js";import{a as Me}from"./chunk-GIOTB24D.js";import{a as lt}from"./chunk-MLPEKDB4.js";import{A as Ji,F as Qt,s as Yi}from"./chunk-MML34EIT.js";import{$c as Xi,E as Ge,Eb as $i,Fc as Hi,Ga as Ki,Gb as U,Ha as qi,Jc as Gt,Ka as Qe,La as We,Lc as $t,M as zi,Ob as Xe,Pb as ce,Q as xi,Rb as Qi,Rd as Ze,S as ji,Wa as Gi,Xb as Ye,Zc as Je,a as E,aa as Vi,b as q,bb as Vt,cb as Ut,d as Bi,na as Ui,oc as Kt,qa as $e,qc as qt,ra as w,ta as jt,u as v,va as N,vc as Wi,w as Fi,wa as ae,wc as Oe,x as be,xc as Re,ya as le,yc as Ae,yd as we,za as k,zb as He,zd as Pe}from"./chunk-FGUTMTVL.js";function ws(s){return new w(3e3,!1)}function Qr(){return new w(3100,!1)}function Wr(){return new w(3101,!1)}function Hr(s){return new w(3001,!1)}function Xr(s){return new w(3003,!1)}function Yr(s){return new w(3004,!1)}function Ms(s,e){return new w(3005,!1)}function Ns(){return new w(3006,!1)}function Is(){return new w(3007,!1)}function Cs(s,e){return new w(3008,!1)}function Ds(s){return new w(3002,!1)}function Os(s,e,t,i,n){return new w(3010,!1)}function Rs(){return new w(3011,!1)}function ks(){return new w(3012,!1)}function Ls(){return new w(3200,!1)}function Bs(){return new w(3202,!1)}function Fs(){return new w(3013,!1)}function zs(s){return new w(3014,!1)}function xs(s){return new w(3015,!1)}function js(s){return new w(3016,!1)}function Vs(s,e){return new w(3404,!1)}function Jr(s){return new w(3502,!1)}function Us(s){return new w(3503,!1)}function Ks(){return new w(3300,!1)}function qs(s){return new w(3504,!1)}function Gs(s){return new w(3301,!1)}function $s(s,e){return new w(3302,!1)}function Qs(s){return new w(3303,!1)}function Ws(s,e){return new w(3400,!1)}function Hs(s){return new w(3401,!1)}function Xs(s){return new w(3402,!1)}function Ys(s,e){return new w(3505,!1)}function se(s){switch(s.length){case 0:return new pe;case 1:return s[0];default:return new nt(s)}}function ii(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((p,S)=>{let m=S,h=p;if(S!=="offset")switch(m=s.normalizePropertyName(m,n),h){case ke:h=t.get(S);break;case W:h=i.get(S);break;default:h=s.normalizeStyleValue(S,m,h,n);break}u.set(m,h)}),d||r.push(u),a=u,o=c}),n.length)throw Jr(n);return r}function ft(s,e,t,i){switch(e){case"start":s.onStart(()=>i(t&&Zt(t,"start",s)));break;case"done":s.onDone(()=>i(t&&Zt(t,"done",s)));break;
vendor: 50,594 bytes, line 1
1case"destroy":s.onDestroy(()=>i(t&&Zt(t,"destroy",s)));break}}function Zt(s,e,t){let i=t.totalTime,n=!!t.disabled,r=pt(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function pt(s,e,t,i,n="",r=0,o){return{element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function z(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function ni(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return[t,i]}var Zr=typeof document>"u"?null:document.documentElement;function gt(s){let e=s.parentNode||s.host||null;return e===Zr?null:e}function eo(s){return s.substring(1,6)=="ebkit"}var ye=null,Ps=!1;function Js(s){ye||(ye=to()||{},Ps=ye.style?"WebkitAppearance"in ye.style:!1);let e=!0;return ye.style&&!eo(s)&&(e=s in ye.style,!e&&Ps&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in ye.style)),e}function to(){return typeof document<"u"?document.body:null}function si(s,e){for(;e;){if(e===s)return!0;e=gt(e)}return!1}function ri(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var io=1e3,oi="{{",no="}}",ai="ng-enter",yt="ng-leave",Le="ng-trigger",Be=".ng-trigger",li="ng-animating",_t=".ng-animating";function Z(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ei(parseFloat(e[1]),e[2])}function ei(s,e){switch(e){case"s":return s*io;default:return s}}function Fe(s,e,t){return s.hasOwnProperty("duration")?s:ro(s,e,t)}var so=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function ro(s,e,t){let i,n=0,r="";if(typeof s=="string"){let o=s.match(so);if(o===null)return e.push(ws(s)),{duration:0,delay:0,easing:""};i=ei(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=ei(parseFloat(a),o[4]));let l=o[5];l&&(r=l)}else i=s;if(!t){let o=!1,a=e.length;i<0&&(e.push(Qr()),o=!0),n<0&&(e.push(Wr()),o=!0),o&&e.splice(a,0,ws(s))}return{duration:i,delay:n,easing:r}}function Zs(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function H(s,e,t){e.forEach((i,n)=>{let r=St(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i})}function de(s,e){e.forEach((t,i)=>{let n=St(i);s.style[n]=""})}function Ne(s){return Array.isArray(s)?s.length==1?s[0]:rn(s):s}function er(s,e,t){let i=e.params||{},n=ci(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(Hr(r))})}var ti=new RegExp(`${oi}\\s*(.+?)\\s*${no}`,"g");function ci(s){let e=[];if(typeof s=="string"){let t;for(;t=ti.exec(s);)e.push(t[1]);ti.lastIndex=0}return e}function Ie(s,e,t){let i=`${s}`,n=i.replace(ti,(r,o)=>{let a=e[o];return a==null&&(t.push(Xr(o)),a=""),a.toString()});return n==i?s:n}var oo=/-+([a-z0-9])/g;function St(s){return s.replace(oo,(...e)=>e[1].toUpperCase())}function tr(s,e){return s===0||e===0}function ir(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r)}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,vt(s,a)))}}return e}function x(s,e,t){switch(e.type){case b.Trigger:return s.visitTrigger(e,t);case b.State:return s.visitState(e,t);case b.Transition:return s.visitTransition(e,t);case b.Sequence:return s.visitSequence(e,t);case b.Group:return s.visitGroup(e,t);case b.Animate:return s.visitAnimate(e,t);case b.Keyframes:return s.visitKeyframes(e,t);case b.Style:return s.visitStyle(e,t);case b.Reference:return s.visitReference(e,t);case b.AnimateChild:return s.visitAnimateChild(e,t);case b.AnimateRef:return s.visitAnimateRef(e,t);case b.Query:return s.visitQuery(e,t);case b.Stagger:return s.visitStagger(e,t);default:throw Yr(e.type)}}function vt(s,e){return window.getComputedStyle(s)[e]}var Pi=(()=>{class s{validateStyleProperty(t){return Js(t)}containsElement(t,i){return si(t,i)}getParentElement(t){return gt(t)}query(t,i,n){return ri(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,r,o,a=[],l){return new pe(n,r)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=N({token:s,factory:s.\u0275fac})}return s})(),Se=class{static NOOP=new Pi},ve=class{};var ao=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"]),wt=class extends ve{normalizePropertyName(e,t){return St(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(ao.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Ms(e,i))}return o+r}};var Pt="*";function lo(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>co(i,t,e)):t.push(s),t}function co(s,e,t){if(s[0]==":"){let l=uo(s,t);if(typeof l=="function"){e.push(l);return}s=l}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(xs(s)),e;let n=i[1],r=i[2],o=i[3];e.push(nr(n,o));let a=n==Pt&&o==Pt;r[0]=="<"&&!a&&e.push(nr(o,n))}function uo(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(js(s)),"* => *"}}var Tt=new Set(["true","1"]),Et=new Set(["false","0"]);function nr(s,e){let t=Tt.has(s)||Et.has(s),i=Tt.has(e)||Et.has(e);return(n,r)=>{let o=s==Pt||s==n,a=e==Pt||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?Tt.has(s):Et.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?Tt.has(e):Et.has(e)),o&&a}}var hr=":self",mo=new RegExp(`s*${hr}s*,?`,"g");function fr(s,e,t,i){return new pi(s).build(e,t,i)}var sr="",pi=class{_driver;constructor(e){this._driver=e}build(e,t,i){let n=new gi(t);return this._resetContextStyleTimingState(n),x(this,Ne(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=sr,e.collectedStyles=new Map,e.collectedStyles.set(sr,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ns()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(Is())}),{type:b.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Cs(e.name,[...r.values()]))}return{type:b.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=x(this,Ne(e.animation),t),n=lo(e.expr,t.errors);return{type:b.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>x(this,i,t)),options:_e(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=i;let a=x(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:b.Group,steps:r,options:_e(e.options)}}visitAnimate(e,t){let i=go(e.timings,t.errors);t.currentAnimateTimings=i;let n,r=e.styles?e.styles:Ht({});if(r.type==b.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Ht(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:b.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===W?i.push(a):t.errors.push(Ds(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(oi)>=0){r=!0;break}}}),{type:b.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=n&&r>=d.startTime&&n<=d.endTime&&(t.errors.push(Os(l,d.startTime,d.endTime,r,n)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:n}),t.options&&er(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Rs()),i;let n=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(P=>{let M=this._makeStyleAst(P,t),C=M.offset!=null?M.offset:po(M.styles),R=0;return C!=null&&(r++,R=M.offset=C),l=l||R<0||R>1,a=a||R<c,c=R,o.push(R),M});l&&t.errors.push(ks()),a&&t.errors.push(Ls());let u=e.steps.length,p=0;r>0&&r<u?t.errors.push(Bs()):r==0&&(p=n/(u-1));let S=u-1,m=t.currentTime,h=t.currentAnimateTimings,y=h.duration;return d.forEach((P,M)=>{let C=p>0?M==S?1:p*M:o[M],R=C*y;t.currentTime=m+h.delay+R,h.duration=R,this._validateStyleAst(P,t),P.offset=C,i.styles.push(P)}),i}visitReference(e,t){return{type:b.Reference,animation:x(this,Ne(e.animation),t),options:_e(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:_e(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:_e(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ho(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,z(t.collectedStyles,t.currentQuerySelector,new Map);let a=x(this,Ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_e(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Fe(e.timings,t.errors,!0);return{type:b.Stagger,animation:x(this,Ne(e.animation),t),timings:i,options:null}}};function ho(s){let e=!!s.split(/\s*,\s*/).find(t=>t==hr);return e&&(s=s.replace(mo,"")),s=s.replace(/@\*/g,Be).replace(/@\w+/g,t=>Be+"-"+t.slice(1)).replace(/:animating/g,_t),[s,e]}function fo(s){return s?E({},s):null}var gi=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(e){this.errors=e}};function po(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function go(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=Fe(s,e).duration;return ui(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ui(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=Fe(t,e);return ui(n.duration,n.delay,n.easing)}function _e(s){return s?(s=E({},s),s.params&&(s.params=fo(s.params))):s={},s}function ui(s,e,t){return{duration:s,delay:e,easing:t}}function Mi(s,e,t,i,n,r,o=null,a=!1){return{type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var xe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},yo=1,_o=":enter",So=new RegExp(_o,"g"),vo=":leave",To=new RegExp(vo,"g");function pr(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new yi().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var yi=class{buildKeyframes(e,t,i,n,r,o,a,l,c,d=[]){c=c||new xe;let u=new _i(e,t,c,n,r,d,[]);u.options=l;let p=l.delay?Z(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),x(this,i,u);let S=u.timelines.filter(m=>m.containsAnimation());if(S.length&&a.size){let m;for(let h=S.length-1;h>=0;h--){let y=S[h];if(y.element===t){m=y;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return S.length?S.map(m=>m.buildKeyframes()):[Mi(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:Z(Ie(r,n?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?Z(i.duration):null,a=i.delay!=null?Z(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),x(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==b.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Mt);let o=Z(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>x(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Z(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),x(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?Ie(i,t.params,t.errors):i;return Fe(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r=e.style;r.type==b.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?Z(n.delay):0;r&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Mt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),x(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;x(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}},Mt={},_i=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Mt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new Nt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=Z(i.duration)),i.delay!=null&&(n.delay=Z(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ie(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||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=Mt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Si(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(So,"."+this._enterClassName),e=e.replace(To,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(zs(t)),a}},Nt=class s{_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(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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 s(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+=yo,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||W),this._currentKeyframe.set(t,W);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Eo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ie(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??W),this._updateStyle(a,c)}}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}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===ke?e.add(u):d===W&&t.add(u)}),i||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return Mi(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},Si=class extends Nt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",rr(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let p=new Map(e[u]),S=p.get("offset"),m=t+S*i;p.set("offset",rr(m/o)),r.push(p)}i=o,t=0,n="",e=r}return Mi(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function rr(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Eo(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,W)}else for(let[r,o]of n)t.set(r,o)}),t}function or(s,e,t,i,n,r,o,a,l,c,d,u,p){return{type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var di={},It=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return bo(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||di,S=a&&a.params||di,m=this.buildStyles(i,S,u),h=l&&l.params||di,y=this.buildStyles(n,h,u),P=new Set,M=new Map,C=new Map,R=n==="void",Te={params:gr(h,p),delay:this.ast.options?.delay},Y=d?[]:pr(e,t,this.ast.animation,r,o,m,y,Te,c,u),B=0;return Y.forEach(F=>{B=Math.max(F.duration+F.delay,B)}),u.length?or(t,this._triggerName,i,n,R,m,y,[],[],M,C,B,u):(Y.forEach(F=>{let me=F.element,Ee=z(M,me,new Set);F.preStyleProps.forEach(he=>Ee.add(he));let Oi=z(C,me,new Set);F.postStyleProps.forEach(he=>Oi.add(he)),me!==t&&P.add(me)}),or(t,this._triggerName,i,n,R,m,y,Y,[...P.values()],M,C,B))}};function bo(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function gr(s,e){let t=E({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var vi=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=gr(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ie(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Ao(s,e,t){return new Ti(s,e,t)}var Ti=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new vi(n.style,r,i))}),ar(this.states,"true","1"),ar(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new It(e,n,this.states))}),this.fallbackTransition=wo(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function wo(s,e,t){let i=[(o,a)=>!0],n={type:b.Sequence,steps:[],options:null},r={type:b.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new It(s,r,e)}function ar(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t))}var Po=new xe,Ei=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],n=[],r=fr(this._driver,t,i,n);if(i.length)throw Us(i);this._animations.set(e,r)}_buildPlayer(e,t,i){let n=e.element,r=ii(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=pr(this._driver,t,r,ai,yt,new Map,new Map,i,Po,n),o.forEach(d=>{let u=z(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(n.push(Ks()),o=[]),n.length)throw qs(n);a.forEach((d,u)=>{d.forEach((p,S)=>{d.set(S,this._driver.computeStyle(u,S,W))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=se(l);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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Gs(e);return t}listen(e,t,i,n){let r=pt(t,"","","");return ft(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){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;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},lr="ng-animate-queued",Mo=".ng-animate-queued",mi="ng-animate-disabled",No=".ng-animate-disabled",Io="ng-star-inserted",Co=".ng-star-inserted",Do=[],yr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},X="__ng_removed",je=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=ko(n),i){let r=e,{value:o}=r,a=Bi(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},ze="void",hi=new je(ze),bi=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,G(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw $s(i,t);if(i==null||i.length==0)throw Qs(t);if(!Lo(i))throw Ws(i,t);let r=z(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=z(this._engine.statesByElement,e,new Map);return a.has(t)||(G(e,Le),G(e,Le+"-"+t),a.set(t,hi)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.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 Hs(e);return t}trigger(e,t,i,n=!0){let r=this._getTrigger(t),o=new Ve(this.id,t,e),a=this._engine.statesByElement.get(e);a||(G(e,Le),G(e,Le+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new je(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=hi),!(c.value===ze)&&l.value===c.value){if(!zo(l.params,c.params)){let h=[],y=r.matchStyles(l.value,l.params,h),P=r.matchStyles(c.value,c.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush(()=>{de(e,y),H(e,P)})}return}let p=z(this._engine.playersByElement,e,[]);p.forEach(h=>{h.namespaceId==this.id&&h.triggerName==t&&h.queued&&h.destroy()});let S=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!S){if(!n)return;S=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:S,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(G(e,lr),o.onStart(()=>{Ce(e,lr)})),o.onDone(()=>{let h=this.players.indexOf(o);h>=0&&this.players.splice(h,1);let y=this._engine.playersByElement.get(e);if(y){let P=y.indexOf(o);P>=0&&y.splice(P,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Be,!0);i.forEach(n=>{if(n[X])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ze,n);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||hi,d=new je(ze),u=new Ve(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[X];(!r||r===yr)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){G(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=pt(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,ft(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ai=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=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new bi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,n){if(bt(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!bt(t))return;let r=t[X];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),G(e,mi)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ce(e,mi))}removeNode(e,t,i){if(bt(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[X]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,n,r){return bt(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Be,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,_t,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[X];if(t&&t.setForRemoval){if(e[X]=yr,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(mi)&&this.markElementAsDisabled(e,!1),this.driver.query(e,No,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];G(n,Io)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?se(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw Xs(e)}_flushAnimations(e,t){let i=new xe,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(f=>{d.add(f);let g=this.driver.query(f,Mo,!0);for(let _=0;_<g.length;_++)d.add(g[_])});let u=this.bodyNode,p=Array.from(this.statesByElement.keys()),S=dr(p,this.collectedEnterElements),m=new Map,h=0;S.forEach((f,g)=>{let _=ai+h++;m.set(g,_),f.forEach(A=>G(A,_))});let y=[],P=new Set,M=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let g=this.collectedLeaveElements[f],_=g[X];_&&_.setForRemoval&&(y.push(g),P.add(g),_.hasAnimation?this.driver.query(g,Co,!0).forEach(A=>P.add(A)):M.add(g))}let C=new Map,R=dr(p,Array.from(P));R.forEach((f,g)=>{let _=yt+h++;C.set(g,_),f.forEach(A=>G(A,_))}),e.push(()=>{S.forEach((f,g)=>{let _=m.get(g);f.forEach(A=>Ce(A,_))}),R.forEach((f,g)=>{let _=C.get(g);f.forEach(A=>Ce(A,_))}),y.forEach(f=>{this.processLeaveNode(f)})});let Te=[],Y=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(_=>{let A=_.player,O=_.element;if(Te.push(A),this.collectedEnterElements.length){let L=O[X];if(L&&L.setForMove){if(L.previousTriggersValues&&L.previousTriggersValues.has(_.triggerName)){let fe=L.previousTriggersValues.get(_.triggerName),K=this.statesByElement.get(_.element);if(K&&K.has(_.triggerName)){let qe=K.get(_.triggerName);qe.value=fe,K.set(_.triggerName,qe)}}A.destroy();return}}let J=!u||!this.driver.containsElement(u,O),V=C.get(O),oe=m.get(O),I=this._buildInstruction(_,i,oe,V,J);if(I.errors&&I.errors.length){Y.push(I);return}if(J){A.onStart(()=>de(O,I.fromStyles)),A.onDestroy(()=>H(O,I.toStyles)),n.push(A);return}if(_.isFallbackTransition){A.onStart(()=>de(O,I.fromStyles)),A.onDestroy(()=>H(O,I.toStyles)),n.push(A);return}let Li=[];I.timelines.forEach(L=>{L.stretchStartingKeyframe=!0,this.disabledNodes.has(L.element)||Li.push(L)}),I.timelines=Li,i.append(O,I.timelines);let $r={instruction:I,player:A,element:O};o.push($r),I.queriedElements.forEach(L=>z(a,L,[]).push(A)),I.preStyleProps.forEach((L,fe)=>{if(L.size){let K=l.get(fe);K||l.set(fe,K=new Set),L.forEach((qe,xt)=>K.add(xt))}}),I.postStyleProps.forEach((L,fe)=>{let K=c.get(fe);K||c.set(fe,K=new Set),L.forEach((qe,xt)=>K.add(xt))})});if(Y.length){let f=[];Y.forEach(g=>{f.push(Ys(g.triggerName,g.errors))}),Te.forEach(g=>g.destroy()),this.reportError(f)}let B=new Map,F=new Map;o.forEach(f=>{let g=f.element;i.has(g)&&(F.set(g,g),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,B))}),n.forEach(f=>{let g=f.element;this._getPreviousPlayers(g,!1,f.namespaceId,f.triggerName,null).forEach(A=>{z(B,g,[]).push(A),A.destroy()})});let me=y.filter(f=>mr(f,l,c)),Ee=new Map;ur(Ee,this.driver,M,c,W).forEach(f=>{mr(f,l,c)&&me.push(f)});let he=new Map;S.forEach((f,g)=>{ur(he,this.driver,new Set(f),l,ke)}),me.forEach(f=>{let g=Ee.get(f),_=he.get(f);Ee.set(f,new Map([...g?.entries()??[],..._?.entries()??[]]))});let zt=[],Ri=[],ki={};o.forEach(f=>{let{element:g,player:_,instruction:A}=f;if(i.has(g)){if(d.has(g)){_.onDestroy(()=>H(g,A.toStyles)),_.disabled=!0,_.overrideTotalTime(A.totalTime),n.push(_);return}let O=ki;if(F.size>1){let V=g,oe=[];for(;V=V.parentNode;){let I=F.get(V);if(I){O=I;break}oe.push(V)}oe.forEach(I=>F.set(I,O))}let J=this._buildAnimation(_.namespaceId,A,B,r,he,Ee);if(_.setRealPlayer(J),O===ki)zt.push(_);else{let V=this.playersByElement.get(O);V&&V.length&&(_.parentPlayer=se(V)),n.push(_)}}else de(g,A.fromStyles),_.onDestroy(()=>H(g,A.toStyles)),Ri.push(_),d.has(g)&&n.push(_)}),Ri.forEach(f=>{let g=r.get(f.element);if(g&&g.length){let _=se(g);f.setRealPlayer(_)}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f<y.length;f++){let g=y[f],_=g[X];if(Ce(g,yt),_&&_.hasAnimation)continue;let A=[];if(a.size){let J=a.get(g);J&&J.length&&A.push(...J);let V=this.driver.query(g,_t,!0);for(let oe=0;oe<V.length;oe++){let I=a.get(V[oe]);I&&I.length&&A.push(...I)}}let O=A.filter(J=>!J.destroyed);O.length?Bo(this,g,O):this.processLeaveNode(g)}return y.length=0,zt.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let g=this.players.indexOf(f);this.players.splice(g,1)}),f.play()}),zt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==ze;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,d=c!==r,u=z(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(S=>{let m=S.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),S.destroy(),u.push(S)})}de(r,t.fromStyles)}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,p=t.timelines.map(m=>{let h=m.element;d.add(h);let y=h[X];if(y&&y.removedBeforeQueried)return new pe(m.duration,m.delay);let P=h!==l,M=Fo((i.get(h)||Do).map(B=>B.getRealPlayer())).filter(B=>{let F=B;return F.element?F.element===h:!1}),C=r.get(h),R=o.get(h),Te=ii(this._normalizer,m.keyframes,C,R),Y=this._buildPlayer(m,Te,M);if(m.subTimeline&&n&&u.add(h),P){let B=new Ve(e,a,h);B.setRealPlayer(Y),c.push(B)}return Y});c.forEach(m=>{z(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Ro(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>G(m,li));let S=se(p);return S.onDestroy(()=>{d.forEach(m=>Ce(m,li)),H(l,t.toStyles)}),u.forEach(m=>{z(n,m,[]).push(S)}),S}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new pe(e.duration,e.delay)}},Ve=class{namespaceId;triggerName;element;_player=new pe;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>ft(e,i,void 0,n))}),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){z(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 Ro(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&s.delete(e)}return i}function ko(s){return s??null}function bt(s){return s&&s.nodeType===1}function Lo(s){return s=="start"||s=="done"}function cr(s,e){let t=s.style.display;return s.style.display=e??"none",t}function ur(s,e,t,i,n){let r=[];t.forEach(l=>r.push(cr(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,n);d.set(u,p),(!p||p.length==0)&&(c[X]=Oo,o.push(c))}),s.set(c,d)});let a=0;return t.forEach(l=>cr(l,r[a++])),o}function dr(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function G(s,e){s.classList?.add(e)}function Ce(s,e){s.classList?.remove(e)}function Bo(s,e,t){se(t).onDone(()=>s.processLeaveNode(e))}function Fo(s){let e=[];return _r(s,e),e}function _r(s,e){for(let t=0;t<s.length;t++){let i=s[t];i instanceof nt?_r(i.players,e):e.push(i)}}function zo(s,e){let t=Object.keys(s),i=Object.keys(e);if(t.length!=i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||s[r]!==e[r])return!1}return!0}function mr(s,e,t){let i=t.get(s);if(!i)return!1;let n=e.get(s);return n?i.forEach(r=>n.add(r)):e.set(s,i),t.delete(s),!0}var De=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new Ai(e.body,t,i),this._timelineEngine=new Ei(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],d=fr(this._driver,r,l,c);if(l.length)throw Vs(n,l);a=Ao(n,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=ni(i),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=ni(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,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 xo(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=fi(e[0]),e.length>1&&(i=fi(e[e.length-1]))):e instanceof Map&&(t=fi(e)),t||i?new jo(s,t,i):null}var jo=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(de(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(de(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}return s})();function fi(s){let e=null;return s.forEach((t,i)=>{Vo(i)&&(e=e||new Map,e.set(i,t))}),e}function Vo(s){return s==="display"||s==="position"}var Ct=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:vt(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Dt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return si(e,t)}getParentElement(e){return gt(e)}query(e,t,i){return ri(e,t,i)}computeStyle(e,t,i){return vt(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(S=>S instanceof Ct);tr(i,n)&&d.forEach(S=>{S.currentSnapshot.forEach((m,h)=>c.set(h,m))});let u=Zs(t).map(S=>new Map(S));u=ir(e,u,c);let p=xo(e,u);return new Ct(e,u,l,p)}};var At="@",Sr="@.disabled",Ot=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i,n){if(n){this.delegate.removeChild(e,t,i);return}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,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==At&&t==Sr?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},wi=class extends Ot{factory;constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==At?t.charAt(1)=="."&&t==Sr?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i,n){if(t.charAt(0)==At){let r=Uo(e),o=t.slice(1),a="";return o.charAt(0)!=At&&([o,a]=Ko(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(e,t,i,n)}};function Uo(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function Ko(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return[t,i]}var Rt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let u=()=>c.delete(n);d=new Ot("",n,this.engine,u),c.set(n,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
1{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new wi(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}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){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Go=(()=>{class s extends De{constructor(t,i,n){super(t,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||s)(k(We),k(Se),k(ve))};static \u0275prov=N({token:s,factory:s.\u0275fac})}return s})();function $o(){return new wt}function Qo(s,e,t){return new Rt(s,e,t)}var Tr=[{provide:ve,useFactory:$o},{provide:De,useClass:Go},{provide:$i,useFactory:Qo,deps:[Zi,De,Ye]}],Wo=[{provide:Se,useClass:Pi},{provide:Ut,useValue:"NoopAnimations"},...Tr],vr=[{provide:Se,useFactory:()=>new Dt},{provide:Ut,useFactory:()=>"BrowserAnimations"},...Tr],Er=(()=>{class s{static withConfig(t){return{ngModule:s,providers:t.disableAnimations?Wo:vr}}static \u0275fac=function(i){return new(i||s)};static \u0275mod=ce({type:s});static \u0275inj=ae({providers:vr,imports:[tn]})}return s})();var Ar=new le("NGXS_DEVTOOLS_OPTIONS"),Ho=(()=>{class s{constructor(t,i,n){this._options=t,this._injector=i,this._ngZone=n,this.devtoolsExtension=null,this.globalDevtools=jt.__REDUX_DEVTOOLS_EXTENSION__||jt.devToolsExtension,this.unsubscribe=null,this.connect()}ngOnDestroy(){this.unsubscribe!==null&&this.unsubscribe(),this.globalDevtools&&this.globalDevtools.disconnect()}get store(){return this._injector.get(yn)}handle(t,i,n){return!this.devtoolsExtension||this._options.disabled?n(t,i):n(t,i).pipe(ji(r=>{let o=this.store.snapshot();throw this.sendToDevTools(t,i,o),r}),$e(r=>{this.sendToDevTools(t,i,r)}))}sendToDevTools(t,i,n){let r=hn(i);r===at.type?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign(Object.assign({},i),{action:null,type:r}),n)}dispatched(t){if(t.type==="DISPATCH"){if(t.payload.type==="JUMP_TO_ACTION"||t.payload.type==="JUMP_TO_STATE"){let i=JSON.parse(t.state);i.router&&i.router.trigger&&(i.router.trigger="devtools"),this.store.reset(i)}else if(t.payload.type==="TOGGLE_ACTION")console.warn("Skip is not supported at this time.");else if(t.payload.type==="IMPORT_STATE"){let{actionsById:i,computedStates:n,currentStateIndex:r}=t.payload.nextLiftedState;this.devtoolsExtension.init(n[0].state),Object.keys(i).filter(o=>o!=="0").forEach(o=>this.devtoolsExtension.send(i[o],n[o].state)),this.store.reset(n[r].state)}}else if(t.type==="ACTION"){let i=JSON.parse(t.payload);this.store.dispatch(i)}}connect(){!this.globalDevtools||this._options.disabled||(this.devtoolsExtension=this._ngZone.runOutsideAngular(()=>this.globalDevtools.connect(this._options)),this.unsubscribe=this.devtoolsExtension.subscribe(t=>{(t.type==="DISPATCH"||t.type==="ACTION")&&this.dispatched(t)}))}}return s.\u0275fac=function(t){return new(t||s)(k(Ar),k(Qe),k(Ye))},s.\u0275prov=N({token:s,factory:s.\u0275fac}),s})();function Xo(s){return Object.assign({name:"NGXS"},s)}var br=new le("USER_OPTIONS"),wr=(()=>{class s{static forRoot(t){return{ngModule:s,providers:[{provide:ot,useClass:Ho,multi:!0},{provide:br,useValue:t},{provide:Ar,useFactory:Xo,deps:[br]}]}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=ce({type:s}),s.\u0275inj=ae({}),s})();var Cr=!1,Ni=new le(Cr?"NGXS_STORAGE_PLUGIN_OPTIONS":""),Dr=new le(Cr?"STORAGE_ENGINE":""),Ii="@@STATE";function Yo(s){return Object.assign({key:[Ii],storage:0,serialize:JSON.stringify,deserialize:JSON.parse,beforeSerialize:e=>e,afterDeserialize:e=>e},s)}function Jo(s,e){return Qt(e)?null:s.storage===0?localStorage:s.storage===1?sessionStorage:null}function Pr(s,e){return e&&e.namespace?`${e.namespace}:${s}`:s}function Or(s){return s!=null&&!!s.engine}var Mr="NGXS_OPTIONS_META";function Zo(s){return Or(s)&&(s=s.key),s.hasOwnProperty(Mr)&&(s=s[Mr].name),s instanceof Sn?s.getName():s}var ea=!1,Rr=new le(ea?"FINAL_NGXS_STORAGE_PLUGIN_OPTIONS":"");function ta(s,e){let i=(Array.isArray(e.key)?e.key:[e.key]).map(n=>{let r=Zo(n),o=Or(n)?s.get(n.engine):s.get(Dr);return{key:r,engine:o}});return Object.assign(Object.assign({},e),{keysWithEngines:i})}var Nr=!1,ia=(()=>{class s{constructor(t,i){this._options=t,this._platformId=i,this._keysWithEngines=this._options.keysWithEngines,this._usesDefaultStateKey=this._keysWithEngines.length===1&&this._keysWithEngines[0].key===Ii}handle(t,i,n){var r;if(Qt(this._platformId))return n(t,i);let o=fn(i),a=o(at),l=o(gn),c=a||l,d=!1;if(c){let u=l&&i.addedStates;for(let{key:p,engine:S}of this._keysWithEngines){if(!this._usesDefaultStateKey&&u){let y=p.indexOf(na),P=y>-1?p.slice(0,y):p;if(!u.hasOwnProperty(P))continue}let m=Pr(p,this._options),h=S.getItem(m);if(h!=="undefined"&&h!=null){try{let y=this._options.deserialize(h);h=this._options.afterDeserialize(y,p)}catch{Nr&&console.error(`Error ocurred while deserializing the ${m} store value, falling back to empty object, the value obtained from the store: `,h),h={}}(r=this._options.migrations)===null||r===void 0||r.forEach(y=>{let P=y.version===Yt(h,y.versionKey||"version"),M=!y.key&&this._usesDefaultStateKey||y.key===p;P&&M&&(h=y.migrate(h),d=!0)}),this._usesDefaultStateKey?(h&&u&&Object.keys(u).length>0&&(h=Object.keys(u).reduce((y,P)=>(h.hasOwnProperty(P)&&(y[P]=h[P]),y),{})),t=Object.assign(Object.assign({},t),h)):t=pn(t,p,h)}}}return n(t,i).pipe($e(u=>{if(!(c&&!d))for(let{key:p,engine:S}of this._keysWithEngines){let m=u,h=Pr(p,this._options);p!==Ii&&(m=Yt(u,p));try{let y=this._options.beforeSerialize(m,p);S.setItem(h,this._options.serialize(y))}catch(y){Nr&&(y&&(y.name==="QuotaExceededError"||y.name==="NS_ERROR_DOM_QUOTA_REACHED")?console.error(`The ${h} store value exceeds the browser storage quota: `,m):console.error(`Error ocurred while serializing the ${h} store value, value not updated, the value obtained from the store: `,m))}}}))}}return s.\u0275fac=function(t){return new(t||s)(k(Rr),k(Vt))},s.\u0275prov=N({token:s,factory:s.\u0275fac}),s}
1)(),na=".",sa=!1,Ir=new le(sa?"USER_OPTIONS":""),kr=(()=>{class s{static forRoot(t){return{ngModule:s,providers:[{provide:ot,useClass:ia,multi:!0},{provide:Ir,useValue:t},{provide:Ni,useFactory:Yo,deps:[Ir]},{provide:Dr,useFactory:Jo,deps:[Ni,Vt]},{provide:Rr,useFactory:ta,deps:[Qe,Ni]}]}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=ce({type:s}),s.\u0275inj=ae({}),s})();var Lr=(()=>{let e=class e{transform(i){return i===null?be(!1):be(i).pipe(Ui(n=>n>=100?zi(1e3).pipe(Ge(()=>!0)):be(!1)))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qi({name:"toggleProgressBar",type:e,pure:!0});let s=e;return s})();var kt=(()=>{let e=class e{constructor(i){this.changeDetectorRef=i,this.progressVal=0,this.showProgressbar=!1,this.EventService=ge}ngOnInit(){this.initializeProgressBarSubscription()}initializeProgressBarSubscription(){ge.progressBar$.subscribe(({loading:i,value:n})=>{i?(this.showProgressbar=!0,this.currentIntervalRef&&clearInterval(this.currentIntervalRef),this.progressVal=n,this.currentIntervalRef=setInterval(()=>{this.progressVal<80?++this.progressVal:this.progressVal=this.progressVal+.2,this.changeDetectorRef.detectChanges()},300)):setTimeout(()=>{this.progressVal=100,this.changeDetectorRef.detectChanges(),this.currentIntervalRef&&clearInterval(this.currentIntervalRef),setTimeout(()=>{this.showProgressbar=!1,this.changeDetectorRef.detectChanges()},500)},0),this.changeDetectorRef.detectChanges()})}};e.\u0275fac=function(n){return new(n||e)(U(Ze))},e.\u0275cmp=Xe({type:e,selectors:[["app-progress-bar-container"]],decls:6,vars:12,consts:[[3,"hidden","value"]],template:function(n,r){if(n&1&&(Ae(0,"mm-progress",0),we(1,"async"),we(2,"toggleProgressBar"),we(3,"async"),we(4,"async"),we(5,"async")),n&2){let o,a;Wi("hidden",Pe(3,6,Pe(2,4,(o=Pe(1,2,r.EventService.progressBar$))==null?null:o.value)))("value",((a=Pe(4,8,r.EventService.progressBar$))==null?null:a.value)>100?100:(a=Pe(5,10,r.EventService.progressBar$))==null?null:a.value)}},dependencies:[hs,ms,Ji,Yi,Lr],styles:["mm-progress[_ngcontent-%COMP%]{position:fixed;width:100%;top:-8px;z-index:10000000}"],changeDetection:0});let s=e;return s})();function aa(s,e){if(s&1){let t=Hi();Oe(0,"div",2)(1,"mdc-text",5),Je(2),Re(),Oe(3,"div",6)(4,"mdc-button",7),Gt("click",function(){Ki(t);let n=$t();return qi(n.signOutAfterTimeoutWarning())}),Je(5," Sign out now "),Re()()()}if(s&2){let t=$t();He(2),Xi(" ",t.sessionTimeoutMessage," ")}}function la(s,e){s&1&&Ae(0,"app-imi-loader",4)}var Br=(()=>{let e=class e{constructor(i,n,r,o,a,l,c,d,u,p){this.router=i,this.activatedRoute=n,this.widgetLoaderService=r,this.authLogoutCoordinator=o,this.constantsService=a,this.webexService=l,this.userInteractionMonitoringService=c,this.userActionMonitoringService=d,this.themeService=u,this.changeDetectorRef=p,this.title="app",this.loading=!1,this.sessionTimeoutMessage="",this.isFirstNavigation=!0,this.sessionTimeoutLogoutTimer=null,this.webexService.triggerWebexInitialization(),this.userInteractionMonitoringService.setupButtonClickTracking(),this.themeService.init()}ngAfterViewInit(){console.log(this.constantsService.BACKEND_URL),ge.sessionTimeoutWarning$.subscribe(i=>{this.sessionTimeoutMessage=i||"Your session has timed out. You will be signed out shortly.",this.changeDetectorRef.detectChanges()}),ge.logout$.subscribe(()=>{if(this.sessionTimeoutMessage){this.sessionTimeoutLogoutTimer||(this.sessionTimeoutLogoutTimer=setTimeout(()=>{this.sessionTimeoutLogoutTimer=null,this.sessionTimeoutMessage="",this.changeDetectorRef.detectChanges(),this.authLogoutCoordinator.logout()},e.SESSION_TIMEOUT_NOTICE_MS));return}this.authLogoutCoordinator.logout()}),this.widgetLoaderService.loadChatWidgetScript().then(()=>{window.patchEnvironment({is_test:!0,origin:location.origin,showMessageInfoIcon:!0})}).catch(i=>{lt.error(i)}),ge.showLoader$.subscribe(({showLoader:i})=>{this.loading=i}),this.router.events.pipe(xi(i=>i instanceof Xt),Ge(i=>{let r=this.getCurrentRoute(this.activatedRoute)?.snapshot.data?.pageName||"Unknown Page",o=i.urlAfterRedirects||i.url,a=o.split("?")[0];return{pageName:r,url:o,path:a}}),Vi((i,n)=>i.pageName===n.pageName&&i.path===n.path)).subscribe(({pageName:i,url:n})=>{this.userActionMonitoringService.submitUserAction(`${i} visited`,{url:n}),this.isFirstNavigation?this.isFirstNavigation=!1:setTimeout(()=>{let r=document.querySelector("main");r&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"))},100)}),this.router.events.subscribe(i=>{if(window.location.pathname.includes("auth/login")){this.loading=!1;return}i instanceof on?this.loading=!0:(i instanceof Xt||i instanceof an||i instanceof ln)&&(this.loading=!1)})}signOutAfterTimeoutWarning(){this.clearSessionTimeoutLogoutTimer(),this.sessionTimeoutMessage="",this.changeDetectorRef.detectChanges(),this.authLogoutCoordinator.logout()}clearSessionTimeoutLogoutTimer(){this.sessionTimeoutLogoutTimer&&(clearTimeout(this.sessionTimeoutLogoutTimer),this.sessionTimeoutLogoutTimer=null)}getCurrentRoute(i){for(;i.firstChild;)i=i.firstChild;return i}skipToMainContent(i){i.preventDefault();let n=document.querySelector("main#main-content")||document.querySelector('#main-content[role="main"]')||document.querySelector('main, [role="main"]')||document.getElementById("main-content");n&&(n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus(),n.scrollIntoView({behavior:"smooth",block:"start"}))}ngOnDestroy(){this.clearSessionTimeoutLogoutTimer(),this.userInteractionMonitoringService.removeButtonClickTracking()}};e.SESSION_TIMEOUT_NOTICE_MS=5e3,e.\u0275fac=function(n){return new(n||e)(U(rt),U(un),U(vn),U(cs),U(ct),U(es),U(us),U(ts),U(ds),U(Ze))},e.\u0275cmp=Xe({type:e,selectors:[["app-root"]],standalone:!1,decls:8,vars:2,consts:[["aria-label","Skip links"],["tabindex","0","href","#main-content",1,"skip-to-main",3,"click"],["role","alert","aria-live","assertive","data-cy","session-timeout-alert",1,"session-timeout-alert","mds-elevation"],[1,"overall-container"],["size","48px",1,"fixed-loader"],["data-cy","session-timeout-message","tagname","span","type","body-midsize-medium"],[1,"session-timeout-actions"],["aria-label","Sign out now","data-cy","session-timeout-sign-out","size","32","variant","primary",3,"click"]],template:function(n,r){n&1&&(Oe(0,"nav",0)(1,"a",1),Gt("click",function(a){return r.skipToMainContent(a)}),Je(2,"Skip to main content"),Re()(),Ae(3,"app-progress-bar-container"),Kt(4,aa,6,1,"div",2),Oe(5,"div",3),Ae(6,"router-outlet"),Kt(7,la,1,0,"app-imi-loader",4),Re()),n&2&&(He(4),qt(r.sessionTimeoutMessage?4:-1),He(3),qt(r.loading?7:-1))},dependencies:[dn,dt,kt],styles:['.form-theme[_ngcontent-%COMP%]{border-radius:2px}.form-theme[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;line-height:13px;font-weight:300;color:#9e9e9e;margin:0}.form-theme[_ngcontent-%COMP%] .form-theme-control[_ngcontent-%COMP%]{border:none;border-color:inherit;-webkit-box-shadow:none;box-shadow:none;outline:none;border-bottom:1px solid #e0e0e0;border-radius:0;width:100%;padding:.5rem}.form-theme[_ngcontent-%COMP%] .form-theme-error[_ngcontent-%COMP%]{color:#e85656}.form-theme[_ngcontent-%COMP%] .form-theme-info[_ngcontent-%COMP%]{color:#1170cf}.form-theme[_ngcontent-%COMP%] .form-theme-error[_ngcontent-%COMP%], .form-theme[_ngcontent-%COMP%] .form-theme-info[_ngcontent-%COMP%]{height:1rem;font-size:11px}.form-theme-with-md-controls[_ngcontent-%COMP%] .form-theme-control[_ngcontent-%COMP%]{font-size:16px;line-height:13px;font-weight:300;color:#000000f2} .mds-theme-stable-darkWebex .overall-container{background:url("./media/gradient-background-dark-ZWPAMJAB.png") center/cover no-repeat} .mds-theme-stable-lightWebex .overall-container{background:url("./media/gradient-background-light-2GGVMVNT.png") center/cover no-repeat}[_nghost-%COMP%]{background-color:var(--mds-color-theme-background-solid-primary-normal);display:block}.skip-to-main[_ngcontent-%COMP%]{position:absolute;
1left:-9999px;z-index:999;padding:.75rem 1.5rem;background-color:var(--mds-color-theme-background-solid-primary-normal);color:var(--mds-color-theme-text-primary-normal);text-decoration:none;border:2px solid var(--mds-color-theme-outline-primary-normal);border-radius:4px;font-weight:600}.skip-to-main[_ngcontent-%COMP%]:focus{left:1rem;top:1rem;outline:2px solid var(--mds-color-theme-outline-theme-normal);outline-offset:2px}.overall-container[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(400px);backdrop-filter:blur(400px);display:block;height:100%;width:100%}body[_ngcontent-%COMP%]{color:#ddd}h1[_ngcontent-%COMP%]{color:#fff;font-size:2.25em;text-align:center;margin-top:1em;margin-bottom:2em;text-shadow:0px 2px 0px rgb(0,0,0)} .loader{display:flex;justify-content:center} .loader--full-height{align-items:center;height:100%} .loader:after{content:"";width:50px;height:50px;border:2px solid rgba(0,0,0,.2);border-top-color:#000000e6;border-radius:50%;transform:rotate(.16turn);animation:_ngcontent-%COMP%_loading 1s ease infinite}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.fixed-loader[_ngcontent-%COMP%]{z-index:1000}.session-timeout-alert[_ngcontent-%COMP%]{position:fixed;top:1rem;left:50%;z-index:1100;width:min(36rem,100vw - 2rem);padding:.875rem 1rem;border:1px solid var(--mds-color-theme-outline-warning-normal, #b56b00);border-radius:.25rem;background:var(--mds-color-theme-background-alert-warning-normal, #ffebc2);color:var(--mds-color-theme-text-primary-normal, #111111);font-weight:600;text-align:center;filter:var(--mds-elevation-2, drop-shadow(0 .5rem 1.5rem rgba(0, 0, 0, .18)));transform:translate(-50%)}.session-timeout-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;margin-top:.75rem}']});let s=e;return s})();var ca=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function Ci(s){return s!==null&&typeof s=="object"&&!Array.isArray(s)?s:void 0}function Lt(s){if(typeof s=="number")return Number.isFinite(s)?String(s):void 0;if(typeof s!="string")return;let e=s.trim();return e&&e===s?e:void 0}function Fr(s){if(typeof s!="string")return;let e=s.trim();return e===s&&ca.test(e)?e:void 0}var zr={user:null,is_loggedIn:!1,login_timestamp:null,launchMode:null,acknowledgements:void 0},ee,re=(ee=class{setUser({patchState:e,getState:t},{payload:i}){let n=t(),o=i?.launchMode!==void 0&&Object.hasOwn(i,"launchMode")?i.launchMode:n.launchMode;i.is_loggedIn===!1&&(o=null),e({user:i.user,is_loggedIn:i.is_loggedIn,login_timestamp:i.login_timestamp,launchMode:o,acknowledgements:i.acknowledgements??n.acknowledgements})}updateAuthenticatedUserTimezonePreference({patchState:e,getState:t},{payload:i}){let n=t(),r=n.user,o=Ci(r),a=Ci(o?.enterprise),l=Lt(o?.id),c=Lt(i?.userId),d=Fr(o?.ci_user_id),u=Fr(i?.ciUserId),p=Lt(a?.id??o?.enterprise_id),S=Lt(i?.enterpriseId),m=i?.timezone,h=m===null||typeof m=="string"&&m.length>0&&m.trim()===m;if(n.is_loggedIn!==!0||!r||!o||!a||!l||l!==c||!d||d!==u||!p||p!==S||!h)return;let y=a.preferences,P=y==null?{}:Ci(y);if(!P)return;let M=E({},P);m===null?delete M.timezone:M.timezone=m;let C=E({},a);Object.keys(M).length===0?delete C.preferences:C.preferences=M,e({user:q(E({},r),{enterprise:C})})}resetAuthToDefaultState({patchState:e}){e({user:null,launchMode:null,acknowledgements:void 0})}resetAuthStateAfterLogout({setState:e}){e(E({},zr))}ResetLoggedInStatus({patchState:e}){e({is_loggedIn:!1,launchMode:null})}},ee.\u0275fac=function(t){return new(t||ee)},ee.\u0275prov=N({token:ee,factory:ee.\u0275fac}),ee);v([T(ss)],re.prototype,"setUser",null);v([T(rs)],re.prototype,"updateAuthenticatedUserTimezonePreference",null);v([T(os)],re.prototype,"resetAuthToDefaultState",null);v([T(as)],re.prototype,"resetAuthStateAfterLogout",null);v([T(ls)],re.prototype,"ResetLoggedInStatus",null);re=v([ue({name:"loggeduser",defaults:zr})],re);var Bt={logo:"https://studio.aiagent-eu2.cisco.com/static/assets/img/default_bot_icon.svg",room_persistence_time:240,data_persistence_period:30,transactions_per_pricing_unit:30};Bt[ut.form_validation_basic_info]=!1;Bt[ut.form_validation_avator]=!1;var xr=E({},Bt);delete xr[ut.form_validation_avator];var jr={codeBased:Bt,pipeLineBased:xr},te,$=(te=class{saveBasicInfo({setState:e,getState:t},{payload:i}){let n=t(),r=q(E({}
1,n),{codeBased:E(E({},n.codeBased),i.data)});e(r)}saveNewBotInfoPipelineBased({setState:e,getState:t},{payload:i}){let n=t(),r=q(E({},n),{pipeLineBased:E(E({},n.pipeLineBased),i.data)});e(r)}saveDataManagment({setState:e,getState:t},{payload:i}){let n=t();if(!n)return;let r=q(E({},n),{codeBased:E(E({},n.codeBased),i.data)});e(r)}saveAvatorInfo({patchState:e,getState:t},{payload:i}){let n=t();e({codeBased:q(E({},n.codeBased),{avatars:i.data.avatars})})}savePipeLineInfo({patchState:e,getState:t}){let i=t();e({codeBased:E({},i.codeBased)})}saveCustomnersInfo({setState:e,getState:t}){let i=t();e(E({},i))}SaveIntegrationInfo({patchState:e,getState:t}){let i=t();e({codeBased:E({},i.codeBased)})}resetBuildBotToDefault({patchState:e}){e(jr)}},te.\u0275fac=function(t){return new(t||te)},te.\u0275prov=N({token:te,factory:te.\u0275fac}),te);v([T(Tn)],$.prototype,"saveBasicInfo",null);v([T(En)],$.prototype,"saveNewBotInfoPipelineBased",null);v([T(bn)],$.prototype,"saveDataManagment",null);v([T(An)],$.prototype,"saveAvatorInfo",null);v([T(wn)],$.prototype,"savePipeLineInfo",null);v([T(Pn)],$.prototype,"saveCustomnersInfo",null);v([T(Mn)],$.prototype,"SaveIntegrationInfo",null);v([T(Nn)],$.prototype,"resetBuildBotToDefault",null);$=v([ue({name:"botcreationstate",defaults:jr})],$);var ie,Q=(ie=class{setAllBotListAction({patchState:e,getState:t},{payload:i}){let n=t(),r=i.botList,o=n.allBotList;Array.isArray(o)&&r.forEach((a,l)=>{let c=o.find(d=>d.id===a.id);r[l]=c?q(E(E({},c),a),{bot_metadata:E({},c.bot_metadata)}):a,r[l]=this.updateBotDescription(r[l])}),e({allBotList:r})}addNewBotInAllBotList({patchState:e,getState:t},{payload:i}){let n=t(),r=this.updateBotDescription(i.bot);e({allBotList:[r,...n.allBotList]})}setCodebasedBotList({patchState:e},{payload:t}){e({codeBasedBotList:t.botList})}setPipelineBasedBotList({patchState:e},{payload:t}){e({pipelineBasedBotList:t.botList})}resetBotList({setState:e}){e({codeBasedBotList:null,pipelineBasedBotList:null,allBotList:[]})}saveVersionInfoInBot({setState:e,getState:t},{payload:i}){let n=t(),r=n.allBotList.find(a=>a.id===i.botId),o=i.data;r.store_bot_versions=o,this.updateBotDescription(r),e(E({},n))}updateVersionInfoByIdInBot({setState:e,getState:t},{payload:i}){let n=t(),r=n.allBotList.find(l=>l.id===i.botId),o=r.store_bot_versions||(r.store_bot_versions=[]),a=o.findIndex(l=>l.id===i.data.id);a!==-1?o[a]=E(E({},o[a]),i.data):o.push(i.data),this.updateBotDescription(r),e(E({},n))}updateBotInfoByIdInBotInBotList({patchState:e,getState:t},{payload:i}){let r=t().allBotList.map(o=>{if(o.id===i.botId){let a=q(E(E({},o),i.data),{isMultiLingual:Object.keys(o.languages||{}).length>1});return this.updateBotDescription(a)}else return o});e({allBotList:r})}updateBotDescription(e){let t=ns(e);return Object.assign(e,t),e}},ie.\u0275fac=function(t){return new(t||ie)},ie.\u0275prov=N({token:ie,factory:ie.\u0275fac}),ie);v([T(Cn)],Q.prototype,"setAllBotListAction",null);v([T(Dn)],Q.prototype,"addNewBotInAllBotList",null);v([T(In)],Q.prototype,"setCodebasedBotList",null);v([T(On)],Q.prototype,"setPipelineBasedBotList",null);v([T(Rn)],Q.prototype,"resetBotList",null);v([T(kn)],Q.prototype,"saveVersionInfoInBot",null);v([T(Ln)],Q.prototype,"updateVersionInfoByIdInBot",null);v([T(Bn)],Q.prototype,"updateBotInfoByIdInBotInBotList",null);Q=v([ue({name:"botlist",defaults:{codeBasedBotList:null,pipelineBasedBotList:null,allBotList:null}})],Q);var Ue=class{preload(e,t){return e.data&&e.data.preload?t():be(null)}};var Vr=[Ts,{provide:et,useClass:vs,multi:!0},tt(it())];var Ur={lastUpdated:0,progressbar:{show:!1,loading:!1,value:0},masterIntegrationList:null,masterProfilePermissions:null,backendUrlRoot:Me.backend_root,showBackendUrlRootButton:!1,enterpriseNerData:[],masterPipelineItems:null,autoLogoutTime:Date.now()+3600*1e3,pipelineModulesV2List:[],roleInfoArr:null,botLanguages:[],platformData:{},voiceConfig:null},ne,D=(ne=class{setUsername(){lt.log("resetting state")}SetProgressValue({patchState:e},t){e({progressbar:t.payload.progressbar})}setMasterIntegrationsList({patchState:e},t){let i=t.payload.masterIntegrationList.find(n=>n.key==="ivr");i&&(i.key="voice"),e({masterIntegrationList:t.payload.masterIntegrationList})}setPipelineItemsV2({patchState:e},t){e({pipelineModulesV2List:t.payload.data})}setBotLanguages({patchState:e},t){e({botLanguages:t.payload.botLanguages})}setMasterProfilePermissions({patchState:e},t){e({masterProfilePermissions:t.payload.masterProfilePermissions})}setPlatformData({patchState:e},t){e({platformData:t.payload.platformData})}setVoiceConfig({patchState:e},t){e({voiceConfig:t.payload.voiceConfig})}setBackendURlRoot({patchState:e},t){e({backendUrlRoot:t.payload.url})}setShowBackendURlRoot({patchState:e},t){e({showBackendUrlRootButton:t.payload.showBackendURlRoot})}setEnterpriseNerData({patchState:e},t){e({enterpriseNerData:t.payload.enterpriseNerData})}setPipelineModuleMasterData({patchState:e},t){e({masterPipelineItems:t.payload.masterPipelineItems})}setAutoLogoutTime({patchState:e},t){e({autoLogoutTime:t.payload.time})}resetAppState({patchState:e,getState:t}){let n=t().backendUrlRoot;e(q(E({},Ur),{backendUrlRoot:n}))}setRoleInfo({patchState:e},t){e({roleInfoArr:t.payload.roleInfoArr})}},ne.\u0275fac=function(t){return new(t||ne)},ne.\u0275prov=N({token:ne,factory:ne.\u0275fac}),ne);v([T(Fn)],D.prototype,"setUsername",null);v([T(zn)],D.prototype,"SetProgressValue",null);v([T(xn)],D.prototype,"setMasterIntegrationsList",null);
1v([T(jn)],D.prototype,"setPipelineItemsV2",null);v([T(Vn)],D.prototype,"setBotLanguages",null);v([T(qn)],D.prototype,"setMasterProfilePermissions",null);v([T(Un)],D.prototype,"setPlatformData",null);v([T(Kn)],D.prototype,"setVoiceConfig",null);v([T(Gn)],D.prototype,"setBackendURlRoot",null);v([T($n)],D.prototype,"setShowBackendURlRoot",null);v([T(Qn)],D.prototype,"setEnterpriseNerData",null);v([T(Wn)],D.prototype,"setPipelineModuleMasterData",null);v([T(Xn)],D.prototype,"setAutoLogoutTime",null);v([T(Hn)],D.prototype,"resetAppState",null);v([T(Yn)],D.prototype,"setRoleInfo",null);D=v([ue({name:"app",defaults:Ur})],D);var Kr=(()=>{let e=class e extends st{constructor(i,n,r){super(),this.title=i,this.announcementService=n,this.document=r,this.appTitle="Webex AI Agent Studio",this.routeAnnouncementDelayMs=750,this.routeFocusDelayMs=500,this.routeHeadingLabelDurationMs=1500,this.openDialogContainerSelector=".cdk-overlay-container mat-dialog-container, .cdk-overlay-container .mat-mdc-dialog-container, .cdk-overlay-container .cdk-dialog-container",this.routeAnnouncementFocusAttribute="data-route-announcement-focus",this.pendingAnnouncementTimeout=null,this.pendingFocusTimeout=null}updateTitle(i){let n=this.buildTitle(i)||this.appTitle,r=this.lastAppliedTitle??this.title.getTitle(),o=this.getActiveTitleTrail(i.root);this.title.setTitle(n),this.lastAppliedTitle=n,r!==n&&this.scheduleLoadAnnouncement(this.buildLoadAnnouncement(o)),this.lastTitleTrail=o}buildTitle(i){let n=this.getDeepestPageTitle(i.root);return n?`${n} | ${this.appTitle}`:this.appTitle}getDeepestPageTitle(i){if(!i)return;let n=i.firstChild?this.getDeepestPageTitle(i.firstChild):void 0;return n||this.getTitleFromData(i.data)}getTitleFromData(i){return i.pageTitle??i.pageName??i.title}getActiveTitleTrail(i){if(!i)return[];let n=this.getTitleFromData(i.data),r=i.firstChild?this.getActiveTitleTrail(i.firstChild):[];return n?[n,...r]:r}buildLoadAnnouncement(i){let n=i[0]||this.appTitle,r=i[i.length-1]||n,o=this.lastTitleTrail?.[0];return!!this.lastTitleTrail&&o===n&&!this.areTitleTrailsEqual(this.lastTitleTrail,i)?`${r} section loaded`:`${n} page loaded`}scheduleLoadAnnouncement(i){i&&(this.pendingAnnouncementTimeout&&clearTimeout(this.pendingAnnouncementTimeout),this.pendingAnnouncementTimeout=setTimeout(()=>{this.announcementService.announce(i,"assertive"),this.focusCurrentPageHeading(i),this.pendingAnnouncementTimeout=null},this.routeAnnouncementDelayMs))}focusCurrentPageHeading(i){this.pendingFocusTimeout&&(clearTimeout(this.pendingFocusTimeout),this.pendingFocusTimeout=null),this.pendingFocusTimeout=setTimeout(()=>{if(this.hasOpenDialog()){this.pendingFocusTimeout=null;return}let n=this.document.querySelector('main #section-title, main [data-cy="vm-title"], main h1, main h2, main h3, main [tagname="h1"], main [tagname="h2"], main [tagname="h3"], main [role="heading"]');if(!n){this.pendingFocusTimeout=null;return}let r=this.document.activeElement;if(this.shouldPreserveCurrentFocus(r,n)){this.pendingFocusTimeout=null;return}let o=n.hasAttribute("tabindex"),a=n.getAttribute("tabindex"),l=n.getAttribute("aria-label"),c=()=>{this.clearRouteAnnouncementFocusSafely(n)};n.setAttribute("tabindex","-1"),n.setAttribute("aria-label",i),n.setAttribute(this.routeAnnouncementFocusAttribute,"true"),n.addEventListener("blur",c,{once:!0}),n.focus({preventScroll:!0}),setTimeout(()=>{o?a!==null&&n.setAttribute("tabindex",a):n.removeAttribute("tabindex"),l===null?n.removeAttribute("aria-label"):n.setAttribute("aria-label",l),c()},this.routeHeadingLabelDurationMs),this.pendingFocusTimeout=null},this.routeFocusDelayMs)}hasOpenDialog(){return Array.from(this.document.querySelectorAll(this.openDialogContainerSelector)).some(i=>{let n=window.getComputedStyle(i);return i.getAttribute("aria-hidden")!=="true"&&n.display!=="none"&&n.visibility!=="hidden"})}clearRouteAnnouncementFocusSafely(i){if(i)try{i.removeAttribute(this.routeAnnouncementFocusAttribute)}catch{return}}shouldPreserveCurrentFocus(i,n){if(!i||i===this.document.body||i===this.document.documentElement||i===n||n.contains(i))return!1;let r=n.closest("main");return!(r&&i===r)}
1areTitleTrailsEqual(i,n){return i.length!==n.length?!1:i.every((r,o)=>r===n[o])}};e.\u0275fac=function(n){return new(n||e)(k(nn),k(Zn),k(We))},e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Di=(()=>{let e=class e{constructor(i){this.router=i,i.events.subscribe(n=>{n instanceof cn&&(this.token=n.state.root.firstChild.queryParamMap.get("token"),this.action=n.state.root.firstChild.queryParamMap.get("action"))})}canActivate(){let i=decodeURI(window.location.search).replace("?","").split("&").map(n=>n.split("=")).reduce((n,[r,o])=>(n[r]=o,n),{});if(i.token&&i.action)return!0;if(Es.doesAuthTokenExists())this.router.navigate(["/core/viewbots"]);else return!0}canActivateChild(){return this.canActivate()}canLoad(){return this.canActivate()}};e.\u0275fac=function(n){return new(n||e)(k(rt))},e.\u0275prov=N({token:e,factory:e.\u0275fac});let s=e;return s})();var qr=window.loadJS,Ft=class{static load(e=[],t=[]){return qr(e).then(()=>qr(t))}};var Ke=(()=>{let e=class e{resolve(){return Fi(Ft.load([{async:!1,url:"assets/js/socket.io-v2.2.0.slim.js"}]))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=N({token:e,factory:e.\u0275fac});let s=e;return s})();var da=(()=>{let e=class e extends Wt{_createContainer(){let i=document.querySelector(".cdk-overlay-container"),n=document.querySelector("mdc-iconprovider");n!==null&&(n.insertAdjacentElement("afterbegin",i),this._containerElement=i)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=Gi(e)))(r||e)}})(),e.\u0275prov=N({token:e,factory:e.\u0275fac});let s=e;return s})(),ma=[{path:"prompt",loadChildren:()=>import("./prompt.module-BTXRJADN.js").then(s=>s.PromptModule),data:{pageName:"Prompt Page",pageTitle:"Prompt"}},{path:"tools/:bot_id/:id",data:{preload:!0,pageName:"Edit Tool Page",pageTitle:"Edit Tool"},loadComponent:()=>import("./create-edit-tool.component-SFE7NOPR.js").then(s=>s.CreateEditToolComponent),canDeactivate:[mt],resolve:{test:ht,socket:Ke}},{path:"tools/:bot_id",data:{preload:!0,pageName:"Tool Page",pageTitle:"Tool"},loadComponent:()=>import("./create-edit-tool.component-SFE7NOPR.js").then(s=>s.CreateEditToolComponent),canDeactivate:[mt],resolve:{test:ht,socket:Ke}},{path:`${As.virtualagent}/:stageName`,data:{preload:!0,pageName:"Virtual Agent Page",pageTitle:"Virtual Agent"},loadComponent:()=>import("./llm-options.component-CD3V5CRD.js").then(s=>s.LlmOptionsComponent)},{path:"auth",data:{preload:!0},loadChildren:()=>import("./auth.module-2BODM6FD.js").then(s=>s.AuthModule),canLoad:[Di]},{path:"core",data:{preload:!0},loadChildren:()=>import("./core.module-SCKMKYEF.js").then(s=>s.CoreModule),canLoad:[Jt],resolve:{socket:Ke}},{path:"kbpreview",data:{pageName:"Knowledge Base Preview Page",pageTitle:"Knowledge Base Preview"},loadComponent:()=>import("./kb-preview.component-M47RPWFW.js").then(s=>s.KbPreviewComponent),providers:Vr,resolve:{}}
1,{path:"denied",data:{pageName:"Access Denied Page",pageTitle:"Access Denied"},loadComponent:()=>import("./not-authorised.component-RZSXZLCU.js").then(s=>s.NotAuthorisedComponent)},{path:"redirect_url",data:{pageName:"Redirect Page",pageTitle:"Redirect"},loadComponent:()=>import("./redirect-to-root.component-ZDHX5TNT.js").then(s=>s.RedirectToRootComponent)},{path:"login",redirectTo:"auth/login",pathMatch:"full"},{path:"",redirectTo:"core/viewbots",pathMatch:"full"},{path:"**",data:{pageName:"Not Found Page",pageTitle:"Page Not Found"},loadComponent:()=>import("./not-found.component-VHU6RNUI.js").then(s=>s.NotFoundComponent)}],Gr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ce({type:e,bootstrap:[Br]}),e.\u0275inj=ae({providers:[Ke,is,Di,Jt,ht,Ue,mt,ys,ct,{provide:st,useClass:Kr},{provide:Wt,useClass:da},{provide:sn,useClass:_s},{provide:et,useClass:Ss,multi:!0},tt(it())],imports:[Er,mn.forRoot(ma,{enableTracing:!1,urlUpdateStrategy:"eager",preloadingStrategy:Ue}),_n.forRoot([re,D,gs,Q,$,ps]),kr.forRoot({key:Jn.IMI_BOT_STORAGE_KEY}),wr.forRoot({disabled:Me.production}),dt,fs,kt,bs]});let s=e;return s})();Me.production&&void 0;var ha=()=>en().bootstrapModule(Gr);ha().catch(s=>console.log(s));
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.