PageSourceSearch

https://phijkchu.com/client/en-US/main-YTLUAO44.js

js phijkchu.com collected 2026-10-01 09:23:07 UTC 190,781 bytes, 287 lines download raw bytes

1import{a as ds}from"./chunk-GLLZ6QPL.js";import{a as Ps}from"./chunk-DBBUMUIY.js";import{f as Ms,g as Ts}from"./chunk-KC2F22HA.js";import{a as ws}from"./chunk-JS7J53QZ.js";import{a as us}from"./chunk-ISX4JQWB.js";import{b as Ri}from"./chunk-ADV7WH2N.js";import"./chunk-QSR2JW5H.js";import{a as bs}from"./chunk-52NAGQAE.js";import{a as Es}from"./chunk-NSCPFWDX.js";import{a as Qn}from"./chunk-6QI3LCLL.js";import{a as vs,b as Ss}from"./chunk-G3J3JU5I.js";import"./chunk-RWFRRD6F.js";import{a as Cs}from"./chunk-JF6CNN2A.js";import{a as qn}from"./chunk-2HNNT2VT.js";import{a as ss,b as ls}from"./chunk-V2CQYEH5.js";import"./chunk-6FPHKDDK.js";import"./chunk-PXFOMLNX.js";import"./chunk-2IPYKLQX.js";import{a as ms,c as ps,d as tn}from"./chunk-GXA3YMKZ.js";import"./chunk-I5ANGE3H.js";import{a as _s}from"./chunk-MS5AUBUA.js";import{a as cs}from"./chunk-BVVUPDCB.js";import{b as gs}from"./chunk-UIX23F7I.js";import{a as Vr}from"./chunk-J3MTDSU3.js";import{a as fs}from"./chunk-5G7CLTD4.js";import{b as ys,c as Wn}from"./chunk-SGCHCWLM.js";import{a as rs}from"./chunk-76SWT53P.js";import{a as hs}from"./chunk-ATXMW3M2.js";import{a as Fr}from"./chunk-KYFYXE3K.js";import{d as Hr,e as zr,h as $n}from"./chunk-XSS37KCJ.js";import{M as xi,O as Rt,P as Rr,R as Dr,S as Lr,T as ki,U as en,W as Fn,X as $r}from"./chunk-BJVL6ZJ5.js";import{a as yr,b as Cr}from"./chunk-MBQWFBKS.js";import{a as Gn}from"./chunk-WBDRP5MN.js";import{b as Nr}from"./chunk-F3H57332.js";import{a as Pr,b as Or,c as Ar}from"./chunk-VI342OHG.js";import{a as is}from"./chunk-IYEWOREX.js";import{a as ns,b as os}from"./chunk-DEGXQ3R2.js";import{c as jn,d as Kn}from"./chunk-5TE7477A.js";import{c as $t}from"./chunk-VQCVCUXF.js";import{a as ts}from"./chunk-PR244PNT.js";import{b as as}from"./chunk-MS2CS6MN.js";import"./chunk-KLZQNCJY.js";import{E as kt,c as On,g as Nt,o as xt}from"./chunk-7JTNILXC.js";import{c as br,l as Er,m as Mr,n as Rn,p as Dn,q as Ln,r as It,t as Tr,u as Ke,v as wr}from"./chunk-CUOYDGDO.js";import{a as X}from"./chunk-TTJW756Y.js";import{$ as _n,$a as qt,Aa as jt,Ab as vn,Ad as tr,Af as Fe,Bb as ko,Bc as $o,Bd as nr,Bf as Jt,Bh as W,C as fn,Cb as Io,Cd as Tn,Cf as vr,Ch as Hn,Da as d,Db as L,Dc as Xt,Dd as ir,Df as Sr,Dh as Ii,Eb as Mt,Ec as ke,Ed as or,Eh as Qr,Fb as Tt,Fc as J,Fd as rr,G as ht,Gc as Vo,Gd as Ot,Ha as Oo,Hb as A,Hd as wn,Ig as kr,Ih as Lt,Ja as Ao,Jb as g,Jd as sr,Jh as Ft,Kc as Ho,Kd as ye,Kh as qr,L as Ue,Ld as At,Lh as Wr,Mb as Ro,Mc as En,Md as Pn,Mg as Ir,Mh as Xr,Na as D,Nc as Yt,Nd as ar,Ng as at,Nh as zn,Oa as vt,Ob as Sn,Od as lr,Oh as Un,Pb as bn,Pd as cr,Pg as Qe,Ph as Yr,Qe as Ni,Qh as Bn,R as Se,Rb as oe,Rc as zo,Rd as dr,Rh as Zr,Sa as No,Sb as re,Sc as Uo,Sd as ur,Sh as Jr,T as Mo,Ta as nt,Tb as se,Tg as Ur,Th as es,Ua as z,Uc as Bo,Va as Kt,Vb as Do,W as k,Wb as Lo,Wc as _e,X as To,Xa as xo,Xb as fe,Xc as Go,Yb as I,Yc as jo,Yd as Oi,Z as ne,Za as Cn,Zb as V,Zg as Br,_ as ft,_a as Qt,_b as Ee,_c as Pt,aa as et,ab as Wt,ae as An,ba as p,bd as Ko,be as mr,c as gn,ca as wo,cb as G,cc as it,d as Je,da as Ei,dc as ot,ec as rt,f as Eo,fd as Le,ff as pr,fg as kn,ga as w,gb as E,gd as Qo,gf as gr,ha as P,hb as M,he as Nn,ia as be,ie as Ai,if as hr,jb as Be,jf as fr,jg as In,jh as le,k as Ae,ka as _t,kb as Ge,kc as Pi,kf as _r,kg as xr,l as bi,la as yn,lb as je,mb as _,mc as K,na as Mi,nb as m,nc as st,o as me,oa as yt,ob as u,oc as Fo,pa as Ti,pb as v,pd as qo,ph as Gr,qa as Po,qb as St,qh as lt,rb as bt,rd as Wo,rh as Dt,s as hn,sa as Ct,sb as Et,sd as Xo,tb as Ne,th as jr,ub as xe,ud as Yo,uh as Kr,vb as ge,vd as Zo,vh as Ce,wd as Mn,wh as Vn,x as ze,xc as ae,xf as xn,y as pe,ya as wi,yc as wt,yd as Jo,yf as Zt,yh as Ie,za as tt,zb as F,zd as er}from"./chunk-NY4TI4KT.js";import{a as De,c as So,g as bo,i as f,j as gt}from"./chunk-IQVXR75E.js";var R=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i;}(R||{}),Me="*";function Os(i,e=null){return{type:R.Sequence,steps:i,options:e};}function Di(i){return{type:R.Style,styles:i,offset:null};}var $e=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started;}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1;}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Vt=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==r&&this._onFinish();}),s.onDestroy(()=>{++n==r&&this._onDestroy();}),s.onStart(()=>{++o==r&&this._onStart();});}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0);}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started;}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(o);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0;}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},nn="!";function As(i){return new k(3e3,!1);}function rl(){return new k(3100,!1);}function sl(){return new k(3101,!1);}function al(i){return new k(3001,!1);}function ll(i){return new k(3003,!1);}function cl(i){return new k(3004,!1);}function xs(i,e){return new k(3005,!1);}function ks(){return new k(3006,!1);}function Is(){return new k(3007,!1);}function Rs(i,e){return new k(3008,!1);}function Ds(i){return new k(3002,!1);}function Ls(i,e,t,n,o){return new k(3010,!1);}function Fs(){return new k(3011,!1);}function $s(){return new k(3012,!1);}function Vs(){return new k(3200,!1);}function Hs(){return new k(3202,!1);}function zs(){return new k(3013,!1);}function Us(i){return new k(3014,!1);}function Bs(i){return new k(3015,!1);}function Gs(i){return new k(3016,!1);}function js(i,e){return new k(3404,!1);}function dl(i){return new k(3502,!1);}function Ks(i){return new k(3503,!1);}function Qs(){return new k(3300,!1);}function qs(i){return new k(3504,!1);}function Ws(i){return new k(3301,!1);}function Xs(i,e){return new k(3302,!1);}function Ys(i){return new k(3303,!1);}function Zs(i,e){return new k(3400,!1);}function Js(i){return new k(3401,!1);}function ea(i){return new k(3402,!1);}function ta(i,e){return new k(3505,!1);}function Ve(i){switch(i.length){case 0:return new $e();case 1:return i[0];default:return new Vt(i);}}function Vi(i,e,t=new Map(),n=new Map()){let o=[],r=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==s,y=h&&a||new Map();l.forEach((N,b)=>{let C=b,x=N;
1if(b!=="offset")switch(C=i.normalizePropertyName(C,o),x){case nn:x=t.get(b);break;case Me:x=n.get(b);break;default:x=i.normalizeStyleValue(b,C,x,o);break;}y.set(C,x);}),h||r.push(y),a=y,s=c;}),o.length)throw dl(o);return r;}function Xn(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&Li(t,"start",i)));break;case"done":i.onDone(()=>n(t&&Li(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&Li(t,"destroy",i)));break;}}function Li(i,e,t){let n=t.totalTime,o=!!t.disabled,r=Yn(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,o),s=i._data;return s!=null&&(r._data=s),r;}function Yn(i,e,t,n,o="",r=0,s){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:o,totalTime:r,disabled:!!s};}function ce(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n;}function Hi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n];}var ul=typeof document>"u"?null:document.documentElement;function Zn(i){let e=i.parentNode||i.host||null;return e===ul?null:e;}function ml(i){return i.substring(1,6)=="ebkit";}var ct=null,Ns=!1;function na(i){ct||(ct=pl()||{},Ns=ct.style?"WebkitAppearance"in ct.style:!1);let e=!0;return ct.style&&!ml(i)&&(e=i in ct.style,!e&&Ns&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in ct.style)),e;}function pl(){return typeof document<"u"?document.body:null;}function zi(i,e){for(;e;){if(e===i)return!0;e=Zn(e);}return!1;}function Ui(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[];}var gl=1e3,Bi="{{",hl="}}",Gi="ng-enter",Jn="ng-leave",on="ng-trigger",rn=".ng-trigger",ji="ng-animating",ei=".ng-animating";function Re(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Fi(parseFloat(e[1]),e[2]);}function Fi(i,e){return e==="s"?i*gl:i;}function sn(i,e,t){return i.hasOwnProperty("duration")?i:_l(i,e,t);}var fl=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function _l(i,e,t){let n,o=0,r="";if(typeof i=="string"){let s=i.match(fl);if(s===null)return e.push(As(i)),{duration:0,delay:0,easing:""};n=Fi(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Fi(parseFloat(a),s[4]));let l=s[5];l&&(r=l);}else n=i;if(!t){let s=!1,a=e.length;n<0&&(e.push(rl()),s=!0),o<0&&(e.push(sl()),s=!0),s&&e.splice(a,0,As(i));}return{duration:n,delay:o,easing:r};}function ia(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[];}function Te(i,e,t){e.forEach((n,o)=>{let r=ti(o);t&&!t.has(o)&&t.set(o,i.style[r]),i.style[r]=n;});}function qe(i,e){e.forEach((t,n)=>{let o=ti(n);i.style[o]="";});}function Ht(i){return Array.isArray(i)?i.length==1?i[0]:Os(i):i;}function oa(i,e,t){let n=e.params||{},o=Ki(i);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||t.push(al(r));});}var $i=new RegExp(`${Bi}\\s*(.+?)\\s*${hl}`,"g");function Ki(i){let e=[];
1if(typeof i=="string"){let t;for(;t=$i.exec(i);)e.push(t[1]);$i.lastIndex=0;}return e;}function zt(i,e,t){let n=`${i}`,o=n.replace($i,(r,s)=>{let a=e[s];return a==null&&(t.push(ll(s)),a=""),a.toString();});return o==n?i:o;}var yl=/-+([a-z0-9])/g;function ti(i){return i.replace(yl,(...e)=>e[1].toUpperCase());}function ra(i,e){return i===0||e===0;}function sa(i,e,t){if(t.size&&e.length){let n=e[0],o=[];if(t.forEach((r,s)=>{n.has(s)||o.push(s),n.set(s,r);}),o.length)for(let r=1;r<e.length;r++){let s=e[r];o.forEach(a=>s.set(a,ni(i,a)));}}return e;}function de(i,e,t){switch(e.type){case R.Trigger:return i.visitTrigger(e,t);case R.State:return i.visitState(e,t);case R.Transition:return i.visitTransition(e,t);case R.Sequence:return i.visitSequence(e,t);case R.Group:return i.visitGroup(e,t);case R.Animate:return i.visitAnimate(e,t);case R.Keyframes:return i.visitKeyframes(e,t);case R.Style:return i.visitStyle(e,t);case R.Reference:return i.visitReference(e,t);case R.AnimateChild:return i.visitAnimateChild(e,t);case R.AnimateRef:return i.visitAnimateRef(e,t);case R.Query:return i.visitQuery(e,t);case R.Stagger:return i.visitStagger(e,t);default:throw cl(e.type);}}function ni(i,e){return window.getComputedStyle(i)[e];}var co=(()=>{let e=class e{validateStyleProperty(n){return na(n);}containsElement(n,o){return zi(n,o);}getParentElement(n){return Zn(n);}query(n,o,r){return Ui(n,o,r);}computeStyle(n,o,r){return r||"";}animate(n,o,r,s,a,l=[],c){return new $e(r,s);}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})(),We=class{};f(We,"NOOP",new co());var ut=class{};var Cl=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"]),ai=class extends ut{normalizePropertyName(e,t){return ti(e);}normalizeStyleValue(e,t,n,o){let r="",s=n.toString().trim();if(Cl.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(xs(e,n));}return s+r;}};var li="*";function vl(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>Sl(n,t,e)):t.push(i),t;}function Sl(i,e,t){if(i[0]==":"){let l=bl(i,t);if(typeof l=="function"){e.push(l);return;}i=l;}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Bs(i)),e;let o=n[1],r=n[2],s=n[3];e.push(aa(o,s));let a=o==li&&s==li;r[0]=="<"&&!a&&e.push(aa(s,o));}function bl(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Gs(i)),"* => *";}}var ii=new Set(["true","1"]),oi=new Set(["false","0"]);function aa(i,e){let t=ii.has(i)||oi.has(i),n=ii.has(e)||oi.has(e);return(o,r)=>{let s=i==li||i==o,a=e==li||e==r;return!s&&t&&typeof o=="boolean"&&(s=o?ii.has(i):oi.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?ii.has(e):oi.has(e)),s&&a;};}var _a=":self",El=new RegExp(`s*${_a}s*,?`,"g");function ya(i,e,t,n){return new Zi(i).build(e,t,n);}var la="",Zi=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let o=new Ji(t);return this._resetContextStyleTimingState(o),de(this,Ht(e),o);}_resetContextStyleTimingState(e){e.currentQuerySelector=la,e.collectedStyles=new Map(),e.collectedStyles.set(la,new Map()),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,o=t.depCount=0,r=[],s=[];return e.name.charAt(0)=="@"&&t.errors.push(ks()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==R.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=c;}else if(a.type==R.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,o+=l.depCount,s.push(l);}else t.errors.push(Is());}),{type:R.Trigger,name:e.name,states:r,transitions:s,queryCount:n,depCount:o,options:null};}visitState(e,t){let n=this.visitStyle(e.styles,t),o=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set(),s=o||{};
1n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ki(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(Rs(e.name,[...r.values()]));}return{type:R.State,name:e.name,style:n,options:o?{params:o}:null};}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=de(this,Ht(e.animation),t),o=vl(e.expr,t.errors);return{type:R.Transition,matchers:o,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:dt(e.options)};}visitSequence(e,t){return{type:R.Sequence,steps:e.steps.map(n=>de(this,n,t)),options:dt(e.options)};}visitGroup(e,t){let n=t.currentTime,o=0,r=e.steps.map(s=>{t.currentTime=n;let a=de(this,s,t);return o=Math.max(o,t.currentTime),a;});return t.currentTime=o,{type:R.Group,steps:r,options:dt(e.options)};}visitAnimate(e,t){let n=Pl(e.timings,t.errors);t.currentAnimateTimings=n;let o,r=e.styles?e.styles:Di({});if(r.type==R.Keyframes)o=this.visitKeyframes(r,t);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Di(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,t);l.isEmptyStep=a,o=l;}return t.currentAnimateTimings=null,{type:R.Animate,timings:n,style:o,options:null};}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n;}_makeStyleAst(e,t){let n=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Me?n.push(a):t.errors.push(Ds(a)):n.push(new Map(Object.entries(a)));let r=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bi)>=0){r=!0;break;}}}),{type:R.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null};}_validateStyleAst(e,t){let n=t.currentAnimateTimings,o=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(s=>
1{typeof s!="string"&&s.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),y=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(t.errors.push(Ls(l,h.startTime,h.endTime,r,o)),y=!1),r=h.startTime),y&&c.set(l,{startTime:r,endTime:o}),t.options&&oa(a,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:R.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Fs()),n;let o=1,r=0,s=[],a=!1,l=!1,c=0,h=e.steps.map(j=>{let Q=this._makeStyleAst(j,t),ee=Q.offset!=null?Q.offset:wl(Q.styles),Y=0;return ee!=null&&(r++,Y=Q.offset=ee),l=l||Y<0||Y>1,a=a||Y<c,c=Y,s.push(Y),Q;});l&&t.errors.push($s()),a&&t.errors.push(Vs());let y=e.steps.length,N=0;r>0&&r<y?t.errors.push(Hs()):r==0&&(N=o/(y-1));let b=y-1,C=t.currentTime,x=t.currentAnimateTimings,H=x.duration;return h.forEach((j,Q)=>{let ee=N>0?Q==b?1:N*Q:s[Q],Y=ee*H;t.currentTime=C+x.delay+Y,x.duration=Y,this._validateStyleAst(j,t),j.offset=ee,n.styles.push(j);}),n;}visitReference(e,t){return{type:R.Reference,animation:de(this,Ht(e.animation),t),options:dt(e.options)};}visitAnimateChild(e,t){return t.depCount++,{type:R.AnimateChild,options:dt(e.options)};}visitAnimateRef(e,t){return{type:R.AnimateRef,animation:this.visitReference(e.animation,t),options:dt(e.options)};}visitQuery(e,t){let n=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;let[r,s]=Ml(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,ce(t.collectedStyles,t.currentQuerySelector,new Map());let a=de(this,Ht(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:R.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:dt(e.options)};}visitStagger(e,t){t.currentQuery||t.errors.push(zs());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:sn(e.timings,t.errors,!0);return{type:R.Stagger,animation:de(this,Ht(e.animation),t),timings:n,options:null};}};function Ml(i){let e=!!i.split(/\s*,\s*/).find(t=>t==_a);return e&&(i=i.replace(El,"")),i=i.replace(/@\*/g,rn).replace(/@\w+/g,t=>rn+"-"+t.slice(1)).replace(/:animating/g,ei),[i,e];}function Tl(i){return i?De({},i):null;}var Ji=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map();options=null;unsupportedCSSPropertiesFound=new Set();constructor(e){this.errors=e;}};function wl(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e;}function Pl(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=sn(i,e).duration;return Qi(r,0,"");}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Qi(0,0,"");return r.dynamic=!0,r.strValue=t,r;}let o=sn(t,e);return Qi(o.duration,o.delay,o.easing);}function dt(i){return i?(i=De({},i),i.params&&(i.params=Tl(i.params))):i={},i;}function Qi(i,e,t){return{duration:i,delay:e,easing:t};}function uo(i,e,t,n,o,r,s=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a};}var ln=class{_map=new Map();get(e){return this._map.get(e)||[];}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e);}clear(){this._map.clear();}},Ol=1,Al=":enter",Nl=new RegExp(Al,"g"),xl=":leave",kl=new RegExp(xl,"g");function Ca(i,e,t,n,o,r=new Map(),s=new Map(),a,l,c=[]){return new eo().buildKeyframes(i,e,t,n,o,r,s,a,l,c);}var eo=class{buildKeyframes(e,t,n,o,r,s,a,l,c,h=[]){c=c||new ln();let y=new to(e,t,c,o,r,h,[]);y.options=l;let N=l.delay?Re(l.delay):0;y.currentTimeline.delayNextStep(N),y.currentTimeline.setStyles([s],null,y.errors,l),de(this,n,y);let b=y.timelines.filter(C=>C.containsAnimation());if(b.length&&a.size){let C;for(let x=b.length-1;x>=0;x--){let H=b[x];if(H.element===t){C=H;break;}}C&&!C.allowOnlyTimelineStyles()&&C.setStyles([a],null,y.errors,l);}return b.length?b.map(C=>C.buildKeyframes()):[uo(t,[],[],[],0,N,"",!1)];}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}
1visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let o=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,o,o.options);r!=s&&t.transformIntoNewTimeline(s);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let o of e){let r=o?.delay;if(r){let s=typeof r=="number"?r:Re(zt(r,o?.params??{},t.errors));n.delayNextStep(s);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,s=n.duration!=null?Re(n.duration):null,a=n.delay!=null?Re(n.delay):null;return s!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay);}),r;}visitReference(e,t){t.updateOptions(e.options,!0),de(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,o=t,r=e.options;if(r&&(r.params||r.delay)&&(o=t.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==R.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ci);let s=Re(r.delay);o.delayNextStep(s);}e.steps.length&&(e.steps.forEach(s=>de(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],o=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Re(e.options.delay):0;e.steps.forEach(s=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),de(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline);}),n.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(o),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,o=t.params?zt(n,t.params,t.errors):n;return sn(o,t.errors);}else return{duration:e.duration,delay:e.delay,easing:e.easing};}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),o.snapshotCurrentStyles());let r=e.style;r.type==R.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,o=t.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,o=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(o+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?Re(o.delay):0;r&&(t.previousNode.type===R.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ci);let s=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let y=t.createSubContext(e.options,c);r&&y.delayNextStep(r),c===t.element&&(l=y.currentTimeline),de(this,e.animation,y),y.currentTimeline.applyStylesToKeyframe();let N=y.currentTimeline.currentTime;s=Math.max(s,N);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,o=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1),l=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break;}let h=t.currentTimeline;l&&h.delayNextStep(l);let y=h.currentTime;de(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=o.currentTime-y+(o.startTime-n.currentTimeline.startTime);}},ci={},to=class i{_driver;element;
1subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ci;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,o,r,s,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.currentTimeline=l||new di(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(e,t){if(!e)return;let n=e,o=this.options;n.duration!=null&&(o.duration=Re(n.duration)),n.delay!=null&&(o.delay=Re(n.delay));let r=n.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=zt(r[a],s,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(o=>{n[o]=t[o];});}}return e;}createSubContext(e=null,t,n){let o=t||this.element,r=new i(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r;}transformIntoNewTimeline(e){return this.previousNode=ci,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(e,t,n){let o={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new no(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(r),o;}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,o,r,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(Nl,"."+this._enterClassName),e=e.replace(kl,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c);}return!r&&a.length==0&&s.push(Us(t)),a;}},di=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map();_currentKeyframe=new Map();_keyframes=new Map();_styleSummary=new Map();_localTimelineStyles=new Map();_globalTimelineStyles;_pendingStyles=new Map();_backFill=new Map();_currentEmptyStepKeyframe=null;constructor(e,t,n,o){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0;}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0;}get currentTime(){return this.startTime+this.duration;}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup);}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map(),this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=Ol,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}
1applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Me),this._currentKeyframe.set(t,Me);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,o){t&&this._previousKeyframe.set("easing",t);let r=o&&o.params||{},s=Il(e,this._globalTimelineStyles);for(let[a,l]of s){let c=zt(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Me),this._updateStyle(a,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e;}
1mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let o=this._styleSummary.get(n);(!o||t.time>o.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set(),t=new Set(),n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,y)=>{h===nn?e.add(y):h===Me&&t.add(y);}),n||c.set("offset",l/this.duration),o.push(c);});let r=[...e.values()],s=[...t.values()];if(n){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l];}return uo(this.element,o,r,s,this.duration,this.startTime,this.easing,!1);}},no=class extends di{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,o,r,s,a=!1){super(e,t,s.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],s=n+t,a=t/s,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ca(a)),r.push(c);let h=e.length-1;for(let y=1;y<=h;y++){let N=new Map(e[y]),b=N.get("offset"),C=t+b*n;N.set("offset",ca(C/s)),r.push(N);}n=s,t=0,o="",e=r;}return uo(this.element,e,this.preStyleProps,this.postStyleProps,n,t,o,!0);}};function ca(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t;}function Il(i,e){let t=new Map(),n;return i.forEach(o=>{if(o==="*"){n??=e.keys();for(let r of n)t.set(r,Me);}else for(let[r,s]of o)t.set(r,s);}),t;}function da(i,e,t,n,o,r,s,a,l,c,h,y,N){return{type:0,element:i,triggerName:e,isRemovalTransition:o,fromState:t,fromStyles:r,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:y,errors:N};}var qi={},ui=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,o){return Rl(this.ast.matchers,e,t,n,o);}buildStyles(e,t,n){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(t,n):new Map();}build(e,t,n,o,r,s,a,l,c,h){let y=[],N=this.ast.options&&this.ast.options.params||qi,b=a&&a.params||qi,C=this.buildStyles(n,b,y),x=l&&l.params||qi,H=this.buildStyles(o,x,y),j=new Set(),Q=new Map(),ee=new Map(),Y=o==="void",mt={params:va(x,N),delay:this.ast.options?.delay},Pe=h?[]:Ca(e,t,this.ast.animation,r,s,C,H,mt,c,y),te=0;return Pe.forEach(ie=>{te=Math.max(ie.duration+ie.delay,te);}),y.length?da(t,this._triggerName,n,o,Y,C,H,[],[],Q,ee,te,y):(Pe.forEach(ie=>{let Xe=ie.element,pt=ce(Q,Xe,new Set());ie.preStyleProps.forEach(Ye=>pt.add(Ye));let _o=ce(ee,Xe,new Set());ie.postStyleProps.forEach(Ye=>_o.add(Ye)),Xe!==t&&j.add(Xe);}),da(t,this._triggerName,n,o,Y,C,H,Pe,[...j.values()],Q,ee,te));}};function Rl(i,e,t,n,o){return i.some(r=>r(e,t,n,o));}function va(i,e){let t=De({},e);return Object.entries(i).forEach(([n,o])=>{o!=null&&(t[n]=o);}),t;}var io=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map(),o=va(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=zt(s,o,t));let l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),n.set(a,s);});}),n;}};function Dl(i,e,t){return new oo(i,e,t);}var oo=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map();constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new io(o.style,r,n));}),ua(this.states,"true","1"),ua(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new ui(e,o,this.states));}),this.fallbackTransition=Ll(e,this.states);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(e,t,n,o){return this.transitionFactories.find(s=>s.match(e,t,n,o))||null;}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n
1);}};function Ll(i,e,t){let n=[(s,a)=>!0],o={type:R.Sequence,steps:[],options:null},r={type:R.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new ui(i,r,e);}function ua(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t));}var Fl=new ln(),ro=class{bodyNode;_driver;_normalizer;_animations=new Map();_playersById=new Map();players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],o=[],r=ya(this._driver,t,n,o);if(n.length)throw Ks(n);this._animations.set(e,r);}_buildPlayer(e,t,n){let o=e.element,r=Vi(this._normalizer,e.keyframes,t,n);return this._driver.animate(o,r,e.duration,e.delay,e.easing,[],!0);}create(e,t,n={}){let o=[],r=this._animations.get(e),s,a=new Map();if(r?(s=Ca(this._driver,t,r,Gi,Jn,new Map(),new Map(),n,Fl,o),s.forEach(h=>{let y=ce(a,h.element,new Map());h.postStyleProps.forEach(N=>y.set(N,null));})):(o.push(Qs()),s=[]),o.length)throw qs(o);a.forEach((h,y)=>{h.forEach((N,b)=>{h.set(b,this._driver.computeStyle(y,b,Me));});});let l=s.map(h=>{let y=a.get(h.element);return this._buildPlayer(h,new Map(),y);}),c=Ve(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c;}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ws(e);return t;}listen(e,t,n,o){let r=Yn(t,"","","");return Xn(this._getPlayer(e),n,r,o),()=>{};}command(e,t,n,o){if(n=="register"){this.register(e,o[0]);return;}if(n=="create"){let s=o[0]||{};this.create(e,t,s);return;}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break;}}},ma="ng-animate-queued",$l=".ng-animate-queued",Wi="ng-animate-disabled",Vl=".ng-animate-disabled",Hl="ng-star-inserted",zl=".ng-star-inserted",Ul=[],Sa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bl={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},we="__ng_removed",cn=class{namespaceId;value;options;get params(){return this.options.params;}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),o=n?e.value:e;if(this.value=jl(o),n){let r=e,{value:s}=r,a=So(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(o=>{n[o]==null&&(n[o]=t[o]);});}}},an="void",Xi=new cn(an),so=class{id;hostElement;_engine;players=[];_triggers=new Map();_queue=[];_elementListeners=new Map();_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"
1+e,ve(t,this._hostClassName);}listen(e,t,n,o){if(!this._triggers.has(t))throw Xs(n,t);if(n==null||n.length==0)throw Ys(t);if(!Kl(n))throw Zs(n,t);let r=ce(this._elementListeners,e,[]),s={name:t,phase:n,callback:o};r.push(s);let a=ce(this._engine.statesByElement,e,new Map());return a.has(t)||(ve(e,on),ve(e,on+"-"+t),a.set(t,Xi)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t);});};}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0);}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Js(e);return t;}trigger(e,t,n,o=!0){let r=this._getTrigger(t),s=new dn(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ve(e,on),ve(e,on+"-"+t),this._engine.statesByElement.set(e,a=new Map()));let l=a.get(t),c=new cn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Xi),!(c.value===an)&&l.value===c.value){if(!Wl(l.params,c.params)){let x=[],H=r.matchStyles(l.value,l.params,x),j=r.matchStyles(c.value,c.params,x);x.length?this._engine.reportError(x):this._engine.afterFlush(()=>{qe(e,H),Te(e,j);});}return;}let N=ce(this._engine.playersByElement,e,[]);N.forEach(x=>{x.namespaceId==this.id&&x.triggerName==t&&x.queued&&x.destroy();});let b=r.matchTransition(l.value,c.value,e,c.params),C=!1;if(!b){if(!o)return;b=r.fallbackTransition,C=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:b,fromState:l,toState:c,player:s,isFallbackTransition:C}),C||(ve(e,ma),s.onStart(()=>{Ut(e,ma);})),s.onDone(()=>{let x=this.players.indexOf(s);x>=0&&this.players.splice(x,1);let H=this._engine.playersByElement.get(e);if(H){let j=H.indexOf(s);j>=0&&H.splice(j,1);}}),this.players.push(s),N.push(s),s;}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(o=>o.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,rn,!0);n.forEach(o=>{if(o[we])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,t,!1,!0)):this.clearElementCache(o);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)));}triggerLeaveAnimation(e,t,n,o){let r=this._engine.statesByElement.get(e),s=new Map();if(r){let a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,an,o);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),n&&Ve(a).onDone(()=>this._engine.processLeaveNode(e)),!0;}return!1;}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let o=new Set();t.forEach(r=>{let s=r.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Xi,h=new cn(an),y=new dn(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:h,player:y,isFallbackTransition:!0});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){o=!0;break;}}}if(this.prepareLeaveAnimationListeners(e),o)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[we];(!r||r===Sa)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){ve(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Yn(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Xn(n.player,a.phase,l,a.callback);}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy();}):t.push(n);}),this._queue=[],t.sort((n,o)=>{let r=n.transition.ast.depCount,s=o.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(n.element,o.element)?1:-1;});}
1destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},ao=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map();playersByElement=new Map();playersByQueriedElement=new Map();statesByElement=new Map();disabledNodes=new Set();totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map();collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e;}createNamespace(e,t){let n=new so(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n;}_balanceNamespaceList(e,t){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){let l=o.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break;}a=this.driver.getParentElement(a);}s||n.unshift(e);}else n.push(e);return o.set(t,e),e;}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n;}registerTrigger(e,t,n){let o=this._namespaceLookup[e];o&&o.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e];}fetchNamespacesByElement(e){let t=new Set(),n=this.statesByElement.get(e);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&t.add(r);}}return t;}trigger(e,t,n,o){if(ri(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,o),!0;}return!1;}insertNode(e,t,n,o){if(!ri(t))return;let r=t[we];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1);}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(t,n);}o&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ve(e,Wi)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ut(e,Wi));}removeNode(e,t,n){if(ri(t)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,o,r){this.collectedLeaveElements.push(t),t[we]={namespaceId:e,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r};}listen(e,t,n,o,r){return ri(t)?this._fetchNamespace(e).listen(t,n,o,r):()=>{};}_buildInstruction(e,t,n,o,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,o,e.fromState.options,e.toState.options,t,r);}destroyInnerAnimations(e){let t=this.driver.query(e,rn,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ei,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ve(this.players).onDone(()=>e());e();});}processLeaveNode(e){let t=e[we];if(t&&t.setForRemoval){if(e[we]=Sa,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(Wi)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Vl,!0).forEac
1h(n=>{this.markElementAsDisabled(n,!1);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let o=this.collectedEnterElements[n];ve(o,Hl);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let o=0;o<n.length;o++)n[o]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let o=this.collectedLeaveElements[n];this.processLeaveNode(o);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Ve(t).onDone(()=>{n.forEach(o=>o());}):n.forEach(o=>o());}}reportError(e){throw ea(e);}_flushAnimations(e,t){let n=new ln(),o=[],r=new Map(),s=[],a=new Map(),l=new Map(),c=new Map(),h=new Set();this.disabledNodes.forEach(S=>{h.add(S);let T=this.driver.query(S,$l,!0);for(let O=0;O<T.length;O++)h.add(T[O]);});let y=this.bodyNode,N=Array.from(this.statesByElement.keys()),b=ha(N,this.collectedEnterElements),C=new Map(),x=0;b.forEach((S,T)=>{let O=Gi+x++;C.set(T,O),S.forEach($=>ve($,O));});let H=[],j=new Set(),Q=new Set();for(let S=0;S<this.collectedLeaveElements.length;S++){let T=this.collectedLeaveElements[S],O=T[we];O&&O.setForRemoval&&(H.push(T),j.add(T),O.hasAnimation?this.driver.query(T,zl,!0).forEach($=>j.add($)):Q.add(T));}let ee=new Map(),Y=ha(N,Array.from(j));Y.forEach((S,T)=>{let O=Jn+x++;ee.set(T,O),S.forEach($=>ve($,O));}),e.push(()=>{b.forEach((S,T)=>{let O=C.get(T);S.forEach($=>Ut($,O));}),Y.forEach((S,T)=>{let O=ee.get(T);S.forEach($=>Ut($,O));}),H.forEach(S=>{this.processLeaveNode(S);});});let mt=[],Pe=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(O=>{let $=O.player,q=O.element;if(mt.push($),this.collectedEnterElements.length){let Z=q[we];if(Z&&Z.setForMove){if(Z.previousTriggersValues&&Z.previousTriggersValues.has(O.triggerName)){let Ze=Z.previousTriggersValues.get(O.triggerName),he=this.statesByElement.get(O.element);if(he&&he.has(O.triggerName)){let pn=he.get(O.triggerName);pn.value=Ze,he.set(O.triggerName,pn);}}$.destroy();return;}}let Oe=!y||!this.driver.containsElement(y,q),ue=ee.get(q),He=C.get(q),U=this._buildInstruction(O,n,He,ue,Oe);if(U.errors&&U.errors.length){Pe.push(U);return;}if(Oe){$.onStart(()=>qe(q,U.fromStyles)),$.onDestroy(()=>Te(q,U.toStyles)),o.push($);return;}if(O.isFallbackTransition){$.onStart(()=>qe(q,U.fromStyles)),$.onDestroy(()=>Te(q,U.toStyles)),o.push($);return;}let vo=[];U.timelines.forEach(Z=>{Z.stretchStartingKeyframe=!0,this.disabledNodes.has(Z.element)||vo.push(Z);}),U.timelines=vo,n.append(q,U.timelines);let ol={instruction:U,player:$,element:q};s.push(ol),U.queriedElements.forEach(Z=>ce(a,Z,[]).push($)),U.preStyleProps.forEach((Z,Ze)=>{if(Z.size){let he=l.get(Ze);he||l.set(Ze,he=new Set()),Z.forEach((pn,Si)=>he.add(Si));}}),U.postStyleProps.forEach((Z,Ze)=>{let he=c.get(Ze);he||c.set(Ze,he=new Set()),Z.forEach((pn,Si)=>he.add(Si));});});if(Pe.length){let S=[];Pe.forEach(T=>{S.push(ta(T.triggerName,T.errors));}),mt.forEach(T=>T.destroy()),this.reportError(S);}let te=new Map(),ie=new Map();s.forEach(S=>{let T=S.element;n.has(T)&&(ie.set(T,T),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,te));}),o.forEach(S=>{let T=S.element;this._getPreviousPlayers(T,!1,S.namespaceId,S.triggerName,null).forEach($=>{ce(te,T,[]).push($),$.destroy();});});let Xe=H.filter(S=>fa(S,l,c)),pt=new Map();ga(pt,this.driver,Q,c,Me).forEach(S=>{fa(S,l,c)&&Xe.push(S);});let Ye=new Map();b.forEach((S,T)=>{ga(Ye,this.driver,new Set(S),l,nn);}),Xe.forEach(S=>{let T=pt.get(S),O=Ye.get(S);pt.set(S,new Map([...(T?.entries()??[]),...(O?.entries()??[])]));});let vi=[],yo=[],Co={};s.forEach(S=>{let{element:T,player:O,instruction:$}=S;if(n.has(T)){if(h.has(T)){O.onDestroy(()=>Te(T,$.toStyles)),O.disabled=!0,O.overrideTotalTime($.totalTime),o.push(O);return;}let q=Co;if(ie.size>1){let ue=T,He=[];for(;ue=ue.parentNode;){let U=ie.get(ue);if(U){q=U;break;}He.push(ue);}He.forEach(U=>ie.set(U,q));}let Oe=this._buildAnimation(O.namespaceId,$,te,r,Ye,pt);
1if(O.setRealPlayer(Oe),q===Co)vi.push(O);else{let ue=this.playersByElement.get(q);ue&&ue.length&&(O.parentPlayer=Ve(ue)),o.push(O);}}else qe(T,$.fromStyles),O.onDestroy(()=>Te(T,$.toStyles)),yo.push(O),h.has(T)&&o.push(O);}),yo.forEach(S=>{let T=r.get(S.element);if(T&&T.length){let O=Ve(T);S.setRealPlayer(O);}}),o.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy();});for(let S=0;S<H.length;S++){let T=H[S],O=T[we];if(Ut(T,Jn),O&&O.hasAnimation)continue;let $=[];if(a.size){let Oe=a.get(T);Oe&&Oe.length&&$.push(...Oe);let ue=this.driver.query(T,ei,!0);for(let He=0;He<ue.length;He++){let U=a.get(ue[He]);U&&U.length&&$.push(...U);}}let q=$.filter(Oe=>!Oe.destroyed);q.length?Ql(this,T,q):this.processLeaveNode(T);}return H.length=0,vi.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();let T=this.players.indexOf(S);this.players.splice(T,1);}),S.play();}),vi;}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,o,r){let s=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(s=a);}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==an;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c);});}}return(n||o)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),s;}_beforeAnimationBuild(e,t,n){let o=t.triggerName,r=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:o;for(let l of t.timelines){let c=l.element,h=c!==r,y=ce(n,c,[]);this._getPreviousPlayers(c,h,s,a,t.toState).forEach(b=>{let C=b.getRealPlayer();C.beforeDestroy&&C.beforeDestroy(),b.destroy(),y.push(b);});}qe(r,t.fromStyles);}_buildAnimation(e,t,n,o,r,s){let a=t.triggerName,l=t.element,c=[],h=new Set(),y=new Set(),N=t.timelines.map(C=>{let x=C.element;h.add(x);let H=x[we];if(H&&H.removedBeforeQueried)return new $e(C.duration,C.delay);let j=x!==l,Q=ql((n.get(x)||Ul).map(te=>te.getRealPlayer())).filter(te=>{let ie=te;return ie.element?ie.element===x:!1;}),ee=r.get(x),Y=s.get(x),mt=Vi(this._normalizer,C.keyframes,ee,Y),Pe=this._buildPlayer(C,mt,Q);if(C.subTimeline&&o&&y.add(x),j){let te=new dn(e,a,x);te.setRealPlayer(Pe),c.push(te);}return Pe;});c.forEach(C=>{ce(this.playersByQueriedElement,C.element,[]).push(C),C.onDone(()=>Gl(this.playersByQueriedElement,C.element,C));}),h.forEach(C=>ve(C,ji));let b=Ve(N);return b.onDestroy(()=>{h.forEach(C=>Ut(C,ji)),Te(l,t.toStyles);}),y.forEach(C=>{ce(o,C,[]).push(b);}),b;}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new $e(e.duration,e.delay);}},dn=class{namespaceId;triggerName;element;_player=new $e();_containsRealPlayer=!1;_queuedCallbacks=new Map();destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(o=>Xn(e,n,void 0,o));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){ce(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?!1:this._player.hasStarted();}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=!0,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function Gl(i,e,t){let n=i.get(e);if(n){if(n.length){let o=n.indexOf(t);n.splice(o,1);}n.length==0&&i.delete(e);}return n;}function jl(i){return i??null;}function ri(i){return i&&i.nodeType===1;}function Kl(i){return i=="start"||i=="done";}function pa(i,e){let t=i.style.display;return i.style.display=e??"none",t;}function ga(i,e,t,n,o){let r=[];t.forEach(l=>r.push(pa(l)));let s=[];
1n.forEach((l,c)=>{let h=new Map();l.forEach(y=>{let N=e.computeStyle(c,y,o);h.set(y,N),(!N||N.length==0)&&(c[we]=Bl,s.push(c));}),i.set(c,h);});let a=0;return t.forEach(l=>pa(l,r[a++])),s;}function ha(i,e){let t=new Map();if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,o=new Set(e),r=new Map();function s(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:o.has(c)?l=n:l=s(c),r.set(a,l),l;}return e.forEach(a=>{let l=s(a);l!==n&&t.get(l).push(a);}),t;}function ve(i,e){i.classList?.add(e);}function Ut(i,e){i.classList?.remove(e);}function Ql(i,e,t){Ve(t).onDone(()=>i.processLeaveNode(e));}function ql(i){let e=[];return ba(i,e),e;}function ba(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Vt?ba(n.players,e):e.push(n);}}function Wl(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let o=0;o<t.length;o++){let r=t[o];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1;}return!0;}function fa(i,e,t){let n=t.get(i);if(!n)return!1;let o=e.get(i);return o?n.forEach(r=>o.add(r)):e.set(i,n),t.delete(i),!0;}var Bt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new ao(e.body,t,n),this._timelineEngine=new ro(e.body,t,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r);}registerTrigger(e,t,n,o,r){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let l=[],c=[],h=ya(this._driver,r,l,c);if(l.length)throw js(o,l);a=Dl(o,h,this._normalizer),this._triggerCache[s]=a;}this._transitionEngine.registerTrigger(t,o,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,o){this._transitionEngine.insertNode(e,t,n,o);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,o){if(n.charAt(0)=="@"){let[r,s]=Hi(n),a=o;this._timelineEngine.command(r,t,s,a);}else this._transitionEngine.trigger(e,t,n,o);}listen(e,t,n,o,r){if(n.charAt(0)=="@"){let[s,a]=Hi(n);return this._timelineEngine.listen(s,t,a,r);}return this._transitionEngine.listen(e,t,n,o,r);}flush(e=-1){this._transitionEngine.flush(e);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function Xl(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Yi(e[0]),e.length>1&&(n=Yi(e[e.length-1]))):e instanceof Map&&(t=Yi(e)),t||n?new Yl(i,t,n):null;}var Yl=(()=>{let e=class e{_element;_startStyles;_endStyles;_state=0;_initialStyles;constructor(n,o,r){this._element=n,this._startStyles=o,this._endStyles=r;let s=e.initialStylesByElement.get(n);s||e.initialStylesByElement.set(n,s=new Map()),this._initialStyles=s;}start(){this._state<1&&(this._startStyles&&Te(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(Te(this._element,this._initialStyles),this._endStyles&&(Te(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(qe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qe(this._element,this._endStyles),this._endStyles=null),Te(this._element,this._initialStyles),this._state=3);}};f(e,"initialStylesByElement",new WeakMap());let i=e;return i;})();function Yi(i){let e=null;return i.forEach((t,n)=>{Zl(n)&&(e=e||new Map(),e.set(n,t));}),e;}function Zl(i){return i==="display"||i==="position";}var mi=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map();constructor(e,t,n,o){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map();let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t;}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t;}_triggerWebAnimation(e,t,n){let o=this._convertKeyframesToObject(t);try{return e.animate(o,n);}catch(r){return null;}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(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?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let e=new Map();this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&e.set(o,this._finished?n:ni(this.element,o));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},pi=class{validateStyleProperty(e){return!0;}validateAnimatableStyleProperty(e){return!0;}containsElement(e,t){return zi(e,t);}getParentElement(e){return Zn(e);}query(e,t,n){return Ui(e,t,n);}computeStyle(e,t,n){return ni(e,t);}animate(e,t,n,o,r,s=[]){let a=o==0?"both":"forwards",l={duration:n,delay:o,fill:a};r&&(l.easing=r);let c=new Map(),h=s.filter(b=>b instanceof mi);ra(n,o)&&h.forEach(b=>{b.currentSnapshot.forEach((C,x)=>c.set(x,C));});let y=ia(t).map(b=>new Map(b));y=sa(e,y,c);let N=Xl(e,y);return new mi(e,y,l,N);}};var si="@",Ea="@.disabled",gi=class{namespaceId;delegate;engine;_onDestroy;ɵtype=0;constructor(e,t,n,o){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=o;}get data(){return this.delegate.data;}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t);}createComment(e){return this.delegate.createComment(e);}createText(e){return this.delegate.createText(e);}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1);}insertBefore(e,t,n,o=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,o);}removeChild(e,t,n,o){if(o){this.delegate.removeChild(e,t,n,o);return;}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t);}parentNode(e){return this.delegate.parentNode(e);}nextSibling(e){return this.delegate.nextSibling(e);}setAttribute(e,t,n,o){this.delegate.setAttribute(e,t,n,o);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,o){this.delegate.setStyle(e,t,n,o);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==si&&t==Ea?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,o){return this.delegate.listen(e,t,n,o);}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},lo=class extends gi{factory;constructor(e,t,n,o,r){super(t,n,o,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==si?t.charAt(1)=="."&&t==Ea?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,o){if(t.charAt(0)==si){let r=Jl(e),s=t.slice(1),a="";return s.charAt(0)!=si&&([s,a]=ec(s)),this.engine.listen(this.namespaceId,r,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);});}return this.delegate.listen(e,t,n,o);}};function Jl(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i;}}function ec(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n];}var hi=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map();_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(o,r)=>{r?.removeChild(null,o);};}createRenderer(e,t){let o=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(o);if(!h){let y=()=>c.delete(o);h=new gi("",o,this.engine,y),c.set(o,h);}return h;}let r=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>
1{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,s,e,c.name,c);};return t.data.animation.forEach(a),new lo(this,s,o,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return;}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[s,a]=r;s(a);}),this._animationCallbacksBuffer=[];});}),o.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone();}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var nc=(()=>{let e=class e extends Bt{constructor(n,o,r){super(n,o,r);}ngOnDestroy(){this.flush();}};f(e,"\u0275fac",function(o){return new(o||e)(et(yn),et(We),et(ut));}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})();function ic(){return new ai();}function oc(){return new hi(p(Yo),p(Bt),p(yt));}var Ta=[{provide:ut,useFactory:ic},{provide:Bt,useClass:nc},{provide:Oo,useFactory:oc}],rc=[{provide:We,useClass:co},{provide:wi,useValue:"NoopAnimations"},...Ta],Ma=[{provide:We,useFactory:()=>new pi()},{provide:wi,useFactory:()=>"BrowserAnimations"},...Ta],wa=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?rc:Ma};}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275mod",vt({type:e})),f(e,"\u0275inj",ft({providers:Ma,imports:[Mn]}));let i=e;return i;})();var mo="Service workers are disabled or not supported by this browser",Gt=class{serviceWorker;worker;registration;events;constructor(e,t){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=new gn(n=>n.error(new k(5601,!1)));else{let n=null,o=new Je();this.worker=new gn(c=>(n!==null&&c.next(n),o.subscribe(h=>c.next(h))));let r=()=>{let{controller:c}=e;c!==null&&(n=c,o.next(n));};e.addEventListener("controllerchange",r),r(),this.registration=this.worker.pipe(Se(()=>e.getRegistration().then(c=>{if(!c)throw new k(5601,!1);return c;})));let s=new Je();this.events=s.asObservable();let a=c=>{let{data:h}=c;h?.type&&s.next(h);};e.addEventListener("message",a),t?.get(Qt,null,{optional:!0})?.onDestroy(()=>{e.removeEventListener("controllerchange",r),e.removeEventListener("message",a);});}}postMessage(e,t){return new Promise(n=>{this.worker.pipe(ht(1)).subscribe(o=>{o.postMessage(De({action:e},t)),n();});});}postMessageWithOperation(e,t,n){let o=this.waitForOperationCompleted(n),r=this.postMessage(e,t);return Promise.all([r,o]).then(([,s])=>s);}generateNonce(){return Math.round(Math.random()*1e7);}eventsOfType(e){let t;return typeof e=="string"?t=n=>n.type===e:t=n=>e.includes(n.type),this.events.pipe(pe(t));}nextEventOfType(e){return this.eventsOfType(e).pipe(ht(1));}waitForOperationCompleted(e){return new Promise((t,n)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(pe(o=>o.nonce===e),ht(1),me(o=>{if(o.result!==void 0)return o.result;throw new Error(o.error);})).subscribe({next:t,error:n});});}get isEnabled(){return!!this.serviceWorker;}},Oa=(()=>{let e=class e{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled;}pushManager=null;subscriptionChanges=new Je();constructor(n){if(this.sw=n,!n.isEnabled){this.messages=ze,this.notificationClicks=ze,this.notificationCloses=ze,this.pushSubscriptionChanges=ze,this.subscription=ze;return;}this.messages=this.sw.eventsOfType("PUSH").pipe(me(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(me(r=>r.data)),this.notificationCloses=this.sw.eventsOfType("NOTIFICATION_CLOSE").pipe(me(r=>r.data)),this.pushSubscriptionChanges=this.sw.eventsOfType("PUSH_SUBSCRIPTION_CHANGE").pipe(me(r=>r.data)),this.pushManager=this.sw.registration.pipe(me(r=>r.pushManager));let o=this.pushManager.pipe(Se(r=>r.getSubscription()));this.subscription=new gn(r=>{let s=o.subscribe(r),a=this.subscriptionChanges.subscribe(r);return()=>{s.unsubscribe(),a.unsubscribe();};});}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(mo));let o={userVisibleOnly:!0},r=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;a<r.length;a++)s[a]=r.charCodeAt(a);return o.applicationServerKey=s,new Promise((a,l)=>{this.pushManager.pipe(Se(c=>c.subscribe(o)),ht(1)).subscribe({next:c=>{this.subscriptionChanges.next(c),a(c);},error:l});});}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(mo));let n=o=>
1{if(o===null)throw new k(5602,!1);return o.unsubscribe().then(r=>{if(!r)throw new k(5603,!1);this.subscriptionChanges.next(null);});};return new Promise((o,r)=>{this.subscription.pipe(ht(1),Se(n)).subscribe({next:o,error:r});});}decodeBase64(n){return atob(n);}};f(e,"\u0275fac",function(o){return new(o||e)(et(Gt));}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})(),Aa=(()=>{let e=class e{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled;}ongoingCheckForUpdate=null;constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=ze,this.unrecoverable=ze;return;}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE");}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(mo));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let n=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n).finally(()=>{this.ongoingCheckForUpdate=null;}),this.ongoingCheckForUpdate;}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new k(5601,!1));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n);}};f(e,"\u0275fac",function(o){return new(o||e)(et(Gt));}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})(),Na=new _n("");function sc(){let i=p(un);if(!("serviceWorker"in navigator&&i.enabled!==!1))return;let e=p(Na),t=p(yt),n=p(Qt);t.runOutsideAngular(()=>{let o=navigator.serviceWorker,r=()=>o.controller?.postMessage({action:"INITIALIZE"});o.addEventListener("controllerchange",r),n.onDestroy(()=>{o.removeEventListener("controllerchange",r);});}),t.runOutsideAngular(()=>{let o,{registrationStrategy:r}=i;if(typeof r=="function")o=new Promise(s=>r().subscribe(()=>s()));else{let[s,...a]=(r||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":o=Promise.resolve();break;case"registerWithDelay":o=Pa(+a[0]||0);break;case"registerWhenStable":o=Promise.race([n.whenStable(),Pa(+a[0])]);break;default:throw new k(5600,!1);}}o.then(()=>{n.destroyed||navigator.serviceWorker.register(e,{scope:i.scope,updateViaCache:i.updateViaCache,type:i.type}).catch(s=>console.error(To(5604,!1)));});});}function Pa(i){return new Promise(e=>setTimeout(e,i));}function ac(){let i=p(un),e=p(_t),t=!0;return new Gt(t&&i.enabled!==!1?navigator.serviceWorker:void 0,e);}var un=class{enabled;updateViaCache;type;scope;registrationStrategy;};function lc(i,e={}){return wo([Oa,Aa,{provide:Na,useValue:i},{provide:un,useValue:e},{provide:Gt,useFactory:ac},Cn(sc)]);}var xa=(()=>{let e=class e{static register(n,o={}){return{ngModule:e,providers:[lc(n,o)]};}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275mod",vt({type:e})),f(e,"\u0275inj",ft({providers:[Oa,Aa]}));let i=e;return i;})();function ka(){return[yr,Cr];}function Ia(i,e){let t=p(wt);if(!(i.url.startsWith("/")||In(kn(),i.url)))return e(i);let o=i.clone({headers:i.headers.append("x-peertube-language",t)});return e(o);}var cc=["data-p-icon","exclamation-triangle"],Ra=(()=>{let e=class e extends Fn{pathId;onInit(){this.pathId="url(#"+Rt()+")";}};f(e,"\u0275fac",(()=>{let n;return function(r){return(n||(n=Ct(e)))(r||e);};})()),f(e,"\u0275cmp",D({type:e,selectors:[["","data-p-icon","exclamation-triangle"]],features:[nt],attrs:cc,decls:7,vars:2,consts:[["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.
163046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(o,r){o&1&&(be(),St(0,"g"),Et(1,"path",0)(2,"path",1)(3,"path",2),bt(),St(4,"defs")(5,"clipPath",3),Et(6,"rect",4),bt()()),o&2&&(G("clip-path",r.pathId),d(5),vn("id",r.pathId));},encapsulation:2}));let i=e;return i;})();var dc=["data-p-icon","info-circle"],Da=(()=>{let e=class e extends Fn{pathId;onInit(){this.pathId="url(#"+Rt()+")";}};f(e,"\u0275fac",(()=>{let n;return function(r){return(n||(n=Ct(e)))(r||e);};})()),f(e,"\u0275cmp",D({type:e,selectors:[["","data-p-icon","info-circle"]],features:[nt],attrs:dc,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(o,r){o&1&&(be(),St(0,"g"),Et(1,"path",0),bt(),St(2,"defs")(3,"clipPath",1),Et(4,"rect",2),bt()()),o&2&&(G("clip-path",r.pathId),d(3),vn("id",r.pathId));},encapsulation:2}));let i=e;return i;})();var La=`
2    .p-toast {
3        width: dt('toast.width');
4        white-space: pre-line;
5        word-break: break-word;
6    }
7
8    .p-toast-message {
9        margin: 0 0 1rem 0;
10        display: grid;
11        grid-template-rows: 1fr;
12    }
13
14    .p-toast-message-icon {
15        flex-shrink: 0;
16        font-size: dt('toast.icon.size');
17        width: dt('toast.icon.size');
18        height: dt('toast.icon.size');
19    }
20
21    .p-toast-message-content {
22        display: flex;
23        align-items: flex-start;
24        padding: dt('toast.content.padding');
25        gap: dt('toast.content.gap');
26        min-height: 0;
27        overflow: hidden;
28        transition: padding 250ms ease-in;
29    }
30
31    .p-toast-message-text {
32        flex: 1 1 auto;
33        display: flex;
34        flex-direction: column;
35        gap: dt('toast.text.gap');
36    }
37
38    .p-toast-summary {
39        font-weight: dt('toast.summary.font.weight');
40        font-size: dt('toast.summary.font.size');
41    }
42
43    .p-toast-detail {
44        font-weight: dt('toast.detail.font.weight');
45        font-size: dt('toast.detail.font.size');
46    }
47
48    .p-toast-close-button {
49        display: flex;
50        align-items: center;
51        justify-content: center;
52        overflow: hidden;
53        position: relative;
54        cursor: pointer;
55        background: transparent;
56        transition:
57            background dt('toast.transition.duration'),
58            color dt('toast.transition.duration'),
59            outline-color dt('toast.transition.duration'),
60            box-shadow dt('toast.transition.duration');
61        outline-color: transparent;
62        color: inherit;
63        width: dt('toast.close.button.width');
64        height: dt('toast.close.button.height');
65        border-radius: dt('toast.close.button.border.radius');
66        margin: -25% 0 0 0;
67        right: -25%;
68        padding: 0;
69        border: none;
70        user-select: none;
71    }
72
73    .p-toast-close-button:dir(rtl) {
74        margin: -25% 0 0 auto;
75        left: -25%;
76        right: auto;
77    }
78
79    .p-toast-message-info,
80    .p-toast-message-success,
81    .p-toast-message-warn,
82    .p-toast-message-error,
83    .p-toast-message-secondary,
84    .p-toast-message-contrast {
85        border-width: dt('toast.border.width');
86        border-style: solid;
87        backdrop-filter: blur(dt('toast.blur'));
88        border-radius: dt('toast.border.radius');
89    }
90
91    .p-toast-close-icon {
92        font-size: dt('toast.close.icon.size');
93        width: dt('toast.close.icon.size');
94        height: dt('toast.close.icon.size');
95    }
96
97    .p-toast-close-button:focus-visible {
98        outline-width: dt('focus.ring.width');
99        outline-style: dt('focus.ring.style');
100        outline-offset: dt('focus.ring.offset');
101    }
102
103    .p-toast-message-info {
104        background: dt('toast.info.background');
105        border-color: dt('toast.info.border.color');
106        color: dt('toast.info.color');
107        box-shadow: dt('toast.info.shadow');
108    }
109
110    .p-toast-message-info .p-toast-detail {
111        color: dt('toast.info.detail.color');
112    }
113
114    .p-toast-message-info .p-toast-close-button:focus-visible {
115        outline-color: dt('toast.info.close.button.focus.ring.color');
116        box-shadow: dt('toast.info.close.button.focus.ring.shadow');
117    }
118
119    .p-toast-message-info .p-toast-close-button:hover {
120        background: dt('toast.info.close.button.hover.background');
121    }
122
123    .p-toast-message-success {
124        background: dt('toast.success.background');
125        border-color: dt('toast.success.border.color');
126        color: dt('toast.success.color');
127        box-shadow: dt('toast.success.shadow');
128    }
129
130    .p-toast-message-success .p-toast-detail {
131        color: dt('toast.success.detail.color');
132    }
133
134    .p-toast-message-success .p-toast-close-button:focus-visible {
135        outline-color: dt('toast.success.close.button.focus.ring.color');
136        box-shadow: dt('toast.success.close.button.focus.ring.shadow');
137    }
138
139    .p-toast-message-success .p-toast-close-button:hover {
140        background: dt('toast.success.close.button.hover.background');
141    }
142
143    .p-toast-message-warn {
144        background: dt('toast.warn.background');
145        border-color: dt('toast.warn.border.color');
146        color: dt('toast.warn.color');
147        box-shadow: dt('toast.warn.shadow');
148    }
149
150    .p-toast-message-warn .p-toast-detail {
151        color: dt('toast.warn.detail.color');
152    }
153
154    .p-toast-message-warn .p-toast-close-button:focus-visible {
155        outline-color: dt('toast.warn.close.button.focus.ring.color');
156        box-shadow: dt('toast.warn.close.button.focus.ring.shadow');
157    }
158
159    .p-toast-message-warn .p-toast-close-button:hover {
160        background: dt('toast.warn.close.button.hover.background');
161    }
162
163    .p-toast-message-error {
164        background: dt('toast.error.background');
165        border-color: dt('toast.error.border.color');
166        color: dt('toast.error.color');
167        box-shadow: dt('toast.error.shadow');
168    }
169
170    .p-toast-message-error .p-toast-detail {
171        color: dt('toast.error.detail.color');
172    }
173
174    .p-toast-message-error .p-toast-close-button:focus-visible {
175        outline-color: dt('toast.error.close.button.focus.ring.color');
176        box-shadow: dt('toast.error.close.button.focus.ring.shadow');
177    }
178
179    .p-toast-message-error .p-toast-close-button:hover {
180        background: dt('toast.error.close.button.hover.background');
181    }
182
183    .p-toast-message-secondary {
184        background: dt('toast.secondary.background');
185        border-color: dt('toast.secondary.border.color');
186        color: dt('toast.secondary.color');
187        box-shadow: dt('toast.secondary.shadow');
188    }
189
190    .p-toast-message-secondary .p-toast-detail {
191        color: dt('toast.secondary.detail.color');
192    }
193
194    .p-toast-message-secondary .p-toast-close-button:focus-visible {
195        outline-color: dt('toast.secondary.close.button.focus.ring.color');
196        box-shadow: dt('toast.secondary.close.button.focus.ring.shadow');
197    }
198
199    .p-toast-message-secondary .p-toast-close-button:hover {
200        background: dt('toast.secondary.close.button.hover.background');
201    }
202
203    .p-toast-message-contrast {
204        background: dt('toast.contrast.background');
205        border-color: dt('toast.contrast.border.color');
206        color: dt('toast.contrast.color');
207        box-shadow: dt('toast.contrast.shadow');
208    }
209    
210    .p-toast-message-contrast .p-toast-detail {
211        color: dt('toast.contrast.detail.color');
212    }
213
214    .p-toast-message-contrast .p-toast-close-button:focus-visible {
215        outline-color: dt('toast.contrast.close.button.focus.ring.color');
216        box-shadow: dt('toast.contrast.close.button.focus.ring.shadow');
217    }
218
219    .p-toast-message-contrast .p-toast-close-button:hover {
220        background: dt('toast.contrast.close.button.hover.background');
221    }
222
223    .p-toast-top-center {
224        transform: translateX(-50%);
225    }
226
227    .p-toast-bottom-center {
228        transform: translateX(-50%);
229    }
230
231    .p-toast-center {
232        min-width: 20vw;
233        transform: translate(-50%, -50%);
234    }
235
236    .p-toast-message-enter-active {
237        animation: p-animate-toast-enter 300ms ease-out;
238    }
239
240    .p-toast-message-leave-active {
241        animation: p-animate-toast-leave 250ms ease-in;
242    }
243
244    .p-toast-message-leave-to .p-toast-message-content {
245        padding-top: 0;
246        padding-bottom: 0;
247    }
248
249    @keyframes p-animate-toast-enter {
250        from {
251            opacity: 0;
252            transform: scale(0.6);
253        }
254        to {
255            opacity: 1;
256            grid-template-rows: 1fr;
257        }
258    }
259
260     @keyframes p-animate-toast-leave {
261        from {
262            opacity: 1;
263        }
264        to {
265            opacity: 0;
266            margin-bottom: 0;
267            grid-template-rows: 0fr;
268            transform: translateY(-100%) scale(0.6);
269        }
270    }
271`;var uc=(i,e)=>({$implicit:i,closeFn:e}),mc=i=>({$implicit:i});function pc(i,e){i&1&&ge(0);}function gc(i,e){if(i&1&&z(0,pc,1,0,"ng-container",3),i&2){let t=g();_("ngTemplateOutlet",t.headlessTemplate)("ngTemplateOutletContext",st(2,uc,t.message,t.onCloseIconClick));}}function hc(i,e){if(i&1&&v(0,"span",4),i&2){let t=g(3);fe(t.cn(t.cx("messageIcon"),t.message==null?null:t.message.icon)),_("pBind",t.ptm("messageIcon"));}}function fc(i,e){if(i&1&&(be(),v(0,"svg",11)),i&2){let t=g(4);fe(t.cx("messageIcon")),_("pBind",t.ptm("messageIcon")),G("aria-hidden",!0);}}function _c(i,e){if(i&1&&(be(),v(0,"svg",12)),i&2){let t=g(4);fe(t.cx("messageIcon")),_("pBind",t.ptm("messageIcon")),G("aria-hidden",!0);}}function yc(i,e){if(i&1&&(be(),v(0,"svg",13)),i&2){let t=g(4);fe(t.cx("messageIcon")),_("pBind",t.ptm("messageIcon")),G("aria-hidden",!0);}}function Cc(i,e){if(i&1&&(be(),v(0,"svg",14)),i&2){let t=g(4);fe(t.cx("messageIcon")),_("pBind",t.ptm("messageIcon")),G("aria-hidden",!0);}}function vc(i,e){if(i&1&&(be(),v(0,"svg",12)),i&2){let t=g(4);fe(t.cx("messageIcon")),_("pBind",t.ptm("messageIcon")),G("aria-hidden",!0);}}function Sc(i,e){if(i&1&&E(0,fc,1,4,":svg:svg",7)(1,_c,1,4,":svg:svg",8)(2,yc,1,4,":svg:svg",9)(3,Cc,1,4,":svg:svg",10)(4,vc,1,4,":svg:svg",8),i&2){let t,n=g(3);M((t=n.message.severity)==="success"?0:t==="info"?1:t==="error"?2:t==="warn"?3:4);}}function bc(i,e){if(i&1&&(Ne(0),E(1,hc,1,3,"span",2)(2,Sc,5,1),m(3,"div",6)(4,"div",6),I(5),u(),m(6,"div",6),I(7),u()(),xe()),i&2){let t=g(2);d(),M(t.message.icon?1:2),d(2),_("pBind",t.ptm("messageText"))("ngClass",t.cx("messageText")),G("data-p",t.dataP),d(),_("pBind",t.ptm("summary"))("ngClass",t.cx("summary")),G("data-p",t.dataP),d(),Ee(" ",t.message.summary," "),d(),_("pBind",t.ptm("detail"))("ngClass",t.cx("detail")),G("data-p",t.dataP),d(),V(t.message.detail);}}function Ec(i,e){i&1&&ge(0);}function Mc(i,e){if(i&1&&v(0,"span",4),i&2){let t=g(4);fe(t.cn(t.cx("closeIcon"),t.message==null?null:t.message.closeIcon)),_("pBind",t.ptm("closeIcon"));}}function Tc(i,e){if(i&1&&z(0,Mc,1,3,"span",17),i&2){let t=g(3);_("ngIf",t.message.closeIcon);}}function wc(i,e){if(i&1&&(be(),v(0,"svg",18)),i&2){let t=g(3);fe(t.cx("closeIcon")),_("pBind",t.ptm("closeIcon")),G("aria-hidden",!0);}}function Pc(i,e){if(i&1){let t=F();m(0,"div")(1,"button",15),A("click",function(o){w(t);let r=g(2);return P(r.onCloseIconClick(o));})("keydown.enter",function(o){w(t);let r=g(2);return P(r.onCloseIconClick(o));}
271),E(2,Tc,1,1,"span",2)(3,wc,1,4,":svg:svg",16),u()();}if(i&2){let t=g(2);d(),_("pBind",t.ptm("closeButton")),G("class",t.cx("closeButton"))("aria-label",t.closeAriaLabel)("data-p",t.dataP),d(),M(t.message.closeIcon?2:3);}}function Oc(i,e){if(i&1&&(m(0,"div",4),z(1,bc,8,12,"ng-container",5)(2,Ec,1,0,"ng-container",3),E(3,Pc,4,5,"div"),u()),i&2){let t=g();fe(t.cn(t.cx("messageContent"),t.message==null?null:t.message.contentStyleClass)),_("pBind",t.ptm("messageContent")),d(),_("ngIf",!t.template),d(),_("ngTemplateOutlet",t.template)("ngTemplateOutletContext",K(7,mc,t.message)),d(),M((t.message==null?null:t.message.closable)!==!1?3:-1);}}var Ac=["message"],Nc=["headless"];function xc(i,e){if(i&1){let t=F();m(0,"p-toastItem",1),A("onClose",function(o){w(t);let r=g();return P(r.onMessageClose(o));})("onAnimationEnd",function(){w(t);let o=g();return P(o.onAnimationEnd());})("onAnimationStart",function(){w(t);let o=g();return P(o.onAnimationStart());}),u();}if(i&2){let t=e.$implicit,n=e.index,o=g();_("message",t)("index",n)("life",o.life)("clearAll",o.clearAllTrigger())("template",o.template||o._template)("headlessTemplate",o.headlessTemplate||o._headlessTemplate)("pt",o.pt)("unstyled",o.unstyled())("motionOptions",o.computedMotionOptions());}}var kc={root:({instance:i})=>{let{_position:e}=i;return{position:"fixed",top:e==="top-right"||e==="top-left"||e==="top-center"?"20px":e==="center"?"50%":null,right:(e==="top-right"||e==="bottom-right")&&"20px",bottom:(e==="bottom-left"||e==="bottom-right"||e==="bottom-center")&&"20px",left:e==="top-left"||e==="bottom-left"?"20px":e==="center"||e==="top-center"||e==="bottom-center"?"50%":null};}},Ic={root:({instance:i})=>["p-toast p-component",`p-toast-${i._position}`],message:({instance:i})=>({"p-toast-message":!0,"p-toast-message-info":i.message.severity==="info"||i.message.severity===void 0,"p-toast-message-warn":i.message.severity==="warn","p-toast-message-error":i.message.severity==="error","p-toast-message-success":i.message.severity==="success","p-toast-message-secondary":i.message.severity==="secondary","p-toast-message-contrast":i.message.severity==="contrast"}),messageContent:"p-toast-message-content",messageIcon:({instance:i})=>({"p-toast-message-icon":!0,[`pi ${i.message.icon}`]:!!i.message.icon}),messageText:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail",closeButton:"p-toast-close-button",closeIcon:({instance:i})=>({"p-toast-close-icon":!0,[`pi ${i.message.closeIcon}`]:!!i.message.closeIcon})},fi=(()=>{let e=class e extends Rr{name="toast";style=La;classes=Ic;inlineStyles=kc;};f(e,"\u0275fac",(()=>{let n;return function(r){return(n||(n=Ct(e)))(r||e);};})()),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})();var Fa=new _n("TOAST_INSTANCE"),Rc=(()=>{let e=class e extends ki{zone;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;motionOptions=ke();clearAll=ke(null);onAnimationStart=Xt();onAnimationEnd=Xt();onBeforeEnter(n){this.onAnimationStart.emit(n.element);}onAfterLeave(n){!this.visible()&&!this.isDestroyed&&(this.onClose.emit({index:this.index,message:this.message}),this.isDestroyed||this.onAnimationEnd.emit(n.element));}onClose=new Mi();_componentStyle=p(fi);timeout;visible=Ti(void 0);isDestroyed=!1;isClosing=!1;constructor(n){super(),this.zone=n,Po(()=>{this.clearAll()&&this.visible.set(!1);});}onAfterViewInit(){this.message?.sticky&&this.visible.set(!0),this.initTimeout();}initTimeout(){this.message?.sticky||(this.clearTimeout(),this.zone.runOutsideAngular(()=>{this.visible.set(!0),this.timeout=setTimeout(()=>{this.visible.set(!1);},this.message?.life||this.life||3e3);}));}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);}onMouseEnter(){this.clearTimeout();}onMouseLeave(){this.isClosing||this.initTimeout();}onCloseIconClick=n=>{this.isClosing=!0,this.clearTimeout(),this.visible.set(!1),n.preventDefault();};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0;}onDestroy(){this.isDestroyed=!0,this.clearTimeout(),this.visible.set(!1);}get dataP(){return this.cn({[this.message?.severity]:this.message?.severity});}};f(e,"\u0275fac",function(o){return new(o||e)(Ao(yt));}),f(e,"\u0275cmp",D({type:e,selectors:[["p-toastItem"]],inputs:{message:"message",index:[2,"index","index",Yt],life:[2,"life","life",Yt],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"],clearAll:[1,"clearAll"]},outputs:{onAnimationStart:"onAnimationStart",onAnimationEnd:"onAnimationEnd",onClose:"onClose"},features:[Pi([fi]),nt],decls:4,vars:10,consts:[["container",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"pMotionOnBeforeEnter","pMotionOnAfterLeave","mouseenter","mouseleave","pMotion","pMotionAppear","pMotionName","pMotionOptions","pBind"],[3,"pBind","class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","check",3,"pBind","class"],["data-p-icon","info-circle",3,"pBind","class"],["data-p-icon","times-circle",3,"pBind","class"],["data-p-icon","exclamation-triangle",3,"pBind","class"],["data-p-icon","check",3,"pBind"],["data-p-icon","info-circle",3,"pBind"],["data-p-icon","times-circle",3,"pBind"],["data-p-icon","exclamation-triangle",3,"pBind"],["type","button","autofocus","",3,"click","keydown.enter","pBind"],["data-p-icon","times",3,"pBind","class"],[3,"pBind","class",4,"ngIf"],["data-p-icon","times",3,"pBind"]],template:function(o,r){o&1&&(m(0,"div",1,0),A("pMotionOnBeforeEnter",function(a){return r.onBeforeEnter(a);})("pMotionOnAfterLeave",function(a){return r.onAfterLeave(a);})("mouseenter",function(){return r.onMouseEnter();})("mouseleave",function(){return r.onMouseLeave();}),E(2,gc,1,5,"ng-container")(3,Oc,4,9,"div",2),u()),o&2&&(fe(r.cn(r.cx("message"),r.message==null?null:r.message.styleClass)),_("pMotion",r.visible())("pMotionAppear",!0)("pMotionName","p-toast-message")("pMotionOptions",r.motionOptions())("pBind",r.ptm("message")),G("id",r.message==null?null:r.message.id)("data-p",r.dataP),d(2),M(r.headlessTemplate?2:3));},dependencies:[Le,_e,jo,Pt,Fr,Ra,Da,$r,Vr,at,en,zr,Hr],encapsulation:2,changeDetection:0}));let i=e;return i;})(),go=(()=>{let e=class e extends ki{componentName="Toast";$pcToast=p(Fa,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=p(en,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]));}key;autoZIndex=!0;baseZIndex=0;life=3e3;styleClass;get position(){return this._position;}set position(n){this._position=n,this.cd.markForCheck();}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";
271hideTransitionOptions="250ms ease-in";motionOptions=ke(void 0);computedMotionOptions=$o(()=>De(De({},this.ptm("motion")),this.motionOptions()));breakpoints;onClose=new Mi();template;headlessTemplate;messageSubscription;clearSubscription;messages;messagesArchieve;_position="top-right";messageService=p(kr);_componentStyle=p(fi);styleElement;id=Rt("pn_id_");templates;clearAllTrigger=Ti(null);constructor(){super();}onInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(n=>{if(n)if(Array.isArray(n)){let o=n.filter(r=>this.canAdd(r));this.add(o);}else this.canAdd(n)&&this.add([n]);}),this.clearSubscription=this.messageService.clearObserver.subscribe(n=>{n?this.key===n&&this.clearAll():this.clearAll(),this.cd.markForCheck();});}clearAll(){this.clearAllTrigger.set({});}_template;_headlessTemplate;onAfterContentInit(){this.templates?.forEach(n=>{switch(n.getType()){case"message":this._template=n.template;break;case"headless":this._headlessTemplate=n.template;break;default:this._template=n.template;break;}});}onAfterViewInit(){this.breakpoints&&this.createStyle();}add(n){this.messages=this.messages?[...this.messages,...n]:[...n],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...n]:[...n]),this.cd.markForCheck();}canAdd(n){let o=this.key===n.key;return o&&this.preventOpenDuplicates&&(o=!this.containsMessage(this.messages,n)),o&&this.preventDuplicates&&(o=!this.containsMessage(this.messagesArchieve,n)),o;}containsMessage(n,o){return n?n.find(r=>r.summary===o.summary&&r.detail==o.detail&&r.severity===o.severity)!=null:!1;}onMessageClose(n){this.messages?.splice(n.index,1),this.onClose.emit({message:n.message}),this.onAnimationEnd(),this.cd.detectChanges();}onAnimationStart(){this.renderer.setAttribute(this.el?.nativeElement,this.id,""),this.autoZIndex&&this.el?.nativeElement.style.zIndex===""&&$n.set("modal",this.el?.nativeElement,this.baseZIndex||this.config.zIndex.modal);}onAnimationEnd(){this.autoZIndex&&xr(this.messages)&&$n.clear(this.el?.nativeElement);}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",xi(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let n="";for(let o in this.breakpoints){let r="";for(let s in this.breakpoints[o])r+=s+":"+this.breakpoints[o][s]+" !important;";n+=`
272                    @media screen and (max-width: ${o}) {
273                        .p-toast[${this.id}] {
274                           ${r}
275                        }
276                    }
277                `;}this.renderer.setProperty(this.styleElement,"innerHTML",n),xi(this.styleElement,"nonce",this.config?.csp()?.nonce);}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null);}onDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.el&&this.autoZIndex&&$n.clear(this.el.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle();}get dataP(){return this.cn({[this.position]:this.position});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["p-toast"]],contentQueries:function(o,r,s){if(o&1&&Ro(s,Ac,5)(s,Nc,5)(s,Ir,4),o&2){let a;Sn(a=bn())&&(r.template=a.first),Sn(a=bn())&&(r.headlessTemplate=a.first),Sn(a=bn())&&(r.templates=a);}},hostVars:5,hostBindings:function(o,r){o&2&&(G("data-p",r.dataP),Lo(r.sx("root")),fe(r.cn(r.cx("root"),r.styleClass)));},inputs:{key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",En],baseZIndex:[2,"baseZIndex","baseZIndex",Yt],life:[2,"life","life",Yt],styleClass:"styleClass",position:"position",preventOpenDuplicates:[2,"preventOpenDuplicates","preventOpenDuplicates",En],preventDuplicates:[2,"preventDuplicates","preventDuplicates",En],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"],breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[Pi([fi,{provide:Fa,useExisting:e},{provide:Lr,useExisting:e}]),No([en]),nt],decls:1,vars:1,consts:[[3,"message","index","life","clearAll","template","headlessTemplate","pt","unstyled","motionOptions","onClose","onAnimationEnd","onAnimationStart",4,"ngFor","ngForOf"],[3,"onClose","onAnimationEnd","onAnimationStart","message","index","life","clearAll","template","headlessTemplate","pt","unstyled","motionOptions"]],template:function(o,r){o&1&&z(0,xc,1,9,"p-toastItem",0),o&2&&_("ngForOf",r.messages);},dependencies:[Le,Go,Rc,at],encapsulation:2,changeDetection:0}));let i=e;return i;})(),_i=(()=>{let e=class e{};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275mod",vt({type:e})),f(e,"\u0275inj",ft({imports:[go,at,at]}));let i=e;return i;})();var Lc=["modal"];function Fc(i,e){if(i&1){let t=F();m(0,"button",6),A("click",function(){w(t);let o=g(2);return P(o.onCloseClick());}),v(1,"my-global-icon",7),u();}}function $c(i,e){if(i&1){let t=F();m(0,"input",10),A("click",function(){w(t);let o=g(3);return P(o.onCancelClick());}
277)("key.enter",function(){w(t);let o=g(3);return P(o.onCancelClick());}),u();}if(i&2){let t=g(3);_("value",t.cancel.value);}}function Vc(i,e){if(i&1){let t=F();m(0,"input",11),A("click",function(){w(t);let o=g(3);return P(o.onConfirmClick());})("key.enter",function(){w(t);let o=g(3);return P(o.onConfirmClick());}),u();}if(i&2){let t=g(3);_("value",t.confirm.value);}}function Hc(i,e){if(i&1&&(m(0,"div",5),E(1,$c,1,1,"input",8),E(2,Vc,1,1,"input",9),u()),i&2){let t=g(2);d(),M(t.hasCancel()?1:-1),d(),M(t.hasConfirm()?2:-1);}}function zc(i,e){if(i&1&&(m(0,"div",1)(1,"h4",2),I(2),u(),E(3,Fc,2,0,"button",3),u(),v(4,"div",4),E(5,Hc,3,2,"div",5)),i&2){let t=g();d(2),V(t.title),d(),M(t.close?3:-1),d(),_("innerHTML",t.content,tt),d(),M(t.hasCancel()||t.hasConfirm()?5:-1);}}var $a=(()=>{let e=class e{modalService=p(Ke);modal=J("modal");title;content;close;cancel;confirm;modalRef;show(n){if(this.modalRef instanceof Tr&&this.modalService.hasOpenModals()){Fe.error("Cannot open another custom modal, one is already opened.");return;}let{title:o,content:r,close:s,cancel:a,confirm:l}=n;this.title=o,this.content=r,this.close=s,this.cancel=a,this.confirm=l,this.modalRef=this.modalService.open(this.modal(),{centered:!0,backdrop:"static",keyboard:!1,size:"lg"});}onCancelClick(){this.modalRef.close();let n=this.cancel;typeof n.action=="function"&&n.action(),this.destroy();}onCloseClick(){this.modalRef.close(),this.destroy();}onConfirmClick(){this.modalRef.close();let n=this.confirm;typeof n.action=="function"&&n.action(),this.destroy();}hasCancel(){return typeof this.cancel<"u";}hasConfirm(){return typeof this.confirm<"u";}destroy(){delete this.modalRef,delete this.title,delete this.content,delete this.close,delete this.cancel,delete this.confirm;}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-custom-modal"]],viewQuery:function(o,r){o&1&&oe(r.modal,Lc,5),o&2&&re();},decls:2,vars:0,consts:()=>{let n;return n="Close this modal",[["modal",""],[1,"modal-header"],[1,"modal-title"],["title",n,1,"border-0","p-0"],[1,"modal-body",3,"innerHTML"],[1,"modal-footer","inputs"],["title",n,1,"border-0","p-0",3,"click"],["iconName","cross"],["type","button","role","button",1,"peertube-button","secondary-button",3,"value"],["type","button","role","button",1,"peertube-button","primary-button",3,"value"],["type","button","role","button",1,"peertube-button","secondary-button",3,"click","key.enter","value"],["type","button","role","button",1,"peertube-button","primary-button",3,"click","key.enter","value"]];},template:function(o,r){o&1&&z(0,zc,6,4,"ng-template",null,0,ae);},dependencies:[X],styles:[`li[_ngcontent-%COMP%]{margin-bottom:10px}
278/*# sourceMappingURL=custom-modal.component-DPQFZ2GC.css.map */`]}));let i=e;return i;})();var Bc=["dropdown"],Gc=()=>[import("./chunk-7PTM5BWE.js").then(i=>i.UserNotificationsComponent)],jc=(i,e)=>({shown:i,hidden:e}),Kc=i=>({loaded:i});function Qc(i,e){if(i&1&&(m(0,"div",10),I(1),u()),i&2){let t=g(2);d(),V(t.unreadNotifications);}}function qc(i,e){i&1&&(m(0,"div",10),I(1,"99+"),u());}function Wc(i,e){if(i&1&&E(0,Qc,2,1,"div",10)(1,qc,2,0,"div",10),i&2){let t=g();M(t.unreadNotifications>0&&t.unreadNotifications<100?0:t.unreadNotifications>=100?1:-1);}}function Xc(i,e){i&1&&v(0,"my-global-icon",11);}function Yc(i,e){i&1&&v(0,"my-global-icon",12);}function Zc(i,e){if(i&1&&E(0,Xc,1,0,"my-global-icon",11)(1,Yc,1,0,"my-global-icon",12),i&2){let t=g();M(t.unreadNotifications?0:1);}}function Jc(i,e){i&1&&ge(0);}function ed(i,e){i&1&&ge(0);}function td(i,e){if(i&1){let t=F();m(0,"a",13,2),A("click",function(){w(t);let o=se(1),r=g();return P(r.onNavigate(o));}),z(2,Jc,1,0,"ng-container",14)(3,ed,1,0,"ng-container",14),u();}if(i&2){g();let t=se(1),n=se(3);d(2),_("ngTemplateOutlet",t),d(),_("ngTemplateOutlet",n);}}function nd(i,e){i&1&&ge(0);}function id(i,e){i&1&&ge(0);}function od(i,e){if(i&1){let t=F();m(0,"my-button",25),A("click",function(){w(t);let o=g(2);return P(o.markAllAsRead());}),u();}}function rd(i,e){if(i&1){let t=F();m(0,"my-user-notifications",26),A("notificationsLoaded",function(){w(t);let o=g(2);return P(o.onNotificationLoaded());}),u();}if(i&2){let t=g(2);_("ignoreLoadingBar",!0)("infiniteScroll",!1)("itemsPerPage",10)("markAllAsReadSubject",t.markAllAsReadSubject)("userNotificationReload",t.userNotificationReload);}}function sd(i,e){i&1&&(m(0,"div",21),v(1,"my-loader",27),u());}function ad(i,e){i&1&&(m(0,"a",24),Ne(1),L(2,7),xe(),v(3,"my-global-icon",28),u());}function ld(i,e){if(i&1){let t=F();m(0,"div",15,3),A("openChange",function(o){w(t);let r=g();return P(o===!0?r.onDropdownShown():r.onDropdownHidden());}),m(2,"button",16),z(3,nd,1,0,"ng-container",14)(4,id,1,0,"ng-container",14),u(),m(5,"div",17)(6,"div",18)(7,"header")(8,"div",19),L(9,5),u(),E(10,od,1,0,"my-button",20),u(),Kt(11,rd,1,5),qt(12,11,Gc),E(14,sd,2,0,"div",21),m(15,"footer")(16,"a",22,4),A("click",function(){w(t);let o=se(17),r=g();return P(r.onNavigate(o));}
278),v(18,"my-global-icon",23),Ne(19),L(20,6),xe(),u(),E(21,ad,4,0,"a",24),u()()()();}if(i&2){let t=g(),n=se(1),o=se(3);d(2),_("ngClass",st(8,jc,t.opened,t.isInMobileView)),d(),_("ngTemplateOutlet",n),d(),_("ngTemplateOutlet",o),d(2),_("ngClass",K(11,Kc,t.loaded)),d(4),M(t.unreadNotifications>0?10:-1),d(2),Wt(t.opened),d(2),M(t.loaded?-1:14),d(7),M(t.loaded?21:-1);}}var Va=(()=>{let e=class e{userNotificationService=p(Gn);screenService=p(Lt);peertubeSocket=p(qr);notifier=p(Ur);router=p(ye);dropdown=J("dropdown");unreadNotifications=0;loaded=!1;opened=!1;markAllAsReadSubject=new Je();userNotificationReload=new Je();notificationSub;routeSub;ngOnInit(){this.userNotificationService.countUnreadNotifications().subscribe({next:n=>{this.unreadNotifications=n,this.subscribeToNotifications();},error:n=>this.notifier.handleError(n)}),this.routeSub=this.router.events.pipe(pe(n=>n instanceof Tn)).subscribe(()=>this.closeDropdown());}ngOnDestroy(){this.notificationSub&&this.notificationSub.unsubscribe(),this.routeSub&&this.routeSub.unsubscribe();}get isInMobileView(){return this.screenService.isInMobileView();}closeDropdown(){let n=this.dropdown();n&&n.close();}onDropdownShown(){this.loaded&&this.userNotificationReload.next(!0),this.opened=!0;}onDropdownHidden(){this.opened=!1;}onNotificationLoaded(){this.loaded=!0;}onNavigate(n){this.closeDropdown();}markAllAsRead(){this.markAllAsReadSubject.next(!0);}subscribeToNotifications(){return gt(this,null,function*(){let n=yield this.peertubeSocket.getMyNotificationsSocket();this.notificationSub=n.subscribe(o=>{if(o.type==="new")return this.unreadNotifications++;if(o.type==="read")return this.unreadNotifications--;if(o.type==="read-all")return this.unreadNotifications=0;});});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-notification-dropdown"]],viewQuery:function(o,r){o&1&&oe(r.dropdown,Bc,5),o&2&&re();},decls:6,vars:1,consts:()=>{let n;n="View your notifications";let o;o="View your notifications";let r;r="Mark all as read";let s;s="Update your notification preferences";let a;a="Notifications";let l;l="Settings";let c;return c="View all",[["notificationNumber",""],["notificationIcon",""],["link",""],["dropdown","ngbDropdown"],["settingsNotifications",""],a,l,c,["title",n,"routerLink","/my-account/notifications","routerLinkActive","active",1,"peertube-button","tertiary-button","rounded-icon-button","notification-inbox-link","inherit-color"],["ngbDropdown","","autoClose","outside","placement","bottom-end auto","container","body","dropdownClass","dropdown-notifications"],[1,"unread-notifications"],["iconName","opened-bell"],["iconName","bell"],["title",n,"routerLink","/my-account/notifications","routerLinkActive","active",1,"peertube-button","tertiary-button","rounded-icon-button","notification-inbox-link","inherit-color",3,"click"],[4,"ngTemplateOutlet"],["ngbDropdown","","autoClose","outside","placement","bottom-end auto","container","body","dropdownClass","dropdown-notifications",3,"openChange"],["title",o,"ngbDropdownToggle","",1,"peertube-button","tertiary-button","rounded-icon-button","disable-dropdown-caret","notification-inbox-dropdown","inherit-color",3,"ngClass"],["ngbDropdownMenu",""],[1,"content",3,"ngClass"],[1,"title"],["label",r,"icon","circle-tick","small","true","theme","secondary"],[1,"loader","mt-4"],["title",s,"routerLink","/my-account/settings","fragment","notifications",1,"text-decoration-underline",3,"click"],["iconName","cog",1,"me-1","secondary-icon-color"],["routerLink","/my-account/notifications",1,"peertube-button-link","secondary-button"],["label",r,"icon","circle-tick","small","true","theme","secondary",3,"click"],["inPopup","true",3,"notificationsLoaded","ignoreLoadingBar","infiniteScroll","itemsPerPage","markAllAsReadSubject","userNotificationReload"],["size","xl","loading","true"],["iconName","arrow-left",1,"rotate-180","ms-2"]];},template:function(o,r){o&1&&(z(0,Wc,2,1,"ng-template",null,0,ae)(2,Zc,2,1,"ng-template",null,1,ae),E(4,td,4,2,"a",8)(5,ld,22,13,"div",9)),o&2&&(d(4),M(r.isInMobileView?4:5));},dependencies:[Le,_e,Pt,X,ts,At,Pn,It,Ln,Dn,Rn,$t],styles:[`.content[_ngcontent-%COMP%]{scrollbar-color:auto;background:var(--bg-secondary-400);padding-inline-start:calc(1.325rem + .9vw)}@media(min-width:1200px){.content[_ngcontent-%COMP%]{padding-inline-start:2rem}}.content[_ngcontent-%COMP%]{padding-inline-end:calc(1.325rem + .9vw)}@media(min-width:1200px){.content[_ngcontent-%COMP%]{padding-inline-end:2rem}}.content[_ngcontent-%COMP%]{padding-top:calc(1.325rem + .9vw)}@media(min-width:1200px){.content[_ngcontent-%COMP%]{padding-top:2rem}}.content[_ngcontent-%COMP%]{padding-bottom:calc(1.325rem + .9vw)}@media(min-width:1200px){.content[_ngcontent-%COMP%]{padding-bottom:2rem}}header[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}header[_ngcontent-%COMP%]{margin-bottom:calc(1.275rem + .3vw)}@media(min-width:1200px){header[_ngcontent-%COMP%]{margin-bottom:1.5rem}}header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--fg-300);font-size:22px;font-weight:700}footer[_ngcontent-%COMP%]{margin-top:calc(1.275rem + .3vw)}@media(min-width:1200px){footer[_ngcontent-%COMP%]{margin-top:1.5rem}}  .dropdown-notifications .dropdown-menu{padding:0;font-family:Source Sans Pro,sans-serif;width:550px;max-width:75vw}  .dropdown-notifications .dropdown-menu .loader{display:flex;align-items:center;justify-content:center;padding:5px 0}  .dropdown-notifications .dropdown-menu .content{max-height:250px;transition:max-height .15s ease-out;display:flex;height:500px;flex-direction:column}  .dropdown-notifications .dropdown-menu .content.loaded{max-height:500px}  .dropdown-notifications .dropdown-menu .content>my-user-notifications:nth-child(2){overflow-y:auto;flex-grow:1}.notification-inbox-dropdown[_ngcontent-%COMP%], .notification-inbox-link[_ngcontent-%COMP%]{cursor:pointer;position:relative;display:inline-block}.notification-inbox-dropdown[_ngcontent-%COMP%]   .unread-notifications[_ngcontent-%COMP%], .notification-inbox-link[_ngcontent-%COMP%]   .unread-notifications[_ngcontent-%COMP%]{margin-left:20px}.notification-inbox-dropdown[_ngcontent-%COMP%]   .unread-notifications[_ngcontent-%COMP%], .notification-inbox-link[_ngcontent-%COMP%]   .unread-notifications[_ngcontent-%COMP%]{position:absolute;top:6px;left:0;background-color:var(--primary);color:var(--on-primary);font-weight:700;font-size:10px;border-radius:16px;line-height:16px;padding:0 3px;min-width:16px}
279/*# sourceMappingURL=notification-dropdown.component-MDYTG4PB.css.map */`]}));let i=e;return i;})();var cd=["modal"];function dd(i,e){if(i&1&&v(0,"my-user-interface-settings",12),i&2){let t=g(2);_("user",t.user)("userInformationLoaded",t.userInformationLoaded);}}function ud(i,e){if(i&1&&v(0,"my-user-video-settings",12),i&2){let t=g(2);_("user",t.user)("userInformationLoaded",t.userInformationLoaded);}}function md(i,e){if(i&1){let t=F();
279m(0,"div",5)(1,"h4",6),L(2,1),u(),m(3,"button",7),A("click",function(){let o=w(t).close;return P(o());}),v(4,"my-global-icon",8),u()(),m(5,"div",9)(6,"my-alert",10),L(7,2),u(),m(8,"h5",11),L(9,3),u(),E(10,dd,1,2,"my-user-interface-settings",12),m(11,"h5",11),L(12,4),u(),E(13,ud,1,2,"my-user-video-settings",12),u();}if(i&2){let t=g();d(10),M(t.isUserLoggedIn()?-1:10),d(3),M(t.isUserLoggedIn()?-1:13);}}var Ha=(()=>{let e=class e{modalService=p(Ke);userService=p(Bn);authService=p(le);localStorageService=p(Vn);route=p(Ot);peertubeRouter=p(Hn);modal=J("modal");user;userInformationLoaded=new Eo(1);openedModal;routeSub;loginSub;localStorageSub;ngOnInit(){this.user=this.userService.getAnonymousUser(),this.localStorageSub=this.localStorageService.watch().subscribe({next:()=>this.user=this.userService.getAnonymousUser()}),this.userInformationLoaded.next(!0),this.loginSub=this.authService.loginChangedSource.pipe(pe(n=>n!==Qe.LoggedIn)).subscribe({next:()=>{this.user=this.userService.getAnonymousUser(),this.userInformationLoaded.next(!0);}}),this.routeSub=this.route.queryParams.subscribe(n=>{n.modal===e.QUERY_MODAL_NAME&&(this.openedModal=this.modalService.open(this.modal(),{centered:!0}),this.openedModal.hidden.subscribe(()=>this.setModalQuery("remove")));});}ngOnDestroy(){this.routeSub&&this.routeSub.unsubscribe(),this.loginSub&&this.loginSub.unsubscribe(),this.localStorageSub&&this.localStorageSub.unsubscribe();}isUserLoggedIn(){return this.authService.isLoggedIn();}show(){this.setModalQuery("add");}setModalQuery(n){let o=n==="add"?e.QUERY_MODAL_NAME:null;this.peertubeRouter.silentNavigate([],{modal:o},this.route);}};f(e,"QUERY_MODAL_NAME","quick-settings"),f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-quick-settings"]],viewQuery:function(o,r){o&1&&oe(r.modal,cd,5),o&2&&re();},decls:2,vars:0,consts:()=>{let n;n="Close this modal";let o;o="My settings";let r;r="These settings apply only to your session on this instance.";let s;s="INTERFACE";let a;return a="VIDEOS",[["modal",""],o,r,s,a,[1,"modal-header"],[1,"modal-title"],["title",n,1,"border-0","p-0",3,"click"],["iconName","cross"],[1,"modal-body"],["type","primary"],[1,"section-label","mt-4","mb-3"],["reactiveUpdate","true","notifyOnUpdate","true",3,"user","userInformationLoaded"]];},template:function(o,r){o&1&&z(0,md,14,2,"ng-template",null,0,ae);},dependencies:[X,ls,ss,rs],styles:[`h5[_ngcontent-%COMP%]{font-size:1rem}
280/*# sourceMappingURL=quick-settings-modal.component-Q5WEHPND.css.map */`]}));let i=e;return i;})();var Ua=bo(Br());function pd(i,e){i&1&&(m(0,"span"),L(1,0),u());}function gd(i,e){i&1&&(m(0,"span"),L(1,1),u());}var yi=(()=>{let e=class e{result=ke(void 0);highlight=ke(void 0);describedby=ke(void 0);disabled=!1;active=!1;getTitle(){let n=this.result();if(n.type==="search-instance")return"Search \""+n.text+"\" in this instance's network";if(n.type==="search-index")return"Search \""+n.text+"\" in the vidiverse";}ngOnInit(){this.result().default&&(this.active=!0);}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-suggestion"]],inputs:{result:[1,"result"],highlight:[1,"highlight"],describedby:[1,"describedby"]},decls:7,vars:7,consts:()=>{let n;n="In this instance's network";let o;return o="In the vidiverse",[n,o,["tabindex","-1",1,"d-flex","flex-auto","align-items-center","p-2"],["iconName","search",1,"me-2"],[1,"flex-auto","overflow-hidden","no-wrap","d-flex","align-items-center"],[1,"result-type","border","rounded","flex-shrink-0","px-1","ms-1","f6"]];},template:function(o,r){o&1&&(m(0,"a",2),v(1,"my-global-icon",3),m(2,"div",4),I(3),u(),m(4,"div",5),E(5,pd,2,0,"span")(6,gd,2,0,"span"),u()()),o&2&&(Do("focus-visible",r.active),G("title",r.getTitle())("aria-describedby",r.describedby()),d(2),G("aria-label",r.result().text),d(),Ee(" ",r.result().text," "),d(2),M(r.result().type==="search-instance"?5:r.result().type==="search-index"?6:-1));},dependencies:[X],styles:[`a[_ngcontent-%COMP%]{width:100%}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:active{text-decoration:none}a[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{color:var(--fg);opacity:1}a.focus-visible[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover.focus-visible{background-color:var(--primary);color:var(--on-primary)}.result-type[_ngcontent-%COMP%]{background-color:var(--bg);color:var(--fg-400)}my-global-icon[_ngcontent-%COMP%]{color:var(--on-primary);display:inline-block;width:17px;height:17px;line-height:17px}
281/*# sourceMappingURL=suggestion.component-7AEDSUGD.css.map */`]}));let i=e;return i;})();function hd(i,e){if(i&1){let t=F();m(0,"li",21),A("mouseenter",function(){let o=w(t).$index,r=g();return P(r.onSuggestionHover(o));})("click",function(){let o=w(t).$implicit,r=g();return P(r.onSuggestionClicked(o));})("keyup.enter",function(){let o=w(t).$implicit,r=g();return P(r.onSuggestionClicked(o));}),v(1,"my-suggestion",22),u();}if(i&2){let t=e.$implicit,n=g();d(),_("result",t)("highlight",n.search)("describedby",n.showSearchGlobalHelp()?"typeahead-help":void 0);}}function fd(i,e){if(i&1&&(m(0,"span",18),L(1,8),u()),i&2){let t=g(2);d(),Mt(t.serverConfig.search.searchIndex.url),Tt(1);}}function _d(i,e){if(i&1&&(m(0,"div",16)(1,"div",23)(2,"div",24),L(3,6),u(),E(4,fd,2,1,"span",18),u(),m(5,"div",18),L(6,7),u()()),i&2){let t=g();d(4),M(t.serverConfig?4:-1);}}var yd=(0,Ua.default)("peertube:search"),Ba=(()=>{let e=class e{authService=p(le);router=p(ye);route=p(Ot);serverService=p(Ce);injector=p(_t);suggestionItems=Vo(yi);hasChannel=!1;inChannel=!1;areSuggestionsOpened=!0;search="";serverConfig;inThisChannelText;keyboardEventsManager;results=[];activeSearch;scheduleKeyboardEventsInit=!1;ngOnInit(){this.route.queryParams.pipe(Ue(n=>this.isOnSearch()&&n.search!==void 0&&n.search!==null)).subscribe(n=>this.search=n.search),this.serverConfig=this.serverService.getHTMLConfig(),this.computeTypeahead(),this.serverService.configReloaded.subscribe(n=>{this.serverConfig=n,this.computeTypeahead();});}ngAfterViewChecked(){this.scheduleKeyboardEventsInit&&!this.keyboardEventsManager&&setTimeout(()=>this.initKeyboardEventsManager(),0);}ngOnDestroy(){this.keyboardEventsManager&&this.keyboardEventsManager.change.unsubscribe();}showSearchGlobalHelp(){return this.search&&this.areSuggestionsOpened&&this.keyboardEventsManager?.activeItem?.result()?.type==="search-index";}canSearchAnyURI(){return this.authService.isLoggedIn()?this.serverConfig.search.remoteUri.users:this.serverConfig.search.remoteUri.anonymous;}onSearchChange(){this.computeTypeahead();}initKeyboardEventsManager(){if(this.keyboardEventsManager)return;this.keyboardEventsManager=new Ri(this.suggestionItems,this.injector);let n=this.suggestionItems().findIndex(o=>o.result().default===!0);n===-1&&Fe.error("Cannot find active index.",{suggestionItems:this.suggestionItems()}),this.updateItemsState(n),this.keyboardEventsManager.change.subscribe(o=>this.updateItemsState());}computeTypeahead(){let n=this.serverConfig.search.searchIndex;this.activeSearch||(n.enabled&&(n.isDefaultSearch||n.disableLocalSearch)?this.activeSearch="search-index":this.activeSearch="search-instance"),this.areSuggestionsOpened=!0,this.results=[],this.search&&((n.enabled===!1||n.disableLocalSearch!==!0)&&this.results.push({text:this.search,type:"search-instance",default:this.activeSearch==="search-instance"}),n.enabled&&this.results.push({text:this.search,type:"search-index",default:this.activeSearch==="search-index"}),this.scheduleKeyboardEventsInit=!0,yd("Typeahead rebuilt",this.results));}updateItemsState(n){if(this.keyboardEventsManager){n!==void 0&&this.keyboardEventsManager.setActiveItem(n);for(let o of this.suggestionItems()){if(this.keyboardEventsManager.activeItem&&this.keyboardEventsManager.activeItem===o){o.active=!0,this.activeSearch=o.result().type;continue;}o.active=!1;}}}onSuggestionClicked(n){this.doSearch(this.buildSearchTarget(n));}onSuggestionHover(n){this.updateItemsState(n);}handleKey(n){if(this.keyboardEventsManager)switch(n.key){case"ArrowDown":case"ArrowUp":n.stopPropagation(),this.keyboardEventsManager.onKeydown(n);break;case"Enter":n.stopPropagation(),this.doSearch();break;}}isOnSearch(){return window.location.pathname==="/search";}doSearch(n){this.areSuggestionsOpened=!1;let o={};
281this.isOnSearch()&&this.route.snapshot.queryParams&&Object.assign(o,this.route.snapshot.queryParams),n||(n=this.buildSearchTarget(this.keyboardEventsManager.activeItem.result())),Object.assign(o,{search:this.search,searchTarget:n}),(this.authService.isLoggedIn()?this.loadUserLanguagesIfNeeded(o):Ae(!0)).subscribe(()=>this.router.navigate(["/search"],{queryParams:o}));}loadUserLanguagesIfNeeded(n){return n?.languageOneOf?Ae(n):this.authService.userInformationLoaded.pipe(Ue(),Mo(()=>Object.assign(n,{languageOneOf:this.authService.getUser().videoLanguages})));}buildSearchTarget(n){return n.type==="search-index"?"search-index":"local";}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-search-typeahead"]],viewQuery:function(o,r){o&1&&oe(r.suggestionItems,yi,5),o&2&&re();},decls:31,vars:4,consts:()=>{let n;n="Search";let o;o="Search videos, channels\u2026";let r;r="Your query will be matched against video names or channel names.";let s;s="ADVANCED SEARCH";let a;a="will list the matching channel";let l;l="will list the matching channel";let c;c="will list the matching video";let h;h="GLOBAL SEARCH";let y;y="Results will be augmented with those of a third-party index. Only data necessary to make the query will be sent.";let N;return N="using "+"\uFFFD0\uFFFD"+"",[["searchVideo",""],r,s,a,l,c,h,y,N,["id","typeahead-container",1,"position-relative"],["title",n,1,"button-unstyle","search-button",3,"click"],["iconName","search"],["type","search","id","search-video","name","search-video","aria-label","Search videos, playlists, channels\u2026","placeholder",o,"autocomplete","off","aria-describedby","typeahead-input-help",3,"ngModelChange","keydown","ngModel"],[1,"position-absolute","jump-to-suggestions"],["role","listbox",1,"p-0","m-0",3,"hidden"],["role","option","aria-selected","true","tabindex","0",1,"suggestion","d-flex","flex-justify-start","flex-items-center","p-0","f5"],["id","typeahead-suggestion-help",1,"overflow-hidden"],["id","typeahead-input-help",1,"overflow-hidden",3,"hidden"],[1,"muted"],[1,"mt-3","mb-2","section-label"],[1,"flex-auto","muted"],["role","option","aria-selected","true","tabindex","0",1,"suggestion","d-flex","flex-justify-start","flex-items-center","p-0","f5",3,"mouseenter","click","keyup.enter"],[3,"result","highlight","describedby"],[1,"d-flex","justify-content-between"],[1,"section-label","mb-2"]];},template:function(o,r){if(o&1){let s=F();m(0,"div",9)(1,"button",10),A("click",function(){return r.doSearch();}),v(2,"my-global-icon",11),u(),m(3,"input",12,0),rt("ngModelChange",function(l){return w(s),ot(r.search,l)||(r.search=l),P(l);}),A("ngModelChange",function(){return r.onSearchChange();})("keydown",function(l){return r.handleKey(l);}),u(),m(5,"div",13)(6,"ul",14),Ge(7,hd,2,3,"li",15,Be),u(),E(9,_d,7,1,"div",16),m(10,"div",17)(11,"span",18),L(12,1),u(),m(13,"div",19),L(14,2),u(),m(15,"ul")(16,"li")(17,"em"),I(18,"@channel_id@domain"),u(),m(19,"span",20),L(20,3),u()(),m(21,"li")(22,"em"),I(23,"URL"),u(),m(24,"span",18),L(25,4),u()(),m(26,"li")(27,"em"),I(28,"UUID"),u(),m(29,"span",18),L(30,5),u()()()()()();}o&2&&(d(3),it("ngModel",r.search),d(3),_("hidden",!r.search||!r.areSuggestionsOpened),d(),je(r.results),d(2),M(r.showSearchGlobalHelp()?9:-1),d(),_("hidden",r.search));},dependencies:[kt,On,Nt,xt,X,yi],styles:[`#search-video[_ngcontent-%COMP%]{text-overflow:ellipsis;font-size:16px;padding:var(--input-y-padding) var(--input-x-padding);width:100%;max-width:100%;color:var(--input-fg);background-color:var(--input-bg);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);line-height:24px}#search-video[_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color);font-size:var(--input-placeholder-font-size)}#search-video[readonly][_ngcontent-%COMP%]{color:var(--fg-300)}#search-video[_ngcontent-%COMP%]:focus, #search-video[_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--fg-100);outline:0}#search-video[disabled][_ngcontent-%COMP%]{color:var(--fg-300);opacity:.8}@media screen and (max-width: calc(100% + 40px)){#search-video[_ngcontent-%COMP%]{width:100%}}#search-video[_ngcontent-%COMP%]{padding-inline-start:42px;padding-inline-end:20px}#search-video[_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color)}.search-button[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0}@supports (inset-inline-start: 18px){.search-button[_ngcontent-%COMP%]{inset-inline-start:18px}}@supports not (inset-inline-start: 18px){.search-button[_ngcontent-%COMP%]{left:18px}}.search-button[_ngcontent-%COMP%]:hover{opacity:.8}.search-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{height:18px;width:18px;position:relative;top:-2px}.jump-to-suggestions[_ngcontent-%COMP%]{top:100%;left:0;z-index:12650;width:100%}#typeahead-suggestion-help[_ngcontent-%COMP%], #typeahead-input-help[_ngcontent-%COMP%], .suggestion[_ngcontent-%COMP%]{border:1px solid var(--bg);background:var(--bg-secondary-400);transition:.3s ease;
281transition-property:box-shadow;cursor:pointer}#typeahead-suggestion-help[_ngcontent-%COMP%], #typeahead-input-help[_ngcontent-%COMP%], .suggestion[_ngcontent-%COMP%]:last-of-type{border-bottom-right-radius:3px;border-bottom-left-radius:3px}#typeahead-suggestion-help[_ngcontent-%COMP%], #typeahead-input-help[_ngcontent-%COMP%]{margin-top:9px;width:100%;padding:.5rem 1rem;white-space:normal}#typeahead-suggestion-help[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], #typeahead-input-help[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin-bottom:.5rem}#typeahead-suggestion-help[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   em[_ngcontent-%COMP%], #typeahead-input-help[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-weight:600;font-style:normal;margin-inline-end:.2rem}#typeahead-container[_ngcontent-%COMP%]{font-size:14px}#typeahead-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{display:none}@media screen and (min-width:500px){#typeahead-container[_ngcontent-%COMP%]:focus-within > div[_ngcontent-%COMP%]:last-child{display:initial!important}}#typeahead-container[_ngcontent-%COMP%]:focus-within > div[_ngcontent-%COMP%]:last-child   #typeahead-suggestion-help[_ngcontent-%COMP%], #typeahead-container[_ngcontent-%COMP%]:focus-within > div[_ngcontent-%COMP%]:last-child   #typeahead-input-help[_ngcontent-%COMP%], #typeahead-container[_ngcontent-%COMP%]:focus-within > div[_ngcontent-%COMP%]:last-child   .suggestion[_ngcontent-%COMP%]{box-shadow:#0003 0 10px 20px -5px}#typeahead-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%]{box-shadow:#0003 0 1px 20px;border-end-start-radius:0;border-end-end-radius:0}@media screen and (min-width:1000px){#typeahead-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%]{width:500px}}my-suggestion[_ngcontent-%COMP%]{width:100%}
282/*# sourceMappingURL=search-typeahead.component-QGWFSOEV.css.map */`]}));let i=e;return i;})();var Cd=["quickSettingsModal"],vd=["dropdown"],Sd=i=>({"search-hidden":i}),bd=i=>["/a",i];function Ed(i,e){if(i&1){let t=F();m(0,"div",9)(1,"div",17),L(2,3),u(),m(3,"a",18),A("click",function(){w(t);let o=g();return P(o.onOpenClientClick());}),I(4,"Open"),u(),m(5,"button",19),A("click",function(){w(t);let o=g();return P(o.hideMobileMsg());}),v(6,"my-global-icon",20),u()();}if(i&2){let t=g();d(3),_("href",t.androidAppUrl||t.iosAppUrl,jt);}}function Md(i,e){if(i&1&&(m(0,"span",13),I(1),u()),i&2){let t=g();d(),V(t.instanceName);}}function Td(i,e){if(i&1&&v(0,"my-search-typeahead",14),i&2){let t=g();_("hidden",!t.isLoaded());}}function wd(i,e){if(i&1&&(m(0,"a",22),v(1,"my-signup-label",25),u()),i&2){let t=g(2);d(),_("requiresApproval",t.requiresApproval);}}function Pd(i,e){if(i&1){let t=F();m(0,"my-button",21),A("click",function(){w(t);let o=g();return P(o.openQuickSettings());}),u(),E(1,wd,2,1,"a",22),v(2,"my-login-link",23)(3,"my-login-link",24);}if(i&2){let t=g();d(),M(t.isRegistrationAllowed()?1:-1);}}function Od(i,e){if(i&1&&(m(0,"a",35,2),v(2,"my-global-icon",44),Ne(3),L(4,6),xe(),u()),i&2){let t=g(2);_("routerLink",K(1,bd,t.user.account.nameWithHost));}}function Ad(i,e){i&1&&(m(0,"a",37),v(1,"my-global-icon",45),Ne(2),L(3,7),xe(),u());}function Nd(i,e){if(i&1){let t=F();m(0,"button",46),A("click",function(){w(t);let o=g(2);return P(o.openHotkeysCheatSheet());}),v(1,"my-global-icon",47),Ne(2),L(3,8),xe(),u();}}function xd(i,e){if(i&1){let t=F();v(0,"my-notification-dropdown",26)(1,"my-button",27),m(2,"div",28,1)(4,"button",29),v(5,"my-actor-avatar",30),m(6,"div",31)(7,"div",32),I(8),u(),m(9,"div",33),I(10),u()()(),m(11,"div",34),E(12,Od,5,3,"a",35),v(13,"div",36),E(14,Ad,4,0,"a",37),v(15,"div",36),m(16,"a",38),v(17,"my-global-icon",39),m(18,"span"),L(19,4),u(),m(20,"span",40),I(21),u()(),E(22,Nd,4,0,"button",41),m(23,"button",42),A("click",function(o){w(t);let r=g();return P(r.logout(o));}),v(24,"my-global-icon",43),Ne(25),L(26,5),xe(),u()()();}if(i&2){let t=g();d(5),_("actor",t.user.account),d(3),V(t.user.account==null?null:t.user.account.displayName),d(2),Ee("@",t.user.username),d(2),M(t.user.account?12:-1),d(2),M(t.user.account?14:-1),d(7
282),V(t.currentInterfaceLanguage),d(),M(t.isInMobileView?-1:22);}}var Ga=(()=>{let e=class e{authService=p(le);serverService=p(Ce);redirectService=p(Ie);hotkeysService=p(Dt);screenService=p(Lt);modalService=p(Qn);router=p(ye);menu=p(Ft);headerService=p(Jr);localeId=p(wt);quickSettingsModal=J("quickSettingsModal");dropdown=J("dropdown");user;loggedIn;hotkeysHelpVisible=!1;mobileMsg=!1;androidAppUrl="";iosAppUrl="";searchHidden=!1;config;htmlConfig;quickSettingsModalSub;getSearchHiddenSub;hotkeysSub;authSub;get currentInterfaceLanguage(){let n="English",o=vr()?Sr():fr(this.localeId);return o&&pr[o]||n;}get requiresApproval(){return this.config.signup.requiresApproval;}get instanceName(){return this.serverService.getHTMLConfig().instance.name;}isInstanceNameDisplayed(){return this.serverService.getHTMLConfig().client.header.hideInstanceName!==!0;}isLoaded(){return this.config&&(!this.loggedIn||!!this.user?.account);}isInMobileView(){return this.screenService.isInMobileView();}isInSmallView(){return this.screenService.isInSmallView();}getLogoUrl(){let n=this.serverService.getHTMLConfig().instance.logo;return this.isInMobileView()?Ni(n.filter(o=>o.type==="header-square"),36)?.fileUrl:Ni(n.filter(o=>o.type==="header-wide"),36)?.fileUrl;}ngOnInit(){this.htmlConfig=this.serverService.getHTMLConfig(),this.loggedIn=this.authService.isLoggedIn(),this.updateUserState(),this.authSub=this.authService.loginChangedSource.subscribe(n=>{n===Qe.LoggedIn?this.loggedIn=!0:n===Qe.LoggedOut&&(this.loggedIn=!1),this.updateUserState();}),this.hotkeysSub=this.hotkeysService.cheatSheetToggle.subscribe(n=>this.hotkeysHelpVisible=n),this.serverService.getConfig().subscribe(n=>this.config=n),this.quickSettingsModalSub=this.modalService.openQuickSettingsSubject.subscribe(()=>this.openQuickSettings()),this.getSearchHiddenSub=this.headerService.getSearchHiddenObs().subscribe(n=>{n?document.documentElement.classList.add("global-search-hidden"):document.documentElement.classList.remove("global-search-hidden"),this.searchHidden=n;}),this.setupMobileMsg();}ngOnDestroy(){this.quickSettingsModalSub&&this.quickSettingsModalSub.unsubscribe(),this.hotkeysSub&&this.hotkeysSub.unsubscribe(),this.authSub&&this.authSub.unsubscribe(),this.getSearchHiddenSub&&this.get
282SearchHiddenSub.unsubscribe();}getDefaultRoute(){return this.redirectService.getDefaultRoute();}getDefaultRouteQuery(){return this.redirectService.getDefaultRouteQuery();}setupMobileMsg(){if(!this.isInMobileView()||Zt.getItem(e.LS_HIDE_MOBILE_MSG)==="true"||!tn()&&!ps())return;this.mobileMsg=!0,document.documentElement.classList.add("mobile-app-msg");let n=window.location.host,o=this.htmlConfig.client.openInApp.android.intent,r=this.htmlConfig.client.openInApp.ios,s=l=>{let c=l.match(/^\/w\/([^/?;]+)/);if(c)return c[1];},a=l=>{let c=l.match(/^\/c\/([^/?;]+)/);if(c)return c[1];};this.router.events.subscribe(l=>{if(!(l instanceof Tn))return;let c=l.url,h=`intent://${o.host}`,y=`#Intent;scheme=${o.scheme};S.browser_fallback_url=${o.fallbackUrl};end`,N=`peertube://${r.host}`,b=s(c),C=a(c);if(b){tn()?this.androidAppUrl=`${h}/video/${b}?host=${n}${y}`:this.iosAppUrl=`${N}/video/${b}?host=${n}`;return;}if(C){tn()?this.androidAppUrl=`${h}/video-channel/${C}?host=${n}${y}`:this.iosAppUrl=`${N}/video/${b}?host=${n}`;return;}tn()?this.androidAppUrl=`${h}/?host=${n}${y}`:this.iosAppUrl=`${N}/?host=${n}`;});}hideMobileMsg(){this.mobileMsg=!1,document.documentElement.classList.remove("mobile-app-msg"),Zt.setItem(e.LS_HIDE_MOBILE_MSG,"true");}onOpenClientClick(){ms()&&setTimeout(()=>{window.location.href=this.htmlConfig.client.openInApp.ios.fallbackUrl;},2500);}isRegistrationAllowed(){return this.config?this.config.signup.allowed&&this.config.signup.allowedForCurrentIP:!1;}logout(n){n.preventDefault(),this.authService.logout(),this.redirectService.redirectToHomepage();}openQuickSettings(){this.quickSettingsModal().show();}openHotkeysCheatSheet(){this.hotkeysService.cheatSheetToggle.next(!this.hotkeysHelpVisible);}toggleMenu(){this.menu.toggleMenu();}updateUserState(){this.user=this.loggedIn?this.authService.getUser():void 0;}};f(e,"LS_HIDE_MOBILE_MSG","hide-mobile-msg"),f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-header"]],viewQuery:function(o,r){o&1&&oe(r.quickSettingsModal,Cd,5)(r.dropdown,vd,5),o&2&&re(2);},decls:12,vars:12,consts:()=>{let n;n="Go to homepage";let o;o="Open menu";let r;r="Close this message";let s;s="Open in the application?";let a;a="Open settings modal";let l;l="Go to the page where you can manage your account";let c;c="Interface:";let h;h="Log out";let y;y="Public profile";let N;N="Manage my account";let b;return b="Keyboard shortcuts",[["quickSettingsModal",""],["dropdown","ngbDropdown"],["profile",""],s,c,h,y,N,b,[1,"mobile-msg"],[1,"root",3,"ngClass"],["title",n,1,"peertube-title",3,"routerLink","queryParams"],["alt","",1,"logo",3,"src","title"],[1,"instance-name"],[3,"hidden"],[1,"d-flex","align-items-center","buttons-container",3,"hidden"],["title",o,"theme","tertiary","rounded","true","icon","menu",1,"menu-button","margin-button",3,"click"],[1,"msg","ellipsis","me-auto"],[1,"peertube-button-link","secondary-button","me-3",3,"click","href"],["title",r,1,"border-0","p-0",3,"click"],["iconName","cross"],["title",a,"theme","tertiary","rounded","true","icon","cog",1,"margin-button","settings-button",3,"click"],["routerLink","/signup",1,"peertube-button-link","secondary-button","w-100","ellipsis","margin-button","create-account-button"],["className","peertube-button-link primary-button w-100 ellipsis",1,"login-label"],["className","peertube-button-link primary-button icon-only w-100 ellipsis","icon","true","label","",1,"login-icon"],[3,"requiresApproval"],[1,"margin-button"],["title",l,"theme","tertiary","rounded","true","icon","cog","ptRouterLink","/my-account","inheritColor","true",1,"margin-button","settings-button"],["ngbDropdown","","placement","bottom-left auto","container","body",1,"logged-in-container"],["ngbDropdownToggle","",1,"tertiary-button"],["actorType","account","size","34","responseSize","true",3,"actor"],[1,"logged-in-info","text-start","ms-2"],[1,"display-name","ellipsis"],[1,"username","ellipsis","fs-8"],["ngbDropdownMenu",""],["ngbDropdownItem","",1,"dropdown-item",3,"routerLink"],[1,"dropdown-divider"],["ngbDropdownItem","","routerLink","/my-account",1,"dropdown-item"],["myPluginSelector","","pluginSelectorId","menu-user-dropdown-language-item","ngbDropdownItem","","routerLink","/my-account/settings","fragment","interface-settings",1,"dropdown-item"],["iconName","language","aria-hidden","true"],[1,"ms-auto","ps-2","muted"],["ngbDropdownItem","",1,"dropdown-item"],["ngbDropdownItem","",1,"dropdown-item","logout",3,"click"],["iconName","sign-out","aria-hidden","true"],["iconName","user","aria-hidden","true"],["iconName","cog","aria-hidden","true"],["ngbDropdownItem","",1,"dropdown-item",3,"click"],["iconName","keyboard","aria-hidden","true"]];},template:function(o,r){o&1&&(E(0,Ed,7,1,"div",9),m(1,"div",10)(2,"a",11),v(3,"img",12),E(4,Md,2,1,"span",13),u(),E(5,Td,1,1,"my-search-typeahead",14),m(6,"div",15),E(7,Pd,4,1)(8,xd,27,7),u(),m(9,"my-button",16),A("click",function(){return r.toggleMenu();}),u()(),v(10,"my-quick-settings",null,0)),o&2&&(M(r.mobileMsg?0:-1),d(),_("ngClass",K(10,Sd,r.searchHidden)),d(),_("routerLink",r.getDefaultRoute())("queryParams",r.getDefaultRouteQuery()),d(),_("src",r.getLogoUrl(),jt)("title",r.instanceName),d(),M(r.isInstanceNameDisplayed()?4:-1),d(),M(r.searchHidden?-1:5),d(),_("hidden",!r.isLoaded()),d(),M(r.loggedIn?8:7));}
282,dependencies:[Le,_e,Va,ns,cs,us,ds,Ha,X,At,It,Ln,Dn,Rn,Er,Mr,Ba,$t],styles:[`.mobile-msg[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 1.5rem;height:48px;background:var(--bg-secondary-400)}.mobile-msg[_ngcontent-%COMP%]   .msg[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:700;font-size:.875rem}.mobile-msg[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{color:var(--fg-200)}.root[_ngcontent-%COMP%]{--co-logo-size: 34px;--co-root-padding: 1.5rem;color:var(--header-fg-500);background-color:var(--header-bg-500);padding:var(--co-root-padding);width:100%;display:flex;align-items:center}.peertube-title[_ngcontent-%COMP%]{flex-shrink:1;min-width:var(--co-logo-size);flex-grow:0;font-size:24px;font-weight:700;color:inherit!important;display:flex;align-items:center;min-height:46px;padding-inline-start:1.125rem;padding-inline-end:.5rem;margin-inline-end:auto}.peertube-title[_ngcontent-%COMP%], .peertube-title[_ngcontent-%COMP%]:hover, .peertube-title[_ngcontent-%COMP%]:focus, .peertube-title[_ngcontent-%COMP%]:active{text-decoration:none}.peertube-title[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.instance-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-inline-start:.625rem}.logo[_ngcontent-%COMP%]{display:inline-block;min-width:var(--co-logo-size);height:var(--co-logo-size)}my-search-typeahead[_ngcontent-%COMP%]{max-width:270px;width:100%}@media screen and (min-width:1200px){my-search-typeahead[_ngcontent-%COMP%]{max-width:310px}}@media screen and (min-width:1600px){my-search-typeahead[_ngcontent-%COMP%]{max-width:350px}}my-search-typeahead[_ngcontent-%COMP%]{margin-inline-end:calc(1.275rem + .3vw)}@media(min-width:1200px){my-search-typeahead[_ngcontent-%COMP%]{margin-inline-end:1.5rem}}.margin-button[_ngcontent-%COMP%]{margin-inline-end:.75rem}.menu-button[_ngcontent-%COMP%]{display:none;justify-self:end}.dropdown[_ngcontent-%COMP%]{z-index:1!important}.dropdown-item[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding:var(--input-y-padding) 1rem}.dropdown-item[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{width:22px;opacity:.7;position:relative;top:-2px;margin-inline-end:.5rem}.dropdown-item[_ngcontent-%COMP%]   my-actor-avatar[_ngcontent-%COMP%]{margin-inline-end:.5rem}.dropdown-item[_ngcontent-%COMP%]:hover   .hover-display-toggle[_ngcontent-%COMP%]{display:none}.dropdown-item[_ngcontent-%COMP%]:hover   .hover-display-toggle[hidden][_ngcontent-%COMP%]{display:inherit!important}.logged-in-container[_ngcontent-%COMP%]{border-radius:25px;transition:all .1s ease-in-out;cursor:pointer;max-width:250px;height:100%}.logged-in-container[_ngcontent-%COMP%]   .display-name[_ngcontent-%COMP%]{font-weight:700;color:var(--header-fg-500);line-height:1;padding-top:3px}.logged-in-container[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{color:var(--header-fg-300)}.logged-in-container[_ngcontent-%COMP%] > .dropdown-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:6px}.logged-in-container[_ngcontent-%COMP%] > .dropdown-toggle[_ngcontent-%COMP%]:after{border:0}my-actor-avatar[_ngcontent-%COMP%]{width:34px;height:34px}.login-icon[_ngcontent-%COMP%]{display:none}.tertiary-button[_ngcontent-%COMP%]{color:var(--header-fg-200)}@media screen and (max-width:1200px){.peertube-title[_ngcontent-%COMP%]{padding-inline-start:0}.icon-logo[_ngcontent-%COMP%]{margin-inline-start:0}}@media screen and (max-width:800px){.root[_ngcontent-%COMP%]{--co-root-padding: 1rem}my-search-typeahead[_ngcontent-%COMP%]{margin-inline-end:.5rem}.margin-button[theme=tertiary][_ngcontent-%COMP%]{margin-inline-end:.3125rem}my-actor-avatar[_ngcontent-%COMP%]{width:24px;height:24px}.dropdown-toggle[_ngcontent-%COMP%]{padding:var(--input-y-padding) var(--input-x-padding);font-weight:700;border-radius:var(--input-border-radius);text-align:center;cursor:pointer;font-size:1rem;line-height:1.5}.dropdown-toggle[_ngcontent-%COMP%]:not(.icon-only)   my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]:not(:empty){margin-inline-start:.5rem}.dropdown-toggle.icon-only[_ngcontent-%COMP%]{padding:var(--input-y-padding) 8px}.dropdown-toggle.small-button[_ngcontent-%COMP%]{font-size:.9rem;padding:calc(var(--input-y-padding) / 2) calc(var(--input-x-padding) / 2)!important}.dropdown-toggle.small-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{display:inline-block;width:18px!important;height:18px!important;line-height:18px!important}.dropdown-toggle[_ngcontent-%COMP%]{padding:.5rem!important;border-radius:100%!important}.dropdown-toggle.small-button[_ngcontent-%COMP%]{padding:calc(var(--input-x-padding) / 4)!important;line-height:0!important}.dropdown-toggle.small-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{line-height:0;display:inline-block;width:12px!important;height:12px!important;line-height:12px!important}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.logged-in-info[_ngcontent-%COMP%]{display:none}.login-icon[_ngcontent-%COMP%]{display:inline-block}.login-label[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:500px){.root[_ngcontent-%COMP%]{--co-logo-size: 48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;row-gap:.5rem;justify-content:space-between}.root[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{grid-row:1}.buttons-container[_ngcontent-%COMP%]{margin:0 auto;max-width:100%}.menu-button[_ngcontent-%COMP%]{display:block;position:relative;right:-10px}my-search-typeahead[_ngcontent-%COMP%]{grid-row:2!important;grid-column:1/4;max-width:100%;margin-inline-end:0}.peertube-title[_ngcontent-%COMP%]{margin-inline-end:.3125rem}
282.instance-name[_ngcontent-%COMP%]{display:none}}
283/*# sourceMappingURL=header.component-PHGXGNMY.css.map */`]}));let i=e;return i;})();var kd=i=>({in:i});function Id(i,e){if(i&1&&(m(0,"span"),I(1),u()),i&2){let t=e.$implicit;d(),V(t);}}function Rd(i,e){if(i&1&&(m(0,"li")(1,"div",7),Ge(2,Id,2,1,"span",null,Be),u(),m(4,"div",8),I(5),u()()),i&2){let t=e.$implicit;d(2),je(t.formatted),d(3),V(t.description);}}var ja=(()=>{let e=class e{hotkeysService=p(Dt);localStorage=p(Vn);title=ke("Keyboard Shortcuts");hotkeysModalStateChange=Xt();hotkeysEnabled=!0;helpVisible=!1;subscription;hotkeys;localStorageHotkeysDisabledKey="peertube-hotkeys-disabled";ngOnInit(){this.localStorage.getItem(this.localStorageHotkeysDisabledKey)==="true"&&(this.hotkeysEnabled=!1,this.hotkeysService.disableHotkeys()),this.subscription=this.hotkeysService.cheatSheetToggle.subscribe(n=>{n!==!1&&(this.hotkeys=this.hotkeysService.getHotkeys().filter(o=>o.description)),n===!1?this.helpVisible=!1:this.toggleHelpVisible(),this.hotkeysModalStateChange.emit(this.helpVisible);});}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}toggleCheatSheet(){this.hotkeysService.cheatSheetToggle.next(!this.helpVisible);}toggleHelpVisible(){this.helpVisible=!this.helpVisible;}onHotkeysEnabledChange(){if(!this.hotkeysEnabled){this.localStorage.setItem(this.localStorageHotkeysDisabledKey,"true"),this.hotkeysService.disableHotkeys();return;}this.hotkeysService.enableHotkeys(),this.localStorage.removeItem(this.localStorageHotkeysDisabledKey);}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-hotkeys-cheat-sheet"]],inputs:{title:[1,"title"]},outputs:{hotkeysModalStateChange:"hotkeysModalStateChange"},decls:11,vars:5,consts:()=>{let n;return n="Enable hotkeys in this web browser",[[1,"cfp-hotkeys-container","fade",3,"ngClass"],[1,"cfp-hotkeys"],[1,"cfp-hotkeys-title"],[1,"d-flex","justify-content-center","m-3"],["inputName","enable-hotkeys","labelText",n,3,"ngModelChange","ngModel"],["role","presentation"],[1,"button-unstyle","cfp-hotkeys-close",3,"click"],[1,"cfp-hotkeys-keys"],[1,"cfp-hotkeys-text"]];},template:function(o,r){o&1&&(m(0,"div",0)(1,"div",1)(2,"h2",2),I(3),u(),m(4,"div",3)(5,"my-peertube-checkbox",4),rt("ngModelChange",function(a){return ot(r.hotkeysEnabled,a)||(r.hotkeysEnabled=a),a;}),A("ngModelChange",function(){return r.onHotkeysEnabledChange();}),u()(),m(6,"ul",5),Ge(7,Rd,6,1,"li",null,Be),u(),m(9,"button",6),A("click",function(){return r.toggleCheatSheet();}),I(10,"\xD7"),u()()()),o&2&&(_("ngClass",K(3,kd,r.helpVisible)),d(3),V(r.title()),d(2),it("ngModel",r.hotkeysEnabled),d(2),je(r.hotkeys));},dependencies:[_e,as,kt,Nt,xt],styles:[`.cfp-hotkeys-container[_ngcontent-%COMP%]{display:flex!important;align-items:center;position:fixed;overflow:auto;width:100%;height:100%;top:0;left:0;color:var(--fg);font-size:1em;background-color:var(--bg)}.cfp-hotkeys-container.fade[_ngcontent-%COMP%]{z-index:-1024;visibility:hidden;opacity:0;transition:opacity .15s linear}.cfp-hotkeys-container.fade.in[_ngcontent-%COMP%]{z-index:19000;visibility:visible;opacity:1}.cfp-hotkeys-title[_ngcontent-%COMP%]{font-weight:700;text-align:center;font-size:1.2em}.cfp-hotkeys[_ngcontent-%COMP%]{width:100%;max-height:100%}.cfp-hotkeys[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:auto;width:fit-content;list-style:none;color:var(--fg)}.cfp-hotkeys-keys[_ngcontent-%COMP%], .cfp-hotkeys-text[_ngcontent-%COMP%]{display:inline-block}.cfp-hotkeys-keys[_ngcontent-%COMP%]{padding:5px;min-width:90px}.cfp-hotkeys-keys[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;color:var(--bg);background-color:var(--fg);border:1px solid var(--fg);border-radius:5px;text-align:center;box-shadow:inset 0 1px #666,0 1px #bbb;padding:5px 9px;font-size:1em;margin-inline-end:.3125rem}.cfp-hotkeys-text[_ngcontent-%COMP%]{font-size:1em;padding-inline-start:.625rem}.cfp-hotkeys-close[_ngcontent-%COMP%]{position:fixed;top:20px;right:20px;font-size:2em;font-weight:700;padding:5px 10px;border:1px solid #ddd;border-radius:5px;min-height:45px;min-width:45px;text-align:center}.cfp-hotkeys-close[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:.8}@media all and (max-width:500px){.cfp-hotkeys[_ngcontent-%COMP%]{font-size:.8em}}@media all and (min-width:750px){.cfp-hotkeys[_ngcontent-%COMP%]{font-size:1.2em}}
284/*# sourceMappingURL=hotkeys-cheat-sheet.component-4GFQILJ5.css.map */`]}));let i=e;return i;})();var Qa=bo(Br());var Dd=(i,e)=>({collapsed:i,"logged-in":e}),Ld=i=>({"menu-collapsed":i}),Fd=(i,e)=>({"icon-only":i,"label-xl":e}),mn=i=>({"visually-hidden":i}),$d=i=>[i,"menu-block"];function Vd(i,e){if(i&1&&I(0),i&2){let t=g(2);Ee(" ",t.moreInfoLabel," ");}}function Hd(i,e){if(i&1&&(m(0,"div",20)(1,"a",21),v(2,"my-global-icon",22),E(3,Vd,1,1),u()()),i&2){let t=g();d(),_("ngClass",st(2,Fd,t.collapsed,t.moreInfoLabel.length>10)),d(2),M(t.collapsed?-1:3);}}function zd(i,e){if(i&1){let t=F();m(0,"button",23),A("click",function(){w(t);let o=g();return P(o.toggleMenu());}),v(1,"my-global-icon",24),u();}}function Ud(i,e){if(i&1){let t=F();m(0,"button",25),A("click",function(){w(t);let o=g();return P(o.toggleMenu());}
284),v(1,"my-global-icon",26),u();}}function Bd(i,e){i&1&&ge(0);}function Gd(i,e){if(i&1&&(m(0,"div",15)(1,"div",27),L(2,2),u(),m(3,"div",28),I(4),u(),z(5,Bd,1,0,"ng-container",29),u()),i&2){let t=g(),n=se(1);d(),_("ngClass",K(5,mn,t.collapsed)),d(),Mt(t.instanceName),Tt(2),d(),_("ngClass",K(7,mn,t.collapsed)),d(),V(t.shortDescription),d(),_("ngTemplateOutlet",n);}}function jd(i,e){if(i&1&&I(0),i&2){let t=g(2).$implicit;Ee(" ",t.label," ");}}function Kd(i,e){if(i&1&&(m(0,"my-button",32),E(1,jd,1,1),u()),i&2){let t=g().$implicit,n=g(2);_("ngClass",t.ngClass)("icon",t.icon)("title",t.label)("ptRouterLink",t.path)("ptQueryParams",t.query)("href",t.url),d(),M(n.collapsed?-1:1);}}function Qd(i,e){if(i&1&&v(0,"my-global-icon",35),i&2){let t=g(3).$implicit;_("iconName",t.icon)("ngClass",t.iconClass);}}function qd(i,e){if(i&1&&(E(0,Qd,1,2,"my-global-icon",35),m(1,"span",36),I(2),u()),i&2){let t=g(2).$implicit,n=g(2);M(t.icon?0:-1),d(),_("ngClass",K(3,mn,n.collapsed)),d(),V(t.label);}}function Wd(i,e){i&1&&ge(0);}function Xd(i,e){if(i&1&&(m(0,"a",33),z(1,Wd,1,0,"ng-container",29),u()),i&2){g();let t=se(1),n=g().$implicit;_("routerLink",n.path)("queryParams",n.query)("ngClass",n.ngClass)("title",n.label),d(),_("ngTemplateOutlet",t);}}function Yd(i,e){i&1&&ge(0);}function Zd(i,e){if(i&1&&(m(0,"a",34),z(1,Yd,1,0,"ng-container",29),u()),i&2){g();let t=se(1),n=g().$implicit;_("href",n.url,jt)("ngClass",n.ngClass)("title",n.label),d(),_("ngTemplateOutlet",t);}}function Jd(i,e){if(i&1&&(z(0,qd,3,5,"ng-template",null,1,ae),E(2,Xd,2,5,"a",33)(3,Zd,2,4,"a",34)),i&2){let t=g().$implicit;d(2),M(t.path?2:3);}}function eu(i,e){if(i&1&&(m(0,"li"),E(1,Kd,2,7,"my-button",32)(2,Jd,4,1),u()),i&2){let t=e.$implicit;d(),M(t.isPrimaryButton===!0?1:2);}}function tu(i,e){if(i&1&&(m(0,"ul",16)(1,"li")(2,"div",30),I(3),u(),m(4,"ul",31),Ge(5,eu,3,1,"li",null,Be),u()()()),i&2){let t=e.$implicit,n=g();_("ngClass",K(3,$d,t.key)),d(2),_("ngClass",K(5,mn,n.collapsed)),d(),V(t.title),d(2),je(t.links);}}function nu(i,e){i&1&&ge(0);}function iu(i,e){if(i&1&&(m(0,"div",17)(1,"div",37),I(2),u(),z(3,nu,1,0,"ng-container",29),u()),i&2){let t=g(),n=se(1);d(),_("ngClass",K(3,mn,t.collapsed)),d(),V(t.instanceName),d(),_("ngTemplateOutlet",n);}}function ou(i,e){i&1&&(m(0,"div",18)(1,"div",38),ko(2,3),v(3,"a",39),Io(),u(),m(4,"a",40),L(5,4),u()());}var Ka=(0,Qa.default)("peertube:menu:MenuComponent"),qa=(()=>{let e=class e{authService=p(le);userService=p(Bn);serverService=p(Ce);hooks=p(Un);menu=p(Ft);redirectService=p(Ie);menuSections=[];loggedIn;moreInfoLabel="More info";user;canSeeVideoMakerBlock;authSub;get shortDescription(){return this.serverService.getHTMLConfig().instance.shortDescription;}get instanceName(){return this.serverService.getHTMLConfig().instance.name;}get collapsed(){return this.menu.isCollapsed();}get isOverlay(){return this.menu.isCollapsed();}
284ngOnInit(){this.loggedIn=this.authService.isLoggedIn(),this.onUserStateChange(),this.authSub=this.authService.loginChangedSource.subscribe(n=>{n===Qe.LoggedIn?this.loggedIn=!0:n===Qe.LoggedOut&&(this.loggedIn=!1),this.onUserStateChange();});}ngOnDestroy(){this.authSub&&this.authSub.unsubscribe();}toggleMenu(){this.menu.toggleMenu();}buildMenuSections(){return gt(this,null,function*(){this.menuSections=[];for(let n of[this.buildQuickLinks(),this.buildLibraryLinks(),this.buildVideoMakerLinks(),this.buildAdminLinks()])n.links.length!==0&&this.menuSections.push(n);this.menuSections=yield this.hooks.wrapObject(this.menuSections,"common","filter:left-menu.links.create.result");});}buildQuickLinks(){let n={key:"quick-access",title:"Quick access",links:[{path:this.redirectService.getDefaultRoute(),query:this.redirectService.getDefaultRouteQuery(),icon:"home",label:"Home"}]};return this.loggedIn&&n.links.push({path:"/videos/subscriptions",icon:"subscriptions",label:"Subscriptions"}),n;}buildLibraryLinks(){let n=[];return this.loggedIn&&(n=n.concat([{path:"/my-library/video-playlists",icon:"playlists",label:"Playlists"},{path:"/my-library/history/videos",icon:"history",label:"History"}])),{key:"my-library",title:"My library",links:n};}buildVideoMakerLinks(){let n=[];return this.loggedIn&&this.canSeeVideoMakerBlock&&(n=n.concat([{path:"/my-library/video-channels",icon:"channel",iconClass:"channel-icon",label:"Channels"},{path:"/my-library/videos",icon:"videos",label:"Videos"},{path:"/videos/publish",icon:"upload",label:"Publish",isPrimaryButton:!0,ngClass:"publish-button"}])),{key:"my-video-space",title:"My video space",links:n};}buildAdminLinks(){let n=[];return this.loggedIn&&(this.user.hasRight(Nn.SEE_ALL_VIDEOS)&&n.push({path:"/admin/overview",icon:"overview",label:"Overview"}),this.user.hasRight(Nn.MANAGE_ABUSES)&&n.push({path:"/admin/moderation",icon:"moderation",label:"Moderation"}),this.user.hasRight(Nn.MANAGE_CONFIGURATION)&&n.push({path:"/admin/settings",icon:"config",label:"Settings"})),{key:"admin",title:"Administration",links:n};}computeCanSeeVideoMakerBlock(){return this.loggedIn?this.user.hasUploadDisabled()?this.authService.userInformationLoaded.pipe(Ue(),Se(()=>this.userService.getMyVideoQuotaUsed()),me(({videoQuotaUsed:n})=>n!==0)):Ae(!0):Ae(!1);}onUserStateChange(){this.user=this.loggedIn?this.authService.getUser():void 0,this.computeCanSeeVideoMakerBlock().subscribe(n=>{this.canSeeVideoMakerBlock=n,this.canSeeVideoMakerBlock?Ka("User can see videos link."):Ka("User cannot see videos link."),this.buildMenuSections();});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-menu"]],decls:19,vars:11,consts:()=>{let n;n="Display the lateral menu";let o;o="Hide the lateral menu";let r;r="More info";let s;s=""+"\uFFFD0\uFFFD"+"";let a;a=" Platform powered by "+"\uFFFD#3\uFFFD"+"PeerTube"+"\uFFFD/#3\uFFFD"+"";let l;return l="Discover more platforms",[["moreInfoButton",""],["linkTemplate",""],s,a,l,[1,"menu-container",3,"ngClass"],[1,"main-menu-wrapper"],[1,"main-menu-scrollbar"],[1,"main-menu"],[1,"mobile-controls"],[1,"icon-logo"],["rounded","true","icon","cross","theme","tertiary",3,"click"],[1,"toggle-menu-container"],["type","button","title",n,1,"button-unstyle","toggle-menu"],["type","button","title",o,1,"button-unstyle","toggle-menu"],[1,"about","about-top"],[1,"ul-unstyle",3,"ngClass"],[1,"about"],[1,"mt-3","mx-4"],[1,"menu-overlay",3,"click","ngClass"],[1,"more-info-btn-container"],["routerLink","/about","title",r,"routerLinkActive","active",1,"more-info-btn","peertube-button-link","peertube-button-icon","mt-2","d-block","ellipsis",3,"ngClass"],["iconName","help"],["type","button","title",n,1,"button-unstyle","toggle-menu",3,"click"],["iconName","chevron-left",1,"transform-rotate-180"],["type","button","title",o,1,"button-unstyle","toggle-menu",3,"click"],["iconName","chevron-left"],[1,"block-title","me-2",3,"ngClass"],[1,"description",3,"ngClass"],[4,"ngTemplateOutlet"],[1,"block-title","ellipsis",3,"ngClass"],[1,"ul-unstyle"],["theme","primary","autoFontSize","true",1,"d-block","menu-button",3,"ngClass","icon","title","ptRouterLink","ptQueryParams","href"],["routerLinkActive","active",1,"menu-link","ellipsis",3,"routerLink","queryParams","ngClass","title"],["target","_blank",1,"menu-link","ellipsis",3,"href","ngClass","title"],["aria-hidden","true",3,"iconName","ngClass"],[3,"ngClass"],[1,"block-title",3,"ngClass"],[1,"fs-8"],["href","https://joinpeertube.org","target","_blank","rel","noopener noreferrer",1,"fw-bold"],["href","https://joinpeertube.org/instances","target","_blank","rel","noopener noreferrer",1,"d-block","fs-8","fw-bold"]];},template:function(o,r){o&1&&(z(0,Hd,4,5,"ng-template",null,0,ae),m(2,"div",5)(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9),v(7,"span",10),m(8,"my-button",11),A("click",function(){return r.toggleMenu();}),u()(),m(9,"div",12),E(10,zd,2,0,"button",13)(11,Ud,2,0,"button",14),u(),E(12,Gd,
2846,9,"div",15),m(13,"nav"),Ge(14,tu,7,7,"ul",16,Be),u(),E(16,iu,4,5,"div",17),u()()(),E(17,ou,6,0,"div",18),u(),m(18,"div",19),A("click",function(){return r.toggleMenu();}),u()),o&2&&(d(2),_("ngClass",st(6,Dd,r.collapsed,r.loggedIn)),d(8),M(r.collapsed?10:11),d(2),M(r.loggedIn?-1:12),d(2),je(r.menuSections),d(2),M(r.loggedIn?16:-1),d(),M(r.collapsed?-1:17),d(),_("ngClass",K(9,Ld,r.collapsed)));},dependencies:[Le,_e,Pt,X,At,Pn,It,$t],styles:[`.menu-container[_ngcontent-%COMP%]{--co-menu-x-padding: 1.5rem;z-index:12600;width:calc(248px - 2rem);position:fixed;height:calc(100vh - var(--header-height));margin-inline-start:var(--menu-margin-left)}.menu-container.collapsed[_ngcontent-%COMP%]{--co-menu-x-padding: .25rem;width:auto;margin-inline-start:0}.toggle-menu[_ngcontent-%COMP%]{color:var(--menu-fg-300);width:24px;height:24px;border-radius:100%;background-color:var(--menu-bg-550)}.toggle-menu[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{position:relative;top:0;right:1px;display:inline-block;width:20px;height:20px;line-height:20px}.toggle-menu[_ngcontent-%COMP%]:not(.icon-only)   my-global-icon[_ngcontent-%COMP%]{margin-inline-end:0}.toggle-menu[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{margin:auto}.toggle-menu[_ngcontent-%COMP%]:hover{opacity:.8}.menu-container[_ngcontent-%COMP%]:not(.collapsed)   .toggle-menu[_ngcontent-%COMP%]{position:absolute;top:22px}@supports (inset-inline-end: 24px){.menu-container[_ngcontent-%COMP%]:not(.collapsed)   .toggle-menu[_ngcontent-%COMP%]{inset-inline-end:24px}}@supports not (inset-inline-end: 24px){.menu-container[_ngcontent-%COMP%]:not(.collapsed)   .toggle-menu[_ngcontent-%COMP%]{right:24px}}.collapsed[_ngcontent-%COMP%]   .toggle-menu[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{right:-1px;top:0}.main-menu-wrapper[_ngcontent-%COMP%]{overflow:hidden;width:100%;height:100%;max-height:calc(100% - 75px)}.main-menu-scrollbar[_ngcontent-%COMP%]{overflow-y:auto;scrollbar-color:transparent transparent;scrollbar-width:thin;max-height:100%}.main-menu-scrollbar[_ngcontent-%COMP%]:focus, .main-menu-scrollbar[_ngcontent-%COMP%]:hover{scrollbar-color:auto}@media not all and (hover:hover)and (pointer:fine){.main-menu-scrollbar[_ngcontent-%COMP%]{border-radius:0;scrollbar-color:auto}}.main-menu[_ngcontent-%COMP%]{position:relative;padding-top:1.5rem;padding-bottom:1.5rem;border-radius:var(--menu-border-radius);background-color:var(--menu-bg)}.menu-link[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%], .block-title[_ngcontent-%COMP%], .about[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%], .about[_ngcontent-%COMP%]   .more-info-btn-container[_ngcontent-%COMP%]{padding-inline-start:var(--co-menu-x-padding);padding-inline-end:var(--co-menu-x-padding)}.menu-block[_ngcontent-%COMP%]:not(:last-child):after, .logged-in[_ngcontent-%COMP%]   .menu-block[_ngcontent-%COMP%]:after, .collapsed[_ngcontent-%COMP%]   .toggle-menu-container[_ngcontent-%COMP%]:after, .about-top[_ngcontent-%COMP%]:after{content:"";display:block;height:2px;margin:1rem var(--co-menu-x-padding);background:var(--menu-bg-600)}.block-title[_ngcontent-%COMP%]{font-weight:700;color:var(--menu-fg-450);font-size:14px;margin-bottom:.5rem;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-link[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:normal;word-break:break-word;transition:background-color .1s ease-in-out;width:100%;padding-top:.5rem;padding-bottom:.5rem}.menu-link[_ngcontent-%COMP%], .menu-link[_ngcontent-%COMP%]:hover, .menu-link[_ngcontent-%COMP%]:focus, .menu-link[_ngcontent-%COMP%]:active{text-decoration:none}.menu-link[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.menu-link[_ngcontent-%COMP%]:hover, .menu-link[_ngcontent-%COMP%]:focus-visible{opacity:1;background-color:var(--menu-bg-450)}.menu-link[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{width:22px;height:22px;line-height:22px;position:relative;top:-1px}.menu-link[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]:not(.visually-hidden){margin-inline-start:.75rem}.menu-button[_ngcontent-%COMP%]{margin-top:.5rem}.about[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-size:14px;color:var(--menu-fg-300)}.more-info-btn[_ngcontent-%COMP%]{color:var(--menu-fg);background-color:transparent;border:1px solid var(--menu-bg-600)!important}.more-info-btn[_ngcontent-%COMP%]:not(.icon-only)   my-global-icon[_ngcontent-%COMP%]{color:var(--secondary-icon-color)}.more-info-btn[_ngcontent-%COMP%]:active, .more-info-btn.active[_ngcontent-%COMP%], .more-info-btn[_ngcontent-%COMP%]:focus, .more-info-btn[_ngcontent-%COMP%]:focus-visible{color:var(--menu-fg);background-color:var(--menu-bg-600);border-color:var(--menu-bg-600)}.more-info-btn.btn[_ngcontent-%COMP%]:active, .more-info-btn.btn[_ngcontent-%COMP%]:focus-visible, .more-info-btn.btn.show[_ngcontent-%COMP%]{color:var(--menu-fg)!important;background-color:var(--menu-bg-600)!important;border-color:var(--menu-bg-600)!important}.more-info-btn[_ngcontent-%COMP%]:hover{color:var(--menu-fg);background-color:var(--menu-bg-550)}.more-info-btn[_ngcontent-%COMP%]:hover   my-global-icon[_ngcontent-%COMP%]{color:var(--menu-fg)!important}.more-info-btn[disabled][_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.more-info-btn.label-xl[_ngcontent-%COMP%]{font-size:90%;padding:var(--input-y-padding) calc(var(--input-x-padding) / 2)!important}.more-info-btn[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%], .menu-link[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{color:var(--secondary-icon-color)}.more-info-btn.active[_ngcontent-%COMP%], .menu-link.active[_ngcontent-%COMP%]{font-weight:700}.more-info-btn.active[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%], .menu-link.active[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{color:var(--menu-fg-600)}.menu-link[_ngcontent-%COMP%]{color:var(--menu-fg)}.menu-link.active[_ngcontent-%COMP%]{background-color:var(--menu-bg-600)}.powered-by[_ngcontent-%COMP%]{color:var(--fg-200)}
284.collapsed[_ngcontent-%COMP%]   .menu-block[_ngcontent-%COMP%]:after, .collapsed[_ngcontent-%COMP%]   .toggle-menu-container[_ngcontent-%COMP%]:after, .collapsed[_ngcontent-%COMP%]   .about[_ngcontent-%COMP%]:after{width:28px;margin:1rem auto}.collapsed[_ngcontent-%COMP%]   .main-menu-wrapper[_ngcontent-%COMP%]{max-height:100%}.collapsed[_ngcontent-%COMP%]   .main-menu[_ngcontent-%COMP%]{border-start-start-radius:0;border-end-start-radius:0;padding-top:1rem;padding-bottom:1rem}.collapsed[_ngcontent-%COMP%]   .toggle-menu-container[_ngcontent-%COMP%]{text-align:center}.collapsed[_ngcontent-%COMP%]   .menu-link[_ngcontent-%COMP%], .collapsed[_ngcontent-%COMP%]   .more-info-btn[_ngcontent-%COMP%]{border:0!important;justify-content:center}.collapsed[_ngcontent-%COMP%]   .menu-link[_ngcontent-%COMP%]:not(.active)   my-global-icon[_ngcontent-%COMP%], .collapsed[_ngcontent-%COMP%]   .more-info-btn[_ngcontent-%COMP%]:not(.active)   my-global-icon[_ngcontent-%COMP%]{color:var(--menu-fg-400)}.menu-overlay[_ngcontent-%COMP%]{background-color:#000;width:100vw;height:100vh;opacity:.75;content:"";display:none;position:fixed;z-index:12550}.mobile-controls[_ngcontent-%COMP%]{display:none;padding:0 calc(var(--co-menu-x-padding) - 1rem) 2rem var(--co-menu-x-padding);align-items:center;justify-content:space-between}.mobile-controls[_ngcontent-%COMP%]   .icon-logo[_ngcontent-%COMP%]{display:inline-block;width:48px;height:48px;min-width:48px;max-width:48px;background-repeat:no-repeat;background-size:contain}@media screen and (max-width:1200px){.menu-container[_ngcontent-%COMP%]:not(.collapsed){--menu-margin-left: 0;border-radius:0;background-color:var(--menu-bg);overflow:auto}.menu-container[_ngcontent-%COMP%]:not(.collapsed)   .main-menu-wrapper[_ngcontent-%COMP%]{height:auto;max-height:unset}.menu-overlay[_ngcontent-%COMP%]:not(.menu-collapsed){display:block}}@media screen and (max-width:500px){.menu-container[_ngcontent-%COMP%]{height:100vh;margin-top:calc(var(--header-height) * -1);z-index:17501}.menu-container.collapsed[_ngcontent-%COMP%]{display:none}.menu-container[_ngcontent-%COMP%]:not(.collapsed){width:100vw!important}.main-menu[_ngcontent-%COMP%]{padding-top:.75rem}.menu-overlay[_ngcontent-%COMP%]{display:none!important}.mobile-controls[_ngcontent-%COMP%]{display:flex}.toggle-menu-container[_ngcontent-%COMP%]{display:none}.block-title[_ngcontent-%COMP%]{max-width:90%}}
285/*# sourceMappingURL=menu.component-YKUOEQOL.css.map */`]}));let i=e;return i;})();var ru=["confirmModal"];function su(i,e){if(i&1&&(m(0,"details",8)(1,"summary"),L(2,1),u(),I(3),u()),i&2){let t=g(2);d(2),Mt(t.moreInfo.title),Tt(2),d(),Ee(" ",t.moreInfo.content," ");}}function au(i,e){if(i&1){let t=F();m(0,"my-input-text",17),rt("ngModelChange",function(o){w(t);let r=g(3);return ot(r.inputValue,o)||(r.inputValue=o),P(o);}),A("keyup.enter",function(){w(t);let o=g(3);return P(o.confirm());}),u();}if(i&2){let t=g(3);_("autofocus",!0),it("ngModel",t.inputValue);}}function lu(i,e){if(i&1){let t=F();m(0,"input",18),rt("ngModelChange",function(o){w(t);let r=g(3);return ot(r.inputValue,o)||(r.inputValue=o),P(o);}),A("keyup.enter",function(){w(t);let o=g(3);return P(o.confirm());}),u();}if(i&2){let t=g(3);it("ngModel",t.inputValue);}}function cu(i,e){if(i&1&&(m(0,"div",9)(1,"label",14),I(2),u(),E(3,au,1,2,"my-input-text",15)(4,lu,1,1,"input",16),u()),i&2){let t=g(2);d(2),V(t.inputLabel),d(),M(t.isPasswordInput?3:4);}}function du(i,e){if(i&1&&(m(0,"div",10),I(1),u()),i&2){let t=g(2);d(),V(t.errorMessage);}}function uu(i,e){if(i&1){let t=F();m(0,"div",2)(1,"h4",3),I(2),u(),m(3,"button",4),A("click",function(){let o=w(t).dismiss;return P(o());}),v(4,"my-global-icon",5),u()(),m(5,"div",6),v(6,"div",7),E(7,su,4,2,"details",8),E(8,cu,5,2,"div",9),E(9,du,2,1,"div",10),u(),m(10,"div",11)(11,"input",12),A("click",function(){let o=w(t).dismiss;return P(o());})("key.enter",function(){let o=w(t).dismiss;return P(o());}),u(),m(12,"input",13),A("click",function(){let o=w(t).close;return P(o());})("key.enter",function(){w(t);let o=g();return P(o.confirm());}),u()();}if(i&2){let t=g();d(2),V(t.title),d(4),_("innerHtml",t.message,tt),d(),M(t.moreInfo?7:-1),d(),M(t.
285inputLabel?8:-1),d(),M(t.hasError()?9:-1),d(2),_("value",t.cancelButtonText),d(),_("value",t.confirmButtonText)("disabled",t.isConfirmationDisabled());}}var Wa=(()=>{let e=class e{modalService=p(Ke);html=p(Wr);confirmService=p(Gr);confirmModal=J("confirmModal");title="";message="";expectedInputValue="";inputLabel="";inputValue="";moreInfo;cancelButtonText="";confirmButtonText="";errorMessage="";isPasswordInput=!1;openedModal;ngOnInit(){this.confirmService.showConfirm.subscribe(n=>{this.title="",this.message="",this.expectedInputValue="",this.inputLabel="",this.inputValue="",this.moreInfo=void 0,this.confirmButtonText="",this.isPasswordInput=!1,this.errorMessage="";let{type:o,title:r,message:s,confirmButtonText:a,cancelButtonText:l,errorMessage:c,moreInfo:h}=n;this.title=r,this.moreInfo=h,o==="confirm-expected-input"?(this.inputLabel=n.inputLabel,this.expectedInputValue=n.expectedInputValue):o==="confirm-password"&&(this.inputLabel="Confirm your password",this.isPasswordInput=!0,this.errorMessage=c),this.confirmButtonText=a||"Confirm",this.cancelButtonText=l||"Cancel",this.html.toSimpleSafeHtmlWithLinks(s).then(y=>{this.message=y,this.showModal();});});}confirm(){this.openedModal&&this.openedModal.close();}isConfirmationDisabled(){return!this.inputLabel||!this.expectedInputValue?!1:this.expectedInputValue!==this.inputValue;}hasError(){return this.errorMessage;}showModal(){this.inputValue="",this.openedModal=this.modalService.open(this.confirmModal(),{centered:!0}),this.openedModal.result.then(()=>{this.confirmService.confirmResponse.next({confirmed:!0,value:this.inputValue});}).catch(n=>{(!n||n!==xn)&&this.confirmService.confirmResponse.next({confirmed:!1,value:this.inputValue});});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-confirm"]],viewQuery:function(o,r){o&1&&oe(r.confirmModal,ru,5),o&2&&re();},decls:2,vars:0,consts:()=>{let n;n="Close this modal";let o;return o=""+"\uFFFD0\uFFFD"+"",[["confirmModal",""],o,[1,"modal-header"],[1,"modal-title"],["title",n,1,"border-0","p-0",3,"click"],["iconName","cross"],[1,"modal-body"],[3,"innerHtml"],[1,"mt-3"],[1,"form-group","mt-3"],[1,"text-danger"],[1,"modal-footer","inputs"],["type","button","role","button",1,"peertube-button","secondary-button",3,"click","key.enter","value"],["ngbAutofocus","","type","submit",1,"peertube-button","primary-button",3,"click","key.enter","value","disabled"],["for","confirmInput"],["autocomplete","on","inputId","confirmInput",3,"autofocus","ngModel"],["type","text","myAutofocus","","id","confirmInput","name","confirmInput",3,"ngModel"],["autocomplete","on","inputId","confirmInput",3,"ngModelChange","keyup.enter","autofocus","ngModel"],["type","text","myAutofocus","","id","confirmInput","name","confirmInput",3,"ngModelChange","keyup.enter","ngModel"]];},template:function(o,r){o&1&&z(0,uu,13,8,"ng-template",null,0,ae);},dependencies:[X,kt,On,Nt,xt,gs],styles:[`.button[_ngcontent-%COMP%]{padding:0 13px}input[type=text][_ngcontent-%COMP%]{display:block;font-size:16px;padding:var(--input-y-padding) var(--input-x-padding);width:100%;max-width:100%;color:var(--input-fg);background-color:var(--input-bg);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);line-height:24px}input[type=text][_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color);font-size:var(--input-placeholder-font-size)}input[type=text][readonly][_ngcontent-%COMP%]{color:var(--fg-300)}input[type=text][_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--fg-100);outline:0}input[type=text][disabled][_ngcontent-%COMP%]{color:var(--fg-300);opacity:.8}@media screen and (max-width: calc(100% + 40px)){input[type=text][_ngcontent-%COMP%]{width:100%}}.modal-body[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;color:var(--fg-300)}
286/*# sourceMappingURL=confirm.component-XGHTGBO3.css.map */`]}));let i=e;return i;})();var mu=["accountSetupWarningModal"],pu=["adminConfigWizardModal"],gu=["instanceConfigWarningModal"],hu=["customModal"],fu=()=>[import("./chunk-KAOOILAI.js").then(i=>i.AccountSetupWarningModalComponent)],_u=()=>[import("./chunk-QYYMVS2S.js").then(i=>i.InstanceConfigWarningModalComponent),import("./chunk-3NCAZULR.js").then(i=>i.AdminConfigWizardModalComponent)],yu=(i,e,t)=>({"user-logged-in":i,"user-not-logged-in":e,"hotkeys-modal-opened":t}),Cu=i=>({expanded:i});function vu(i,e){if(i&1&&v(0,"div",7),i&2){let t=g();_("innerHTML",t.customCSS,tt);}}function Su(i,e){if(i&1){let t=F();m(0,"button",22),A("click",function(){w(t);let o=g(2);return P(o.hideBroadcastMessage());}),v(1,"my-global-icon",23),u();}}function bu(i,e){if(i&1&&(m(0,"div",17),v(1,"div",20),E(2,Su,2,0,"button",21),u()),i&2){let t=g();_("ngClass",t.broadcastMessage.class),d(),_("innerHTML",t.broadcastMessage.message,tt),d(),M(t.broadcastMessage.dismissable?2:-1);}}function Eu(i,e){if(i&1&&(m(0,"div",24),v(1,"my-global-icon",25),m(2,"div",26)(3,"h3"),I(4),u(),m(5,"p"),I(6),u()()()),i&2){let t=e.$implicit,n=g();d(),_("iconName",n.getNotificationIcon(t)),d(3),V(t.summary),d(2),V(t.detail);}}function Mu(i,e){if(i&1){let t=F();m(0,"my-account-setup-warning-modal",27,3),A("created",function(){w(t);let o=g();return P(o.onModalCreated());}),u();}}function Tu(i,e){if(i&1){let t=F();m(0,"my-admin-config-wizard-modal",27,4),A("created",function(){w(t);let o=g();return P(o.onModalCreated());}),u(),m(2,"my-instance-config-warning-modal",27,5),A("created",function(){w(t);let o=g();return P(o.onModalCreated());}),u();}}var Xa=(()=>{let e=class e{document=p(yn);localeId=p(wt);router=p(ye);authService=p(le);serverService=p(Ce);peertubeRouter=p(Hn);pluginService=p(zn);instanceService=p(qn);domSanitizer=p(er);screenService=p(Lt);hotkeysService=p(Dt);hooks=p(Un);location=p(zo);modalService=p(Ke);markdownService=p(Xr);ngbConfig=p(br);loadingBar=p(Pr);scrollService=p(Qr);userLocalStorage=p(Yr);peertubeModal=p(Qn);routerStatus=p(jr);redirectService=p(Ie);menu=p(Ft);accountSetupWarningModal=J("accountSetupWarningModal");adminConfigWizardModal=J("adminConfigWizardModal");instanceConfigWarningModal=J("instanceConfigWarningModal");customModal=J("customModal");customCSS;broadcastMessage=null;hotkeysModalOpened=!1;serverConfig;userLoaded=!1;constructor(){this.ngbConfig.animation=!1;}ngOnInit(){document.getElementById("incompatible-browser").className+=" browser-ok",this.loadUser(),this.serverConfig=this.serverService.getHTMLConfig(),this.hooks.runAction("action:application.init","common"),this.authService.loadClientCredentials(),this.isUserLoggedIn()&&this.authService.refreshUserInformation(),this.initRouteEvents(),this.scrollService.enableScrollRestoration(),this.injectJS(),this.injectCSS(),this.injectBroadcastMessage(),this.serverService.configReloaded.subscribe(n=>{this.serverConfig=n,this.injectBroadcastMessage(),this.injectCSS();}),this.initHotkeys(),this.location.onPopState(()=>this.modalService.dismissAll(xn)),this.listenUserChangeForModals(),this.document.documentElement.lang=_r(this.localeId),this.document.documentElement.dir=Bo(this.localeId),this.pluginService.addAction("application:increment-loader",()=>(this.loadingBar.useRef("plugins").start(),Promise.resolve())),this.pluginService.addAction("application:decrement-loader",()=>(this.loadingBar.useRef("plugins").complete(),Promise.resolve())),this.peertubeModal.openAdminConfigWizardSubject.subscribe(({showWelcome:n})=>{let o=this.adminConfigWizardModal();o&&o.show({showWelcome:n});});}ngAfterViewInit(){this.pluginService.initializeCustomModal(this.customModal());}ngOnDestroy(){this.pluginService.removeAction("application:increment-loader"),this.pluginService.removeAction("application:decrement-loader");}isUserLoggedIn(){return this.authService.isLoggedIn();}isUserAdmin(){return this.isUserLoggedIn()&&this.authService.getUser().role.id===Ai.ADMINISTRATOR;}hideBroadcastMessage(){Zt.setItem(e.LS_BROADCAST_MESSAGE,this.serverConfig.broadcastMessage.message),this.broadcastMessage=null,this.screenService.isBroadcastMessageDisplayed=!1;}getNotificationIcon(n){switch(n.severity){case"error":return"cross";case"success":return"tick";case"info":return"help";}}initRouteEvents(){let n=this.router.events;this.peertubeRouter.getNavigationEndEvents().subscribe(o=>{this.hooks.runAction("action:router.navigation-end","common",{path:o.url});}),n.pipe(pe(o=>o instanceof ir),pe(()=>this.screenService.isInSmallView()||this.screenService.isInTouchScreen())).subscribe(()=>this.menu.setMenuCollapsed(!0)),n.pipe(pe(o=>o instanceof or)).subscribe(o=>{o.route.data?.preloaded||this.loadingBar.useRef("router-"+o.route.path).start();}),n.pipe(pe(o=>o instanceof rr)).subscribe(o=>{o.route.data?.preloaded||this.loadingBar.useRef("router-"+o.route.path).complete();}),n.pipe(pe(o=>o instanceof nr)).subscribe(()=>{let o=this.router.currentNavigation();this.routerStatus.isNavigatingBack=o?.trigger==="popstate"||o?.extras.state?.trigger==="popstate";});}injectBroadcastMessage(){return gt(this,null,function*(){this.broadcastMessage=null,this.screenService.isBroadcastMessageDisplayed=!1;let n=this.serverConfig.broadcastMessage;if(n.enabled){if(n.dismissable&&localStorage.getItem(e.LS_BROADCAST_MESSAGE)===n.message)return;let o={info:"alert-info",warning:"alert-warning",error:"alert-danger"},r=document.createElement("div");r.innerHTML=yield this.markdownService.markdownToUnsafeHTML({markdown:n.message}),r.querySelectorAll("a").forEach(s=>s.className+=" alert-link"),this.broadcastMessage={message:r.innerHTML,dismissable:n.dismissable,class:o[n.level]},this.screenService.isBroadcastMessageDisplayed=!0;}});}injectJS(){if(this.serverConfig.instance.customizations.javascript)try{window.eval(this.serverConfig.instance.customizations.javascript);}catch(n){Fe.error("Cannot eval custom JavaScript.",n);}}injectCSS(){let n=document.querySelector("style.custom-css-style");if(n&&n.parentNode.removeChild(n),this.customCSS||this.serverConfig.instance.customizations.css){let o="<style>"+this.serverConfig.instance.customizations.css+"</style>";this.customCSS=this.domSanitizer.bypassSecurityTrustHtml(o);}}listenUserChangeForModals(){this.authService.userInformationLoaded.pipe(me(()=>this.authService.getUser())).subscribe(n=>{this.userLoaded=!0,this.openModalsIfNeeded(n);});}onModalCreated(){let n=this.authService.getUser();n&&setTimeout(()=>this.openModalsIfNeeded(n));}
286openModalsIfNeeded(n){this.userLoaded&&(n.role.id===Ai.ADMINISTRATOR?this.openAdminModalsIfNeeded(n):this.openAccountModalsIfNeeded(n));}openAdminModalsIfNeeded(n){let o=this.adminConfigWizardModal();if(!o)return;if(o.shouldAutoOpen(n))return o.show({showWelcome:!0});let r=this.instanceConfigWarningModal();r&&r.canBeOpenByUser(n)&&hn([this.serverService.getConfig().pipe(Ue()),this.instanceService.getAboutWithCache().pipe(Ue())]).subscribe(([s,a])=>{let l=this.instanceConfigWarningModal();l.shouldAutoOpen(s,a)&&l.show(a);});}openAccountModalsIfNeeded(n){let o=this.accountSetupWarningModal();o&&o.shouldAutoOpen(n)&&o.show(n);}initHotkeys(){this.hotkeysService.add([new lt(["Shift+/","s"],()=>(document.getElementById("search-video").focus(),!1),"Focus the search bar"),new lt("b",()=>(this.menu.toggleMenu(),!1),"Toggle the left menu"),new lt("g o",()=>(this.router.navigate(["/videos/overview"]),!1),"Go to the \"Discover videos\" page"),new lt("g v",()=>(this.router.navigate(["/videos/browse"]),!1),"Go to the \"Browse videos\" page"),new lt("g p",()=>(this.router.navigate(["/videos/publish"]),!1),"Go to the \"Publish video\" page"),new lt("g l",()=>(this.redirectService.redirectToLogin(),!1),"Go to the login page")]);}onHotkeysModalStateChange(n){this.hotkeysModalOpened=n;}loadUser(){let n=this.userLocalStorage.getTokens();if(!n)return;let o=this.userLocalStorage.getLoggedInUser();o&&this.authService.buildAuthUser(o,n);}};f(e,"LS_BROADCAST_MESSAGE","app-broadcast-message-dismissed"),f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-app"]],viewQuery:function(o,r){o&1&&oe(r.accountSetupWarningModal,mu,5)(r.adminConfigWizardModal,pu,5)(r.instanceConfigWarningModal,gu,5)(r.customModal,hu,5),o&2&&re(4);},decls:27,vars:13,consts:()=>{let n;n="Skip to main content";let o;return o="Close this message",[["mainContent",""],["message",""],["customModal",""],["accountSetupWarningModal",""],["adminConfigWizardModal",""],["instanceConfigWarningModal",""],n,[3,"innerHTML"],["href","#content",1,"visually-hidden-focusable","skip-to-content",3,"click"],[3,"hotkeysModalStateChange"],[1,"peertube-container",3,"ngClass"],[1,"root-header"],[1,"w-100"],[1,"sub-header-container"],["id","left-menu","role","navigation","aria-label","Main menu"],["tabindex","-1","id","content",1,"main-col",3,"ngClass"],[1,"main-row"],[1,"broadcast-message","alert","margin-content",3,"ngClass"],["color","var(--border-primary)",3,"includeSpinner"],["position","bottom-right"],[1,"text-break",3,"innerHTML"],["title",o,1,"border-0"],["title",o,1,"border-0",3,"click"],["iconName","cross"],[1,"notification-block"],[3,"iconName"],[1,"message"],[3,"created"]];},template:function(o,r){if(o&1){let s=F();E(0,vu,1,1,"div",7),m(1,"a",8),A("click",function(l){w(s);let c=se(10);return l.preventDefault(),P(c.focus());}),L(2,6),u(),m(3,"my-hotkeys-cheat-sheet",9),A("hotkeysModalStateChange",function(l){return r.onHotkeysModalStateChange(l);}),u(),m(4,"div",10)(5,"header",11),v(6,"my-header",12),u(),m(7,"div",13),v(8,"my-menu",14),m(9,"main",15,0)(11,"div",16),E(12,bu,3,3,"div",17),v(13,"router-outlet"),u()()()(),v(14,"ngx-loading-bar",18)(15,"my-confirm"),m(16,"p-toast",19),z(17,Eu,7,3,"ng-template",null,1,ae),u(),Kt(19,Mu,2,0),qt(20,19,fu),Kt(22,Tu,4,0),qt(23,22,_u),v(25,"my-custom-modal",null,2);}o&2&&(M(r.customCSS?0:-1),d(4),_("ngClass",Fo(7,yu,r.isUserLoggedIn(),!r.isUserLoggedIn(),r.hotkeysModalOpened)),d(5),_("ngClass",K(11,Cu,r.menu.isCollapsed())),d(3),M(r.broadcastMessage?12:-1),d(2),_("includeSpinner",!1),d(6),Wt(r.isUserLoggedIn()),d(3),Wt(r.isUserAdmin()));},dependencies:[ja,_e,Ga,qa,X,wn,Ar,Or,Wa,_i,go,at,$a],styles:[`.skip-to-content[_ngcontent-%COMP%]{position:absolute;top:0;display:block;z-index:19000;width:100%;background:var(--bg);padding:1rem;text-align:center;text-decoration:underline}.peertube-container[_ngcontent-%COMP%]{padding-bottom:20px}.peertube-container.hotkeys-modal-opened[_ngcontent-%COMP%]{display:none}.main-row[_ngcontent-%COMP%]{min-height:calc(100vh - var(--header-height) - 30px - 30px)}.sub-header-container[_ngcontent-%COMP%]{margin-top:var(--header-height);background-color:var(--bg);width:100%}.root-header[_ngcontent-%COMP%]{height:var(--header-height);position:fixed;top:0;width:100%;background:var(--bg)}.broadcast-message[_ngcontent-%COMP%]{min-height:50px;text-align:center;margin-bottom:2rem;display:grid;grid-template-columns:1fr 30px;column-gap:10px}.broadcast-message[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:block;color:inherit;height:fit-content;margin:auto}.broadcast-message[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > my-global-icon[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;line-height:20px}
287/*# sourceMappingURL=app.component-5FEL6MNA.css.map */`]}));let i=e;return i;})();var Ya=(()=>{let e=class e{};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-empty"]],decls:0,vars:0,template:function(o,r){},encapsulation:2}));let i=e;return i;})();var ho=(()=>{let e=class e{route=p(Ot);redirectService=p(Ie);
287ngOnInit(){let n=this.route.snapshot.url;(n.length===0||hr("/"+n[0]))&&this.redirectService.redirectToHomepage({skipLocationChange:!0});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(o,r){},encapsulation:2}));let i=e;return i;})();var Ci=(()=>{let e=class e{router=p(ye);accountService=p(jn);channelService=p(Kn);canActivate(n){let o=n.params.actorName;return hn([this.accountService.getAccount(o).pipe(this.orUndefined()),this.channelService.get(o).pipe(this.orUndefined())]).pipe(me(([r,s])=>r?this.router.parseUrl(`/a/${o}`):s?this.router.parseUrl(`/c/${o}`):this.router.parseUrl("/404")));}orUndefined(){return fn(()=>Ae(void 0));}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})();var Za=(()=>{let e=class e{server=p(Ce);authService=p(le);menuEntries=[];sub;ngOnInit(){this.buildMenu(),this.sub=this.authService.loginChangedSource.subscribe(()=>this.buildMenu());}ngOnDestroy(){this.sub&&this.sub.unsubscribe();}buildMenu(){let n=this.server.getHTMLConfig();this.menuEntries=[],n.homepage.enabled&&this.menuEntries.push({label:"Home",routerLink:"/home"}),this.menuEntries.push({label:"Discover",routerLink:"/videos/overview"}),this.authService.isLoggedIn()&&this.menuEntries.push({label:"Subscriptions",routerLink:"/videos/subscriptions"}),this.menuEntries.push({label:"Browse videos",routerLink:"/videos/browse"});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["my-home-menu"]],decls:2,vars:1,consts:[[1,"margin-content"],[3,"menuEntries"]],template:function(o,r){o&1&&(m(0,"div",0),v(1,"my-horizontal-menu",1),u()),o&2&&(d(),_("menuEntries",r.menuEntries));},dependencies:[_s],encapsulation:2}));let i=e;return i;})();var Ja=(()=>{let e=class e{disableForReuse(){}enabledForReuse(){}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275cmp",D({type:e,selectors:[["ng-component"]],decls:2,vars:0,template:function(o,r){o&1&&v(0,"my-home-menu")(1,"router-outlet");},dependencies:[Za,wn],encapsulation:2}));let i=e;return i;})();var fo=[{path:"admin",loadChildren:()=>import("./chunk-KSMKAP3L.js"),canActivateChild:[W]},{path:"my-account",loadChildren:()=>import("./chunk-4RAJCPFA.js"),canActivateChild:[W]},{path:"my-library",loadChildren:()=>import("./chunk-SCAN4HJA.js"),canActivateChild:[W]},{path:"verify-account",loadChildren:()=>import("./chunk-FNA7DJD6.js"),canActivateChild:[W]},{path:"accounts",redirectTo:"a"},{path:"a",loadChildren:()=>import("./chunk-V2IS2DC3.js"),canActivateChild:[W]},{path:"video-channels",redirectTo:"c"},{path:"c",loadChildren:()=>import("./chunk-2TKICDIR.js"),canActivateChild:[W]},{path:"manage/create",redirectTo:"/my-library/video-channels/create",pathMatch:"full"},{path:"manage/update/:channel",pathMatch:"full",redirectTo:"/my-library/video-channels/update/:channel"},{path:"p",loadChildren:()=>import("./chunk-SZTGVY5Z.js"),canActivateChild:[W],data:{parentRoute:"/"}},{path:"about",loadChildren:()=>import("./chunk-IAT7PEDQ.js"),canActivateChild:[W]},{path:"signup",loadChildren:()=>import("./chunk-HHBB4TDK.js"),canActivateChild:[W]},{path:"reset-password",loadChildren:()=>import("./chunk-OR3TQC2J.js"),canActivateChild:[W]},{path:"login",loadChildren:()=>import("./chunk-DBIK4TXK.js"),canActivateChild:[W]},{path:"search",loadChildren:()=>import("./chunk-6SSPISEJ.js"),canActivateChild:[W]},{path:"studio/edit/:videoId",redirectTo:"/videos/manage/:videoId/studio",pathMatch:"full"},{path:"stats/videos/:videoId",redirectTo:"/videos/manage/:videoId/stats",pathMatch:"full"},{path:"videos/upload",redirectTo:"/videos/publish",pathMatch:"full"},{path:"videos/update/:uuid",pathMatch:"full",redirectTo:"/videos/manage/:uuid"},{path:"videos/manage/:uuid",loadChildren:()=>import("./chunk-G76CFDQT.js"),canActivateChild:[W],data:{meta:{title:"Manage your video"}}},{path:"videos/publish",loadChildren:()=>import("./chunk-Q6WGG7U3.js"),canActivateChild:[W],data:{meta:{title:"Publish your video"}}},{path:"video-playlists/watch",redirectTo:"w/p"},{path:"videos/watch/playlist",redirectTo:"w/p"},{path:"videos/watch",redirectTo:"w"},{path:"w",loadChildren:()=>import("./chunk-75YWT6KB.js"),data:{preload:5e3}},{matcher:i=>i.length<1||!(i[0].path==="home"||i[0].path==="videos")?null:{consumed:[]},component:Ja,children:[{path:"home",loadChildren:()=>import("./chunk-3NX65QBU.js"),canActivateChild:[W]},{path:"videos",loadChildren:()=>import("./chunk-B6VPU2R7.js"),canActivateChild:[W]}]},{path:"remote-interaction",loadChildren:()=>import("./chunk-XYCVZ2XL.js"),canActivateChild:[W]},{matcher:i=>{let e=new RegExp(`^@(${hs}+)$`);if(i.length!==1)return null;let t=i[0].path.match(e);return t?{consumed:i,posParams:{actorName:new tr(t[1],{})}}:null;},pathMatch:"full",canActivate:[Ci],component:Ya},{path:"",component:ho}];for(let i of gr)fo.push({path:i,component:ho});fo.push({path:"**",loadChildren:()=>import("./chunk-W3KVNNZ2.js")});var el=fo;var wu=(()=>{let e=class e{injector=p(_t);router=p(ye);authService;intercept(n,o){this.authService===void 0&&(this.authService=this.injector.get(le));let r=this.cloneRequestWithAuth(n);return o.handle(r).pipe(fn(s=>{let a=s.error,l=new Set([An.VIDEO_REQUIRES_PASSWORD,An.INCORRECT_VIDEO_PASSWORD,An.CURRENT_PASSWORD_IS_INVALID]);
287if(a?.code&&l.has(a.code))return bi(()=>s);if(!this.authService.isOTPMissingError(s)){if(s.status===Oi.UNAUTHORIZED_401&&a?.code===mr.INVALID_TOKEN)return this.handleTokenExpired(n,o);if(s.status===Oi.UNAUTHORIZED_401)return this.handleNotAuthenticated(s);}return bi(()=>s);}));}handleTokenExpired(n,o){return this.authService.refreshAccessToken().pipe(Se(()=>{let r=this.cloneRequestWithAuth(n);return o.handle(r);}));}cloneRequestWithAuth(n){let o=this.authService.getRequestHeaderValue(),r=n.url.startsWith("/")||In(kn(),n.url);return o===null||!r?n:n.clone({headers:n.headers.set("Authorization",o)});}handleNotAuthenticated(n){return this.router.navigate(["/401"],{state:{obj:n},skipLocationChange:!0}),Ae(n.message);}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})(),tl={provide:qo,useClass:wu,multi:!0};var nl=(()=>{let e=class e{videoService=p(Wn);resolve(n){let o=n.params.videoId;return this.videoService.getVideo({videoId:o});}};f(e,"\u0275fac",function(o){return new(o||e)();}),f(e,"\u0275prov",ne({token:e,factory:e.ɵfac}));let i=e;return i;})();function il(){return[Ko,os,tl,jn,Ms,Gn,vs,ws,is,Wn,Ss,nl,Cs,Kn,ys,Ps,bs,Ci,qn,Ts,fs,Es];}Qo(ur,"oc");function Pu(i,e,t,n){let o=()=>(n.init(),t.initialize(),e.initializePlugins());return()=>{let r=i.loadHTMLConfig();return r?r.pipe(Se(()=>o())):o();};}Jt.production?void 0:xo();Fe.registerServerSending(Jt.apiUrl);var Ou=()=>Zo(Xa,{providers:[Ho({eventCoalescing:!0}),Ei(Mn,wa,xa.register("ngsw-worker.js",{enabled:Jt.production})),Wo(Xo([Ia])),Ei(Nr,_i,wr),es(),il(),ka(),Ii,{provide:sr,useClass:Kr},ar(el,cr(Ii),lr({anchorScrolling:"disabled",scrollPositionRestoration:"disabled"})),{provide:Uo,useValue:"/"},Cn(()=>Pu(p(Ce),p(zn),p(Zr),p(Ie))()),Dr({theme:{preset:dr}})]}).then(i=>{if(!Jt.production){let t=i.injector.get(Qt).components[0];Jo(t);}return i;}).catch(i=>{try{Fe.error(i);}catch(e){console.error("Cannot log error",{err:i,err2:e});}return setTimeout(()=>{if(document.querySelector("my-app").innerHTML==="")throw i;},1e3),null;});Ou();export{Pu as loadConfigFactory};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=main-YTLUAO44.js.map

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.