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]="6fbd7f3a-cf86-5408-80f0-c53a6479d706")}catch(e){}}(); 3import{a as bo}from"./chunk-5TTBMAEJ.js";import"./chunk-DTMBSFNR.js";import{a as wo}from"./chunk-Q3VGAC2Q.js";import{a as cc}from"./chunk-QOJBKO5J.js";import{a as Kl}from"./chunk-UEG6AMH2.js";import{a as ur}from"./chunk-XKLVWDT4.js";import{a as ic,b as nc}from"./chunk-E5RJOPOD.js";import{b as $e,d as Na,e as Yl,g as sc,h as ac,i as lc}from"./chunk-XIWPEE46.js";import{a as qi}from"./chunk-NAU6M7DC.js";import"./chunk-BTHTUPUF.js";import{j as Jl}from"./chunk-E3AHMQO4.js";import"./chunk-MOTQ5AWA.js";import{a as Kt}from"./chunk-ZSFXLLKG.js";import{a as Xl}from"./chunk-W2QREIDI.js";import{a as Gi,b as Ue}from"./chunk-LQ4SIEBV.js";import{a as Ge}from"./chunk-PHNQWCAQ.js";import{a as Zl}from"./chunk-ISNKZMHQ.js";import{a as Ql}from"./chunk-BFULZXRB.js";import{e as Wl}from"./chunk-2TNAK57B.js";import"./chunk-72752F5E.js";import"./chunk-OVY6EDTI.js";import"./chunk-F5IWZ2P6.js";import"./chunk-R4IPFSQD.js";import"./chunk-YNXW3XB4.js";import{a as ql,b as Gl}from"./chunk-E5RJ7RCO.js";import"./chunk-MBLS3LFG.js";import"./chunk-MQPVEAJO.js";import"./chunk-MYYNZEZY.js";import{a as lr,b as gn}from"./chunk-OHV3VRQX.js";import"./chunk-4O6SCAA2.js";import"./chunk-YVDN2JI2.js";import"./chunk-QTIP6K62.js";import{i as oc}from"./chunk-2ZMHHA7Q.js";import"./chunk-BFGMM5EH.js";import"./chunk-ZAGZXP75.js";import{H as rc}from"./chunk-WHK64ZUQ.js";import"./chunk-UOPNDS46.js";import"./chunk-REDQK6LL.js";import"./chunk-2URU2LUN.js";import"./chunk-HPMUTVYB.js";import"./chunk-WTAZXU3H.js";import"./chunk-ALS6TH3Q.js";import{a as cr,x as dr}from"./chunk-U44DPNPU.js";import"./chunk-IZIKZSIY.js";import"./chunk-OUNC6SXQ.js";import"./chunk-QO4VJPX3.js";import{M as jl,O as Bl,fa as $l,r as yo}from"./chunk-B26FOHT5.js";import{a as Vl,b as Ul}from"./chunk-6ZE2GEBR.js";import"./chunk-6NTJ7A5V.js";import"./chunk-KM7D4QU6.js";import"./chunk-75KC7XY3.js";import"./chunk-OYY43EBR.js";import{a as Hl}from"./chunk-XKC6U7KO.js";import{a as xa}from"./chunk-ICJ4OYTG.js";import"./chunk-OD4XUPKL.js";import"./chunk-GV6YIY7T.js";import"./chunk-3Q4ENG64.js";import"./chunk-MZNQZHSR.js";import"./chunk-FAI4VIAI.js";import"./chunk-TZG57MXV.js";import"./chunk-6UKZOYTK.js";import"./chunk-GRLQ2JNI.js";import"./chunk-7OEBSWIG.js";import"./chunk-ICVHPWOZ.js";import"./chunk-I5TYGA5O.js";import"./chunk-FM4BRFJL.js";import"./chunk-6EK472QO.js";import"./chunk-74XSALDF.js";import{a as ec,b as tc}from"./chunk-JGXUOF73.js";import{b as zl}from"./chunk-TN63NN3M.js";import{$ as cl,$a as yl,$c as Ml,$d as ar,Aa as Eu,Ad as xl,Bd as Nu,C as St,Ca as Vi,Da as go,F as uo,Ga as ml,Gb as Cl,Ha as Cu,Hb as Mu,Ib as Qt,Id as _i,Jb as fn,Jc as Wi,Jd as rr,Ka as fl,Kc as _o,Kd as or,L as ho,La as ku,Lc as nr,Ld as Dl,M as po,Mc as Ol,Md as sr,Nd as Nl,Od as pt,P as fu,Pb as kl,Pd as _t,Qb as Au,Qd as yt,Va as gl,Wa as Pu,Yd as Ll,Z as al,Za as vl,Zd as Lu,_ as ll,_a as _l,_d as yi,aa as dl,ab as wl,ad as xu,ae as wt,b as ma,ba as ul,bb as bl,be as Ti,ca as Tu,ce as Rl,d as fa,da as ri,db as Sl,de as Ru,e as Ia,ee as rt,f as Oa,fe as oi,g as Ma,gb as $i,h as Aa,ha as ir,hb as vo,i as Qn,ia as Tt,ib as Tl,ja as Si,jb as Iu,ka as hl,kb as Gt,l as hi,la as pn,lb as mn,m as Kn,mb as El,nb as Ou,nc as Pl,o as pi,oc as Il,p as mi,q as fi,ue as Fl,ve as Fu,wd as Al,xd as Du,y as Ua,z as mu,za as pl}from"./chunk-3DSPHW6V.js";import{$ as Mt,A as mo,M as Xa,N as wu,O as $t,P as cn,Q as nl,R as bu,V as er,W as ol,X as Wt,Y as dn,a as Yn,aa as Ui,b as Va,c as gu,x as $a,y as vu,z as Bi}from"./chunk-63QE6F3C.js";import{c as Ce,d as Pt,f as qn,k as Gn,l as ka,n as Ee,p as Pa,r as Ze,u as rl,v as Su}from"./chunk-J3ZCYF7X.js";import"./chunk-N6HKC5YM.js";import{c as gi,h as sl,i as hn,j as vi,k as tr}from"./chunk-EHPICUXU.js";import{Ab as Ya,C as za,Da as fo,Db as Ja,E as ja,Ka as Ga,L as Ha,N as Ba,O as Xn,Oa as Qa,Ya as Ka,Za,Zb as el,a as xe,b as Ut,f as Da,g as lo,ga as Wa,gc as tl,hc as il,ia as _u,n as Hi,o as co,p as Zn,q as pu,r as La,rc as Jn,u as Ra,ua as qa,xa as yu,z as Fa}from"./chunk-NZAURXIC.js";import{A as Vt,D as qe,I as Un,J as _a,K as ya,L as wa,M as ba,N as Sa,O as Ta,P as ao,Q as $n,T as Ea,U as Ca,V as Wn,b as Vn,g as ga,i as gt,k as It,l as vt,p as zi,x as va,y as ji,z as Ot}from"./chunk-PDBQSBW2.js";import{$a as qs,$c as bt,Aa as Bs,Ac as na,Bb as Lt,Ca as q,Da as Ye,Ed as da,I as zs,Ia as Bt,Ib as L,Ja as je,Jb as I,Ka as so,L as no,Lc as pe,Mb as Qs,Md as ua,Nc as me,Oa as Vs,Ob as Ks,Oc as ra,Pb as Zs,Pc as oa,Qb as Xs,Rb as Hn,Sd as Fi,Tc as dt,Td as ha,Ua as Us,Uc as ut,Va as _e,Vc as ht,Wa as ye,Wb as Ys,Wd as pa,Xa as $s,Yc as Ri,Zb as ni,Zc as te,Zd as ce,_a as Ws,_b as Js,_c as et,ab as Gs,eb as Di,ec as Re,f as Ai,fb as on,fc as Ni,fd as Bn,gd as He,hc as V,ic as an,id as tt,ja as js,jc as ln,kb as Je,lb as sn,lc as Li,ma as xi,nd as sa,oc as ea,od as aa,q as Ls,ra as rn,rd as la,s as nn,sa as ro,ta as Ne,tc as S,uc as O,ud as ca,vc as re,w as Rs,wa as Hs,wc as ta,x as Fs,xa as Pe,xc as ia,ya as oo,zc as Fe}from"./chunk-RX45F3VG.js";import{a as qt,b as un}from"./chunk-XTLLHG7S.js";import"./chunk-3YV6UUBL.js";import"./chunk-JLENAXOB.js";import"./chunk-2QIXGXOC.js";import"./chunk-SNF2N7IK.js";import"./chunk-NM7LVQTP.js";import"./chunk-IK6B3JC3.js";import{a as ii,b as zn,e as Ds,f as jn,h as hu,j as Ns,m as U}from"./chunk-C6VPWJCA.js";var Oc=hu((df,vr)=>{(function(n,i,e,t){"use strict";var r=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),s="function",l=Math.round,d=Math.abs,u=Date.now;function f(a,c,p){return setTimeout(j(a,p),c);}function y(a,c,p){return Array.isArray(a)?(M(a,p[c],p),!0):!1;}function M(a,c,p){var w;
3if(a)if(a.forEach)a.forEach(c,p);else if(a.length!==t)for(w=0;w<a.length;)c.call(p,a[w],w,a),w++;else for(w in a)a.hasOwnProperty(w)&&c.call(p,a[w],w,a);}function R(a,c,p){var w="DEPRECATED METHOD: "+c+` 4`+p+` AT 5`;return function(){var D=new Error("get-stack-trace"),W=D&&D.stack?D.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Me=n.console&&(n.console.warn||n.console.log);return Me&&Me.call(n.console,w,W),a.apply(this,arguments);};}var N;typeof Object.assign!="function"?N=function(c){if(c===t||c===null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(c),w=1;w<arguments.length;w++){var D=arguments[w];if(D!==t&&D!==null)for(var W in D)D.hasOwnProperty(W)&&(p[W]=D[W]);}return p;}:N=Object.assign;var $=R(function(c,p,w){for(var D=Object.keys(p),W=0;W<D.length;)(!w||w&&c[D[W]]===t)&&(c[D[W]]=p[D[W]]),W++;return c;},"extend","Use `assign`."),fe=R(function(c,p){return $(c,p,!0);},"merge","Use `assign`.");function Z(a,c,p){var w=c.prototype,D;D=a.prototype=Object.create(w),D.constructor=a,D._super=w,p&&N(D,p);}function j(a,c){return function(){return a.apply(c,arguments);};}function v(a,c){return typeof a==s?a.apply(c&&c[0]||t,c):a;}function T(a,c){return a===t?c:a;}function J(a,c,p){M(Ie(c),function(w){a.addEventListener(w,p,!1);});}function ue(a,c,p){M(Ie(c),function(w){a.removeEventListener(w,p,!1);});}function de(a,c){for(;a;){if(a==c)return!0;a=a.parentNode;}return!1;}function z(a,c){return a.indexOf(c)>-1;}function Ie(a){return a.trim().split(/\s+/g);}function ee(a,c,p){if(a.indexOf&&!p)return a.indexOf(c);for(var w=0;w<a.length;){if(p&&a[w][p]==c||!p&&a[w]===c)return w;w++;}return-1;}function ie(a){return Array.prototype.slice.call(a,0);}function G(a,c,p){for(var w=[],D=[],W=0;W<a.length;){var Me=c?a[W][c]:a[W];ee(D,Me)<0&&w.push(a[W]),D[W]=Me,W++;}return p&&(c?w=w.sort(function(ot,ct){return ot[c]>ct[c];}):w=w.sort()),w;}function oe(a,c){for(var p,w,D=c[0].toUpperCase()+c.slice(1),W=0;W<r.length;){if(p=r[W],w=p?p+D:c,w in a)return w;W++;}return t;}var We=1;function ze(){return We++;}function P(a){var c=a.ownerDocument||a;return c.defaultView||c.parentWindow||n;}var C=/mobile|tablet|ip(ad|hone|od)|android/i,h=("ontouchstart"in n),m=oe(n,"PointerEvent")!==t,B=h&&C.test(navigator.userAgent),F="touch",be="pen",ge="mouse",se="kinect",at=25,Ve=1,Oe=2,k=4,b=8,_=1,A=2,X=4,ae=8,Q=16,le=A|X,ve=ae|Q,Te=le|ve,Le=["x","y"],Ae=["clientX","clientY"];function Qe(a,c){var p=this;this.manager=a,this.callback=c,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(w){v(a.options.enable,[a])&&p.handler(w);},this.init();}Qe.prototype={handler:function(){},init:function(){this.evEl&&J(this.element,this.evEl,this.domHandler),this.evTarget&&J(this.target,this.evTarget,this.domHandler),this.evWin&&J(P(this.element),this.evWin,this.domHandler);},destroy:function(){this.evEl&&ue(this.element,this.evEl,this.domHandler),this.evTarget&&ue(this.target,this.evTarget,this.domHandler),this.evWin&&ue(P(this.element),this.evWin,this.domHandler);}};function ft(a){var c,p=a.options.inputClass;return p?c=p:m?c=Qr:B?c=xn:h?c=Kr:c=An,new c(a,zt);}function zt(a,c,p){var w=p.pointers.length,D=p.changedPointers.length,W=c&Ve&&w-D===0,Me=c&(k|b)&&w-D===0;p.isFirst=!!W,p.isFinal=!!Me,W&&(a.session={}),p.eventType=c,Yt(a,p),a.emit("hammer.input",p),a.recognize(p),a.session.prevInput=p;}function Yt(a,c){var p=a.session,w=c.pointers,D=w.length;p.firstInput||(p.firstInput=x(c)),D>1&&!p.firstMultiple?p.firstMultiple=x(c):D===1&&(p.firstMultiple=!1);var W=p.firstInput,Me=p.firstMultiple,nt=Me?Me.center:W.center,ot=c.center=H(w);c.timeStamp=u(),c.deltaTime=c.timeStamp-W.timeStamp,c.angle=Se(nt,ot),c.distance=he(nt,ot),g(p,c),c.offsetDirection=Ke(c.deltaX,c.deltaY);var ct=K(c.deltaTime,c.deltaX,c.deltaY);c.overallVelocityX=ct.x,c.overallVelocityY=ct.y,c.overallVelocity=d(ct.x)>d(ct.y)?ct.x:ct.y,c.scale=Me?ke(Me.pointers,w):1,c.rotation=Me?ne(Me.pointers,w):0,c.maxPointers=p.prevInput?c.pointers.length>p.prevInput.maxPointers?c.pointers.length:p.prevInput.maxPointers:c.pointers.length,E(p,c);var Ht=a.element;de(c.srcEvent.target,Ht)&&(Ht=c.srcEvent.target),c.target=Ht;}function g(a,c){var p=c.center,w=a.offsetDelta||{},D=a.prevDelta||{},W=a.prevInput||{};(c.eventType===Ve||W.eventType===k)&&(D=a.prevDelta={x:W.deltaX||0,y:W.deltaY||0},w=a.offsetDelta={x:p.x,y:p.y}),c.deltaX=D.x+(p.x-w.x),c.deltaY=D.y+(p.y-w.y);}function E(a,c){var p=a.lastInterval||c,w=c.timeStamp-p.timeStamp,D,W,Me,nt;if(c.eventType!=b&&(w>at||p.velocity===t)){var ot=c.deltaX-p.deltaX,ct=c.deltaY-p.deltaY,Ht=K(w,ot,ct);W=Ht.x,Me=Ht.y,D=d(Ht.x)>d(Ht.y)?Ht.x:Ht.y,nt=Ke(ot,ct),a.lastInterval=c;}else D=p.velocity,W=p.velocityX,Me=p.velocityY,nt=p.direction;c.velocity=D,c.velocityX=W,c.velocityY=Me,c.direction=nt;}function x(a){for(var c=[],p=0;p<a.pointers.length;)c[p]={clientX:l(a.pointers[p].clientX),clientY:l(a.pointers[p].clientY)},p++;return{timeStamp:u(),pointers:c,center:H(c),deltaX:a.deltaX,deltaY:a.deltaY};}function H(a){var c=a.length;if(c===1)return{x:l(a[0].clientX),y:l(a[0].clientY)};for(var p=0,w=0,D=0;D<c;)p+=a[D].clientX,w+=a[D].clientY,D++;return{x:l(p/c),y:l(w/c)};}function K(a,c,p){return{x:c/a||0,y:p/a||0};}function Ke(a,c){return a===c?_:d(a)>=d(c)?a<0?A:X:c<0?ae:Q;}function he(a,c,p){p||(p=Le);var w=c[p[0]]-a[p[0]],D=c[p[1]]-a[p[1]];return Math.sqrt(w*w+D*D);}function Se(a,c,p){p||(p=Le);var w=c[p[0]]-a[p[0]],D=c[p[1]]-a[p[1]];return Math.atan2(D,w)*180/Math.PI;}function ne(a,c){return Se(c[1],c[0],Ae)+Se(a[1],a[0],Ae);}function ke(a,c){return he(c[0],c[1],Ae)/he(a[0],a[1],Ae);}var we={mousedown:Ve,mousemove:Oe,mouseup:k},Xe="mousedown",Mn="mousemove mouseup";function An(){this.evEl=Xe,this.evWin=Mn,this.pressed=!1,Qe.apply(this,arguments);}Z(An,Qe,{handler:function(c){var p=we[c.type];p&Ve&&c.button===0&&(this.pressed=!0),p&Oe&&c.which!==1&&(p=k),this.pressed&&(p&k&&(this.pressed=!1),this.callback(this.manager,p,{pointers:[c],changedPointers:[c],pointerType:ge,srcEvent:c}));}});var Kd={pointerdown:Ve,pointermove:Oe,pointerup:k,pointercancel:b,pointerout:b},Zd={2:F,3:be,4:ge,5:se},ws="pointerdown",bs="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(ws="MSPointerDown",bs="MSPointerMove MSPointerUp MSPointerCancel");function Qr(){this.evEl=ws,this.evWin=bs,Qe.apply(this,arguments),this.store=this.manager.session.pointerEvents=[];}Z(Qr,Qe,{handler:function(c){var p=this.store,w=!1,D=c.type.toLowerCase().replace("ms",""),W=Kd[D],Me=Zd[c.pointerType]||c.pointerType,nt=Me==F,ot=ee(p,c.pointerId,"pointerId");W&Ve&&(c.button===0||nt)?ot<0&&(p.push(c),ot=p.length-1):W&(k|b)&&(w=!0),!(ot<0)&&(p[ot]=c,this.callback(this.manager,W,{pointers:p,changedPointers:[c],pointerType:Me,srcEvent:c}),w&&p.splice(ot,1));}});var Xd={touchstart:Ve,touchmove:Oe,touchend:k,touchcancel:b},Yd="touchstart",Jd="touchstart touchmove touchend touchcancel";function Ss(){this.evTarget=Yd,this.evWin=Jd,this.started=!1,Qe.apply(this,arguments);}Z(Ss,Qe,{handler:function(c){var p=Xd[c.type];if(p===Ve&&(this.started=!0),!!this.started){var w=eu.call(this,c,p);p&(k|b)&&w[0].length-w[1].length===0&&(this.started=!1),this.callback(this.manager,p,{pointers:w[0],changedPointers:w[1],pointerType:F,srcEvent:c});}}});function eu(a,c){var p=ie(a.touches),w=ie(a.changedTouches);return c&(k|b)&&(p=G(p.concat(w),"identifier",!0)),[p,w];}var tu={touchstart:Ve,touchmove:Oe,touchend:k,touchcancel:b},iu="touchstart touchmove touchend touchcancel";function xn(){this.evTarget=iu,this.targetIds={},Qe.apply(this,arguments);}Z(xn,Qe,{handler:function(c){var p=tu[c.type],w=nu.call(this,c,p);w&&this.callback(this.manager,p,{pointers:w[0],changedPointers:w[1],pointerType:F,srcEvent:c});}});function nu(a,c){var p=ie(a.touches),w=this.targetIds;if(c&(Ve|Oe)&&p.length===1)return w[p[0].identifier]=!0,[p,p];var D,W,Me=ie(a.changedTouches),nt=[],ot=this.target;if(W=p.filter(function(ct){return de(ct.target,ot);}),c===Ve)for(D=0;D<W.length;)w[W[D].identifier]=!0,D++;for(D=0;D<Me.length;)w[Me[D].identifier]&&nt.push(Me[D]),c&(k|b)&&delete w[Me[D].identifier],D++;if(nt.length)return[G(W.concat(nt),"identifier",!0),nt];}var ru=2500,Ts=25;function Kr(){Qe.apply(this,arguments);var a=j(this.handler,this);this.touch=new xn(this.manager,a),this.mouse=new An(this.manager,a),this.primaryTouch=null,this.lastTouches=[];}Z(Kr,Qe,{handler:function(c,p,w){var D=w.pointerType==F,W=w.pointerType==ge;if(!(W&&w.sourceCapabilities&&w.sourceCapabilities.firesTouchEvents)){if(D)ou.call(this,p,w);else if(W&&su.call(this,w))return;this.callback(c,p,w);}},destroy:function(){this.touch.destroy(),this.mouse.destroy();}});function ou(a,c){a&Ve?(this.primaryTouch=c.changedPointers[0].identifier,Es.call(this,c)):a&(k|b)&&Es.call(this,c);}function Es(a){var c=a.changedPointers[0];if(c.identifier===this.primaryTouch){var p={x:c.clientX,y:c.clientY};this.lastTouches.push(p);var w=this.lastTouches,D=function(){var W=w.indexOf(p);W>-1&&w.splice(W,1);};setTimeout(D,ru);}}function su(a){for(var c=a.srcEvent.clientX,p=a.srcEvent.clientY,w=0;w<this.lastTouches.length;w++){var D=this.lastTouches[w],W=Math.abs(c-D.x),Me=Math.abs(p-D.y);if(W<=Ts&&Me<=Ts)return!0;}return!1;}var Cs=oe(o.style,"touchAction"),ks=Cs!==t,Ps="compute",Is="auto",Zr="manipulation",bi="none",Ji="pan-x",en="pan-y",Dn=lu();function Xr(a,c){this.manager=a,this.set(c);}Xr.prototype={set:function(a){a==Ps&&(a=this.compute()),ks&&this.manager.element.style&&Dn[a]&&(this.manager.element.style[Cs]=a),this.actions=a.toLowerCase().trim();},update:function(){this.set(this.manager.options.touchAction);},compute:function(){var a=[];return M(this.manager.recognizers,function(c){v(c.options.enable,[c])&&(a=a.concat(c.getTouchAction()));}),au(a.join(" "));},preventDefaults:function(a){var c=a.srcEvent,p=a.offsetDirection;if(this.manager.session.prevented){c.preventDefault();return;}var w=this.actions,D=z(w,bi)&&!Dn[bi],W=z(w,en)&&!Dn[en],Me=z(w,Ji)&&!Dn[Ji];
5if(D){var nt=a.pointers.length===1,ot=a.distance<2,ct=a.deltaTime<250;if(nt&&ot&&ct)return;}if(!(Me&&W)&&(D||W&&p&le||Me&&p&ve))return this.preventSrc(c);},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault();}};function au(a){if(z(a,bi))return bi;var c=z(a,Ji),p=z(a,en);return c&&p?bi:c||p?c?Ji:en:z(a,Zr)?Zr:Is;}function lu(){if(!ks)return!1;var a={},c=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(p){a[p]=c?n.CSS.supports("touch-action",p):!0;}),a;}var Nn=1,kt=2,Mi=4,ui=8,Jt=ui,tn=16,jt=32;function ei(a){this.options=N({},this.defaults,a||{}),this.id=ze(),this.manager=null,this.options.enable=T(this.options.enable,!0),this.state=Nn,this.simultaneous={},this.requireFail=[];}ei.prototype={defaults:{},set:function(a){return N(this.options,a),this.manager&&this.manager.touchAction.update(),this;},recognizeWith:function(a){if(y(a,"recognizeWith",this))return this;var c=this.simultaneous;return a=Ln(a,this),c[a.id]||(c[a.id]=a,a.recognizeWith(this)),this;},dropRecognizeWith:function(a){return y(a,"dropRecognizeWith",this)?this:(a=Ln(a,this),delete this.simultaneous[a.id],this);},requireFailure:function(a){if(y(a,"requireFailure",this))return this;var c=this.requireFail;return a=Ln(a,this),ee(c,a)===-1&&(c.push(a),a.requireFailure(this)),this;},dropRequireFailure:function(a){if(y(a,"dropRequireFailure",this))return this;a=Ln(a,this);var c=ee(this.requireFail,a);return c>-1&&this.requireFail.splice(c,1),this;},hasRequireFailures:function(){return this.requireFail.length>0;},canRecognizeWith:function(a){return!!this.simultaneous[a.id];},emit:function(a){var c=this,p=this.state;function w(D){c.manager.emit(D,a);}p<ui&&w(c.options.event+Os(p)),w(c.options.event),a.additionalEvent&&w(a.additionalEvent),p>=ui&&w(c.options.event+Os(p));},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=jt;},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(jt|Nn)))return!1;a++;}return!0;},recognize:function(a){var c=N({},a);if(!v(this.options.enable,[this,c])){this.reset(),this.state=jt;return;}this.state&(Jt|tn|jt)&&(this.state=Nn),this.state=this.process(c),this.state&(kt|Mi|ui|tn)&&this.tryEmit(c);},process:function(a){},getTouchAction:function(){},reset:function(){}};function Os(a){return a&tn?"cancel":a&ui?"end":a&Mi?"move":a&kt?"start":"";}function Ms(a){return a==Q?"down":a==ae?"up":a==A?"left":a==X?"right":"";}function Ln(a,c){var p=c.manager;return p?p.get(a):a;}function Nt(){ei.apply(this,arguments);}Z(Nt,ei,{defaults:{pointers:1},attrTest:function(a){var c=this.options.pointers;return c===0||a.pointers.length===c;},process:function(a){var c=this.state,p=a.eventType,w=c&(kt|Mi),D=this.attrTest(a);return w&&(p&b||!D)?c|tn:w||D?p&k?c|ui:c&kt?c|Mi:kt:jt;}});function Rn(){Nt.apply(this,arguments),this.pX=null,this.pY=null;}Z(Rn,Nt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Te},getTouchAction:function(){var a=this.options.direction,c=[];return a&le&&c.push(en),a&ve&&c.push(Ji),c;},directionTest:function(a){var c=this.options,p=!0,w=a.distance,D=a.direction,W=a.deltaX,Me=a.deltaY;return D&c.direction||(c.direction&le?(D=W===0?_:W<0?A:X,p=W!=this.pX,w=Math.abs(a.deltaX)):(D=Me===0?_:Me<0?ae:Q,p=Me!=this.pY,w=Math.abs(a.deltaY))),a.direction=D,p&&w>c.threshold&&D&c.direction;},attrTest:function(a){return Nt.prototype.attrTest.call(this,a)&&(this.state&kt||!(this.state&kt)&&this.directionTest(a));},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var c=Ms(a.direction);c&&(a.additionalEvent=this.options.event+c),this._super.emit.call(this,a);}});function Yr(){Nt.apply(this,arguments);}Z(Yr,Nt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bi];},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&kt);},emit:function(a){if(a.scale!==1){var c=a.scale<1?"in":"out";a.additionalEvent=this.options.event+c;}this._super.emit.call(this,a);}});function Jr(){ei.apply(this,arguments),this._timer=null,this._input=null;}Z(Jr,ei,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Is];},process:function(a){var c=this.options,p=a.pointers.length===c.pointers,w=a.distance<c.threshold,D=a.deltaT
5ime>c.time;if(this._input=a,!w||!p||a.eventType&(k|b)&&!D)this.reset();else if(a.eventType&Ve)this.reset(),this._timer=f(function(){this.state=Jt,this.tryEmit();},c.time,this);else if(a.eventType&k)return Jt;return jt;},reset:function(){clearTimeout(this._timer);},emit:function(a){this.state===Jt&&(a&&a.eventType&k?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)));}});function eo(){Nt.apply(this,arguments);}Z(eo,Nt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bi];},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&kt);}});function to(){Nt.apply(this,arguments);}Z(to,Nt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:le|ve,pointers:1},getTouchAction:function(){return Rn.prototype.getTouchAction.call(this);},attrTest:function(a){var c=this.options.direction,p;return c&(le|ve)?p=a.overallVelocity:c&le?p=a.overallVelocityX:c&ve&&(p=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&d(p)>this.options.velocity&&a.eventType&k;},emit:function(a){var c=Ms(a.offsetDirection);c&&this.manager.emit(this.options.event+c,a),this.manager.emit(this.options.event,a);}});function Fn(){ei.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0;}Z(Fn,ei,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Zr];},process:function(a){var c=this.options,p=a.pointers.length===c.pointers,w=a.distance<c.threshold,D=a.deltaTime<c.time;if(this.reset(),a.eventType&Ve&&this.count===0)return this.failTimeout();if(w&&D&&p){if(a.eventType!=k)return this.failTimeout();var W=this.pTime?a.timeStamp-this.pTime<c.interval:!0,Me=!this.pCenter||he(this.pCenter,a.center)<c.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,!Me||!W?this.count=1:this.count+=1,this._input=a;var nt=this.count%c.taps;if(nt===0)return this.hasRequireFailures()?(this._timer=f(function(){this.state=Jt,this.tryEmit();},c.interval,this),kt):Jt;}return jt;},failTimeout:function(){return this._timer=f(function(){this.state=jt;},this.options.interval,this),jt;},reset:function(){clearTimeout(this._timer);},emit:function(){this.state==Jt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input));}});function ti(a,c){return c=c||{},c.recognizers=T(c.recognizers,ti.defaults.preset),new io(a,c);}ti.VERSION="2.0.7",ti.defaults={domEvents:!1,touchAction:Ps,enable:!0,inputTarget:null,inputClass:null,preset:[[eo,{enable:!1}],[Yr,{enable:!1},["rotate"]],[to,{direction:le}],[Rn,{direction:le},["swipe"]],[Fn],[Fn,{event:"doubletap",taps:2},["tap"]],[Jr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var cu=1,As=2;function io(a,c){this.options=N({},ti.defaults,c||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=ft(this),this.touchAction=new Xr(this,this.options.touchAction),xs(this,!0),M(this.options.recognizers,function(p){var w=this.add(new p[0](p[1]));p[2]&&w.recognizeWith(p[2]),p[3]&&w.requireFailure(p[3]);},this);}io.prototype={set:function(a){return N(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this;},stop:function(a){this.session.stopped=a?As:cu;},recognize:function(a){var c=this.session;if(!c.stopped){this.touchAction.preventDefaults(a);var p,w=this.recognizers,D=c.curRecognizer;(!D||D&&D.state&Jt)&&(D=c.curRecognizer=null);for(var W=0;W<w.length;)p=w[W],c.stopped!==As&&(!D||p==D||p.canRecognizeWith(D))?p.recognize(a):p.reset(),!D&&p.state&(kt|Mi|ui)&&(D=c.curRecognizer=p),W++;}},get:function(a){if(a instanceof ei)return a;for(var c=this.recognizers,p=0;p<c.length;p++)if(c[p].options.event==a)return c[p];return null;}
5,add:function(a){if(y(a,"add",this))return this;var c=this.get(a.options.event);return c&&this.remove(c),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a;},remove:function(a){if(y(a,"remove",this))return this;if(a=this.get(a),a){var c=this.recognizers,p=ee(c,a);p!==-1&&(c.splice(p,1),this.touchAction.update());}return this;},on:function(a,c){if(a!==t&&c!==t){var p=this.handlers;return M(Ie(a),function(w){p[w]=p[w]||[],p[w].push(c);}),this;}},off:function(a,c){if(a!==t){var p=this.handlers;return M(Ie(a),function(w){c?p[w]&&p[w].splice(ee(p[w],c),1):delete p[w];}),this;}},emit:function(a,c){this.options.domEvents&&du(a,c);var p=this.handlers[a]&&this.handlers[a].slice();if(!(!p||!p.length)){c.type=a,c.preventDefault=function(){c.srcEvent.preventDefault();};for(var w=0;w<p.length;)p[w](c),w++;}},destroy:function(){this.element&&xs(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null;}};function xs(a,c){var p=a.element;if(p.style){var w;M(a.options.cssProps,function(D,W){w=oe(p.style,W),c?(a.oldCssProps[w]=p.style[w],p.style[w]=D):p.style[w]=a.oldCssProps[w]||"";}),c||(a.oldCssProps={});}}function du(a,c){var p=i.createEvent("Event");p.initEvent(a,!0,!0),p.gesture=c,c.target.dispatchEvent(p);}N(ti,{INPUT_START:Ve,INPUT_MOVE:Oe,INPUT_END:k,INPUT_CANCEL:b,STATE_POSSIBLE:Nn,STATE_BEGAN:kt,STATE_CHANGED:Mi,STATE_ENDED:ui,STATE_RECOGNIZED:Jt,STATE_CANCELLED:tn,STATE_FAILED:jt,DIRECTION_NONE:_,DIRECTION_LEFT:A,DIRECTION_RIGHT:X,DIRECTION_UP:ae,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:le,DIRECTION_VERTICAL:ve,DIRECTION_ALL:Te,Manager:io,Input:Qe,TouchAction:Xr,TouchInput:xn,MouseInput:An,PointerEventInput:Qr,TouchMouseInput:Kr,SingleTouchInput:Ss,Recognizer:ei,AttrRecognizer:Nt,Tap:Fn,Pan:Rn,Swipe:to,Pinch:Yr,Rotate:eo,Press:Jr,on:J,off:ue,each:M,merge:fe,extend:$,assign:N,inherit:Z,bindFn:j,prefixed:oe});var uu=typeof n<"u"?n:typeof self<"u"?self:{};uu.Hammer=ti,typeof define=="function"&&define.amd?define(function(){return ti;}):typeof vr<"u"&&vr.exports?vr.exports=ti:n[e]=ti;})(window,document,"Hammer");});var Zt=globalThis;function At(n){return(Zt.__Zone_symbol_prefix||"__zone_symbol__")+n;}function zu(){let n=Zt.performance;function i(P){n&&n.mark&&n.mark(P);}function e(P,C){n&&n.measure&&n.measure(P,C);}i("Zone");let t=(()=>{class P{static{this.__symbol__=At;}static assertZonePatched(){if(Zt.Promise!==ee.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)");}static get root(){let h=P.current;for(;h.parent;)h=h.parent;return h;}static get current(){return G.zone;}static get currentTask(){return oe;}static __load_patch(h,m,B=!1){if(ee.hasOwnProperty(h)){let F=Zt[At("forceDuplicateZoneCheck")]===!0;if(!B&&F)throw Error("Already loaded patch: "+h);}else if(!Zt["__Zone_disable_"+h]){let F="Zone:"+h;i(F),ee[h]=m(Zt,P,ie),e(F,F);}}get parent(){return this._parent;}get name(){return this._name;}constructor(h,m){this._parent=h,this._name=m?m.name||"unnamed":"<root>",this._properties=m&&m.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,m);}get(h){let m=this.getZoneWith(h);if(m)return m._properties[h];}getZoneWith(h){let m=this;for(;m;){if(m._properties.hasOwnProperty(h))return m;m=m._parent;}return null;}fork(h){if(!h)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,h);}wrap(h,m){if(typeof h!="function")throw new Error("Expecting function got: "+h);let B=this._zoneDelegate.intercept(this,h,m),F=this;return function(){return F.runGuarded(B,this,arguments,m);};}run(h,m,B,F){G={parent:G,zone:this};try{return this._zoneDelegate.invoke(this,h,m,B,F);}finally{G=G.parent;}}runGuarded(h,m=null,B,F){G={parent:G,zone:this};try{try{return this._zoneDelegate.invoke(this,h,m,B,F);}catch(be){if(this._zoneDelegate.handleError(this,be))throw be;}}finally{G=G.parent;}}runTask(h,m,B){if(h.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(h.zone||fe).name+"; Execution: "+this.name+")");let F=h,{type:be,data:{isPeriodic:ge=!1,isRefreshable:se=!1}={}}=h;
5if(h.state===Z&&(be===Ie||be===z))return;let at=h.state!=T;at&&F._transitionTo(T,v);let Ve=oe;oe=F,G={parent:G,zone:this};try{be==z&&h.data&&!ge&&!se&&(h.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,F,m,B);}catch(Oe){if(this._zoneDelegate.handleError(this,Oe))throw Oe;}}finally{let Oe=h.state;if(Oe!==Z&&Oe!==ue)if(be==Ie||ge||se&&Oe===j)at&&F._transitionTo(v,T,j);else{let k=F._zoneDelegates;this._updateTaskCount(F,-1),at&&F._transitionTo(Z,T,Z),se&&(F._zoneDelegates=k);}G=G.parent,oe=Ve;}}scheduleTask(h){if(h.zone&&h.zone!==this){let B=this;for(;B;){if(B===h.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${h.zone.name}`);B=B.parent;}}h._transitionTo(j,Z);let m=[];h._zoneDelegates=m,h._zone=this;try{h=this._zoneDelegate.scheduleTask(this,h);}catch(B){throw h._transitionTo(ue,j,Z),this._zoneDelegate.handleError(this,B),B;}return h._zoneDelegates===m&&this._updateTaskCount(h,1),h.state==j&&h._transitionTo(v,j),h;}scheduleMicroTask(h,m,B,F){return this.scheduleTask(new s(de,h,m,B,F,void 0));}scheduleMacroTask(h,m,B,F,be){return this.scheduleTask(new s(z,h,m,B,F,be));}scheduleEventTask(h,m,B,F,be){return this.scheduleTask(new s(Ie,h,m,B,F,be));}cancelTask(h){if(h.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(h.zone||fe).name+"; Execution: "+this.name+")");if(!(h.state!==v&&h.state!==T)){h._transitionTo(J,v,T);try{this._zoneDelegate.cancelTask(this,h);}catch(m){throw h._transitionTo(ue,J),this._zoneDelegate.handleError(this,m),m;}return this._updateTaskCount(h,-1),h._transitionTo(Z,J),h.runCount=-1,h;}}_updateTaskCount(h,m){let B=h._zoneDelegates;m==-1&&(h._zoneDelegates=null);for(let F=0;F<B.length;F++)B[F]._updateTaskCount(h.type,m);}}return P;})(),r={name:"",onHasTask:(P,C,h,m)=>P.hasTask(h,m),onScheduleTask:(P,C,h,m)=>P.scheduleTask(h,m),onInvokeTask:(P,C,h,m,B,F)=>P.invokeTask(h,m,B,F),onCancelTask:(P,C,h,m)=>P.cancelTask(h,m)};class o{get zone(){return this._zone;}constructor(C,h,m){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=C,this._parentDelegate=h,this._forkZS=m&&(m&&m.onFork?m:h._forkZS),this._forkDlgt=m&&(m.onFork?h:h._forkDlgt),this._forkCurrZone=m&&(m.onFork?this._zone:h._forkCurrZone),this._interceptZS=m&&(m.onIntercept?m:h._interceptZS),this._interceptDlgt=m&&(m.onIntercept?h:h._interceptDlgt),this._interceptCurrZone=m&&(m.onIntercept?this._zone:h._interceptCurrZone),this._invokeZS=m&&(m.onInvoke?m:h._invokeZS),this._invokeDlgt=m&&(m.onInvoke?h:h._invokeDlgt),this._invokeCurrZone=m&&(m.onInvoke?this._zone:h._invokeCurrZone),this._handleErrorZS=m&&(m.onHandleError?m:h._handleErrorZS),this._handleErrorDlgt=m&&(m.onHandleError?h:h._handleErrorDlgt),this._handleErrorCurrZone=m&&(m.onHandleError?this._zone:h._handleErrorCurrZone),this._scheduleTaskZS=m&&(m.onScheduleTask?m:h._scheduleTaskZS),this._scheduleTaskDlgt=m&&(m.onScheduleTask?h:h._scheduleTaskDlgt),this._scheduleTaskCurrZone=m&&(m.onScheduleTask?this._zone:h._scheduleTaskCurrZone),this._invokeTaskZS=m&&(m.onInvokeTask?m:h._invokeTaskZS),this._invokeTaskDlgt=m&&(m.onInvokeTask?h:h._invokeTaskDlgt),this._invokeTaskCurrZone=m&&(m.onInvokeTask?this._zone:h._invokeTaskCurrZone),this._cancelTaskZS=m&&(m.onCancelTask?m:h._cancelTaskZS),this._cancelTaskDlgt=m&&(m.onCancelTask?h:h._cancelTaskDlgt),this._cancelTaskCurrZone=m&&(m.onCancelTask?this._zone:h._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let B=m&&m.onHasTask,F=h&&h._hasTaskZS;(B||F)&&(this._hasTaskZS=B?m:r,this._hasTaskDlgt=h,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,m.onScheduleTask||(this._scheduleTaskZS=r,this._scheduleTaskDlgt=h,this._scheduleTaskCurrZone=this._zone),m.onInvokeTask||(this._invokeTaskZS=r,this._invokeTaskDlgt=h,this._invokeTaskCurrZone=this._zone),m.onCancelTask||(this._cancelTaskZS=r,this._cancelTaskDlgt=h,this._cancelTaskCurrZone=this._zone));}fork(C,h){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,C,h):new t(C,h);}intercept(C,h,m){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,C,h,m):h;}invoke(C,h,m,B,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,C,h,m,B,F):h.apply(m,B);}handleError(C,h){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,C,h):!0;}scheduleTask(C,h){let m=h;if(this._scheduleTaskZS)this._hasTaskZS&&m._zoneDelegates.push(this._hasTaskDlgtOwner),m=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,C,h),m||(m=h);else if(h.scheduleFn)h.scheduleFn(h);else if(h.type==de)N(h);else throw new Error("Task is missing scheduleFn.");return m;}invokeTask(C,h,m,B){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,C,h,m,B):h.callback.apply(m,B);}cancelTask(C,h){let m;if(this._cancelTaskZS)m=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,C,h);else{if(!h.cancelFn)throw Error("Task is not cancelable");m=h.cancelFn(h);}return m;}hasTask(C,h){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,C,h);}catch(m){this.handleError(C,m);}}_updateTaskCount(C,h){let m=this._taskCounts,B=m[C],F=m[C]=B+h;if(F<0)throw new Error("More tasks executed then were scheduled.");
5if(B==0||F==0){let be={microTask:m.microTask>0,macroTask:m.macroTask>0,eventTask:m.eventTask>0,change:C};this.hasTask(this._zone,be);}}}class s{constructor(C,h,m,B,F,be){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=C,this.source=h,this.data=B,this.scheduleFn=F,this.cancelFn=be,!m)throw new Error("callback is not defined");this.callback=m;let ge=this;C===Ie&&B&&B.useG?this.invoke=s.invokeTask:this.invoke=function(){return s.invokeTask.call(Zt,ge,this,arguments);};}static invokeTask(C,h,m){C||(C=this),We++;try{return C.runCount++,C.zone.runTask(C,h,m);}finally{We==1&&$(),We--;}}get zone(){return this._zone;}get state(){return this._state;}cancelScheduleRequest(){this._transitionTo(Z,j);}_transitionTo(C,h,m){if(this._state===h||this._state===m)this._state=C,C==Z&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${C}', expecting state '${h}'${m?" or '"+m+"'":""}, was '${this._state}'.`);}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this);}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount};}}let l=At("setTimeout"),d=At("Promise"),u=At("then"),f=[],y=!1,M;function R(P){if(M||Zt[d]&&(M=Zt[d].resolve(0)),M){let C=M[u];C||(C=M.then),C.call(M,P);}else Zt[l](P,0);}function N(P){We===0&&f.length===0&&R($),P&&f.push(P);}function $(){if(!y){for(y=!0;f.length;){let P=f;f=[];for(let C=0;C<P.length;C++){let h=P[C];try{h.zone.runTask(h,null,null);}catch(m){ie.onUnhandledError(m);}}}ie.microtaskDrainDone(),y=!1;}}let fe={name:"NO ZONE"},Z="notScheduled",j="scheduling",v="scheduled",T="running",J="canceling",ue="unknown",de="microTask",z="macroTask",Ie="eventTask",ee={},ie={symbol:At,currentZoneFrame:()=>G,onUnhandledError:ze,microtaskDrainDone:ze,scheduleMicroTask:N,showUncaughtError:()=>!t[At("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ze,patchMethod:()=>ze,bindArguments:()=>[],patchThen:()=>ze,patchMacroTask:()=>ze,patchEventPrototype:()=>ze,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ze,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ze,wrapWithCurrentZone:()=>ze,filterProperties:()=>[],attachOriginToPatched:()=>ze,_redefineProperty:()=>ze,patchCallbacks:()=>ze,nativeScheduleMicroTask:R},G={parent:null,zone:new t(null,null)},oe=null,We=0;function ze(){}return e("Zone","Zone"),t;}function ju(){let n=globalThis,i=n[At("forceDuplicateZoneCheck")]===!0;if(n.Zone&&(i||typeof n.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return n.Zone??=zu(),n.Zone;}var _n=Object.getOwnPropertyDescriptor,ko=Object.defineProperty,Po=Object.getPrototypeOf,Hu=Object.create,Bu=Array.prototype.slice,Io="addEventListener",Oo="removeEventListener",So=At(Io),To=At(Oo),si="true",ai="false",yn=At("");function Mo(n,i){return Zone.current.wrap(n,i);}function Ao(n,i,e,t,r){return Zone.current.scheduleMacroTask(n,i,e,t,r);}var Be=At,mr=typeof window<"u",Zi=mr?window:void 0,it=mr&&Zi||globalThis,Vu="removeAttribute";function xo(n,i){for(let e=n.length-1;e>=0;e--)typeof n[e]=="function"&&(n[e]=Mo(n[e],i+"_"+e));return n;}function Uu(n,i){let e=n.constructor.name;for(let t=0;t<i.length;t++){let r=i[t],o=n[r];if(o){let s=_n(n,r);if(!gc(s))continue;n[r]=(l=>{let d=function(){return l.apply(this,xo(arguments,e+"."+r));};return ci(d,l),d;})(o);}}}function gc(n){return n?n.writable===!1?!1:!(typeof n.get=="function"&&typeof n.set>"u"):!0;}var vc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,fr=!("nw"in it)&&typeof it.process<"u"&&it.process.toString()==="[object process]",Do=!fr&&!vc&&!!(mr&&Zi.HTMLElement),_c=typeof it.process<"u"&&it.process.toString()==="[object process]"&&!vc&&!!(mr&&Zi.HTMLElement),pr={},$u=Be("enable_beforeunload"),dc=function(n){if(n=n||it.event,!n)return;let i=pr[n.type];i||(i=pr[n.type]=Be("ON_PROPERTY"+n.type));let e=this||n.target||it,t=e[i],r;if(Do&&e===Zi&&n.type==="error"){let o=n;r=t&&t.call(this,o.message,o.filename,o.lineno,o.colno,o.error),r===!0&&n.preventDefault();}else r=t&&t.apply(this,arguments),n.type==="beforeunload"&&it[$u]&&typeof r=="string"?n.returnValue=r:r!=null&&!r&&n.preventDefault();return r;};function uc(n,i,e){let t=_n(n,i);if(!t&&e&&_n(e,i)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let r=Be("on"+i+"patched");if(n.hasOwnProperty(r)&&n[r])return;delete t.writable,delete t.value;let o=t.get,s=t.set,l=i.slice(2),d=pr[l];d||(d=pr[l]=Be("ON_PROPERTY"+l)),t.set=function(u){let f=this;if(!f&&n===it&&(f=it),!f)return;typeof f[d]=="function"&&f.removeEventListener(l,dc),s&&s.call(f,null),f[d]=u,typeof u=="function"&&f.addEventListener(l,dc,!1);},t.get=function(){let u=this;if(!u&&n===it&&(u=it),!u)return null;let f=u[d];if(f)return f;if(o){let y=o.call(this);if(y)return t.set.call(this,y),typeof u[Vu]=="function"&&u.removeAttribute(i),y;}return null;},ko(n,i,t),n[r]=!0;}function yc(n,i,e){if(i)for(let t=0;t<i.length;
5t++)uc(n,"on"+i[t],e);else{let t=[];for(let r in n)r.slice(0,2)=="on"&&t.push(r);for(let r=0;r<t.length;r++)uc(n,t[r],e);}}var Rt=Be("originalInstance");function vn(n){let i=it[n];if(!i)return;it[Be(n)]=i,it[n]=function(){let r=xo(arguments,n);switch(r.length){case 0:this[Rt]=new i();break;case 1:this[Rt]=new i(r[0]);break;case 2:this[Rt]=new i(r[0],r[1]);break;case 3:this[Rt]=new i(r[0],r[1],r[2]);break;case 4:this[Rt]=new i(r[0],r[1],r[2],r[3]);break;default:throw new Error("Arg list too long.");}},ci(it[n],i);let e=new i(function(){}),t;for(t in e)n==="XMLHttpRequest"&&t==="responseBlob"||function(r){typeof e[r]=="function"?it[n].prototype[r]=function(){return this[Rt][r].apply(this[Rt],arguments);}:ko(it[n].prototype,r,{set:function(o){typeof o=="function"?(this[Rt][r]=Mo(o,n+"."+r),ci(this[Rt][r],o)):this[Rt][r]=o;},get:function(){return this[Rt][r];}});}(t);for(t in i)t!=="prototype"&&i.hasOwnProperty(t)&&(it[n][t]=i[t]);}function li(n,i,e){let t=n;for(;t&&!t.hasOwnProperty(i);)t=Po(t);!t&&n[i]&&(t=n);let r=Be(i),o=null;if(t&&(!(o=t[r])||!t.hasOwnProperty(r))){o=t[r]=t[i];let s=t&&_n(t,i);if(gc(s)){let l=e(o,r,i);t[i]=function(){return l(this,arguments);},ci(t[i],o);}}return o;}function Wu(n,i,e){let t=null;function r(o){let s=o.data;return s.args[s.cbIdx]=function(){o.invoke.apply(this,arguments);},t.apply(s.target,s.args),o;}t=li(n,i,o=>function(s,l){let d=e(s,l);return d.cbIdx>=0&&typeof l[d.cbIdx]=="function"?Ao(d.name,l[d.cbIdx],d,r):o.apply(s,l);});}function ci(n,i){n[Be("OriginalDelegate")]=i;}var hc=!1,Eo=!1;function qu(){try{let n=Zi.navigator.userAgent;if(n.indexOf("MSIE ")!==-1||n.indexOf("Trident/")!==-1)return!0;}catch{}return!1;}function Gu(){if(hc)return Eo;hc=!0;try{let n=Zi.navigator.userAgent;(n.indexOf("MSIE ")!==-1||n.indexOf("Trident/")!==-1||n.indexOf("Edge/")!==-1)&&(Eo=!0);}catch{}return Eo;}function pc(n){return typeof n=="function";}function mc(n){return typeof n=="number";}var Ki=!1;if(typeof window<"u")try{let n=Object.defineProperty({},"passive",{get:function(){Ki=!0;}});window.addEventListener("test",n,n),window.removeEventListener("test",n,n);}catch{Ki=!1;}var Qu={useG:!0},xt={},wc={},bc=new RegExp("^"+yn+"(\\w+)(true|false)$"),Sc=Be("propagationStopped");function Tc(n,i){let e=(i?i(n):n)+ai,t=(i?i(n):n)+si,r=yn+e,o=yn+t;xt[n]={},xt[n][ai]=r,xt[n][si]=o;}function Ku(n,i,e,t){let r=t&&t.add||Io,o=t&&t.rm||Oo,s=t&&t.listeners||"eventListeners",l=t&&t.rmAll||"removeAllListeners",d=Be(r),u="."+r+":",f="prependListener",y="."+f+":",M=function(j,v,T){if(j.isRemoved)return;let J=j.callback;typeof J=="object"&&J.handleEvent&&(j.callback=z=>J.handleEvent(z),j.originalDelegate=J);let ue;
5try{j.invoke(j,v,[T]);}catch(z){ue=z;}let de=j.options;if(de&&typeof de=="object"&&de.once){let z=j.originalDelegate?j.originalDelegate:j.callback;v[o].call(v,T.type,z,de);}return ue;};function R(j,v,T){if(v=v||n.event,!v)return;let J=j||v.target||n,ue=J[xt[v.type][T?si:ai]];if(ue){let de=[];if(ue.length===1){let z=M(ue[0],J,v);z&&de.push(z);}else{let z=ue.slice();for(let Ie=0;Ie<z.length&&!(v&&v[Sc]===!0);Ie++){let ee=M(z[Ie],J,v);ee&&de.push(ee);}}if(de.length===1)throw de[0];for(let z=0;z<de.length;z++){let Ie=de[z];i.nativeScheduleMicroTask(()=>{throw Ie;});}}}let N=function(j){return R(this,j,!1);},$=function(j){return R(this,j,!0);};function fe(j,v){if(!j)return!1;let T=!0;v&&v.useG!==void 0&&(T=v.useG);let J=v&&v.vh,ue=!0;v&&v.chkDup!==void 0&&(ue=v.chkDup);let de=!1;v&&v.rt!==void 0&&(de=v.rt);let z=j;for(;z&&!z.hasOwnProperty(r);)z=Po(z);if(!z&&j[r]&&(z=j),!z||z[d])return!1;let Ie=v&&v.eventNameToString,ee={},ie=z[d]=z[r],G=z[Be(o)]=z[o],oe=z[Be(s)]=z[s],We=z[Be(l)]=z[l],ze;v&&v.prepend&&(ze=z[Be(v.prepend)]=z[v.prepend]);function P(_,A){return!Ki&&typeof _=="object"&&_?!!_.capture:!Ki||!A?_:typeof _=="boolean"?{capture:_,passive:!0}:_?typeof _=="object"&&_.passive!==!1?zn(ii({},_),{passive:!0}):_:{passive:!0};}let C=function(_){if(!ee.isExisting)return ie.call(ee.target,ee.eventName,ee.capture?$:N,ee.options);},h=function(_){if(!_.isRemoved){let A=xt[_.eventName],X;A&&(X=A[_.capture?si:ai]);let ae=X&&_.target[X];if(ae){for(let Q=0;Q<ae.length;Q++)if(ae[Q]===_){ae.splice(Q,1),_.isRemoved=!0,_.removeAbortListener&&(_.removeAbortListener(),_.removeAbortListener=null),ae.length===0&&(_.allRemoved=!0,_.target[X]=null);break;}}}if(_.allRemoved)return G.call(_.target,_.eventName,_.capture?$:N,_.options);},m=function(_){return ie.call(ee.target,ee.eventName,_.invoke,ee.options);},B=function(_){return ze.call(ee.target,ee.eventName,_.invoke,ee.options);},F=function(_){return G.call(_.target,_.eventName,_.invoke,_.options);},be=T?C:m,ge=T?h:F,se=function(_,A){let X=typeof A;return X==="function"&&_.callback===A||X==="object"&&_.originalDelegate===A;},at=v&&v.diff?v.diff:se,Ve=Zone[Be("UNPATCHED_EVENTS")],Oe=n[Be("PASSIVE_EVENTS")];function k(_){if(typeof _=="object"&&_!==null){let A=ii({},_);return _.signal&&(A.signal=_.signal),A;}return _;}let b=function(_,A,X,ae,Q=!1,le=!1){return function(){let ve=this||n,Te=arguments[0];v&&v.transferEventName&&(Te=v.transferEventName(Te));let Le=arguments[1];if(!Le)return _.apply(this,arguments);if(fr&&Te==="uncaughtException")return _.apply(this,arguments);let Ae=!1;if(typeof Le!="function"){if(!Le.handleEvent)return _.apply(this,arguments);Ae=!0;}if(J&&!J(_,Le,ve,arguments))return;let Qe=Ki&&!!Oe&&Oe.indexOf(Te)!==-1,ft=k(P(arguments[2],Qe)),zt=ft?.signal;if(zt?.aborted)return;if(Ve){for(let Xe=0;Xe<Ve.length;Xe++)if(Te===Ve[Xe])return Qe?_.call(ve,Te,Le,ft):_.apply(this,arguments);}let Yt=ft?typeof ft=="boolean"?!0:ft.capture:!1,g=ft&&typeof ft=="object"?ft.once:!1,E=Zone.current,x=xt[Te];x||(Tc(Te,Ie),x=xt[Te]);let H=x[Yt?si:ai],K=ve[H],Ke=!1;if(K){if(Ke=!0,ue){for(let Xe=0;Xe<K.length;Xe++)if(at(K[Xe],Le))return;}}else K=ve[H]=[];let he,Se=ve.constructor.name,ne=wc[Se];ne&&(he=ne[Te]),he||(he=Se+A+(Ie?Ie(Te):Te)),ee.options=ft,g&&(ee.options.once=!1),ee.target=ve,ee.capture=Yt,ee.eventName=Te,ee.isExisting=Ke;let ke=T?Qu:void 0;ke&&(ke.taskData=ee),zt&&(ee.options.signal=void 0);let we=E.scheduleEventTask(he,Le,ke,X,ae);if(zt){ee.options.signal=zt;let Xe=()=>we.zone.cancelTask(we);_.call(zt,"abort",Xe,{once:!0}),we.removeAbortListener=()=>zt.removeEventListener("abort",Xe);}if(ee.target=null,ke&&(ke.taskData=null),g&&(ee.options.once=!0),!Ki&&typeof we.options=="boolean"||(we.options=ft),we.target=ve,we.capture=Yt,we.eventName=Te,Ae&&(we.originalDelegate=Le),le?K.unshift(we):K.push(we),Q)return ve;};};return z[r]=b(ie,u,be,ge,de),ze&&(z[f]=b(ze,y,B,ge,de,!0)),z[o]=function(){let _=this||n,A=arguments[0];v&&v.transferEventName&&(A=v.transferEventName(A));let X=arguments[2],ae=X?typeof X=="boolean"?!0:X.capture:!1,Q=arguments[1];if(!Q)return G.apply(this,arguments);if(J&&!J(G,Q,_,arguments))return;let le=xt[A],ve;le&&(ve=le[ae?si:ai]);let Te=ve&&_[ve];if(Te)for(let Le=0;Le<Te.length;Le++){let Ae=Te[Le];if(at(Ae,Q)){if(Te.splice(Le,1),Ae.isRemoved=!0,Te.length===0&&(Ae.allRemoved=!0,_[ve]=null,!ae&&typeof A=="string")){let Qe=yn+"ON_PROPERTY"+A;_[Qe]=null;}return Ae.zone.cancelTask(Ae),de?_:void 0;}}return G.apply(this,arguments);},z[s]=function(){let _=this||n,A=arguments[0];v&&v.transferEventName&&(A=v.transferEventName(A));let X=[],ae=Ec(_,Ie?Ie(A):A);for(let Q=0;Q<ae.length;Q++){let le=ae[Q],ve=le.originalDelegate?le.originalDelegate:le.callback;X.push(ve);}return X;},z[l]=function(){let _=this||n,A=arguments[0];if(A){v&&v.transferEventName&&(A=v.transferEventName(A));let X=xt[A];if(X){let ae=X[ai],Q=X[si],le=_[ae],ve=_[Q];if(le){let Te=le.slice();for(let Le=0;Le<Te.length;Le++){let Ae=Te[Le],Qe=Ae.originalDelegate?Ae.originalDelegate:Ae.callback;this[o].call(this,A,Qe,Ae.options);}}if(ve){let Te=ve.slice();for(let Le=0;Le<Te.length;Le++){let Ae=Te[Le],Qe=Ae.originalDelegate?Ae.originalDelegate:Ae.callback;this[o].call(this,A,Qe,Ae.options);}}}}else{let X=Object.keys(_);for(let ae=0;ae<X.length;ae++){let Q=X[ae],le=bc.exec(Q),ve=le&&le[1];ve&&ve!=="removeListener"&&this[l].call(this,ve);}this[l].call(this,"removeListener");}if(de)return this;},ci(z[r],ie),ci(z[o],G),We&&ci(z[l],We),oe&&ci(z[s],oe),!0;}let Z=[];for(let j=0;j<e.length;j++)Z[j]=fe(e[j],t);return Z;}
5function Ec(n,i){if(!i){let o=[];for(let s in n){let l=bc.exec(s),d=l&&l[1];if(d&&(!i||d===i)){let u=n[s];if(u)for(let f=0;f<u.length;f++)o.push(u[f]);}}return o;}let e=xt[i];e||(Tc(i),e=xt[i]);let t=n[e[ai]],r=n[e[si]];return t?r?t.concat(r):t.slice():r?r.slice():[];}function Zu(n,i){let e=n.Event;e&&e.prototype&&i.patchMethod(e.prototype,"stopImmediatePropagation",t=>function(r,o){r[Sc]=!0,t&&t.apply(r,o);});}function Xu(n,i){i.patchMethod(n,"queueMicrotask",e=>function(t,r){Zone.current.scheduleMicroTask("queueMicrotask",r[0]);});}var hr=Be("zoneTask");function Qi(n,i,e,t){let r=null,o=null;i+=t,e+=t;let s={};function l(u){let f=u.data;f.args[0]=function(){return u.invoke.apply(this,arguments);};let y=r.apply(n,f.args);return mc(y)?f.handleId=y:(f.handle=y,f.isRefreshable=pc(y.refresh)),u;}function d(u){let{handle:f,handleId:y}=u.data;return o.call(n,f??y);}r=li(n,i,u=>function(f,y){if(pc(y[0])){let M={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?y[1]||0:void 0,args:y},R=y[0];y[0]=function(){try{return R.apply(this,arguments);}finally{let{handle:T,handleId:J,isPeriodic:ue,isRefreshable:de}=M;!ue&&!de&&(J?delete s[J]:T&&(T[hr]=null));}};let N=Ao(i,y[0],M,l,d);if(!N)return N;let{handleId:$,handle:fe,isRefreshable:Z,isPeriodic:j}=N.data;if($)s[$]=N;else if(fe&&(fe[hr]=N,Z&&!j)){let v=fe.refresh;fe.refresh=function(){let{zone:T,state:J}=N;return J==="notScheduled"?(N._state="scheduled",T._updateTaskCount(N,1)):J==="running"&&(N._state="scheduling"),v.call(this);};}return fe??$??N;}else return u.apply(n,y);}),o=li(n,e,u=>function(f,y){let M=y[0],R;mc(M)?(R=s[M],delete s[M]):(R=M?.[hr],R?M[hr]=null:R=M),R?.type?R.cancelFn&&R.zone.cancelTask(R):u.apply(n,y);});}function Yu(n,i){let{isBrowser:e,isMix:t}=i.getGlobalObjects();if(!e&&!t||!n.customElements||!("customElements"in n))return;let r=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];i.patchCallbacks(i,n.customElements,"customElements","define",r);}function Ju(n,i){if(Zone[i.symbol("patchEventTarget")])return;let{eventNames:e,zoneSymbolEventNames:t,TRUE_STR:r,FALSE_STR:o,ZONE_SYMBOL_PREFIX:s}=i.getGlobalObjects();for(let d=0;d<e.length;d++){let u=e[d],f=u+o,y=u+r,M=s+f,R=s+y;t[u]={},t[u][o]=M,t[u][r]=R;}let l=n.EventTarget;if(!(!l||!l.prototype))return i.patchEventTarget(n,i,[l&&l.prototype]),!0;}function eh(n,i){i.patchEventPrototype(n,i);}function Cc(n,i,e){if(!e||e.length===0)return i;let t=e.filter(o=>o.target===n);if(!t||t.length===0)return i;let r=t[0].ignoreProperties;return i.filter(o=>r.indexOf(o)===-1);}function fc(n,i,e,t){if(!n)return;let r=Cc(n,i,e);yc(n,r,t);}function Co(n){return Object.getOwnPropertyNames(n).filter(i=>i.startsWith("on")&&i.length>2).map(i=>i.substring(2));}function th(n,i){if(fr&&!_c||Zone[n.symbol("patchEvents")])return;let e=i.__Zone_ignore_on_properties,t=[];if(Do){let r=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let o=qu()?[{target:r,ignoreProperties:["error"]}]:[];fc(r,Co(r),e&&e.concat(o),Po(r));}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let r=0;r<t.length;r++){let o=i[t[r]];o&&o.prototype&&fc(o.prototype,Co(o.prototype),e);}}function ih(n){n.__load_patch("legacy",i=>{let e=i[n.__symbol__("legacyPatch")];e&&e();}),n.__load_patch("timers",i=>{let e="set",t="clear";Qi(i,e,t,"Timeout"),Qi(i,e,t,"Interval"),Qi(i,e,t,"Immediate");}),n.__load_patch("requestAnimationFrame",i=>{Qi(i,"request","cancel","AnimationFrame"),Qi(i,"mozRequest","mozCancel","AnimationFrame"),Qi(i,"webkitRequest","webkitCancel","AnimationFrame");}),n.__load_patch("blocking",(i,e)=>{let t=["alert","prompt","confirm"];for(let r=0;r<t.length;r++){let o=t[r];li(i,o,(s,l,d)=>function(u,f){return e.current.run(s,i,f,d);});}}),n.__load_patch("EventTarget",(i,e,t)=>{eh(i,t),Ju(i,t);let r=i.XMLHttpRequestEventTarget;r&&r.prototype&&t.patchEventTarget(i,t,[r.prototype]);}),n.__load_patch("MutationObserver",(i,e,t)=>{vn("MutationObserver"),vn("WebKitMutationObserver");}),n.__load_patch("IntersectionObserver",(i,e,t)=>{vn("IntersectionObserver");}),n.__load_patch("FileReader",(i,e,t)=>{vn("FileReader");}),n.__load_patch("on_property",(i,e,t)=>{th(t,i);}),n.__load_patch("customElements",(i,e,t)=>{Yu(i,t);}),n.__load_patch("XHR",(i,e)=>{u(i);let t=Be("xhrTask"),r=Be("xhrSync"),o=Be("xhrListener"),s=Be("xhrScheduled"),l=Be("xhrURL"),d=Be("xhrErrorBeforeScheduled");function u(f){let y=f.XMLHttpRequest;if(!y)return;let M=y.prototype;function R(ie){return ie[t];}let N=M[So],$=M[To];
5if(!N){let ie=f.XMLHttpRequestEventTarget;if(ie){let G=ie.prototype;N=G[So],$=G[To];}}let fe="readystatechange",Z="scheduled";function j(ie){let G=ie.data,oe=G.target;oe[s]=!1,oe[d]=!1;let We=oe[o];N||(N=oe[So],$=oe[To]),We&&$.call(oe,fe,We);let ze=oe[o]=()=>{if(oe.readyState===oe.DONE)if(!G.aborted&&oe[s]&&ie.state===Z){let C=oe[e.__symbol__("loadfalse")];if(oe.status!==0&&C&&C.length>0){let h=ie.invoke;ie.invoke=function(){let m=oe[e.__symbol__("loadfalse")];for(let B=0;B<m.length;B++)m[B]===ie&&m.splice(B,1);!G.aborted&&ie.state===Z&&h.call(ie);},C.push(ie);}else ie.invoke();}else!G.aborted&&oe[s]===!1&&(oe[d]=!0);};return N.call(oe,fe,ze),oe[t]||(oe[t]=ie),Ie.apply(oe,G.args),oe[s]=!0,ie;}function v(){}function T(ie){let G=ie.data;return G.aborted=!0,ee.apply(G.target,G.args);}let J=li(M,"open",()=>function(ie,G){return ie[r]=G[2]==!1,ie[l]=G[1],J.apply(ie,G);}),ue="XMLHttpRequest.send",de=Be("fetchTaskAborting"),z=Be("fetchTaskScheduling"),Ie=li(M,"send",()=>function(ie,G){if(e.current[z]===!0||ie[r])return Ie.apply(ie,G);{let oe={target:ie,url:ie[l],isPeriodic:!1,args:G,aborted:!1},We=Ao(ue,v,oe,j,T);ie&&ie[d]===!0&&!oe.aborted&&We.state===Z&&We.invoke();}}),ee=li(M,"abort",()=>function(ie,G){let oe=R(ie);if(oe&&typeof oe.type=="string"){if(oe.cancelFn==null||oe.data&&oe.data.aborted)return;oe.zone.cancelTask(oe);}else if(e.current[de]===!0)return ee.apply(ie,G);});}}),n.__load_patch("geolocation",i=>{i.navigator&&i.navigator.geolocation&&Uu(i.navigator.geolocation,["getCurrentPosition","watchPosition"]);}),n.__load_patch("PromiseRejectionEvent",(i,e)=>{function t(r){return function(o){Ec(i,r).forEach(l=>{let d=i.PromiseRejectionEvent;if(d){let u=new d(r,{promise:o.promise,reason:o.rejection});l.invoke(u);}});};}i.PromiseRejectionEvent&&(e[Be("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),e[Be("rejectionHandledHandler")]=t("rejectionhandled"));}),n.__load_patch("queueMicrotask",(i,e,t)=>{Xu(i,t);});}function nh(n){n.__load_patch("ZoneAwarePromise",(i,e,t)=>{let r=Object.getOwnPropertyDescriptor,o=Object.defineProperty;function s(k){if(k&&k.toString===Object.prototype.toString){let b=k.constructor&&k.constructor.name;return(b||"")+": "+JSON.stringify(k);}return k?k.toString():Object.prototype.toString.call(k);}let l=t.symbol,d=[],u=i[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,f=l("Promise"),y=l("then"),M="__creationTrace__";t.onUnhandledError=k=>{if(t.showUncaughtError()){let b=k&&k.rejection;b?console.error("Unhandled Promise rejection:",b instanceof Error?b.message:b,"; Zone:",k.zone.name,"; Task:",k.task&&k.task.source,"; Value:",b,b instanceof Error?b.stack:void 0):console.error(k);}},t.microtaskDrainDone=()=>{for(;d.length;){let k=d.shift();try{k.zone.runGuarded(()=>{throw k.throwOriginal?k.rejection:k;});}catch(b){N(b);}}};let R=l("unhandledPromiseRejectionHandler");function N(k){t.onUnhandledError(k);try{let b=e[R];typeof b=="function"&&b.call(this,k);}catch{}}function $(k){return k&&k.then;}function fe(k){return k;}function Z(k){return ge.reject(k);}let j=l("state"),v=l("value"),T=l("finally"),J=l("parentPromiseValue"),ue=l("parentPromiseState"),de="Promise.then",z=null,Ie=!0,ee=!1,ie=0;function G(k,b){return _=>{try{P(k,b,_);}catch(A){P(k,!1,A);}};}let oe=function(){let k=!1;return function(_){return function(){k||(k=!0,_.apply(null,arguments));};};},We="Promise resolved with itself",ze=l("currentTaskTrace");function P(k,b,_){let A=oe();if(k===_)throw new TypeError(We);if(k[j]===z){let X=null;try{(typeof _=="object"||typeof _=="function")&&(X=_&&_.then);}catch(ae){return A(()=>{P(k,!1,ae);})(),k;}if(b!==ee&&_ instanceof ge&&_.hasOwnProperty(j)&&_.hasOwnProperty(v)&&_[j]!==z)h(_),P(k,_[j],_[v]);else if(b!==ee&&typeof X=="function")try{X.call(_,A(G(k,b)),A(G(k,!1)));}catch(ae){A(()=>{P(k,!1,ae);})();}else{k[j]=b;let ae=k[v];if(k[v]=_,k[T]===T&&b===Ie&&(k[j]=k[ue],k[v]=k[J]),b===ee&&_ instanceof Error){let Q=e.currentTask&&e.currentTask.data&&e.currentTask.data[M];Q&&o(_,ze,{configurable:!0,enumerable:!1,writable:!0,value:Q});}for(let Q=0;Q<ae.length;)m(k,ae[Q++],ae[Q++],ae[Q++],ae[Q++]);if(ae.length==0&&b==ee){k[j]=ie;let Q=_;try{throw new Error("Uncaught (in promise): "+s(_)+(_&&_.stack?` 6`+_.stack:""));}catch(le){Q=le;}u&&(Q.throwOriginal=!0),Q.rejection=_,Q.promise=k,Q.zone=e.current,Q.task=e.currentTask,d.push(Q),t.scheduleMicroTask();}}}return k;}let C=l("rejectionHandledHandler");function h(k){if(k[j]===ie){try{let b=e[C];b&&typeof b=="function"&&b.call(this,{rejection:k[v],promise:k});}catch{}k[j]=ee;for(let b=0;b<d.length;b++)k===d[b].promise&&d.splice(b,1);}}function m(k,b,_,A,X){h(k);let ae=k[j],Q=ae?typeof A=="function"?A:fe:typeof X=="function"?X:Z;b.scheduleMicroTask(de,()=>{try{let le=k[v],ve=!!_&&T===_[T];ve&&(_[J]=le,_[ue]=ae);let Te=b.run(Q,void 0,ve&&Q!==Z&&Q!==fe?[]:[le]);P(_,!0,Te);}catch(le){P(_,!1,le);}},_);}let B="function ZoneAwarePromise() { [native code] }",F=function(){},be=i.AggregateError;class ge{static toString(){return B;}static resolve(b){return b instanceof ge?b:P(new this(null),Ie,b);}static reject(b){return P(new this(null),ee,b);}static withResolvers(){let b={};return b.promise=new ge((_,A)=>{b.resolve=_,b.reject=A;}),b;}static any(b){if(!b||typeof b[Symbol.iterator]!="function")return Promise.reject(new be([],"All promises were rejected"));let _=[],A=0;try{for(let Q of b)A++,_.push(ge.resolve(Q));}catch{return Promise.reject(new be([],"All promises were rejected"));}if(A===0)return Promise.reject(new be([],"All promises were rejected"));let X=!1,ae=[];return new ge((Q,le)=>{for(let ve=0;ve<_.length;ve++)_[ve].then(Te=>{X||(X=!0,Q(Te));},Te=>{ae.push(Te),A--,A===0&&(X=!0,le(new be(ae,"All promises were rejected")));});});}static race(b){let _,A,X=new this((le,ve)=>{_=le,A=ve;});function ae(le){_(le);}function Q(le){A(le);}for(let le of b)$(le)||(le=this.resolve(le)),le.then(ae,Q);return X;}static all(b){return ge.allWithCallback(b);}static allSettled(b){return(this&&this.prototype instanceof ge?this:ge).allWithCallback(b,{thenCallback:A=>({status:"fulfilled",value:A}),errorCallback:A=>({status:"rejected",reason:A})});}static allWithCallback(b,_){let A,X,ae=new this((Te,Le)=>{A=Te,X=Le;}),Q=2,le=0,ve=[];for(let Te of b){$(Te)||(Te=this.resolve(Te));let Le=le;try{Te.then(Ae=>{ve[Le]=_?_.thenCallback(Ae):Ae,Q--,Q===0&&A(ve);},Ae=>{_?(ve[Le]=_.errorCallback(Ae),Q--,Q===0&&A(ve)):X(Ae);});}catch(Ae){X(Ae);}Q++,le++;}return Q-=2,Q===0&&A(ve),ae;}constructor(b){let _=this;
6if(!(_ instanceof ge))throw new Error("Must be an instanceof Promise.");_[j]=z,_[v]=[];try{let A=oe();b&&b(A(G(_,Ie)),A(G(_,ee)));}catch(A){P(_,!1,A);}}get[Symbol.toStringTag](){return"Promise";}get[Symbol.species](){return ge;}then(b,_){let A=this.constructor?.[Symbol.species];(!A||typeof A!="function")&&(A=this.constructor||ge);let X=new A(F),ae=e.current;return this[j]==z?this[v].push(ae,X,b,_):m(this,ae,X,b,_),X;}catch(b){return this.then(null,b);}finally(b){let _=this.constructor?.[Symbol.species];(!_||typeof _!="function")&&(_=ge);let A=new _(F);A[T]=T;let X=e.current;return this[j]==z?this[v].push(X,A,b,b):m(this,X,A,b,b),A;}}ge.resolve=ge.resolve,ge.reject=ge.reject,ge.race=ge.race,ge.all=ge.all;let se=i[f]=i.Promise;i.Promise=ge;let at=l("thenPatched");function Ve(k){let b=k.prototype,_=r(b,"then");if(_&&(_.writable===!1||!_.configurable))return;let A=b.then;b[y]=A,k.prototype.then=function(X,ae){return new ge((le,ve)=>{A.call(this,le,ve);}).then(X,ae);},k[at]=!0;}t.patchThen=Ve;function Oe(k){return function(b,_){let A=k.apply(b,_);if(A instanceof ge)return A;let X=A.constructor;return X[at]||Ve(X),A;};}return se&&(Ve(se),li(i,"fetch",k=>Oe(k))),Promise[e.__symbol__("uncaughtPromiseErrors")]=d,ge;});}function rh(n){n.__load_patch("toString",i=>{let e=Function.prototype.toString,t=Be("OriginalDelegate"),r=Be("Promise"),o=Be("Error"),s=function(){if(typeof this=="function"){let f=this[t];if(f)return typeof f=="function"?e.call(f):Object.prototype.toString.call(f);if(this===Promise){let y=i[r];if(y)return e.call(y);}if(this===Error){let y=i[o];if(y)return e.call(y);}}return e.call(this);};s[t]=e,Function.prototype.toString=s;let l=Object.prototype.toString,d="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?d:l.call(this);};});}function oh(n,i,e,t,r){let o=Zone.__symbol__(t);if(i[o])return;let s=i[o]=i[t];i[t]=function(l,d,u){return d&&d.prototype&&r.forEach(function(f){let y=`${e}.${t}::`+f,M=d.prototype;try{if(M.hasOwnProperty(f)){let R=n.ObjectGetOwnPropertyDescriptor(M,f);R&&R.value?(R.value=n.wrapWithCurrentZone(R.value,y),n._redefineProperty(d.prototype,f,R)):M[f]&&(M[f]=n.wrapWithCurrentZone(M[f],y));}else M[f]&&(M[f]=n.wrapWithCurrentZone(M[f],y));}catch{}}),s.call(i,l,d,u);},n.attachOriginToPatched(i[t],s);}function sh(n){n.__load_patch("util",(i,e,t)=>{let r=Co(i);t.patchOnProperties=yc,t.patchMethod=li,t.bindArguments=xo,t.patchMacroTask=Wu;let o=e.__symbol__("BLACK_LISTED_EVENTS"),s=e.__symbol__("UNPATCHED_EVENTS");i[s]&&(i[o]=i[s]),i[o]&&(e[o]=e[s]=i[o]),t.patchEventPrototype=Zu,t.patchEventTarget=Ku,t.isIEOrEdge=Gu,t.ObjectDefineProperty=ko,t.ObjectGetOwnPropertyDescriptor=_n,t.ObjectCreate=Hu,t.ArraySlice=Bu,t.patchClass=vn,t.wrapWithCurrentZone=Mo,t.filterProperties=Cc,t.attachOriginToPatched=ci,t._redefineProperty=Object.defineProperty,t.patchCallbacks=oh,t.getGlobalObjects=()=>({globalSources:wc,zoneSymbolEventNames:xt,eventNames:r,isBrowser:Do,isMix:_c,isNode:fr,TRUE_STR:si,FALSE_STR:ai,ZONE_SYMBOL_PREFIX:yn,ADD_EVENT_LISTENER_STR:Io,REMOVE_EVENT_LISTENER_STR:Oo});});}function ah(n){nh(n),rh(n),sh(n);}var kc=ju();ah(kc);ih(kc);var lh=":";function ch(n,i){for(let e=1,t=1;e<n.length;e++,t++)if(i[t]==="\\")t++;else if(n[e]===lh)return e;throw new Error(`Unterminated $localize metadata block in "${i}".`);}var gr=function(n,...i){if(gr.translate){let t=gr.translate(n,i);n=t[0],i=t[1];}let e=Pc(n[0],n.raw[0]);for(let t=1;t<n.length;t++)e+=i[t-1]+Pc(n[t],n.raw[t]);return e;},dh=":";function Pc(n,i){return i.charAt(0)===dh?n.substring(ch(n,i)+1):n;}globalThis.$localize=gr;var Ic;(function(n){(function(i){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),t=r(n);typeof e.Reflect>"u"?e.Reflect=n:t=r(e.Reflect,t),i(t);function r(o,s){return function(l,d){typeof o[l]!="function"&&Object.defineProperty(o,l,{configurable:!0,writable:!0,value:d}),s&&s(l,d);};}})(function(i){var e=Object.prototype.hasOwnProperty,t=typeof Symbol=="function",r=t&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=t&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",l={__proto__:[]}instanceof Array,d=!s&&!l,u={create:s?function(){return Yt(Object.create(null));}:l?function(){return Yt({__proto__:null});}:function(){return Yt({});},has:d?function(g,E){return e.call(g,E);}:function(g,E){return E in g;},get:d?function(g,E){return e.call(g,E)?g[E]:void 0;}:function(g,E){return g[E];}},f=Object.getPrototypeOf(Function),y=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",M=!y&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Qe(),R=!y&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ft(),N=!y&&typeof WeakMap=="function"?WeakMap:zt(),$=new N();function fe(g,E,x,H){if(F(x)){if(!_(g))throw new TypeError();if(!X(E))throw new TypeError();return ee(g,E);}else{if(!_(g))throw new TypeError();if(!se(E))throw new TypeError();if(!se(H)&&!F(H)&&!be(H))throw new TypeError();return be(H)&&(H=void 0),x=b(x),ie(g,E,x,H);}}i("decorate",fe);function Z(g,E){function x(H,K){if(!se(H))throw new TypeError();if(!F(K)&&!ae(K))throw new TypeError();C(g,E,H,K);}return x;}i("metadata",Z);
6function j(g,E,x,H){if(!se(x))throw new TypeError();return F(H)||(H=b(H)),C(g,E,x,H);}i("defineMetadata",j);function v(g,E,x){if(!se(E))throw new TypeError();return F(x)||(x=b(x)),oe(g,E,x);}i("hasMetadata",v);function T(g,E,x){if(!se(E))throw new TypeError();return F(x)||(x=b(x)),We(g,E,x);}i("hasOwnMetadata",T);function J(g,E,x){if(!se(E))throw new TypeError();return F(x)||(x=b(x)),ze(g,E,x);}i("getMetadata",J);function ue(g,E,x){if(!se(E))throw new TypeError();return F(x)||(x=b(x)),P(g,E,x);}i("getOwnMetadata",ue);function de(g,E){if(!se(g))throw new TypeError();return F(E)||(E=b(E)),h(g,E);}i("getMetadataKeys",de);function z(g,E){if(!se(g))throw new TypeError();return F(E)||(E=b(E)),m(g,E);}i("getOwnMetadataKeys",z);function Ie(g,E,x){if(!se(E))throw new TypeError();F(x)||(x=b(x));var H=G(E,x,!1);if(F(H)||!H.delete(g))return!1;if(H.size>0)return!0;var K=$.get(E);return K.delete(x),K.size>0||$.delete(E),!0;}i("deleteMetadata",Ie);function ee(g,E){for(var x=g.length-1;x>=0;--x){var H=g[x],K=H(E);if(!F(K)&&!be(K)){if(!X(K))throw new TypeError();E=K;}}return E;}function ie(g,E,x,H){for(var K=g.length-1;K>=0;--K){var Ke=g[K],he=Ke(E,x,H);if(!F(he)&&!be(he)){if(!se(he))throw new TypeError();H=he;}}return H;}function G(g,E,x){var H=$.get(g);if(F(H)){if(!x)return;H=new M(),$.set(g,H);}var K=H.get(E);if(F(K)){if(!x)return;K=new M(),H.set(E,K);}return K;}function oe(g,E,x){var H=We(g,E,x);if(H)return!0;var K=Ae(E);return be(K)?!1:oe(g,K,x);}function We(g,E,x){var H=G(E,x,!1);return F(H)?!1:Oe(H.has(g));}function ze(g,E,x){var H=We(g,E,x);if(H)return P(g,E,x);var K=Ae(E);if(!be(K))return ze(g,K,x);}function P(g,E,x){var H=G(E,x,!1);if(!F(H))return H.get(g);}function C(g,E,x,H){var K=G(x,H,!0);K.set(g,E);}function h(g,E){var x=m(g,E),H=Ae(g);if(H===null)return x;var K=h(H,E);if(K.length<=0)return x;if(x.length<=0)return K;for(var Ke=new R(),he=[],Se=0,ne=x;Se<ne.length;Se++){var ke=ne[Se],we=Ke.has(ke);we||(Ke.add(ke),he.push(ke));}for(var Xe=0,Mn=K;Xe<Mn.length;Xe++){var ke=Mn[Xe],we=Ke.has(ke);we||(Ke.add(ke),he.push(ke));}return he;}function m(g,E){var x=[],H=G(g,E,!1);if(F(H))return x;for(var K=H.keys(),Ke=le(K),he=0;;){var Se=Te(Ke);if(!Se)return x.length=he,x;var ne=ve(Se);try{x[he]=ne;}catch(ke){try{Le(Ke);}finally{throw ke;}}he++;}}function B(g){if(g===null)return 1;switch(typeof g){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return g===null?1:6;default:return 6;}}function F(g){return g===void 0;}function be(g){return g===null;}function ge(g){return typeof g=="symbol";}function se(g){return typeof g=="object"?g!==null:typeof g=="function";}function at(g,E){switch(B(g)){case 0:return g;case 1:return g;case 2:return g;case 3:return g;case 4:return g;case 5:return g;}var x=E===3?"string":E===5?"number":"default",H=Q(g,r);if(H!==void 0){var K=H.call(g,x);if(se(K))throw new TypeError();return K;}return Ve(g,x==="default"?"number":x);}function Ve(g,E){if(E==="string"){var x=g.toString;if(A(x)){var H=x.call(g);if(!se(H))return H;}var K=g.valueOf;if(A(K)){var H=K.call(g);if(!se(H))return H;}}else{var K=g.valueOf;if(A(K)){var H=K.call(g);if(!se(H))return H;}var Ke=g.toString;if(A(Ke)){var H=Ke.call(g);if(!se(H))return H;}}throw new TypeError();}function Oe(g){return!!g;}function k(g){return""+g;}function b(g){var E=at(g,3);return ge(E)?E:k(E);}function _(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]";}function A(g){return typeof g=="function";}function X(g){return typeof g=="function";}function ae(g){switch(B(g)){case 3:return!0;case 4:return!0;default:return!1;}}function Q(g,E){var x=g[E];if(x!=null){if(!A(x))throw new TypeError();return x;}}function le(g){var E=Q(g,o);if(!A(E))throw new TypeError();var x=E.call(g);if(!se(x))throw new TypeError();return x;}function ve(g){return g.value;}function Te(g){var E=g.next();return E.done?!1:E;}function Le(g){var E=g.return;E&&E.call(g);}function Ae(g){var E=Object.getPrototypeOf(g);if(typeof g!="function"||g===f||E!==f)return E;var x=g.prototype,H=x&&Object.getPrototypeOf(x);if(H==null||H===Object.prototype)return E;var K=H.constructor;return typeof K!="function"||K===g?E:K;}function Qe(){var g={},E=[],x=function(){function he(Se,ne,ke){this._index=0,this._keys=Se,this._values=ne,this._selector=ke;}return he.prototype["@@iterator"]=function(){return this;},he.prototype[o]=function(){return this;},he.prototype.next=function(){var Se=this._index;if(Se>=0&&Se<this._keys.length){var ne=this._selector(this._keys[Se],this._values[Se]);return Se+1>=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:ne,done:!1};}return{value:void 0,done:!0};},he.prototype.throw=function(Se){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),Se;},he.prototype.return=function(Se){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:Se,done:!0};},he;}();return function(){function he(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2;}return Object.defineProperty(he.prototype,"size",{get:function(){return this._keys.length;},enumerable:!0,configurable:!0}),he.prototype.has=function(Se){return this._find(Se,!1)>=0;},he.prototype.get=function(Se){var ne=this._find(Se,!1);return ne>=0?this._values[ne]:void 0;},he.prototype.set=function(Se,ne){var ke=this._find(Se,!0);return this._values[ke]=ne,this;},he.prototype.delete=function(Se){var ne=this._find(Se,!1);if(ne>=0){for(var ke=this._keys.length,we=ne+1;we<ke;we++)this._keys[we-1]=this._keys[we],this._values[we-1]=this._values[we];return this._keys.length--,this._values.length--,Se===this._cacheKey&&(this._cacheKey=g,this._cacheIndex=-2),!0;}return!1;},he.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2;},he.prototype.keys=function(){return new x(this._keys,this._values,H);},he.prototype.values=function(){return new x(this._keys,this._values,K);},he.prototype.entries=function(){return new x(this._keys,this._values,Ke);},he.prototype["@@iterator"]=function(){return this.entries();},he.prototype[o]=function(){return this.entries();},he.prototype._find=function(Se,ne){return this._cacheKey!==Se&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Se)),this._cacheIndex<0&&ne&&(this._cacheIndex=this._keys.length,this._keys.push(Se),this._values.push(void 0)),this._cacheIndex;},he;}();function H(he,Se){return he;}function K(he,Se){return Se;}function Ke(he,Se){return[he,Se];}}function ft(){return function(){function g(){this._map=new M();}return Object.defineProperty(g.prototype,"size",{get:function(){return this._map.size;},enumerable:!0,configurable:!0}),g.prototype.has=function(E){return this._map.has(E);},g.prototype.add=function(E){return this._map.set(E,E),this;},g.prototype.delete=function(E){return this._map.delete(E);},g.prototype.clear=function(){this._map.clear();},g.prototype.keys=function(){return this._map.keys();},g.prototype.values=function(){return this._map.values();},g.prototype.entries=function(){return this._map.entries();},g.prototype["@@iterator"]=function(){return this.keys();},g.prototype[o]=function(){return this.keys();},g;}();}function zt(){var g=16,E=u.create(),x=H();return function(){function ne(){this._key=H();}return ne.prototype.has=function(ke){var we=K(ke,!1);return we!==void 0?u.has(we,this._key):!1;},ne.prototype.get=function(ke){var we=K(ke,!1);return we!==void 0?u.get(we,this._key):void 0;},ne.prototype.set=function(ke,we){var Xe=K(ke,!0);return Xe[this._key]=we,this;},ne.prototype.delete=function(ke){var we=K(ke,!1);return we!==void 0?delete we[this._key]:!1;},ne.prototype.clear=function(){this._key=H();},ne;}();function H(){var ne;do ne="@@WeakMap@@"+Se();while(u.has(E,ne));return E[ne]=!0,ne;}function K(ne,ke){if(!e.call(ne,x)){if(!ke)return;Object.defineProperty(ne,x,{value:u.create()});}return ne[x];}function Ke(ne,ke){for(var we=0;we<ke;++we)ne[we]=Math.random()*255|0;return ne;}function he(ne){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ne)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ne)):Ke(new Uint8Array(ne),ne):Ke(new Array(ne),ne);}function Se(){var ne=he(g);ne[6]=ne[6]&79|64,ne[8]=ne[8]&191|128;for(var ke="",we=0;we<g;++we){var Xe=ne[we];(we===4||we===6||we===8)&&(ke+="-"),Xe<16&&(ke+="0"),ke+=Xe.toString(16).toLowerCase();}return ke;}}function Yt(g){return g.__=void 0,delete g.__,g;}});})(Ic||(Ic={}));var mf=Ns(Oc());Pt();Qn();ce();Ze();ro();Pt();Kn();fi();var Y=class{constructor(i,e,t="",r="",o,s,l=!1,d,u,f=!1){this.name=i,this.href=e,this.iconClass=t,this.target=r,this.id=o,this.onClick=s,this.isActive=l,this.showSeparator=d,this.rightIconContent=u,this.preserveIconColor=f;}};qe();yt();var wn=class extends Y{constructor(i,e,t="",r="",o,s){super(i,"",t,"",o,e,s),this.name=i,this.actionFunction=e,this.iconClass=t,this.target=r,this.id=o,this.showSeparator=s;}handleClick(){this.actionFunction&&this.actionFunction();}};var bn=class extends Y{constructor(i,e="",t="",r,o){super(i,"",t,"",r,void 0,!1,o),this.name=i,this.target=e,this.iconClass=t,this.id=r,this.showSeparator=o;}handleClick(){window.open(this.target,"_blank");}};Jn();bl();ir();pn();ce();_o();Ze();dn();ar();Ui();yt();oi();bu();fn();cn();Iu();Ti();rr();bl();var uh=["newProjectMenuTrigger"];
6function hh(n,i){if(n&1){let e=Fe();ta(0),S(1,"lib-menu-item",13),pe("clicked",function(){let r=_e(e).index,o=me();return ye(o.onMenuLinkClicked(r));}),O(),ia();}if(n&2){let e=i.$implicit,t=me();L(),V("label",e.name)("hasLeftIcon",!0)("leftIconContent",e.iconClass)("hasRightIcon",!!e.rightIconContent)("rightIconContent",e.rightIconContent)("preserveIconColor",e.preserveIconColor)("isActive",e.isActive)("collapsed",t.navigationHelperService.menuCollapsed())("tooltip",e.name)("separatorAfter",e.showSeparator);}}var st=function(n){return n[n.HOME=0]="HOME",n[n.PROJECTS=1]="PROJECTS",n[n.GET_INSPIRED=2]="GET_INSPIRED",n[n.PAGES=3]="PAGES",n[n.BRANDING=4]="BRANDING",n[n.MEDIA_LIBRARY=5]="MEDIA_LIBRARY",n[n.INTERACTIVE_VIDEOS=6]="INTERACTIVE_VIDEOS",n[n.SOCIAL_CHANNELS=7]="SOCIAL_CHANNELS",n[n.COLLABORATE=8]="COLLABORATE",n[n.UPLOAD=9]="UPLOAD",n[n.ASK_VIDEOS=10]="ASK_VIDEOS",n[n.AI_INFLUENCERS=11]="AI_INFLUENCERS",n[n.AI_CLIP_SELECTOR=12]="AI_CLIP_SELECTOR",n[n.VOICE_MATE=13]="VOICE_MATE",n[n.CONNECT=14]="CONNECT",n[n.CONTENT_PLANNER=15]="CONTENT_PLANNER",n;}(st||{}),Ac=(()=>{class n{constructor(e,t,r,o,s,l,d,u,f,y,M,R,N,$,fe,Z,j){this.navigationHelperService=e,this.workspacePermissionService=t,this.router=r,this.adminRequestsService=o,this.userHelperService=s,this.loginHelperService=l,this.dialogHelperService=d,this.eventsService=u,this.projectsStateService=f,this.storyFolderService=y,this.deskManagerHelperService=M,this.notifier=R,this.errorParseService=N,this.googlePickerService=$,this.dropboxPickerService=fe,this.planHelperService=Z,this.premiumPlanService=j,this._DEFAULT_LINK_INDEX=0,this.isNewProjectMenuOpen=!1,this.isLoading=!0,this.googlePickerSubscriptions=[],this.setGooglePickerListeners=()=>{this.googlePickerSubscriptions.push(this.googlePickerService.filesSelected$.subscribe(v=>{v?.length>0&&(this.projectsStateService.setPendingGoogleDriveDownload(),this.router.navigate(["/boards"]));}),this.googlePickerService.selectedFiles$.subscribe(v=>{v?.length>0&&(this.projectsStateService.clearPendingGoogleDriveDownload(),this.projectsStateService.setPendingUploadFile(v[0]));}));},this.setRouteChangeListener=()=>{this.routeSubscription=this.navigationHelperService.currentRoute$.subscribe(v=>U(this,null,function*(){v&&this.loginHelperService.isUserLoggedIn()&&(yield this.setMenuState(v),this.activateLinkOnRouteChange(v));}));},this.setMenuState=v=>U(this,null,function*(){if(v.includes("admin")&&this.menuState!=="admin")this.menuState="admin";else if(!v.includes("admin")&&this.menuState!=="app")this.menuState="app";else return;this.deactivatePreviousSelectedLink(),yield this.setMainMenuLinks();}),this.setMainMenuLinks=()=>U(this,null,function*(){try{if(this.isLoading=!0,this.menuState==="admin"){this.setAdminMenuLinks();let v=yield this.userHelperService.getUserDetails(),T=(yield this.adminRequestsService.getAdminAccessList(v.userId)).pages||[];this.mainMenuLinks=this.adminMenuLinks.filter(J=>{let ue=Na(J.id);return T.includes(ue);});}else{this.setAppMenuLinks();let v=this.appMenuLinks;(yield this.workspacePermissionService.canViewCollaborateScreen())&&v.splice(st.COLLABORATE,0,new wn("Add Member",this.handleCollaborateLink.bind(this),"/img/icons/menu-icons/collaborate-menu-icon.svg","",st.COLLABORATE)),this.mainMenuLinks=v;}this.isLoading=!1;}catch(v){console.error(v),this.isLoading=!1;}}),this.setAppMenuLinks=()=>{try{this.appMenuLinks=[new Y("Home","/home","/img/icons/menu-icons/home-menu-icon.svg","",st.HOME),new Y("Projects","/boards","/img/icons/menu-icons/projects-menu-icon.svg","",st.PROJECTS),new Y("Get Inspired","/get-inspired","/img/icons/menu-icons/get-inspired-menu-icon.svg","",st.GET_INSPIRED),new Y("Pages & Emails","/pages","/img/icons/menu-icons/pages-menu-icon.svg","",st.PAGES),new Y("Branding","/branding","/img/icons/menu-icons/branding-menu-icon.svg","",st.BRANDING),new Y("Content Bank","/media-assets","/img/icons/menu-icons/content-bank-menu-icon.svg","",st.MEDIA_LIBRARY),new Y("Media Library","/upload","/img/icons/menu-icons/media-library-menu-icon.svg","",st.UPLOAD),new Y("Social Channels","/social-channels","/img/icons/menu-icons/social-channels-menu-icon.svg","",st.SO
6CIAL_CHANNELS),new Y("Ask for Videos","/ask-for-videos","/img/icons/menu-icons/ask-for-video-menu-icon.svg","",st.ASK_VIDEOS),new Y("AI Influencers","/portrait2video","/img/icons/menu-icons/ai-avatar-menu-icon.svg","",st.AI_INFLUENCERS),new Y("VoiceMate","/voice-mate","/img/icon-library/messaging/voicemate.svg","",st.VOICE_MATE,void 0,!1,void 0,"/img/profile/ai-max-diamond.svg",!0),new Y("Connect","/connect","/img/icon-library/other/webhook.svg","",st.CONNECT,void 0,!1,void 0,"/img/profile/ai-max-diamond.svg",!0),new Y("Content Planner","/content-planner","/img/icons/menu-icons/content-planner-menu-icon.svg","",st.CONTENT_PLANNER)];}catch(v){console.error(v);}},this.setAdminMenuLinks=()=>{this.adminMenuLinks=[new Y("Users","/admin/users","fa fa-users faadmin","",$e.USERS),new Y("Coupons","/admin/coupons","fa fa-credit-card faadmin","",$e.COUPONS),new Y("Offers","/admin/offers","fa fa-tags faadmin","",$e.OFFERS),new Y("Affiliate Campaigns","/admin/affiliate-overrides","fa fa-handshake-o faadmin","",$e.AFFILIATE_CAMPAIGNS),new Y("SuperAgent Planner","/admin/superagent-planner","fa fa-calendar faadmin","",$e.SUPERAGENT_PLANNER),new Y("Task List","/admin/events","fa fa-list faadmin","",$e.TASK_LIST),new Y("Sudo Sessions","/admin/sudo-list","fa fa-user-secret faadmin","",$e.SUDO),new Y("Waiting for Approval","/admin/approval","fa fa-check-square faadmin","",$e.APPROVALS,void 0,!1,!0),new Y("Uploads","/admin/uploads","fa fa-upload faadmin","",$e.UPLOADS),new Y("Topics","/admin/topics","fa fa-bookmark faadmin","",$e.TOPICS,void 0,!1,!0),new Y("Courses","/admin/courses","fa fa-graduation-cap faadmin","",$e.COURSES),new Y("Workshops","/admin/workshops","fa fa-briefcase faadmin","",$e.WORKSHOPS),new Y("Announcements","/admin/announcements","fa fa-newspaper-o faadmin","",$e.ANNOUNCEMENTS),new Y("Experts","/admin/experts","fa fa-cubes faadmin","",$e.EXPERTS,void 0,!1),new Y("AI Influencers","/admin/ai-influencers","ai-influencer-icon","",$e.AI_INFLUENCERS,void 0,!1,!0),new Y("Default Stories","/admin/stories","fa fa-plus faadmin","",$e.DEFAULT_STORIES),new Y("Video Popups","/admin/video-popups","fa fa-file-video-o faadmin","",$e.VIDEO_POPUPS,void 0,!1,!0),new Y("Marketing Tasks","/admin/emails","fa fa-envelope-o faadmin","",$e.MARKETING_TASKS,void 0,!1),new Y("Email Templates","/admin/email-templates","fa fa-paint-brush faadmin","",$e.EMAIL_TEMPLATES),new Y("Scheduled Jobs","/admin/scheduled-jobs","fa fa-clock-o faadmin","",$e.SCHEDULES),new Y("Banners","/admin/banners","fa fa-bullhorn faadmin","",$e.BANNERS),new Y("Cron Jobs","/admin/cron-jobs","fa fa-repeat faadmin","",$e.CRON_JOBS,void 0,!1,!0),new Y("Notifications","/admin/notifications","fa fa-bell-o faadmin","",$e.NOTIFICATIONS),new Y("Version Config","/admin/version-config","fa fa-code-fork faadmin","",$e.VERSION_CONFIG),new Y("Video Feed","/admin/video-feed","fa fa-youtube-play faadmin","",$e.VIDEO_FEED),new Y("Localizations","/admin/localizations","fa fa-language faadmin","",$e.LOCALIZATIONS),new Y("Data Pipeline","/admin/data-pipelines","fa fa-database faadmin","",$e.DATA_PIPELINES)];},this.setActiveLink=v=>{this.deactivatePreviousSelectedLink(),this.mainMenuLinks[v].isActive=!0,this.previousSelectedLinkIndex=v;},this.getLinkIndex=v=>v==="/"?this._DEFAULT_LINK_INDEX:this.mainMenuLinks.findIndex(T=>T.href&&v.includes(T.href)),this.activateLinkOnRouteChange=v=>{if(this.mainMenuLinks&&!this.navigationHelperService.hideNavigationMenu){let T=this.getLinkIndex(v);this.shouldActivateLink(T)?this.setActiveLink(T):this.shouldDeactivateLink(T)&&this.deactivatePreviousSelectedLink();}},this.deactivatePreviousSelectedLink=()=>{this.isValidIndex(this.previousSelectedLinkIndex)&&(this.mainMenuLinks[this.previousSelectedLinkIndex].isActive=!1,this.previousSelectedLinkIndex=-1);},this.isValidIndex=v=>v!==void 0&&v!==-1,this.shouldActivateLink=v=>v!==-1&&v!==this.previousSelectedLinkIndex&&!(this.mainMenuLinks[v]instanceof bn),this.shouldDeactivateLink=v=>v===-1&&v!==this.previousSelectedLinkIndex,this.onNewProjectClicked=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"newProject",area:"left-menu",buttonIndex:1}),this.isNewProjectMenuOpen=!0,this.newProjectMenuTrigger?.openMenu(),this.newProjectMenuTrigger?.menuClosed.subscribe(()=>{this.isNewProjectMenuOpen=!1;});},this.onCreateScript=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"aiScript",area:"left-menu",buttonIndex:1});let v=this.projectsStateService.currentFolderId;this.router.navigate(["/script-story"],{state:v?{folderId:v}:{}});},this.onUploadVideo=()=>U(this,null,function*(){if(this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"upload",area:"left-menu",buttonIndex:2}),yield this.planHelperService.isFreeByCurrentPlan()){this.premiumPlanService.openPricingDialog(ri.PRO,"boards","boards",Tt.uploadTake);return;}let v=new ql();v.onClose=this.dialogHelperService.close,v.title="Import Video",v.subTitle="MP4, MOV, GIF or WebM files",v.customAcceptedFileTypes=".mp4,.mov,.mpeg,.gif,.webm",v.onFileSelection=J=>{J?.length>0&&(this.projectsStateService.setPendingUploadFile(J[0]),this.router.url.startsWith("/boards")||this.router.navigate(["/boards"]));},v.onExternalUploadRequest=J=>{if(this.router.url.startsWith("/boards")){this.projectsStateService.setPendingExternalUpload(J);return;}J.value===yo.google?this.googlePickerService.openPicker(Bl.VIDEOS,{multiSelect:!1}):J.value===yo.dropbox&&this.dropboxPickerService.openPicker("video",{sizeLimit:1024*1024*500,multiselect:!1}).subscribe(ue=>{!ue||ue.length===0||(this.projectsStateService.setPendingDropboxFile(ue[0]),this.router.navigate(["/boards"]));});};let T=new pt();T.panelClass="assets-upload-dialog",this.dialogHelperService.open(v,Gl,T);}),this.onCreateFolder=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"folder",area:"left-menu",buttonIndex:3});let v=new Vl();v.title="Add new folder",v.text="Enter a name for your new folder",v.inputPlaceholder="New folder",v.confirmButtonText="Add",v.onClose=this.dialogHelperService.close,v.onSubmit=J=>U(this,null,function*(){try{this.dialogHelperService.close();let ue=this.deskManagerHelperService.getSelectedWorkspaceId(),de=this.projectsStateService.currentFolderId,z=yield this.storyFolderService.create({name:J,deskId:ue,parentFolderId:de});this.router.navigate(["/boards",z.storyFolderId]);}catch(ue){let de=this.errorParseService.parseStoryFolderCreateErrors(ue.responseJSON);this.notifier.error(de),console.error(ue);}});let T=new pt();T.panelClass="assets-dialog",this.dialogHelperService.open(v,Ul,T);},this.onCreateAvatarVideo=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"aiAvatar",area:"left-menu",buttonIndex:4}),Wl.openDashboard(this.dialogHelperService);},this.onCreateVideoTale=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"fototale",area:"left-menu",buttonIndex:5});let v=this.projectsStateService.currentFolderId;this.router.navigate(["/fototale"],{state:v?{folderId:v}:{}});},this.onAskForVideos=()=>{this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{button:"askForVideos",area:"left-menu",buttonIndex:6}),this.router.navigate(["/ask-for-videos"]);},this.onWebTutorialsClick=()=>{window.open("https://bigvu.tv/tutorials/","_blank");},this.onExpertClick=()=>
6{this.router.navigate(["/experts"]);},this.onFaqClick=()=>{window.open("https://faq.bigvu.tv","_blank");};}ngOnInit(){return U(this,null,function*(){this.setRouteChangeListener(),this.setGooglePickerListeners();});}onMenuLinkClicked(e){if(!this.isValidLinkIndex(e)){console.warn("Invalid link index provided:",e);return;}let t=this.mainMenuLinks[e];if(t instanceof bn||t instanceof wn)t.handleClick();else{this.setActiveLink(e);let r=t.href==="/portrait2video"?{state:{source:"projects"}}:void 0;this.router.navigate([t.href],r);}}isValidLinkIndex(e){return e>=0&&e<this.mainMenuLinks.length;}handleCollaborateLink(){this.setActiveLink(st.COLLABORATE),this.router.navigate(["/collaborate"]),this.navigationHelperService.sendMyTeamRouteEvent("left");}ngOnDestroy(){this.routeSubscription.unsubscribe(),this.googlePickerSubscriptions.forEach(e=>e.unsubscribe());}static{this.ɵfac=function(t){return new(t||n)(I(Kt),I(Wi),I(Ee),I(Wt),I(yi),I(Mt),I(_t),I(rt),I(nl),I(Ql),I(Qt),I($t),I(Tl),I(cr),I(dr),I(wt),I(_i));};}static{this.ɵcmp=je({type:n,selectors:[["nav-sidebar"]],viewQuery:function(t,r){if(t&1&&dt(uh,5),t&2){let o;ut(o=ht())&&(r.newProjectMenuTrigger=o.first);}},standalone:!0,features:[Bn([cr,dr,$l]),He],decls:30,vars:7,consts:[["newProjectMenuTrigger","matMenuTrigger"],["newProjectMenu","matMenu"],["mode","light",3,"newProjectClicked","webTutorialsClicked","expertClicked","faqClicked","collapsed","expandOnHover","showNewProjectButton","showFooterIcons","isLoading"],[4,"ngFor","ngForOf"],[1,"new-project-menu-anchor",3,"matMenuTriggerFor"],[1,"new-project-dropdown-panel"],["mat-menu-item","",3,"click"],["src","/img/icons/dropdown/script-icon.svg"],["src","/img/icons/dropdown/upload-project-icon.svg"],["src","/img/icons/dropdown/folder-icon.svg"],["src","/img/icons/dropdown/avatar-video-icon.svg"],["src","/img/icons/dropdown/videotale-icon.svg"],["src","/img/icons/dropdown/ask-for-videos-icon.svg"],[3,"clicked","label","hasLeftIcon","leftIconContent","hasRightIcon","rightIconContent","preserveIconColor","isActive","collapsed","tooltip","separatorAfter"]],template:function(t,r){if(t&1){let o=Fe();S(0,"lib-menu",2),pe("newProjectClicked",function(){return _e(o),ye(r.onNewProjectClicked());})("webTutorialsClicked",function(){return _e(o),ye(r.onWebTutorialsClick());})("expertClicked",function(){return _e(o),ye(r.onExpertClick());})("faqClicked",function(){return _e(o),ye(r.onFaqClick());}),Re(1,hh,2,10,"ng-container",3),O(),re(2,"span",4,0),S(4,"mat-menu",5,1)(6,"button",6),pe("click",function(){return _e(o),ye(r.onCreateScript());}),re(7,"img",7),S(8,"span"),te(9,"Script"),O()(),S(10,"button",6),pe("click",function(){return _e(o),ye(r.onUploadVideo());}),re(11,"img",8),S(12,"span"),te(13,"Upload Video"),O()(),S(14,"button",6),pe("click",function(){return _e(o),ye(r.onCreateFolder());}),re(15,"img",9),S(16,"span"),te(17,"Folder"),O()(),S(18,"button",6),pe("click",function(){return _e(o),ye(r.onCreateAvatarVideo());}),re(19,"img",10),S(20,"span"),te(21,"Avatar Video"),O()(),S(22,"button",6),pe("click",function(){return _e(o),ye(r.onCreateVideoTale());}),re(23,"img",11),S(24,"span"),te(25,"Fototale"),O()(),S(26,"button",6),pe("click",function(){return _e(o),ye(r.onAskForVideos());}),re(27,"img",12),S(28,"span"),te(29,"Ask for Videos"),O()()();}if(t&2){let o=Ri(5);V("collapsed",r.isNewProjectMenuOpen?!1:r.navigationHelperService.menuCollapsed())("expandOnHover",!0)("showNewProjectButton",r.menuState==="app")("showFooterIcons",r.menuState==="app")("isLoading",r.isLoading),L(),V("ngForOf",r.mainMenuLinks),L(),V("matMenuTriggerFor",o);}},dependencies:[It,il,tl,wl,_l,vl,yl],styles:["[_nghost-%COMP%]{display:block;position:relative;height:100%}.new-project-menu-anchor[_ngcontent-%COMP%]{position:absolute;top:26px;left:240px;width:0;height:0} .new-project-dropdown-panel.mat-mdc-menu-panel{border-radius:10px;box-shadow:0 24px 48px #0000001f;border:1px solid rgba(37,54,88,.08);background:#fff;min-width:212px;max-width:212px;padding:2px} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-content{padding:0} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item{display:flex;align-items:center;gap:6px;padding:8px 4px;border-bottom:1px solid rgba(37,54,88,.08);font-family:Inter,sans-serif;font-weight:400;font-size:14px;line-height:1.4;letter-spacing:0;color:#253658;min-height:unset;height:auto;border-radius:0} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item:last-child{border-bottom:none} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center;gap:6px} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item img{width:24px;height:24px;opacity:.8} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item.cdk-program-focused:not(:hover){background:transparent!important} .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item:hover, .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item.cdk-keyboard-focused, .new-project-dropdown-panel.mat-mdc-menu-panel .mat-mdc-menu-item.mat-mdc-menu-item-highlighted:not(.cdk-program-focused){background-color:var(--mat-menu-item-focus-state-layer-color)}.fa.faadmin[_ngcontent-%COMP%]{font-size:17px;text-align:center;position:relative;top:2px} lib-menu-item .menu-item-collapsible{flex:1} lib-menu-item .menu-item-icon.menu-item-icon-right{width:20px;height:20px;--icon-size: 20px}@media only screen and (max-width: 768px){[_nghost-%COMP%]{display:none}}"]});}}return n;})();un();var Sr=class extends qt{};yt();hn();tr();cl();qe();Va();ce();Ze();var ph=n=>({small:n});
6function mh(n,i){if(n&1){let e=Fe();S(0,"ui-button",2),pe("mouseenter",function(){let r=_e(e).$implicit,o=me();return ye(o.hoveredItem(r.id));})("mouseleave",function(){_e(e);let r=me();return ye(r.unHoverItem());})("onClick",function(){let r=_e(e).$implicit,o=me();return ye(o.onClick(r));}),O();}if(n&2){let e=i.$implicit;V("variant","text-royal")("matTooltip",e.text)("matTooltipPosition","above")("iconIsImg",!0)("iconOnly",e.img);}}var xc=(()=>{class n{constructor(e){this.router=e,this.showSmall=!1,this.hoveredLinkIndex=0,this.links=[{id:1,text:"Experts",link:"/experts",img:"img/icons/menu-icons/experts-icon.svg"},{id:2,text:"Video Tutorials",link:"/course",img:"img/icons/menu-icons/video-icon.svg"},{id:3,text:"FAQ",link:"https://faq.bigvu.tv",target:"_blank",img:"img/icons/menu-icons/faq-icon.svg"}],this.hoveredItem=t=>{this.hoveredLinkIndex=t;},this.unHoverItem=()=>{this.hoveredLinkIndex=0;},this.onClick=t=>{t.target?window.open(t.link,t.target):this.router.navigate([t.link]);};}static{this.ɵfac=function(t){return new(t||n)(I(Ee));};}static{this.ɵcmp=je({type:n,selectors:[["menu-links-footer"]],inputs:{showSmall:"showSmall"},standalone:!0,features:[He],decls:2,vars:4,consts:[[1,"menu-links-footer-component",3,"ngClass"],["matTooltipClass","tooltip-custom-black-faq",3,"variant","matTooltip","matTooltipPosition","iconIsImg","iconOnly","mouseenter","mouseleave","onClick",4,"ngFor","ngForOf"],["matTooltipClass","tooltip-custom-black-faq",3,"mouseenter","mouseleave","onClick","variant","matTooltip","matTooltipPosition","iconIsImg","iconOnly"]],template:function(t,r){t&1&&(S(0,"div",0),Re(1,mh,1,5,"ui-button",1),O()),t&2&&(V("ngClass",tt(2,ph,r.showSmall)),L(),V("ngForOf",r.links));},dependencies:[al,gt,It,Yn],styles:[".menu-links-footer-component[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin:20px;padding:0 15px}.small[_ngcontent-%COMP%]{flex-direction:column!important}.menu-links-footer-component[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:hover{background-color:#4481fd}.menu-links-footer-component[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:30px;height:30px;cursor:pointer;position:relative;border-radius:4px;display:flex;align-items:center;justify-content:center}"]});}}return n;})();qe();qe();ce();Ti();function fh(n,i){if(n&1&&(S(0,"div")(1,"div",4),te(2),O()()),n&2){let e=me();L(2),et(e.userPlanName);}}function gh(n,i){if(n&1&&(S(0,"div",7)(1,"div",8),re(2,"img",9),O(),S(3,"div",10),te(4),O()()),n&2){let e=me(2);L(4),et(e.appsumoPlanFeatures==null?null:e.appsumoPlanFeatures.collections);}}function vh(n,i){if(n&1&&(S(0,"div",5)(1,"div",4),te(2),O(),Re(3,gh,5,1,"div",6),O()),n&2){let e=me();L(2),et(e.appsumoPlanFeatures==null?null:e.appsumoPlanFeatures.planDescription),L(),V("ngIf",e.appsumoPlanFeatures.collections);}}var Dc=(()=>{class n{constructor(e){this.planHelperService=e,this.setOrganizationPlanChangeListener=()=>{this.organizationPlanChangeListener=this.planHelperService.organizationPlan$.subscribe(this.setOrganizationPlan);},this.setOrganizationPlan=t=>U(this,null,function*(){t!==null&&(this.userPlanName=this.planHelperService.getPlanDisplayNameWithPlatforms(t),yield this.setAppsumoPlanFeatures());}),this.setAppsumoPlanFeatures=()=>U(this,null,function*(){this.appsumoPlanFeatures=yield this.planHelperService.getAppsumoPlanFeatures();});}ngOnInit(){this.setOrganizationPlanChangeListener();}ngOnDestroy(){this.organizationPlanChangeListener.unsubscribe();}static{this.ɵfac=function(t){return new(t||n)(I(wt));};}static{this.ɵcmp=je({type:n,selectors:[["user-plan-label"]],standalone:!0,features:[He],decls:4,vars:2,consts:[[1,"user-plan-label-component"],[1,"plan-label-container"],[4,"ngIf"],["class","appsumo-subscription-container",4,"ngIf"],[1,"plan-description"],[1,"appsumo-subscription-container"],["class","appsumo-collections-count-container",4,"ngIf"],[1,"appsumo-collections-count-container"],[1,"plus-icon-container"],["src","/img/green-plus-icon.svg","alt","+"],[1,"collections-count"]],template:function(t,r){t&1&&(S(0,"div",0)(1,"div",1),Re(2,fh,3,1,"div",2)(3,vh,4,2,"div",3),O()()),t&2&&(L(2),V("ngIf",!r.appsumoPlanFeatures),L(),V("ngIf",r.appsumoPlanFeatures));}
6,dependencies:[vt],styles:[".user-plan-label-component[_ngcontent-%COMP%]{width:100%;height:100%}.plan-label-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.plan-description[_ngcontent-%COMP%]{padding:2px 5px;border-radius:10px;background-color:#f9f9f933;position:relative;color:#fff;font-size:10px;font-family:Inter-SemiBold;display:flex;align-items:center;justify-content:center}.appsumo-collections-count-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.collections-count[_ngcontent-%COMP%]{font-size:10px;color:#fff;font-family:Inter-SemiBold;margin:0 5px}"]});}}return n;})();yt();qe();tr();hn();un();uo();fu();ce();go();oi();qe();var _h=n=>({"option-lang-active":n});function yh(n,i){if(n&1){let e=Fe();S(0,"div",7),pe("click",function(){let r=_e(e).$implicit,o=me();return ye(o.selectLocale(r));}),S(1,"div",8),re(2,"span"),O(),S(3,"div",9),te(4),O()();}if(n&2){let e=i.$implicit,t=me();V("ngClass",tt(4,_h,(e==null?null:e.value)===(t.selectedOption==null?null:t.selectedOption.value))),L(2),Li(e==null?null:e.sideIconClass),L(2),bt(" ",e==null?null:e.name," ");}}var Tr=class extends qt{},Lc=(()=>{class n extends vi{constructor(e,t,r){super(e),this.data=e,this.localeService=t,this.eventsService=r,this.title="Preferred Language",this.subTitle="Your BIGVU App will display in your preferred languages",this.initializeSelectedLocale=()=>U(this,null,function*(){let o=yield this.localeService.getLocale(),s=this.menuOptions.find(l=>l.value===o[0]);this.selectedOption=s||this.menuOptions[0];}),this.selectLocale=o=>U(this,null,function*(){let s=this.selectedOption?.value||"en",l=ho(po(),s,"English"),d=ho(po(),o.value,"English");this.eventsService.log(this.eventsService.events.account.languageChange,{newLang:d,oldLang:l}),yield this.localeService.setLocale(o.value),this.data.onClose(),window.location.href=window.location.href;});}ngOnInit(){this.menuOptions=[new St("en","English",null,"fi fi-us"),new St("fr","French",null,"fi fi-fr"),new St("he","Hebrew",null,"fi fi-il"),new St("es","Spanish",null,"fi fi-es"),new St("pt","Portuguese",null,"fi fi-br"),new St("ja","Japanese",null,"fi fi-jp"),new St("de","German",null,"fi fi-de"),new St("it","Italian",null,"fi fi-it")],this.initializeSelectedLocale();}static{this.ɵfac=function(t){return new(t||n)(I(gi),I(Vi),I(rt));};}static{this.ɵcmp=je({type:n,selectors:[["app-preference-language-dialog"]],standalone:!0,features:[ni,He],decls:11,vars:3,consts:[[1,"preference-lang-wrapper"],[1,"close-container-ab"],[1,"dialog-close-button",3,"click"],[1,"pl-title"],[1,"pl-subtitle"],[1,"options-container-lang"],["class","option-lang",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"option-lang",3,"click","ngClass"],[1,"option-lang-image"],[1,"option-lang-title"]],template:function(t,r){t&1&&(S(0,"section",0)(1,"div",1)(2,"div",2),pe("click",function(){return r.close();}),O()(),S(3,"header")(4,"div",3),te(5),O(),S(6,"div",4),te(7),O()(),S(8,"main")(9,"div",5),Re(10,yh,5,6,"div",6),O()()()),t&2&&(L(5),et(r.title),L(2),et(r.subTitle),L(3),V("ngForOf",r.menuOptions));},dependencies:[ji,gt,It],styles:[".preference-lang-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:32px}.close-container-ab[_ngcontent-%COMP%]{position:absolute;right:0;top:0}header[_ngcontent-%COMP%]{width:100%;max-width:370px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px}.pl-title[_ngcontent-%COMP%]{color:#253658;text-align:center;font-size:20px;font-weight:700;letter-spacing:-.4px}.pl-subtitle[_ngcontent-%COMP%]{color:#253658;text-align:center;font-size:14px;font-weight:400}main[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;overflow-x:hidden;overflow-y:scroll;height:100%;width:100%}.options-container-lang[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;width:300px;height:100%}.option-lang[_ngcontent-%COMP%]{width:100%;height:48px;padding:8px;display:flex;align-items:center;justify-content:flex-start;gap:12px;border-radius:8px;border:1px solid rgba(123,141,177,.3);cursor:pointer}.option-lang-active[_ngcontent-%COMP%]{background:#f0f5ff}.option-lang-title[_ngcontent-%COMP%]{font-size:16px}.option-lang-image[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;align-items:center;justify-content:flex-start}.option-lang-image[_ngcontent-%COMP%] fi[_ngcontent-%COMP%]{width:32px;height:24px}"]});}}return n;})();pn();ce();Ti();Ze();yt();oi();
6function wh(n,i){if(n&1){let e=Fe();S(0,"li",22),pe("click",function(){let r=_e(e).$implicit,o=me();return ye(o.redirectTo(r.href));}),S(1,"a"),re(2,"i"),te(3),O()();}if(n&2){let e=i.$implicit;L(2),Li(e.iconClass),L(),bt(" ",e.name," ");}}function bh(n,i){if(n&1){let e=Fe();S(0,"li",22),pe("click",function(){let r=_e(e).$implicit,o=me();return ye(o.redirectTo(r.href));}),S(1,"a"),te(2),O()();}if(n&2){let e=i.$implicit;L(2),bt(" ",e.name," ");}}function Sh(n,i){if(n&1){let e=Fe();S(0,"li",23),pe("click",function(){_e(e);let r=me();return ye(r.redirectTo("pricing"));}),S(1,"a"),te(2,"Upgrade"),O()();}}function Th(n,i){if(n&1){let e=Fe();S(0,"li",24),pe("click",function(){_e(e);let r=me();return ye(r.redirectTo("collaborate"));}),S(1,"a"),te(2,"Add Team Members"),O()();}}function Eh(n,i){if(n&1){let e=Fe();S(0,"li",25),pe("click",function(){_e(e);let r=me();return ye(r.redirectTo("connect/settings/webhooks"));}),S(1,"a"),te(2,"Integrations"),O()();}}var Fc=(()=>{class n extends vi{constructor(e,t,r,o,s,l,d){super(l),this.navigationHelperService=e,this.planHelperService=t,this.router=r,this.dialogHelperService=o,this.eventsService=s,this.data=l,this.cello=d,this.setMainMenuLinks=()=>U(this,null,function*(){this.mainMenuLinks=[new Y("Projects","/boards"),new Y("Pages","/pages"),new Y("Branding","/branding"),new Y("Content Bank","/media-assets")];}),this.redirectTo=u=>{u.includes("collaborate")&&this.navigationHelperService.sendMyTeamRouteEvent("dropdown"),u.includes("preferred-language")?(this.data.onClose(),this.openLangDialog()):(u.includes("pricing")&&this.data.isFree?(this.eventsService.log(this.eventsService.events.payment.paymentScreen,{paywallTrigger:Tt.navBar,triggerType:Si.topup,paywallName:hl.upsell}),this.router.navigate([u],{state:{paywallTrigger:Tt.navBar,triggerType:Si.topup}})):u.includes("pricing")?this.router.navigate([u],{state:{paywallTrigger:Tt.navBar,triggerType:Si.topup}}):this.router.navigate([u]),this.data.onClose());},this.openLangDialog=()=>{this.eventsService.log(this.eventsService.events.account.languageChangeStart);let u=new Tr();u.onClose=this.dialogHelperService.close,u.onSubmit=this.dialogHelperService.close;let f=new pt();f.panelClass="preference-lang-dialog",this.dialogHelperService.open(u,Lc,f);},this.openCelloDialog=()=>{this.cello.openCelloDialog();};}ngOnInit(){return U(this,null,function*(){yield this.setMainMenuLinks();});}static{this.ɵfac=function(t){return new(t||n)(I(Kt),I(wt),I(Ee),I(_t),I(rt),I(gi),I(qi));};}static{this.ɵcmp=je({type:n,selectors:[["profile-menu-dialog"]],standalone:!0,features:[ni,He],decls:32,vars:8,consts:[[1,"close-button-container"],["aria-label","Close",3,"click"],[1,"profile-user-details-container",3,"click"],[1,"user-image-container"],["alt","",3,"src"],[1,"user-details"],[1,"user-fullname"],[1,"user-email"],[1,"user-plan-label-container"],[1,"main-menu-container"],[3,"click",4,"ngFor","ngForOf"],[1,"menu-links-container"],["class","upgrade-link",3,"click",4,"ngIf"],["class","collaborate-link",3,"click",4,"ngIf"],["class","webhooks-link",3,"click",4,"ngIf"],[1,"cello-link",3,"click"],[1,"link-separator"],[1,"logout-link",3,"click"],[1,"profile-menu-footer"],[1,"links-container"],[1,"logo-container"],["src","/img/branding/BIGVU-logo.svg","alt","image"],[3,"click"],[1,"upgrade-link",3,"click"],[1,"collaborate-link",3,"click"],[1,"webhooks-link",3,"click"]],template:function(t,r){t&1&&(S(0,"div",0)(1,"button",1),pe("click",function(){return r.close();}),O()(),S(2,"div",2),pe("click",function(){return r.redirectTo("profile");}),S(3,"div",3),re(4,"img",4),O(),S(5,"div",5)(6,"div",6),te(7),O(),S(8,"div",7),te(9),O(),S(10,"div",8),re(11,"user-plan-label"),O()()(),S(12,"div",9)(13,"ul"),Re(14,wh,4,3,"li",10),O()(),S(15,"div",11)(16,"ul"),Re(17,bh,3,1,"li",10)(18,Sh,3,0,"li",12)(19,Th,3,0,"li",13)(20,Eh,3,0,"li",14),S(21,"li",15),pe("click",function(){return r.openCelloDialog();}),S(22,"a"),te(23,"Earn $50"),O()(),re(24,"li",16),S(25,"li",17),pe("click",function(){return r.data.onLogout();}),te(26,"Logout"),O()()(),S(27,"div",18)(28,"div",19),re(29,"menu-links-footer"),O(),S(30,"div",20),re(31,"img",21),O()()),t&2&&(L(4),V("src",r.data.userImageUrl,Lt),L(3),et(r.data.userName),L(2),et(r.data.userEmail),L(5),V("ngForOf",r.mainMenuLinks),L(3),V("ngForOf",r.data.profileMenuLinks),L(),V("ngIf",r.data.showUpgradeLink),L(),V("ngIf",r.data.showCollaborateLink),L(),V("ngIf",r.data.showCollaborateLink));},dependencies:[Dc,It,vt,xc],styles:[".close-button-container[_ngcontent-%COMP%]{display:none;position:relative}.close-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;background-image:url(/img/exit-icon.svg);background-repeat:no-repeat;background-position:center;background-size:cover;width:22px;height:22px;border-radius:50%;padding:0}.profile-user-details-container[_ngcontent-%COMP%]{width:180px;background:linear-gradient(to left,#28b3f7 50%,#506aff);padding:12px;font-size:12px;cursor:pointer}.user-image-container[_ngcontent-%COMP%]{display:none}.profile-user-details-container[_ngcontent-%COMP%] .user-fullname[_ngcontent-%COMP%]{font-weight:900;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.profile-user-details-container[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.profile-user-details-container[_ngcontent-%COMP%] .user-plan-label-container[_ngcontent-%COMP%]{margin:10px 0 0}.menu-links-container[_ngcontent-%COMP%]{padding:13px 13px 6px}.menu-links-container[_ngcontent-%COMP%] li.upgrade-link[_ngcontent-%COMP%], .menu-links-container[_ngcontent-%COMP%] li.collaborate-link[_ngcontent-%COMP%]{display:none}.menu-links-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#253658;width:100%;display:block}.menu-links-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:12px;margin:5px 0;width:fit-content;cursor:pointer}.menu-links-container[_ngcontent-%COMP%] li.link-separator[_ng
6content-%COMP%]{height:1px;width:100%;border:solid 1px #eff0f3;margin:10px 0}.menu-links-container[_ngcontent-%COMP%] li.logout-link[_ngcontent-%COMP%]{color:#ff4d5b;cursor:pointer}.menu-links-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{font-weight:600}.main-menu-container[_ngcontent-%COMP%]{display:none;padding:0 30px}.main-menu-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#253658;font-size:26px;font-family:Inter-Bold}.main-menu-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:20px 0;position:relative}.profile-menu-footer[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 767px){.close-button-container[_ngcontent-%COMP%]{display:block}.profile-user-details-container[_ngcontent-%COMP%]{background:none;display:flex;justify-content:flex-start;align-items:center;width:100%;height:100px;padding:30px}.user-details[_ngcontent-%COMP%]{margin-left:15px;text-align:start}.user-image-container[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:10px;overflow:hidden;display:block;min-width:60px;min-height:60px}.user-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.profile-user-details-container[_ngcontent-%COMP%] .user-fullname[_ngcontent-%COMP%]{font-size:18px;font-family:Inter-Bold;color:#253658}.profile-user-details-container[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{opacity:1;font-size:14px;font-family:Inter-SemiBold;color:#253658}.profile-user-details-container[_ngcontent-%COMP%] .user-plan-container[_ngcontent-%COMP%]{justify-content:flex-start;margin:0}.profile-user-details-container[_ngcontent-%COMP%] .user-plan-container[_ngcontent-%COMP%] .user-plan-name[_ngcontent-%COMP%]{background-color:#00abfe;color:#fff;font-size:12px;font-family:Inter-Black}.main-menu-container[_ngcontent-%COMP%]{display:block}.menu-links-container[_ngcontent-%COMP%]{padding:30px}.menu-links-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:18px;font-family:Inter-SemiBold;font-weight:600}.profile-menu-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:15px;bottom:0;width:100%}.profile-menu-footer[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{width:83.25px;height:37px}.profile-menu-footer[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.menu-links-container[_ngcontent-%COMP%] li.link-separator[_ng
6content-%COMP%], .menu-links-container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{display:none}.menu-links-container[_ngcontent-%COMP%] li.logout-link[_ngcontent-%COMP%]{margin:20px 0}.menu-links-container[_ngcontent-%COMP%] li.upgrade-link[_ngcontent-%COMP%], .menu-links-container[_ngcontent-%COMP%] li.collaborate-link[_ngcontent-%COMP%]{display:block}.profile-menu-beta-label-container[_ngcontent-%COMP%]{position:absolute;top:0;right:60px}.profile-menu-beta-label-container[_ngcontent-%COMP%] .beta-label[_ngcontent-%COMP%]{font-size:12px} .user-plan-label-container user-plan-label .appsumo-subscription-container{display:flex;align-items:center} .user-plan-label-container user-plan-label .plan-description{margin-right:10px}}"]});}}return n;})();Pt();ce();var zo=Ns(gu());_u();rn();Jn();ce();oi();ar();go();var Ch=["bannerTextRef"],zc=(()=>{class n{static{this.REGISTERED_DAYS_THRESHOLD=30;}constructor(e,t,r){this.eventSenderService=e,this.userHelperService=t,this.localeService=r,this.isHidden=!1,this.breakpointObserver=Ye(Wa),this.destroy$=new Ai(),this.scheduleTxt="Schedule",this.registerTxt="Register Now",this.bannerConfig={iconClass:"become-video-pro-banner",text:"Get Free Training - Book a group orientation call",after30DaysTxt:"Build your video lead machine with BIGVU."},this.scheduleLink="https://calendly.com/bigvu-success-team/bigvu-orientation?utm_source=banner&utm_medium=web",this.registerLink="https://calendly.com/miguel-bigvu/video-to-leads-with-bigvu",this.showAfter30DaysVariant=!1,this.openLink=()=>{let o=this.showAfter30DaysVariant?this.registerLink:this.scheduleLink;this.eventSenderService.log(this.eventSenderService.events.boards.deskBannerClick,{buttonText:this.showAfter30DaysVariant?"register":"schedule",originalPath:location.pathname,url:o}),window.open(o,"_blank");};}ngOnInit(){return U(this,null,function*(){try{let[e,t]=yield Promise.all([this.userHelperService.getUserDetails(),this.localeService.getLocale()]),r=t?.[0]==="en",o=!!e?.created&&(0,zo.default)().diff((0,zo.default)(e.created),"days")>=n.REGISTERED_DAYS_THRESHOLD;this.showAfter30DaysVariant=r&&o;}catch{this.showAfter30DaysVariant=!1;}});}ngAfterViewInit(){this.bannerTextRef?.nativeElement&&(this.resizeObserver=new ResizeObserver(()=>{let e=this.bannerTextRef.nativeElement.clientWidth;this.isHidden=e<20;}),this.resizeObserver.observe(this.bannerTextRef.nativeElement)),this.breakpointObserver.observe(["(max-width: 859px)"]).pipe(xi(this.destroy$)).subscribe(e=>{e.matches||(this.isHidden=!1);});}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.resizeObserver?.disconnect();}static{this.ɵfac=function(t){return new(t||n)(I(rt),I(yi),I(Vi));};}static{this.ɵcmp=je({type:n,selectors:[["offer-banner"]],viewQuery:function(t,r){if(t&1&&dt(Ch,5),t&2){let o;ut(o=ht())&&(r.bannerTextRef=o.first);}},hostVars:2,hostBindings:function(t,r){t&2&&ln("hidden",r.isHidden);},standalone:!0,features:[He],decls:7,vars:2,consts:[["bannerTextRef",""],[1,"banner-container"],[1,"banner-text"],[1,"upgrade-button-container"],["variant","tertiary","size","sm",3,"clicked"]],template:function(t,r){if(t&1){let o=Fe();S(0,"div",1)(1,"div",2,0),te(3),O(),S(4,"div",3)(5,"lib-button",4),pe("clicked",function(){return _e(o),ye(r.openLink());}),te(6),O()()();}t&2&&(L(3),bt(" ",r.showAfter30DaysVariant?r.bannerConfig.after30DaysTxt:r.bannerConfig.text," "),L(3),bt(" ",r.showAfter30DaysVariant?r.registerTxt:r.scheduleTxt," "));},dependencies:[Ja],styles:[".banner-container[_ngcontent-%COMP%]{height:40px;background:#ebf2ff;border-radius:12px;padding:4px 4px 4px 10px;display:flex;align-items:center;gap:10px;overflow:hidden;min-width:0}.banner-image[_ngcontent-%COMP%]{width:15px;height:15px;overflow:hidden}.banner-image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:100%;height:100%;display:block;background-size:contain;background-position:center;background-repeat:no-repeat}.become-video-pro-banner[_ngcontent-%COMP%]{background-image:url(/img/movie-clapper.svg)}.banner-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.4;letter-spacing:-.14px;color:#253658;overflow:hidden;min-width:0;flex:1}.upgrade-button-container[_ngcontent-%COMP%]{background:transparent;border:none;border-radius:8px;height:32px;
6cursor:pointer}.upgrade-button-container[_ngcontent-%COMP%]:hover{background:#4481fd1a}.upgrade-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#253658;font-weight:600;font-size:14px;line-height:1.4;letter-spacing:-.14px;padding:2px 12px;background:transparent;border:none;cursor:pointer;white-space:nowrap}.hidden[_nghost-%COMP%]{display:none}@media (max-width: 859px){[_nghost-%COMP%]{display:none}}@media (max-width: 768px){.banner-container[_ngcontent-%COMP%]{height:auto}.banner-text[_ngcontent-%COMP%]{flex:1}}"]});}}return n;})();ce();uo();ro();rn();Sl();yt();tr();hn();un();uo();Kn();fi();qe();Sl();ce();fn();dn();vo();cn();fi();var kh=n=>({disabled:n});function Ph(n,i){if(n&1){let e=Fe();S(0,"button",13),pe("click",function(){_e(e);let r=me().$implicit,o=me();return ye(o.onAcceptInvitationRequest(r));}),te(1,"Accept"),O();}}function Ih(n,i){if(n&1){let e=Fe();S(0,"div",9),pe("click",function(){let r=_e(e).$implicit,o=me();return ye(o.selectOrganization(r));}),S(1,"div",10)(2,"p"),te(3),aa(4,"slice"),O(),Re(5,Ph,2,0,"button",11),O(),S(6,"div",12),re(7,"img",3),O()();}if(n&2){let e=i.$implicit,t=me();L(3),et(la(4,3,e.name,0,32)),L(2),V("ngIf",!e.value.approved),L(2),V("src",e.value.organizationId===t.selectedOrganization.value.organizationId?t.selectFilledImg:t.selectEmptyImg,Lt);}}var Er=class extends qt{},Hc=(()=>{class n extends vi{constructor(e,t,r,o,s){super(e),this.data=e,this.deskManagerHelperService=t,this.adminRequestsService=r,this.spinnerService=o,this.notifier=s,this.organizationImg="img/organization-dialog.svg",this.selectEmptyImg="img/organization-select-empty.svg",this.selectFilledImg="img/organization-select-full.svg",this.SPINNER_NAME="workspaces",this.organizationOptions=[],this.selectedOrganization=void 0,this.disableSelectBtn=!0,this.initOrganizationOptions=l=>U(this,null,function*(){try{this.spinnerService.spin(this.SPINNER_NAME);let d=yield this.deskManagerHelperService.getOrganizations();d.result&&d.result.forEach(u=>{let f=u.myOrganization&&u.isDefaultName?"Personal organization":u.name;this.organizationOptions.push(new St({organizationId:u.id,approved:u.myOrganization||u.approved,myOrganization:u.myOrganization},f));}),this.data.originalOrganizationId?this.selectedOrganization=this.organizationOptions.find(u=>u.value.organizationId===this.data.originalOrganizationId):this.selectedOrganization=this.organizationOptions[0];}catch(d){console.error(d);}finally{this.spinnerService.stop(this.SPINNER_NAME);}}),this.selectOrganization=l=>U(this,null,function*(){l.value.approved&&(this.selectedOrganization=l,this.disableSelectBtn=this.checkIfOriginalOrgSelected(this.selectedOrganization));}),this.select=()=>{if(this.disableSelectBtn)return;let l={organizationId:this.data.originalOrganizationId!==this.selectedOrganization.value.organizationId?this.selectedOrganization.value.organizationId:void 0,originalOrganizationId:this.data.originalOrganizationId,originalWorkspaceId:this.data.originalWorkspaceId};this.submit(l);},this.checkIfOriginalOrgSelected=l=>l.value.organizationId===this.data.originalOrganizationId,this.onAcceptInvitationRequest=l=>U(this,null,function*(){try{let d=l.value.organizationId;yield this.adminRequestsService.acceptGuestUserInvitationByOrganizationId(d),this.organizationOptions.forEach(u=>{u.value.organizationId===d&&(u.value.approved=!0,u.style="custom-select-option",u.activeStyle="custom-select-option");}),yield this.selectOrganization(this.organizationOptions.find(u=>u.value.organizationId===d));}catch(d){console.error(d),this.notifier.error("Can`t accept invitation, please try again");}});}ngOnInit(){return U(this,null,function*(){yield this.initOrganizationOptions();});}static{this.ɵfac=function(t){return new(t||n)(I(gi),I(Qt),I(Wt),I($i),I($t));};}static{this.ɵcmp=je({type:n,selectors:[["organization-select-dialog"]],standalone:!0,features:[ni,He],decls:14,vars:6,consts:[[1,"organization-workspace-select-dialog-container"],[1,"dialog-close-btn",3,"click"],[1,"title-section"],["alt","image",3,"src"],[1,"workspace-select-container"],["class","workspace-option",3,"click",4,"ngFor","ngForOf"],[1,"submit-btn"],[3,"click","ngClass"],[3,"name"],[1,"workspace-option",3,"click"],[1,"preview"],[3,"click",4,"ngIf"],[1,"select-img"],[3,"click"]],template:function(t,r){t&1&&(S(0,"div",0)(1,"div",1),pe("click",function(){return r.close();}),O(),S(2,"div",2),re(3,"img",3),S(4,"h2"),te(5,"Organization"),O()(),S(6,"div",4),Re(7,Ih,8,7,"div",5),O(),S(8,"footer")(9,"div",6)(10,"button",7),pe("click",function(){return r.select();}),te(11," Select "),O()()(),S(12,"ngx-spinner",8),re(13,"lottie-loader"),O()()),t&2&&(L(3),V("src",r.organizationImg,Lt),L(4),V("ngForOf",r.organizationOptions),L(3),V("ngClass",tt(4,kh,r.disableSelectBtn)),L(2),V("name",r.SPINNER_NAME));},dependencies:[vt,It,gt,mi,pi,hi,va],styles:[".organization-workspace-select-dialog-container[_ngcontent-%COMP%]{position:relative;padding-top:24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;height:100%}.dialog-close-btn[_ngcontent-%COMP%]{position:absolute;background-image:url(/img/exit-icon.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:24px;height:24px;display:block;cursor:pointer;right:32px;top:24px}.select-arrow.closed[_ngcontent-%COMP%], .select-arrow.opened[_ngcontent-%COMP%]{background-image:url(/img/left-arrow-blue.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:24px;height:24px;display:inline-block}.title-section[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:flex-start;margin-bottom:16px;padding:0 24px}.title-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:14px;font-family:Inter-Bold;line-height:140%;color:#253658;padding:0;margin:0}.title-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:8px}.workspace-select-container[_ngcontent-%COMP%]{width:100%;height:258px;flex-grow:1;overflow-y:scroll;margin-bottom:24px}.workspace-option[_ngcontent-%COMP%]{background:#fff;height:40px;max-height:48px;width:100%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(123,141,177,.3);cursor:pointer;padding:0 24px}.workspace-option[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;gap:8px}.preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0;font-weight:400;font-size:13px;color:#253658}.preview-img[_ngcontent-%COMP%]{border:1px solid rgba(123,141,177,.3);width:24px;height:24px;border-radius:50%}.preview-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px;object-fit:contain}.select-img[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%}.select-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px;object-fit:contain}.image-from-title[_ngcontent-%COMP%]{background:#00abfe;color:#fff;font-size:14px;width:100%;height:100%;text-align:center;border-radius:50%}.organization-workspace-select-dialog-container[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%]{width:100%;display:flex;align-items:baseline;justify-content:center}.organization-workspace-select-dialog-container[_ngcontent-%COMP%] .submit-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:#00abfe;border-radius:10px;width:196px;height:44px;padding:10px;text-align:center;font-weight:700;font-size:16px;line-height:19px;color:#fff;font-family:Inter-Bold}.organization-workspace-select-dialog-container[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{cursor:default;pointer-events:none;opacity:.6}footer[_ngcontent-%COMP%]{width:100%;height:76px;align-items:center;justify-content:center;display:flex}"]}
6);}}return n;})();Kn();fi();qe();Il();Xn();Mu();ce();yt();fn();oi();vo();cn();qe();fi();var Oh=["insideList"],Mh=n=>({"workspace-preview-active":n}),Ah=n=>({height:n}),xh=n=>({"logo-trigger-active":n}),Dh=n=>({active:n});function Nh(n,i){if(n&1&&(S(0,"div",22),re(1,"img",20),O()),n&2){let e=me(2);L(),V("src",e.selectedWorkspace==null||e.selectedWorkspace.value==null?null:e.selectedWorkspace.value.icon,Lt);}}function Lh(n,i){if(n&1&&(S(0,"div",23),te(1),O()),n&2){let e=me(2);L(),bt(" ",e.selectedWorkspace.name.slice(0,1)," ");}}function Rh(n,i){if(n&1&&(S(0,"div",24),re(1,"img",25),O()),n&2){let e=me(2);L(),V("ngClass",tt(2,xh,e.menuOpened))("src",e.logoTrigger,Lt);}}function Fh(n,i){if(n&1&&re(0,"img",20),n&2){let e=me().$implicit;V("src",e==null?null:e.value.icon,Lt);}}function zh(n,i){if(n&1&&(S(0,"div",31),te(1),O()),n&2){let e=me().$implicit;L(),bt(" ",e==null?null:e.name.slice(0,1)," ");}}function jh(n,i){if(n&1){let e=Fe();S(0,"div",26),pe("click",function(){let r=_e(e).$implicit,o=me(2);return ye(o.onDeskSelect(r));}),S(1,"div",27)(2,"div",28),Re(3,Fh,1,1,"img",29)(4,zh,2,1,"ng-template",null,1,ca),O(),S(6,"p"),te(7),O()(),S(8,"div",30),re(9,"img",20),O()();}if(n&2){let e=i.$implicit,t=Ri(5),r=me(2);V("ngClass",tt(5,Dh,e.active)),L(3),V("ngIf",e==null?null:e.value.icon)("ngIfElse",t),L(4),et(e==null?null:e.name),L(2),V("src",(e==null?null:e.value.id)===(r.selectedWorkspace==null?null:r.selectedWorkspace.value.id)?r.selectFilledImg:r.selectEmptyImg,Lt);}}
6function Hh(n,i){if(n&1){let e=Fe();S(0,"div",5)(1,"div",6),pe("click",function(){_e(e);let r=me();return ye(r.openMenu());}),Re(2,Nh,2,1,"div",7)(3,Lh,2,1,"div",8),S(4,"div",9)(5,"div",10),te(6),O(),S(7,"div",11),te(8,"Workspace"),O()(),Re(9,Rh,2,4,"div",12),O(),S(10,"div",13,0)(12,"div",14)(13,"text-input",15),pe("onInput",function(){_e(e);let r=me();return ye(r.onWorkspaceSearch());}),O()(),S(14,"section",16),Re(15,jh,10,7,"div",17),O(),S(16,"div",18),pe("click",function(){_e(e);let r=me();return ye(r.openOrganizationDialog());}),S(17,"div",19),re(18,"img",20),O(),S(19,"div")(20,"div"),te(21,"You are on "),S(22,"b"),te(23),O()(),S(24,"div",21),te(25," Change Organization "),O()()()()();}if(n&2){let e=me();L(),V("ngClass",tt(14,Mh,e.menuOpened)),L(),V("ngIf",e.selectedWorkspace==null||e.selectedWorkspace.value==null?null:e.selectedWorkspace.value.icon),L(),V("ngIf",(e.selectedWorkspace==null?null:e.selectedWorkspace.value)&&!e.selectedWorkspace.value.icon),L(3),et(e.selectedWorkspace==null?null:e.selectedWorkspace.name),L(3),V("ngIf",e.workspaceMenuOptions.length>1||e.showOrganizationDialog),L(),V("hidden",!e.menuOpened),L(3),V("inputFormControl",e.workspaceQuery)("placeholder","Search workspace")("showClearButton",!1),L(),V("ngStyle",tt(16,Ah,e.showOrganizationDialog?"60%":"80%")),L(),V("ngForOf",e.filteredWorkspaces),L(),V("hidden",!e.showOrganizationDialog),L(2),V("src",e.organizationImg,Lt),L(5),et(e.orgName);}}function Bh(n,i){if(n&1){let e=Fe();S(0,"div")(1,"div",32)(2,"button",33),pe("click",function(){_e(e);let r=me();return ye(r.back());}),re(3,"img",34),O()()();}}var Bc=(()=>{class n{constructor(e,t,r,o,s,l,d){this.dialogHelperService=e,this.deskManagerHelperService=t,this.navigationHelperService=r,this.eventsService=o,this.spinnerService=s,this.notifier=l,this.renderer=d,this._EVENT_PATH=this.eventsService.events.collaborate,this.organizationImg="img/organization-dialog.svg",this.selectEmptyImg="img/organization-select-empty.svg",this.selectFilledImg="img/organization-select-full.svg",this.logoTrigger="img/icons/single-switcher.svg",this.SPINNER_ID="spinner",this.TIMEOUT_MS=1e3,this.ALLOWED_PATH=["/boards","/pages","/branding","/media-assets","/upload","/social-channels","/social-channels/accounts","/collaborate"],this.preload=!0,this.showOrganizationDialog=!0,this.menuOpened=!1,this.selectedWorkspace=null,this.workspaceMenuOptions=[],this.filteredWorkspaces=[],this.unsubscribe$=new Ai(),this.showBackButton=!1,this.onWorkspaceSearch=()=>{setTimeout(()=>{this.filteredWorkspaces=this.workspaceMenuOptions.filter(u=>u?.name?.toLowerCase().includes(this.workspaceQuery.value.toLowerCase()));},300);},this.onDeskChange=u=>{if(u){let{workspaceId:f}=u,y=this.workspaceMenuOptions.find(M=>M.value.id===f);y&&(this.selectedWorkspace=y,this.selectedWorkspace.isActive=!0);}},this.onOrganizationChange=u=>U(this,null,function*(){this.workspaceMenuOptions=[],u&&u.desks&&u.desks.forEach(f=>{this.workspaceMenuOptions.push(new St({id:f.id,icon:f.logo?f.logo.resource.url:"",type:f.type},this.formatWorkspaceName(f),null,null,null,null,!1,"selected-workspace-option"));}),this.filteredWorkspaces=this.workspaceMenuOptions,this.orgName=u?.name;}),this.openOrganizationDialog=()=>U(this,null,function*(){this.closeMenu();let u=yield this.deskManagerHelperService.getOrganizationData(),f=new Er();f.originalOrganizationId=u.organizationId,f.originalWorkspaceId=this.selectedWorkspace.value.id,f.onClose=this.dialogHelperService.close,f.onSubmit=this.onOrganizationDialogSuccess;let y=new pt();y.panelClass="organization-workspace-select-dialog",this.dialogHelperService.open(f,Hc,y);}),this.onOrganizationDialogSuccess=u=>U(this,null,function*(){this.dialogHelperService.close();try{this.spinnerService.spin(this.SPINNER_ID);let{organizationId:f,originalOrganizationId:y,originalWorkspaceId:M}=u,R=f!==y;this.eventsService.log(this._EVENT_PATH.workspaceChange,{isDifferentOrganization:R,sourceOrganization:R?y:void 0,targetOrg:R?u.organizationId:void 0,sourceWorkspace:M,targetWorkspace:void 0}),this.ALLOWED_PATH.includes(this.navigationHelperService.getCurrentPath())||(yield this.navigationHelperService.navigateTo("boards")),u.organizationId&&(yield this.deskManagerHelperService.getOrganizationToken(u.organizationId));}catch(f){console.error(f),f.status==400&&f.responseJSON?.code=="10006/2"?this.notifier.error("The organization you are trying to access does not have the minimum required plan."):f.status==400&&f.responseJSON?.code=="10006/3"&&this.notifier.error("The organization owner does not have the minimum required plan.");}finally{this.spinnerService.stop(this.SPINNER_ID);}}
6),this.formatWorkspaceName=u=>u.type===Cl.PERSONAL?"Personal":u.name,this.onDeskSelect=u=>{this.selectedWorkspace.value.id!==u.value.id&&(this.closeMenu(),this.selectedWorkspace=u,this.deskManagerHelperService.setSelectedWorkspace({firstLoad:this.initialDeskMenuLoad,workspaceId:u.value.id,workspaceName:u.name,workspaceIcon:u.value.icon,workspaceType:u.value.type}));},this.openMenu=()=>{if(this.initialLoadDone){if(this.menuOpened){this.closeMenu();return;}if(this.workspaceMenuOptions&&this.workspaceMenuOptions.length>1||this.showOrganizationDialog){this.menuOpened=!0,setTimeout(()=>{this.addClickListener();});return;}}},this.back=()=>{this.navigationHelperService.back();},this.closeMenu=()=>{this.menuOpened=!1,this.removeClickListener();},this.onWorkspaceSelection=new on(),this.initialLoadDone=!1,this.workspaceQuery=new za("");}ngOnInit(){return U(this,null,function*(){this.deskManagerHelperService.initializeWorkspace(),this.navigationHelperService.showBackInsteadofDeskSelect.pipe(xi(this.unsubscribe$)).subscribe(e=>this.showBackButton=e),this.deskManagerHelperService.workspaceChanged.pipe(xi(this.unsubscribe$)).subscribe(this.onDeskChange),this.deskManagerHelperService.organizationChanged$.pipe(xi(this.unsubscribe$)).subscribe(this.onOrganizationChange),setTimeout(()=>{this.initialLoadDone=!0;},this.TIMEOUT_MS);});}addClickListener(){this.clickListener=this.renderer.listen("document","click",e=>this.onClick(e));}removeClickListener(){this.clickListener&&this.clickListener();}onClick(e){let t=e.target;this.menuOpened&&!this.insideList.nativeElement.contains(t)&&this.closeMenu();}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.unsubscribe(),this.closeMenu();}static{this.ɵfac=function(t){return new(t||n)(I(_t),I(Qt),I(Kt),I(rt),I($i),I($t),I(Zs));};}static{this.ɵcmp=je({type:n,selectors:[["workspace-menu-bar"]],viewQuery:function(t,r){if(t&1&&dt(Oh,5,Di),t&2){let o;ut(o=ht())&&(r.insideList=o.first);}},inputs:{preload:"preload",showOrganizationDialog:"showOrganizationDialog"},outputs:{onWorkspaceSelection:"onWorkspaceSelection"},standalone:!0,features:[He],decls:4,vars:3,consts:[["insideList",""],["imageFromTitle",""],["class","workspace-menu",4,"ngIf"],[4,"ngIf"],[3,"name"],[1,"workspace-menu"],[1,"workspace-preview",3,"click","ngClass"],["class","workspace-preview-image",4,"ngIf"],["class","collaborate-default-img",4,"ngIf"],[1,"workspace-text"],[1,"workspace-top-name"],[1,"collaborate-sub-name"],["class","trigger-container",4,"ngIf"],[1,"workspace-select-container",3,"hidden"],[1,"menu-wrapper"],[3,"onInput","inputFormControl","placeholder","showClearButton"],[1,"workspace-list",3,"ngStyle"],["class","workspace-option",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"org-wrapper",3,"click","hidden"],[1,"org-image-section"],["alt","image",3,"src"],[1,"change-org"],[1,"workspace-preview-image"],[1,"collaborate-default-img"],[1,"trigger-container"],["alt","image",3,"ngClass","src"],[1,"workspace-option",3,"click","ngClass"],[1,"preview"],[1,"preview-img"],["alt","image",3,"src",4,"ngIf","ngIfElse"],[1,"select-img"],[1,"image-from-title"],[1,"back-button-container"],["aria-label","Back",3,"click"],["src","/img/blue-left-arrow.svg","alt","Back"]],template:function(t,r){t&1&&(Re(0,Hh,26,18,"div",2)(1,Bh,4,0,"div",3),S(2,"ngx-spinner",4),re(3,"lottie-loader"),O()),t&2&&(V("ngIf",(r.workspaceMenuOptions==null?null:r.workspaceMenuOptions.length)>0&&!r.showBackButton),L(),V("ngIf",r.showBackButton),L(),V("name",r.SPINNER_ID));},dependencies:[ji,gt,It,vt,zi,mi,pi,hi,Pl],styles:[".workspace-menu[_ngcontent-%COMP%]{position:relative}.workspace-select-container[_ngcontent-%COMP%]{width:320px;height:350px;border-radius:20px;position:absolute;top:54px;left:0;background:#fff;overflow:hidden;z-index:1001;box-shadow:0 24px 48px #0000001f}.menu-wrapper[_ngcontent-%COMP%]{width:90%;margin:12px}.workspace-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;width:100%;overflow-y:scroll}.workspace-option[_ngcontent-%COMP%]{max-height:54px;width:100%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(123,141,177,.3);cursor:pointer;padding:12px}.workspace-option[_ngcontent-%COMP%]:hover{background:#00abfe14}.preview[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;gap:8px}.preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0;font-weight:400;font-size:13px;color:#253658}.preview-img[_ngcontent-%COMP%]{border:1px solid rgba(123,141,177,.3);width:28px;height:28px;border-radius:50%;overflow:hidden}.preview-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.select-img[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%}.select-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px;object-fit:contain;object-position:center}.image-from-title[_ngcontent-%COMP%]{background:#00abfe;color:#fff;font-size:14px;line-height:26px;width:100%;height:100%;text-align:center;border-radius:50%}.change-org[_ngcontent-%COMP%]{color:#00abfe;font-size:14px;font-weight:600;text-decoration-line:underline}.org-wrapper[_ngcontent-%COMP%]{width:100%;height:74px;display:flex;align-items:center;justify-content:flex-start;gap:6px;cursor:pointer;padding:12px}.org-image-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.back-button-container[_ngcontent-%COMP%]{background-color:#25365814;border-radius:10px;width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:10px}.back-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;width:100%;height:100%}.back-button-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50%;height:50%;object-fit:contain;object-position:center}.collaborate-default-img[_ngcontent-%COMP%]{width:40px;height:40px;background:#00abfe;border-radius:999px;color:#fff;font-size:20px;align-items:center;justify-content:center;display:flex;border:1px solid rgba(123,141,177,.3)}
6.workspace-top-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:19px;color:#253658;letter-spacing:-.16px;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.workspace-preview[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:12px;background-color:#fff!important;border-radius:40px;height:48px;width:100%;color:#253658;font-weight:500;font-size:16px;line-height:19px;cursor:pointer;padding:4px 12px 4px 6px}.workspace-preview-active[_ngcontent-%COMP%]{background:#7b8db114!important}.workspace-preview-image[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:999px;border:1px solid rgba(123,141,177,.3);overflow:hidden}.workspace-preview-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.trigger-container[_ngcontent-%COMP%]{width:20px;height:40px}.logo-trigger-active[_ngcontent-%COMP%]{rotate:180deg}.trigger-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.workspace-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;flex:1}.collaborate-sub-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:1.4;color:#4b5563;letter-spacing:-.14px}@media only screen and (max-width: 549px){.collaborate-default-img[_ngcontent-%COMP%]{width:36px;height:36px}.workspace-preview[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:36px;height:36px}.workspace-top-name[_ngcontent-%COMP%]{font-size:13px}.collaborate-sub-name[_ngcontent-%COMP%]{font-size:12px}}"]});}}return n;})();qe();Jn();pn();ir();ce();Ti();ar();Ze();Nu();yt();dn();oi();Ol();_o();Au();mn();cn();ol();rr();fn();var $h=n=>({"remove-topbar-nicely":n});function Wh(n,i){if(n&1&&(S(0,"div",7),re(1,"workspace-menu-bar",8),O()),n&2){let e=me();L(),V("showOrganizationDialog",e.userHasForeignOrganizations);}}function qh(n,i){n&1&&re(0,"offer-banner",9);}function Gh(n,i){n&1&&re(0,"app-header-credits-button",10);}function Qh(n,i){if(n&1){let e=Fe();S(0,"button",11),pe("click",function(){_e(e);let r=me();return ye(r.back());}),te(1),O();}if(n&2){let e=me();L(),et(e.goBackTxt);}}function Kh(n,i){if(n&1){let e=Fe();S(0,"button",12),pe("click",function(){_e(e);let r=me();return ye(r.goToLogin());}),te(1),O();}if(n&2){let e=me();L(),et(e.loginTxt);}}var Vc=(()=>{class n{constructor(e,t,r,o,s,l,d,u,f,y,M,R,N,$,fe,Z,j,v){this.planHelperService=e,this.userHelperService=t,this.navigationHelperService=r,this.router=o,this.permissionService=s,this.dialogHelperService=l,this.adminRequestsService=d,this.eventsService=u,this.uiActionService=f,this.workspacePermissionService=y,this.organizationStateService=M,this.sessionService=R,this.notifier=N,this.anonymousUserService=$,this.premiumPlanService=fe,this.logoutService=Z,this.cello=j,this.deskManagerHelperService=v,this.userImageUrl="img/user_placeholder_icon.svg",this.organizationDesksCount=null,this.showDeskDropdown=!0,this.isAdminPages=!1,this.isFree=!1,this.isMaxOrProPlan=!1,this.button1Text="Upgrade",this.showUpgradeButton=!1,this.isProPlan=!1,this.showWorkspaceMenu=!1,this.goBackTxt="Go Back",this.loginTxt="Login",this.setDeskDropdown=()=>{this.showDeskDropdown=this.userHasForeignOrganizations||this.hasPublicDesks()&&this.organizationPlan||this.organizationPlan&&(this.planHelperService.isTeamPlan(this.organizationPlan.genericName)||this.planHelperService.isProPlan(this.organizationPlan.genericName)||this.planHelperService.isAIMaxPlan(this.organizationPlan.genericName));},this.setRouteChangeListener=()=>{this.routeSubscription=this.navigationHelperService.currentRoute$.subscribe(T=>{T&&(this.shouldHideDeskDropdown=this.navigationHelperService.shouldHideWorkspaceDropdown(),this.showMinimalTopbar=this.navigationHelperService.shouldShowMinimalTopbar(),this.showLoginButton=this.navigationHelperService.shouldShowLoginButton(),this.isAdminPages=this.navigationHelperService.inAdminSection());});},this.setOrganizationPlanChangeListener=()=>(this.organizationPlanSubscription=this.planHelperService.organizationPlan$.subscribe(T=>{T&&(this.organizationPlan=T,this.updateHeaderButtonState(T.genericName),this.isFree=this.planHelperService.isFreePlan(T.genericName));}),this),this.setPlanUpdatedListener=()=>{this.planUpdatedSubscription=this.planHelperService.organizationPlanUpdated$.subscribe(T=>{T!=null&&(this.showUpgradeButton=!1);});},this.setUserDataChangeListener=()=>{this.userDataSubscription=this.userHelperService.userData$.subscribe(T=>U(this,null,function*(){T&&(this.setUserDetails(T),this.setDeskDropdown(),this.updateLogoState(),this.isCollaborative=yield this.workspacePermissionService.canViewCollaborateScreen());}));},this.setOrganizationChangeListener=()=>{this.organizationSubscription=this.deskManagerHelperService.organizationChanged$.subscribe(T=>{T?.desks&&(this.organizationDesksCount=T.desks.length,this.updateLogoState());});},this.setUserDetails=T=>{this.userName=T.fullName,this.userEmail=T.email,this.userImageUrl=T.profileImgAsset.thumbnailUrl||T.profileImgAsset.url,this.userType=T.organizationRole,this.userDesks=T.desks,this.userHasForeignOrganizations=T.hasForeignOrganizations;},this.updateHeaderButtonState=T=>{this.planHelperService.isFreePlan(T)||this.planHelperService.isStarterPlan(T)?(this.showUpgradeButton=!0,this.button1Text="Upgrade",this.button1IconPath="/img/composer/broll-suggestion-modal/crown.svg",this.isProPlan=!1):this.planHelperService.isProPlan(T)?(this.showUpgradeButton=!0,this.button1Text="Get AI Max",this.button1IconPath="/img/profile/ai-max-diamond.svg",this.isProPlan=!0):this.showUpgradeButton=!1;},this.updateLogoState=()=>{this.showWorkspaceMenu=this.hasPublicDesks()||this.userHasForeignOrganizations;},this.hasPublicDesks=()=>Math.max(this.organizationDesksCount??0,this.userDesks?.length??0)>1,this.onMenuToggle=()=>{this.navigationHelperService.toggleMenuCollapsed();},this.onLogoClick=()=>{this.router.navigate(["/boards"]);},this.onUpgradeClick=()=>{this.isProPlan?this.premiumPlanService.openPricingDialog(ri.AI_MAX,location.pathname,location.pathname,Tt.projectsScreenMax,void 0,void 0,void 0,void 0,Si.topup):this.premiumPlanService.openPricingDialog(ri.PRO,location.pathname,location.pathname,Tt.projectsScreenPro,void 0,void 0,void 0,void 0,Si.topup);},this.onEarnClick=()=>{this.cello.openCelloDialog();},this.onAvatarIconClick=()=>{this.openProfileMenu();},this.openProfileMenu=()=>U(this,null,function*(){let T=new Sr();T.userEmail=this.userEmail,T.isFree=this.isFree,T.userName=this.userName,T.userImageUrl=this.userImageUrl,T.profileMenuLinks=yield this.getProfileMenuLinks(),T.showUpgradeLink=this.showUpgradeButton,T.showCollaborateLink=this.isCollaborative,T.onLogout=this.onUserLogout,T.onClose=this.dialogHelperService.close;let J=new pt();J.backdropClass="transparent-backdrop",J.panelClass="profile-menu-dialog-content",this.dialogHelperService.open(T,Fc,J);}),this.getProfileMenuLinks=()=>U(this,null,function*(){let T=[new Y("Profile","/profile"),new Y("Social Channels","/social-channels"),new Y("Task List","/rendering-queue"),new Y("Preferred Language","/preferred-language")];return(yield this.workspacePermissionService.canViewBillingAndPricing())&&(yield this.planHelperService.isStripePlanOrBIGVU())&&T.push(new Y("Billing","/profile/billing")),(yield this.workspacePermissionService.canViewBillingAndPricing())&&T.push(new Y("Pricing","/pricing")),this.permissionService.couldViewAll()&&!this.sessionService.isSudoSession()&&!Ce.withoutAdmin&&T.push(new Y("Admin","/admin/users")),this.isCollaborative&&T.push(new Y("My Team","/collaborate")),(yield this.planHelperService.isOrphanedAccount())?T.slice(0,1):T;}),this.onUserLogout=()=>U(this,null,function*(){this.sessionService.isSudoSession()?this.logoutSuduSession():this.logout();}),this.logoutSuduSession=()=>U(this,null,function*(){try{this.dialogHelperService.showUiConfirmationDialog({title:"End Sudo Session",msg:"This will end your sudo session. Are you sure?",confirmationText:"Yes",cancellationText:"Cancel",onSubmit:()=>U(this,null,function*(){yield this.sessionService.endSudoSession(),this.dialogHelperService.close();})});}catch(T){console.error(T),this.notifier.error("Failed to end your sudo session");}}),this.logout=()=>U(this,null,function*(){try{yield this.logoutService.logout(),this.prepareToLogout();}catch(T){console.error("Failed to logout",T);}finally{this.dialogHelperService.close();}}),this.prepareToLogout=()=>{this.notifier.success("Signing out... We hope to see you soon !"),this.removeTopbarNicely=!0,setTimeout(()=>{this.router.navigate([Ce.globals.welcomeAppPage]),this.removeTopbarNicely=!1;},1e3);},this.back=()=>{this.navigationHelperService.back();},this.goToLogin=()=>{this.router.navigate([Ce.globals.welcomeAppPage]);},this.isFree=!1,this.isCollaborative=!1,this.removeTopbarNicely=!1;}ngOnInit(){return U(this,null,function*(){let e=this.planHelperService.getPlanType();this.isMaxOrProPlan=this.planHelperService.isAIMaxPlan(e)||this.planHelperService.isProPlan(e),this.setRouteChangeListener(),this.setPlanUpdatedListener(),this.setOrganizationPlanChangeListener(),this.setUserDataChangeListener(),this.setOrganizationChangeListener(),this.isOrphanedAccount=yield this.planHelperService.isOrphanedAccount();});}
6ngOnDestroy(){this.organizationPlanSubscription.unsubscribe(),this.planUpdatedSubscription.unsubscribe(),this.userDataSubscription.unsubscribe(),this.organizationSubscription?.unsubscribe(),this.routeSubscription.unsubscribe();}static{this.ɵfac=function(t){return new(t||n)(I(wt),I(yi),I(Kt),I(Ee),I(xl),I(_t),I(Wt),I(rt),I(nr),I(Wi),I(kl),I(Gt),I($t),I(er),I(_i),I(Zl),I(qi),I(Qt));};}static{this.ɵcmp=je({type:n,selectors:[["navigation"]],standalone:!0,features:[He],decls:7,vars:20,consts:[["button1Style","ghost","button2Text","Earn $50","button2Style","ghost",3,"menuClick","logoClick","button1Click","button2Click","avatarIconClick","ngClass","showMenuButton","showLogo","showAvatarButton","showButton1","button1Text","button1LeftIconContent","preserveButton1IconColor","showButton2","preserveButton2IconColor","showNotificationButton","showAvatarIcon","avatarIconContent"],["slot","left",4,"ngIf"],["id","search-bar","slot","left"],["slot","center",4,"ngIf"],["slot","right","class","credits-rightmost",4,"ngIf"],["slot","right","class","back-button",3,"click",4,"ngIf"],["slot","right","class","login-button",3,"click",4,"ngIf"],["slot","left"],[3,"showOrganizationDialog"],["slot","center"],["slot","right",1,"credits-rightmost"],["slot","right",1,"back-button",3,"click"],["slot","right",1,"login-button",3,"click"]],template:function(t,r){t&1&&(S(0,"lib-header-global",0),pe("menuClick",function(){return r.onMenuToggle();})("logoClick",function(){return r.onLogoClick();})("button1Click",function(){return r.onUpgradeClick();})("button2Click",function(){return r.onEarnClick();})("avatarIconClick",function(){return r.onAvatarIconClick();}),Re(1,Wh,2,1,"div",1),re(2,"div",2),Re(3,qh,1,0,"offer-banner",3)(4,Gh,1,0,"app-header-credits-button",4)(5,Qh,2,1,"button",5)(6,Kh,2,1,"button",6),O()),t&2&&(V("ngClass",tt(18,$h,r.removeTopbarNicely))("showMenuButton",!r.showMinimalTopbar&&!r.showLoginButton&&!r.navigationHelperService.mobileScreen()&&!r.navigationHelperService.hideNavigationMenu)("showLogo",r.showMinimalTopbar||!r.showWorkspaceMenu&&!r.showLoginButton&&!r.shouldHideDeskDropdown)("showAvatarButton",!1)("showButton1",r.showUpgradeButton&&!r.showMinimalTopbar&&!r.showLoginButton&&!r.isOrphanedAccount&&!r.navigationHelperService.compactScreen())("button1Text",r.button1Text)("button1LeftIconContent",r.button1IconPath)("preserveButton1IconColor",!0)("showButton2",!r.showMinimalTopbar&&!r.showLoginButton&&!r.isOrphanedAccount&&!r.navigationHelperService.compactScreen())("preserveButton2IconColor",!0)("showNotificationButton",!1)("showAvatarIcon",!r.showLoginButton)("avatarIconContent",r.userImageUrl),L(),V("ngIf",!r.showLoginButton&&!r.shouldHideDeskDropdown&&r.showWorkspaceMenu),L(2),V("ngIf",!r.showMinimalTopbar&&!r.showLoginButton&&!r.isOrphanedAccount),L(),V("ngIf",!r.showMinimalTopbar&&!r.showLoginButton&&!r.isOrphanedAccount),L(),V("ngIf",r.showMinimalTopbar&&!r.showLoginButton&&!r.isAdminPages),L(),V("ngIf",r.showLoginButton));},dependencies:[gt,vt,Bc,zc,el,Kl],styles:["[_nghost-%COMP%]{display:block;width:100%}.credits-rightmost[_ngcontent-%COMP%]{order:1}[_nghost-%COMP%] lib-header-global .header-global-right>lib-avatar{order:2}.remove-topbar-nicely[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeOutUp 1s forwards}@keyframes _ngcontent-%COMP%_fadeOutUp{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-100%)}}.back-button[_ngcontent-%COMP%]{width:100px;height:36px;color:#fff;border-radius:10px;background:linear-gradient(to left,#28b3f7 42%,#506aff 99%);font-family:Inter-Bold;font-size:14px;cursor:pointer;border:none}.back-button[_ngcontent-%COMP%]:hover{opacity:.5}.login-button[_ngcontent-%COMP%]{width:100px;height:36px;color:#fff;border-radius:10px;background:linear-gradient(to left,#28b3f7 42%,#506aff 99%);font-family:Inter-Bold;font-size:14px;cursor:pointer;border:none}.login-button[_ngcontent-%COMP%]:hover{opacity:.5} .profile-menu-dialog-content{width:180px;position:absolute!important;top:60px;right:30px;max-width:100vw!important} .profile-menu-dialog-content mat-dialog-container{border-radius:10px!important;padding:0!important}@media only screen and (max-width: 767px){.back-button[_ngcontent-%COMP%], .login-button[_ngcontent-%COMP%]{width:90px;font-size:12px} .profile-menu-dialog-content{width:100%;top:0;left:0;right:0;height:100%;max-width:100vw;margin:0 auto} .profile-menu-dialog-content mat-dialog-container{border-radius:0!important}}"]});}}return n;})();qe();ce();qe();Qn();var Uc="Open chat",Zh="elevenlabs-agent:expand",kr=class{constructor(i){this.host=i,this.stylesApplied=!1,this.orbL
6auncherEnabled=!1;}whenReady(i=15e3){return U(this,null,function*(){if(typeof window>"u"||!window.customElements)return!1;try{yield window.customElements.whenDefined("elevenlabs-convai");}catch{return!1;}return this.waitForShadow(i);});}waitForShadow(i){let e=Date.now();return new Promise(t=>{let r=()=>{if(this.host.shadowRoot){t(!0);return;}if(Date.now()-e>i){t(!1);return;}setTimeout(r,200);};r();});}applyStyleOverrides(){let i=this.host.shadowRoot;if(!i||this.stylesApplied||i.querySelector("#bigvu-support-override"))return;let e=document.createElement("style");e.id="bigvu-support-override",e.textContent=` 7 .overlay > p { display: none !important; } 8 [class*="inline-flex"]:has(button[role="combobox"]) { display: none !important; } 9 `,i.appendChild(e),this.stylesApplied=!0;}enableOrbLauncher(){let i=this.host.shadowRoot;!i||this.orbLauncherEnabled||(this.orbLauncherEnabled=!0,i.addEventListener("click",e=>{e.target?.closest?.("button")?.getAttribute("aria-label")===Uc&&document.dispatchEvent(new CustomEvent(Zh,{detail:{action:"expand"}}));},!0));}findOrbButton(i){return i.querySelector(`button[aria-label="${Uc}"]`);}open(){return U(this,null,function*(){if(!this.host.shadowRoot&&!(yield this.whenReady()))return!1;let i=this.host.shadowRoot;if(!i)return!1;if(this.isOpen())return!0;let e=this.findOrbButton(i);e&&e.click();let t=this.findStartButton(i)??(yield this.waitForStartButton(i,1500));return t?(t.click(),this.waitForOpen(2500)):!1;});}waitForStartButton(i,e){let t=Date.now();return new Promise(r=>{let o=()=>{let s=this.findStartButton(i);if(s){r(s);return;}if(Date.now()-t>e){r(null);return;}setTimeout(o,100);};o();});}findStartButton(i){let t=Array.from(i.querySelectorAll("button")).filter(r=>r.getAttribute("role")!=="combobox");return t.find(r=>/talk|start/i.test(r.getAttribute("aria-label")??""))??t.find(r=>(r.getAttribute("class")??"").includes("bg-accent"))??null;}isOpen(){let i=this.host.shadowRoot;return!!i&&!this.findStartButton(i)&&!this.findOrbButton(i);}waitForOpen(i){let e=Date.now();return new Promise(t=>{let r=()=>{if(this.isOpen()){t(!0);return;}if(Date.now()-e>i){t(!1);return;}setTimeout(r,100);};r();});}};ce();Nl();var Yh=["convai"];function Jh(n,i){if(n&1&&re(0,"elevenlabs-convai",2,0),n&2){let e=me();an("display",e.support.visible()?null:"none"),Ni("agent-id",e.support.config==null?null:e.support.config.agentId)("placement",e.supp
9ort.placement())("markdown-link-allowed-hosts",e.allowedLinkHosts)("override-voice-id",e.support.config==null?null:e.support.config.voiceId)("override-first-message",e.support.config==null?null:e.support.config.firstMessage)("text-contents",e.textContents)("dynamic-variables",e.support.dynamicVariables());}}var ep="desk.bigvu.tv,bigvu.tv",tp={main_label:"Get Expert Advice",start_call:"Talk to our AI Agent"},$c="elevenlabs-convai:call",ip="elevenlabs-agent:contextual-update",np=1200,Wc=(()=>{class n{set convaiElement(e){this.convaiRef=e,e?.nativeElement?this.setupConvaiElement(e.nativeElement):this.adapter=void 0;}constructor(e,t){this.support=e,this.callListenerAttached=!1,this.mounted=Ys(!0),this.lastRemountVersion=null,this.allowedLinkHosts=ep,this.onConvaiCall=r=>{let o=r,s=o.target;if(!s?.getAttribute||s.getAttribute("agent-id")!==this.support.config?.agentId)return;let l=o.detail?.config;if(!l)return;l.clientTools=zn(ii({},l.clientTools??{}),{navigation:this.navigate});let d=this.support.currentReason();d&&(this.support.setSupportReason(null),setTimeout(()=>this.sendContextualUpdate(`The user is reaching out about: ${d}`),np));},this.navigate=r=>{let o=r?.url;if(!o||typeof o!="string")return ur.invalidUrl;let s=o.startsWith("http://")||o.startsWith("https://")?o:`https://${o}`,l=window.open(s,"_blank");if(!l)return ur.popupBlocked;try{l.opener=null;}catch{}return ur.success;},this.isBrowser=Ot(t),this.isBrowser&&this.support.isEnabled&&this.support.startParamsCollection(),pa(()=>{let r=this.support.remountVersion();if(!this.isBrowser)return;let o=this.lastRemountVersion===null;this.lastRemountVersion=r,!o&&(this.mounted.set(!1),setTimeout(()=>this.mounted.set(!0),0));},{allowSignalWrites:!0});}get shouldRender(){return this.isBrowser&&this.support.isEnabled;}get textContents(){return JSON.stringify(tp);}ngAfterViewInit(){this.shouldRender&&(document.addEventListener($c,this.onConvaiCall),this.callListenerAttached=!0);}setupConvaiElement(e){this.support.registerController(this);let t=new kr(e);this.adapter=t,this.applyAdapterOverrides(t);}applyAdapterOverrides(e){return U(this,null,function*(){(yield e.whenReady())&&this.adapter===e&&(e.applyStyleOverrides(),e.enableOrbLauncher());});}ngOnDestroy(){this.callListenerAttached&&document.removeEventListener($c,this.onConvaiCall),this.support.unregisterController(this);}open(e){return U(this,null,function*(){if(!this.adapter)return!1;let t=yield this.adapter.open();return t||ma(`support-widget: requestOpen could not open the panel (source: ${e})`,"warning"),t;});}sendContextualUpdate(e){let t=this.convaiRef?.nativeElement;if(!t||!e)return!1;try{return t.dispatchEvent(new CustomEvent(ip,{detail:{message:e}})),!0;}catch{return!1;}}static{this.ɵfac=function(t){return new(t||n)(I(sr),I(Je));};}static{this.ɵcmp=je({type:n,selectors:[["app-support-widget"]],viewQuery:function(t,r){if(t&1&&dt(Yh,5),t&2){let o;ut(o=ht())&&(r.convaiElement=o.first);}},standalone:!0,features:[He],decls:1,vars:1,consts:[["convai",""],["variant","tiny","transcript","true","text-input","true","dismissible","true","allow-events","true",3,"display",4,"ngIf"],["variant","tiny","transcript","true","text-input","true","dismissible","true","allow-events","true"]],template:function(t,r){t&1&&Re(0,Jh,2,9,"elevenlabs-convai",1),t&2&&V("ngIf",r.shouldRender&&r.mounted());},dependencies:[vt],styles:["[_nghost-%COMP%]{display:contents}"]});}}return n;})();rn();ce();Ze();Wn();mn();go();ce();var rp=50,op=500,sp=300,qc=(()=>{class n{constructor(e){this.ngZone=e,this.currentElement=null,this.animationId=null,this.startDelayTimer=null,this.onMouseOver=t=>{let r=this.findTruncatedElement(t.target);r!==this.currentElement&&(this.stopScroll(),r&&(this.currentElement=r,this.startScroll(r)));},this.onMouseOut=t=>{if(!this.currentElement)return;let r=t.relatedTarget;r&&this.currentElement.contains(r)||t.target!==this.currentElement&&!this.currentElement.contains(t.target)||this.stopScroll();};}init(){this.ngZone.runOutsideAngular(()=>{document.addEventListener("mouseover",this.onMouseOver),document.addEventListener("mouseout",this.onMouseOut);});}findTruncatedElement(e){let t=e;for(let r=0;r<3&&t;r++){if(this.isTruncated(t))return t;t=t.parentElement;}return null;}isTruncated(e){if(e.scrollWidth<=e.clientWidth)return!1;let t=getComputedStyle(e);return t.textOverflow==="ellipsis"&&t.overflow==="hidden"&&t.whiteSpace==="nowrap";}startScroll(e){let t=e.scrollWidth-e.clientWidth;t<=0||(e.style.textOverflow="clip",this.startDelayTimer=setTimeout(()=>{let r=performance.now(),o=t/rp*1e3,s=l=>{let d=l-r,u=Math.min(d/o,1);e.scrollLeft=u*t,u<1&&(this.animationId=requestAnimationFrame(s));};this.animationId=requestAnimationFrame(s);},op));}stopScroll(){this.startDelayTimer&&(clearTimeout(this.startDelayTimer),this.startDelayTimer=null),this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=null),this.currentElement&&(this.scrollBack(this.currentElement),this.currentElement=null);}scrollBack(e){let t=e.scrollLeft;if(t===0){e.style.textOverflow="";return;}let r=performance.now(),o=s=>{let l=s-r,d=Math.min(l/sp,1),u=1-Math.pow(1-d,2);e.scrollLeft=t*(1-u),d<1?requestAnimationFrame(o):e.style.textOverflow="";};requestAnimationFrame(o);}static{this.ɵfac=function(t){return new(t||n)(q(Hn));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();fi();var lp=["sudoBar"],cp=n=>({"app-container-media-library-uploads":n}),dp=(n,i,e,t,r,o)=>({"app-fullscreen-container":n,"app-admin-full-container":i,"app-admin-content-planner-container":e,"app-container-media-library-uploads":t,"app-container":r,"app-container-pages":o}),up=n=>({width:n});
9function hp(n,i){if(n&1){let e=Fe();S(0,"div",9,0)(2,"div",10),te(3),O(),S(4,"div",11)(5,"div",12),pe("click",function(){_e(e);let r=me();return ye(r.stopSudoing());}),te(6,"Stop sudo"),O(),S(7,"div",12),pe("click",function(){_e(e);let r=me();return ye(r.stopSudoingAndGoToUser());}),te(8,"Stop & go to user"),O()()();}if(n&2){let e=me();L(3),bt(" You are sudoing as ",e.sudoingUserName,"");}}function pp(n,i){n&1&&re(0,"navigation",13);}function mp(n,i){n&1&&(S(0,"div",14),re(1,"nav-sidebar"),O());}var Gc=(()=>{class n{get UPLOAD_PROGRESS_BARS_CONTAINER(){return xa;}constructor(e,t,r,o,s,l,d,u,f){this.navigationHelperService=e,this.router=t,this.titleService=r,this.activatedRoute=o,this.elm=s,this.sessionService=l,this.localeService=d,this.textScrollOnHoverService=u,this.platformId=f,this.title="BIGVU",this.sudoingUserName="",this.unsubscribe$=new Ai(),this.setSudoModeBanner=()=>U(this,null,function*(){this.sessionService.isSudoSession()&&(this.sudoingUserName=this.sessionService.getCurrentSudoSessionUser().fullName);}),this.stopSudoing=()=>{this.sessionService.endSudoSession();},this.stopSudoingAndGoToUser=()=>{this.sessionService.endSudoSession(!0);},this.elm.nativeElement.setAttribute("app-version",Ce.version),this.navigationHelperService.setRouterEventsListener(),Ce.withoutAdmin&&console.log("!!!APP WITHOUT ADMIN MODULE!!!");}ngOnInit(){if(Ot(this.platformId)){let e=this.titleService.getTitle();this.router.events.pipe(zs(t=>t instanceof qn),Fs(()=>{this.onAuthenticationPage=this.navigationHelperService.isAuthenticationRoute();let t=this.activatedRoute.firstChild;for(;t.firstChild;)t=t.firstChild;return t.snapshot.data.title?t.snapshot.data.title:e;})).subscribe(t=>{this.titleService.setTitle(t);}),this.setSudoModeBanner(),this.localeService.getLocale(!0),this.textScrollOnHoverService.init();}}ngAfterViewInit(){if(Ot(this.platformId)&&this.sudoBarRef){let e=this.sudoBarRef.nativeElement.offsetHeight;document.documentElement.style.setProperty("--sudo-bar-height",`${e}px`);}}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete();}static{this.ɵfac=function(t){return new(t||n)(I(Kt),I(Ee),I($n),I(Gn),I(Di),I(Gt),I(Vi),I(qc),I(Je));};}static{this.ɵcmp=je({type:n,selectors:[["app-root"]],viewQuery:function(t,r){if(t&1&&dt(lp,5),t&2){let o;ut(o=ht())&&(r.sudoBarRef=o.first);}},standalone:!0,features:[He],decls:11,vars:34,consts:[["sudoBar",""],["class","sudo-mode-bar",4,"ngIf"],["id","navigation-bar","class","navigation-bar-container",4,"ngIf"],["id","main"],["class","navigation-sidebar-wrapper",4,"ngIf"],["id","content",3,"ngClass"],["id","content-wrapper",3,"ngClass","ngStyle"],["name","admin-spinner"],[3,"id"],[1,"sudo-mode-bar"],[1,"sudo-mode-bar__label"],[1,"sudo-mode-bar__actions"],[1,"sudo-mode-bar__action",3,"click"],["id","navigation-bar",1,"navigation-bar-container"],[1,"navigation-sidebar-wrapper"]],template:function(t,r){t&1&&(Re(0,hp,9,1,"div",1)(1,pp,1,0,"navigation",2),S(2,"section",3),Re(3,mp,2,0,"div",4),S(4,"section",5)(5,"div",6)(6,"ngx-spinner",7),re(7,"lottie-loader"),O(),re(8,"router-outlet"),O(),re(9,"div",8),O()(),re(10,"app-support-widget")),t&2&&(V("ngIf",r.sudoingUserName),L(),V("ngIf",!r.navigationHelperService.hideTopBar&&!r.navigationHelperService.showFullscreen()),L(2),V("ngIf",!r.onAuthenticationPage&&!r.navigationHelperService.showFullscreen()&&!r.navigationHelperService.hideNavigationMenu),L(),an("width",r.navigationHelperService.showFullscreen()?"100%":"")("margin",r.navigationHelperService.showFullscreen()?"0":"")("padding",r.navigationHelperService.showFullscreen()||r.navigationHelperService.checkLocationPath("/home")?"0":"")("position",(r.navigationHelperService.showFullscreen(),"unset"))("top",(r.navigationHelperService.showFullscreen(),"unset"))("overflow-y",r.navigationHelperService.showFullscreen()&&!r.navigationHelperService.checkLocationPath("/collaborate/settings")&&!r.navigationHelperService.isAuthenticationRoute()?"unset":"")("background",r.navigationHelperService.checkLocationPath("/profile")?"#f5f6fa":""),V("ngClass",tt(23,cp,r.navigationHelperService.checkLocationPath("/upload")||r.navigationHelperService.checkLocationPath("/media-assets"))),L(),V("ngClass",sa(25,dp,r.navigationHelperService.showFullscreen(),r.navigationHelperService.includePath("/admin/"),r.navigationHelperService.includePath("/admin/superagent-planner"),r.navigationHelperService.includePath("/admin/uploads"),!r.navigationHelperService.showFullscreen(),r.navigationHelperService.checkLocationPath("/pages/templates")||r.navigationHelperService.checkLocationPath("/social-channels")||r.navigationHelperService.checkLocationPath("/experts")||r.navigationHelperService.checkLocationPath("/rendering-queue")||r.navigationHelperService.includePath("/upload")||r.navigationHelperService.includePath("/branding")||r.navigationHelperService.includePath("/media-assets")||r.navigationHelperService.includePath("/collaborate")||r.navigationHelperService.includePath("/boards")||r.navigationHelperService.includePath("/voice-mate")||r.navigationHelperService.includePath("/content-planner")))("ngStyle",tt(32,up,r.navigationHelperService.shouldShowContentFullWidth()?"100%":"85%")),L(4),an("display",r.navigationHelperService.showFullscreen()?"none":""),V("id",r.UPLOAD_PROGRESS_BARS_CONTAINER));},dependencies:[vt,Vc,Ac,gt,mi,pi,hi,ka,zi,Wc],styles:["section#main[_ngcontent-%COMP%]{background-color:#fff;display:flex;justify-content:flex-start;align-items:flex-start;width:100%;height:100%;overflow:hidden;position:relative}.navigation-sidebar-wrapper[_ngcontent-%COMP%]{height:100%}section#content[_ngcontent-%COMP%]{height:100%;width:100%;margin:0 auto;overflow-y:auto}div#content-wrapper[_ngcontent-%COMP%]{width:85%;margin:0 auto}.app-pricing-container[_ngcontent-%COMP%]{padding-right:0;padding-left:0;width:100%}.app-fullscreen-container[_ngcontent-%COMP%]{width:100%!important;padding-right:0;padding-left:0}.app-admin-full-container[_ngcontent-%COMP%]{width:95%!important;padding-left:0;margin:0 auto;overflow-y:scroll;height:100%;margin-right:unset!important;padding-right:20px}.app-admin-content-planner-container[_ngcontent-%COMP%]{width:100%!important;padding-right:0!important;padding-left:0!important}.app-container-pages[_ngcontent-%COMP%]{width:100%!important;padding-right:0;padding-left:0}@media (min-width: 901px){div#content-wrapper[_ngcontent-%COMP%]:has(app-cp-board){height:100%}}.sudo-mode-bar[_ngcontent-%COMP%]{flex-shrink:0;width:100%;background-color:#ff6060;font-size:20px;color:#fff;padding:5px 10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box}.sudo-mode-bar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:5px 10px}.sudo-mode-bar__actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px}.sudo-mode-bar__action[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;white-space:nowrap;padding:4px 12px;border:1px solid rgba(255,255,255,.7);border-radius:4px;transition:background-color .15s ease}.sudo-mode-bar__action[_ngcontent-%COMP%]:hover{background-color:#ffffff26}.app-container-media-library-uploads[_ngcontent-%COMP%]{height:unset!important;overflow-y:hidden!important}@media only screen and (max-width: 767px){div#content-wrapper[_ngcontent-%COMP%]{width:100%}section#content[_ngcontent-%COMP%]{width:100%;padding:0 10px}}"]});}}return n;})();ce();Ze();ce();Ze();mn();var Qc=(()=>{class n{constructor(e,t){this.router=e,this.sessionService=t;}canActivate(e,t){let r=this.sessionService.isSudoSession();return r&&this.router.navigate(["/boards"]).then(()=>{window.location.reload();}),!r;}static{this.ɵfac=function(t){return new(t||n)(q(Ee),q(Gt));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Pt();ce();_o();Ze();Ui();var Kc=(()=>{class n{constructor(e,t,r){this.workspacePermissionService=e,this.router=t,this.loginHelperService=r,this._redirectToHomePage=()=>{this.router.navigate([Ce.globals.firstAppPage]);};}canActivate(e,t){return U(this,null,function*(){try{return!this.loginHelperService.isUserLoggedIn()||!(yield this.workspacePermissionService.canViewBillingAndPricing())?(this._redirectToHomePage(),!1):!0;}catch{return this._redirectToHomePage(),!1;}});}static{this.ɵfac=function(t){return new(t||n)(q(Wi),q(Ee),q(Mt));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();qe();ce();ol();Du();var lt=(()=>{class n{constructor(e,t,r){this.anonymousUserService=e,this.portableRegisterService=t,this.platformId=r;}canActivate(e,t){return U(this,null,function*(){return Vt(this.platformId)?!1:(yield this.anonymousUserService.getAnonymousUser())?(this.portableRegisterService.openPortableRegisterDialog(),!1):!0;});}static{this.ɵfac=function(t){return new(t||n)(q(er),q(Al),q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();oi();ar();Ti();Ol();var Bo=(()=>{class n{constructor(e,t,r,o){this.eventsService=e,this.userHelperService=t,this.planHelperService=r,this.uiActionService=o;}resolve(e,t){return this.eventsService.log(this.eventsService.events.user.logout),this.userHelperService.clearUser(),this.planHelperService.clear(),this.uiActionService.clearCache(),Promise.resolve();}static{this.ɵfac=function(t){return new(t||n)(q(rt),q(yi),q(wt),q(nr));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Pt();ce();Ze();var Zc=(()=>{class n{constructor(e){this.router=e;}resolve(e,t){return t.url.split("/")[1]==="standalone"?window.location.href=`${window.origin}/${Ce.globals.firstAppPage}`:this.router.navigate([Ce.globals.firstAppPage]),Promise.resolve();}static{this.ɵfac=function(t){return new(t||n)(q(Ee));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Pt();ce();Ze();var Xc=(()=>{class n{constructor(e,t){this.route=e,this.router=t;}
9ngOnInit(){this.route.snapshot.url.length>0&&this.route.snapshot.url[0].path==="standalone"?window.location.href=`${window.origin}/${Ce.globals.firstAppPage}`:this.router.navigate([Ce.globals.firstAppPage]);}static{this.ɵfac=function(t){return new(t||n)(I(Gn),I(Ee));};}static{this.ɵcmp=je({type:n,selectors:[["app-not-found"]],standalone:!0,features:[He],decls:2,vars:0,template:function(t,r){t&1&&(S(0,"p"),te(1,"not-found works!"),O());}});}}return n;})();Pt();ce();qe();ce();var Yc=(()=>{class n{constructor(e){this.platformId=e;}canActivate(e,t){return U(this,null,function*(){return!Vt(this.platformId);});}static{this.ɵfac=function(t){return new(t||n)(q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();qe();ce();mu();ce();Ze();ku();var Jc=(()=>{class n{constructor(e,t,r){this.router=e,this.abTestManagerService=t,this.platformId=r;}canActivate(){return U(this,null,function*(){return Vt(this.platformId)?!1:((yield this.abTestManagerService.getAbTestValues(Ua.FIRST_PAGE_WEB))?.value==="ONBOARDING"?this.router.navigate(["/onboarding"]):this.router.navigate(["/welcome"]),!0);});}static{this.ɵfac=function(t){return new(t||n)(q(Ee),q(fl),q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();qe();pn();ir();ce();Dl();rr();Ze();var ed=(()=>{class n{constructor(e,t,r,o){this.creditsService=e,this.premiumPlanService=t,this.router=r,this.platformId=o;}canActivate(e,t){return U(this,null,function*(){if(Vt(this.platformId))return!0;let r=yield this.creditsService.getCreditsUsage();if(!this.creditsService.isFeatureEnabled(r,"fototale")){let s="/boards";return this.router.navigate([s]),this.premiumPlanService.openPricingDialog(ri.AI_MAX,s,s,Tt.fototale),!1;}return!0;});}static{this.ɵfac=function(t){return new(t||n)(q(or),q(_i),q(Ee),q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();var td=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=je({type:n,selectors:[["app-start-page"]],standalone:!0,features:[He],decls:0,vars:0,template:function(t,r){},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});}}return n;})();ce();qe();pn();ir();ce();Dl();rr();Ze();var id=(()=>{class n{constructor(e,t,r,o){this.creditsService=e,this.premiumPlanService=t,this.router=r,this.platformId=o;}canActivate(e,t){return U(this,null,function*(){if(Vt(this.platformId))return!0;let r=yield this.creditsService.getCreditsUsage();if(!this.creditsService.isFeatureEnabled(r,"portraitToVideo")){let s=`/${lr}`;return this.router.navigate([s]),this.premiumPlanService.openPricingDialog(ri.AI_MAX,s,s,Tt.portrait2Video),!1;}return!0;});}static{this.ɵfac=function(t){return new(t||n)(q(or),q(_i),q(Ee),q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();yt();ce();yt();Ze();Ui();fn();var nd=(()=>{class n{constructor(e,t,r,o,s){this.dialogHelperService=e,this.router=t,this.loginHelperService=r,this.redirectionRoutesConfigurationService=o,this.deskHelperService=s;}canActivate(e,t){if(!this.loginHelperService.isUserLoggedIn()){this.loginHelperService.setReturnPage(t.url);let r=this.redirectionRoutesConfigurationService.getRedirectionRoute(t.url);return this.router.navigateByUrl(r),!1;}return this.deskHelperService.getSelectedWorkspaceId()?this.openVoiceDesignDialog():this.router.navigate(["boards"]).then(r=>{r&&this.openVoiceDesignDialog();}),!1;}openVoiceDesignDialog(){let e=new nc(),t=new pt();t.disableClose=!0,t.panelClass="voice-design-dialog",this.dialogHelperService.open(e,ic,t);}static{this.ɵfac=function(t){return new(t||n)(q(_t),q(Ee),q(Mt),q(Gi),q(Qt));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();Ze();Ui();var rd=(()=>{class n{constructor(e,t,r,o){this.router=e,this.loginHelperService=t,this.redirectionRoutesConfigurationService=r,this.cello=o;}canActivate(e,t){if(!this.loginHelperService.isUserLoggedIn()){this.loginHelperService.setReturnPage(t.url);let r=this.redirectionRoutesConfigurationService.getRedirectionRoute(t.url);return this.router.navigateByUrl(r),!1;}return this.router.navigate(["home"]).then(r=>{r&&this.cello.openCelloDialog();}),!1;}static{this.ɵfac=function(t){return new(t||n)(q(Ee),q(Mt),q(Gi),q(qi));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();ce();Ze();Ui();function Pr(n){return(i,e)=>{let t=Ye(Ee),r=Ye(Mt),o=Ye(Gi);if(!r.isUserLoggedIn()){r.setReturnPage(e.url);let s=o.getRedirectionRoute(e.url);return t.navigateByUrl(s),!1;}return t.navigate(["boards"],{queryParams:{action:n}}),!1;};}ce();Ze();function Vo(n){return i=>Ye(Ee).createUrlTree(["/",lr,i.paramMap.get("storyId"),n],{queryParams:i.queryParams});}ce();Ze();var $o="boards",Uo="folderId",od=n=>Ye(Ee).createUrlTree(["/",$o,n.paramMap.get("folderId")],{queryParams:n.queryParams}),sd=n=>{let i=Ye(Ee),e=n.queryParamMap.get(Uo),o=n.queryParams,{[Uo]:t}=o,r=jn(o,[Ds(Uo)]);return i.createUrlTree(e?["/",$o,e]:["/",$o],{queryParams:r});};var vp=[{path:`story/:storyId/${gn.script}`,canActivate:[Vo(gn.script)],children:[]},{path:`story/:storyId/${gn.takes}`,canActivate:[Vo(gn.takes)],children:[]},{path:"folder/:folderId",canActivate:[od],children:[]},{path:"projects",canActivate:[sd],children:[]},{path:"become-an-expert",redirectTo:"profile/experts",pathMatch:"full"},{path:"avatars",canActivate:[Pr("aiAvatars")],children:[]},{path:"texttovideo",redirectTo:"portrait2video",pathMatch:"full"},{path:"voice-design",canActivate:[nd],children:[]},{path:"affiliate",canActivate:[rd],children:[]},{path:"eyecontact",canActivate:[Pr("eyeContact")],children:[]},{path:"autoshorts",canActivate:[Pr("autoShorts")],children:[]}],ad=[{path:"login",loadChildren:()=>import("./chunk-WR73IBOL.js").then(n=>n.routes)},{path:"register",loadComponent:()=>import("./chunk-AMPTKWW5.js").then(n=>n.RegistrationNewComponent),data:{title:"Register"},canActivate:[tc,ec]},{path:"forgot-password",loadComponent:()=>import("./chunk-QBYYUOFG.js").then(n=>n.ForgotPasswordPageComponent),data:{title:"Forgot Password"},canActivate:[lt]},{path:"new-password",loadComponent:()=>import("./chunk-7UZ6WIZR.js").then(n=>n.NewPasswordPageComponent),data:{title:"Create New Password"},resolve:{logout:Bo},providers:[Bo],canActivate:[lt]},{path:"activation",loadComponent:()=>import("./chunk-6XQFNR52.js").then(n=>n.ActivationComponent),data:{title:"Activate"},canActivate:[lt]},{path:"change-email",loadComponent:()=>import("./chunk-XEVN4GDB.js").then(n=>n.ChangeEmailComponent),data:{title:"Change Email"},canActivate:[lt]},{path:"boards",loadChildren:()=>import("./chunk-TJGRZFGR.js").then(n=>n.DeskModule),canActivate:[Ue,Ge,bo],data:{title:"BIGVU"}},{path:"collaborate",loadChildren:()=>import("./chunk-LYYZQUT4.js").then(n=>
9n.CollaborateV2Module),canActivate:[lt,Ue,Xl,Ge],data:{title:"Collaborate"}},{path:"desk-manager",redirectTo:"collaborate"},{path:"pricing",loadChildren:()=>import("./chunk-RBID4NU2.js").then(n=>n.routes),canActivate:[Ue,Kc,Ge],data:{title:"Pricing"}},{path:"plans",redirectTo:"pricing"},{path:"profile",loadChildren:()=>import("./chunk-W7MRHKXT.js").then(n=>n.routes),canActivate:[lt,Ue],data:{title:"My Profile"}},{path:"social-channels",loadChildren:()=>import("./chunk-GL2PKLKK.js").then(n=>n.routes),canActivate:[]},{path:"super-agent",loadChildren:()=>import("./chunk-AGKF4UIE.js").then(n=>n.routes)},{path:"standalone/pricing",loadComponent:()=>import("./chunk-JRSFVME2.js").then(n=>n.PricingStandaloneMinComponent)},{path:"experts",loadComponent:()=>import("./chunk-QUC653JK.js").then(n=>n.ExpertsDashboardComponent),data:{title:"Experts Dashboard"},providers:[Jl],canActivate:[Ue,Ge]},{path:"rendering-queue",loadComponent:()=>import("./chunk-KSG4F4YI.js").then(n=>n.RenderingQueueComponent),canActivate:[Ue,Ge],data:{title:"Tasks Queue"}},{path:"media-assets",loadComponent:()=>import("./chunk-2GMXJYHH.js").then(n=>n.MediaLibraryComponent),canActivate:[Ue,Ge],data:{title:"Media Assets"}},{path:"media-assets/:folderId",loadComponent:()=>import("./chunk-2GMXJYHH.js").then(n=>n.MediaLibraryComponent),canActivate:[Ue,Ge],data:{title:"Media Assets"},runGuardsAndResolvers:"paramsChange"},{path:"upload",loadComponent:()=>import("./chunk-2GMXJYHH.js").then(n=>n.MediaLibraryComponent),canActivate:[Ue,Ge],data:{title:"Upload"}},{path:"upload/:folderId",loadComponent:()=>import("./chunk-2GMXJYHH.js").then(n=>n.MediaLibraryComponent),canActivate:[Ue,Ge],data:{title:"Upload"},runGuardsAndResolvers:"paramsChange"},{path:"branding",loadChildren:()=>import("./chunk-4ZBAITCP.js").then(n=>n.BrandingModule),canActivate:[Ue,Ge],data:{title:"Branding"}},...(Ce.withoutAdmin?[]:[{path:"admin",loadChildren:()=>import("./chunk-BA4LS6JH.js").then(n=>n.routes),canActivate:[lt,Ue,Yl,Qc],data:{title:"Admin Panel"}}]),{path:"export-video",loadChildren:()=>import("./chunk-TMFILX5U.js").then(n=>n.ExportVideoModule),canActivate:[Ue,Ge],data:{title:"Export Video"}},{path:"script-story",loadChildren:()=>import("./chunk-JLL6LMNR.js").then(n=>n.ScriptStoryModule),canActivate:[Ge,bo],data:{title:"Script Story"}},{path:"composer",loadChildren:()=>import("./chunk-6IXBDRXU.js").then(n=>n.ComposerModule),canActivate:[Ue,Ge],data:{title:"Video Maker"}},{path:"beta/composer",redirectTo:"composer"},{path:"fototale",loadChildren:()=>import("./chunk-XWZMFOME.js").then(n=>n.FototaleModule),canActivate:[Ue,Ge,ed],data:{title:"BIGVU"}},{path:"start",component:td,canActivate:[Jc]},{path:"pages",loadChildren:()=>import("./chunk-6XF7FGTX.js").then(n=>n.PagesModule),canActivate:[Ue,Ge]},{path:"get-inspired",loadComponent:()=>import("./chunk-MBUERZRN.js").then(n=>n.GetInspiredPageComponent),canActivate:[Ue]},{path:"appsumo",loadChildren:()=>import("./chunk-OBYYJMZY.js").then(n=>n.routes),canActivate:[lt]},{path:"redeem",loadChildren:()=>import("./chunk-L4CK2L4Y.js").then(n=>n.routes),canActivate:[lt]},{path:"sakiapp",loadChildren:()=>import("./chunk-7PNBHDAY.js").then(n=>n.routes),canActivate:[lt]},{path:"offboarding",loadComponent:()=>import("./chunk-6QUK74XD.js").then(n=>n.OffboardingComponent),canActivate:[lt]},{path:"auth",loadChildren:()=>import("./chunk-H5RJKQHE.js").then(n=>n.routes),canActivate:[lt,Ge]},{path:"congrats",loadComponent:()=>import("./chunk-VYD4OYVJ.js").then(n=>n.PurchaseCongratsComponent),canActivate:[lt]},{path:"offers",loadComponent:()=>import("./chunk-J7TYMLIV.js").then(n=>n.OffersComponent),canActivate:[lt]},{path:"background",loadChildren:()=>import("./chunk-JBNUHH3X.js").then(n=>n.BackgroundEditorModule),canActivate:[]},{path:"download-mp4",loadComponent:()=>import("./chunk-NYWFP6ZE.js").then(n=>n.DownloadHelperComponent),canActivate:[lt]},{path:"course",loadChildren:()=>import("./chunk-IHAVJHMR.js").then(n=>n.routes),canActivate:[]},{path:"organization-invite",loadComponent:()=>import("./chunk-SPRN6HFT.js").then(n=>n.OrganizationInvitationAcceptionComponent),data:{title:"Organization Invitation"},canActivate:[Ue,Ge]},{path:"welcome",loadChildren:()=>import("./chunk-QALJLUZY.js").then(n=>n.routes)},{path:"onboarding/voicemate",loadComponent:()=>import("./chunk-3JICF57F.js").then(n=>n.VoiceMateOnboardingScreenComponent)},{path:"onboarding",loadComponent:()=>import("./chunk-4KQ7OWLS.js").then(n=>n.WelcomeOnboardingScreenComponent)},{path:"ask-for-videos",loadComponent:()=>import("./chunk-ATMNJOSX.js").then(n=>n.AskForVideosComponent),canActivate:[Ue,Ge]},{path:"wordtrim",loadChildren:()=>import("./chunk-ELEVK27F.js").then(n=>n.routes),canActivate:[Ue,Ge,wo],canDeactivate:[wo],data:{title:"Trim"}},{path:"portrait2video",loadChildren:()=>import("./chunk-4S47F6LW.js").then(n=>n.routes),canActivate:[Ue,id]},{path:"portrait-maker",loadChildren:()=>import("./chunk-7WWNBZPY.js").then(n=>n.routes),canActivate:[Ue,Ge],data:{title:"Design Influencer"}},{path:"webhooks",loadChildren:()=>import("./chunk-A7IWWVM2.js").then(n=>n.routes),canActivate:[Ue,Ge],data:{title:"Webhooks"}},{path:"connect",loadChildren:()=>import("./chunk-AOQAGC7M.js").then(n=>n.routes),canActivate:[Ue],data:{title:"Connect"}},{path:"oneshot/setup",loadChildren:()=>import("./chunk-SXEXHE5J.js").then(n=>n.routes),canActivate:[Ue],data:{title:"OneShot"}},{path:"home",loadComponent:()=>import("./chunk-CU4XLAZW.js").then(n=>n.HomepageChatPageComponent),canActivate:[Ue],data:{title:"Home"}},{path:"voice-mate",loadChildren:()=>import("./chunk-SIRH5SG4.js").then(n=>n.routes),canActivate:[Ue,Ge],data:{title:"VoiceMate"}},{path:"content-planner",loadChildren:()=>import("./chunk-TR4CGHZN.js").then(n=>n.routes),canActivate:[Ue,Ge],data:{title:"Content Planner"}},...vp,{path:"**",component:Xc,resolve:{standalone:Zc},canActivate:[Yc],pathMatch:"full"}];Wn();Cu();xu();Ru();hn();ce();ce();Xn();yu();Za();var _p=["switch"],yp=["*"];function wp(n,i){n&1&&(S(0,"div",10),$s(),S(1,"svg",12),re(2,"path",13),O(),S(3,"svg",14),re(4,"path",15),O()());}var bp=new Bs("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Sp={provide:La,useExisting:Hs(()=>ld),multi:!0},Ir=class{constructor(i,e){this.source=i,this.checked=e;}},Tp=0,ld=(()=>{class n{_createChangeEvent(e){return new Ir(this,e);}get buttonId(){return`${this.id||this._uniqueId}-button`;}focus(){this._switchElement.nativeElement.focus();}get checked(){return this._checked;}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck();}get inputId(){return`${this.id||this._uniqueId}-input`;}constructor(e,t,r,o,s,l){this._elementRef=e,this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=s,this._onChange=d=>{},this._onTouched=()=>{}
9,this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new on(),this.toggleChange=new on(),this.tabIndex=parseInt(o)||0,this.color=s.color||"accent",this._noopAnimations=l==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++Tp}`,this.hideIcon=s.hideIcon??!1,this._labelId=this._uniqueId+"-label";}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck();});});}ngOnChanges(e){e.required&&this._validatorOnChange();}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef);}writeValue(e){this.checked=!!e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}validate(e){return this.required&&e.value!==!0?{required:!0}:null;}registerOnValidatorChange(e){this._validatorOnChange=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck();}toggle(){this.checked=!this.checked,this._onChange(this.checked);}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked));}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Ir(this,this.checked)));}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId;}static{this.ɵfac=function(t){return new(t||n)(I(Di),I(qa),I(ua),Ws("tabindex"),I(bp),I(sn,8));};}static{this.ɵcmp=je({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(t,r){if(t&1&&dt(_p,5),t&2){let o;ut(o=ht())&&(r._switchElement=o.first);}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,r){t&2&&(na("id",r.id),Ni("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Li(r.color?"mat-"+r.color:""),ln("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations));},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[Bt.None,"aria-label","ariaLabel"],ariaLabelledby:[Bt.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[Bt.None,"aria-describedby","ariaDescribedby"],required:[Bt.HasDecoratorInputTransform,"required","required",Fi],color:"color",disabled:[Bt.HasDecoratorInputTransform,"disabled","disabled",Fi],disableRipple:[Bt.HasDecoratorInputTransform,"disableRipple","disableRipple",Fi],tabIndex:[Bt.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:ha(e)],checked:[Bt.HasDecoratorInputTransform,"checked","checked",Fi],hideIcon:[Bt.HasDecoratorInputTransform,"hideIcon","hideIcon",Fi]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Bn([Sp,{provide:Ra,useExisting:n,multi:!0}]),Js,Us,He],ngContentSelectors:yp,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,r){if(t&1){let o=Fe();ra(),S(0,"div",1)(1,"button",2,0),pe("click",function(){return _e(o),ye(r._handleClick());}),re(3,"div",3),S(4,"div",4)(5,"div",5)(6,"div",6),re(7,"div",7),O(),S(8,"div",8),re(9,"div",9),O(),Re(10,wp,5,0,"div",10),O()()(),S(11,"label",11),pe("click",function(l){return _e(o),ye(l.stopPropagation());}),oa(12),O()();}if(t&2){let o=Ri(2);V("labelPosition",r.labelPosition),L(),ln("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),V("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled),Ni("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked),L(8),V("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),L(),ea(10,r.hideIcon?-1:10),L(),V("for",r.buttonId),Ni("id",r._labelId);}},dependencies:[Qa,Ka],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}
9.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}
9.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});}}return n;})();var cd=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵmod=so({type:n});}static{this.ɵinj=oo({imports:[ld,fo,fo]});}}return n;})();cl();Pu();Za();wu();ba();Pt();ce();mo();mn();var dd=(()=>{class n{constructor(e,t){this.cookieService=e,this.sessionService=t,this.apiPrefix=Ce.apiServer.host+Ce.apiServer.version,this.allowedUrlPath=[this.apiPrefix,Ce.serverless.host],this.urlsToSkipAuthorization=[`${this.apiPrefix}organization/plan/stripe/session/create`,`${this.apiPrefix}organization/plan/stripe/session/end`,`${this.apiPrefix}mfa/verify`];}intercept(e,t){let r;if(this.sessionService.isSudoSession()?r=this.sessionService.getSudoSessionToken():r=this.cookieService.getCookie("access_token"),e.headers.get("Authorization")&&this.urlsToSkipAuthorization.includes(e.url))return t.handle(e);
9if(r&&e.url!==`${this.apiPrefix}oauth/token`){if(this.allowedUrlPath.some(o=>e.url.includes(o))){let s=(this.cookieService.getCookie("token_type")||"Bearer")+" "+decodeURIComponent(r),l=e.clone({headers:e.headers.set("Authorization",s).set("x-app-version",Ce.appVersion.toString())});return t.handle(l);}else return t.handle(e);}else return t.handle(e);}static{this.ɵfac=function(t){return new(t||n)(q(Bi),q(Gt));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})();ce();var ud=(()=>{class n{constructor(){this.removeMissingOptionalFields=(e,t)=>{if(t)return e.keys().forEach(o=>{e.get(o)===void 0||e.get(o)===null?e=e.delete(o):e=e.set(o,e.get(o));}),e;Object.keys(e).forEach(r=>e[r]===void 0?delete e[r]:"");};}intercept(e,t){let r;e.method==="GET"?r=this.removeMissingOptionalFields(e.params,!0):r=this.removeMissingOptionalFields(e.body,!1);let o=e.method==="GET"?e.clone({params:r}):e.clone({body:r});return t.handle(o);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})();rn();ro();ce();mo();qe();Ze();dn();mn();var hd=(()=>{class n{constructor(e,t,r,o,s){this.cookieService=e,this.location=t,this.router=r,this.adminRequestsService=o,this.sessionService=s,this.inflightAuthRequest=null,this.handleError=(l,d,u)=>{let f=this.location.path().split("?")[0];if((f==="/login"||f==="/welcome"||f==="/register")&&!this.cookieService.getCookie("refresh_token"))return nn(d);if(d.status===400&&!this.cookieService.getCookie("access_token")&&this.cookieService.getCookie("refresh_token"))this.cookieService.eraseCookie("refresh_token"),this.router.navigate(["login"]);else if(d.status===401||!this.cookieService.getCookie("access_token")&&this.cookieService.getCookie("refresh_token"))if(this.sessionService.isSudoSession())this.sessionService.endSudoSession();else{try{this.inflightAuthRequest===null&&(this.inflightAuthRequest=this.adminRequestsService.refreshToken());}catch(y){console.log(y);}return Ls(this.inflightAuthRequest).pipe(js(y=>(this.inflightAuthRequest=null,u.handle(this._replaceToken(l,y.accessToken)))),no(y=>this._hasValidAuthCookies()?nn(()=>y):(this.inflightAuthRequest=null,this.cookieService.clearAll(),this.router.navigate(["login"]),nn(y))));}return nn(d);};}intercept(e,t){return t.handle(e).pipe(no(r=>this.handleError(e,r,t)));}_replaceToken(e,t){return e.clone({setHeaders:{Authorization:"Bearer "+t}});}_hasValidAuthCookies(){return!!this.cookieService.getCookie("refresh_token")&&!!this.cookieService.getCookie("access_token");}static{this.ɵfac=function(t){return new(t||n)(q(Bi),q(ga),q(Ee),q(Wt),q(Gt));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})();var pd=[{provide:Un,useClass:dd,multi:!0},{provide:Un,useClass:ud,multi:!0},{provide:Un,useClass:hd,multi:!0}];Qn();qe();Pt();ce();qe();rn();yt();mo();un();yt();Ze();qe();Xn();fi();Pt();Il();Kn();yt();Tu();Fu();tr();hn();un();ce();Xn();Ou();Ti();yt();vo();dn();cn();oi();Nl();qe();fi();Va();var Cp=["addressElement"],kp=["taxIdElement"],Pp=n=>({width:n}),Ip=n=>({"address-form":n}),Or=function(n){return n.toggle="toggle",n.submit="submit",n.contactSupport="contactSupport",n;}(Or||{}),Mr=class extends qt{},md=(()=>{class n extends vi{constructor(e,t,r,o,s,l,d,u,f,y){super(y),this.formBuilder=e,this.scriptLazyLoadService=t,this.planHelperService=r,this.dialogService=o,this.spinnerService=s,this.requestsService=l,this.notificationService=d,this.eventsService=u,this.supportWidget=f,this.data=y,this.isTaxInfoValid=!1,this.isNonProfit=!1,this.isStripeLoading=!0,this.isTaxIdVisible=!1,this.isAddressComplete=!1,this.isTaxIdComplete=!1,this.EVENT_PATH_BILLING_TAX=this.eventsService.events.billingTax,this.addressData={},this.STRIPE_CSS_RULES={".Input":{border:"1px solid rgba(37, 54, 88, 0.3)"},".Label":{color:"rgba(37, 54, 88, 0.6)"}},this.fetchClientSecret=()=>U(this,null,function*(){let M=yield this.requestsService.createStripeCustomSessionForTax();return this.clientSecret=M.clientSecret,M.clientSecret;});}ngAfterViewInit(){return U(this,null,function*(){try{this.eventsService.log(this.EVENT_PATH_BILLING_TAX.billingTaxFormOpen),yield this.loadStripe(),yield this.initializeStripeForm(),this.isStripeLoading=!1;}catch(e){console.error("Failed to initialize Stripe:",e),this.isStripeLoading=!1,this.notificationService.error("Failed to initialize Contact form"),this.dialogService.close();}});}canSubmitBillingDetails(){return this.isFormValid()||this.isNonProfit;}
9isFormValid(){return this.isAddressComplete&&!0;}onToggleChange(e){this.eventsService.log(this.EVENT_PATH_BILLING_TAX.billingTaxFormClick,{button:Or.toggle,value:e.newState}),this.isNonProfit=e.newState;}onSubmit(){return U(this,null,function*(){if(this.eventsService.log(this.EVENT_PATH_BILLING_TAX.billingTaxFormClick,{button:Or.submit}),this.isNonProfit){this.showNonProfitDialog();return;}if(!this.canSubmitBillingDetails()){this.notificationService.error("Please complete all required fields");return;}if(!this.stripe||!this.stripeAddressElement){console.error("Stripe not properly initialized"),this.notificationService.error("Payment system is not ready. Please try again in a moment.");return;}try{this.spinnerService.spin("payment");let e=yield this.getStripeAddressData(),t={billingEmail:this.addressData.contact,billingDetails:{name:e.name,city:e.city,country:e.country,address:e.address_line1,postalCode:e.postalCode,taxId:this.isTaxIdVisible?e.taxId:void 0,state:e.state}},r=yield this.requestsService.updatePlan(t);this.planHelperService.broadcastOrganizationPlan(r),this.notificationService.success("Your Billing Information has been updated successfully"),this.dialogService.close();}catch(e){console.error("Error processing form:",e),this.notificationService.error("An error occurred while processing your request. Please try again.");}finally{this.spinnerService.stop("payment");}});}getStripeAddressData(){return U(this,null,function*(){if(!this.stripeAddressElement)throw new Error("Stripe address element not initialized");let{value:e}=yield this.stripeAddressElement.getValue(),{value:t}=yield this.stripeTaxIdElement.getValue();return{name:e.name||"",address_line1:e.address?.line1||"",address_line2:e.address?.line2||"",city:e.address?.city||"",state:e.address?.state||"",postalCode:e.address?.postal_code||"",country:e.address?.country||"",taxId:t.value||""};});}loadStripe(){return U(this,null,function*(){try{if(yield this.scriptLazyLoadService.loadScript("https://js.stripe.com/basil/stripe.js"),yield this.waitForStripe(),this.stripe=Stripe(Ce.globals.stripe,{betas:["custom_checkout_tax_id_1"]}),!this.stripe)throw new Error("Failed to initialize Stripe instance");}catch(e){throw console.error("Error loading Stripe:",e),e;}});}waitForStripe(){return U(this,null,function*(){return new Promise((e,t)=>{let o=0,s=()=>{o++,typeof Stripe<"u"?e():o>=50?t(new Error("Stripe failed to load within timeout period")):setTimeout(s,100);};s();});});}initializeStripeForm(){return U(this,null,function*(){try{if(!this.stripe)throw new Error("Stripe not loaded. Cannot initialize form.");let e=this.getStripeOptions(),t=yield this.stripe.initCheckout({fetchClientSecret:this.fetchClientSecret,elementsOptions:e});yield this.loadDefaultAddressData(),yield this.mountAddressElement(t),yield this.mountTaxIdElement(t);}catch(e){throw console.error("Error initializing Stripe form:",e),e.message&&console.error("Error message:",e.message),e.stack&&console.error("Error stack:",e.stack),e;}});}getStripeOptions(){return{appearance:{theme:"flat",rules:this.STRIPE_CSS_RULES,variables:{colorBackground:"#fff"}}};}loadDefaultAddressData(){return U(this,null,function*(){try{let e=yield this.planHelperService.getOrganizationPlansDetails();if(e?.billingDetails){let{address:t,city:r,name:o,postalCode:s,country:l,state:d,taxId:u}=e.billingDetails;this.addressData={address_line1:t,contact:e.billingEmail,city:r,name:o,postalCode:s,country:l,state:d,taxId:u};}}catch(e){console.warn("Could not load default address data:",e),this.addressData={};}});}mountAddressElement(e){return U(this,null,function*(){try{if(!this.addressElementRef?.nativeElement)throw new Error("Address element reference not available");this.stripeAddressElement=e.createBillingAddressElement(),this.stripeAddressElement.mount(this.addressElementRef.nativeElement),this.stripeAddressElement.on("change",this.handleAddressChange.bind(this));}catch(t){throw console.error("Error mounting Stripe address element:",t),t;}});}mountTaxIdElement(e){return U(this,null,function*(){try{if(!this.taxIdElementRef?.nativeElement)throw new Error("Tax ID element reference not available");this.stripeTaxIdElement=e.createTaxIdElement(),this.stripeTaxIdElement.mount(this.taxI
9dElementRef.nativeElement),this.stripeTaxIdElement.on("change",this.handleTaxIdChange.bind(this));}catch(t){throw console.error("Error mounting Stripe tax element:",t),t;}});}handleAddressChange(e){if(this.isAddressComplete=e.complete,this.isTaxInfoValid=e.complete,e.value){let{name:t,address:r}=e.value;this.isAddressComplete=!!(t&&r?.line1&&r?.city&&r?.country&&r?.postal_code)&&e.complete;}}handleTaxIdChange(e){e?.visible&&(this.isTaxIdVisible=!0),e.hasOwnProperty("complete")&&(this.isTaxIdComplete=e.complete),e.value&&(this.isTaxIdComplete=!!(e.value.type&&e.value.value));}showNonProfitDialog(){let e=new dl();e.title="Tax-Exempt Non-Profit?",e.text="We kindly request that you reach out to our support team to provide the required information for obtaining a tax exemption",e.confirmButtonText="Contact Support",e.onSubmit=r=>{this.eventsService.log(this.EVENT_PATH_BILLING_TAX.billingTaxFormClick,{button:Or.contactSupport}),this.onContactSupport();},e.onClose=this.dialogService.close;let t=new pt();t.panelClass="assets-dialog",t.backdropClass="media-dialogs-backdrop",this.dialogService.open(e,ul,t);}onContactSupport(){this.dialogService.closeAll(),this.supportWidget.setSupportReason("Tax-Exempt Non-Profit billing"),this.supportWidget.requestOpen("billing-nonprofit");}static{this.ɵfac=function(t){return new(t||n)(I(Ha),I(El),I(wt),I(_t),I($i),I(Wt),I($t),I(rt),I(sr),I(gi));};}static{this.ɵcmp=je({type:n,selectors:[["app-billing-address-page"]],viewQuery:function(t,r){if(t&1&&(dt(Cp,5),dt(kp,5)),t&2){let o;ut(o=ht())&&(r.addressElementRef=o.first),ut(o=ht())&&(r.taxIdElementRef=o.first);}},standalone:!0,features:[ni,He],decls:23,vars:9,consts:[["addressElement",""],["taxIdElement",""],[1,"billing-details-wrapper",3,"ngStyle"],[1,"tax-address-dialog-title"],[1,"tax-address-dialog-text"],["name","payment"],["id","address-form",3,"ngClass"],["id","address-element"],["id","tax-id-element"],[1,"non-profit-toggle-wrapper"],[1,"horizontal-divider"],[1,"non-profit-toggle"],[3,"onToggle","id","state"],["variant","primary-royal",3,"onClick","disabled"]],template:function(t,r){if(t&1){let o=Fe();S(0,"div",2)(1,"header")(2,"div",3),te(3," Tax Information Required "),O(),S(4,"div",4),te(5," Please provide your details to proceed with BIGVU tax collection. All information is required and will remain confidential. "),O()(),S(6,"ngx-spinner",5),re(7,"lottie-loader"),O(),S(8,"main")(9,"form",6),re(10,"div",7,0)(12,"div",8,1),O(),S(14,"div",9),re(15,"div",10),S(16,"div",11)(17,"div"),te(18,"Are you a tax-exempt non-profit?"),O(),S(19,"toggle-button",12),pe("onToggle",function(l){return _e(o),ye(r.onToggleChange(l));}),O()()()(),S(20,"footer")(21,"ui-button",13),pe("onClick",function(){return _e(o),ye(r.onSubmit());}),te(22," Submit Details "),O()()();}t&2&&(V("ngStyle",tt(5,Pp,r.isTaxIdVisible?"550px":"")),L(9),V("ngClass",tt(7,Ip,r.isTaxIdVisible)),L(10),V("id","non-profit")("state",r.isNonProfit),L(2),V("disabled",!r.canSubmitBillingDetails()));},dependencies:[ji,gt,zi,Ba,ja,Fa,Hl,mi,pi,hi,Fl,Yn],styles:[".billing-details-wrapper[_ngcontent-%COMP%]{padding:20px;height:100%;width:400px;display:flex;flex-direction:column;gap:10px;overflow:scroll}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;justify-content:flex-start}header[_ngcontent-%COMP%] .tax-address-dialog-title[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:20px;color:#253658}header[_ngcontent-%COMP%] .tax-address-dialog-text[_ngcontent-%COMP%]{font-size:16px;font-family:Inter;font-weight:400;color:#253658}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}main[_ngcontent-%COMP%] .additional-fields[_ngcontent-%COMP%]{margin-top:10px;display:flex;flex-direction:column;gap:3px}main[_ngcontent-%COMP%] .additional-fields[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.93rem;color:#25365899}main[_ngcontent-%COMP%] .address-form[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px}main[_ngcontent-%COMP%] .non-profit-toggle-wrapper[_ngcontent-%COMP%]{margin-top:10px}main[_ngcontent-%COMP%] .non-profit-toggle-wrapper[_ngcontent-%COMP%] .non-profit-toggle[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-top:15px;font-size:16px;color:#253658}footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}[_nghost-%COMP%] text-input .text-input-component{background-color:#fff!important;border:1px solid rgba(37,54,88,.3);transition:all .1s;font-size:16px}[_nghost-%COMP%] text-input .mat-mdc-form-field-infix{padding-top:6px!important}@media only screen and (max-width: 767px){main[_ngcontent-%COMP%]{width:90%}}"]});}}return n;})();Ti();Ui();Eu();Pt();ce();var Ar={BILLING_ADDRESS:"BILLING_ADDRESS"},fd=(()=>{class n{constructor(e){if(this.platformId=e,this.dialogHelperService=Ye(_t),this.cookieService=Ye(Bi),this.navigationService=Ye(Ee),this.planService=Ye(wt),this.loginHelperService=Ye(Mt),this.ipLocationService=Ye(pl),this.COOKIE_PREFIX="billing_daily_dialog_shown",this.DEFAULT_EXPIRATION_HOURS=24,this.TAX_DIALOG_COUNTRY_BLACKLIST=["AD","AND","KY"],this.appInitialized=!1,this.showDialog=r=>U(this,null,function*(){let o=r.dialogData||new qt();
9return o.onClose||(o.onClose=()=>{this.dialogHelperService.close();}),yield this.openDialogById(r.dialogId);}),this.openBillingDialog=()=>U(this,null,function*(){if(!(yield this.checkDataForBillingDialog()))return null;let r=new Mr();r.onClose=()=>{this.dialogHelperService.close();},r.onSubmit=()=>U(this,null,function*(){});let o=new pt();return o.disableClose=!0,o.panelClass="common-dialog",this.dialogHelperService.open(r,md,o);}),this.checkDataForBillingDialog=()=>U(this,null,function*(){return this.loginHelperService.isUserLoggedIn()&&!(yield this.isUserCountryInTaxBlacklist())&&(yield this.planService.isMissingTaxDetails())&&(yield this.planService.isStripePlan());}),this.isUserCountryInTaxBlacklist=()=>U(this,null,function*(){try{let r=yield Rs(this.ipLocationService.getLocation());return r?.countryCode?this.TAX_DIALOG_COUNTRY_BLACKLIST.includes(r.countryCode):!1;}catch(r){return console.error("Error fetching user location:",r),!1;}}),this.openDialogById=r=>U(this,null,function*(){switch(r){case Ar.BILLING_ADDRESS:return yield this.openBillingDialog();default:return null;}}),!Ot(this.platformId))return;let t=window.location.hostname;t===Ce.globals.expertsHost||t===Ce.globals.pricingHost||this.navigationService.events.subscribe(r=>{if(r instanceof qn){if(!this.appInitialized){this.appInitialized=!0;return;}this.tryShowDialog({dialogId:Ar.BILLING_ADDRESS});}});}tryShowDialog(e){return U(this,null,function*(){let t=this.getCookieName(e.dialogId);if(this.wasDialogShownToday(t))return null;let r=yield this.showDialog(e);return this.setDialogShownCookie(t,e.cookieExpirationHours),r;});}wasDialogShownToday(e){let t=this.getCookieName(e);return!!this.cookieService.getCookie(t);}getCookieName(e){return`${this.COOKIE_PREFIX}`;}setDialogShownCookie(e,t){let r=t||this.DEFAULT_EXPIRATION_HOURS,o=new Date();o.setTime(o.getTime()+r*60*60*1e3);try{this.cookieService.setCookie(e,"true",o.toISOString());}catch(s){console.error("error setting cookie",s);}}static{this.ɵfac=function(t){return new(t||n)(q(Je));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Lu();function gd(n,i,e,t){let r=new Promise(d=>{let u=[n.initialize()];Promise.all(u).then(()=>d());}),o=new Promise(d=>{t.configureRoutes(),d();}),s=new Promise(d=>{if(Ot(i)){let u=window.location.hostname;u!==Ce.globals.expertsHost&&u!==Ce.globals.pricingHost&&e.tryShowDialog({dialogId:Ar.BILLING_ADDRESS});}d();}),l=new Promise(d=>{Ot(i)&&Ll.forEach(u=>{let f=new Image();f.src=u;}),d();});return()=>Promise.all([r,o,s,l]).then(()=>{});}Su();vu();ba();ce();ce();Wn();pu();ce();ce();function vd(n){return new Ne(3e3,!1);}function Op(){return new Ne(3100,!1);}function Mp(){return new Ne(3101,!1);}function Ap(n){return new Ne(3001,!1);}function xp(n){return new Ne(3003,!1);}function Dp(n){return new Ne(3004,!1);}function Np(n,i){return new Ne(3005,!1);}function Lp(){return new Ne(3006,!1);}function Rp(){return new Ne(3007,!1);}function Fp(n,i){return new Ne(3008,!1);}function zp(n){return new Ne(3002,!1);}function jp(n,i,e,t,r){return new Ne(3010,!1);}function Hp(){return new Ne(3011,!1);}function Bp(){return new Ne(3012,!1);}function Vp(){return new Ne(3200,!1);}function Up(){return new Ne(3202,!1);}function $p(){return new Ne(3013,!1);}function Wp(n){return new Ne(3014,!1);}function qp(n){return new Ne(3015,!1);}function Gp(n){return new Ne(3016,!1);}function Qp(n,i){return new Ne(3404,!1);}function Kp(n){return new Ne(3502,!1);}function Zp(n){return new Ne(3503,!1);}function Xp(){return new Ne(3300,!1);}function Yp(n){return new Ne(3504,!1);}function Jp(n){return new Ne(3301,!1);}function em(n,i){return new Ne(3302,!1);}function tm(n){return new Ne(3303,!1);}function im(n,i){return new Ne(3400,!1);}function nm(n){return new Ne(3401,!1);}function rm(n){return new Ne(3402,!1);}function om(n,i){return new Ne(3505,!1);}function wi(n){switch(n.length){case 0:return new Hi();case 1:return n[0];default:return new co(n);}}function Ad(n,i,e=new Map(),t=new Map()){let r=[],o=[],s=-1,l=null;if(i.forEach(d=>{let u=d.get("offset"),f=u==s,y=f&&l||new Map();d.forEach((M,R)=>{let N=R,$=M;if(R!=="offset")switch(N=n.normalizePropertyName(N,r),$){case Zn:$=e.get(R);break;case Ut:$=t.get(R);break;default:$=n.normalizeStyleValue(R,N,$,r);break;}y.set(N,$);}),f||o.push(y),l=y,s=u;}),r.length)throw Kp(r);return o;}function ps(n,i,e,t){switch(i){case"start":n.onStart(()=>t(e&&Wo(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Wo(e,"done",n)));break;
9case"destroy":n.onDestroy(()=>t(e&&Wo(e,"destroy",n)));break;}}function Wo(n,i,e){let t=e.totalTime,r=!!e.disabled,o=ms(n.element,n.triggerName,n.fromState,n.toState,i||n.phaseName,t??n.totalTime,r),s=n._data;return s!=null&&(o._data=s),o;}function ms(n,i,e,t,r="",o=0,s){return{element:n,triggerName:i,fromState:e,toState:t,phaseName:r,totalTime:o,disabled:!!s};}function Ct(n,i,e){let t=n.get(i);return t||n.set(i,t=e),t;}function _d(n){let i=n.indexOf(":"),e=n.substring(1,i),t=n.slice(i+1);return[e,t];}var sm=typeof document>"u"?null:document.documentElement;function fs(n){let i=n.parentNode||n.host||null;return i===sm?null:i;}function am(n){return n.substring(1,6)=="ebkit";}var Ci=null,yd=!1;function lm(n){Ci||(Ci=cm()||{},yd=Ci.style?"WebkitAppearance"in Ci.style:!1);let i=!0;return Ci.style&&!am(n)&&(i=n in Ci.style,!i&&yd&&(i="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ci.style)),i;}function cm(){return typeof document<"u"?document.body:null;}function xd(n,i){for(;i;){if(i===n)return!0;i=fs(i);}return!1;}function Dd(n,i,e){if(e)return Array.from(n.querySelectorAll(i));let t=n.querySelector(i);return t?[t]:[];}var gs=(()=>{class n{validateStyleProperty(e){return lm(e);}matchesElement(e,t){return!1;}containsElement(e,t){return xd(e,t);}getParentElement(e){return fs(e);}query(e,t,r){return Dd(e,t,r);}computeStyle(e,t,r){return r||"";}animate(e,t,r,o,s,l=[],d){return new Hi(r,o);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})(),Ii=class{static{this.NOOP=new gs();}},Oi=class{};var dm=1e3,Nd="{{",um="}}",Ld="ng-enter",Xo="ng-leave",xr="ng-trigger",Fr=".ng-trigger",wd="ng-animating",Yo=".ng-animating";function di(n){if(typeof n=="number")return n;let i=n.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Jo(parseFloat(i[1]),i[2]);}function Jo(n,i){switch(i){case"s":return n*dm;default:return n;}}function zr(n,i,e){return n.hasOwnProperty("duration")?n:hm(n,i,e);}function hm(n,i,e){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof n=="string"){let l=n.match(t);if(l===null)return i.push(vd(n)),{duration:0,delay:0,easing:""};r=Jo(parseFloat(l[1]),l[2]);let d=l[3];d!=null&&(o=Jo(parseFloat(d),l[4]));let u=l[5];u&&(s=u);}else r=n;if(!e){let l=!1,d=i.length;r<0&&(i.push(Op()),l=!0),o<0&&(i.push(Mp()),l=!0),l&&i.splice(d,0,vd(n));}return{duration:r,delay:o,easing:s};}function pm(n){return n.length?n[0]instanceof Map?n:n.map(i=>new Map(Object.entries(i))):[];}function Xt(n,i,e){i.forEach((t,r)=>{let o=vs(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=t;});}function Pi(n,i){i.forEach((e,t)=>{let r=vs(t);n.style[r]="";});}function En(n){return Array.isArray(n)?n.length==1?n[0]:Da(n):n;}function mm(n,i,e){let t=i.params||{},r=Rd(n);r.length&&r.forEach(o=>{t.hasOwnProperty(o)||e.push(Ap(o));});}var es=new RegExp(`${Nd}\\s*(.+?)\\s*${um}`,"g");function Rd(n){let i=[];if(typeof n=="string"){let e;for(;e=es.exec(n);)i.push(e[1]);es.lastIndex=0;}return i;}function kn(n,i,e){let t=`${n}`,r=t.replace(es,(o,s)=>{let l=i[s];return l==null&&(e.push(xp(s)),l=""),l.toString();});return r==t?n:r;}var fm=/-+([a-z0-9])/g;function vs(n){return n.replace(fm,(...i)=>i[1].toUpperCase());}function gm(n,i){return n===0||i===0;}function vm(n,i,e){if(e.size&&i.length){let t=i[0],r=[];if(e.forEach((o,s)=>{t.has(s)||r.push(s),t.set(s,o);}),r.length)for(let o=1;o<i.length;o++){let s=i[o];r.forEach(l=>s.set(l,_s(n,l)));}}return i;}function Et(n,i,e){switch(i.type){case xe.Trigger:return n.visitTrigger(i,e);case xe.State:return n.visitState(i,e);case xe.Transition:return n.visitTransition(i,e);case xe.Sequence:return n.visitSequence(i,e);case xe.Group:return n.visitGroup(i,e);case xe.Animate:return n.visitAnimate(i,e);case xe.Keyframes:return n.visitKeyframes(i,e);case xe.Style:return n.visitStyle(i,e);case xe.Reference:return n.visitReference(i,e);case xe.AnimateChild:return n.visitAnimateChild(i,e);case xe.AnimateRef:return n.visitAnimateRef(i,e);case xe.Query:return n.visitQuery(i,e);case xe.Stagger:return n.visitStagger(i,e);default:throw Dp(i.type);}}function _s(n,i){return window.getComputedStyle(n)[i];}var _m=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"]),jr=class extends Oi{normalizePropertyName(i,e){return vs(i);}normalizeStyleValue(i,e,t,r){let o="",s=t.toString().trim();if(_m.has(e)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&l[1].length==0&&r.push(Np(i,t));}return s+o;}};var Hr="*";function ym(n,i){let e=[];
9return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>wm(t,e,i)):e.push(n),e;}function wm(n,i,e){if(n[0]==":"){let d=bm(n,e);if(typeof d=="function"){i.push(d);return;}n=d;}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return e.push(qp(n)),i;let r=t[1],o=t[2],s=t[3];i.push(bd(r,s));let l=r==Hr&&s==Hr;o[0]=="<"&&!l&&i.push(bd(s,r));}function bm(n,i){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return i.push(Gp(n)),"* => *";}}var Dr=new Set(["true","1"]),Nr=new Set(["false","0"]);function bd(n,i){let e=Dr.has(n)||Nr.has(n),t=Dr.has(i)||Nr.has(i);return(r,o)=>{let s=n==Hr||n==r,l=i==Hr||i==o;return!s&&e&&typeof r=="boolean"&&(s=r?Dr.has(n):Nr.has(n)),!l&&t&&typeof o=="boolean"&&(l=o?Dr.has(i):Nr.has(i)),s&&l;};}var Fd=":self",Sm=new RegExp(`s*${Fd}s*,?`,"g");function zd(n,i,e,t){return new ts(n).build(i,e,t);}var Sd="",ts=class{constructor(i){this._driver=i;}build(i,e,t){let r=new is(e);return this._resetContextStyleTimingState(r),Et(this,En(i),r);}_resetContextStyleTimingState(i){i.currentQuerySelector=Sd,i.collectedStyles=new Map(),i.collectedStyles.set(Sd,new Map()),i.currentTime=0;}visitTrigger(i,e){let t=e.queryCount=0,r=e.depCount=0,o=[],s=[];return i.name.charAt(0)=="@"&&e.errors.push(Lp()),i.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),l.type==xe.State){let d=l,u=d.name;u.toString().split(/\s*,\s*/).forEach(f=>{d.name=f,o.push(this.visitState(d,e));}),d.name=u;}else if(l.type==xe.Transition){let d=this.visitTransition(l,e);t+=d.queryCount,r+=d.depCount,s.push(d);}else e.errors.push(Rp());}),{type:xe.Trigger,name:i.name,states:o,transitions:s,queryCount:t,depCount:r,options:null};}visitState(i,e){let t=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(t.containsDynamicStyles){let o=new Set(),s=r||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(d=>{Rd(d).forEach(u=>{s.hasOwnProperty(u)||o.add(u);});});}),o.size&&e.errors.push(Fp(i.name,[...o.values()]));}return{type:xe.State,name:i.name,style:t,options:r?{params:r}:null};}visitTransition(i,e){e.queryCount=0,e.depCount=0;let t=Et(this,En(i.animation),e),r=ym(i.expr,e.errors);return{type:xe.Transition,matchers:r,animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ki(i.options)};}visitSequence(i,e){return{type:xe.Sequence,steps:i.steps.map(t=>Et(this,t,e)),options:ki(i.options)};}visitGroup(i,e){let t=e.currentTime,r=0,o=i.steps.map(s=>{e.currentTime=t;let l=Et(this,s,e);return r=Math.max(r,e.currentTime),l;});return e.currentTime=r,{type:xe.Group,steps:o,options:ki(i.options)};}visitAnimate(i,e){let t=km(i.timings,e.errors);e.currentAnimateTimings=t;let r,o=i.styles?i.styles:lo({});if(o.type==xe.Keyframes)r=this.visitKeyframes(o,e);else{let s=i.styles,l=!1;if(!s){l=!0;let u={};t.easing&&(u.easing=t.easing),s=lo(u);}e.currentTime+=t.duration+t.delay;let d=this.visitStyle(s,e);d.isEmptyStep=l,r=d;}return e.currentAnimateTimings=null,{type:xe.Animate,timings:t,style:r,options:null};}visitStyle(i,e){let t=this._makeStyleAst(i,e);return this._validateStyleAst(t,e),t;}_makeStyleAst(i,e){let t=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let l of r)typeof l=="string"?l===Ut?t.push(l):e.errors.push(zp(l)):t.push(new Map(Object.entries(l)));let o=!1,s=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(s=l.get("easing"),l.delete("easing")),!o)){for(let d of l.values())if(d.toString().indexOf(Nd)>=0){o=!0;break;}}}),{type:xe.Style,styles:t,easing:s,offset:i.offset,containsDynamicStyles:o,options:null};}_validateStyleAst(i,e){let t=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;t&&o>0&&(o-=t.duration+t.delay),i.styles.forEach(s=>
9{typeof s!="string"&&s.forEach((l,d)=>{let u=e.collectedStyles.get(e.currentQuerySelector),f=u.get(d),y=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push(jp(d,f.startTime,f.endTime,o,r)),y=!1),o=f.startTime),y&&u.set(d,{startTime:o,endTime:r}),e.options&&mm(l,e.options,e.errors);});});}visitKeyframes(i,e){let t={type:xe.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Hp()),t;let r=1,o=0,s=[],l=!1,d=!1,u=0,f=i.steps.map(Z=>{let j=this._makeStyleAst(Z,e),v=j.offset!=null?j.offset:Cm(j.styles),T=0;return v!=null&&(o++,T=j.offset=v),d=d||T<0||T>1,l=l||T<u,u=T,s.push(T),j;});d&&e.errors.push(Bp()),l&&e.errors.push(Vp());let y=i.steps.length,M=0;o>0&&o<y?e.errors.push(Up()):o==0&&(M=r/(y-1));let R=y-1,N=e.currentTime,$=e.currentAnimateTimings,fe=$.duration;return f.forEach((Z,j)=>{let v=M>0?j==R?1:M*j:s[j],T=v*fe;e.currentTime=N+$.delay+T,$.duration=T,this._validateStyleAst(Z,e),Z.offset=v,t.styles.push(Z);}),t;}visitReference(i,e){return{type:xe.Reference,animation:Et(this,En(i.animation),e),options:ki(i.options)};}visitAnimateChild(i,e){return e.depCount++,{type:xe.AnimateChild,options:ki(i.options)};}visitAnimateRef(i,e){return{type:xe.AnimateRef,animation:this.visitReference(i.animation,e),options:ki(i.options)};}visitQuery(i,e){let t=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,s]=Tm(i.selector);e.currentQuerySelector=t.length?t+" "+o:o,Ct(e.collectedStyles,e.currentQuerySelector,new Map());let l=Et(this,En(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:xe.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:l,originalSelector:i.selector,options:ki(i.options)};}visitStagger(i,e){e.currentQuery||e.errors.push($p());let t=i.timings==="full"?{duration:0,delay:0,easing:"full"}:zr(i.timings,e.errors,!0);return{type:xe.Stagger,animation:Et(this,En(i.animation),e),timings:t,options:null};}};function Tm(n){let i=!!n.split(/\s*,\s*/).find(e=>e==Fd);return i&&(n=n.replace(Sm,"")),n=n.replace(/@\*/g,Fr).replace(/@\w+/g,e=>Fr+"-"+e.slice(1)).replace(/:animating/g,Yo),[n,i];}function Em(n){return n?ii({},n):null;}var is=class{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map(),this.options=null,this.unsupportedCSSPropertiesFound=new Set();}};function Cm(n){if(typeof n=="string")return null;let i=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let t=e;i=parseFloat(t.get("offset")),t.delete("offset");}});else if(n instanceof Map&&n.has("offset")){let e=n;i=parseFloat(e.get("offset")),e.delete("offset");}return i;}function km(n,i){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=zr(n,i).duration;return qo(o,0,"");}let e=n;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=qo(0,0,"");return o.dynamic=!0,o.strValue=e,o;}let r=zr(e,i);return qo(r.duration,r.delay,r.easing);}function ki(n){return n?(n=ii({},n),n.params&&(n.params=Em(n.params))):n={},n;}function qo(n,i,e){return{duration:n,delay:i,easing:e};}function ys(n,i,e,t,r,o,s=null,l=!1){return{type:1,element:n,keyframes:i,preStyleProps:e,postStyleProps:t,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:l};}var Pn=class{constructor(){this._map=new Map();}get(i){return this._map.get(i)||[];}append(i,e){let t=this._map.get(i);t||this._map.set(i,t=[]),t.push(...e);}has(i){return this._map.has(i);}clear(){this._map.clear();}},Pm=1,Im=":enter",Om=new RegExp(Im,"g"),Mm=":leave",Am=new RegExp(Mm,"g");function jd(n,i,e,t,r,o=new Map(),s=new Map(),l,d,u=[]){return new ns().buildKeyframes(n,i,e,t,r,o,s,l,d,u);}
9var ns=class{buildKeyframes(i,e,t,r,o,s,l,d,u,f=[]){u=u||new Pn();let y=new rs(i,e,u,r,o,f,[]);y.options=d;let M=d.delay?di(d.delay):0;y.currentTimeline.delayNextStep(M),y.currentTimeline.setStyles([s],null,y.errors,d),Et(this,t,y);let R=y.timelines.filter(N=>N.containsAnimation());if(R.length&&l.size){let N;for(let $=R.length-1;$>=0;$--){let fe=R[$];if(fe.element===e){N=fe;break;}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([l],null,y.errors,d);}return R.length?R.map(N=>N.buildKeyframes()):[ys(e,[],[],[],0,M,"",!1)];}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let t=e.subInstructions.get(e.element);if(t){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(t,r,r.options);o!=s&&e.transformIntoNewTimeline(s);}e.previousNode=i;}visitAnimateRef(i,e){let t=e.createSubContext(i.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,t),this.visitReference(i.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=i;}_applyAnimationRefDelays(i,e,t){for(let r of i){let o=r?.delay;if(o){let s=typeof o=="number"?o:di(kn(o,r?.params??{},e.errors));t.delayNextStep(s);}}}_visitSubInstructions(i,e,t){let o=e.currentTimeline.currentTime,s=t.duration!=null?di(t.duration):null,l=t.delay!=null?di(t.delay):null;return s!==0&&i.forEach(d=>{let u=e.appendInstructionToTimeline(d,s,l);o=Math.max(o,u.duration+u.delay);}),o;}visitReference(i,e){e.updateOptions(i.options,!0),Et(this,i.animation,e),e.previousNode=i;}visitSequence(i,e){let t=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==xe.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Br);let s=di(o.delay);r.delayNextStep(s);}i.steps.length&&(i.steps.forEach(s=>Et(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=i;}visitGroup(i,e){let t=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?di(i.options.delay):0;i.steps.forEach(s=>{let l=e.createSubContext(i.options);o&&l.delayNextStep(o),Et(this,s,l),r=Math.max(r,l.currentTimeline.currentTime),t.push(l.currentTimeline);}),t.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=i;}_visitTiming(i,e){if(i.dynamic){let t=i.strValue,r=e.params?kn(t,e.params,e.errors):t;return zr(r,e.errors);}else return{duration:i.duration,delay:i.delay,easing:i.easing};}visitAnimate(i,e){let t=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());let o=i.style;o.type==xe.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(t.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i;}visitStyle(i,e){let t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?t.applyEmptyStep(o):t.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i;}visitKeyframes(i,e){let t=e.currentAnimateTimings,r=e.currentTimeline.duration,o=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,i.styles.forEach(d=>{let u=d.offset||0;l.forwardTime(u*o),l.setStyles(d.styles,d.easing,e.errors,e.options),l.applyStylesToKeyframe();}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(r+o),e.previousNode=i;}visitQuery(i,e){let t=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?di(r.delay):0;o&&(e.previousNode.type===xe.Style||t==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Br);let s=t,l=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=l.length;let d=null;l.forEach((u,f)=>{e.currentQueryIndex=f;let y=e.createSubContext(i.options,u);o&&y.delayNextStep(o),u===e.element&&(d=y.currentTimeline),Et(this,i.animation,y),y.currentTimeline.applyStylesToKeyframe();let M=y.currentTimeline.currentTime;s=Math.max(s,M);}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i;}
9visitStagger(i,e){let t=e.parentContext,r=e.currentTimeline,o=i.timings,s=Math.abs(o.duration),l=s*(e.currentQueryTotal-1),d=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=l-d;break;case"full":d=t.currentStaggerTime;break;}let f=e.currentTimeline;d&&f.delayNextStep(d);let y=f.currentTime;Et(this,i.animation,e),e.previousNode=i,t.currentStaggerTime=r.currentTime-y+(r.startTime-t.currentTimeline.startTime);}},Br={},rs=class n{constructor(i,e,t,r,o,s,l,d){this._driver=i,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Br,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Vr(this._driver,e,0),l.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(i,e){if(!i)return;let t=i,r=this.options;t.duration!=null&&(r.duration=di(t.duration)),t.delay!=null&&(r.delay=di(t.delay));let o=t.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(l=>{(!e||!s.hasOwnProperty(l))&&(s[l]=kn(o[l],s,this.errors));});}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let t=i.params={};Object.keys(e).forEach(r=>{t[r]=e[r];});}}return i;}createSubContext(i=null,e,t){let r=e||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o;}transformIntoNewTimeline(i){return this.previousNode=Br,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(i,e,t){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(t??0)+i.delay,easing:""},o=new os(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r;}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i);}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i);}invokeQuery(i,e,t,r,o,s){let l=[];if(r&&l.push(this.element),i.length>0){i=i.replace(Om,"."+this._enterClassName),i=i.replace(Am,"."+this._leaveClassName);let d=t!=1,u=this._driver.query(this.element,i,d);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),l.push(...u);}return!o&&l.length==0&&s.push(Wp(e)),l;}},Vr=class n{constructor(i,e,t,r){this._driver=i,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map(),this._currentKeyframe=new Map(),this._keyframes=new Map(),this._styleSummary=new Map(),this._localTimelineStyles=new Map(),this._pendingStyles=new Map(),this._backFill=new Map(),this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i;}fork(i,e){return this.applyStylesToKeyframe(),new n(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup);}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=ne
9w Map(),this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=Pm,this._loadKeyframe();}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe();}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Ut),this._currentKeyframe.set(e,Ut);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(i,e,t,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=xm(i,this._globalTimelineStyles);for(let[l,d]of s){let u=kn(d,o,t);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Ut),this._updateStyle(l,u);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i);}));}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i;}
9mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,t)=>{let r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value);});}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set(),e=new Set(),t=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,d)=>{let u=new Map([...this._backFill,...l]);u.forEach((f,y)=>{f===Zn?i.add(y):f===Ut&&e.add(y);}),t||u.set("offset",d/this.duration),r.push(u);});let o=[...i.values()],s=[...e.values()];if(t){let l=r[0],d=new Map(l);l.set("offset",0),d.set("offset",1),r=[l,d];}return ys(this.element,r,o,s,this.duration,this.startTime,this.easing,!1);}},os=class extends Vr{constructor(i,e,t,r,o,s,l=!1){super(i,e,s.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:s.duration,delay:s.delay,easing:s.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let i=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=t+e,l=e/s,d=new Map(i[0]);d.set("offset",0),o.push(d);let u=new Map(i[0]);u.set("offset",Td(l)),o.push(u);let f=i.length-1;for(let y=1;y<=f;y++){let M=new Map(i[y]),R=M.get("offset"),N=e+R*t;M.set("offset",Td(N/s)),o.push(M);}t=s,e=0,r="",i=o;}return ys(this.element,i,this.preStyleProps,this.postStyleProps,t,e,r,!0);}};function Td(n,i=3){let e=Math.pow(10,i-1);return Math.round(n*e)/e;}function xm(n,i){let e=new Map(),t;return n.forEach(r=>{if(r==="*"){t??=i.keys();for(let o of t)e.set(o,Ut);}else for(let[o,s]of r)e.set(o,s);}),e;}function Ed(n,i,e,t,r,o,s,l,d,u,f,y,M){return{type:0,element:n,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:t,toStyles:s,timelines:l,queriedElements:d,preStyleProps:u,postStyleProps:f,totalTime:y,errors:M};}var Go={},Ur=class{constructor(i,e,t){this._triggerName=i,this.ast=e,this._stateStyles=t;}match(i,e,t,r){return Dm(this.ast.matchers,i,e,t,r);}buildStyles(i,e,t){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,t):new Map();}build(i,e,t,r,o,s,l,d,u,f){let y=[],M=this.ast.options&&this.ast.options.params||Go,R=l&&l.params||Go,N=this.buildStyles(t,R,y),$=d&&d.params||Go,fe=this.buildStyles(r,$,y),Z=new Set(),j=new Map(),v=new Map(),T=r==="void",J={params:Hd($,M),delay:this.ast.options?.delay},ue=f?[]:jd(i,e,this.ast.animation,o,s,N,fe,J,u,y),de=0;return ue.forEach(z=>{de=Math.max(z.duration+z.delay,de);}),y.length?Ed(e,this._triggerName,t,r,T,N,fe,[],[],j,v,de,y):(ue.forEach(z=>{let Ie=z.element,ee=Ct(j,Ie,new Set());z.preStyleProps.forEach(G=>ee.add(G));let ie=Ct(v,Ie,new Set());z.postStyleProps.forEach(G=>ie.add(G)),Ie!==e&&Z.add(Ie);}),Ed(e,this._triggerName,t,r,T,N,fe,ue,[...Z.values()],j,v,de));}};function Dm(n,i,e,t,r){return n.some(o=>o(i,e,t,r));}function Hd(n,i){let e=ii({},i);return Object.entries(n).forEach(([t,r])=>{r!=null&&(e[t]=r);}),e;}var ss=class{constructor(i,e,t){this.styles=i,this.defaultParams=e,this.normalizer=t;}buildStyles(i,e){let t=new Map(),r=Hd(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,l)=>{s&&(s=kn(s,r,e));let d=this.normalizer.normalizePropertyName(l,e);s=this.normalizer.normalizeStyleValue(l,d,s,e),t.set(l,s);});}),t;}};function Nm(n,i,e){return new as(n,i,e);}var as=class{constructor(i,e,t){this.name=i,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map(),e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new ss(r.style,o,t));}),Cd(this.states,"true","1"),Cd(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Ur(i,r,this.states));}),this.fallbackTransition=Lm(i,this.states,this._normalizer);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(i,e,t,r){return this.transitionFactories.find(s=>s.match(i,e,t,r))||null;}matchStyles(i,e,t){return this.fallbackTransition.buildStyles(i,e,t);}};function Lm(n,i,e){let t=[(s,l)=>!0],r={type:xe.Sequence,steps:[],options:null},o={type:xe.Transition,animation:r,matchers:t,options:null,queryCount:0,depCount:0};return new Ur(n,o,i);}function Cd(n,i,e){n.has(i)?n.has(e)||n.set(e,n.get(i)):n.has(e)&&n.set(i,n.get(e));}
9var Rm=new Pn(),ls=class{constructor(i,e,t){this.bodyNode=i,this._driver=e,this._normalizer=t,this._animations=new Map(),this._playersById=new Map(),this.players=[];}register(i,e){let t=[],r=[],o=zd(this._driver,e,t,r);if(t.length)throw Zp(t);r.length&&void 0,this._animations.set(i,o);}_buildPlayer(i,e,t){let r=i.element,o=Ad(this._normalizer,i.keyframes,e,t);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0);}create(i,e,t={}){let r=[],o=this._animations.get(i),s,l=new Map();if(o?(s=jd(this._driver,e,o,Ld,Xo,new Map(),new Map(),t,Rm,r),s.forEach(f=>{let y=Ct(l,f.element,new Map());f.postStyleProps.forEach(M=>y.set(M,null));})):(r.push(Xp()),s=[]),r.length)throw Yp(r);l.forEach((f,y)=>{f.forEach((M,R)=>{f.set(R,this._driver.computeStyle(y,R,Ut));});});let d=s.map(f=>{let y=l.get(f.element);return this._buildPlayer(f,new Map(),y);}),u=wi(d);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u;}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let t=this.players.indexOf(e);t>=0&&this.players.splice(t,1);}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw Jp(i);return e;}listen(i,e,t,r){let o=ms(e,"","","");return ps(this._getPlayer(i),t,o,r),()=>{};}command(i,e,t,r){if(t=="register"){this.register(i,r[0]);return;}if(t=="create"){let s=r[0]||{};this.create(i,e,s);return;}let o=this._getPlayer(i);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i);break;}}},kd="ng-animate-queued",Fm=".ng-animate-queued",Qo="ng-animate-disabled",zm=".ng-animate-disabled",jm="ng-star-inserted",Hm=".ng-star-inserted",Bm=[],Bd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ft="__ng_removed",In=class{get params(){return this.options.params;}constructor(i,e=""){this.namespaceId=e;let t=i&&i.hasOwnProperty("value"),r=t?i.value:i;if(this.value=$m(r),t){let o=i,{value:s}=o,l=jn(o,["value"]);this.options=l;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(i){let e=i.params;if(e){let t=this.options.params;Object.keys(e).forEach(r=>{t[r]==null&&(t[r]=e[r]);});}}},Cn="void",Ko=new In(Cn),cs=class{constructor(i,e,t){this.id=i,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map(),this._queue=[],this._elementListeners=new Map(),this._hostClassName="ng-tns-"
9+i,Dt(e,this._hostClassName);}listen(i,e,t,r){if(!this._triggers.has(e))throw em(t,e);if(t==null||t.length==0)throw tm(e);if(!Wm(t))throw im(t,e);let o=Ct(this._elementListeners,i,[]),s={name:e,phase:t,callback:r};o.push(s);let l=Ct(this._engine.statesByElement,i,new Map());return l.has(e)||(Dt(i,xr),Dt(i,xr+"-"+e),l.set(e,Ko)),()=>{this._engine.afterFlush(()=>{let d=o.indexOf(s);d>=0&&o.splice(d,1),this._triggers.has(e)||l.delete(e);});};}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0);}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw nm(i);return e;}trigger(i,e,t,r=!0){let o=this._getTrigger(e),s=new On(this.id,e,i),l=this._engine.statesByElement.get(i);l||(Dt(i,xr),Dt(i,xr+"-"+e),this._engine.statesByElement.set(i,l=new Map()));let d=l.get(e),u=new In(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&d&&u.absorbOptions(d.options),l.set(e,u),d||(d=Ko),!(u.value===Cn)&&d.value===u.value){if(!Qm(d.params,u.params)){let $=[],fe=o.matchStyles(d.value,d.params,$),Z=o.matchStyles(u.value,u.params,$);$.length?this._engine.reportError($):this._engine.afterFlush(()=>{Pi(i,fe),Xt(i,Z);});}return;}let M=Ct(this._engine.playersByElement,i,[]);M.forEach($=>{$.namespaceId==this.id&&$.triggerName==e&&$.queued&&$.destroy();});let R=o.matchTransition(d.value,u.value,i,u.params),N=!1;if(!R){if(!r)return;R=o.fallbackTransition,N=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:R,fromState:d,toState:u,player:s,isFallbackTransition:N}),N||(Dt(i,kd),s.onStart(()=>{Xi(i,kd);})),s.onDone(()=>{let $=this.players.indexOf(s);$>=0&&this.players.splice($,1);let fe=this._engine.playersByElement.get(i);if(fe){let Z=fe.indexOf(s);Z>=0&&fe.splice(Z,1);}}),this.players.push(s),M.push(s),s;}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=i));});}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(i));}_signalRemovalForInnerTriggers(i,e){let t=this._engine.driver.query(i,Fr,!0);t.forEach(r=>{if(r[Ft])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r);}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)));}triggerLeaveAnimation(i,e,t,r){let o=this._engine.statesByElement.get(i),s=new Map();if(o){let l=[];if(o.forEach((d,u)=>{if(s.set(u,d.value),this._triggers.has(u)){let f=this.trigger(i,u,Cn,r);f&&l.push(f);}}),l.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,s),t&&wi(l).onDone(()=>this._engine.processLeaveNode(i)),!0;}return!1;}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),t=this._engine.statesByElement.get(i);if(e&&t){let r=new Set();e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let d=this._triggers.get(s).fallbackTransition,u=t.get(s)||Ko,f=new In(Cn),y=new On(this.id,s,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:s,transition:d,fromState:u,toState:f,player:y,isFallbackTransition:!0});});}}removeNode(i,e){let t=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let s=i;for(;s=s.parentNode;)if(t.statesByElement.get(s)){r=!0;break;}}}if(this.prepareLeaveAnimationListeners(i),r)t.markElementAsRemoved(this.id,i,!1,e);else{let o=i[Ft];(!o||o===Bd)&&(t.afterFlush(()=>this.clearElementCache(i)),t.destroyInnerAnimations(i),t._onRemovalComplete(i,e));}}insertNode(i,e){Dt(i,this._hostClassName);}drainQueuedTransitions(i){let e=[];return this._queue.forEach(t=>{let r=t.player;if(r.destroyed)return;let o=t.element,s=this._elementListeners.get(o);s&&s.forEach(l=>{if(l.name==t.triggerName){let d=ms(o,t.triggerName,t.fromState.value,t.toState.value);d._data=i,ps(t.player,l.phase,d,l.callback);}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy();}):e.push(t);}),this._queue=[],e.sort((t,r)=>{let o=t.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(t.element,r.element)?1:-1;});}
9destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i);}},ds=class{_onRemovalComplete(i,e){this.onRemovalComplete(i,e);}constructor(i,e,t,r){this.bodyNode=i,this.driver=e,this._normalizer=t,this.scheduler=r,this.players=[],this.newHostElements=new Map(),this.playersByElement=new Map(),this.playersByQueriedElement=new Map(),this.statesByElement=new Map(),this.disabledNodes=new Set(),this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map(),this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{};}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&i.push(t);});}),i;}createNamespace(i,e){let t=new cs(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[i]=t;}_balanceNamespaceList(i,e){let t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let s=!1,l=this.driver.getParentElement(e);for(;l;){let d=r.get(l);if(d){let u=t.indexOf(d);t.splice(u+1,0,i),s=!0;break;}l=this.driver.getParentElement(l);}s||t.unshift(i);}else t.push(i);return r.set(e,i),i;}register(i,e){let t=this._namespaceLookup[i];return t||(t=this.createNamespace(i,e)),t;}registerTrigger(i,e,t){let r=this._namespaceLookup[i];r&&r.register(e,t)&&this.totalAnimations++;}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(i);this.namespacesByHostElement.delete(t.hostElement);let r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1),t.destroy(e),delete this._namespaceLookup[i];}));}_fetchNamespace(i){return this._namespaceLookup[i];}fetchNamespacesByElement(i){let e=new Set(),t=this.statesByElement.get(i);if(t){for(let r of t.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o);}}return e;}trigger(i,e,t,r){if(Lr(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,t,r),!0;}return!1;}insertNode(i,e,t,r){if(!Lr(e))return;let o=e[Ft];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1);}if(i){let s=this._fetchNamespace(i);s&&s.insertNode(e,t);}r&&this.collectEnterElement(e);}collectEnterElement(i){this.collectedEnterElements.push(i);}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Dt(i,Qo)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Xi(i,Qo));}removeNode(i,e,t){if(Lr(e)){this.scheduler?.notify();let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,t):this.markElementAsRemoved(i,e,!1,t);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,t);}else this._onRemovalComplete(e,t);}markElementAsRemoved(i,e,t,r,o){this.collectedLeaveElements.push(e),e[Ft]={namespaceId:i,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o};}listen(i,e,t,r,o){return Lr(e)?this._fetchNamespace(i).listen(e,t,r,o):()=>{};}_buildInstruction(i,e,t,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,t,r,i.fromState.options,i.toState.options,e,o);}destroyInnerAnimations(i){let e=this.driver.query(i,Fr,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Yo,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)));}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy();});}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(t=>t.finish());}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return wi(this.players).onDone(()=>i());i();});}processLeaveNode(i){let e=i[Ft];if(e&&e.setForRemoval){if(i[Ft]=Bd,e.namespaceId){this.destroyInnerAnimations(i);let t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(i);}this._onRemovalComplete(i,e.setForRemoval);}
9i.classList?.contains(Qo)&&this.markElementAsDisabled(i,!1),this.driver.query(i,zm,!0).forEach(t=>{this.markElementAsDisabled(t,!1);});}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let r=this.collectedEnterElements[t];Dt(r,jm);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{e=this._flushAnimations(t,i);}finally{for(let r=0;r<t.length;r++)t[r]();}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let r=this.collectedLeaveElements[t];this.processLeaveNode(r);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],e.length?wi(e).onDone(()=>{t.forEach(r=>r());}):t.forEach(r=>r());}}reportError(i){throw rm(i);}_flushAnimations(i,e){let t=new Pn(),r=[],o=new Map(),s=[],l=new Map(),d=new Map(),u=new Map(),f=new Set();this.disabledNodes.forEach(P=>{f.add(P);let C=this.driver.query(P,Fm,!0);for(let h=0;h<C.length;h++)f.add(C[h]);});let y=this.bodyNode,M=Array.from(this.statesByElement.keys()),R=Od(M,this.collectedEnterElements),N=new Map(),$=0;R.forEach((P,C)=>{let h=Ld+$++;N.set(C,h),P.forEach(m=>Dt(m,h));});let fe=[],Z=new Set(),j=new Set();for(let P=0;P<this.collectedLeaveElements.length;P++){let C=this.collectedLeaveElements[P],h=C[Ft];h&&h.setForRemoval&&(fe.push(C),Z.add(C),h.hasAnimation?this.driver.query(C,Hm,!0).forEac
9h(m=>Z.add(m)):j.add(C));}let v=new Map(),T=Od(M,Array.from(Z));T.forEach((P,C)=>{let h=Xo+$++;v.set(C,h),P.forEach(m=>Dt(m,h));}),i.push(()=>{R.forEach((P,C)=>{let h=N.get(C);P.forEach(m=>Xi(m,h));}),T.forEach((P,C)=>{let h=v.get(C);P.forEach(m=>Xi(m,h));}),fe.forEach(P=>{this.processLeaveNode(P);});});let J=[],ue=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(h=>{let m=h.player,B=h.element;if(J.push(m),this.collectedEnterElements.length){let Oe=B[Ft];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(h.triggerName)){let k=Oe.previousTriggersValues.get(h.triggerName),b=this.statesByElement.get(h.element);if(b&&b.has(h.triggerName)){let _=b.get(h.triggerName);_.value=k,b.set(h.triggerName,_);}}m.destroy();return;}}let F=!y||!this.driver.containsElement(y,B),be=v.get(B),ge=N.get(B),se=this._buildInstruction(h,t,ge,be,F);if(se.errors&&se.errors.length){ue.push(se);return;}if(F){m.onStart(()=>Pi(B,se.fromStyles)),m.onDestroy(()=>Xt(B,se.toStyles)),r.push(m);return;}if(h.isFallbackTransition){m.onStart(()=>Pi(B,se.fromStyles)),m.onDestroy(()=>Xt(B,se.toStyles)),r.push(m);return;}let at=[];se.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||at.push(Oe);}),se.timelines=at,t.append(B,se.timelines);let Ve={instruction:se,player:m,element:B};s.push(Ve),se.queriedElements.forEach(Oe=>Ct(l,Oe,[]).push(m)),se.preStyleProps.forEach((Oe,k)=>{if(Oe.size){let b=d.get(k);b||d.set(k,b=new Set()),Oe.forEach((_,A)=>b.add(A));}}),se.postStyleProps.forEach((Oe,k)=>{let b=u.get(k);b||u.set(k,b=new Set()),Oe.forEach((_,A)=>b.add(A));});});if(ue.length){let P=[];ue.forEach(C=>{P.push(om(C.triggerName,C.errors));}),J.forEach(C=>C.destroy()),this.reportError(P);}let de=new Map(),z=new Map();s.forEach(P=>{let C=P.element;t.has(C)&&(z.set(C,C),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,de));}),r.forEach(P=>{let C=P.element;this._getPreviousPlayers(C,!1,P.namespaceId,P.triggerName,null).forEach(m=>{Ct(de,C,[]).push(m),m.destroy();});});let Ie=fe.filter(P=>Md(P,d,u)),ee=new Map();Id(ee,this.driver,j,u,Ut).forEach(P=>{Md(P,d,u)&&Ie.push(P);});let G=new Map();R.forEach((P,C)=>{Id(G,this.driver,new Set(P),d,Zn);}),Ie.forEach(P=>{let C=ee.get(P),h=G.get(P);ee.set(P,new Map([...(C?.entries()??[]),...(h?.entries()??[])]));});let oe=[],We=[],ze={};s.forEach(P=>{let{element:C,player:h,instruction:m}=P;if(t.has(C)){if(f.has(C)){h.onDestroy(()=>Xt(C,m.toStyles)),h.disabled=!0,h.overrideTotalTime(m.totalTime),r.push(h);return;}let B=ze;if(z.size>1){let be=C,ge=[];for(;be=be.parentNode;){let se=z.get(be);if(se){B=se;break;}ge.push(be);}ge.forEach(se=>z.set(se,B));}let F=this._buildAnimation(h.namespaceId,m,de,o,G,ee);if(h.setRealPlayer(F),B===ze)oe.push(h);else{let be=this.playersByElement.get(B);be&&be.length&&(h.parentPlayer=wi(be)),r.push(h);}}else Pi(C,m.fromStyles),h.onDestroy(()=>Xt(C,m.toStyles)),We.push(h),f.has(C)&&r.push(h);}),We.forEach(P=>{let C=o.get(P.element);if(C&&C.length){let h=wi(C);P.setRealPlayer(h);}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy();});for(let P=0;P<fe.length;P++){let C=fe[P],h=C[Ft];if(Xi(C,Xo),h&&h.hasAnimation)continue;let m=[];if(l.size){let F=l.get(C);F&&F.length&&m.push(...F);let be=this.driver.query(C,Yo,!0);for(let ge=0;ge<be.length;ge++){let se=l.get(be[ge]);se&&se.length&&m.push(...se);}}let B=m.filter(F=>!F.destroyed);B.length?qm(this,C,B):this.processLeaveNode(C);}return fe.length=0,oe.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let C=this.players.indexOf(P);this.players.splice(C,1);}),P.play();}),oe;}afterFlush(i){this._flushFns.push(i);}afterFlushAnimationsDone(i){this._whenQuietFns.push(i);}_getPreviousPlayers(i,e,t,r,o){let s=[];if(e){let l=this.playersByQueriedElement.get(i);l&&(s=l);}else{let l=this.playersByElement.get(i);if(l){let d=!o||o==Cn;l.forEach(u=>{u.queued||!d&&u.triggerName!=r||s.push(u);});}}return(t||r)&&(s=s.filter(l=>!(t&&t!=l.namespaceId||r&&r!=l.triggerName))),s;}_beforeAnimationBuild(i,e,t){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:i,l=e.isRemovalTransition?void 0:r;for(let d of e.timelines){let u=d.element,f=u!==o,y=Ct(t,u,[]);this._getPreviousPlayers(u,f,s,l,e.toState).forEach(R=>{let N=R.getRealPlayer();
9N.beforeDestroy&&N.beforeDestroy(),R.destroy(),y.push(R);});}Pi(o,e.fromStyles);}_buildAnimation(i,e,t,r,o,s){let l=e.triggerName,d=e.element,u=[],f=new Set(),y=new Set(),M=e.timelines.map(N=>{let $=N.element;f.add($);let fe=$[Ft];if(fe&&fe.removedBeforeQueried)return new Hi(N.duration,N.delay);let Z=$!==d,j=Gm((t.get($)||Bm).map(de=>de.getRealPlayer())).filter(de=>{let z=de;return z.element?z.element===$:!1;}),v=o.get($),T=s.get($),J=Ad(this._normalizer,N.keyframes,v,T),ue=this._buildPlayer(N,J,j);if(N.subTimeline&&r&&y.add($),Z){let de=new On(i,l,$);de.setRealPlayer(ue),u.push(de);}return ue;});u.forEach(N=>{Ct(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>Um(this.playersByQueriedElement,N.element,N));}),f.forEach(N=>Dt(N,wd));let R=wi(M);return R.onDestroy(()=>{f.forEach(N=>Xi(N,wd)),Xt(d,e.toStyles);}),y.forEach(N=>{Ct(r,N,[]).push(R);}),R;}_buildPlayer(i,e,t){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,t):new Hi(i.duration,i.delay);}},On=class{constructor(i,e,t){this.namespaceId=i,this.triggerName=e,this.element=t,this._player=new Hi(),this._containsRealPlayer=!1,this._queuedCallbacks=new Map(),this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0;}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>ps(i,t,void 0,r));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(i){this.totalTime=i;}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy());}_queueEvent(i,e){Ct(this._queuedCallbacks,i,[]).push(e);}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i);}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i);}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i);}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(i){this.queued||this._player.setPosition(i);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i);}};function Um(n,i,e){let t=n.get(i);if(t){if(t.length){let r=t.indexOf(e);t.splice(r,1);}t.length==0&&n.delete(i);}return t;}function $m(n){return n??null;}function Lr(n){return n&&n.nodeType===1;}function Wm(n){return n=="start"||n=="done";}function Pd(n,i){let e=n.style.display;return n.style.display=i??"none",e;}function Id(n,i,e,t,r){let o=[];e.forEach(d=>o.push(Pd(d)));let s=[];t.forEach((d,u)=>{let f=new Map();d.forEach(y=>{let M=i.computeStyle(u,y,r);f.set(y,M),(!M||M.length==0)&&(u[Ft]=Vm,s.push(u));}),n.set(u,f);});let l=0;return e.forEach(d=>Pd(d,o[l++])),s;}function Od(n,i){let e=new Map();if(n.forEach(l=>e.set(l,[])),i.length==0)return e;let t=1,r=new Set(i),o=new Map();function s(l){if(!l)return t;let d=o.get(l);if(d)return d;let u=l.parentNode;return e.has(u)?d=u:r.has(u)?d=t:d=s(u),o.set(l,d),d;}return i.forEach(l=>{let d=s(l);d!==t&&e.get(d).push(l);}),e;}function Dt(n,i){n.classList?.add(i);}function Xi(n,i){n.classList?.remove(i);}function qm(n,i,e){wi(e).onDone(()=>n.processLeaveNode(i));}function Gm(n){let i=[];return Vd(n,i),i;}function Vd(n,i){for(let e=0;e<n.length;e++){let t=n[e];t instanceof co?Vd(t.players,i):i.push(t);}}function Qm(n,i){let e=Object.keys(n),t=Object.keys(i);if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||n[o]!==i[o])return!1;}return!0;}function Md(n,i,e){let t=e.get(n);if(!t)return!1;let r=i.get(n);return r?t.forEach(o=>r.add(o)):i.set(n,t),e.delete(n),!0;}var Yi=class{constructor(i,e,t,r){this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new ds(i.body,e,t,r),this._timelineEngine=new ls(i.body,e,t),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s);}registerTrigger(i,e,t,r,o){let s=i+"-"+r,l=this._triggerCache[s];if(!l){let d=[],u=[],f=zd(this._driver,o,d,u);if(d.length)throw Qp(r,d);u.length&&void 0,l=Nm(r,f,this._normalizer),this._triggerCache[s]=l;}this._transitionEngine.registerTrigger(e,r,l);}register(i,e){this._transitionEngine.register(i,e);}destroy(i,e){this._transitionEngine.destroy(i,e);}
9onInsert(i,e,t,r){this._transitionEngine.insertNode(i,e,t,r);}onRemove(i,e,t){this._transitionEngine.removeNode(i,e,t);}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e);}process(i,e,t,r){if(t.charAt(0)=="@"){let[o,s]=_d(t),l=r;this._timelineEngine.command(o,e,s,l);}else this._transitionEngine.trigger(i,e,t,r);}listen(i,e,t,r,o){if(t.charAt(0)=="@"){let[s,l]=_d(t);return this._timelineEngine.listen(s,e,l,o);}return this._transitionEngine.listen(i,e,t,r,o);}flush(i=-1){this._transitionEngine.flush(i);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i);}};function Km(n,i){let e=null,t=null;return Array.isArray(i)&&i.length?(e=Zo(i[0]),i.length>1&&(t=Zo(i[i.length-1]))):i instanceof Map&&(e=Zo(i)),e||t?new us(n,e,t):null;}var us=class n{static{this.initialStylesByElement=new WeakMap();}constructor(i,e,t){this._element=i,this._startStyles=e,this._endStyles=t,this._state=0;let r=n.initialStylesByElement.get(i);r||n.initialStylesByElement.set(i,r=new Map()),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&Xt(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(Xt(this._element,this._initialStyles),this._endStyles&&(Xt(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Pi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pi(this._element,this._endStyles),this._endStyles=null),Xt(this._element,this._initialStyles),this._state=3);}};function Zo(n){let i=null;return n.forEach((e,t)=>{Zm(t)&&(i=i||new Map(),i.set(t,e));}),i;}function Zm(n){return n==="display"||n==="position";}var $r=class{constructor(i,e,t,r){this.element=i,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map(),this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[]);}init(){this._buildPlayer(),this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.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(i){let e=[];return i.forEach(t=>{e.push(Object.fromEntries(t));}),e;}_triggerWebAnimation(i,e,t){return i.animate(this._convertKeyframesToObject(e),t);}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i);}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i);}onDestroy(i){this._onDestroyFns.push(i);}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>
9i()),this._onDestroyFns=[]);}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time;}getPosition(){return+(this.domPlayer.currentTime??0)/this.time;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let i=new Map();this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{r!=="offset"&&i.set(r,this._finished?t:_s(this.element,r));}),this.currentSnapshot=i;}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0;}},Wr=class{validateStyleProperty(i){return!0;}validateAnimatableStyleProperty(i){return!0;}matchesElement(i,e){return!1;}containsElement(i,e){return xd(i,e);}getParentElement(i){return fs(i);}query(i,e,t){return Dd(i,e,t);}computeStyle(i,e,t){return _s(i,e);}animate(i,e,t,r,o,s=[]){let l=r==0?"both":"forwards",d={duration:t,delay:r,fill:l};o&&(d.easing=o);let u=new Map(),f=s.filter(R=>R instanceof $r);gm(t,r)&&f.forEach(R=>{R.currentSnapshot.forEach((N,$)=>u.set($,N));});let y=pm(e).map(R=>new Map(R));y=vm(i,y,u);let M=Km(i,y);return new $r(i,y,d,M);}};var Rr="@",Ud="@.disabled",qr=class{constructor(i,e,t,r){this.namespaceId=i,this.delegate=e,this.engine=t,this._onDestroy=r,this.ɵtype=0;}get data(){return this.delegate.data;}destroyNode(i){this.delegate.destroyNode?.(i);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(i,e){return this.delegate.createElement(i,e);}createComment(i){return this.delegate.createComment(i);}createText(i){return this.delegate.createText(i);}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1);}insertBefore(i,e,t,r=!0){this.delegate.insertBefore(i,e,t),this.engine.onInsert(this.namespaceId,e,i,r);}removeChild(i,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate);}selectRootElement(i,e){return this.delegate.selectRootElement(i,e);}parentNode(i){return this.delegate.parentNode(i);}nextSibling(i){return this.delegate.nextSibling(i);}setAttribute(i,e,t,r){this.delegate.setAttribute(i,e,t,r);}removeAttribute(i,e,t){this.delegate.removeAttribute(i,e,t);}addClass(i,e){this.delegate.addClass(i,e);}removeClass(i,e){this.delegate.removeClass(i,e);}setStyle(i,e,t,r){this.delegate.setStyle(i,e,t,r);}removeStyle(i,e,t){this.delegate.removeStyle(i,e,t);}setProperty(i,e,t){e.charAt(0)==Rr&&e==Ud?this.disableAnimations(i,!!t):this.delegate.setProperty(i,e,t);}setValue(i,e){this.delegate.setValue(i,e);}listen(i,e,t){return this.delegate.listen(i,e,t);}disableAnimations(i,e){this.engine.disableAnimations(i,e);}},hs=class extends qr{constructor(i,e,t,r,o){super(e,t,r,o),this.factory=i,this.namespaceId=e;}setProperty(i,e,t){e.charAt(0)==Rr?e.charAt(1)=="."&&e==Ud?(t=t===void 0?!0:!!t,this.disableAnimations(i,t)):this.engine.process(this.namespaceId,i,e.slice(1),t):this.delegate.setProperty(i,e,t);}listen(i,e,t){if(e.charAt(0)==Rr){let r=Xm(i),o=e.slice(1),s="";return o.charAt(0)!=Rr&&([o,s]=Ym(o)),this.engine.listen(this.namespaceId,r,o,s,l=>{let d=l._data||-1;this.factory.scheduleListenerCallback(d,t,l);});}return this.delegate.listen(i,e,t);}};function Xm(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n;}}function Ym(n){let i=n.indexOf("."),e=n.substring(0,i),t=n.slice(i+1);return[e,t];}var Gr=class{constructor(i,e,t){this.delegate=i,this.engine=e,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map(),this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r);};}createRenderer(i,e){let t="",r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,f=u.get(r);if(!f){let y=()=>u.delete(r);f=new qr(t,r,this.engine,y),u.set(r,f);}return f;}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,i);let l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,s,i,u.name,u);};return e.data.animation.forEach(l),new hs(this,s,r,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(i,e,t){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(t));return;}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,l]=o;s(l);}),this._animationCallbacksBuffer=[];});}),r.push([e,t]);}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();}};qe();var ef=(()=>{class n extends Yi{constructor(e,t,r){super(e,t,r,Ye(Qs,{optional:!0}));}ngOnDestroy(){this.flush();}static{this.ɵfac=function(t){return new(t||n)(q(Vn),q(Ii),q(Oi)
9);};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})();function tf(){return new jr();}function nf(n,i,e){return new Gr(n,i,e);}var $d=[{provide:Oi,useFactory:tf},{provide:Yi,useClass:ef},{provide:Ks,useFactory:nf,deps:[Sa,Yi,Hn]}],rf=[{provide:Ii,useFactory:()=>new Wr()},{provide:sn,useValue:"BrowserAnimations"},...$d],Sw=[{provide:Ii,useClass:gs},{provide:sn,useValue:"NoopAnimations"},...$d];function Wd(){return Xs("NgEagerAnimations"),[...rf];}ce();qe();Pt();ce();Ze();var qd=(()=>{class n{constructor(e,t,r){this.router=e,this.platformId=t,this.document=r;}configureRoutes(){if(!Ot(this.platformId))return;let e=this.document.location.hostname;if(e===Ce.globals.pricingHost){this.router.resetConfig([{path:"",loadComponent:()=>import("./chunk-JRSFVME2.js").then(t=>t.PricingStandaloneMinComponent)},{path:"**",redirectTo:"",pathMatch:"full"}]);return;}if(e===Ce.globals.expertsHost){this.router.resetConfig([{path:"",loadComponent:()=>import("./chunk-64DRZJXD.js").then(t=>t.ExpertsDashboardMinComponent)},{path:"**",redirectTo:"",pathMatch:"full"}]);return;}}static{this.ɵfac=function(t){return new(t||n)(q(Ee),q(Je),q(Vn));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Qn();oi();ce();var Gd=(()=>{class n{constructor(e){this.injector=e,this.sentryErrorHandler=Oa({showDialog:!0}),this.eventsService=null;}handleError(e){this.sentryErrorHandler.handleError(e),this.logCrashEvent(e);}logCrashEvent(e){try{this.eventsService||(this.eventsService=this.injector.get(rt));let t=e?.rejection||e?.originalError||e;this.eventsService.log(this.eventsService.events.app.appCrash,{crashReason:t?.message||String(t),errorType:t?.name||"Unknown",stackTrace:this.truncateStack(t?.stack),url:typeof window<"u"?window.location.href:""});}catch{}}truncateStack(e){return e?e.length>500?e.substring(0,500)+"...":e:"";}static{this.ɵfac=function(t){return new(t||n)(q(qs));};}static{this.ɵprov=Pe({token:n,factory:n.ɵfac});}}return n;})();Jn();var Qd={providers:[Pa(ad),Vs(ao,ml.initializeApp({apiKey:"AIzaSyC6sNBk9vhvGk3sz8AAU5k4hf4khAU8r-U",authDomain:"app.bigvu.tv",databaseURL:"https://reporter-12505.firebaseio.com",projectId:"reporter-12505",storageBucket:"reporter-12505.appspot.com",messagingSenderId:"310606674603",appId:"1:310606674603:web:e9b7480e8706bd719395ee",measurementId:"G-7JZJ17FNQL"}),Ml,Rl,sl,cd,zl,ll,gl,oc,Ga,jl,lc,sc,ac),Xa,pd,rc,cc,$n,{provide:Gs,useClass:Gd},{provide:Aa,deps:[Ee]},{provide:da,useFactory:gd,deps:[rl,Je,fd,qd],multi:!0},$a,_a(ya(),wa()),Wd(),Ca(Ea()),{provide:Ya,useValue:"media/icons"}]};Wn();var of=["auth/cancelled-popup-request","auth/popup-closed-by-user"];Ia({debug:!1,release:Ce.version,environment:Ce.production?"production":"development",dsn:Ce.isLocal?null:"https://f849b53f95c54b6da749e356f2af3884@o4504871671037952.ingest.sentry.io/4504871685390336",integrations:[fa({maskAllText:!1,blockAllMedia:!0}),Ma()],ignoreErrors:["fetch dynamically imported module"],tracesSampleRate:Ce.isLocal?0:1,replaysSessionSampleRate:Ce.isLocal?0:.1,replaysOnErrorSampleRate:Ce.isLocal?0:1,beforeSend(n,i){return of.includes((i?.originalException).code)||Ce.isLocal?null:n;}});Ce.production&&void 0;Ta(Gc,Qd).catch(n=>console.error(n));/**i18n:e059b5419240afef74436eb5a1887102ff8937e043a8d48b1423a03649476971*/ 10//# debugId=6fbd7f3a-cf86-5408-80f0-c53a6479d706
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.