PageSourceSearch

https://www.ottonova.de/web-app/main-FADCPCXR.js

js ottonova.de collected 2026-10-03 22:20:09 UTC 109,721 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d501edc4-d61b-5dce-aec5-0328ed947ca2")}catch(e){}}();
3import{a as bo}from"./chunk-T32J2DKQ.js";import{a as Co}from"./chunk-U3WDP74D.js";import{a as dn}from"./chunk-2JR26CXZ.js";import{a as To}from"./chunk-RDX5A7RW.js";import{a as go}from"./chunk-CJO6RAWL.js";import{a as vo,b as So,c as _o}from"./chunk-PFPUEQRZ.js";import{a as Eo}from"./chunk-VUUV7CFQ.js";import{a as Hs,b as Ws}from"./chunk-KMA3AI4E.js";import{b as ho}from"./chunk-A54UTCYR.js";import{b as yo}from"./chunk-4G6T7KY5.js";import"./chunk-KTFPYTHI.js";import"./chunk-GIANT5UN.js";import{l as cn}from"./chunk-RYBU5FEH.js";import{a as Cs,b as bs}from"./chunk-PTBCA4BA.js";import{a as fo}from"./chunk-5EBRE32O.js";import{a as po,b as wt}from"./chunk-A5AN6OQY.js";import{b as ln}from"./chunk-AETVOF33.js";import{A as fe,B as Mt,C as co,D as uo,E as ct,F as mo,G as pn,H as he,I as fn,d as un,e as ro,f as Q,h as Ve,i as ot,j as io,l as at,p as lt,q,r as so,u as oo,v as ao,w as lo,y as tr}from"./chunk-WVK6MZQ6.js";import{e as Ss}from"./chunk-LPNRMEUW.js";import"./chunk-LDFVYP4W.js";import"./chunk-ATKVRASS.js";import"./chunk-QBQEUHJH.js";import{f as Js}from"./chunk-GM2U62VZ.js";import{a as B,c as Re}from"./chunk-Q2GF24HD.js";import{b as Ms,c as ws,d as rn,e as As,f as Is,g as Ps,h as Ns,i as Os,j as sn,k as Ds,l as ks,m as Rs,n as Fs,o as xs,p as Ls,q as js,t as Us,v as zs,x as Bs,y as Ct,z as Vs}from"./chunk-ALOLXHVR.js";import{a as Qs}from"./chunk-X5GONCFP.js";import{c as on,e as $s}from"./chunk-2KUW7V3E.js";import"./chunk-VUNVS2VQ.js";import{b as D,c as z,d as k,e as Tt,f as hs,h as gs,i as ys,j as vs}from"./chunk-4JSDTN37.js";import"./chunk-KNNXGYUF.js";import{a as Ks,b as an,c as qs,e as Be,f as Gs}from"./chunk-CBGDIH3X.js";import{a as nn,b as _s,c as Es,d as Ts,e as it,f as ne}from"./chunk-3LNXQTH3.js";import"./chunk-MUYDGZQV.js";import{a as M,b as pe,e as Ui,f as Wn,i as Ue,j as qt,k as _t}from"./chunk-XO4CLRDD.js";import"./chunk-5TCMR2VX.js";import"./chunk-XMQUFA53.js";import{a as $i,e as Yi,f as Zi,g as tt,h as is,i as nt,k as rt,l as ss,m as en,p as os,r as as}from"./chunk-HLQVJNKS.js";import{b as mn,c as be,d as Xs,g as Ys,i as Zs,j as bt,r as eo,s as to,x as no}from"./chunk-4ZNNRBIX.js";import{a as st}from"./chunk-X6GXMYT3.js";import"./chunk-MQ2RQYOT.js";import{c as Vi,d as De}from"./chunk-QSGHFY7I.js";import"./chunk-VJVLIURH.js";import{X as Bi,Y as Ye,_ as Ki,aa as Gt,ba as qi,ca as Gi,da as Qi,e as zi,ea as Hi,fa as Qt,ga as Ht,ha as Jn,ia as Wi,ja as Ji,ka as Wt,la as et,ma as Xi,na as ze,oa as Jt,pa as Xt,qa as Yt}from"./chunk-WAFUM7SX.js";import{a as Xn,c as ls,f as Yn,g as tn,h as cs,i as ds,j as us,k as Zn,l as ms,m as ps,n as ae,u as Et,v as er,w as fs}from"./chunk-ZFGVLW7O.js";import{a as Ze,b as J}from"./chunk-GA67CPON.js";import{$,$b as Ai,$c as Zt,A as Ut,Aa as vi,Ac as ce,Ba as Si,Ca as _i,Cc as Oi,F as zt,G as Ie,Hc as Kt,Ia as X,Jb as _e,Jc as Di,Ka as Ei,Kb as wi,Kc as ki,Lc as Ri,Mc as Fi,Nc as xi,O as mi,Oc as Li,P as pi,Pc as ji,Qc as es,R as fi,Sa as Oe,T as Se,Ta as K,Tc as ts,U as me,V as oe,Vc as ns,X as Pe,Xa as yt,Xc as rs,Y as N,Yc as ke,_ as T,aa as je,ac as Ii,b as $n,ba as Z,bb as ee,c as We,ca as u,e as ii,ea as Bt,f as si,g as oi,ga as hi,gc as $t,h as ai,ib as vt,j as Ae,ka as Kn,kb as Ti,l as li,la as qn,lb as Ci,m as ci,mb as bi,n as b,nb as G,o as di,oa as Ne,ob as W,oc as Pi,p as Je,pb as te,qb as Qn,r as ui,rb as Hn,sa as Vt,ta as gi,tb as Mi,u as ht,ub as Ce,v as j,vb as St,w as gt,wc as Ni,y as Xe,ya as yi,z as jt,za as Gn}from"./chunk-E2S34OY2.js";import{a as h,b as _,c as ni,h as ri}from"./chunk-PNGTMBFY.js";function Ll(r){let t=r,e=Math.floor(Math.abs(r)),n=r.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Mo=["de",[["AM","PM"],void 0,void 0],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],void 0,void 0],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}
3, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","\xB7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euro",{ATS:["\xF6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",Ll];function wo(r){return new N(3e3,!1)}function jl(){return new N(3100,!1)}function Ul(){return new N(3101,!1)}function zl(r){return new N(3001,!1)}function Bl(r){return new N(3003,!1)}function Vl(r){return new N(3004,!1)}function Io(r,t){return new N(3005,!1)}function Po(){return new N(3006,!1)}function No(){return new N(3007,!1)}function Oo(r,t){return new N(3008,!1)}function Do(r){return new N(3002,!1)}function ko(r,t,e,n,i){return new N(3010,!1)}function Ro(){return new N(3011,!1)}function Fo(){return new N(3012,!1)}function xo(){return new N(3200,!1)}function Lo(){return new N(3202,!1)}function jo(){return new N(3013,!1)}function Uo(r){return new N(3014,!1)}function zo(r){return new N(3015,!1)}function Bo(r){return new N(3016,!1)}function Vo(r,t){return new N(3404,!1)}function $l(r){return new N(3502,!1)}function $o(r){return new N(3503,!1)}function Ko(){return new N(3300,!1)}function qo(r){return new N(3504,!1)}function Go(r){return new N(3301,!1)}function Qo(r,t){return new N(3302,!1)}function Ho(r){return new N(3303,!1)}function Wo(r,t){return new N(3400,!1)}function Jo(r){return new N(3401,!1)}function Xo(r){return new N(3402,!1)}function Yo(r,t){return new N(3505,!1)}function Me(r){switch(r.length){case 0:return new Ue;case 1:return r[0];default:return new qt(r)}}function sr(r,t,e=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(t.forEach(c=>{let l=c.get("offset"),m=l==o,d=m&&a||new Map;c.forEach((g,v)=>{let p=v,f=g;if(v!=="offset")switch(p=r.normalizePropertyName(p,i),f){case _t:f=e.get(v);break;case pe:f=n.get(v);break;default:f=r.normalizeStyleValue(v,p,f,i);break}d.set(p,f)}),m||s.push(d),a=d,o=l}),i.length)throw $l(i);return s}function hn(r,t,e,n){switch(t){case"start":r.onStart(()=>n(e&&nr(e,"start",r)));break;case"done":r.onDone(()=>n(e&&nr(e,"done",r)));break;case"destroy":r.onDestroy(()=>n(e&&nr(e,"destroy",r)));break}}function nr(r,t,e){let n=e.totalTime,i=!!e.disabled,s=gn(r.element,r.triggerName,r.fromState,r.toState,t||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function gn(r,t,e,n,i="",s=0,o){return{element:r,triggerName:t,fromState:e,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function re(r,t,e){let n=r.get(t);return n||r.set(t,n=e),n}function or(r){let t=r.indexOf(":"),e=r.substring(1,t),n=r.slice(t+1);return[e,n]}var Kl=typeof document>"u"?null:document.documentElement;function yn(r){let t=r.parentNode||r.host||null;return t===Kl?null:t}function ql(r){return r.substring(1,6)=="ebkit"}var $e=null,Ao=!1;function Zo(r){$e||($e=Gl()||{},Ao=$e.style?"WebkitAppearance"in $e.style:!1);let t=!0;return $e.style&&!ql(r)&&(t=r in $e.style,!t&&Ao&&(t="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in $e.style)),t}function Gl(){return typeof document<"u"?document.body:null}function ar(r,t){for(;t;){if(t===r)return!0;t=yn(t)}return!1}function lr(r,t,e){if(e)return Array.from(r.querySelectorAll(t));let n=r.querySelector(t);return n?[n]:[]}var Ql=1e3,cr="{{",Hl="}}",dr="ng-enter",vn="ng-leave",At="ng-trigger",It=".ng-trigger",ur="ng-animating",Sn=".ng-animating";function Ee(r){if(typeof r=="number")return r;let t=r.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:rr(parseFloat(t[1]),t[2])}function rr(r,t){return t==="s"?r*Ql:r}function Pt(r,t,e){return r.hasOwnProperty("duration")?r:Wl(r,t,e)}function Wl(r,t,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return t.push(wo(r)),{duration:0,delay:0,easing:""};i=rr(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(s=rr(parseFloat(c),a[4]));let l=a[5];l&&(o=l)}else i=r;if(!e){let a=!1,c=t.length;
vendor: 52,154 bytes, line 3
3i<0&&(t.push(jl()),a=!0),s<0&&(t.push(Ul()),a=!0),a&&t.splice(c,0,wo(r))}return{duration:i,delay:s,easing:o}}function ea(r){return r.length?r[0]instanceof Map?r:r.map(t=>new Map(Object.entries(t))):[]}function ge(r,t,e){t.forEach((n,i)=>{let s=_n(i);e&&!e.has(i)&&e.set(i,r.style[s]),r.style[s]=n})}function Fe(r,t){t.forEach((e,n)=>{let i=_n(n);r.style[i]=""})}function dt(r){return Array.isArray(r)?r.length==1?r[0]:Ui(r):r}function ta(r,t,e){let n=t.params||{},i=mr(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||e.push(zl(s))})}var ir=new RegExp(`${cr}\\s*(.+?)\\s*${Hl}`,"g");function mr(r){let t=[];if(typeof r=="string"){let e;for(;e=ir.exec(r);)t.push(e[1]);ir.lastIndex=0}return t}function ut(r,t,e){let n=`${r}`,i=n.replace(ir,(s,o)=>{let a=t[o];return a==null&&(e.push(Bl(o)),a=""),a.toString()});return i==n?r:i}var Jl=/-+([a-z0-9])/g;function _n(r){return r.replace(Jl,(...t)=>t[1].toUpperCase())}function na(r,t){return r===0||t===0}function ra(r,t,e){if(e.size&&t.length){let n=t[0],i=[];if(e.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;s<t.length;s++){let o=t[s];i.forEach(a=>o.set(a,En(r,a)))}}return t}function ie(r,t,e){switch(t.type){case M.Trigger:return r.visitTrigger(t,e);case M.State:return r.visitState(t,e);case M.Transition:return r.visitTransition(t,e);case M.Sequence:return r.visitSequence(t,e);case M.Group:return r.visitGroup(t,e);case M.Animate:return r.visitAnimate(t,e);case M.Keyframes:return r.visitKeyframes(t,e);case M.Style:return r.visitStyle(t,e);case M.Reference:return r.visitReference(t,e);case M.AnimateChild:return r.visitAnimateChild(t,e);case M.AnimateRef:return r.visitAnimateRef(t,e);case M.Query:return r.visitQuery(t,e);case M.Stagger:return r.visitStagger(t,e);default:throw Vl(t.type)}}function En(r,t){return window.getComputedStyle(r)[t]}var Pr=(()=>{class r{validateStyleProperty(e){return Zo(e)}containsElement(e,n){return ar(e,n)}getParentElement(e){return yn(e)}query(e,n,i){return lr(e,n,i)}computeStyle(e,n,i){return i||""}animate(e,n,i,s,o,a=[],c){return new Ue(i,s)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})(),qe=class{static NOOP=new Pr},Ge=class{};var Xl=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"]),wn=class extends Ge{normalizePropertyName(t,e){return _n(t)}normalizeStyleValue(t,e,n,i){let s="",o=n.toString().trim();if(Xl.has(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Io(t,n))}return o+s}};var An="*";function Yl(r,t){let e=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>Zl(n,e,t)):e.push(r),e}function Zl(r,t,e){if(r[0]==":"){let c=ec(r,e);if(typeof c=="function"){t.push(c);return}r=c}let n=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(zo(r)),t;let i=n[1],s=n[2],o=n[3];t.push(ia(i,o));let a=i==An&&o==An;s[0]=="<"&&!a&&t.push(ia(o,i))}function ec(r,t){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return t.push(Bo(r)),"* => *"}}var Tn=new Set(["true","1"]),Cn=new Set(["false","0"]);function ia(r,t){let e=Tn.has(r)||Cn.has(r),n=Tn.has(t)||Cn.has(t);return(i,s)=>{let o=r==An||r==i,a=t==An||t==s;return!o&&e&&typeof i=="boolean"&&(o=i?Tn.has(r):Cn.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?Tn.has(t):Cn.has(t)),o&&a}}var fa=":self",tc=new RegExp(`s*${fa}s*,?`,"g");function ha(r,t,e,n){return new vr(r).build(t,e,n)}var sa="",vr=class{_driver;constructor(t){this._driver=t}build(t,e,n){let i=new Sr(e);return this._resetContextStyleTimingState(i),ie(this,dt(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=sa,t.collectedStyles=new Map,t.collectedStyles.set(sa,new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0,s=[],o=[];return t.name.charAt(0)=="@"&&e.errors.push(Po()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==M.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(m=>{c.name=m,s.push(this.visitState(c,e))}),c.name=l}else if(a.type==M.Transition){let c=this.visitTransition(a,e);n+=c.queryCount,i+=c.depCount,o.push(c)}else e.errors.push(No())}),{type:M.Trigger,name:t.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(t,e){let n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{mr(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&e.errors.push(Oo(t.name,[...s.values()]))}return{type:M.State,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let n=ie(this,dt(t.animation),e),i=Yl(t.expr,e.errors);return{type:M.Transition,matchers:i,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Ke(t.options)}}visitSequence(t,e){return{type:M.Sequence,steps:t.steps.map(n=>ie(this,n,e)),options:Ke(t.options)}}visitGroup(t,e){let n=e.currentTime,i=0,s=t.steps.map(o=>{e.currentTime=n;let a=ie(this,o,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:M.Group,steps:s,options:Ke(t.options)}}visitAnimate(t,e){let n=sc(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:Wn({});if(s.type==M.Keyframes)i=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=Wn(l)}e.currentTime+=n.duration+n.delay;let c=this.visitStyle(o,e);c.isEmptyStep=a,i=c}return e.currentAnimateTimings=null,{type:M.Animate,timings:n,style:i,options:null}}visitStyle(t,e){let n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){let n=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===pe?n.push(a):e.errors.push(Do(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let c of a.values())if(c.toString().indexOf(cr)>=0){s=!0;break}}}),{type:M.Style,styles:n,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let n=e.currentAnimateTimings,i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{let l=e.collectedStyles.get(e.currentQuerySelector),m=l.get(c),d=!0;m&&(s!=i&&s>=m.startTime&&i<=m.endTime&&(e.errors.push(ko(c,m.startTime,m.endTime,s,i)),d=!1),s=m.startTime),d&&l.set(c,{startTime:s,endTime:i}),e.options&&ta(a,e.options,e.errors)})})}visitKeyframes(t,e){let n={type:M.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Ro()),n;let i=1,s=0,o=[],a=!1,c=!1,l=0,m=t.steps.map(A=>{let R=this._makeStyleAst(A,e),x=R.offset!=null?R.offset:ic(R.styles),C=0;return x!=null&&(s++,C=R.offset=x),c=c||C<0||C>1,a=a||C<l,l=C,o.push(C),R});c&&e.errors.push(Fo()),a&&e.errors.push(xo());let d=t.steps.length,g=0;s>0&&s<d?e.errors.push(Lo()):s==0&&(g=i/(d-1));let v=d-1,p=e.currentTime,f=e.currentAnimateTimings,w=f.duration;return m.forEach((A,R)=>{let x=g>0?R==v?1:g*R:o[R],C=x*w;e.currentTime=p+f.delay+C,f.duration=C,this._validateStyleAst(A,e),A.offset=x,n.styles.push(A)}),n}visitReference(t,e){return{type:M.Reference,animation:ie(this,dt(t.animation),e),options:Ke(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:M.AnimateChild,options:Ke(t.options)}}visitAnimateRef(t,e){return{type:M.AnimateRef,animation:this.visitReference(t.animation,e),options:Ke(t.options)}}visitQuery(t,e){let n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;let[s,o]=nc(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,re(e.collectedStyles,e.currentQuerySelector,new Map);let a=ie(this,dt(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:M.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ke(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(jo());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Pt(t.timings,e.errors,!0);return{type:M.Stagger,animation:ie(this,dt(t.animation),e),timings:n,options:null}}};function nc(r){let t=!!r.split(/\s*,\s*/).find(e=>e==fa);return t&&(r=r.replace(tc,"")),r=r.replace(/@\*/g,It).replace(/@\w+/g,e=>It+"-"+e.slice(1)).replace(/:animating/g,Sn),[r,t]}function rc(r){return r?h({},r):null}var Sr=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(t){this.errors=t}};function ic(r){if(typeof r=="string")return null;let t=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let e=r;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function sc(r,t){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=Pt(r,t).duration;return pr(s,0,"")}let e=r;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=pr(0,0,"");return s.dynamic=!0,s.strValue=e,s}let i=Pt(e,t);return pr(i.duration,i.delay,i.easing)}function Ke(r){return r?(r=h({},r),r.params&&(r.params=rc(r.params))):r={},r}function pr(r,t,e){return{duration:r,delay:t,easing:e}}function Nr(r,t,e,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:t,preStyleProps:e,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var Ot=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},oc=1,ac=":enter",lc=new RegExp(ac,"g"),cc=":leave",dc=new RegExp(cc,"g");function ga(r,t,e,n,i,s=new Map,o=new Map,a,c,l=[]){return new _r().buildKeyframes(r,t,e,n,i,s,o,a,c,l)}var _r=class{buildKeyframes(t,e,n,i,s,o,a,c,l,m=[]){l=l||new Ot;let d=new Er(t,e,l,i,s,m,[]);d.options=c;let g=c.delay?Ee(c.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([o],null,d.errors,c),ie(this,n,d);let v=d.timelines.filter(p=>p.containsAnimation());if(v.length&&a.size){let p;for(let f=v.length-1;f>=0;f--){let w=v[f];if(w.element===e){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return v.length?v.map(p=>p.buildKeyframes()):[Nr(e,[],[],[],0,g,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let n=e.subInstructions.get(e.element);if(n){let i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){let n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(let i of t){let s=i?.delay;if(s){let o=typeof s=="number"?s:Ee(ut(s,i?.params??{},e.errors));n.delayNextStep(o)}}}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime,o=n.duration!=null?Ee(n.duration):null,a=n.delay!=null?Ee(n.delay):null;return o!==0&&t.forEach(c=>{let l=e.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ie(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let n=e.subContextCount,i=e,s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==M.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=In);let o=Ee(s.delay);i.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ie(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let n=[],i=e.currentTimeline.currentTime,s=t.options&&t.options.delay?Ee(t.options.delay):0;t.steps.forEach(o=>{let a=e.createSubContext(t.options);s&&a.delayNextStep(s),ie(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let n=t.strValue,i=e.params?ut(n,e.params,e.errors):n;return Pt(i,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());let s=t.style;s.type==M.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*s),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){let n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?Ee(i.delay):0;s&&(e.previousNode.type===M.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=In);let o=n,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,m)=>{e.currentQueryIndex=m;let d=e.createSubContext(t.options,l);s&&d.delayNextStep(s),l===e.element&&(c=d.currentTimeline),ie(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let g=d.currentTimeline.currentTime;o=Math.max(o,g)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let n=e.parentContext,i=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1),c=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime;break}let m=e.currentTimeline;c&&m.delayNextStep(c);let d=m.currentTime;ie(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-d+(i.startTime-n.currentTimeline.startTime)}},In={},Er=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=In;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,n,i,s,o,a,c){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=c||new Pn(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let n=t,i=this.options;n.duration!=null&&(i.duration=Ee(n.duration)),n.delay!=null&&(i.delay=Ee(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=ut(s[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let n=t.params={};Object.keys(e).forEach(i=>{n[i]=e[i]})}}return t}createSubContext(t=null,e,n){let i=e||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=In,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){let i={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},s=new Tr(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,o){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(lc,"."+this._enterClassName),t=t.replace(dc,"."+this._leaveClassName);let c=n!=1,l=this._driver.query(this.element,t,c);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(Uo(e)),a}},Pn=class r{_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(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new r(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=oc,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||pe),this._currentKeyframe.set(e,pe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&this._previousKeyframe.set("easing",e);let s=i&&i.params||{},o=uc(t,this._globalTimelineStyles);for(let[a,c]of o){let l=ut(c,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??pe),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{let i=this._styleSummary.get(n);(!i||e.time>i.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((m,d)=>{m===_t?t.add(d):m===pe&&e.add(d)}),n||l.set("offset",c/this.duration),i.push(l)});let s=[...t.values()],o=[...e.values()];if(n){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Nr(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},Tr=class extends Pn{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,n,i,s,o,a=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],o=n+e,a=e/o,c=new Map(t[0]);c.set("offset",0),s.push(c);let l=new Map(t[0]);l.set("offset",oa(a)),s.push(l);let m=t.length-1;for(let d=1;d<=m;d++){let g=new Map(t[d]),v=g.get("offset"),p=e+v*n;g.set("offset",oa(p/o)),s.push(g)}n=o,e=0,i="",t=s}return Nr(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}};function oa(r,t=3){let e=Math.pow(10,t-1);return Math.round(r*e)/e}function uc(r,t){let e=new Map,n;return r.forEach(i=>{if(i==="*"){n??=t.keys();for(let s of n)e.set(s,pe)}else for(let[s,o]of i)e.set(s,o)}),e}function aa(r,t,e,n,i,s,o,a,c,l,m,d,g){return{type:0,element:r,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:m,totalTime:d,errors:g}}var fr={},Nn=class{_triggerName;ast;_stateStyles;constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return mc(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t?.toString())||i),i?i.buildStyles(e,n):new Map}build(t,e,n,i,s,o,a,c,l,m){let d=[],g=this.ast.options&&this.ast.options.params||fr,v=a&&a.params||fr,p=this.buildStyles(n,v,d),f=c&&c.params||fr,w=this.buildStyles(i,f,d),A=new Set,R=new Map,x=new Map,C=i==="void",F={params:ya(f,g),delay:this.ast.options?.delay},I=m?[]:ga(t,e,this.ast.animation,s,o,p,w,F,l,d),U=0;return I.forEach(L=>{U=Math.max(L.duration+L.delay,U)}),d.length?aa(e,this._triggerName,n,i,C,p,w,[],[],R,x,U,d):(I.forEach(L=>{let ue=L.element,He=re(R,ue,new Set);L.preStyleProps.forEach(xe=>He.add(xe));let Yr=re(x,ue,new Set);L.postStyleProps.forEach(xe=>Yr.add(xe)),ue!==e&&A.add(ue)}),aa(e,this._triggerName,n,i,C,p,w,I,[...A.values()],R,x,U))}};function mc(r,t,e,n,i){return r.some(s=>s(t,e,n,i))}function ya(r,t){let e=h({},t);return Object.entries(r).forEach(([n,i])=>{i!=null&&(e[n]=i)}),e}var Cr=class{styles;defaultParams;normalizer;constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){let n=new Map,i=ya(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=ut(o,i,e));let c=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,c,o,e),n.set(a,o)})}),n}};function pc(r,t,e){return new br(r,t,e)}var br=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,e.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Cr(i.style,s,n))}),la(this.states,"true","1"),la(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Nn(t,i,this.states))}),this.fallbackTransition=fc(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(o=>o.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}};function fc(r,t,e){let n=[(o,a)=>!0],i={type:M.Sequence,steps:[],options:null},s={type:M.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Nn(r,s,t)}function la(r,t,e){r.has(t)?r.has(e)||r.set(e,r.get(t)):r.has(e)&&r.set(t,r.get(e))}var hc=new Ot,Mr=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n}register(t,e){let n=[],i=[],s=ha(this._driver,e,n,i);if(n.length)throw $o(n);this._animations.set(t,s)}_buildPlayer(t,e,n){let i=t.element,s=sr(this._normalizer,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){let i=[],s=this._animations.get(t),o,a=new Map;if(s?(o=ga(this._driver,e,s,dr,vn,new Map,new Map,n,hc,i),o.forEach(m=>{let d=re(a,m.element,new Map);m.postStyleProps.forEach(g=>d.set(g,null))})):(i.push(Ko()),o=[]),i.length)throw qo(i);a.forEach((m,d)=>{m.forEach((g,v)=>{m.set(v,this._driver.computeStyle(d,v,pe))})});let c=o.map(m=>{let d=a.get(m.element);return this._buildPlayer(m,new Map,d)}),l=Me(c);return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw Go(t);return e}listen(t,e,n,i){let s=gn(e,"","","");return hn(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if(n=="register"){this.register(t,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(t,e,o);return}let s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},ca="ng-animate-queued",gc=".ng-animate-queued",hr="ng-animate-disabled",yc=".ng-animate-disabled",vc="ng-star-inserted",Sc=".ng-star-inserted",_c=[],va={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ec={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ye="__ng_removed",Dt=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=Cc(i),n){let s=t,{value:o}=s,a=ni(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let n=this.options.params;Object.keys(e).forEach(i=>{n[i]==null&&(n[i]=e[i])})}}},Nt="void",gr=new Dt(Nt),wr=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+t,de(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.has(e))throw Qo(n,e);if(n==null||n.length==0)throw Ho(e);if(!bc(n))throw Wo(n,e);let s=re(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);let a=re(this._engine.statesByElement,t,new Map);return a.has(e)||(de(t,At),de(t,At+"-"+e),a.set(e,gr)),()=>{this._engine.afterFlush(()=>{let c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw Jo(t);return e}trigger(t,e,n,i=!0){let s=this._getTrigger(e),o=new kt(this.id,e,t),a=this._engine.statesByElement.get(t);a||(de(t,At),de(t,At+"-"+e),this._engine.statesByElement.set(t,a=new Map));let c=a.get(e),l=new Dt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=gr),!(l.value===Nt)&&c.value===l.value){if(!Ac(c.params,l.params)){let f=[],w=s.matchStyles(c.value,c.params,f),A=s.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{Fe(t,w),ge(t,A)})}return}let g=re(this._engine.playersByElement,t,[]);g.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let v=s.matchTransition(c.value,l.value,t,l.params),p=!1;if(!v){if(!i)return;v=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:v,fromState:c,toState:l,player:o,isFallbackTransition:p}),p||(de(t,ca),o.onStart(()=>{mt(t,ca)})),o.onDone(()=>{let f=this.players.indexOf(o);f>=0&&this.players.splice(f,1);let w=this._engine.playersByElement.get(t);if(w){let A=w.indexOf(o);A>=0&&w.splice(A,1)}}),this.players.push(o),g.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let n=this._engine.driver.query(t,It,!0);n.forEach(i=>{if(i[ye])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,n,i){let s=this._engine.statesByElement.get(t),o=new Map;if(s){let a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){let m=this.trigger(t,l,Nt,i);m&&a.push(m)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),n&&Me(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){let i=new Set;e.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let c=this._triggers.get(o).fallbackTransition,l=n.get(o)||gr,m=new Dt(Nt),d=new kt(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:c,fromState:l,toState:m,player:d,isFallbackTransition:!0})})}}removeNode(t,e){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(t):[];if(s&&s.length)i=!0;else{let o=t;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{let s=t[ye];(!s||s===va)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){de(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let c=gn(s,n.triggerName,n.fromState.value,n.toState.value);c._data=t,hn(n.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Ar=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=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){let n=new wr(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){let c=i.get(a);if(c){let l=n.indexOf(c);n.splice(l+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(t)}else n.push(t);return i.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,n=this.statesByElement.get(t);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&e.add(s)}}return e}trigger(t,e,n,i){if(bn(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!bn(e))return;let s=e[ye];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),de(t,hr)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),mt(t,hr))}removeNode(t,e,n){if(bn(e)){let i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,i,s){this.collectedLeaveElements.push(e),e[ye]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,n,i,s){return bn(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,It,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Sn,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Me(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[ye];if(e&&e.setForRemoval){if(t[ye]=va,e.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(hr)&&this.markElementAsDisabled(t,!1),this.driver.query(t,yc,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];de(i,vc)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,t)}finally{for(let i=0;i<n.length;i++)n[i]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?Me(e).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(t){throw Xo(t)}_flushAnimations(t,e){let n=new Ot,i=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,m=new Set;this.disabledNodes.forEach(y=>{m.add(y);let S=this.driver.query(y,gc,!0);for(let E=0;E<S.length;E++)m.add(S[E])});let d=this.bodyNode,g=Array.from(this.statesByElement.keys()),v=ma(g,this.collectedEnterElements),p=new Map,f=0;v.forEach((y,S)=>{let E=dr+f++;p.set(S,E),y.forEach(P=>de(P,E))});let w=[],A=new Set,R=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let S=this.collectedLeaveElements[y],E=S[ye];E&&E.setForRemoval&&(w.push(S),A.add(S),E.hasAnimation?this.driver.query(S,Sc,!0).forEach(P=>A.add(P)):R.add(S))}let x=new Map,C=ma(g,Array.from(A));C.forEach((y,S)=>{let E=vn+f++;x.set(S,E),y.forEach(P=>de(P,E))}),t.push(()=>{v.forEach((y,S)=>{let E=p.get(S);y.forEach(P=>mt(P,E))}),C.forEach((y,S)=>{let E=x.get(S);y.forEach(P=>mt(P,E))}),w.forEach(y=>{this.processLeaveNode(y)})});let F=[],I=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(E=>{let P=E.player,H=E.element;if(F.push(P),this.collectedEnterElements.length){let Y=H[ye];if(Y&&Y.setForMove){if(Y.previousTriggersValues&&Y.previousTriggersValues.has(E.triggerName)){let Le=Y.previousTriggersValues.get(E.triggerName),le=this.statesByElement.get(E.element);if(le&&le.has(E.triggerName)){let Lt=le.get(E.triggerName);Lt.value=Le,le.set(E.triggerName,Lt)}}P.destroy();return}}let ve=!d||!this.driver.containsElement(d,H),se=x.get(H),we=p.get(H),V=this._buildInstruction(E,n,we,se,ve);if(V.errors&&V.errors.length){I.push(V);return}if(ve){P.onStart(()=>Fe(H,V.fromStyles)),P.onDestroy(()=>ge(H,V.toStyles)),i.push(P);return}if(E.isFallbackTransition){P.onStart(()=>Fe(H,V.fromStyles)),P.onDestroy(()=>ge(H,V.toStyles)),i.push(P);return}let ti=[];V.timelines.forEach(Y=>{Y.stretchStartingKeyframe=!0,this.disabledNodes.has(Y.element)||ti.push(Y)}),V.timelines=ti,n.append(H,V.timelines);let xl={instruction:V,player:P,element:H};o.push(xl),V.queriedElements.forEach(Y=>re(a,Y,[]).push(P)),V.preStyleProps.forEach((Y,Le)=>{if(Y.size){let le=c.get(Le);le||c.set(Le,le=new Set),Y.forEach((Lt,Vn)=>le.add(Vn))}}),V.postStyleProps.forEach((Y,Le)=>{let le=l.get(Le);le||l.set(Le,le=new Set),Y.forEach((Lt,Vn)=>le.add(Vn))})});if(I.length){let y=[];I.forEach(S=>{y.push(Yo(S.triggerName,S.errors))}),F.forEach(S=>S.destroy()),this.reportError(y)}let U=new Map,L=new Map;o.forEach(y=>{let S=y.element;n.has(S)&&(L.set(S,S),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,U))}),i.forEach(y=>{let S=y.element;this._getPreviousPlayers(S,!1,y.namespaceId,y.triggerName,null).forEach(P=>{re(U,S,[]).push(P),P.destroy()})});let ue=w.filter(y=>pa(y,c,l)),He=new Map;ua(He,this.driver,R,l,pe).forEach(y=>{pa(y,c,l)&&ue.push(y)});let xe=new Map;v.forEach((y,S)=>{ua(xe,this.driver,new Set(y),c,_t)}),ue.forEach(y=>{let S=He.get(y),E=xe.get(y);He.set(y,new Map([...S?.entries()??[],...E?.entries()??[]]))});let Bn=[],Zr=[],ei={};o.forEach(y=>{let{element:S,player:E,instruction:P}=y;if(n.has(S)){if(m.has(S)){E.onDestroy(()=>ge(S,P.toStyles)),E.disabled=!0,E.overrideTotalTime(P.totalTime),i.push(E);return}let H=ei;if(L.size>1){let se=S,we=[];for(;se=se.parentNode;){let V=L.get(se);if(V){H=V;break}we.push(se)}we.forEach(V=>L.set(V,H))}let ve=this._buildAnimation(E.namespaceId,P,U,s,xe,He);if(E.setRealPlayer(ve),H===ei)Bn.push(E);else{let se=this.playersByElement.get(H);se&&se.length&&(E.parentPlayer=Me(se)),i.push(E)}}else Fe(S,P.fromStyles),E.onDestroy(()=>ge(S,P.toStyles)),Zr.push(E),m.has(S)&&i.push(E)}),Zr.forEach(y=>{let S=s.get(y.element);if(S&&S.length){let E=Me(S);y.setRealPlayer(E)}}),i.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<w.length;y++){let S=w[y],E=S[ye];if(mt(S,vn),E&&E.hasAnimation)continue;let P=[];if(a.size){let ve=a.get(S);ve&&ve.length&&P.push(...ve);let se=this.driver.query(S,Sn,!0);for(let we=0;we<se.length;we++){let V=a.get(se[we]);V&&V.length&&P.push(...V)}}let H=P.filter(ve=>!ve.destroyed);H.length?Mc(this,S,H):this.processLeaveNode(S)}return w.length=0,Bn.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let S=this.players.indexOf(y);this.players.splice(S,1)}),y.play()}),Bn}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let o=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let c=!s||s==Nt;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||o.push(l)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(t,e,n){let i=e.triggerName,s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:i;for(let c of e.timelines){let l=c.element,m=l!==s,d=re(n,l,[]);this._getPreviousPlayers(l,m,o,a,e.toState).forEach(v=>{let p=v.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),v.destroy(),d.push(v)})}Fe(s,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){let a=e.triggerName,c=e.element,l=[],m=new Set,d=new Set,g=e.timelines.map(p=>{let f=p.element;m.add(f);let w=f[ye];if(w&&w.removedBeforeQueried)return new Ue(p.duration,p.delay);let A=f!==c,R=wc((n.get(f)||_c).map(U=>U.getRealPlayer())).filter(U=>{let L=U;return L.element?L.element===f:!1}),x=s.get(f),C=o.get(f),F=sr(this._normalizer,p.keyframes,x,C),I=this._buildPlayer(p,F,R);if(p.subTimeline&&i&&d.add(f),A){let U=new kt(t,a,f);U.setRealPlayer(I),l.push(U)}return I});l.forEach(p=>{re(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Tc(this.playersByQueriedElement,p.element,p))}),m.forEach(p=>de(p,ur));let v=Me(g);return v.onDestroy(()=>{m.forEach(p=>mt(p,ur)),ge(c,e.toStyles)}),d.forEach(p=>{re(i,p,[]).push(v)}),v}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ue(t.duration,t.delay)}},kt=class{namespaceId;triggerName;element;_player=new Ue;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(i=>hn(t,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){re(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function Tc(r,t,e){let n=r.get(t);if(n){if(n.length){let i=n.indexOf(e);n.splice(i,1)}n.length==0&&r.delete(t)}return n}function Cc(r){return r??null}function bn(r){return r&&r.nodeType===1}function bc(r){return r=="start"||r=="done"}function da(r,t){let e=r.style.display;return r.style.display=t??"none",e}function ua(r,t,e,n,i){let s=[];e.forEach(c=>s.push(da(c)));let o=[];n.forEach((c,l)=>{let m=new Map;c.forEach(d=>{let g=t.computeStyle(l,d,i);m.set(d,g),(!g||g.length==0)&&(l[ye]=Ec,o.push(l))}),r.set(l,m)});let a=0;return e.forEach(c=>da(c,s[a++])),o}function ma(r,t){let e=new Map;if(r.forEach(a=>e.set(a,[])),t.length==0)return e;let n=1,i=new Set(t),s=new Map;function o(a){if(!a)return n;let c=s.get(a);if(c)return c;let l=a.parentNode;return e.has(l)?c=l:i.has(l)?c=n:c=o(l),s.set(a,c),c}return t.forEach(a=>{let c=o(a);c!==n&&e.get(c).push(a)}),e}function de(r,t){r.classList?.add(t)}function mt(r,t){r.classList?.remove(t)}function Mc(r,t,e){Me(e).onDone(()=>r.processLeaveNode(t))}function wc(r){let t=[];return Sa(r,t),t}function Sa(r,t){for(let e=0;e<r.length;e++){let n=r[e];n instanceof qt?Sa(n.players,t):t.push(n)}}function Ac(r,t){let e=Object.keys(r),n=Object.keys(t);if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let s=e[i];if(!t.hasOwnProperty(s)||r[s]!==t[s])return!1}return!0}function pa(r,t,e){let n=e.get(r);if(!n)return!1;let i=t.get(r);return i?n.forEach(s=>i.add(s)):t.set(r,n),e.delete(r),!0}var pt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Ar(t.body,e,n),this._timelineEngine=new Mr(t.body,e,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,e,n,i,s){let o=t+"-"+i,a=this._triggerCache[o];if(!a){let c=[],l=[],m=ha(this._driver,s,c,l);if(c.length)throw Vo(i,c);a=pc(i,m,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if(n.charAt(0)=="@"){let[s,o]=or(n),a=i;this._timelineEngine.command(s,e,o,a)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if(n.charAt(0)=="@"){let[o,a]=or(n);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Ic(r,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=yr(t[0]),t.length>1&&(n=yr(t[t.length-1]))):t instanceof Map&&(e=yr(t)),e||n?new Pc(r,e,n):null}var Pc=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i;let s=r.initialStylesByElement.get(e);s||r.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ge(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ge(this._element,this._initialStyles),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Fe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fe(this._element,this._endStyles),this._endStyles=null),ge(this._element,this._initialStyles),this._state=3)}}return r})();function yr(r){let t=null;return r.forEach((e,n)=>{Nc(n)&&(t=t||new Map,t.set(n,e))}),t}function Nc(r){return r==="display"||r==="position"}var On=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(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&t.set(i,this._finished?n:En(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Dn=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return ar(t,e)}getParentElement(t){return yn(t)}query(t,e,n){return lr(t,e,n)}computeStyle(t,e,n){return En(t,e)}animate(t,e,n,i,s,o=[]){let a=i==0?"both":"forwards",c={duration:n,delay:i,fill:a};s&&(c.easing=s);let l=new Map,m=o.filter(v=>v instanceof On);na(n,i)&&m.forEach(v=>{v.currentSnapshot.forEach((p,f)=>l.set(f,p))});let d=ea(e).map(v=>new Map(v));d=ra(t,d,l);let g=Ic(t,d);return new On(t,d,c,g)}};var Mn="@",_a="@.disabled",kn=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,n,i){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}
3appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Mn&&e==_a?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n,i){return this.delegate.listen(t,e,n,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},Ir=class extends kn{factory;constructor(t,e,n,i,s){super(e,n,i,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Mn?e.charAt(1)=="."&&e==_a?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n,i){if(e.charAt(0)==Mn){let s=Oc(t),o=e.slice(1),a="";return o.charAt(0)!=Mn&&([o,a]=Dc(o)),this.engine.listen(this.namespaceId,s,o,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,n,c)})}return this.delegate.listen(t,e,n,i)}};function Oc(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Dc(r){let t=r.indexOf("."),e=r.substring(0,t),n=r.slice(t+1);return[e,n]}var Rn=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,e.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(t,e){let i=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let l=this._rendererCache,m=l.get(i);if(!m){let d=()=>l.delete(i);m=new kn("",i,this.engine,d),l.set(i,m)}return m}let s=e.id,o=e.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,t,l.name,l)};return e.data.animation.forEach(a),new Ir(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([e,n])}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(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var Rc=(()=>{class r extends pt{constructor(e,n,i){super(e,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||r)(Z(Pi),Z(qe),Z(Ge))};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();function Fc(){return new wn}function xc(r,t,e){return new Rn(r,t,e)}var Ea=[{provide:Ge,useFactory:Fc},{provide:pt,useClass:Rc},{provide:Ei,useFactory:xc,deps:[Fi,pt,Vt]}],Nd=[{provide:qe,useClass:Pr},{provide:Gn,useValue:"NoopAnimations"},...Ea],Lc=[{provide:qe,useFactory:()=>new Dn},{provide:Gn,useFactory:()=>"BrowserAnimations"},...Ea];function Ta(){return vi("NgEagerAnimations"),[...Lc]}var Or="version:release-notes-last-version",Ca="version:skip",Dr=(function(r){return r.Underwriting="underwriting",r.Signups="signups",r.Crm="crm",r.Beratung="beratung",r.Chat="chat",r.Claims="claims",r.Makler="makler",r.Angebot="angebot",r.Marketing="marketing",r.Dsgvo="dsgvo",r.BriefEditor="brief editor",r})(Dr||{}),Fn=(function(r){return r.Build="build",r.Chore="chore",r.Ci="ci",r.Docs="docs",r.Feat="feat",r.Fix="fix",r.Perf="perf",r.Refactor="refactor",r.Revert="revert",r.Test="test",r})(Fn||{}),ba=/(?<sha>.*?)\+(?<build>.*)\.(?<time>.*)/;function jc(r,t){r&1&&te(0,"frontend-image",11),r&2&&ee("stretchToContainer",!0)}function Uc(r,t){r&1&&te(0,"frontend-image",12),r&2&&ee("stretchToContainer",!0)}function zc(r,t){r&1&&te(0,"frontend-image",13),r&2&&ee("stretchToContainer",!0)}function Bc(r,t){r&1&&(G(0,"div",15),_e(1),W()),r&2&&(X(),wi(t))}function Vc(r,t){if(r&1&&(G(0,"div",7)(1,"div",9)(2,"div",10),yt(3,jc,1,1,"frontend-image",11)(4,Uc,1,1,"frontend-image",12)(5,zc,1,1,"frontend-image",13),W()(),G(6,"div",14),yt(7,Bc,2,1,"div",15),te(8,"div",16),W()()),r&2){let e,n,i=t.$
3implicit,s=St();X(3),vt((e=i.scope)===s.releaseNoteScope.Chat?3:e===s.releaseNoteScope.BriefEditor?4:5),X(4),vt((n=i.headline||s.issueTypeLabelMapping[i.type])?7:-1,n),X(),ee("innerHtml",i.content,_i)}}var kr=(()=>{class r{data=u(_s);releaseNoteScope=Dr;issueTypeLabelMapping={feat:"Feature",fix:"Bug Fix"};modalInstanceService=u(it);onDismissModal(){this.modalInstanceService.dismiss()}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=Oe({type:r,selectors:[["frontend-release-notes-modal"]],decls:11,vars:0,consts:[["data-cy","modal-release-notes",1,"release-notes-modal-header"],["data-cy","modal-close-icon-button",1,"close-modal-button",3,"click"],["file","close-cross.svg",1,"close-icon"],[1,"release-notes-modal-body"],[1,"release-notes-modal-body_main-title"],[1,"release-notes-modal-body_content"],["data-cy","modal-release-notes-list",1,"release-notes-list"],["data-cy","modal-release-notes-list-item",1,"release-notes-row"],[1,"release-notes-modal-footer"],[1,"release-notes-row_icon"],["data-cy","modal-release-notes-list-image",1,"image-icon-wrapper"],["type","svg","file","icon-chat-notes.svg",1,"icon-image",3,"stretchToContainer"],["type","svg","file","icon-free-letter-notes.svg",1,"icon-image",3,"stretchToContainer"],["type","svg","file","info-icon.svg",1,"icon-image",3,"stretchToContainer"],["data-cy","modal-release-notes-list-item-title",1,"release-notes-row_content"],[1,"content-title"],["data-cy","modal-release-notes-list-item-content",1,"content-body",3,"innerHtml"]],template:function(n,i){n&1&&(G(0,"div",0)(1,"button",1),Ce("click",function(){return i.onDismissModal()}),te(2,"frontend-image",2),W()(),G(3,"div",3)(4,"div",4),_e(5,"What's New"),W(),G(6,"div",5)(7,"div",6),Ci(8,Vc,9,3,"div",7,Ti),W()()(),te(10,"div",8)),n&2&&(X(8),bi(i.data))},dependencies:[J,Ze],styles:[".release-notes-modal-header[_ngcontent-%COMP%]{padding:24px 32px 12px;border-top-left-radius:var(--border-radius-md);border-top-right-radius:var(--border-radius-md)}.release-notes-modal-header[_ngcontent-%COMP%]   .close-modal-button[_ngcontent-%COMP%]{position:absolute;top:24px;right:32px;padding:0;border:none;background-color:transparent}.release-notes-modal-header[_ngcontent-%COMP%]   .close-modal-button[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{opacity:.7}.release-notes-modal-header[_ngcontent-%COMP%]   .close-modal-button[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]:hover{opacity:1}.release-notes-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:5px}.release-notes-modal-body_main-title[_ngcontent-%COMP%]{width:85%;margin:0 auto 40px;color:var(--sec-light-100);font-size:32px;font-weight:800;text-indent:20px}.release-notes-modal-body_content[_ngcontent-%COMP%]{display:flex;width:100%;max-height:550px;justify-content:center;overflow-y:auto}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]{display:flex;width:85%;height:100%;flex-direction:column}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row_icon[_ngcontent-%COMP%]{width:25px}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row_icon[_ngcontent-%COMP%]   .image-icon-wrapper[_ngcontent-%COMP%]{position:relative;top:3px;width:18px;height:18px}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row_icon[_ngcontent-%COMP%]   .image-icon-wrapper[_ngcontent-%COMP%]   .icon-image[_ngcontent-%COMP%]{color:var(--primary)}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row_content[_ngcontent-%COMP%]{flex:1;color:var(--sec-light-100);font-size:16px}.release-notes-modal-body_content[_ngcontent-%COMP%]   .release-notes-list[_ngcontent-%COMP%]   .release-notes-row_content[_ngcontent-%COMP%]   .content-title[_ngcontent-%COMP%]{font-weight:700}.release-notes-modal-footer[_ngcontent-%COMP%]{padding:24px 32px 12px;border-bottom-left-radius:var(--border-radius-md);border-bottom-right-radius:var(--border-radius-md)}"]})}return r})();var wa=r=>r.replace(/\s/g,""),$c=r=>r instanceof es,Rt=(()=>{class r{version$;enabled;
3versionUrl=u(Xt);releaseNotestUrl=u(Yt);localVersion=u(ze);env=u(et);router=u(ke);http=u(Kt);localStorageService=u(rt);modalService=u(nn);sanitizer=u(ji);constructor(){this.enabled=/(preview|test|staging|live)/.test(this.env);let e=wa(this.localVersion),n=this.versionUrl?this.http.get(this.versionUrl,{responseType:"text"}).pipe(gt(()=>Ae(e))):Ae(e);this.version$=this.enabled?this.router.events.pipe(j($c),Ie(()=>n),b(wa),zt(),b(i=>({remoteVersion:i,localVersion:e,versionMissMatchDetected:i!==e}))):Ae({remoteVersion:"dev",localVersion:e,versionMissMatchDetected:!1})}showReleaseNotes(){return ri(this,null,function*(){if(!this.enabled)return;let e=this.localStorageService.getItem(Or),n=this.localStorageService.getItem(Ca);if(e&&e===this.localVersion||n==="true")return;this.localStorageService.setItem(Or,this.localVersion);let i=this.releaseNotestUrl?yield li(this.http.get(this.releaseNotestUrl,{responseType:"json"}).pipe(gt(()=>Ae(null)))):null,s=this.parseReleaseNotes(i);s.length&&this.modalService.show(kr,{data:s,size:Ts.Lg})})}parseReleaseNotes(e){return(e||[]).reduce((n,i)=>{let{type:s,issue:o,data:a}=i,{customfield_15000:c}=a||{};if(!c||![Fn.Feat,Fn.Fix].includes(s))return[...n];let l=c.match(/(##((?:.*\[(?<scope>[\w\s]+)\])(?<headline>.*))##)/)?.groups||{scope:null,headline:null},m=c.replace(/##(.*)##/,"").replace(/^[\r\n]+/,"").replace(/[\r\n]+$/,"").replace(/(\r\n)/g,"<br>");return[...n,{scope:l.scope?.toLowerCase(),headline:l.headline,content:this.sanitizer.sanitize(Si.HTML,m),issue:o,type:s}]},[])}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();function Kc(r,t){if(r&1){let e=Mi();G(0,"div",0),te(1,"frontend-image",1),G(2,"span",2),_e(3,"Eine neue Version ist verf\xFCgbar. Aktualisiere die Seite, um sie zu nutzen."),W(),G(4,"frontend-image",3),Ce("click",function(){Kn(e);let i=St();return qn(i.refresh())}),W(),te(5,"span",4),G(6,"frontend-image",5),Ce("click",function(){Kn(e);let i=St();return qn(i.close())}),W()()}r&2&&(X(),ee("stretchToContainer",!0),X(3),ee("stretchToContainer",!0),X(2),ee("stretchToContainer",!0))}var Rr=(()=>{class r{alertNewVersion$;presentedVersion=null;dismiss$=new We;versionService=u(Rt);appVersion=u(ze);appTag=u(Jt);constructor(){this.message();let e=this.dismiss$.pipe(zt(),b(()=>!1),Xn()),n=this.versionService.version$.pipe(oe(i=>this.presentedVersion=i.versionMissMatchDetected?i.remoteVersion:null),b(i=>i.versionMissMatchDetected),Xn());this.alertNewVersion$=ht(e,n)}refresh(){this.presentedVersion=null,location.reload()}close(){this.dismiss$.next(this.presentedVersion)}message(){console.info(`
4%cottonova welcomes you!`,"font-weight: bold; font-size: 32px; color:#0077ff");let e=this.appVersion.match(ba)?.groups??{},n=_(h({},e),{tag:this.appTag,version:this.appVersion});try{console.info(`%c${JSON.stringify(n,null,2)}`,"font-weight: bold;")}catch{console.info("version = "+this.appVersion)}}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=Oe({type:r,selectors:[["frontend-version"]],decls:2,vars:3,consts:[[1,"release-alert"],["type","svg","file","release-sparkle-filled.svg",1,"sparkle-dark",3,"stretchToContainer"],[1,"message"],["type","svg","role","button","file","refresh.svg",1,"refresh",3,"click","stretchToContainer"],[1,"spacer"],["type","svg","role","button","file","close-cross.svg",1,"close-cross",3,"click","stretchToContainer"]],template:function(n,i){n&1&&(yt(0,Kc,7,3,"div",0),Ai(1,"async")),n&2&&vt(Ii(1,1,i.alertNewVersion$)?0:-1)},dependencies:[Ni,J,Ze],styles:["[_nghost-%COMP%]{position:fixed;z-index:999;bottom:32px;left:50%;display:block;margin:0 auto;transform:translate(-50%)}.release-alert[_ngcontent-%COMP%]{--bg: linear-gradient(90deg, #fff5cc 0%, #fff 50%);--color: var(--sec-light-100);--refresh-color: var(--sec-light-60);--close-color: var(--sec-light-20);--icon-size: $iconSize;display:flex;align-items:center;justify-content:center;padding:12px 20px 12px 16px;background:var(--bg);border-radius:999vw;
4box-shadow:var(--box-shadow-sm);color:var(--color);gap:16px}.release-alert[_ngcontent-%COMP%]   [role=button][_ngcontent-%COMP%]{display:block}@media(prefers-color-scheme:dark){.release-alert[_ngcontent-%COMP%]{--bg: var(--sec-dark-05);--color: var(--white);--refresh-color: var(--sec-dark-80);--close-color: var(--sec-light-60)}}.release-alert[_ngcontent-%COMP%]   .sparkle-dark[_ngcontent-%COMP%]{width:24px;height:24px;color:#ffa600}.release-alert[_ngcontent-%COMP%]   .refresh[_ngcontent-%COMP%]{width:24px;height:24px;color:var(--refresh-color)}.release-alert[_ngcontent-%COMP%]   .close-cross[_ngcontent-%COMP%]{width:16px;height:16px;color:var(--close-color)}.release-alert[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:1px;height:22px;background-color:var(--close-color)}"]})}return r})();function Fr({versionUrl:r,releaseNotesUrl:t}={}){return Bt([Rt,rt,{provide:Xt,useValue:r},{provide:Yt,useValue:t}])}var xt="PERFORM_ACTION",qc="REFRESH",Da="RESET",ka="ROLLBACK",Ra="COMMIT",Fa="SWEEP",xa="TOGGLE_ACTION",Gc="SET_ACTIONS_ACTIVE",La="JUMP_TO_STATE",ja="JUMP_TO_ACTION",Hr="IMPORT_STATE",Ua="LOCK_CHANGES",za="PAUSE_RECORDING",ft=class{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=xt,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},xr=class{constructor(){this.type=qc}},Lr=class{constructor(t){this.timestamp=t,this.type=Da}},jr=class{constructor(t){this.timestamp=t,this.type=ka}},Ur=class{constructor(t){this.timestamp=t,this.type=Ra}},zr=class{constructor(){this.type=Fa}},Br=class{constructor(t){this.id=t,this.type=xa}};var Vr=class{constructor(t){this.index=t,this.type=La}},$r=class{constructor(t){this.actionId=t,this.type=ja}},Kr=class{constructor(t){this.nextLiftedState=t,this.type=Hr}},qr=class{constructor(t){this.status=t,this.type=Ua}},Gr=class{constructor(t){this.status=t,this.type=za}};var Un=new je("@ngrx/store-devtools Options"),Aa=new je("@ngrx/store-devtools Initial Config");function Ba(){return null}var Qc="NgRx Store DevTools";function Hc(r){let t={maxAge:!1,monitor:Ba,actionSanitizer:void 0,stateSanitizer:void 0,name:Qc,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},e=typeof r=="function"?r():r,n=e.logOnly?{pause:!0,export:!0,test:!0}:!1,i=e.features||n||t.features;i.import===!0&&(i.import="custom");let s=Object.assign({},t,{features:i},e);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Ia(r,t){return r.filter(e=>t.indexOf(e)<0)}function Va(r){let{computedStates:t,currentStateIndex:e}=r;if(e>=t.length){let{state:i}=t[t.length-1];return i}let{state:n}=t[e];return n}function Ft(r){return new ft(r,+Date.now())}function Wc(r,t){return Object.keys(t).reduce((e,n)=>{let i=Number(n);return e[i]=$a(r,t[i],i),e},{})}function $a(r,t,e){return _(h({},t),{action:r(t.action,e)})}function Jc(r,t){return t.map((e,n)=>({state:Ka(r,e.state,n),error:e.error}))}function Ka(r,t,e){return r(t,e)}function qa(r){return r.predicate||r.actionsSafelist||r.actionsBlocklist}function Xc(r,t,e,n){let i=[],s={},o=[];return r.stagedActionIds.forEach((a,c)=>{let l=r.actionsById[a];l&&(c&&Wr(r.computedStates[c],l,t,e,n)||(s[a]=l,i.push(a),o.push(r.computedStates[c])))}),_(h({},r),{stagedActionIds:i,actionsById:s,computedStates:o})}function Wr(r,t,e,n,i){let s=e&&!e(r,t.action),o=n&&!t.action.type.match(n.map(c=>Pa(c)).join("|")),a=i&&t.action.type.match(i.map(c=>Pa(c)).join("|"));return s||o||a}function Pa(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ga(r){return{ngZone:r?u(Vt):null,connectInZone:r}}var zn=(()=>{class r extends tn{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Ne(r)))(i||r)}})()}static{this.\u0275prov=T({token:r,factory:r.\u0275fac})}}return r})(),xn={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},Qr=new je("@ngrx/store-devtools Redux Devtools Extension"),Qa=(()=>{class r{constructor(e,n,i){this.config=n,this.dispatcher=i,this.zoneConfig=Ga(this.config.connectInZone),this.devtoolsExtension=e,this.createActionStream
4s()}notify(e,n){if(this.devtoolsExtension)if(e.type===xt){if(n.isLocked||n.isPaused)return;let i=Va(n);if(qa(this.config)&&Wr(i,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let s=this.config.stateSanitizer?Ka(this.config.stateSanitizer,i,n.currentStateIndex):i,o=this.config.actionSanitizer?$a(this.config.actionSanitizer,e,n.nextActionId):e;this.sendToReduxDevtools(()=>this.extensionConnection.send(o,s))}else{let i=_(h({},n),{stagedActionIds:n.stagedActionIds,actionsById:this.config.actionSanitizer?Wc(this.config.actionSanitizer,n.actionsById):n.actionsById,computedStates:this.config.stateSanitizer?Jc(this.config.stateSanitizer,n.computedStates):n.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,i,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new $n(e=>{let n=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=n,n.init(),n.subscribe(i=>e.next(i)),n.unsubscribe}):oi}createActionStreams(){let e=this.createChangesObservable().pipe(pi()),n=e.pipe(j(l=>l.type===xn.START)),i=e.pipe(j(l=>l.type===xn.STOP)),s=e.pipe(j(l=>l.type===xn.DISPATCH),b(l=>this.unwrapAction(l.payload)),Xe(l=>l.type===Hr?this.dispatcher.pipe(j(m=>m.type===Zn),ci(1e3),jt(1e3),b(()=>l),gt(()=>Ae(l)),Ut(1)):Ae(l))),a=e.pipe(j(l=>l.type===xn.ACTION),b(l=>this.unwrapAction(l.payload))).pipe(me(i)),c=s.pipe(me(i));this.start$=n.pipe(me(i)),this.actions$=this.start$.pipe(Se(()=>a)),this.liftedActions$=this.start$.pipe(Se(()=>c))}unwrapAction(e){return typeof e=="string"?(0,eval)(`(${e})`):e}getExtensionConfig(e){let n={name:e.name,features:e.features,serialize:e.serialize,autoPause:e.autoPause??!1,trace:e.trace??!1,traceLimit:e.traceLimit??75};return e.maxAge!==!1&&(n.maxAge=e.maxAge),n}sendToReduxDevtools(e){try{e()}catch(n){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",n)}}static{this.\u0275fac=function(n){return new(n||r)(Z(Qr),Z(Un),Z(zn))}}static{this.\u0275prov=T({token:r,factory:r.\u0275fac})}}return r})(),jn={type:Yn},Yc="@ngrx/store-devtools/recompute",Zc={type:Yc};function Ha(r,t,e,n,i){if(n)return{state:e,error:"Interrupted by an error up the chain"};let s=e,o;try{s=r(e,t)}catch(a){o=a.toString(),i.handleError(a)}return{state:s,error:o}}function Ln(r,t,e,n,i,s,o,a,c){if(t>=r.length&&r.length===s.length)return r;let l=r.slice(0,t),m=s.length-(c?1:0);for(let d=t;d<m;d++){let g=s[d],v=i[g].action,p=l[d-1],f=p?p.state:n,w=p?p.error:void 0,R=o.indexOf(g)>-1?p:Ha(e,v,f,w,a);l.push(R)}return c&&l.push(r[r.length-1]),l}function ed(r,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:Ft(jn)},stagedActionIds:[0],skippedActionIds:[],committedState:r,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function td(r,t,e,n,i={}){return s=>(o,a)=>{let{monitorState:c,actionsById:l,nextActionId:m,stagedActionIds:d,skippedActionIds:g,committedState:v,currentStateIndex:p,computedStates:f,isLocked:w,isPaused:A}=o||t;o||(l=Object.create(l));function R(F){let I=F,U=d.slice(1,I+1);for(let L=0;L<U.length;L++)if(f[L+1].error){I=L,U=d.slice(1,I+1);break}else delete l[U[L]];g=g.filter(L=>U.indexOf(L)===-1),d=[0,...d.slice(I+1)],v=f[I].state,f=f.slice(I),p=p>I?p-I:0}function x(){l={0:Ft(jn)},m=1,d=[0],g=[],v=f[p].state,p=0,f=[]}let C=0;switch(a.type){case Ua:{w=a.status,C=1/0;break}case za:{A=a.status,A?(d=[...d,m],l[m]=new ft({type:"@ngrx/devtools/pause"},+Date.now()),m++,C=d.length-1,f=f.concat(f[f.length-1]),p===d.length-2&&p++,C=1/0):x();break}case Da:{l={0:Ft(jn)},m=1,d=[0],g=[],v=r,p=0,f=[];break}case Ra:{x();break}case ka:{l={0:Ft(jn)},m=1,d=[0],g=[],p=0,f=[];break}case xa:{let{id:F}=a;g.indexOf(F)===-1?g=[F,...g]:g=g.filter(U=>U!==F),C=d.indexOf(F);break}case Gc:{let{start:F,end:I,active:U}=a,L=[];for(let ue=F;ue<I;ue++)L.push(ue);U?g=Ia(g,L):g=[...g,...L],C=d.indexOf(F);break}case La:{p=a.index,C=1/0;break}case ja:{let F=d.indexOf(a.actionId);F!==-1&&(p=F),C=1/0;break}case Fa:{d=Ia(d,g),g=[],p=Math.min(p,d.length-1);break}case xt:{if(w)return o||t;if(A||o&&Wr(o.computedStates[p],a,i.predicate,i.actionsSafelist,i.actionsBlocklist)){let I=f[f.length-1];f=[...f.slice(0,-1),Ha(s,a.action,I.state,I.error,e)],C=1/0;break}i.maxAge&&d.length===i.maxAge&&R(1),p===d.length-1&&p++;let F=m++;
4l[F]=a,d=[...d,F],C=d.length-1;break}case Hr:{({monitorState:c,actionsById:l,nextActionId:m,stagedActionIds:d,skippedActionIds:g,committedState:v,currentStateIndex:p,computedStates:f,isLocked:w,isPaused:A}=a.nextLiftedState);break}case Yn:{C=0,i.maxAge&&d.length>i.maxAge&&(f=Ln(f,C,s,v,l,d,g,e,A),R(d.length-i.maxAge),C=1/0);break}case Zn:{if(f.filter(I=>I.error).length>0)C=0,i.maxAge&&d.length>i.maxAge&&(f=Ln(f,C,s,v,l,d,g,e,A),R(d.length-i.maxAge),C=1/0);else{if(!A&&!w){p===d.length-1&&p++;let I=m++;l[I]=new ft(a,+Date.now()),d=[...d,I],C=d.length-1,f=Ln(f,C,s,v,l,d,g,e,A)}f=f.map(I=>_(h({},I),{state:s(I.state,Zc)})),p=d.length-1,i.maxAge&&d.length>i.maxAge&&R(d.length-i.maxAge),C=1/0}break}default:{C=1/0;break}}return f=Ln(f,C,s,v,l,d,g,e,A),c=n(c,a),{monitorState:c,actionsById:l,nextActionId:m,stagedActionIds:d,skippedActionIds:g,committedState:v,currentStateIndex:p,computedStates:f,isLocked:w,isPaused:A}}}var Na=(()=>{class r{constructor(e,n,i,s,o,a,c,l){let m=ed(c,l.monitor),d=td(c,m,a,l.monitor,l),g=ht(ht(n.asObservable().pipe(fi(1)),s.actions$).pipe(b(Ft)),e,s.liftedActions$).pipe(ai(si)),v=i.pipe(b(d)),p=Ga(l.connectInZone),f=new ii(1);this.liftedStateSubscription=g.pipe(Pe(v),Oa(p),mi(({state:R},[x,C])=>{let F=C(R,x);return x.type!==xt&&qa(l)&&(F=Xc(F,l.predicate,l.actionsSafelist,l.actionsBlocklist)),s.notify(x,F),{state:F,action:x}},{state:m,action:null})).subscribe(({state:R,action:x})=>{if(f.next(R),x.type===xt){let C=x.action;o.next(C)}}),this.extensionStartSubscription=s.start$.pipe(Oa(p)).subscribe(()=>{this.refresh()});let w=f.asObservable(),A=w.pipe(b(Va));Object.defineProperty(A,"state",{value:ls(A,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=e,this.liftedState=w,this.state=A}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(e){this.dispatcher.next(e)}next(e){this.dispatcher.next(e)}error(e){}complete(){}performAction(e){this.dispatch(new ft(e,+Date.now()))}refresh(){this.dispatch(new xr)}reset(){this.dispatch(new Lr(+Date.now()))}rollback(){this.dispatch(new jr(+Date.now()))}commit(){this.dispatch(new Ur(+Date.now()))}sweep(){this.dispatch(new zr)}toggleAction(e){this.dispatch(new Br(e))}jumpToAction(e){this.dispatch(new $r(e))}jumpToState(e){this.dispatch(new Vr(e))}importState(e){this.dispatch(new Kr(e))}lockChanges(e){this.dispatch(new qr(e))}pauseRecording(e){this.dispatch(new Gr(e))}static{this.\u0275fac=function(n){return new(n||r)(Z(zn),Z(tn),Z(ds),Z(Qa),Z(ms),Z(gi),Z(cs),Z(Un))}}static{this.\u0275prov=T({token:r,factory:r.\u0275fac})}}return r})();function Oa({ngZone:r,connectInZone:t}){return e=>t?new $n(n=>e.subscribe({next:i=>r.run(()=>n.next(i)),error:i=>r.run(()=>n.error(i)),complete:()=>r.run(()=>n.complete())})):e}var nd=new je("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function rd(r,t){return!!r||t.monitor!==Ba}function id(){let r="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[r]<"u"?window[r]:null}function sd(r){return r.state}function od(r={}){return Bt([Qa,zn,Na,{provide:Aa,useValue:r},{provide:nd,deps:[Qr,Un],useFactory:rd},{provide:Qr,useFactory:id},{provide:Un,deps:[Aa],useFactory:Hc},{provide:ps,deps:[Na],useFactory:sd},{provide:us,useExisting:zn}])}var Wa=(()=>{class r{static instrument(e={}){return{ngModule:r,providers:[od(e)]}}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=K({type:r})}static{this.\u0275inj=$({})}}return r})();var Ja=(()=>{class r{language=zi;modalInstanceService=u(it);profileService=u(Re);store=u(ae);alertService=u(gs);logService=u(nt);activeProfile;component$=new We;ngOnInit(){this.store.select(on).pipe(j(e=>!!e),me(this.component$)).subscribe(e=>{this.activeProfile=e})}ngOnDestroy(){this.component$.next(),this.component$.complete()}dismissModal(){this.modalInstanceService.dismiss()}setLanguage(e){this.profileService.setProfileLanguage(this.activeProfile.profile_id,e).pipe(me(this.component$)).subscribe({next:()=>{this.store.dispatch(new Us(this.activeProfile.profile_id,{contact:_(h({},this.activeProfile.contact),{communication_language:e})})),this.alertService.success("Kommunikationssprache wurde ausgew\xE4hlt"),this.modalInstanceService.close()},error:n=>{this.alertService.error("Die Aktualisierung der Kommunikationssprache ist fehlgeschlagen. Bitte versuche es erneut."),this.logService.error(`[CommunicationLanguageModalComponent][setLanguage] Error on setting communication language: ${JSON.stringify(n)}`),this.dismissModal()}})}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=Oe({type:r,selectors:[["wa-communication-language-modal"]],decls:15,vars:6,consts:[[3,"onDismissClick"],["modalBody",""],[1,"icons"],["type","svg","file","icon-flag-de.svg",1,"icon",3,"stretchToContainer"],["type","svg","file","icon-flag-us-uk.svg",1,"icon",3,"stretchToContainer"],[1,"title"],[1,"description"],["modalFooter",""],[1,"buttons"],[3,"onClick","outlined","wide"]],template:function(n,i){n&1&&(G(0,"frontend-default-modal",0),Ce("onDismissClick",function(){return i.dismissModal()}),Qn(1,1),G(2,"div",2),te(3,"frontend-image",3)(4,"frontend-image",4),W(),G(5,"h3",5),_e(6,"Kommunikation mit ottonova"),W(),G(7,"p",6),_e(8," Welche Sprache m\xF6chtest du im Chat und f\xFCr Push-Nachrichten verwenden? Diese ist unabh\xE4ngig von der Sprache der Benutzeroberfl\xE4che und kann jederzeit in den Einstellungen ge\xE4ndert werden. "),W(),Hn(),Qn(9,7),G(10,"div",8)(11,"frontend-button",9),Ce("onClick",function(){return i.set
4Language(i.language.German)}),_e(12," Deutsch "),W(),G(13,"frontend-button",9),Ce("onClick",function(){return i.setLanguage(i.language.English)}),_e(14," English "),W()(),Hn(),W()),n&2&&(X(3),ee("stretchToContainer",!0),X(),ee("stretchToContainer",!0),X(7),ee("outlined",!0)("wide",!0),X(2),ee("outlined",!0)("wide",!0))},dependencies:[ne,J,Ze,De,Vi],styles:[".icons[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:0 0 16px 14px}.icon[_ngcontent-%COMP%]{position:relative;display:inline-block;overflow:hidden;width:56px;height:56px;border:4px solid white;border-radius:50%;vertical-align:middle}.icon[_ngcontent-%COMP%]:first-child{z-index:1}.icon[_ngcontent-%COMP%]:last-child{transform:translate(-14px)}.title[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px;font-weight:700;line-height:25px;text-align:center}.description[_ngcontent-%COMP%]{margin:0;line-height:20px;text-align:center}.buttons[_ngcontent-%COMP%]{display:grid;gap:24px;grid-template-columns:1fr 1fr}"]})}return r})();var Xa=(()=>{class r{store=u(ae);profileService=u(Re);trackingConsentService=u(Ws);firebaseService=u(st);authService=u(Ps);tokenService=u(en);router=u(ke);modalService=u(nn);window=u(Wt);component$=new We;tokenTitles=u(Gt);ngOnInit(){this.store.select($s).pipe(j(e=>!!e),me(this.component$)).subscribe(e=>{let n=e.profiles.find(c=>c.is_primary_profile);n&&!this.trackingConsentService.isTrackingConsentGiven(n)&&this.trackingConsentService.showConsentModal(n);let i=this.tokenService.retrieveAccessToken(),s=this.authService.getUserIdFromAccessToken(i),o;e.profiles.length===1||e.activeProfile.is_primary_profile?o=!0:o=null,this.profileService.getCurrentProfileTariffId()&&this.firebaseService.allowTracking(s,this.profileService.getCurrentProfileTariffId(),o)}),this.store.select(on).pipe(j(e=>!!e),Ut(1)).subscribe(e=>{this.profileService.canSetProfileLanguage(e)&&!this.profileService.getProfileLanguage(e)&&this.modalService.show(Ja)}),As(this.tokenTitles,()=>this.profileService.logout()),this.subscribeToRouterEvents(),this.subscribeToChunkErrors()}ngOnDestroy(){this.component$.next(),this.component$.complete()}subscribeToRouterEvents(){di([this.router.events,this.trackingConsentService.selectTrackingAnalyticsConsentState()]).pipe(j(([e,n])=>e instanceof ns&&e.snapshot.data?.screenName&&n),me(this.component$)).subscribe(([e])=>{let n=e;this.firebaseService.logScreenVisited(n.snapshot.data.screenName)})}subscribeToChunkErrors(){this.router.events.pipe(j(e=>e instanceof ts&&e.error.name==="ChunkLoadError"),me(this.component$)).subscribe(()=>this.window.location.reload())}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=Oe({type:r,selectors:[["wa-root"]],decls:5,vars:1,consts:[[3,"extraTopSpacing"]],template:function(n,i){n&1&&te(0,"router-outlet")(1,"frontend-modal")(2,"frontend-notification-queue",0)(3,"frontend-alerts")(4,"frontend-version"),n&2&&(X(2),ee("extraTopSpacing",!0))},dependencies:[rs,Es,ys,hs,Rr],encapsulation:2})}return r})();var Ya=(r,t)=>{let e=u(ws),n=u(Is);return e.isAuthorized().pipe(b(i=>(i||n.loginWithReturnUrl(`/${rn}${t.url}`),i)))};var Za=Zt.forRoot([{path:"browser-warning",loadComponent:()=>import("./chunk-I37T67Z3.js").then(r=>r.BrowserWarningComponent)},{path:"",loadChildren:()=>import("./chunk-YHFZISCM.js").then(r=>r.ProtectedModule),canActivate:[bs,Ya]},{path:"**",redirectTo:"",pathMatch:"full"}]);var el=(()=>{class r{chatService=u(he);parse(e){return["voucher","text","document","certificate-prompt"].includes(e.type)?_(h({},e),{whose:this.whose(e)}):e}whose(e){return e.whose?e.whose:this.chatService.identity.id===e.author.id?"me":"you"}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var Jr=(function(r){return r.Certificate="request_certificate",r})(Jr||{});var Xr=new je("DEEPLINK_HOST"),tl=(()=>{class r{deeplinkHost=u(Xr);parse(e){if(e.type!=="text")return e;let n=e.data?.content??"",i=this.parseUrl(n.trim());return i&&this.isCertificatePromptUrl(i)?_(h({},e),{type:"certificate-prompt"}):e}isCertificatePromptUrl(e){return e.origin===this.deeplinkHost&&e.pathname==="/profile"&&e.searchParams.get("action")===Jr.Certificate}parseUrl(e){try{return new URL(e)}catch{return null}}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var nl=(()=>{class r{parse(e){let n=h({},e),i=/(?:https\:\/\/eedoctors\.com\/voucher\?)(?:[\S\&]*)(?:code=)(\w+)/gi,s=n.data?n.data.content:"",o=i.exec(s);return o&&(n=_(h({},n),{data:{voucher:o[1]},type:o[1]?"voucher":n.type})),n}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var rl=(()=>{class r{emojiService=u(fn);parse(e){let n=structuredClone(e);return n.data.content=this.emojiService.parseMessageWithEmojies(n.data.content),n}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var il=(()=>{class r{markdownService=u($i);parse(e){return e.type==="text"?_(h({},e),{data:{content:this.markdownService.markdownUnsortedList(e.data.content)}}):e}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var sl=(()=>{class r{urlRegex=/(http(s)?:\/\/(www\.)?|(www\.))[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi;parse(e){return e.type==="text"?_(h({},e),{data:{content:this.replace(e.data.content)}}):e}replace(e){return e.replace(this.urlRegex,n=>{let i=n;return i.startsWith("http")||(i="https://"+i),`<a href="${i}" target="_blank">${n}</a>`})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var ol=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({providers:[tt,rt,uo,ct,he,fn,mo,ro,{provide:Xr,useFactory:e=>{switch(e){case"live":return"https://app.ottonova.de";case"staging":return"https://app-staging.on.ag";default:return"https://app-test.on.ag"}},deps:[et]},{provide:Be,useClass:nl,multi:!0},{provide:Be,useClass:tl,multi:!0},{provide:Be,useClass:el,multi:!0},{provide:Be,useClass:sl,multi:!0},{provide:Be,useClass:rl,multi:!0},{provide:Be,useClass:il,multi:!0}]})}return r})();var al=(()=>{class r{initConversation$=D((e=u(z))=>e.pipe(k(Q.InitConversation),b(n=>n.payload),Je(n=>[new Ve(n),ot({conversationId:n.conversationId})])));archiveConversation$=D((e=u(z))=>e.pipe(k(Q.ArchiveConversation),Je(n=>[new ao({conversationId:n.payload.conversationId,messageId:n.payload.conversationId}),new Ve({conversationId:n.payload.conversationId,isArchived:!0})])));static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var Te=(()=>{class r{apiUri=u(an);httpClient=u(Kt);loadOpenConversations(e){return this.loadConversations(!1,e)}loadArchivedConversations(e){return this.loadConversations(!0,e)}loadMessages(e){return this.httpClient.get(`${this.apiUri}/api/conversations/${e}`,{params:{includeRatingMessages:!0}})}loadConversations(e=!1,n){let i=`${this.apiUri}/api/conversations?archived=${e}`;return n&&(i+=`&limit=${n}`),this.httpClient.get(i)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var Qe=class{token;id;type=Xs.Customer;constructor(t){this.token=t;let e=ss(t);this.id=e.sub||"invalid"}
4connectionQueryParams(){return{token:this.token,type:this.type}}authorPayload(){return{id:this.id}}};var ll=(()=>{class r{loadOpenedConversations$=D((e=u(z),n=u(Te))=>e.pipe(k(Q.ShowOpenConversations),Ie(()=>n.loadOpenConversations()),b(i=>new at(i))));loadArchivedConversations$=D((e=u(z),n=u(Te))=>e.pipe(k(Q.ShowArchivedConversations),Ie(()=>n.loadArchivedConversations()),b(i=>new at(i))));keepConnection$=D((e=u(z),n=u(he),i=u(Te))=>e.pipe(k(fe.Connect,fe.Reconnect,fe.JwtError),j(()=>n.identity instanceof Qe),Ie(()=>ui([i.loadOpenConversations(),i.loadArchivedConversations()])),b(([s,o])=>new at(s.concat(o)))));loadMessages$=D((e=u(z),n=u(Te))=>e.pipe(k(ot),Se(i=>n.loadMessages(i.conversationId).pipe(b(s=>new tr(s,i.conversationId))))));refreshMessages$=D((e=u(z),n=u(he),i=u(ae),s=u(Te))=>e.pipe(k(fe.Reconnect),j(()=>n.identity instanceof Qe),Se(()=>i.select(to)),j(o=>!!o),Se(o=>s.loadMessages(o).pipe(b(a=>new tr(a,o))))));customNotifications$=D((e=u(z),n=u(ke))=>e.pipe(k(Q.OpenConversation),oe(i=>n.navigate(["/chat",i.payload]))),{dispatch:!1});static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var cl=(()=>{class r{removeTypedMessage$=D((e=u(z),n=u(ae))=>e.pipe(k(q.AddPendingMessage),Pe(n.select(bt)),j(([i,s])=>i.payload.author.id===s.id),b(([i,s])=>i.payload),b(i=>new Ys(i.conversationId))));removePendingMessage$=D((e=u(z))=>e.pipe(k(q.AddMessage),b(n=>new lo({conversationId:n.payload.conversationId,sendId:n.payload.sendId}))));markMessagesAsFailed$=D((e=u(z),n=u(ae))=>e.pipe(k(fe.Disconnect),Pe(n.select(no)),Je(([i,s])=>s.map(o=>new oo({messageId:o.messageId,conversationId:o.conversationId})))));resendMessage$=D((e=u(z),n=u(he))=>e.pipe(k(q.ResendMessage),Xe(i=>n.emitMessage(i.payload)),Je(i=>i)));updateLastMessage$=D((e=u(z))=>e.pipe(k(q.AddMessage),b(n=>n.payload),j(n=>n.whose!=="system"&&n.type!=="rating"),b(n=>new Ve({conversationId:n.conversationId,lastMessage:n}))));static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var dl=(()=>{class r{systemMessage$=D((e=u(z))=>e.pipe(k(q.SystemMessage),b(n=>({conversationId:n.payload.conversationId,messageId:crypto.randomUUID(),type:"text",whose:"system",timestamp:new Date().toISOString(),author:{name:"system",id:"system"},data:n.payload.data})),b(n=>new so(n))));static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var ul=(()=>{class r{typing$=D((e=u(z),n=u(ae))=>e.pipe(k(Mt.Typing),oe(i=>this.resetTyping(i.payload,n))),{dispatch:!1});timeouts={};resetTyping(e,n){let i=`${e.conversationId}_${e.client.id}`;clearTimeout(this.timeouts[i]),this.timeouts[i]=setTimeout(()=>{n.dispatch(new co(e)),delete this.timeouts[i]},1e3)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var ml=(()=>{class r extends pn{tokenUserIdentity(e){return new Qe(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ne(r)))(i||r)}})();static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var pl=(()=>{class r{actions=u(z);router=u(ke);store=u(ae);conversationsService=u(Te);customNotifications$=D(()=>this.actions.pipe(k(Q.OpenConversation),oe(e=>this.router.navigate(["/chat",e.payload]))),{dispatch:!1});updateUnreadOnIncomingMessage$=D(()=>this.actions.pipe(k(q.AddMessage),Pe(this.store.select(bt)),j(([e,n])=>e.payload.author.id!==n.id),b(()=>new Ct)));updateUnreadOnReadMessage$=D(()=>this.actions.pipe(k(q.UpdateMessageStatus),Pe(this.store.select(eo),this.store.select(bt)),j(([e,n,i])=>{let s=n[e.payload.conversationId]?.find(({messageId:o})=>o===e.payload.messageId);return e.payload.status===be.Read&&!!s&&s.author.id!==i.id}),b(()=>new Ct)));updateUnreadOnReopenedConversation$=D(()=>this.actions.pipe(k(Q.ReopenedConversation),b(()=>new Ct)));archiveConversation$=D(()=>this.actions.pipe(k(Q.ArchiveConversation),oe(()=>this.store.dispatch(new Ct)),Ie(()=>this.conversationsService.loadArchivedConversations()),b(e=>new at(e))));static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();function fl(r=!1,t){switch(t.type){case fe.Connect:case fe.Reconnect:return!0;case fe.Disconnect:return!1;default:return r}}function hl(r={},t){switch(t.type){case Q.TriggerUpdatedConversation:return _(h({},r),{[t.payload]:h({},r[t.payload])});
4case Q.UpdateConversation:{let e=r[t.payload.conversationId];return _(h({},r),{[t.payload.conversationId]:h(h({},e),t.payload)})}case Q.SetConversations:return t.payload.reduce((e,n)=>(e[n.conversationId]=h({},n),e),h({},r));case Q.ReopenedConversation:{let e=r[t.payload.conversationId];return _(h({},r),{[t.payload.conversationId]:_(h({},e),{isArchived:!1})})}case Q.RemoveConversation:{let e=h({},r);return delete e[t.payload.conversationId],e}case lt.IdentityChanged:return{};default:return r}}var gl=fs(null,er(ot,(r,t)=>t.conversationId),er(io,()=>null));function yl(r=mn.Open,t){switch(t.type){case Q.ShowArchivedConversations:return mn.Archived;case Q.ShowOpenConversations:return mn.Open;default:return r}}var ad={id:"",name:""};function vl(r=ad,t){return t.type===lt.SetIdentity?{id:t.payload.id,name:t.payload.name,type:t.payload.type}:r}function Sl(r={},t){switch(t.type){case q.SetConversationMessages:{let e=(r[t.conversationId]||[]).filter(n=>n.status===be.Pending||n.status===be.Failed).filter(n=>!t.payload.find(i=>i.sendId===n.sendId));return _(h({},r),{[t.conversationId]:[...t.payload,...e].map(n=>_(h({},n),{conversationId:t.conversationId}))})}case q.UpdateMessageStatus:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:[...e.map(n=>n.messageId!==t.payload.messageId&&n.sendId!==t.payload.messageId?n:_(h({},n),{status:t.payload.status}))]}):r}case q.AddPendingMessage:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:[...e,t.payload].map(n=>_(h({},n),{conversationId:t.payload.conversationId}))}):r}case q.AddMessage:{let e=r[t.payload.conversationId];if(!e)return r;let n=e.filter(i=>i.messageId!==t.payload.messageId&&(!t.payload.sendId||i.sendId!==t.payload.sendId));return _(h({},r),{[t.payload.conversationId]:[...n,t.payload].map(i=>_(h({},i),{conversationId:t.payload.conversationId}))})}case q.RemoveMessage:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:e.filter(n=>n.messageId!==t.payload.messageId)}):r}case q.UpdateRatingMessage:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:[...e.map(n=>n.messageId!==t.payload.messageId?n:_(h({},n),{data:_(h({},n.data),{rating:t.payload.rating})}))]}):r}case q.RemoveUnsentMessage:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:e.filter(n=>!(n.sendId===t.payload.sendId&&(n.status===be.Failed||n.status===be.Pending)))}):r}case q.SendMessageFailed:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:e.map(n=>n.messageId!==t.payload.messageId?n:_(h({},n),{status:be.Failed}))}):r}case q.ResendMessage:{let e=r[t.payload.conversationId];return e?_(h({},r),{[t.payload.conversationId]:e.map(n=>n.messageId!==t.payload.messageId?n:_(h({},n),{status:be.Pending}))}):r}case lt.IdentityChanged:return{};default:return r}}function _l(r={},t){switch(t.type){case Mt.Typing:{let e=r[t.payload.conversationId]||[];return e.find(i=>i.client.id===t.payload.client.id)?r:_(h({},r),{[t.payload.conversationId]:[...e,h({},t.payload)]})}case Mt.RemoveTyping:{let e=(r[t.payload.conversationId]||[]).filter(n=>n.client.id!==t.payload.client.id);return _(h({},r),{[t.payload.conversationId]:e})}default:return r}}var El={connected:fl,conversations:hl,currentView:yl,identity:vl,selectedConversationId:gl,typing:_l,messages:Sl,enteredMessage:Zs};var Tl=(()=>{class r extends un{documentService=u(cn);getUserDocuments(e){return this.documentService.requestDocuments(e)}getDocumentThumbnail(e,n){return this.documentService.getThumbnail(n,e)}getAggregatedUserDocumentUrl(e,n){return this.documentService.getAggregatePdfUrl(n,e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ne(r)))(i||r)}})();static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var Cl=(()=>{class r extends ct{subscribeOnEvents(){super.subscribeOnEvents(),this.onEventsSubscription.add(this.onConversationCreated())}onConversationCreated(){return this.socket.on$(po.CONVERSATION_CREATED).pipe(oe(e=>this.store.dispatch(new Ve(e)))).subscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ne(r)))(i||r)}})();static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var bl=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({providers:[{provide:an,useFactory:()=>B.chatUri},{provide:Ks,useFactory:()=>B.chatSocketPath},{provide:qs,useFactory:()=>B.chatServerReconnectTimeout},wt,Te,st,{provide:he,useExisting:wt},{provide:ct,useClass:Cl},{provide:un,useClass:Tl},{provide:pn,useClass:ml}
4],imports:[Zt,ol,Et.forFeature("chat",El),Tt.forFeature([al,ll,dl,ul,ho,pl,cl])]})}return r})();var Ml=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,ne,J,Eo]})}return r})();var wl=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,Bi,Ye,ne,vo,as,J,De,So]})}return r})();var Al=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,Ye,ne,J,ln,go,_o]})}return r})();var Il=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,Ye,ne,J,De,Js,yo,To]})}return r})();function Pl(){return B.authAppUri}function ld(){return B.production}function cd(){return B.phpBackendServicesUri}var Nl=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({providers:[{provide:Gi,useFactory:Pl},{provide:Ms,useFactory:Pl},{provide:Ki,useValue:rn},{provide:Jn,useFactory:ld},{provide:Ht,useFactory:cd},{provide:Gt,useValue:qi},nt,en,tt,Re],imports:[Ns]})}return r})();var Ol=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,ne,J,ln,De,Hs]})}return r})();var Dl=(r,t)=>{let e=r.headers.has("Accept-Language"),i=[u(Ht),u(Qt)].some(a=>r.url.startsWith(a));if(e||!i)return t(r);let s=u($t)||"de-DE",o=r.clone({setHeaders:{"Accept-Language":s}});return t(o)};var kl=(()=>{class r{actions=u(z);storageService=u(tt);todoService=u(dn);chatService=u(wt);setActiveProfileId$=D(()=>this.actions.pipe(k(sn),oe(e=>{this.storageService.setItem(B.tokenTitles.currentProfile,e.profile_id)})),{dispatch:!1});fetchOpenedTodosByProfile$=D(()=>this.actions.pipe(k(ks),Se(e=>this.todoService.fetchOpenedTodosCountForAccount(e.payload.accountId).pipe(b(n=>new zs(n))))));fetchTodos$=D(()=>this.actions.pipe(k(Ls),Se(e=>this.todoService.fetchTodos(e.payload.profileId).pipe(b(n=>new Bs(n))))));fetchUnreadMessagesCount$=D(()=>this.actions.pipe(k(Rs),jt(100),Xe(()=>this.chatService.setUnreadChatMessages().pipe(b(e=>new Vs({active:e.unreadMessagesCount,archived:e.unreadArchivedMessagesCount,total:e.unreadMessagesCount+e.unreadArchivedMessagesCount}))))));static \u0275fac=function(n){return new(n||r)};static \u0275prov=T({token:r,factory:r.\u0275fac})}return r})();var dd={profiles:void 0,activeProfileId:void 0,todos:null,openedTodosCount:0,openedTodosByProfile:{},unreadMessagesCount:{active:0,archived:0,total:0}};function Rl(r=dd,t){switch(t.type){case Os:return _(h({},r),{profiles:t.profiles});case sn:return _(h({},r),{activeProfileId:t.profile_id});case Ds:if(!r.profiles||!r.profiles.find(i=>i.profile_id===t.profile_id))return r;let e=r.profiles.findIndex(i=>i.profile_id===t.profile_id),n=[...r.profiles];return n[e]=h(h({},n[e]),t.update),_(h({},r),{profiles:n});case xs:return _(h({},r),{openedTodosByProfile:t.response,openedTodosCount:Object.values(t.response).reduce((i,s)=>i+s,0)});case js:return _(h({},r),{todos:t.response});case Fs:return _(h({},r),{unreadMessagesCount:t.payload});default:return r}}var Fl=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=K({type:r});static \u0275inj=$({imports:[ce,ne,J,fo]})}return r})();Oi(Mo);B.production&&void 0;xi(Xa,{providers:[hi(Li,Et.forRoot({}),Tt.forRoot([]),Wa.instrument({maxAge:25,connectInZone:!0}),Et.forFeature("web-app",Rl),Tt.forFeature([kl]),Nl,Za,bl,Ss.forRoot(),Il,wl,Al,Fl,Ml,Ol,vs),{provide:$t,useValue:"de-DE"},{provide:Qi,useFactory:()=>B.websiteUri},{provide:Hi,useFactory:()=>B.healthXServiceUrl},{provide:Qt,useFactory:()=>B.freemiumServiceUrl},{provide:Wi,useFactory:()=>B.googleMapsApiKey},{provide:Ji,useFactory:()=>B.firebaseConfig},{provide:et,useFactory:()=>B.app.environment},{provide:Xi,useFactory:()=>B.app.url},{provide:ze,useFactory:()=>B.app.version},{provide:Jt,useFactory:()=>B.app.tag},{provide:Wt,useFactory:os,deps:[yi]},nt,Re,Gs,st,Cs,Yi,it,Qs,cn,dn,Co,bo,...is({dsn:B.sentryDsn,environment:B.app.environment,release:B.app.version,ignoreErrors:["Non-Error promise rejection captured"],beforeSend:r=>(r.exception?.values?.some(t=>t.type==="ChunkLoadError"||t.value?.includes("ChunkLoadError"))&&(r.level=Zi.Info),r)}),Fr(),Di(Ri(),ki([Dl])),Ta()]});
5
6//# debugId=d501edc4-d61b-5dce-aec5-0328ed947ca2

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.