1import{a as aa}from"./chunk-3GMOCE7L.js";import{a as xt}from"./chunk-5AFLFE5B.js";import{a as Zo}from"./chunk-5FNGHBIK.js";import{a as oa}from"./chunk-3U5JSWAK.js";import{a as Jo,b as Yo}from"./chunk-N4BBJ3ZY.js";import{a as Ko}from"./chunk-5KEPD2VL.js";import{a as mi,b as sa}from"./chunk-IFRFPZGR.js";import{a as Wo}from"./chunk-STD3I7BY.js";import{a as Eo,c as Ao,e as gn,h as Uo,i as hi}from"./chunk-HUGXQ7YO.js";import"./chunk-QBPY7IMF.js";import{a as di,b as _o,f as pn}from"./chunk-UWUWNVX6.js";import"./chunk-5C3OIY5V.js";import"./chunk-O2JKT3NX.js";import"./chunk-YE5P6ELA.js";import"./chunk-BOZU3N7D.js";import"./chunk-XMTBYMZS.js";import"./chunk-53BPQFZP.js";import"./chunk-3MJDUM2Z.js";import"./chunk-A4SRYQMI.js";import{c as Pe}from"./chunk-AUEIGRB4.js";import{a as Sr,b as yo,d as mn,e as vo}from"./chunk-G6MS7VDZ.js";import"./chunk-OUSQIK6P.js";import"./chunk-UAVREOVF.js";import{e as $o}from"./chunk-2WWVY3Z6.js";import"./chunk-5CVONPUM.js";import{a as Ho}from"./chunk-2Y47AMCN.js";import{a as Qo}from"./chunk-FRQYCC4G.js";import{b as Vo}from"./chunk-S7XRKUUU.js";import"./chunk-3TA2FBI6.js";import{a as J}from"./chunk-G2EL2N2H.js";import{a as Bo}from"./chunk-PUQZ2PIE.js";import{a as Go}from"./chunk-BJCDYU42.js";import"./chunk-QOG7NWHO.js";import"./chunk-GNLGOYDK.js";import"./chunk-LDW3BFFO.js";import"./chunk-6OY5FZ2D.js";import{a as ea}from"./chunk-LFCICG4X.js";import{a as ta,b as na}from"./chunk-657XKQ5A.js";import{a as ra,b as ia}from"./chunk-NUBBT6OG.js";import"./chunk-E77QQZZN.js";import"./chunk-UTBVZPGX.js";import"./chunk-7CIBA6WV.js";import"./chunk-ZSGIDJ5I.js";import"./chunk-FYUZGN4H.js";import"./chunk-HA5UVL53.js";import"./chunk-OTBL3MSG.js";import"./chunk-B74PVDQR.js";import{b as Io,c as zo}from"./chunk-MWAKAF5U.js";import"./chunk-BQIL5I57.js";import"./chunk-4QHJRCTN.js";import{a as _r}from"./chunk-D6HLX4YJ.js";import"./chunk-R23WVFPP.js";import"./chunk-GNZJIVHV.js";import{a as qo}from"./chunk-CR6U5WLN.js";import"./chunk-HIL2EYEU.js";import"./chunk-OEXHENXO.js";import"./chunk-XC5JTGP5.js";import"./chunk-XK6PXV72.js";import{g as Xo}from"./chunk-RSMD7TZP.js";import"./chunk-H66H7GDN.js";import{d as Gt}from"./chunk-YDBBYUG6.js";import"./chunk-5ZKXSCV2.js";import{b as Lo,h as Fo,i as jo}from"./chunk-G4NTV4H4.js";import"./chunk-SKBWDFI7.js";import{a as Xs,b as so,d as oo,e as ao,g as co,h as Fe}from"./chunk-HN5LDCIN.js";import{a as S}from"./chunk-ELRWA3VR.js";import{Ea as Vs,Ob as Ys,Za as yr,_a as Js,mc as Zs,u as Ks,w as Ws}from"./chunk-6JXCKV3I.js";import{a as Ke,b as Ut}from"./chunk-YZB36ZEK.js";import"./chunk-3E4TLBPE.js";import{a as yn}from"./chunk-YOQWGJMX.js";import{a as wr}from"./chunk-KIY6YMFQ.js";import"./chunk-EEUNE4U7.js";import"./chunk-YSBGWY5V.js";import{b as xo}from"./chunk-E6U6KUNX.js";import"./chunk-SOAT5ANV.js";import"./chunk-DNX2L6GZ.js";import{a as $r,b as Er,c as Do}from"./chunk-ZUUMSVZV.js";import"./chunk-ODHFD4CN.js";import"./chunk-CY3NACZJ.js";import"./chunk-ODIXDGVO.js";import"./chunk-CW3CCC2O.js";import"./chunk-KVLQONS5.js";import{h as li,i as to,m as no,o as ro,p as io}from"./chunk-JJCU5L2Y.js";import{a as D}from"./chunk-Q2T7O7RU.js";import"./chunk-GEHOVCQI.js";import{a as vt,b as fn}from"./chunk-XARSS6BT.js";import{K as Oo,i as To,j as Mo,l as No,p as ko,s as Co,v as Po,w as Ro}from"./chunk-VM5GAPOB.js";import"./chunk-XWF3DHWI.js";import"./chunk-3YLE7GMM.js";import{h as lo}from"./chunk-4EXIS2VV.js";import"./chunk-6INWRZYZ.js";import"./chunk-SZMNBCXC.js";import"./chunk-CSS77SVE.js";import"./chunk-7RWCIHFI.js";import{a as Z,b as ot,f as uo,g as ui,m as Zt,n as vr,o as Dn}from"./chunk-XTLQYN4R.js";import{h as So,i as bo,k as br,l as wo}from"./chunk-4ZJLZYB7.js";import"./chunk-VTPDZ64Y.js";import"./chunk-QNDFDNVO.js";import{b as Dt,c as fr,d as Hs}from"./chunk-MMUJKWCA.js";import{a as Qs,b as pr,c as et,e as gr,f as hn}from"./chunk-MIVTPLLS.js";import{a as We}from"./chunk-P2U6ME4N.js";import"./chunk-NCCDN55D.js";import"./chunk-RYPOWAVO.js";import{m as ho,r as mo,s as fo,t as po,u as go}from"./chunk-ZTUFLSLO.js";import"./chunk-TLTQCCO6.js";import{c as Gs,d as Bs,e as qs,f as jt,h as Ce,j as On}from"./chunk-2UGB323M.js";import{k as eo}from"./chunk-EIEYT4OA.js";import{b as Se}from"./chunk-CMTHOT2H.js";import{a as xs,b as Is,c as hr,o as mr,p as zs,q as Ls,r as Fs,u as js,w as Us}from"./chunk-IV43SIEW.js";import{Aa as Ye,D as ii,Db as Ae,Dc as As,Ea as ys,Eb as pt,F as ms,Fc as ai,G as fs,H as Pt,Ic as ar,Jb as Rt,Jc as ci,K as Qt,Kc as Ts,La as si,O as Jt,Q as un,Rb as Ot,Sa as ir,Sc as cr,Ta as oi,Tc as Ms,Uc as Ns,Yb as Ze,_b as Xe,aa as kn,ae as Os,bc as ws,cc as $s,dc as Ie,de as dn,ec as ne,ed as gt,ee as ur,fc as ie,fd as yt,ga as te,gc as me,h as hs,jd as lr,ka as ce,la as ft,lb as he,ld as ks,mc as Yt,na as ps,nc as sr,ne as Ds,oa as Ne,od as Cs,p as ri,pa as N,pd as Ps,q as mt,qc as or,qe as st,rb as vs,se as dr,tc as He,ub as Ss,uc as Es,va as tr,vb as bs,vc as _s,w as er,wa as nr,wd as Rs,xb as xe,xc as Cn,ya as gs,yc as Pn,za as rr,zc as Rn}from"./chunk-UAB36AYV.js";import{a as it,b as us,d as ds,e as Nl,g as kl,l as Vt}from"./chunk-D4ZM5DW5.js";var Pc=Nl((Ji,Yi)=>{(function(a,e){typeof Ji=="object"&&typeof Yi<"u"?Yi.exports=e():typeof define=="function"&&define.amd?define(e):(a=typeof globalThis<"u"?globalThis:a||self,a.MessageFormat=e())}
1)(Ji,function(){"use strict";var a=function(){return a=Object.assign||function(i){for(var s,o=1,l=arguments.length;o<l;o++){s=arguments[o];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])}return i},a.apply(this,arguments)};function e(t){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&t[i],o=0;if(s)return s.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(t,i){var s=typeof Symbol=="function"&&t[Symbol.iterator];if(!s)return t;var o=s.call(t),l,u=[],h;try{for(;(i===void 0||i-- >0)&&!(l=o.next()).done;)u.push(l.value)}catch(p){h={error:p}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(h)throw h.error}}return u}function r(t,i,s){if(s||arguments.length===2)for(var o=0,l=i.length,u;o<l;o++)(u||!(o in i))&&(u||(u=Array.prototype.slice.call(i,0,o)),u[o]=i[o]);return t.concat(u||Array.prototype.slice.call(i))}typeof SuppressedError=="function"&&SuppressedError;class c extends Error{constructor(i,s,o){super(i),this.token=s,this.type=o||"error"}}let d=t=>t<4?"short":t===4?"long":"narrow",m=t=>t%2===0?"2-digit":"numeric";function f(t,i){switch(t.char){case"y":return{year:m(t.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return i(`${t.desc} is not supported; falling back to year:numeric`,c.WARNING),{year:"numeric"}}}function g(t,i){switch(t.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:i(`${t.desc} is not supported with width ${t.width}`);return}}function b(t,i){let{char:s,desc:o,width:l}=t;if(s==="d")return m(l);i(`${o} is not supported`)}function k(t,i){let{char:s,desc:o,width:l}=t;if((s==="c"||s==="e")&&l<3){let u=`Numeric value is not supported for ${o}; falling back to weekday:short`;i(u,c.WARNING)}return d(l)}function P(t){let i=m(t.width),s;switch(t.char){case"h":s="h12";break;case"H":s="h23";break;case"k":s="h24";break;case"K":s="h11";break}return s?{hour:i,hourCycle:s}:{hour:i}}function K(t,i){let{char:s,desc:o,width:l}=t;switch(s){case"v":case"z":return l===4?"long":"short";case"V":if(l===4)return"long";i(`${o} is not supported with width ${l}`);return;case"X":i(`${o} is not supported`);return}return"short"}function U(t,i){switch(t.field){case"era":return{era:d(t.width)};case"year":return f(t,i);case"month":return{month:g(t,i)};case"day":return{day:b(t,i)};case"weekday":return{weekday:k(t,i)};case"period":return;case"hour":return P(t);case"min":return{minute:m(t.width)};case"sec":return{second:m(t.width)};case"tz":return{timeZoneName:K(t,i)};case"quarter":case"week":case"sec-frac":case"ms":i(`${t.desc} is not supported`)}}function x(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u=>{throw u},o={timeZone:i},l=[];for(let u of t){let{error:h,field:p,str:y}=u;if(h){let I=new c(h.message,u);I.stack=h.stack,s(I)}if(y){let I=`Ignoring string part: ${y}`;s(new c(I,u,c.WARNING))}p&&(l.indexOf(p)===-1?l.push(p):s(new c(`Duplicate ${p} token`,u)));let E=U(u,(I,G)=>s(new c(I,u,G)));E&&Object.assign(o,E)}return o}let j={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},ae=t=>t>="A"&&t<="Z"||t>="a"&&t<="z";function be(t,i){let s=t[i],o=1;for(;t[++i]===s;)++o;let l=j[s];if(!l){let u=`The letter ${s} is not a valid field identifier`;return{char:s,error:new Error(u),width:o}}return{char:s,field:l.field,desc:l.desc,width:o}}function Ee(t,i){let s=t[++i],o=2;if(s==="'")return{char:"'",str:s,width:o};for(;;){let l=t[++i];if(++o,l===void 0){let u=`Unterminated quoted literal in pattern: ${s||t}`;return{char:"'",error:new Error(u),str:s,width:o}}else if(l==="'"){if(t[++i]!=="'")return{char:"'",str:s,width:o};++o}s+=l}}function Re(t,i){let s=t[i];if(!s)return null;if(ae(s))return be(t,i);if(s==="'")return Ee(t,i);let o=s,l=1;for(;;){let u=t[++i];if(!u||ae(u)||u==="'")return{char:s,str:o,width:l};o+=u,l+=1}}function _e(t){let i=[],s=0;for(;;){let o=Re(t,s);if(!o)return i;i.push(o),s+=o.width}}function zt(t,i,s,o){typeof i=="string"&&(i=_e(i)),typeof s=="function"&&(o=s,s=void 0);let l=x(i,s,o),u=new Intl.DateTimeFormat(t,l);return h=>u.format(h)}function Ve(t,i,s,o){typeof i=="string"&&(i=_e(i)),typeof s=="function"&&(o=s,s=void 0);let l=x(i,s,o);return["(function() {",`var opt = ${JSON.stringify(l)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(t)}, opt);`,"return function(value) { return dtf.format(value); }"].join(` 2 `)+` 3})()`}
3class ye extends Error{constructor(i,s){super(s),this.code=i}}class Te extends ye{constructor(i,s){super("BAD_OPTION",`Unknown ${i} option: ${s}`),this.stem=i,this.option=s}}class wt extends ye{constructor(i){super("BAD_STEM",`Unknown stem: ${i}`),this.stem=i}}class lt extends ye{constructor(i,s){super("MASKED_VALUE",`Value for ${i} is set multiple times`),this.type=i,this.prev=s}}class qn extends ye{constructor(i){super("MISSING_OPTION",`Required option missing for ${i}`),this.stem=i}}class je extends ye{constructor(i,s){super("BAD_PATTERN",s),this.char=i}}class rn extends ye{constructor(i,s,o){let l=o>1?`${o} options`:"one option";super("TOO_MANY_OPTIONS",`Token ${i} only supports ${l} (got ${s.length})`),this.stem=i,this.options=s}}class Hn extends ye{constructor(i,s){super("UNSUPPORTED",`The stem ${i} is not supported`),this.stem=i,s&&(this.message+=` with value ${s}`,this.source=s)}}function _n(t,i){let{numberingSystem:s}=i;return Array.isArray(t)||(t=[t]),s?t.map(o=>{let l=o.indexOf("-u-")===-1?"u-nu":"nu";return`${o}-${l}-${s}`}).concat(t):t}function R(t,i){let s=+t+i/2;return s-s%+i}function z(t){let{scale:i,unit:s}=t,o=typeof i=="number"&&i>=0?i:1;return s&&s.style==="percent"&&(o*=.01),o}function L(t){let i=z(t),{precision:s}=t;return s&&s.style==="precision-increment"?o=>R(o,s.increment)*i:o=>o*i}function X(t){let i=z(t),{precision:s}=t;if(s&&s.style==="precision-increment"){let o=`+n + ${s.increment/2}`,l=`x - (x % +${s.increment})`;return i!==1&&(l=`(${l}) * ${i}`),`function(n) { var x = ${o}; return ${l}; }`}return i!==1?`function(n) { return n * ${i}; }`:null}function we(t,i){let{decimal:s,group:o,integerWidth:l,notation:u,precision:h,roundingMode:p,sign:y,unit:E,unitPer:I,unitWidth:G}=t,q=(le,pe)=>{i&&i(new Hn(le,pe))},C={};if(E)switch(E.style){case"base-unit":C.style="decimal";break;case"currency":C.style="currency",C.currency=E.currency;break;case"measure-unit":C.style="unit",C.unit=E.unit.replace(/.*-/,""),I&&(C.unit+="-per-"+I.replace(/.*-/,""));break;case"percent":C.style="percent";break;case"permille":q("permille");break}switch(G){case"unit-width-full-name":C.currencyDisplay="name",C.unitDisplay="long";break;case"unit-width-hidden":q(G);break;case"unit-width-iso-code":C.currencyDisplay="code";break;case"unit-width-narrow":C.currencyDisplay="narrowSymbol",C.unitDisplay="narrow";break;case"unit-width-short":C.currencyDisplay="symbol",C.unitDisplay="short";break}switch(o){case"group-off":C.useGrouping=!1;break;case"group-auto":C.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":q(o),C.useGrouping=!0;break}if(h)switch(h.style){case"precision-fraction":{let{minFraction:le,maxFraction:pe,minSignificant:$e,maxSignificant:Le,source:Je}
3=h;typeof le=="number"&&(C.minimumFractionDigits=le,typeof $e=="number"&&q("precision-fraction",Je)),typeof pe=="number"&&(C.maximumFractionDigits=pe),typeof $e=="number"&&(C.minimumSignificantDigits=$e),typeof Le=="number"&&(C.maximumSignificantDigits=Le);break}case"precision-integer":C.maximumFractionDigits=0;break;case"precision-unlimited":C.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":C.trailingZeroDisplay=h.trailingZero;break;case"precision-currency-cash":q(h.style);break}if(u)switch(u.style){case"compact-short":C.notation="compact",C.compactDisplay="short";break;case"compact-long":C.notation="compact",C.compactDisplay="long";break;case"notation-simple":C.notation="standard";break;case"scientific":case"engineering":{let{expDigits:le,expSign:pe,source:$e,style:Le}=u;C.notation=Le,(le&&le>1||pe&&pe!=="sign-auto")&&q(Le,$e);break}}if(l){let{min:le,max:pe,source:$e}=l;if(le>0&&(C.minimumIntegerDigits=le),Number(pe)>0){let Le=C.notation==="engineering"||C.notation==="scientific";pe===3&&Le?C.notation="engineering":q("integer-width",$e)}}switch(y){case"sign-auto":C.signDisplay="auto";break;case"sign-always":C.signDisplay="always";break;case"sign-except-zero":C.signDisplay="exceptZero";break;case"sign-never":C.signDisplay="never";break;case"sign-accounting":C.currencySign="accounting";break;case"sign-accounting-always":C.currencySign="accounting",C.signDisplay="always";break;case"sign-accounting-except-zero":C.currencySign="accounting",C.signDisplay="exceptZero";break}return s==="decimal-always"&&q(s),p&&q(p),C}function qe(t,i,s){let o=t[i];switch(o){case"%":return{char:"%",style:"percent",width:1};case"\u2030":return{char:"%",style:"permille",width:1};case"\xA4":{let l=1;for(;t[++i]==="\xA4";)++l;switch(l){case 1:return{char:o,currency:"default",width:l};case 2:return{char:o,currency:"iso-code",width:l};case 3:return{char:o,currency:"full-name",width:l};case 5:return{char:o,currency:"narrow",width:l};default:{let u=`Invalid number (${l}) of \xA4 chars in pattern`;return s(new je("\xA4",u)),null}}}case"*":{let l=t[i+1];if(l)return{char:o,pad:l,width:2};break}case"+":case"-":return{char:o,width:1};case"'":{let l=t[++i],u=2;if(l==="'")return{char:o,str:l,width:u};for(;;){let h=t[++i];if(++u,h===void 0){let p=`Unterminated quoted literal in pattern: ${l}`;return s(new je("'",p)),{char:o,str:l,width:u}}else if(h==="'"){if(t[++i]!=="'")return{char:o,str:l,width:u};++u}l+=h}}}return null}let ze=t=>t>="0"&&t<="9";function nt(t,i){let s=t[i];if(ze(s)){let o=s;for(;;){let l=t[++i];if(ze(l))o+=l;else return{char:"0",digits:o,width:o.length}}}switch(s){case"#":{let o=1;for(;t[++i]==="#";)++o;return{char:s,width:o}}case"@":{let o=1;for(;t[++i]==="@";)++o;let l=o;for(i-=1;t[++i]==="#";)++l;return{char:s,min:o,width:l}}case"E":{let o=t[i+1]==="+";o&&++i;let l=0;for(;t[++i]==="0";)++l;let u=(o?2:1)+l;if(l)return{char:s,expDigits:l,plus:o,width:u};break}case".":case",":return{char:s,width:1}}return null}function de(t,i,s){let o;(function(E){E[E.Prefix=0]="Prefix",E[E.Number=1]="Number",E[E.Suffix=2]="Suffix"})(o||(o={}));let l=[],u=[],h=[],p=o.Prefix,y="";for(;i<t.length;){let E=t[i];if(E===";"){i+=1;break}switch(p){case o.Prefix:{let I=qe(t,i,s);if(I)y&&(l.push({char:"'",str:y,width:y.length}),y=""),l.push(I),i+=I.width;else{let G=nt(t,i);G?(y&&(l.push({char:"'",str:y,width:y.length}),y=""),p=o.Number,u.push(G),i+=G.width):(y+=E,i+=1)}break}case o.Number:{let I=nt(t,i);I?(u.push(I),i+=I.width):p=o.Suffix;break}case o.Suffix:{let I=qe(t,i,s);I?(y&&(h.push({char:"'",str:y,width:y.length}),y=""),h.push(I),i+=I.width):(y+=E,i+=1);break}}}return y&&h.push({char:"'",str:y,width:y.length}),{pattern:{prefix:l,number:u,suffix:h},pos:i}}function Kn(t,i){let{pattern:s,pos:o}=de(t,0,i);if(o<t.length){let{pattern:l}=de(t,o,i);return{tokens:s,negative:l}}return{tokens:s}}function Vr(t,i){let s={},o=!1,l=!1,u=0,h="",p=-1,y="",E=0;for(let G=0;G<t.length;++G){let q=t[G];switch(q.char){case"#":{if(p===-1){if(h){let C="Pattern has # after integer digits";i(new je("#",C))}u+=q.width}else E+=q.width;break}case"0":{if(p===-1)h+=q.digits;else{if(E){let C="Pattern has digits after # in fraction";i(new je("0",C))}y+=q.digits}break}case"@":{s.precision&&i(new lt("precision",s.precision)),s.precision={style:"precision-fraction",minSignificant:q.min,maxSignificant:q.width};break}case",":o=!0;break;case".":if(p===1){let C="Pattern has more than one decimal separator";i(new je(".",C))}p=G;break;case"E":{if(l&&i(new lt("exponent",s.notation)),o){let C="Exponential patterns may not contain grouping separators";i(new je("E",C))}s.notation={style:"scientific"},q.expDigits>1&&(s.notation.expDigits=q.expDigits),q.plus&&(s.notation.expSign="sign-always"),l=!0}}}o?s.group="group-auto":u+h.length>3&&(s.group="group-off");let I=+`${h||"0"}.${y}`;if(I&&(s.precision={style:"precision-increment",increment:I}),!l)h.length>1&&(s.integerWidth={min:h.length}),!s.precision&&(y.length||E)&&(s.precision={style:"precision-fraction",minFraction:y.length,maxFraction:y.length+E});else if((!s.precision||I)&&(s.integerWidth=u?{min:1,max:u+h.length}:{min:Math.max(1,h.length)}),s.precision)I||(s.integerWidth={min:1,max:1});else{let G=h.length+y.length;p===-1?G>0&&(s.precision={style:"precision-fraction",maxSignificant:G}):(s.precision={style:"precision-fraction",maxSignificant:Math.max(1,G)+E},G>1&&(s.precision.minSignificant=G))}return s}function Me(t,i,s,o,l){let u=!1,h="";for(let p of t)switch(p.char){case"%":i.unit={style:p.style},l?u=!0:h="";break;case"\xA4":if(!s){let y="The \xA4 pattern requires a currency";o(new je("\xA4",y));break}switch(i.unit={style:"currency",currency:s},p.currency){case"iso-code":i.unitWidth="unit-width-iso-code";break;case"full-name":i.unitWidth="unit-width-full-name";break;case"narrow":i.unitWidth="unit-width-narrow";break}l?u=!0:h="";break;case"*":break;case"+":u||(h+="+");break;case"'":u||(h+=p.str);break}return h}function ut(t,i){let s=!1,o="";for(let l of t)switch(l.char){case"%":case"\xA4":i?s=!0:o="";break;case"-":s||(o+="-");break;case"'":s||(o+=l.str);break}return o}function Ue(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y=>{throw y},{tokens:o,negative:l}=Kn(t,s),u=Vr(o.number,s),h=Me(o.prefix,u,i,s,!0),p=Me(o.suffix,u,i,s,!1);if(l){let y=ut(l.prefix,!0),E=ut(l.suffix,!1);u.affix={pos:[h,p],neg:[y,E]},u.sign="sign-never"}else(h||p)&&(u.affix={pos:[h,p]});return u}function sn(t){return["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(t)!==-1}function on(t){let i=["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"],[s]=t.split("-",1);return i.indexOf(s)!==-1}let Xi={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},es={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function Uc(t){return t in Xi}function Gc(t){return t in es}function Bc(t,i,s){if(Uc(t)){let o=Xi[t];if(i.length>o){if(o===0)for(let l of i)s(new Te(t,l));else s(new rn(t,i,o));return!1}else if(Gc(t)&&i.length<es[t])return s(new qn(t)),!1}return!0}function Qr(t,i){let s=i==="fraction"?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,o=t&&t.match(s);if(o){let l=o[1].length;switch(o[2].charAt(0)){case"":return{min:l,max:l};case"+":return{min:l,max:null};case"#":return{min:l,max:l+o[2].length}}}return null}function qc(t,i,s){let o=Qr(t,"fraction");if(o){i.length>1&&s(new rn(t,i,1));let u={style:"precision-fraction",source:t,minFraction:o.min};o.max!=null&&(u.maxFraction=o.max);let h=i[0],p=Qr(h,"significant");return p?(u.source=`${t}/${h}`,u.minSignificant=p.min,p.max!=null&&(u.maxSignificant=p.max)):h&&s(new Te(t,h)),u}let l=Qr(t,"significant");if(l){for(let h of i)s(new Te(t,h));let u={style:"precision-fraction",source:t,minSignificant:l.min};return l.max!=null&&(u.maxSignificant=l.max),u}return null}class Hc{constructor(i){this.skeleton={},this.onError=i}badOption(i,s){this.onError(new Te(i,s))}assertEmpty(i){let s=this.skeleton[i];s&&this.onError(new lt(i,s))}parseToken(i,s){if(!Bc(i,s,this.onError))return;let o=s[0],l=this.skeleton;switch(i){case"compact-short":case"compact-long":case"notation-simple":this.assertEmpty("notation"),l.notation={style:i};break;
3case"scientific":case"engineering":{let u=null,h;for(let y of s)switch(y){case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":h=y;break;default:/^\+e+$/.test(y)?u=y.length-1:this.badOption(i,y)}this.assertEmpty("notation");let p=s.join("/");l.notation=u&&h?{style:i,source:p,expDigits:u,expSign:h}:u?{style:i,source:p,expDigits:u}:h?{style:i,source:p,expSign:h}:{style:i,source:p};break}case"percent":case"permille":case"base-unit":this.assertEmpty("unit"),l.unit={style:i};break;case"currency":/^[A-Z]{3}$/.test(o)?(this.assertEmpty("unit"),l.unit={style:i,currency:o}):this.badOption(i,o);break;case"measure-unit":{on(o)?(this.assertEmpty("unit"),l.unit={style:i,unit:o}):this.badOption(i,o);break}case"per-measure-unit":{on(o)?(this.assertEmpty("unitPer"),l.unitPer=o):this.badOption(i,o);break}case"unit-width-narrow":case"unit-width-short":case"unit-width-full-name":case"unit-width-iso-code":case"unit-width-hidden":this.assertEmpty("unitWidth"),l.unitWidth=i;break;case"precision-integer":case"precision-unlimited":case"precision-currency-cash":this.assertEmpty("precision"),l.precision={style:i};break;case"precision-currency-standard":this.assertEmpty("precision"),o==="w"?l.precision={style:i,trailingZero:"stripIfInteger"}:l.precision={style:i};break;case"precision-increment":{let u=Number(o);u>0?(this.assertEmpty("precision"),l.precision={style:i,increment:u}):this.badOption(i,o);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),l.roundingMode=i;break;case"integer-width":{if(/^\+0*$/.test(o))this.assertEmpty("integerWidth"),l.integerWidth={source:o,min:o.length-1};else{let u=o.match(/^#*(0*)$/);u?(this.assertEmpty("integerWidth"),l.integerWidth={source:o,min:u[1].length,max:u[0].length}):this.badOption(i,o)}break}case"scale":{let u=Number(o);u>0?(this.assertEmpty("scale"),l.scale=u):this.badOption(i,o);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),l.group=i;break;case"latin":this.assertEmpty("numberingSystem"),l.numberingSystem="latn";break;case"numbering-system":{sn(o)?(this.assertEmpty("numberingSystem"),l.numberingSystem=o):this.badOption(i,o);break}case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),l.sign=i;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),l.decimal=i;break;default:{let u=qc(i,s,this.onError);u?(this.assertEmpty("precision"),l.precision=u):this.onError(new wt(i))}}}}function ts(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l=>{throw l},s=[];for(let l of t.split(" "))if(l){let u=l.split("/"),h=u.shift()||"";s.push({stem:h,options:u})}let o=new Hc(i);for(let{stem:l,options:u}of s)o.parseToken(l,u);return o.skeleton}function Kc(t,i,s,o){typeof i=="string"&&(i=i.indexOf("::")===0?ts(i.slice(2),o):Ue(i,s,o));let l=_n(t,i),u=we(i,o),h=L(i),p=new Intl.NumberFormat(l,u);if(i.affix){let[y,E]=i.affix.pos,[I,G]=i.affix.neg||["",""];return q=>{let C=p.format(h(q));return q<0?`${I}${C}${G}`:`${y}${C}${E}`}}return y=>p.format(h(y))}function Wc(t,i,s,o){typeof i=="string"&&(i=i.indexOf("::")===0?ts(i.slice(2),o):Ue(i,s,o));let l=_n(t,i),u=we(i,o),h=X(i),p=["(function() {",`var opt = ${JSON.stringify(u)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(l)}, opt);`],y="nf.format(value)";if(h&&(p.push(`var mod = ${h};`),y="nf.format(mod(value))"),i.affix){let[E,I]=i.affix.pos.map(G=>JSON.stringify(G));if(i.affix.neg){let[G,q]=i.affix.neg.map(C=>JSON.stringify(C));y=`value < 0 ? ${G} + ${y} + ${q} : ${E} + ${y} + ${I}`}else y=`${E} + ${y} + ${I}`}return p.push(`return function(value) { return ${y}; }`),p.join(` 4 `)+` 5})()`}
vendor: 7,435 bytes, lines 5-9
5var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var An={},ns={},rs={exports:{}};(function(t){(function(i,s){t.exports?t.exports=s():i.moo=s()})(Jr,function(){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,o=typeof new RegExp().sticky=="boolean";function l(v){return v&&s.call(v)==="[object RegExp]"}function u(v){return v&&typeof v=="object"&&!l(v)&&!Array.isArray(v)}function h(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function p(v){var A=new RegExp("|"+v);return A.exec("").length-1}function y(v){return"("+v+")"}function E(v){if(!v.length)return"(?!)";var A=v.map(function(O){return"(?:"+O+")"}).join("|");return"(?:"+A+")"}function I(v){if(typeof v=="string")return"(?:"+h(v)+")";if(l(v)){if(v.ignoreCase)throw new Error("RegExp /i flag not allowed");if(v.global)throw new Error("RegExp /g flag is implied");if(v.sticky)throw new Error("RegExp /y flag is implied");if(v.multiline)throw new Error("RegExp /m flag is implied");return v.source}else throw new Error("Not a pattern: "+v)}function G(v,A){return v.length>A?v:Array(A-v.length+1).join(" ")+v}function q(v,A){for(var O=v.length,F=0;;){var V=v.lastIndexOf(` 6`,O-1);if(V===-1||(F++,O=V,F===A)||O===0)break}var B=F<A?0:O+1;return v.substring(B).split(` 7`)}function C(v){for(var A=Object.getOwnPropertyNames(v),O=[],F=0;F<A.length;F++){var V=A[F],B=v[V],Y=[].concat(B);if(V==="include"){for(var ge=0;ge<Y.length;ge++)O.push({include:Y[ge]});continue}var re=[];Y.forEach(function(H){u(H)?(re.length&&O.push(pe(V,re)),O.push(pe(V,H)),re=[]):re.push(H)}),re.length&&O.push(pe(V,re))}return O}function le(v){for(var A=[],O=0;O<v.length;O++){var F=v[O];if(F.include){for(var V=[].concat(F.include),B=0;B<V.length;B++)A.push({include:V[B]});continue}if(!F.type)throw new Error("Rule has no type: "+JSON.stringify(F));A.push(pe(F.type,F))}return A}function pe(v,A){if(u(A)||(A={match:A}),A.include)throw new Error("Matching rules cannot also include states");var O={defaultType:v,lineBreaks:!!A.error||!!A.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var F in A)i.call(A,F)&&(O[F]=A[F]);if(typeof O.type=="string"&&v!==O.type)throw new Error("Type transform cannot be a string (type '"+O.type+"' for token '"+v+"')");var V=O.match;return O.match=Array.isArray(V)?V:V?[V]:[],O.match.sort(function(B,Y){return l(B)&&l(Y)?0:l(Y)?-1:l(B)?1:Y.length-B.length}),O}function $e(v){return Array.isArray(v)?le(v):C(v)}var Le=pe("error",{lineBreaks:!0,shouldThrow:!0});function Je(v,A){for(var O=null,F=Object.create(null),V=!0,B=null,Y=[],ge=[],re=0;re<v.length;re++)v[re].fallback&&(V=!1);for(var re=0;re<v.length;re++){var H=v[re];if(H.include)throw new Error("Inheritance is not allowed in stateless lexers");if(H.error||H.fallback){if(O)throw!H.fallback==!O.fallback?new Error("Multiple "+(H.fallback?"fallback":"error")+" rules not allowed (for token '"+H.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+H.defaultType+"')");O=H}var De=H.match.slice();if(V)for(;De.length&&typeof De[0]=="string"&&De[0].length===1;){var Ht=De.shift();F[Ht.charCodeAt(0)]=H}if(H.pop||H.push||H.next){if(!A)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+H.defaultType+"')");if(H.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+H.defaultType+"')")}if(De.length!==0){V=!1,Y.push(H);for(var Kt=0;Kt<De.length;Kt++){var Wt=De[Kt];if(l(Wt)){if(B===null)B=Wt.unicode;else if(B!==Wt.unicode&&H.fallback===!1)throw new Error("If one rule is /u then all must be")}}var cn=E(De.map(I)),rt=new RegExp(cn);if(rt.test(""))throw new Error("RegExp matches empty string: "+rt);var Mn=p(cn);if(Mn>0)throw new Error("RegExp has capture groups: "+rt+` 8Use (?: \u2026 ) instead`);if(!H.lineBreaks&&rt.test(` 9`))throw new Error("Rule should declare lineBreaks: "+rt);ge.push(y(cn))}}var ln=O&&O.fallback,Nn=o&&!ln?"ym":"gm",Xn=o||ln?"":"|";B===!0&&(Nn+="u");var Ml=new RegExp(E(ge)+Xn,Nn);return{regexp:Ml,groups:Y,fast:F,error:O||Le}}function Ft(v){var A=Je($e(v));return new ve({start:A},"start")}function Mt(v,A,O){var F=v&&(v.push||v.next);if(F&&!O[F])throw new Error("Missing state '"+F+"' (in token '"+v.defaultType+"' of state '"+A+"')");if(v&&v.pop&&+v.pop!=1)throw new Error("pop must be 1 (in token '"+v.defaultType+"' of state '"+A+"')")}function Nt(v,A){var O=v.$all?$e(v.$all):[];delete v.$all;var F=Object.getOwnPropertyNames(v);A||(A=F[0]);for(var V=Object.create(null),B=0;B<F.length;B++){var Y=F[B];V[Y]=$e(v[Y]).concat(O)}for(var B=0;B<F.length;B++)for(var Y=F[B],ge=V[Y],re=Object.create(null),H=0;H<ge.length;H++){var De=ge[H];if(De.include){var Ht=[H,1];if(De.include!==Y&&!re[De.include]){re[De.include]=!0;var Kt=V[De.include];if(!Kt)throw new Error("Cannot include nonexistent state '"+De.include+"' (in state '"+Y+"')");for(var Wt=0;Wt<Kt.length;Wt++){var cn=Kt[Wt];ge.indexOf(cn)===-1&&Ht.push(cn)}}ge.splice.apply(ge,Ht),H--}}for(var rt=Object.create(null),B=0;B<F.length;B++){var Y=F[B];rt[Y]=Je(V[Y],!0)}for(var B=0;B<F.length;B++){for(var Mn=F[B],ln=rt[Mn],Nn=ln.groups,H=0;H<Nn.length;H++)Mt(Nn[H],Mn,rt);for(var Xn=Object.getOwnPropertyNames(ln.fast),H=0;H<Xn.length;H++)Mt(ln.fast[Xn[H]],Mn,rt)}return new ve(rt,A)}function kt(v){for(var A=typeof Map<"u",O=A?new Map:Object.create(null),F=Object.getOwnPropertyNames(v),V=0;V<F.length;V++){var B=F[V],Y=v[B],ge=Array.isArray(Y)?Y:[Y];ge.forEach(function(re){if(typeof re!="string")throw new Error("keyword must be string (in keyword '"+B+"')");A?O.set(re,B):O[re]=B})}return function(re){return A?O.get(re):O[re]}}var ve=function(v,A){this.startState=A,this.states=v,this.buffer="",this.stack=[],this.reset()};ve.prototype.reset=function(v,A){return this.buffer=v||"",this.index=0,this.line=A?A.line:1,this.col=A?A.col:1,this.queuedToken=A?A.queuedToken:null,this.queuedText=A?A.queuedText:"",this.queuedThrow=A?A.queuedThrow:null,this.setState(A?A.state:this.startState),this.stack=A&&A.stack?A.stack.slice():[],this},ve.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},ve.prototype.setState=function(v){if(!(!v||this.state===v)){this.state=v;var A=this.states[v];this.groups=A.groups,this.error=A.error,this.re=A.regexp,this.fast=A.fast}},ve.prototype.popState=function(){this.setState(this.stack.pop())},ve.prototype.pushState=function(v){this.stack.push(this.state),this.setState(v)};var Yn=o?function(v,A){return v.exec(A)}:function(v,A){var O=v.exec(A);return O[0].length===0?null:O};ve.prototype._getGroup=function(v){for(var A=this.groups.length,O=0;O<A;O++)if(v[O+1]!==void 0)return this.groups[O];throw new Error("Cannot find token type for matched text")};function Zn(){return this.value}if(ve.prototype.next=function(){var v=this.index;if(this.queuedGroup){var A=this._token(this.queuedGroup,this.queuedText,v);return this.queuedGroup=null,this.queuedText="",A}var O=this.buffer;if(v!==O.length){var Y=this.fast[O.charCodeAt(v)];if(Y)return this._token(Y,O.charAt(v),v);var F=this.re;F.lastIndex=v;var V=Yn(F,O),B=this.error;if(V==null)return this._token(B,O.slice(v,O.length),v);var Y=this._getGroup(V),ge=V[0];
9return B.fallback&&V.index!==v?(this.queuedGroup=Y,this.queuedText=ge,this._token(B,O.slice(v,V.index),v)):this._token(Y,ge,v)}},ve.prototype._token=function(v,A,O){var F=0;if(v.lineBreaks){var V=/\n/g,B=1;if(A===` 10`)F=1;else for(;V.exec(A);)F++,B=V.lastIndex}var Y={type:typeof v.type=="function"&&v.type(A)||v.defaultType,value:typeof v.value=="function"?v.value(A):A,text:A,toString:Zn,offset:O,lineBreaks:F,line:this.line,col:this.col},ge=A.length;if(this.index+=ge,this.line+=F,F!==0?this.col=ge-B+1:this.col+=ge,v.shouldThrow){var re=new Error(this.formatError(Y,"invalid syntax"));throw re}return v.pop?this.popState():v.push?this.pushState(v.push):v.next&&this.setState(v.next),Y},typeof Symbol<"u"&&Symbol.iterator){var Ct=function(v){this.lexer=v};Ct.prototype.next=function(){var v=this.lexer.next();return{value:v,done:!v}},Ct.prototype[Symbol.iterator]=function(){return this},ve.prototype[Symbol.iterator]=function(){return new Ct(this)}}return ve.prototype.formatError=function(v,A){if(v==null)var O=this.buffer.slice(this.index),v={text:O,offset:this.index,lineBreaks:O.indexOf(` 11`)===-1?0:1,line:this.line,col:this.col};var F=2,V=Math.max(v.line-F,1),B=v.line+F,Y=String(B).length,ge=q(this.buffer,this.line-v.line+F+1).slice(0,5),re=[];re.push(A+" at line "+v.line+" col "+v.col+":"),re.push("");for(var H=0;H<ge.length;H++){var De=ge[H],Ht=V+H;re.push(G(String(Ht),Y)+" "+De),Ht===v.line&&re.push(G("",Y+v.col+1)+"^")}return re.join(` 12`)},ve.prototype.clone=function(){return new ve(this.states,this.state)},ve.prototype.has=function(v){return!0},{compile:Ft,states:Nt,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:kt}})})(rs);var Qc=rs.exports;(function(t){var i=Jr&&Jr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;let s=i(Qc);t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:o=>o.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:o=>o.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:o=>o.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:o=>o.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:o=>o.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:o=>o.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:o=>o.substring(0,o.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=s.default.states(t.states)})(ns),Object.defineProperty(An,"__esModule",{value:!0});var is=An.parse=An.ParseError=void 0;let ss=ns,Wn=t=>({offset:t.offset,line:t.line,col:t.col,text:t.text,lineBreaks:t.lineBreaks}),Yr=t=>t==="plural"||t==="select"||t==="selectordinal";function Jc(t,i){let s="",o="";for(let u of i){let h=u.ctx.text;switch(o+=h,u.type){case"content":s+=u.value;break;case"argument":case"function":case"octothorpe":s+=h;break;default:throw new ke(t,`Unsupported part in strict mode function arg style: ${h}`)}}return[{type:"content",value:s.trim(),ctx:Object.assign({},i[0].ctx,{text:o})}]}let Yc=["number","date","time","spellout","ordinal","duration"],os=["zero","one","two","few","many","other"];class ke extends Error{constructor(i,s){super(ss.lexer.formatError(i,s))}}An.ParseError=ke;class Zc{constructor(i,s){var o,l,u,h;this.lexer=ss.lexer.reset(i),this.cardinalKeys=(o=s?.cardinal)!==null&&o!==void 0?o:os,this.ordinalKeys=(l=s?.ordinal)!==null&&l!==void 0?l:os,this.strict=(u=s?.strict)!==null&&u!==void 0?u:!1,this.strictPluralKeys=(h=s?.strictPluralKeys)!==null&&h!==void 0?h:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(i,s,o){if(o[0]==="="){if(s==="select")throw new ke(i,`The case ${o} is not valid with select`)}else if(s!=="select"){let l=s==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&l.length>0&&!l.includes(o)){let u=`The ${s} case ${o}
12 is not valid in this locale`;throw new ke(i,u)}}}parseSelect(i,s,o,l){let{value:u}=i,h={type:l,arg:u,cases:[],ctx:o};l==="plural"||l==="selectordinal"?s=!0:this.strict&&(s=!1);for(let p of this.lexer)switch(p.type){case"offset":if(l==="select")throw new ke(p,"Unexpected plural offset for select");if(h.cases.length>0)throw new ke(p,"Plural offset must be set before cases");h.pluralOffset=Number(p.value),o.text+=p.text,o.lineBreaks+=p.lineBreaks;break;case"case":{this.checkSelectKey(p,l,p.value),h.cases.push({key:p.value,tokens:this.parseBody(s),ctx:Wn(p)});break}case"end":return h;default:throw new ke(p,`Unexpected lexer token: ${p.type}`)}throw new ke(null,"Unexpected message end")}parseArgToken(i,s){let o=Wn(i),l=this.lexer.next();if(!l)throw new ke(null,"Unexpected message end");if(o.text+=l.text,o.lineBreaks+=l.lineBreaks,this.strict&&(l.type==="func-simple"||l.type==="func-args")&&!Yc.includes(l.value)){let u=`Invalid strict mode function arg type: ${l.value}`;throw new ke(i,u)}switch(l.type){case"end":return{type:"argument",arg:i.value,ctx:o};case"func-simple":{let u=this.lexer.next();if(!u)throw new ke(null,"Unexpected message end");if(u.type!=="end")throw new ke(u,`Unexpected lexer token: ${u.type}`);if(o.text+=u.text,Yr(l.value.toLowerCase()))throw new ke(l,`Invalid type identifier: ${l.value}`);return{type:"function",arg:i.value,key:l.value,ctx:o}}case"func-args":{if(Yr(l.value.toLowerCase())){let h=`Invalid type identifier: ${l.value}`;throw new ke(l,h)}let u=this.parseBody(this.strict?!1:s);return this.strict&&u.length>0&&(u=Jc(i,u)),{type:"function",arg:i.value,key:l.value,param:u,ctx:o}}case"select":if(Yr(l.value))return this.parseSelect(i,s,o,l.value);throw new ke(l,`Unexpected select type ${l.value}`);default:throw new ke(l,`Unexpected lexer token: ${l.type}`)}}parseBody(i,s){let o=[],l=null;for(let u of this.lexer)if(u.type==="argument")l&&(l=null),o.push(this.parseArgToken(u,i));else if(u.type==="octothorpe"&&i)l&&(l=null),o.push({type:"octothorpe",ctx:Wn(u)});else{if(u.type==="end"&&!s)return o;{let h=u.value;if(!i&&u.type==="quoted"&&h[0]==="#"){if(h.includes("{")){let p=`Unsupported escape pattern: ${h}`;throw new ke(u,p)}h=u.text}l?(l.value+=h,l.ctx.text+=u.text,l.ctx.lineBreaks+=u.lineBreaks):(l={type:"content",value:h,ctx:Wn(u)},o.push(l))}}if(s)return o;throw new ke(null,"Unexpected message end")}}function Xc(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Zc(t,i).parse()}is=An.parse=Xc;function Tn(t){return Tn[t]||(Tn[t]=new Intl.NumberFormat(t))}function el(t,i,s){return Tn(t).format(i-s)}function tl(t,i,s,o){var l=i-s;if(isNaN(l))throw new Error("`"+o+"` or its offset is not a number");return Tn(t).format(l)}function nl(t,i,s,o,l){if({}.hasOwnProperty.call(o,t))return o[t];i&&(t-=i);var u=s(t,l);return u in o?o[u]:o.other}function rl(t,i){return{}.hasOwnProperty.call(i,t)?i[t]:i.other}function il(t,i){for(var s=0;s<t.length;++s)if(!i||i[t[s]]===void 0)throw new Error("Message requires argument '".concat(t[s],"'"))}var sl=Object.freeze({__proto__:null,_nf:Tn,number:el,plural:nl,reqArgs:il,select:rl,strictNumber:tl});function ol(t,i,s){var o={day:"numeric",month:"short",year:"numeric"};switch(s){case"full":o.weekday="long";case"long":o.month="long";break;case"short":o.month="numeric"}return new Date(t).toLocaleDateString(i,o)}function al(t){if(typeof t!="number"&&(t=Number(t)),!isFinite(t))return String(t);var i="";t<0?(i="-",t=Math.abs(t)):t=Number(t);var s=t%60,o=[Math.round(s)===s?s:s.toFixed(3)];t<60?o.unshift(0):(t=Math.round((t-Number(o[0]))/60),o.unshift(t%60),t>=60&&(t=Math.round((t-Number(o[0]))/60),o.unshift(t)));var l=o.shift();return i+l+":"+o.map(function(u){return Number(u)<10?"0"+String(u):String(u)}).join(":")}var Zr={};function Vn(t,i){var s=String(t)+JSON.stringify(i);return Zr[s]||(Zr[s]=new Intl.NumberFormat(t,i)),Zr[s]}function cl(t,i,s,o){var l=s&&s.split(":")||[],u=l[0],h=l[1],p={integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:h&&h.trim()||o,minimumFractionDigits:2,maximumFractionDigits:2}};return Vn(i,p[u]||{}).format(t)}var ll=function(t,i,s){return Vn(i,{style:"currency",currency:s,minimumFractionDigits:2,maximumFractionDigits:2}).format(t)},ul=function(t,i){return Vn(i,{maximumFractionDigits:0}).format(t)},dl=function(t,i){return Vn(i,{style:"percent"}).format(t)};
12function hl(t,i,s){var o={second:"numeric",minute:"numeric",hour:"numeric"};switch(s){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}return new Date(t).toLocaleTimeString(i,o)}var Xr=Object.freeze({__proto__:null,date:ol,duration:al,numberCurrency:ll,numberFmt:cl,numberInteger:ul,numberPercent:dl,time:hl}),ml={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}},ei=Vc(ml);function fl(t){let i=0;for(let s=0;s<t.length;++s){let o=t.charCodeAt(s);i=(i<<5)-i+o,i|=0}return i}function Lt(t,i){i&&(t+=" "+fl(t).toString(36));let s=t.trim().replace(/\W+/g,"_");return ei.ES3[s]||ei.ESnext[s]||/^\d/.test(s)?"_"+s:s}function ti(t,i){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(i)&&!ei.ES3[i])return t?t+"."+i:i;{let s=JSON.stringify(i);return t?t+"["+s+"]":s}}var pl=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"],gl=new RegExp("^"+pl.join("|^"));function yl(t,i){var s=gl.test(i),o=JSON.stringify(s?"\u200F":"\u200E");return"".concat(o," + ").concat(t," + ").concat(o)}var vl="@messageformat/runtime",Sl="@messageformat/runtime/lib/cardinals",as="@messageformat/runtime/lib/plurals",bl="@messageformat/runtime/lib/formatters",wl=(function(){function t(i){this.arguments=[],this.runtime={},this.options=i}return t.prototype.compile=function(i,s,o){var l,u,h=this,p=this.options,y=p.localeCodeFromKey,E=p.requireAllArguments,I=p.strict,G=p.strictPluralKeys;if(typeof i=="object"){var q={};try{for(var C=e(Object.keys(i)),le=C.next();!le.done;le=C.next()){var pe=le.value,$e=y?y(pe):pe,Le=o&&$e&&o[$e]||s;q[pe]=this.compile(i[pe],Le,o)}}catch(ve){l={error:ve}}finally{try{le&&!le.done&&(u=C.return)&&u.call(C)}finally{if(l)throw l.error}}return q}this.plural=s;var Je={cardinal:s.cardinals,ordinal:s.ordinals,strict:I,strictPluralKeys:G};this.arguments=[];var Ft=is(i,Je).map(function(ve){return h.token(ve,null)}),Mt=this.arguments.length>0,Nt=this.concatenate(Ft,!0);if(E&&Mt){this.setRuntimeFn("reqArgs");var kt=JSON.stringify(this.arguments);return"(d) => { reqArgs(".concat(kt,", d); return ").concat(Nt,"; }")}return"(".concat(Mt?"d":"",") => ").concat(Nt)},t.prototype.cases=function(i,s){var o=this,l=!0,u=i.cases.map(function(I){var G=I.key,q=I.tokens;G==="other"&&(l=!1);var C=q.map(function(le){return o.token(le,s)});return"".concat(ti(null,G.replace(/^=/,"")),": ").concat(o.concatenate(C,!1))});if(l){var h=i.type,p=this.plural,y=p.cardinals,E=p.ordinals;if(h==="select"||h==="plural"&&y.includes("other")||h==="selectordinal"&&E.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(i)))}return"{ ".concat(u.join(", ")," }")},t.prototype.concatenate=function(i,s){var o=this.options.returnType==="values";return o&&(s||i.length>1)?"["+i.join(", ")+"]":i.join(" + ")||'""'},t.prototype.token=function(i,s){if(i.type==="content")return JSON.stringify(i.value);var o=this.plural,l=o.id,u=o.lc,h,p;switch("arg"in i?(this.arguments.push(i.arg),h=[ti("d",i.arg)]):h=[],i.type){case"argument":return this.options.biDiSupport?yl(String(h[0]),u):String(h[0]);case"select":p="select",s&&this.options.strict&&(s=null),h.push(this.cases(i,s)),this.setRuntimeFn("select");break;case"selectordinal":p="plural",h.push(i.pluralOffset||0,l,this.cases(i,i),1),this.setLocale(l,!0),this.setRuntimeFn("plural");break;case"plural":p="plural",h.push(i.pluralOffset||0,l,this.cases(i,i)),this.setLocale(l,!1),this.setRuntimeFn("plural");break;case"function":{var y=this.options.customFormatters[i.key],E=y&&"module"in y&&typeof y.module=="function";if(!y){if(i.key==="date"){p=this.setDateFormatter(i,h,s);break}else if(i.key==="number"){p=this.setNumberFormatter(i,h,s);break}}if(h.push(JSON.stringify(this.plural.locale)),i.param){s&&this.options.strict&&(s=null);var I=this.getFormatterArg(i,s);I&&h.push(I)}
12p=E?Lt("".concat(i.key,"__").concat(this.plural.locale)):i.key,this.setFormatter(p,i.key);break}case"octothorpe":if(!s)return'"#"';h=[JSON.stringify(this.plural.locale),ti("d",s.arg),s.pluralOffset||0],this.options.strict?(p="strictNumber",h.push(JSON.stringify(s.arg)),this.setRuntimeFn("strictNumber")):(p="number",this.setRuntimeFn("number"));break}if(!p)throw new Error("Parser error for token "+JSON.stringify(i));return"".concat(p,"(").concat(h.join(", "),")")},t.prototype.runtimeIncludes=function(i,s){if(Lt(i)!==i)throw new SyntaxError("Reserved word used as ".concat(s," identifier: ").concat(i));var o=this.runtime[i];if(!o||o.type===s)return o;throw new TypeError("Cannot override ".concat(o.type," runtime function as ").concat(s,": ").concat(i))},t.prototype.setLocale=function(i,s){var o=this.runtimeIncludes(i,"locale"),l=this.plural,u=l.getCardinal,h=l.getPlural,p=l.isDefault,y,E,I;if(!s&&p&&u){if(o)return;y=function(G){return u(G)},E=Sl,I=function(){return String(u)}}else{if(o&&(!p||o.module===as))return;y=function(G,q){return h(G,q)},E=p?as:h.module||null,I=function(){return String(h)}}this.runtime[i]=Object.assign(y,{id:i,module:E,toString:I,type:"locale"})},t.prototype.setRuntimeFn=function(i){this.runtimeIncludes(i,"runtime")||(this.runtime[i]=Object.assign(sl[i],{id:i,module:vl,type:"runtime"}))},t.prototype.getFormatterArg=function(i,s){var o,l,u,h,p=this,y=i.key,E=i.param,I=this.options.customFormatters[y]||cs(y)&&Xr[y];if(!I||!E)return null;var G="arg"in I&&I.arg||"string";if(G==="options"){var q="";try{for(var C=e(E),le=C.next();!le.done;le=C.next()){var pe=le.value;if(pe.type==="content")q+=pe.value;else throw new SyntaxError("Expected literal options for ".concat(y," formatter"))}}catch(Ct){o={error:Ct}}finally{try{le&&!le.done&&(l=C.return)&&l.call(C)}finally{if(o)throw o.error}}var $e={};try{for(var Le=e(q.split(",")),Je=Le.next();!Je.done;Je=Le.next()){var Ft=Je.value,Mt=Ft.indexOf(":");if(Mt===-1)$e[Ft.trim()]=null;else{var Nt=Ft.substring(0,Mt).trim(),kt=Ft.substring(Mt+1).trim();if(kt==="true")$e[Nt]=!0;else if(kt==="false")$e[Nt]=!1;
12else if(kt==="null")$e[Nt]=null;else{var ve=Number(kt);$e[Nt]=Number.isFinite(ve)?ve:kt}}}}catch(Ct){u={error:Ct}}finally{try{Je&&!Je.done&&(h=Le.return)&&h.call(Le)}finally{if(u)throw u.error}}return JSON.stringify($e)}else{var Yn=E.map(function(Ct){return p.token(Ct,s)});if(G==="raw")return"[".concat(Yn.join(", "),"]");var Zn=Yn.join(" + ");return Zn?"(".concat(Zn,").trim()"):'""'}},t.prototype.setFormatter=function(i,s){if(!this.runtimeIncludes(i,"formatter")){var o=this.options.customFormatters[s||i];if(o){var l=typeof o=="function"?{formatter:o}:o;this.runtime[i]=Object.assign(l.formatter.bind({}),a(a({},l.formatter.prototype),{toString:function(){return String(l.formatter)}}),{type:"formatter"},"module"in o&&o.module&&o.id?{id:Lt(o.id),module:typeof o.module=="function"?o.module(this.plural.locale):o.module}:{id:null,module:null})}else if(cs(i))this.runtime[i]=Object.assign(Xr[i],{type:"formatter"},{id:i,module:bl});else throw new Error("Formatting function not found: ".concat(i))}},t.prototype.setDateFormatter=function(i,s,o){var l=this,u=i.param,h=this.plural.locale,p=u&&u.length===1&&u[0];if(p&&p.type==="content"&&/^\s*::/.test(p.value)){var y=p.value.trim().substr(2),E=Lt("date_".concat(h,"_").concat(y),!0);if(!this.runtimeIncludes(E,"formatter")){var I=zt(h,y,this.options.timeZone);this.runtime[E]=Object.assign(I,{id:E,module:null,toString:function(){return Ve(h,y,l.options.timeZone)},type:"formatter"})}return E}if(s.push(JSON.stringify(h)),u&&u.length>0){o&&this.options.strict&&(o=null);var G=u.map(function(q){return l.token(q,o)});s.push("("+(G.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"},t.prototype.setNumberFormatter=function(i,s,o){var l=this,u=i.param,h=this.plural.locale;if(!u||u.length===0)return s.unshift(JSON.stringify(h)),s.push("0"),this.setRuntimeFn("number"),"number";if(s.push(JSON.stringify(h)),u.length===1&&u[0].type==="content"){var p=u[0].value.trim();switch(p){case"currency":return s.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}var y=p.match(/^currency:([A-Z]+)$/);if(y)return s.push(JSON.stringify(y[1])),this.setFormatter("numberCurrency"),"numberCurrency";var E=Lt("number_".concat(h,"_").concat(p),!0);if(!this.runtimeIncludes(E,"formatter")){var I=this.options.currency,G=Kc(h,p,I);this.runtime[E]=Object.assign(G,{id:null,module:null,toString:function(){return Wc(h,p,I)},type:"formatter"})}return E}o&&this.options.strict&&(o=null);var q=u.map(function(C){return l.token(C,o)});return s.push("("+(q.join(" + ")||'""')+").trim()"),s.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},t})();function cs(t){return t in Xr}let _=t=>t==1?"one":"other",$t=t=>t==0||t==1?"one":"other",dt=t=>t>=0&&t<=1?"one":"other",Oe=t=>{let i=String(t).split("."),s=!i[1];return t==1&&s?"one":"other"},ee=t=>"other",Et=t=>t==1?"one":t==2?"two":"other";var $l=Object.freeze({__proto__:null,af:_,ak:$t,am:dt,an:_,ar:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},ars:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},as:dt,asa:_,ast:Oe,az:_,bal:_,be:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-1),l=s&&i[0].slice(-2);return o==1&&l!=11?"one":o>=2&&o<=4&&(l<12||l>14)?"few":s&&o==0||o>=5&&o<=9||l>=11&&l<=14?"many":"other"},bem:_,bez:_,bg:_,bho:$t,bm:ee,bn:dt,bo:ee,br:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-1),l=s&&i[0].slice(-2),u=s&&i[0].slice(-6);return o==1&&l!=11&&l!=71&&l!=91?"one":o==2&&l!=12&&l!=72&&l!=92?"two":(o==3||o==4||o==9)&&(l<10||l>19)&&(l<70||l>79)&&(l<90||l>99)?"few":t!=0&&s&&u==0?"many":"other"},brx:_,bs:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=s.slice(-2),p=o.slice(-1),y=o.slice(-2);return l&&u==1&&h!=11||p==1&&y!=11?"one":l&&u>=2&&u<=4&&(h<12||h>14)||p>=2&&p<=4&&(y<12||y>14)?"few":"other"},ca:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t==1&&o?"one":s!=0&&l==0&&o?"many":"other"},ce:_,ceb:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=o.slice(-1);return l&&(s==1||s==2||s==3)||l&&u!=4&&u!=6&&u!=9||!l&&h!=4&&h!=6&&h!=9?"one":"other"},cgg:_,chr:_,ckb:_,cs:t=>{let i=String(t).split("."),s=i[0],o=!i[1];return t==1&&o?"one":s>=2&&s<=4&&o?"few":o?"other":"many"},cy:t=>t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other",da:t=>{let i=String(t).split("."),s=i[0],o=Number(i[0])==t;return t==1||!o&&(s==0||s==1)?"one":"other"},de:Oe,doi:dt,dsb:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-2),h=o.slice(-2);return l&&u==1||h==1?"one":l&&u==2||h==2?"two":l&&(u==3||u==4)||h==3||h==4?"few":"other"},dv:_,dz:ee,ee:_,el:_,en:Oe,eo:_,es:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t==1?"one":s!=0&&l==0&&o?"many":"other"},et:Oe,eu:_,fa:dt,ff:t=>t>
12=0&&t<2?"one":"other",fi:Oe,fil:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=o.slice(-1);return l&&(s==1||s==2||s==3)||l&&u!=4&&u!=6&&u!=9||!l&&h!=4&&h!=6&&h!=9?"one":"other"},fo:_,fr:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t>=0&&t<2?"one":s!=0&&l==0&&o?"many":"other"},fur:_,fy:Oe,ga:t=>{let i=String(t).split("."),s=Number(i[0])==t;return t==1?"one":t==2?"two":s&&t>=3&&t<=6?"few":s&&t>=7&&t<=10?"many":"other"},gd:t=>{let i=String(t).split("."),s=Number(i[0])==t;return t==1||t==11?"one":t==2||t==12?"two":s&&t>=3&&t<=10||s&&t>=13&&t<=19?"few":"other"},gl:Oe,gsw:_,gu:dt,guw:$t,gv:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-1),u=s.slice(-2);return o&&l==1?"one":o&&l==2?"two":o&&(u==0||u==20||u==40||u==60||u==80)?"few":o?"other":"many"},ha:_,haw:_,he:t=>{let i=String(t).split("."),s=i[0],o=!i[1];return s==1&&o||s==0&&!o?"one":s==2&&o?"two":"other"},hi:dt,hnj:ee,hr:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=s.slice(-2),p=o.slice(-1),y=o.slice(-2);return l&&u==1&&h!=11||p==1&&y!=11?"one":l&&u>=2&&u<=4&&(h<12||h>14)||p>=2&&p<=4&&(y<12||y>14)?"few":"other"},hsb:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-2),h=o.slice(-2);return l&&u==1||h==1?"one":l&&u==2||h==2?"two":l&&(u==3||u==4)||h==3||h==4?"few":"other"},hu:_,hy:t=>t>=0&&t<2?"one":"other",ia:Oe,id:ee,ig:ee,ii:ee,io:Oe,is:t=>{let i=String(t).split("."),s=i[0],o=(i[1]||"").replace(/0+$/,""),l=Number(i[0])==t,u=s.slice(-1),h=s.slice(-2);return l&&u==1&&h!=11||o%10==1&&o%100!=11?"one":"other"},it:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t==1&&o?"one":s!=0&&l==0&&o?"many":"other"},iu:Et,ja:ee,jbo:ee,jgo:_,jmc:_,jv:ee,jw:ee,ka:_,kab:t=>t>=0&&t<2?"one":"other",kaj:_,kcg:_,kde:ee,kea:ee,kk:_,kkj:_,kl:_,km:ee,kn:dt,ko:ee,ks:_,ksb:_,ksh:t=>t==0?"zero":t==1?"one":"other",ku:_,kw:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-2),l=s&&i[0].slice(-3),u=s&&i[0].slice(-5),h=s&&i[0].slice(-6);return t==0?"zero":t==1?"one":o==2||o==22||o==42||o==62||o==82||s&&l==0&&(u>=1e3&&u<=2e4||u==4e4||u==6e4||u==8e4)||t!=0&&h==1e5?"two":o==3||o==23||o==43||o==63||o==83?"few":t!=1&&(o==1||o==21||o==41||o==61||o==81)?"many":"other"},ky:_,lag:t=>{let i=String(t).split("."),s=i[0];return t==0?"zero":(s==0||s==1)&&t!=0?"one":"other"},lb:_,lg:_,lij:Oe,lkt:ee,ln:$t,lo:ee,lt:t=>{let i=String(t).split("."),s=i[1]||"",o=Number(i[0])==t,l=o&&i[0].slice(-1),u=o&&i[0].slice(-2);return l==1&&(u<11||u>19)?"one":l>=2&&l<=9&&(u<11||u>19)?"few":s!=0?"many":"other"},lv:t=>{let i=String(t).split("."),s=i[1]||"",o=s.length,l=Number(i[0])==t,u=l&&i[0].slice(-1),h=l&&i[0].slice(-2),p=s.slice(-2),y=s.slice(-1);return l&&u==0||h>=11&&h<=19||o==2&&p>=11&&p<=19?"zero":u==1&&h!=11||o==2&&y==1&&p!=11||o!=2&&y==1?"one":"other"},mas:_,mg:$t,mgo:_,mk:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=s.slice(-2),p=o.slice(-1),y=o.slice(-2);return l&&u==1&&h!=11||p==1&&y!=11?"one":"other"},ml:_,mn:_,mo:t=>{let i=String(t).split("."),s=!i[1],o=Number(i[0])==t,l=o&&i[0].slice(-2);return t==1&&s?"one":!s||t==0||t!=1&&l>=1&&l<=19?"few":"other"},mr:_,ms:ee,mt:t=>{let i=String(t).split("."),s=Number(i[0])==t,o=s&&i[0].slice(-2);return t==1?"one":t==2?"two":t==0||o>=3&&o<=10?"few":o>=11&&o<=19?"many":"other"},my:ee,nah:_,naq:Et,nb:_,nd:_,ne:_,nl:Oe,nn:_,nnh:_,no:_,nqo:ee,nr:_,nso:$t,ny:_,nyn:_,om:_,or:_,os:_,osa:ee,pa:$t,pap:_,pcm:dt,pl:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-1),u=s.slice(-2);return t==1&&o?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&s!=1&&(l==0||l==1)||o&&l>=5&&l<=9||o&&u>=12&&u<=14?"many":"other"},prg:t=>{let i=String(t).split("."),s=i[1]||"",o=s.length,l=Number(i[0])==t,u=l&&i[0].slice(-1),h=l&&i[0].slice(-2),p=s.slice(-2),y=s.slice(-1);return l&&u==0||h>=11&&h<=19||o==2&&p>=11&&p<=19?"zero":u==1&&h!=11||o==2&&y==1&&p!=11||o!=2&&y==1?"one":"other"},ps:_,pt:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return s==0||s==1?"one":s!=0&&l==0&&o?"many":"other"},pt_PT:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t==1&&o?"one":s!=0&&l==0&&o?"many":"other"},rm:_,ro:t=>{let i=String(t).split("."),s=!i[1],o=Number(i[0])==t,l=o&&i[0].slice(-2);return t==1&&s?"one":!s||t==0||t!=1&&l>=1&&l<=19?"few":"other"},rof:_,ru:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-1),u=s.slice(-2);return o&&l==1&&u!=11?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&l==0||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},rwk:_,sah:ee,saq:_,sat:Et,sc:Oe,scn:Oe,sd:_,sdh:_,se:Et,seh:_,ses:ee,sg:ee,sh:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=s.slice(-2),p=o.slice(-1),y=o.slice(-2);return l&&u==1&&h!=11||p==1&&y!=11?"one":l&&u>=2&&u<=4&&(h<12||h>14)||p>=2&&p<=4&&(y<12||y>14)?"few":"other"},shi:t=>{let i=String(t).split("."),s=Number(i[0])==t;return t>=0&&t<=1?"one":s&&t>=2&&t<=10?"few":"other"},si:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"";return t==0||t==1||s==0&&o==1?"one":"other"},sk:t=>{let i=String(t).split("."),s=i[0],o=!i[1];return t==1&&o?"one":s>=2&&s<=4&&o?"few":o?"other":"many"},sl:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-2);return o&&l==1?"one":o&&l==2?"two":o&&(l==3||l==4)||!o?"few":"other"},sma:Et,smi:Et,smj:Et,smn:Et,sms:Et,sn:_,so:_,sq:_,sr:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=s.slice(-2),p=o.slice(-1),y=o.slice(-2);return l&&u==1&&h!=11||p==1&&y!=11?"one":l&&u>=2&&u<=4&&(h<12||h>14)||p>=2&&p<=4&&(y<12||y>14)?"few":"other"},ss:_,ssy:_,st:_,su:ee,sv:Oe,sw:Oe,syr:_,ta:_,te:_,teo:_,th:ee,ti:$t,tig:_,tk:_,tl:t=>{let i=String(t).split("."),s=i[0],o=i[1]||"",l=!i[1],u=s.slice(-1),h=o.slice(-1);return l&&(s==1||s==2||s==3)||l&&u!=4&&u!=6&&u!=9||!l&&h!=4&&h!=6&&h!=9?"one":"other"},tn:_,to:ee,tpi:ee,tr:_,ts:_,tzm:t=>{let i=String(t).split("."),s=Number(i[0])==t;return t==0||t==1||s&&t>=11&&t<=99?"one":"other"},ug:_,uk:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-1),u=s.slice(-2);return o&&l==1&&u!=11?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&l==0||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},und:ee,ur:Oe,uz:_,ve:_,vec:t=>{let i=String(t).split("."),s=i[0],o=!i[1],l=s.slice(-6);return t==1&&o?"one":s!=0&&l==0&&o?"many":"other"},vi:ee,vo:_,vun:_,wa:$t,wae:_,wo:ee,xh:_,xog:_,yi:Oe,yo:ee,yue:ee,zh:ee,zu:dt});let _t="zero",T="one",fe="two",W="few",Q="many",w="other",$={cardinal:[T,w],ordinal:[w]},qt={cardinal:[T,w],ordinal:[T,w]},se={cardinal:[w],ordinal:[w]},ht={cardinal:[T,fe,w],ordinal:[w]};var ls=Object.freeze({__proto__:null,af:$,ak:$,am:$,an:$,ar:{cardinal:[_t,T,fe,W,Q,w],ordinal:[w]},ars:{cardinal:[_t,T,fe,W,Q,w],ordinal:[w]},as:{cardinal:[T,w],ordinal:[T,fe,W,Q,w]},asa:$,ast:$,az:{cardinal:[T,w],ordinal:[T,W,Q,w]},bal:qt,be:{cardinal:[T,W,Q,w],ordinal:[W,w]},bem:$,bez:$,bg:$,bho:$,bm:se,bn:{cardinal:[T,w],ordinal:[T,fe,W,Q,w]},bo:se,br:{cardinal:[T,fe,W,Q,w],ordinal:[w]},brx:$,bs:{cardinal:[T,W,w],ordinal:[w]},ca:{cardinal:[T,Q,w],ordinal:[T,fe,W,w]},ce:$,ceb:$,cgg:$,chr:$,ckb:$,cs:{cardinal:[T,W,Q,w],ordinal:[w]},cy:{cardinal:[_t,T,fe,W,Q,w],ordinal:[_t,T,fe,W,Q,w]},da:$,de:$,doi:$,dsb:{cardinal:[T,fe,W,w],ordinal:[w]},dv:$,dz:se,ee:$,el:$,en:{cardinal:[T,w],ordinal:[T,fe,W,w]},eo:$,es:{cardinal:[T,Q,w],ordinal:[w]},et:$,eu:$,fa:$,ff:$,fi:$,fil:qt,fo:$,fr:{cardinal:[T,Q,w],ordinal:[T,w]},fur:$,fy:$,ga:{cardinal:[T,fe,W,Q,w],ordinal:[T,w]},gd:{cardinal:[T,fe,W,w],ordinal:[T,fe,W,w]},gl:$,gsw:$,gu:{cardinal:[T,w],ordinal:[T,fe,W,Q,w]},guw:$,gv:{cardinal:[T,fe,W,Q,w],ordinal:[w]},ha:$,haw:$,he:ht,hi:{cardinal:[T,w],ordinal:[T,fe,W,Q,w]},hnj:se,hr:{cardinal:[T,W,w],ordinal:[w]},hsb:{cardinal:[T,fe,W,w],ordinal:[w]},hu:qt,hy:qt,ia:$,id:se,ig:se,ii:se,io:$,is:$,it:{cardinal:[T,Q,w],ordinal:[Q,w]},iu:ht,ja:se,jbo:se,jgo:$,jmc:$,jv:se,jw:se,ka:{cardinal:[T,w],ordinal:[T,Q,w]},kab:$,kaj:$,kcg:$,kde:se,kea:se,kk:{cardinal:[T,w],ordinal:[Q,w]},kkj:$,kl:$,km:se,kn:$,ko:se,ks:$,ksb:$,ksh:{cardinal:[_t,T,w],ordinal:[w]},ku:$,kw:{cardinal:[_t,T,fe,W,Q,w],ordinal:[T,Q,w]},ky:$,lag:{cardinal:[_t,T,w],ordinal:[w]},lb:$,lg:$,lij:{cardinal:[T,w],ordinal:[Q,w]},lkt:se,ln:$,lo:{cardinal:[w],ordinal:[T,w]},lt:{cardinal:[T,W,Q,w],ordinal:[w]},lv:{cardinal:[_t,T,w],ordinal:[w]},mas:$,mg:$,mgo:$,mk:{cardinal:[T,w],ordinal:[T,fe,Q,w]},ml:$,mn:$,mo:{cardinal:[T,W,w],ordinal:[T,w]},mr:{cardinal:[T,w],ordinal:[T,fe,W,w]},ms:{cardinal:[w],ordinal:[T,w]},mt:{cardinal:[T,fe,W,Q,w],ordinal:[w]},my:se,nah:$,naq:ht,nb:$,nd:$,ne:qt,nl:$,nn:$,nnh:$,no:$,nqo:se,nr:$,nso:$,ny:$,
12nyn:$,om:$,or:{cardinal:[T,w],ordinal:[T,fe,W,Q,w]},os:$,osa:se,pa:$,pap:$,pcm:$,pl:{cardinal:[T,W,Q,w],ordinal:[w]},prg:{cardinal:[_t,T,w],ordinal:[w]},ps:$,pt:{cardinal:[T,Q,w],ordinal:[w]},pt_PT:{cardinal:[T,Q,w],ordinal:[w]},rm:$,ro:{cardinal:[T,W,w],ordinal:[T,w]},rof:$,ru:{cardinal:[T,W,Q,w],ordinal:[w]},rwk:$,sah:se,saq:$,sat:ht,sc:{cardinal:[T,w],ordinal:[Q,w]},scn:{cardinal:[T,w],ordinal:[Q,w]},sd:$,sdh:$,se:ht,seh:$,ses:se,sg:se,sh:{cardinal:[T,W,w],ordinal:[w]},shi:{cardinal:[T,W,w],ordinal:[w]},si:$,sk:{cardinal:[T,W,Q,w],ordinal:[w]},sl:{cardinal:[T,fe,W,w],ordinal:[w]},sma:ht,smi:ht,smj:ht,smn:ht,sms:ht,sn:$,so:$,sq:{cardinal:[T,w],ordinal:[T,Q,w]},sr:{cardinal:[T,W,w],ordinal:[w]},ss:$,ssy:$,st:$,su:se,sv:qt,sw:$,syr:$,ta:$,te:$,teo:$,th:se,ti:$,tig:$,tk:{cardinal:[T,w],ordinal:[W,w]},tl:qt,tn:$,to:se,tpi:se,tr:$,ts:$,tzm:$,ug:$,uk:{cardinal:[T,W,Q,w],ordinal:[W,w]},und:se,ur:$,uz:$,ve:$,vec:{cardinal:[T,Q,w],ordinal:[Q,w]},vi:{cardinal:[w],ordinal:[T,w]},vo:$,vun:$,wa:$,wae:$,wo:se,xh:$,xog:$,yi:$,yo:se,yue:se,zh:se,zu:$});let M=(t,i)=>i?"other":t==1?"one":"other",At=(t,i)=>i?"other":t==0||t==1?"one":"other",an=(t,i)=>i?"other":t>=0&&t<=1?"one":"other",Qe=(t,i)=>{let s=String(t).split("."),o=!s[1];return i?"other":t==1&&o?"one":"other"},oe=(t,i)=>"other",Tt=(t,i)=>i?"other":t==1?"one":t==2?"two":"other";var Qn=Object.freeze({__proto__:null,af:M,ak:At,am:an,an:M,ar:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-2);return i?"other":t==0?"zero":t==1?"one":t==2?"two":l>=3&&l<=10?"few":l>=11&&l<=99?"many":"other"},ars:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-2);return i?"other":t==0?"zero":t==1?"one":t==2?"two":l>=3&&l<=10?"few":l>=11&&l<=99?"many":"other"},as:(t,i)=>i?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other",asa:M,ast:Qe,az:(t,i)=>{let s=String(t).split("."),o=s[0],l=o.slice(-1),u=o.slice(-2),h=o.slice(-3);return i?l==1||l==2||l==5||l==7||l==8||u==20||u==50||u==70||u==80?"one":l==3||l==4||h==100||h==200||h==300||h==400||h==500||h==600||h==700||h==800||h==900?"few":o==0||l==6||u==40||u==60||u==90?"many":"other":t==1?"one":"other"},bal:(t,i)=>t==1?"one":"other",be:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-1),u=o&&s[0].slice(-2);return i?(l==2||l==3)&&u!=12&&u!=13?"few":"other":l==1&&u!=11?"one":l>=2&&l<=4&&(u<12||u>14)?"few":o&&l==0||l>=5&&l<=9||u>=11&&u<=14?"many":"other"},bem:M,bez:M,bg:M,bho:At,bm:oe,bn:(t,i)=>i?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other",bo:oe,br:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-1),u=o&&s[0].slice(-2),h=o&&s[0].slice(-6);return i?"other":l==1&&u!=11&&u!=71&&u!=91?"one":l==2&&u!=12&&u!=72&&u!=92?"two":(l==3||l==4||l==9)&&(u<10||u>19)&&(u<70||u>79)&&(u<90||u>99)?"few":t!=0&&o&&h==0?"many":"other"},brx:M,bs:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=o.slice(-2),y=l.slice(-1),E=l.slice(-2);return i?"other":u&&h==1&&p!=11||y==1&&E!=11?"one":u&&h>=2&&h<=4&&(p<12||p>14)||y>=2&&y<=4&&(E<12||E>14)?"few":"other"},ca:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?t==1||t==3?"one":t==2?"two":t==4?"few":"other":t==1&&l?"one":o!=0&&u==0&&l?"many":"other"},ce:M,ceb:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=l.slice(-1);return i?"other":u&&(o==1||o==2||o==3)||u&&h!=4&&h!=6&&h!=9||!u&&p!=4&&p!=6&&p!=9?"one":"other"},cgg:M,chr:M,ckb:M,cs:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1];return i?"other":t==1&&l?"one":o>=2&&o<=4&&l?"few":l?"other":"many"},cy:(t,i)=>i?t==0||t==7||t==8||t==9?"zero":t==1?"one":t==2?"two":t==3||t==4?"few":t==5||t==6?"many":"other":t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other",da:(t,i)=>{let s=String(t).split("."),o=s[0],l=Number(s[0])==t;return i?"other":t==1||!l&&(o==0||o==1)?"one":"other"},de:Qe,doi:an,dsb:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-2),p=l.slice(-2);return i?"other":u&&h==1||p==1?"one":u&&h==2||p==2?"two":u&&(h==3||h==4)||p==3||p==4?"few":"other"},dv:M,dz:oe,ee:M,el:M,en:(t,i)=>{let s=String(t).split("."),o=!s[1],l=Number(s[0])==t,u=l&&s[0].slice(-1),h=l&&s[0].slice(-2);return i?u==1&&h!=11?"one":u==2&&h!=12?"two":u==3&&h!=13?"few":"other":t==1&&o?"one":"other"},eo:M,es:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?"other":t==1?"one":o!=0&&u==0&&l?"many":"other"},et:Qe,eu:M,fa:an,ff:(t,i)=>i?"other":t>
12=0&&t<2?"one":"other",fi:Qe,fil:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=l.slice(-1);return i?t==1?"one":"other":u&&(o==1||o==2||o==3)||u&&h!=4&&h!=6&&h!=9||!u&&p!=4&&p!=6&&p!=9?"one":"other"},fo:M,fr:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?t==1?"one":"other":t>=0&&t<2?"one":o!=0&&u==0&&l?"many":"other"},fur:M,fy:Qe,ga:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?t==1?"one":"other":t==1?"one":t==2?"two":o&&t>=3&&t<=6?"few":o&&t>=7&&t<=10?"many":"other"},gd:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?t==1||t==11?"one":t==2||t==12?"two":t==3||t==13?"few":"other":t==1||t==11?"one":t==2||t==12?"two":o&&t>=3&&t<=10||o&&t>=13&&t<=19?"few":"other"},gl:Qe,gsw:M,gu:(t,i)=>i?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other",guw:At,gv:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-1),h=o.slice(-2);return i?"other":l&&u==1?"one":l&&u==2?"two":l&&(h==0||h==20||h==40||h==60||h==80)?"few":l?"other":"many"},ha:M,haw:M,he:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1];return i?"other":o==1&&l||o==0&&!l?"one":o==2&&l?"two":"other"},hi:(t,i)=>i?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other",hnj:oe,hr:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=o.slice(-2),y=l.slice(-1),E=l.slice(-2);return i?"other":u&&h==1&&p!=11||y==1&&E!=11?"one":u&&h>=2&&h<=4&&(p<12||p>14)||y>=2&&y<=4&&(E<12||E>14)?"few":"other"},hsb:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-2),p=l.slice(-2);return i?"other":u&&h==1||p==1?"one":u&&h==2||p==2?"two":u&&(h==3||h==4)||p==3||p==4?"few":"other"},hu:(t,i)=>i?t==1||t==5?"one":"other":t==1?"one":"other",hy:(t,i)=>i?t==1?"one":"other":t>=0&&t<2?"one":"other",ia:Qe,id:oe,ig:oe,ii:oe,io:Qe,is:(t,i)=>{let s=String(t).split("."),o=s[0],l=(s[1]||"").replace(/0+$/,""),u=Number(s[0])==t,h=o.slice(-1),p=o.slice(-2);return i?"other":u&&h==1&&p!=11||l%10==1&&l%100!=11?"one":"other"},it:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?t==11||t==8||t==80||t==800?"many":"other":t==1&&l?"one":o!=0&&u==0&&l?"many":"other"},iu:Tt,ja:oe,jbo:oe,jgo:M,jmc:M,jv:oe,jw:oe,ka:(t,i)=>{let s=String(t).split("."),o=s[0],l=o.slice(-2);return i?o==1?"one":o==0||l>=2&&l<=20||l==40||l==60||l==80?"many":"other":t==1?"one":"other"},kab:(t,i)=>i?"other":t>=0&&t<2?"one":"other",kaj:M,kcg:M,kde:oe,kea:oe,kk:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-1);return i?l==6||l==9||o&&l==0&&t!=0?"many":"other":t==1?"one":"other"},kkj:M,kl:M,km:oe,kn:an,ko:oe,ks:M,ksb:M,ksh:(t,i)=>i?"other":t==0?"zero":t==1?"one":"other",ku:M,kw:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-2),u=o&&s[0].slice(-3),h=o&&s[0].slice(-5),p=o&&s[0].slice(-6);return i?o&&t>=1&&t<=4||l>=1&&l<=4||l>=21&&l<=24||l>=41&&l<=44||l>=61&&l<=64||l>=81&&l<=84?"one":t==5||l==5?"many":"other":t==0?"zero":t==1?"one":l==2||l==22||l==42||l==62||l==82||o&&u==0&&(h>=1e3&&h<=2e4||h==4e4||h==6e4||h==8e4)||t!=0&&p==1e5?"two":l==3||l==23||l==43||l==63||l==83?"few":t!=1&&(l==1||l==21||l==41||l==61||l==81)?"many":"other"},ky:M,lag:(t,i)=>{let s=String(t).split("."),o=s[0];return i?"other":t==0?"zero":(o==0||o==1)&&t!=0?"one":"other"},lb:M,lg:M,lij:(t,i)=>{let s=String(t).split("."),o=!s[1],l=Number(s[0])==t;return i?t==11||t==8||l&&t>=80&&t<=89||l&&t>=800&&t<=899?"many":"other":t==1&&o?"one":"other"},lkt:oe,ln:At,lo:(t,i)=>i&&t==1?"one":"other",lt:(t,i)=>{let s=String(t).split("."),o=s[1]||"",l=Number(s[0])==t,u=l&&s[0].slice(-1),h=l&&s[0].slice(-2);return i?"other":u==1&&(h<11||h>19)?"one":u>=2&&u<=9&&(h<11||h>19)?"few":o!=0?"many":"other"},lv:(t,i)=>{let s=String(t).split("."),o=s[1]||"",l=o.length,u=Number(s[0])==t,h=u&&s[0].slice(-1),p=u&&s[0].slice(-2),y=o.slice(-2),E=o.slice(-1);return i?"other":u&&h==0||p>=11&&p<=19||l==2&&y>=11&&y<=19?"zero":h==1&&p!=11||l==2&&E==1&&y!=11||l!=2&&E==1?"one":"other"},mas:M,mg:At,mgo:M,mk:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=o.slice(-2),y=l.slice(-1),E=l.slice(-2);return i?h==1&&p!=11?"one":h==2&&p!=12?"two":(h==7||h==8)&&p!=17&&p!=18?"many":"other":u&&h==1&&p!=11||y==1&&E!=11?"one":"other"},ml:M,mn:M,mo:(t,i)=>{let s=String(t).split("."),o=!s[1],l=Number(s[0])==t,u=l&&s[0].slice(-2);return i?t==1?"one":"other":t==1&&o?"one":!o||t==0||t!=1&&u>=1&&u<=19?"few":"other"},mr:(t,i)=>i?t==1?"one":t==2||t==3?"two":t==4?"few":"other":t==1?"one":"other",ms:(t,i)=>i&&t==1?"one":"other",mt:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-2);return i?"other":t==1?"one":t==2?"two":t==0||l>=3&&l<=10?"few":l>=11&&l<=19?"many":"other"},my:oe,nah:M,naq:Tt,nb:M,nd:M,ne:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?o&&t>
12=1&&t<=4?"one":"other":t==1?"one":"other"},nl:Qe,nn:M,nnh:M,no:M,nqo:oe,nr:M,nso:At,ny:M,nyn:M,om:M,or:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?t==1||t==5||o&&t>=7&&t<=9?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t==1?"one":"other"},os:M,osa:oe,pa:At,pap:M,pcm:an,pl:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-1),h=o.slice(-2);return i?"other":t==1&&l?"one":l&&u>=2&&u<=4&&(h<12||h>14)?"few":l&&o!=1&&(u==0||u==1)||l&&u>=5&&u<=9||l&&h>=12&&h<=14?"many":"other"},prg:(t,i)=>{let s=String(t).split("."),o=s[1]||"",l=o.length,u=Number(s[0])==t,h=u&&s[0].slice(-1),p=u&&s[0].slice(-2),y=o.slice(-2),E=o.slice(-1);return i?"other":u&&h==0||p>=11&&p<=19||l==2&&y>=11&&y<=19?"zero":h==1&&p!=11||l==2&&E==1&&y!=11||l!=2&&E==1?"one":"other"},ps:M,pt:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?"other":o==0||o==1?"one":o!=0&&u==0&&l?"many":"other"},pt_PT:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?"other":t==1&&l?"one":o!=0&&u==0&&l?"many":"other"},rm:M,ro:(t,i)=>{let s=String(t).split("."),o=!s[1],l=Number(s[0])==t,u=l&&s[0].slice(-2);return i?t==1?"one":"other":t==1&&o?"one":!o||t==0||t!=1&&u>=1&&u<=19?"few":"other"},rof:M,ru:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-1),h=o.slice(-2);return i?"other":l&&u==1&&h!=11?"one":l&&u>=2&&u<=4&&(h<12||h>14)?"few":l&&u==0||l&&u>=5&&u<=9||l&&h>=11&&h<=14?"many":"other"},rwk:M,sah:oe,saq:M,sat:Tt,sc:(t,i)=>{let s=String(t).split("."),o=!s[1];return i?t==11||t==8||t==80||t==800?"many":"other":t==1&&o?"one":"other"},scn:(t,i)=>{let s=String(t).split("."),o=!s[1];return i?t==11||t==8||t==80||t==800?"many":"other":t==1&&o?"one":"other"},sd:M,sdh:M,se:Tt,seh:M,ses:oe,sg:oe,sh:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=o.slice(-2),y=l.slice(-1),E=l.slice(-2);return i?"other":u&&h==1&&p!=11||y==1&&E!=11?"one":u&&h>=2&&h<=4&&(p<12||p>14)||y>=2&&y<=4&&(E<12||E>14)?"few":"other"},shi:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?"other":t>=0&&t<=1?"one":o&&t>=2&&t<=10?"few":"other"},si:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"";return i?"other":t==0||t==1||o==0&&l==1?"one":"other"},sk:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1];return i?"other":t==1&&l?"one":o>=2&&o<=4&&l?"few":l?"other":"many"},sl:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-2);return i?"other":l&&u==1?"one":l&&u==2?"two":l&&(u==3||u==4)||!l?"few":"other"},sma:Tt,smi:Tt,smj:Tt,smn:Tt,sms:Tt,sn:M,so:M,sq:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-1),u=o&&s[0].slice(-2);return i?t==1?"one":l==4&&u!=14?"many":"other":t==1?"one":"other"},sr:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=o.slice(-2),y=l.slice(-1),E=l.slice(-2);return i?"other":u&&h==1&&p!=11||y==1&&E!=11?"one":u&&h>=2&&h<=4&&(p<12||p>14)||y>=2&&y<=4&&(E<12||E>14)?"few":"other"},ss:M,ssy:M,st:M,su:oe,sv:(t,i)=>{let s=String(t).split("."),o=!s[1],l=Number(s[0])==t,u=l&&s[0].slice(-1),h=l&&s[0].slice(-2);return i?(u==1||u==2)&&h!=11&&h!=12?"one":"other":t==1&&o?"one":"other"},sw:Qe,syr:M,ta:M,te:M,teo:M,th:oe,ti:At,tig:M,tk:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t,l=o&&s[0].slice(-1);return i?l==6||l==9||t==10?"few":"other":t==1?"one":"other"},tl:(t,i)=>{let s=String(t).split("."),o=s[0],l=s[1]||"",u=!s[1],h=o.slice(-1),p=l.slice(-1);return i?t==1?"one":"other":u&&(o==1||o==2||o==3)||u&&h!=4&&h!=6&&h!=9||!u&&p!=4&&p!=6&&p!=9?"one":"other"},tn:M,to:oe,tpi:oe,tr:M,ts:M,tzm:(t,i)=>{let s=String(t).split("."),o=Number(s[0])==t;return i?"other":t==0||t==1||o&&t>=11&&t<=99?"one":"other"},ug:M,uk:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=Number(s[0])==t,h=u&&s[0].slice(-1),p=u&&s[0].slice(-2),y=o.slice(-1),E=o.slice(-2);return i?h==3&&p!=13?"few":"other":l&&y==1&&E!=11?"one":l&&y>=2&&y<=4&&(E<12||E>14)?"few":l&&y==0||l&&y>=5&&y<=9||l&&E>=11&&E<=14?"many":"other"},und:oe,ur:Qe,uz:M,ve:M,vec:(t,i)=>{let s=String(t).split("."),o=s[0],l=!s[1],u=o.slice(-6);return i?t==11||t==8||t==80||t==800?"many":"other":t==1&&l?"one":o!=0&&u==0&&l?"many":"other"},vi:(t,i)=>i&&t==1?"one":"other",vo:M,vun:M,wa:At,wae:M,wo:oe,xh:M,xog:M,yi:Qe,yo:oe,yue:oe,zh:oe,zu:an});function ni(t){if(typeof t!="string"||t.length<2)throw new RangeError("Invalid language tag: ".concat(t));if(t.startsWith("pt-PT"))return"pt-PT";var i=t.match(/.+?(?=[-_])/);return i?i[0]:t}function Jn(t){if(typeof t=="function"){var i=ni(t.name);return{isDefault:!1,id:Lt(i),lc:i,locale:t.name,getPlural:t,cardinals:t.cardinals||[],ordinals:t.ordinals||[]}}var s=ni(t),o=Lt(s);return Al(o)?{isDefault:!0,id:o,lc:s,locale:t,getCardinal:$l[o],getPlural:Qn[o],cardinals:ls[o].cardinal,ordinals:ls[o].ordinal}:null}function El(t){var i=Object.keys(Qn).filter(function(s){return s!==t});return i.unshift(t),i.map(Jn)}function _l(t){var i=ni(t);return Lt(i)in Qn}function Al(t){return t in Qn}
12var Tl=(function(){function t(i,s){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:s&&s.strictNumberSign||!1,strictPluralKeys:!0},s),i==="*")this.plurals=El(t.defaultLocale);else if(Array.isArray(i))this.plurals=i.map(Jn).filter(Boolean);else if(i){var o=Jn(i);o&&(this.plurals=[o])}if(this.plurals.length===0){var o=Jn(t.defaultLocale);this.plurals=[o]}}return t.escape=function(i,s){var o=s?/[#{}]/g:/[{}]/g;return String(i).replace(o,"'$&'")},t.supportedLocalesOf=function(i){var s=Array.isArray(i)?i:[i];return s.filter(_l)},t.prototype.resolvedOptions=function(){return a(a({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},t.prototype.compile=function(i){var s,o,l=new wl(this.options),u="return "+l.compile(i,this.plurals[0]),h=[],p=[];try{for(var y=e(Object.entries(l.runtime)),E=y.next();!E.done;E=y.next()){var I=n(E.value,2),G=I[0],q=I[1];h.push(G),p.push(q)}}catch(le){s={error:le}}
12finally{try{E&&!E.done&&(o=y.return)&&o.call(y)}finally{if(s)throw s.error}}var C=new(Function.bind.apply(Function,r(r([void 0],n(h),!1),[u],!1)));return C.apply(void 0,r([],n(p),!1))},t.defaultLocale="en",t})();return Tl})});var Cl=(a,e)=>e==null?null:e.value;function Pl(a,e){if(a&1&&(me(0,"nz-option",2),gt(1,"translate")),a&2){let n=e.$implicit;Ie("nzValue",n==null?null:n.value)("nzLabel",yt(1,2,n==null?null:n.code))}}var ca=(()=>{let e=class e{constructor(r,c){this.translateService=r,this.destroyRef=c,this.languages=Ws,this.localStorage=N(Ut),this.form=new No({language:new ko("")}),this.form.valueChanges.pipe(un(),Se()).subscribe(d=>{this.translateService.use(d.language.toLowerCase()),this.localStorage.setItem(Ke.UI_LANGUAGE,d.language.toLowerCase())})}ngOnInit(){this.translateService.onLangChange.pipe(un(),Se(this.destroyRef)).subscribe(c=>{this.form.setValue({language:c.lang.toUpperCase()})});let r=this.localStorage.getItem(Ke.UI_LANGUAGE);this.form.setValue({language:r?.toUpperCase()||Ks})}};e.\u0275fac=function(c){return new(c||e)(xe(et),xe(Ye))},e.\u0275cmp=Ae({type:e,selectors:[["math-language-switch"]],decls:4,vars:2,consts:[[3,"formGroup"],[3,"formControl"],[3,"nzValue","nzLabel"]],template:function(c,d){c&1&&(ne(0,"form",0)(1,"nz-select",1),ws(2,Pl,2,4,"nz-option",2,Cl),ie()()),c&2&&(Ie("formGroup",d.form),he(),Ie("formControl",d.form.controls.language),he(),$s(d.languages))},dependencies:[hn,jo,Lo,Fo,Oo,Co,To,Mo,Po,Ro,gr],styles:["[_nghost-%COMP%] .ant-select-selector{background-color:transparent!important;color:var(--math-blue-6);border-color:var(--math-surface-translucent)}[_nghost-%COMP%] svg{fill:var(--math-blue-6)}"],changeDetection:0});let a=e;return a})();function Rl(a,e){a&1&&(ne(0,"div",1),me(1,"img",2),ie())}var la=(()=>{let e=class e{constructor(){this.hideLogo=Rs(!1),this.responsive=N(_r)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-auth-header"]],inputs:{hideLogo:[1,"hideLogo"]},decls:7,vars:3,consts:[["nzAlign","middle","nzJustify","space-between"],[1,"logo"],["src","assets/mathema-logo-3.png","alt","Logo"]],template:function(c,d){if(c&1&&(cr(0),gt(1,"async"),ne(2,"nz-row",0)(3,"nz-col"),Ze(4,Rl,2,0,"div",1),ie(),ne(5,"nz-col"),me(6,"math-language-switch"),ie()()),c&2){let m=yt(1,1,d.responsive.isMobile$);he(4),Xe(!d.hideLogo()||m?4:-1)}},dependencies:[Er,$r,ca,ur],styles:["[_nghost-%COMP%]{padding-bottom:24px;display:block}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:130px}app-language-switch[_ngcontent-%COMP%] .ant-select-selector{background-color:transparent!important;color:var(--math-surface)}"],changeDetection:0});let a=e;return a})();var Ol=["*"];function Dl(a,e){a&1&&(ne(0,"div",5),me(1,"img",6),ie())}var da=(()=>{let e=class e{constructor(){this.authLayoutService=N(qo)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-auth-informer"]],ngContentSelectors:Ol,decls:7,vars:2,consts:[["baseContent",""],[1,"header"],[3,"hideLogo"],[3,"ngTemplateOutlet"],[1,"card-content"],["nz-flex","","nzAlign","center","nzJustify","center",1,"base-content"],["src","assets/mathema-logo-2.png","alt","Logo",1,"logo"]],template:function(c,d){if(c&1&&(Es(),ne(0,"div",1),me(1,"math-auth-header",2),ie(),Yt(2,3),Rt(3,Dl,2,0,"ng-template",null,0,lr),ne(5,"div",4),_s(6),ie()),c&2){let m=As(4);he(),Ie("hideLogo",!d.authLayoutService.informerContent()),he(),Ie("ngTemplateOutlet",d.authLayoutService.informerContent()||m)}},dependencies:[la,dn,fn,vt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%;flex:1 auto;justify-content:space-between}@media only screen and (min-width:600px){[_nghost-%COMP%]{background:var(--math-gradient-9)}}.base-content[_ngcontent-%COMP%]{display:none;justify-content:center;align-items:center;flex-grow:1!important;width:100%}@media only screen and (min-width:600px){.base-content[_ngcontent-%COMP%]{display:flex}}.logo[_ngcontent-%COMP%]{width:90%;max-width:355px;transform:translateY(-50px)}.header[_ngcontent-%COMP%]{padding:24px}@media only screen and (max-width:600px){.header[_ngcontent-%COMP%]{padding:12px}}.card-content[_ngcontent-%COMP%]{padding:0 24px}@media only screen and (max-width:600px){.card-content[_ngcontent-%COMP%]{padding:12px}}"],changeDetection:0});let a=e;return a})();function xl(a,e){a&1&&(ne(0,"nz-layout",0)(1,"nz-content")(2,"div",1)(3,"math-auth-informer")(4,"nz-card"),me(5,"router-outlet"),ie()()()()())}function Il(a,e){if(a&1&&(ne(0,"nz-layout")(1,"nz-content")(2,"nz-card")(3,"nz-row",2)(4,"nz-col",3),me(5,"math-auth-informer"),ie(),ne(6,"nz-col",4),me(7,"router-outlet"),ie()()()()()),a&2){He();let n=Ns(0);he(4),Ie("nzSpan",n?0:12),he(2),Ie("nzGap",24)("nzSpan",n?24:12)}}var gi=(()=>{let e=class e{constructor(){this.responsive=N(_r)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-auth-layout"]],decls:4,vars:5,consts:[[1,"mobile"],[1,"w-full"],["nzJustify","space-between",1,"auth-content"],["nz-flex","","nzVertical","",3,"nzSpan"],["nz-flex","","nzAlign","center","nzJustify","center","nzVertical","",1,"auth-content-main",3,"nzGap","nzSpan"]],template:function(c,d){if(c&1&&(cr(0),gt(1,"async"),Ze(2,xl,6,0,"nz-layout",0),Ze(3,Il,8,3,"nz-layout")),c&2){let m=Ms(yt(1,2,d.responsive.isMobile$));he(2),Xe(m?2:-1),he(),Xe(m?-1:3)}},dependencies:[On,jt,vo,mn,Sr,zo,Io,Do,Er,$r,da,vt,ur],styles:[".mobile[_ngcontent-%COMP%]{background:var(--math-gradient-9)}nz-layout[_ngcontent-%COMP%]{height:100%;width:100%;overflow:auto}@media only screen and (min-width:600px){nz-layout[_ngcontent-%COMP%]{background:var(--math-blue-1)}}nz-content[_ngcontent-%COMP%]{display:grid;flex-shrink:0;min-height:100%;justify-items:center;align-items:start}nz-card[_ngcontent-%COMP%]{overflow:hidden;max-width:1120px;width:100%;border-radius:16px}@media only screen and (min-width:600px){nz-card[_ngcontent-%COMP%]{margin-block:auto}}nz-card[_ngcontent-%COMP%] .ant-card-body{padding:16px}@media only screen and (min-width:600px){nz-card[_ngcontent-%COMP%] .ant-card-body{padding:0}}@media only screen and (min-width:600px){.auth-content[_ngcontent-%COMP%]{min-height:716px;height:fit-content;align-items:stretch}.auth-content[_ngcontent-%COMP%] > nz-col[_ngcontent-%COMP%]{flex:0 0 50%!important;max-width:50%}}.auth-content-main[_ngcontent-%COMP%]{width:100%}.auth-content-main[_ngcontent-%COMP%] router-outlet[_ngcontent-%COMP%]{display:none}.w-full[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});let a=e;return a})();var ha=(()=>{let e=class e{constructor(r,c){this.authService=r,this.routeRedirectService=c}canActivate(){return this.authService.isLoggedIn()?this.routeRedirectService.getRedirectUrlByRole(this.authService.userRole):!0}};e.\u0275fac=function(c){return new(c||e)(Ne(Fe),Ne(so))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var ma=(()=>{let e=class e{};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-survey-info"]],decls:2,vars:0,consts:[["nz-flex","","nzAlign","center","nzJustify","center",1,"logo-container"],["src","/assets/mathema-logo-2.png","alt","Mathema.me",1,"logo"]],template:function(c,d){c&1&&(ne(0,"div",0),me(1,"img",1),ie())},dependencies:[fn,vt],styles:[".logo-container[_ngcontent-%COMP%]{height:100%}"]});let a=e;return a})();function zl(a,e){if(a&1){let n=sr();ne(0,"button",7),or("click",function(){tr(n);let c=He();return nr(c.surveyLayoutService.onBackButton())}),me(1,"span",8),ie()}a&2&&(he(),Ie("nzType","left"))}var vi=(()=>{let e=class e{constructor(){this.surveyLayoutService=N(Ho)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-survey-layout"]],decls:9,vars:1,consts:[[1,"header"],["nz-button","","nzType","default","nzShape","circle",1,"back-button"],[1,"logo"],["src","/assets/mathema-logo.png","alt","Mathema.me"],[1,"survey-body"],[1,"info-side"],[1,"content"],["nz-button","","nzType","default","nzShape","circle",1,"back-button",3,"click"],["nz-icon","",3,"nzType"]],template:function(c,d){c&1&&(ne(0,"div",0),Ze(1,zl,2,1,"button",1),ne(2,"div",2),me(3,"img",3),ie()(),ne(4,"nz-layout",4)(5,"div",5),me(6,"math-survey-info"),ie(),ne(7,"div",6),me(8,"router-outlet"),ie()()),c&2&&(he(),Xe(d.surveyLayoutService.onBackButton?1:-1))},dependencies:[mn,jt,ma,br,go],styles:["[_nghost-%COMP%]{height:100%;position:relative;display:flex;flex-direction:column;overflow:auto}.survey-body[_ngcontent-%COMP%]{min-height:auto;flex-direction:row}.info-side[_ngcontent-%COMP%]{display:none;background:var(--math-gradient-9)}.content[_ngcontent-%COMP%]{width:100%;padding:12px}.back-button[_ngcontent-%COMP%]{position:absolute;
12left:12px;top:12px}.header[_ngcontent-%COMP%]{padding:17px 12px;display:flex;justify-content:center;align-items:center;background-color:var(--math-blue-1)}.logo[_ngcontent-%COMP%]{width:150px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}@media(max-width:575px){.header[_ngcontent-%COMP%]{position:sticky;left:0;top:0}}@media(min-width:768px){.header[_ngcontent-%COMP%]{padding:0}.logo[_ngcontent-%COMP%]{display:none}.back-button[_ngcontent-%COMP%]{left:30px;top:30px}.content[_ngcontent-%COMP%]{width:50%;background-color:var(--math-surface);padding:30px;display:flex;overflow:scroll}.info-side[_ngcontent-%COMP%]{display:block;width:50%;padding:30px}}"]});let a=e;return a})();function Ll(a,e){a&1&&Yt(0)}function Fl(a,e){if(a&1&&Rt(0,Ll,1,0,"ng-container",3),a&2){let n=He(2);Ie("ngComponentOutlet",n.subheader().cmp)}}function jl(a,e){a&1&&Yt(0)}function Ul(a,e){if(a&1&&Rt(0,jl,1,0,"ng-container",4),a&2){let n=He(2);Ie("ngTemplateOutlet",n.subheader().tmp)}}function Gl(a,e){if(a&1&&(ne(0,"nz-header",2),Ze(1,Fl,1,1,"ng-container")(2,Ul,1,1,"ng-container"),ie()),a&2){let n=He();he(),Xe(n.subheader().cmp?1:2)}}var fa=(()=>{let e=class e{constructor(){this.headerService=N(Ko),this.subheader=Cs(()=>{let r=it({},this.headerService.headerConfig());if(r?.subheader&&eo(r.subheader)){let c=r.subheader instanceof Ss;return{cmp:c?null:r.subheader,tmp:c?r.subheader:null}}return null})}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-header"]],decls:3,vars:1,consts:[["nz-flex","","nzAlign","center",1,"header"],["src","assets/mathema-logo.png","alt","Mathema.me",1,"logo"],[1,"subheader"],[4,"ngComponentOutlet"],[4,"ngTemplateOutlet"]],template:function(c,d){c&1&&(ne(0,"nz-header",0),me(1,"img",1),ie(),Ze(2,Gl,3,1,"nz-header",2)),c&2&&(he(2),Xe(d.subheader()?2:-1))},dependencies:[vt,yo,Os,dn],styles:["nz-header.header[_ngcontent-%COMP%]{border-bottom:1px solid var(--math-border);padding:0 16px;height:64px;line-height:1.2}.logo[_ngcontent-%COMP%]{height:25px}.subheader[_ngcontent-%COMP%]{height:auto;padding:0 16px;border-bottom:1px solid var(--math-input-border)}@media(max-width:575px){nz-header.header[_ngcontent-%COMP%]{padding:0 8px}.subheader[_ngcontent-%COMP%]{padding:0 8px}}"]});let a=e;return a})();function Bl(a,e){a&1&&Yt(0)}function ql(a,e){if(a&1&&(ne(0,"div",3),Rt(1,Bl,1,0,"ng-container",4),ie()),a&2){let n=He();ai("slide-up",n.publicMainLayoutService.bottomPanelVisible())("slide-down",!n.publicMainLayoutService.bottomPanelVisible()),he(),Ie("ngTemplateOutlet",n.publicMainLayoutService.bottomPanel())}}var Si=(()=>{let e=class e{constructor(){this.publicMainLayoutService=N(Wo)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-public-main-layout"]],decls:5,vars:3,consts:[[1,"main-layout"],[1,"content"],[1,"bottom-panel",3,"slide-up","slide-down"],[1,"bottom-panel"],[4,"ngTemplateOutlet"]],template:function(c,d){c&1&&(ne(0,"nz-layout",0),me(1,"math-header"),ne(2,"nz-content",1),me(3,"router-outlet"),ie(),Ze(4,ql,2,5,"div",2),ie()),c&2&&(ai("bottom-padding",d.publicMainLayoutService.bottomPanel()),he(4),Xe(d.publicMainLayoutService.bottomPanel()?4:-1))},dependencies:[jt,fa,mn,Sr,dn],styles:["nz-layout.main-layout[_ngcontent-%COMP%]{height:100%;position:relative}nz-layout.main-layout.bottom-padding[_ngcontent-%COMP%]{margin-bottom:70px}nz-content.content[_ngcontent-%COMP%]{overflow-y:auto;height:100%;padding:16px}@media(max-width:575px){nz-content.content[_ngcontent-%COMP%]{padding:8px}}.bottom-panel[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;background-color:var(--math-surface);padding:5px 16px;min-height:62px;border-top:1px solid var(--math-input-border);z-index:100;display:flex;align-items:center;justify-content:space-between;transform:translateY(300%);transition:transform .3s ease-in-out}.bottom-panel.slide-up[_ngcontent-%COMP%]{transform:translateY(0)}.bottom-panel.slide-down[_ngcontent-%COMP%]{transform:translateY(300%)}"]});let a=e;return a})();var pa=a=>{let e=N(Ce),n=a.queryParamMap.get(Jo.TYPE);return n?Object.values(Yo).includes(n)?!0:e.navigate(["/"]):e.navigate(["/"])};var ga=(...a)=>()=>{let e=N(Fe);return a.includes(e.userRole)}
12;var ya=a=>{let e=N(Ce),n=a.queryParamMap.get("clientId"),r=a.queryParamMap.get("dealId");return!n||!r?e.createUrlTree(["/"]):!0};var va=a=>{let e=N(Ce);return a.queryParamMap.get("dealId")?!0:e.createUrlTree(["/"])};var xn=(function(a){return a.PAYMENT="payment",a.PAYMENT_IN_PROGRESS="payment_in_progress",a.CHANGE_TEACHER="change_teacher",a.NOTHING_TO_PAY="nothing_to_pay",a})(xn||{});var St=We.follow_up,Sa=a=>{let e=N(Ce),n=N(Go),r=N(Gt),c=N(et),d=N(Bo),m=a.paramMap.get("studentId"),f=e.parseUrl(`/${D.DASHBOARD}`);return m?n.getFirstLessonRedirect(m).pipe(er(g=>g.type===xn.PAYMENT?(window.location.assign(g.paymentLink),!1):g.type===xn.PAYMENT_IN_PROGRESS?(r.info({nzTitle:c.instant(St.payment_in_progress_title),nzContent:c.instant(St.payment_in_progress_body),nzOkText:c.instant(St.payment_in_progress_cta),nzCentered:!0,nzOnOk:()=>e.navigate([`/${D.DASHBOARD}`])}),f):g.type===xn.CHANGE_TEACHER?(d.followUpChangeTeacherData.set({studentId:g.studentId,workingClass:g.workingClass}),r.confirm({nzTitle:c.instant(St.change_teacher_title),nzContent:c.instant(St.change_teacher_body),nzIconType:"exclamation-circle",nzOkText:c.instant(St.change_teacher_cta),nzCancelText:c.instant(St.change_teacher_back),nzCentered:!0,nzOnOk:()=>{let k=d.followUpChangeTeacherData();e.navigate([`/${D.TEACHER_SEARCH}`],{queryParams:{student_id:k?.studentId,isPrivate:!0,workingClass:k?.workingClass}})}}).afterClose.subscribe(()=>d.followUpChangeTeacherData.set(null)),f):(r.success({nzTitle:c.instant(St.lesson_already_payed_title),nzContent:c.instant(St.lesson_already_payed_body),nzOkText:c.instant(St.lesson_already_payed_cta),nzCentered:!0,nzOnOk:()=>e.navigate([`/${D.DASHBOARD}`]),nzOnCancel:()=>e.navigate([`/${D.DASHBOARD}`])}),f)),Qt(g=>(console.error("Failed to resolve first-lesson redirect",g),ri(f)))):ri(f)};var Hl=[{path:"",pathMatch:"full",redirectTo:D.LOGIN},{path:"",component:gi,canActivate:[ha],children:[{path:D.LOGIN,loadComponent:()=>import("./chunk-ZNV3XOWN.js").then(a=>a.SignInComponent)},{path:D.LOGIN_VIA_PROVIDER,loadComponent:()=>import("./chunk-OIYMTOE5.js").then(a=>a.ProviderComponent)},{path:D.SIGNUP,loadComponent:()=>import("./chunk-EKQELA6R.js").then(a=>a.SignupComponent)},{path:D.PASSWORD_RESTORE,loadComponent:()=>import("./chunk-LV3JK7OY.js").then(a=>a.PasswordRestoreComponent)}]},{path:"",component:vi,children:[{path:D.SURVEYS,loadChildren:()=>import("./chunk-TNUG56S3.js").then(a=>a.surveysRoutes)}]},{path:D.PUBLIC,component:Si,loadChildren:()=>import("./chunk-XXT7W2OZ.js").then(a=>a.publicRoutes)},{path:D.WHITEBOARD,component:xt,loadChildren:()=>import("./chunk-EKQXF6ER.js").then(a=>a.whiteboardRoutes)},{path:D.STUDENT_PAIR,component:xt,children:[{path:"",loadComponent:()=>import("./chunk-6PRL6725.js").then(a=>a.StudentPairComponent)}]},{path:D.TEST_RUNNER,component:xt,canActivate:[J,pa],data:{roles:[S.TEACHER],allowedTeacherStatuses:Pe},children:[{path:"",loadComponent:()=>import("./chunk-XN6YTUBV.js").then(a=>a.TestRunnerComponent)}]},{path:D.CLIENT_BOOKING_FLOW,component:xt,canActivate:[J],data:{roles:[S.CLIENT]},children:[{path:"",loadComponent:()=>import("./chunk-JPFPEMTV.js").then(a=>a.ClientBookingFlowComponent)}]},{path:D.ADD_DIAGNOSTIC_LESSON,component:xt,canActivate:[J],data:{roles:[S.ADMIN,S.SALES_MANAGER]},children:[{path:"",canActivate:[ya],loadComponent:()=>import("./chunk-DOAEFUTG.js").then(a=>a.AddDiagnosticLessonComponent)}]},{path:`${D.LESSONS}/:id/${Zo.MOVE}`,component:xt,canActivate:[J],data:{roles:[S.CLIENT,S.TEACHER,S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe},children:[{path:"",loadComponent:()=>import("./chunk-YPC6LLDK.js").then(a=>a.MoveLessonComponent)}]},{path:D.SELL_LESSON_PACKAGE,component:xt,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER]},children:[{path:"",canActivate:[va],loadComponent:()=>import("./chunk-DAKGYYWS.js").then(a=>a.SellLessonPackageComponent)}]},{path:`${D.FOLLOW_UP}/${D.PAY_FIRST_LESSON}/:studentId`,component:hi,canActivate:[J],data:{roles:[S.CLIENT]},resolve:{followUp:Sa}},{path:"",loadChildren:()=>import("./chunk-AB5A7YE6.js").then(a=>a.regularTeacherChangeRoutes)},{path:`${D.QUIZZES}/fullscreen`,component:xt,canActivate:[J],data:{roles:[S.TEACHER,S.CLIENT],allowedTeacherStatuses:Pe},children:[{path:":id",loadComponent:()=>import("./chunk-EPUE7ONJ.js").then(a=>a.QuizFullscreenComponent)}]},{path:"",component:hi,resolve:{state:Qo},children:[{path:D.FREE_HOURS,loadComponent:()=>import("./chunk-P4PHW5BM.js").then(a=>a.FreeHoursComponent),canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]}},{path:D.TEACHERS_QUEUE,loadComponent:()=>import("./chunk-WCXSOV3O.js").then(a=>a.TeachersQueueComponent),canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]}},{path:D.CALENDAR,loadChildren:()=>import("./chunk-ADABCUQQ.js").then(a=>
12a.ScheduleModule),canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER,S.TEACHER,S.CLIENT,S.STUDENT],allowedTeacherStatuses:Pe}},{path:D.CALENDAR+"/:contact",loadChildren:()=>import("./chunk-ADABCUQQ.js").then(a=>a.ScheduleModule),canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.TEACHER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe}},{path:D.DEAL,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadChildren:()=>import("./chunk-CPVRZZZV.js").then(a=>a.DealModule)},{path:D.FREE_SLOTS,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.TEACHER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-QQWFKKHQ.js").then(a=>a.FreeSlotsModule)},{path:D.USERS,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadComponent:()=>import("./chunk-H5KEV43H.js").then(a=>a.UsersComponent)},{path:D.STUDENTS,canActivate:[J],canMatch:[ga(S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER)],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadComponent:()=>import("./chunk-U4X3MQNS.js").then(a=>a.StudentsComponent)},{path:D.STUDENTS,canActivate:[J],data:{roles:[S.TEACHER],allowedTeacherStatuses:Pe},loadComponent:()=>import("./chunk-WORK2UPN.js").then(a=>a.TeacherStudentsComponent)},{path:D.STUDENT_JOURNAL,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER,S.TEACHER,S.CLIENT,S.STUDENT],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-VKWZQ4OH.js").then(a=>a.StudentJournalModule)},{path:D.CLIENT_PROFILE,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.CLIENT,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadChildren:()=>import("./chunk-54EJQ7NM.js").then(a=>a.ClientProfileModule)},{path:D.NOTIFICATIONS,canActivate:[J],data:{roles:[]},loadComponent:()=>import("./chunk-U4DBI6ES.js").then(a=>a.NotificationsComponent)},{path:D.DASHBOARD,canActivate:[J],data:{roles:[S.CLIENT,S.TEACHER,S.ADMIN,S.SALES_MANAGER]},loadComponent:()=>import("./chunk-IBH6SOYZ.js").then(a=>a.DashboardComponent)},{path:D.PAIR,canActivate:[J],data:{roles:[S.CLIENT]},loadComponent:()=>import("./chunk-UFZES6QG.js").then(a=>a.PairComponent)},{path:D.TEACHER_SEARCH,canActivate:[J],data:{roles:[S.CLIENT]},loadChildren:()=>import("./chunk-G5L4PF2J.js").then(a=>a.teacherSearchRoutes)},{path:D.AI_SEARCH,canActivate:[J],data:{roles:[S.CLIENT]},loadChildren:()=>import("./chunk-TZP7WLEV.js").then(a=>a.aiSearchRoutes)},{path:D.QUIZZES,canActivate:[J],data:{roles:[S.CLIENT,S.STUDENT,S.TEACHER],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-QZT4GNU6.js").then(a=>a.quizzesRoutes)},{path:D.LESSON_PREPARATION,canActivate:[J],data:{roles:[S.TEACHER,S.ADMIN],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-73LOB4O2.js").then(a=>a.lessonPreparationRoutes)},{path:D.MY_BOARDS,canActivate:[J],data:{roles:[S.TEACHER],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-ADGBH5ZB.js").then(a=>a.myBoardsRoutes)},{path:D.LESSON_PREPARATION_LIBRARY,canActivate:[J],data:{roles:[S.TEACHER,S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-6DMMMLDW.js").then(a=>a.lessonPreparationLibraryRoutes)},{path:D.LESSON_REPORT,canActivate:[J],data:{roles:[S.TEACHER,S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER,S.CLIENT,S.STUDENT],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-Z7IMGNED.js").then(a=>a.lessonReportRoutes)},{path:D.REPORTS,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadChildren:()=>import("./chunk-5MRXMCF6.js").then(a=>a.reportsRoutes)},{path:D.SETTINGS,canActivate:[J],data:{roles:[],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-DEYIALWX.js").then(a=>a.settingsRoutes)},{path:D.TEACHER,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.TEACHER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadChildren:()=>import("./chunk-6NASOGDX.js").then(a=>a.teacherRoutes)},{path:D.AI_TUTOR,canActivate:[J],data:{roles:[S.CLIENT,S.STUDENT,S.TEACHER,S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe},loadComponent:()=>import("./chunk-7MVMEPFA.js").then(a=>a.AITutorComponent)},{path:D.AI_TUTOR+"/:id",canActivate:[J],data:{roles:[S.CLIENT,S.STUDENT,S.TEACHER,S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER],allowedTeacherStatuses:Pe},loadComponent:()=>import("./chunk-7MVMEPFA.js").then(a=>a.AITutorComponent)},{path:D.CHAT,canActivate:[J],data:{roles:[S.TEACHER,S.CLIENT,S.STUDENT],allowedTeacherStatuses:Pe},loadChildren:()=>import("./chunk-HOV6U3OD.js").then(a=>a.chatRoutes)},{path:D.REFERRALS,canActivate:[J],data:{roles:[S.CLIENT,S.ADMIN]},loadComponent:()=>import("./chunk-M6ZI5NVR.js").then(a=>a.ReferralsComponent)}
12,{path:D.ADMIN_PANEL,canActivate:[J],data:{roles:[S.ADMIN,S.MANAGER,S.SALES_MANAGER,S.SUPPORT_MANAGER]},loadChildren:()=>import("./chunk-T75VMRJY.js").then(a=>a.adminPanelRoutes)},{path:"**",redirectTo:D.FREE_HOURS}]}],ba=(()=>{let e=class e{};e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=pt({type:e}),e.\u0275inj=ft({imports:[On.forRoot(Hl),On]});let a=e;return a})();function Kl(a){let e=a,n=Math.floor(Math.abs(a)),r=a.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var vn=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Kl];function Wl(a){let e=a,n=Math.floor(Math.abs(a)),r=a.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:r===0&&n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?3:r===0&&n!==1&&n%10===Math.floor(n%10)&&n%10>=0&&n%10<=1||r===0&&n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||r===0&&n%100===Math.floor(n%100)&&n%100>=12&&n%100<=14?4:5}var Ar=["pl",[["a","p"],["AM","PM"]],void 0,[["n","p","w","\u015B","c","p","s"],["niedz.","pon.","wt.","\u015Br.","czw.","pt.","sob."],["niedziela","poniedzia\u0142ek","wtorek","\u015Broda","czwartek","pi\u0105tek","sobota"],["nie","pon","wto","\u015Bro","czw","pi\u0105","sob"]],[["N","P","W","\u015A","C","P","S"],["niedz.","pon.","wt.","\u015Br.","czw.","pt.","sob."],["niedziela","poniedzia\u0142ek","wtorek","\u015Broda","czwartek","pi\u0105tek","sobota"],["nie","pon","wto","\u015Bro","czw","pi\u0105","sob"]],[["s","l","m","k","m","c","l","s","w","p","l","g"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017A","lis","gru"],["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015Bnia","pa\u017Adziernika","listopada","grudnia"]],[["S","L","M","K","M","C","L","S","W","P","L","G"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017A","lis","gru"],["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017Adziernik","listopad","grudzie\u0144"]],[["p.n.e.","n.e."],void 0,["przed nasz\u0105 er\u0105","naszej ery"]],1,[6,0],["d.MM.y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} {0}",void 0],[",","\xA0",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"PLN","z\u0142","z\u0142oty polski",{AUD:[void 0,"$"],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],PLN:["z\u0142"],RON:[void 0,"lej"],TWD:[void 0,"NT$"],USD:[void 0,"$"],VND:[void 0,"\u20AB"]},"ltr",Wl];function Vl(a){let e=a,n=Math.floor(Math.abs(a)),r=a.toString().replace(/^[^.]*\.?/,"").length;return r===0&&n%10===1&&n%100!==11?1:r===0&&n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?3:r===0&&n%10===0||r===0&&n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||r===0&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?4:5}var In=["uk",[["\u0434\u043F","\u043F\u043F"]],void 0,[["\u041D","\u041F","\u0412","\u0421","\u0427","\u041F","\u0421"],["\u043D\u0434","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"],["\u043D\u0435\u0434\u0456\u043B\u044F","\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043F\u02BC\u044F\u0442\u043D\u0438\u0446\u044F","\u0441\u0443\u0431\u043E\u0442\u0430"],["\u043D\u0434","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"]],void 0,[["\u0441","\u043B","\u0431","\u043A","\u0442","\u0447","\u043B","\u0441","\u0432","\u0436","\u043B","\u0433"],["\u0441\u0456\u0447.","\u043B\u044E\u0442.","\u0431\u0435\u0440.","\u043A\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043B\u0438\u043F.","\u0441\u0435\u0440\u043F.","\u0432\u0435\u0440.","\u0436\u043E\u0432\u0442.","\u043B\u0438\u0441\u0442.","\u0433\u0440\u0443\u0434."],["\u0441\u0456\u0447\u043D\u044F","\u043B\u044E\u0442\u043E\u0433\u043E","\u0431\u0435\u0440\u0435\u0437\u043D\u044F","\u043A\u0432\u0456\u0442\u043D\u044F","\u0442\u0440\u0430\u0432\u043D\u044F","\u0447\u0435\u0440\u0432\u043D\u044F","\u043B\u0438\u043F\u043D\u044F","\u0441\u0435\u0440\u043F\u043D\u044F","\u0432\u0435\u0440\u0435\u0441\u043D\u044F","\u0436\u043E\u0432\u0442\u043D\u044F","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043D\u044F"]],[["\u0421","\u041B","\u0411","\u041A","\u0422","\u0427","\u041B","\u0421","\u0412","\u0416","\u041B","\u0413"],["\u0441\u0456\u0447","\u043B\u044E\u0442","\u0431\u0435\u0440","\u043A\u0432\u0456","\u0442\u0440\u0430","\u0447\u0435\u0440","\u043B\u0438\u043F","\u0441\u0435\u0440","\u0432\u0435\u0440","\u0436\u043E\u0432","\u043B\u0438\u0441","\u0433\u0440\u0443"],["\u0441\u0456\u0447\u0435\u043D\u044C","\u043B\u044E\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u043A\u0432\u0456\u0442\u0435\u043D\u044C","\u0442\u0440\u0430\u0432\u0435\u043D\u044C","\u0447\u0435\u0440\u0432\u0435\u043D\u044C","\u043B\u0438\u043F\u0435\u043D\u044C","\u0441\u0435\u0440\u043F\u0435\u043D\u044C","\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0436\u043E\u0432\u0442\u0435\u043D\u044C","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043D\u044C"]],[["\u0434\u043E \u043D.\u0435.","\u043D.\u0435."],["\u0434\u043E \u043D. \u0435.","\u043D. \u0435."],["\u0434\u043E \u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438","\u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438"]],1,[6,0],["dd.MM.yy","d MMM y '\u0440'.","d MMMM y '\u0440'.","EEEE, d MMMM y '\u0440'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}
12, {0}",void 0,"{1} '\u043E' {0}",void 0],[",","\xA0",";","%","+","-","\u0415","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"UAH","\u20B4","\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430 \u0433\u0440\u0438\u0432\u043D\u044F",{AUD:[void 0,"$"],BRL:[void 0,"R$"],BYN:[void 0,"\u0440."],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],EUR:[void 0,"\u20AC"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:[void 0,"$"],UAH:["\u20B4"],UAK:["\u043A\u0440\u0431."],USD:[void 0,"$"],VND:[void 0,"\u20AB"],XCD:[void 0,"$"]},"ltr",Vl];var wa=(()=>{let e=class e extends Zs{constructor(){super("marketing/attribution")}createAttribution(r){return this.post("",r)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var bi=(function(a){return a.REGISTRATION="registration",a.RETURN_VISIT="return_visit",a.CONVERSION="conversion",a})(bi||{});var $a="/version.json";var Ea=/ChunkLoadError|Loading chunk .+ failed|Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed/i;var Tr=(()=>{let e=class e{constructor(){this.platformId=N(ir),this.router=N(Ce),this.destroyRef=N(Ye),this.notification=N(wr),this.modal=N(Gt),this.sessionStorage=N(sa),this.updateAvailable=ys(!1),this.toastTemplate=null,this.loadedBuildId=null,this.lastCheckedAt=0,this.fetchFailures=0,this.hiddenSince=null}start(r){dr(this.platformId)&&(this.toastTemplate=r,this.watchStaleBuildFailures(),this.watchCheckTriggers(),this.check())}reload(){this.markReload(),window.location.reload()}watchCheckTriggers(){fs(ms(3e5),this.router.events.pipe(Pt(r=>r instanceof Gs))).pipe(Se(this.destroyRef)).subscribe(()=>{this.check()}),ii(document,"visibilitychange").pipe(Se(this.destroyRef)).subscribe(()=>this.onVisibilityChange())}onVisibilityChange(){if(document.visibilityState!=="visible"){this.hiddenSince=Date.now();return}let r=this.hiddenSince?Date.now()-this.hiddenSince:0;this.hiddenSince=null,this.check(this.canReloadSilently(r))}canReloadSilently(r){return r>=18e5&&!this.modal.openModals.length&&!this.reloadedRecently()}check(r=!1){return Vt(this,null,function*(){if(this.updateAvailable()||document.visibilityState!=="visible"||this.fetchFailures>=3)return;let c=Date.now();if(c-this.lastCheckedAt<6e4)return;this.lastCheckedAt=c;let d=yield this.fetchBuildId(c);if(d){if(!this.loadedBuildId){this.loadedBuildId=d;return}if(d!==this.loadedBuildId){if(this.updateAvailable.set(!0),r){this.reload();return}this.showToast()}}})}fetchBuildId(r){return Vt(this,null,function*(){try{let c=yield fetch(`${$a}?_=${r}`,{cache:"no-store"});if(!c.ok)return this.fetchFailures+=1,null;let d=yield c.json();return this.fetchFailures=0,d?.buildId??null}catch{return this.fetchFailures+=1,null}})}showToast(){this.toastTemplate&&this.notification.template(this.toastTemplate,{nzDuration:0})}watchStaleBuildFailures(){this.router.events.pipe(Pt(r=>r instanceof Bs),Se(this.destroyRef)).subscribe(r=>this.recoverFromStaleBuild(r.error,r.url)),ii(window,"unhandledrejection").pipe(Se(this.destroyRef)).subscribe(r=>this.recoverFromStaleBuild(r.reason,null))}recoverFromStaleBuild(r,c){if(!(!this.isStaleBuildError(r)||this.reloadedRecently())){if(this.markReload(),c){window.location.assign(c);return}window.location.reload()}}isStaleBuildError(r){let c=r instanceof Error?`${r.name} ${r.message}`:String(r??"");return Ea.test(c)}reloadedRecently(){let r=this.sessionStorage.getItem(mi.APP_UPDATE_RELOADED_AT),c=Number(r);return Number.isFinite(c)&&c>0&&Date.now()-c<6e4}markReload(){this.sessionStorage.setItem(mi.APP_UPDATE_RELOADED_AT,String(Date.now()))}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var tu=["toast"];function nu(a,e){if(a&1){let n=sr();ne(0,"div",1)(1,"div")(2,"div",2),ar(3),gt(4,"translate"),ie(),ne(5,"div",3),ar(6),gt(7,"translate"),ie()(),ne(8,"button",4),or("click",function(){tr(n);let c=He();return nr(c.onReload())}),ar(9),gt(10,"translate"),ie()()}
12if(a&2){let n=He();he(3),ci(yt(4,3,n.i18n.app_update.title)),he(3),ci(yt(7,5,n.i18n.app_update.body)),he(3),Ts(" ",yt(10,7,n.i18n.app_update.reload)," ")}}var Sn=(()=>{let e=class e{constructor(){this.appUpdateService=N(Tr),this.i18n=We}onReload(){this.appUpdateService.reload()}};e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=Ae({type:e,selectors:[["math-app-update-toast"]],viewQuery:function(c,d){if(c&1&&Cn(tu,7),c&2){let m;Pn(m=Rn())&&(d.templateRef=m.first)}},decls:2,vars:0,consts:[["toast",""],["nz-flex","","nzAlign","center","nzJustify","space-between","nzGap","middle"],[1,"title"],[1,"subtitle"],["nz-button","","nzType","primary","nzSize","small",3,"click"]],template:function(c,d){c&1&&Rt(0,nu,11,9,"ng-template",null,0,lr)},dependencies:[hn,wo,br,So,bo,fn,vt,gr],styles:[".title[_ngcontent-%COMP%]{font-weight:600;line-height:1.3}.subtitle[_ngcontent-%COMP%]{color:var(--math-text-secondary);font-size:13px;line-height:1.4}"],changeDetection:0});let a=e;return a})();var _a=(()=>{let e=class e{constructor(){this.destroyRef=N(Ye),this.realtimeService=N(pn),this.nzNotificationService=N(wr),this.notificationService=N(yn),this.notificationsHttpService=N(Eo),this.notificationsRefreshService=N(Ao),this.instantToastIds=new Map}start(r){this.trackRealtimeNotifications(r),this.trackRealtimeTextMessages()}trackRealtimeNotifications(r){this.realtimeService.getNotifications().pipe(Se(this.destroyRef)).subscribe(c=>{if(!c.isInstant)return;let d=this.nzNotificationService.template(r,{nzData:c,nzDuration:9999999});this.instantToastIds.set(c.notificationId,d.messageId),d.onClose?.pipe(Jt(1),Se(this.destroyRef)).subscribe(()=>{this.instantToastIds.delete(c.notificationId),this.notificationsHttpService.readNotifications([c.notificationId]).pipe(Jt(1),Se(this.destroyRef)).subscribe(()=>this.notificationsRefreshService.notifyChanged())})})}trackRealtimeTextMessages(){this.realtimeService.getTextMessages().pipe(Se(this.destroyRef)).subscribe(({text:r})=>{this.notificationService.showInfoMessage(r)})}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var Aa=(()=>{let e=class e{constructor(){this.destroyRef=N(Ye),this.realtimeService=N(pn),this.notificationService=N(yn),this.authService=N(Fe),this.teacherStateService=N(Vo),this.terminationMessages={[_o.USER_BLOCKED]:We.api_errors.auth.user_deleted}}start(){this.realtimeService.on(di.SESSION_FORCE_LOGOUT).pipe(Se(this.destroyRef)).subscribe(r=>this.handleForceLogout(r)),this.realtimeService.on(di.SESSION_REFRESH_REQUIRED).pipe(kn(()=>this.authService.refreshTokens()),Se(this.destroyRef)).subscribe(()=>this.teacherStateService.refresh())}handleForceLogout(r){let c=this.terminationMessages[r?.reason]??We.api_errors.auth.user_deleted;this.notificationService.showWarningMessage(c),this.authService.performLogout()}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var ou=`/${D.PUBLIC}/${D.QUIZ}/`;st(vn);st(Ar);st(In);var Ta=(()=>{let e=class e{constructor(r,c,d,m,f,g,b,k,P,K,U,x,j){this.translateService=r,this.localStorageService=c,this.activatedRoute=d,this.destroyRef=m,this.authService=f,this.marketingAttributionApiService=g,this.router=b,this.realtimeNotificationsService=k,this.sessionEventsService=P,this.pushMessagingService=K,this.pushOptInService=U,this.appUpdateService=x,this.promocodeCaptureService=j;let ae=this.localStorageService.getItem(Ke.UI_LANGUAGE);ae&&this.translateService.use(ae),this.trackLanguageChangeInRoute(),this.trackUtmAttribution(),this.capturePromocodeFromRoute()}ngOnInit(){this.realtimeNotificationsService.start(this.notificationToast.templateRef),this.sessionEventsService.start(),this.startPushNotifications(),this.appUpdateService.start(this.appUpdateToast.templateRef)}startPushNotifications(){this.pushOptInService.listenForInstallPrompt(),this.pushMessagingService.init().then(()=>{this.authService.isLoggedIn()&&this.pushMessagingService.onLogin()}),this.authService.authConnectionChanged$.pipe(Se(this.destroyRef)).subscribe(r=>{r&&this.pushMessagingService.onLogin()})}capturePromocodeFromRoute(){this.activatedRoute.queryParams.pipe(er(r=>r[ra]),Pt(r=>!!r),un(),Se(this.destroyRef)).subscribe(r=>this.promocodeCaptureService.capture(r))}trackUtmAttribution(){this.activatedRoute.queryParams.pipe(Pt(r=>this.authService.isLoggedIn()&&!this.router.url.startsWith(ou)&&!!r.utm_source&&!!r.utm_medium&&!!r.utm_campaign),Jt(1),Se(this.destroyRef)).subscribe(r=>{this.marketingAttributionApiService.createAttribution({utmSource:r.utm_source,utmMedium:r.utm_medium,utmCampaign:r.utm_campaign,utmContent:r.utm_content,utmTerm:r.utm_term,utmPartner:r.utm_partner,googleGclid:r.gclid,tiktokTtclid:r.ttclid,admitadUid:r.admitad_uid,pageUrl:window.location.href,referrerUrl:document?.referrer||void 0,placement:r.placement,siteSourceName:r.site_source_name,attributionType:bi.RETURN_VISIT}).pipe(Se(this.destroyRef)).subscribe(()=>{this.router.navigate([],{queryParams:{utm_source:null,utm_medium:null,utm_campaign:null,utm_content:null,utm_term:null,utm_partner:null,gclid:null,ttclid:null,admitad_uid:null,placement:null,site_source_name:null},queryParamsHandling:"merge",replaceUrl:!0})})})}trackLanguageChangeInRoute(){this.activatedRoute.queryParams.pipe(un(),Pt(r=>!!r.language&&r.language.toLowerCase()!==this.localStorageService.getItem(Ke.UI_LANGUAGE)),Se(this.destroyRef)).subscribe(r=>{let c=r.language;this.localStorageService.setItem(Ke.UI_LANGUAGE,c.toLowerCase()),this.translateService.use(c.toLowerCase())})}};e.\u0275fac=function(c){return new(c||e)(xe(et),xe(Ut),xe(qs),xe(Ye),xe(Fe),xe(wa),xe(Ce),xe(_a),xe(Aa),xe(co),xe(Uo),xe(Tr),xe(ia))},e.\u0275cmp=Ae({type:e,selectors:[["app-root"]],viewQuery:function(c,d){if(c&1&&(Cn(gn,7),Cn(Sn,7)),c&2){let m;Pn(m=Rn())&&(d.notificationToast=m.first),Pn(m=Rn())&&(d.appUpdateToast=m.first)}},standalone:!1,decls:3,vars:0,template:function(c,d){c&1&&me(0,"router-outlet")(1,"math-notification-toast")(2,"math-app-update-toast")},dependencies:[jt,gn,Sn],encapsulation:2});let a=e;return a})();function Ma(a){return new te(3e3,!1)}function au(){return new te(3100,!1)}function cu(){return new te(3101,!1)}function lu(a){return new te(3001,!1)}function uu(a){return new te(3003,!1)}function du(a){return new te(3004,!1)}function ka(a,e){return new te(3005,!1)}function Ca(){return new te(3006,!1)}function Pa(){return new te(3007,!1)}function Ra(a,e){return new te(3008,!1)}function Oa(a){return new te(3002,!1)}function Da(a,e,n,r,c){return new te(3010,!1)}function xa(){return new te(3011,!1)}function Ia(){return new te(3012,!1)}function za(){return new te(3200,!1)}function La(){return new te(3202,!1)}function Fa(){return new te(3013,!1)}function ja(a){return new te(3014,!1)}function Ua(a){return new te(3015,!1)}function Ga(a){return new te(3016,!1)}function Ba(a,e){return new te(3404,!1)}
vendor: 58,622 bytes, line 12
12function hu(a){return new te(3502,!1)}function qa(a){return new te(3503,!1)}function Ha(){return new te(3300,!1)}function Ka(a){return new te(3504,!1)}function Wa(a){return new te(3301,!1)}function Va(a,e){return new te(3302,!1)}function Qa(a){return new te(3303,!1)}function Ja(a,e){return new te(3400,!1)}function Ya(a){return new te(3401,!1)}function Za(a){return new te(3402,!1)}function Xa(a,e){return new te(3505,!1)}function It(a){switch(a.length){case 0:return new Zt;case 1:return a[0];default:return new vr(a)}}function _i(a,e,n=new Map,r=new Map){let c=[],d=[],m=-1,f=null;if(e.forEach(g=>{let b=g.get("offset"),k=b==m,P=k&&f||new Map;g.forEach((K,U)=>{let x=U,j=K;if(U!=="offset")switch(x=a.normalizePropertyName(x,c),j){case Dn:j=n.get(U);break;case ot:j=r.get(U);break;default:j=a.normalizeStyleValue(U,x,j,c);break}P.set(x,j)}),k||d.push(P),f=P,m=b}),c.length)throw hu(c);return d}function Mr(a,e,n,r){switch(e){case"start":a.onStart(()=>r(n&&wi(n,"start",a)));break;case"done":a.onDone(()=>r(n&&wi(n,"done",a)));break;case"destroy":a.onDestroy(()=>r(n&&wi(n,"destroy",a)));break}}function wi(a,e,n){let r=n.totalTime,c=!!n.disabled,d=Nr(a.element,a.triggerName,a.fromState,a.toState,e||a.phaseName,r??a.totalTime,c),m=a._data;return m!=null&&(d._data=m),d}function Nr(a,e,n,r,c="",d=0,m){return{element:a,triggerName:e,fromState:n,toState:r,phaseName:c,totalTime:d,disabled:!!m}}function Ge(a,e,n){let r=a.get(e);return r||a.set(e,r=n),r}function Ai(a){let e=a.indexOf(":"),n=a.substring(1,e),r=a.slice(e+1);return[n,r]}var mu=typeof document>"u"?null:document.documentElement;function kr(a){let e=a.parentNode||a.host||null;return e===mu?null:e}function fu(a){return a.substring(1,6)=="ebkit"}var Xt=null,Na=!1;function ec(a){Xt||(Xt=pu()||{},Na=Xt.style?"WebkitAppearance"in Xt.style:!1);let e=!0;return Xt.style&&!fu(a)&&(e=a in Xt.style,!e&&Na&&(e="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in Xt.style)),e}function pu(){return typeof document<"u"?document.body:null}function Ti(a,e){for(;e;){if(e===a)return!0;e=kr(e)}return!1}function Mi(a,e,n){if(n)return Array.from(a.querySelectorAll(e));let r=a.querySelector(e);return r?[r]:[]}var gu=1e3,Ni="{{",yu="}}",ki="ng-enter",Cr="ng-leave",zn="ng-trigger",Ln=".ng-trigger",Ci="ng-animating",Pr=".ng-animating";function bt(a){if(typeof a=="number")return a;let e=a.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:$i(parseFloat(e[1]),e[2])}function $i(a,e){return e==="s"?a*gu:a}function Fn(a,e,n){return a.hasOwnProperty("duration")?a:Su(a,e,n)}var vu=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Su(a,e,n){let r,c=0,d="";if(typeof a=="string"){let m=a.match(vu);if(m===null)return e.push(Ma(a)),{duration:0,delay:0,easing:""};r=$i(parseFloat(m[1]),m[2]);let f=m[3];f!=null&&(c=$i(parseFloat(f),m[4]));let g=m[5];g&&(d=g)}else r=a;if(!n){let m=!1,f=e.length;r<0&&(e.push(au()),m=!0),c<0&&(e.push(cu()),m=!0),m&&e.splice(f,0,Ma(a))}return{duration:r,delay:c,easing:d}}function tc(a){return a.length?a[0]instanceof Map?a:a.map(e=>new Map(Object.entries(e))):[]}function at(a,e,n){e.forEach((r,c)=>{let d=Rr(c);n&&!n.has(c)&&n.set(c,a.style[d]),a.style[d]=r})}function Bt(a,e){e.forEach((n,r)=>{let c=Rr(r);a.style[c]=""})}function bn(a){return Array.isArray(a)?a.length==1?a[0]:uo(a):a}function nc(a,e,n){let r=e.params||{},c=Pi(a);c.length&&c.forEach(d=>{r.hasOwnProperty(d)||n.push(lu(d))})}var Ei=new RegExp(`${Ni}\\s*(.+?)\\s*${yu}`,"g");function Pi(a){let e=[];if(typeof a=="string"){let n;for(;n=Ei.exec(a);)e.push(n[1]);Ei.lastIndex=0}return e}function wn(a,e,n){let r=`${a}`,c=r.replace(Ei,(d,m)=>{let f=e[m];return f==null&&(n.push(uu(m)),f=""),f.toString()});return c==r?a:c}var bu=/-+([a-z0-9])/g;function Rr(a){return a.replace(bu,(...e)=>e[1].toUpperCase())}function rc(a,e){return a===0||e===0}function ic(a,e,n){if(n.size&&e.length){let r=e[0],c=[];if(n.forEach((d,m)=>{r.has(m)||c.push(m),r.set(m,d)}),c.length)for(let d=1;d<e.length;d++){let m=e[d];c.forEach(f=>m.set(f,Or(a,f)))}}return e}function Be(a,e,n){switch(e.type){case Z.Trigger:return a.visitTrigger(e,n);case Z.State:return a.visitState(e,n);case Z.Transition:return a.visitTransition(e,n);case Z.Sequence:return a.visitSequence(e,n);case Z.Group:return a.visitGroup(e,n);case Z.Animate:return a.visitAnimate(e,n);case Z.Keyframes:return a.visitKeyframes(e,n);case Z.Style:return a.visitStyle(e,n);case Z.Reference:return a.visitReference(e,n);case Z.AnimateChild:return a.visitAnimateChild(e,n);case Z.AnimateRef:return a.visitAnimateRef(e,n);case Z.Query:return a.visitQuery(e,n);case Z.Stagger:return a.visitStagger(e,n);default:throw du(e.type)}}function Or(a,e){return window.getComputedStyle(a)[e]}var Vi=(()=>{class a{validateStyleProperty(n){return ec(n)}containsElement(n,r){return Ti(n,r)}getParentElement(n){return kr(n)}query(n,r,c){return Mi(n,r,c)}computeStyle(n,r,c){return c||""}animate(n,r,c,d,m,f=[],g){return new Zt(c,d)}static \u0275fac=function(r){return new(r||a)};static \u0275prov=ce({token:a,factory:a.\u0275fac})}return a})(),tn=class{static NOOP=new Vi},nn=class{};var wu=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"]),Lr=class extends nn{normalizePropertyName(e,n){return Rr(e)}normalizeStyleValue(e,n,r,c){let d="",m=r.toString().trim();if(wu.has(n)&&r!==0&&r!=="0")if(typeof r=="number")d="px";else{let f=r.match(/^[+-]?[\d\.]+([a-z]*)$/);f&&f[1].length==0&&c.push(ka(e,r))}return m+d}};var Fr="*";function $u(a,e){let n=[];return typeof a=="string"?a.split(/\s*,\s*/).forEach(r=>Eu(r,n,e)):n.push(a),n}function Eu(a,e,n){if(a[0]==":"){let g=_u(a,n);if(typeof g=="function"){e.push(g);return}a=g}let r=a.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(Ua(a)),e;let c=r[1],d=r[2],m=r[3];e.push(sc(c,m));let f=c==Fr&&m==Fr;d[0]=="<"&&!f&&e.push(sc(m,c))}function _u(a,e){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(Ga(a)),"* => *"}}var Dr=new Set(["true","1"]),xr=new Set(["false","0"]);function sc(a,e){let n=Dr.has(a)||xr.has(a),r=Dr.has(e)||xr.has(e);return(c,d)=>{let m=a==Fr||a==c,f=e==Fr||e==d;return!m&&n&&typeof c=="boolean"&&(m=c?Dr.has(a):xr.has(a)),!f&&r&&typeof d=="boolean"&&(f=d?Dr.has(e):xr.has(e)),m&&f}}var pc=":self",Au=new RegExp(`s*${pc}s*,?`,"g");function gc(a,e,n,r){return new zi(a).build(e,n,r)}var oc="",zi=class{_driver;constructor(e){this._driver=e}build(e,n,r){let c=new Li(n);return this._resetContextStyleTimingState(c),Be(this,bn(e),c)}_resetContextStyleTimingState(e){e.currentQuerySelector=oc,e.collectedStyles=new Map,e.collectedStyles.set(oc,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,c=n.depCount=0,d=[],m=[];return e.name.charAt(0)=="@"&&n.errors.push(Ca()),e.definitions.forEach(f=>{if(this._resetContextStyleTimingState(n),f.type==Z.State){let g=f,b=g.name;b.toString().split(/\s*,\s*/).forEach(k=>{g.name=k,d.push(this.visitState(g,n))}),g.name=b}else if(f.type==Z.Transition){let g=this.visitTransition(f,n);r+=g.queryCount,c+=g.depCount,m.push(g)}else n.errors.push(Pa())}),{type:Z.Trigger,name:e.name,states:d,transitions:m,queryCount:r,depCount:c,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),c=e.options&&e.options.params||null;if(r.containsDynamicStyles){let d=new Set,m=c||{};r.styles.forEach(f=>{f instanceof Map&&f.forEach(g=>{Pi(g).forEach(b=>{m.hasOwnProperty(b)||d.add(b)})})}),d.size&&n.errors.push(Ra(e.name,[...d.values()]))}return{type:Z.State,name:e.name,style:r,options:c?{params:c}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Be(this,bn(e.animation),n),c=$u(e.expr,n.errors);return{type:Z.Transition,matchers:c,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:en(e.options)}}visitSequence(e,n){return{type:Z.Sequence,steps:e.steps.map(r=>Be(this,r,n)),options:en(e.options)}}visitGroup(e,n){let r=n.currentTime,c=0,d=e.steps.map(m=>{n.currentTime=r;let f=Be(this,m,n);return c=Math.max(c,n.currentTime),f});return n.currentTime=c,{type:Z.Group,steps:d,options:en(e.options)}}visitAnimate(e,n){let r=ku(e.timings,n.errors);n.currentAnimateTimings=r;let c,d=e.styles?e.styles:ui({});if(d.type==Z.Keyframes)c=this.visitKeyframes(d,n);else{let m=e.styles,f=!1;if(!m){f=!0;let b={};r.easing&&(b.easing=r.easing),m=ui(b)}n.currentTime+=r.duration+r.delay;let g=this.visitStyle(m,n);g.isEmptyStep=f,c=g}return n.currentAnimateTimings=null,{type:Z.Animate,timings:r,style:c,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],c=Array.isArray(e.styles)?e.styles:[e.styles];for(let f of c)typeof f=="string"?f===ot?r.push(f):n.errors.push(Oa(f)):r.push(new Map(Object.entries(f)));let d=!1,m=null;return r.forEach(f=>{if(f instanceof Map&&(f.has("easing")&&(m=f.get("easing"),f.delete("easing")),!d)){for(let g of f.values())if(g.toString().indexOf(Ni)>=0){d=!0;break}}}),{type:Z.Style,styles:r,easing:m,offset:e.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,c=n.currentTime,d=n.currentTime;r&&d>0&&(d-=r.duration+r.delay),e.styles.forEach(m=>{typeof m!="string"&&m.forEach((f,g)=>{let b=n.collectedStyles.get(n.currentQuerySelector),k=b.get(g),P=!0;k&&(d!=c&&d>=k.startTime&&c<=k.endTime&&(n.errors.push(Da(g,k.startTime,k.endTime,d,c)),P=!1),d=k.startTime),P&&b.set(g,{startTime:d,endTime:c}),n.options&&nc(f,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:Z.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(xa()),r;let c=1,d=0,m=[],f=!1,g=!1,b=0,k=e.steps.map(be=>{let Ee=this._makeStyleAst(be,n),Re=Ee.offset!=null?Ee.offset:Nu(Ee.styles),_e=0;return Re!=null&&(d++,_e=Ee.offset=Re),g=g||_e<0||_e>1,f=f||_e<b,b=_e,m.push(_e),Ee});g&&n.errors.push(Ia()),f&&n.errors.push(za());let P=e.steps.length,K=0;d>0&&d<P?n.errors.push(La()):d==0&&(K=c/(P-1));let U=P-1,x=n.currentTime,j=n.currentAnimateTimings,ae=j.duration;return k.forEach((be,Ee)=>{let Re=K>0?Ee==U?1:K*Ee:m[Ee],_e=Re*ae;n.currentTime=x+j.delay+_e,j.duration=_e,this._validateStyleAst(be,n),be.offset=Re,r.styles.push(be)}),r}visitReference(e,n){return{type:Z.Reference,animation:Be(this,bn(e.animation),n),options:en(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:Z.AnimateChild,options:en(e.options)}}visitAnimateRef(e,n){return{type:Z.AnimateRef,animation:this.visitReference(e.animation,n),options:en(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,c=e.options||{};n.queryCount++,n.currentQuery=e;let[d,m]=Tu(e.selector);n.currentQuerySelector=r.length?r+" "+d:d,Ge(n.collectedStyles,n.currentQuerySelector,new Map);let f=Be(this,bn(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:Z.Query,selector:d,limit:c.limit||0,optional:!!c.optional,includeSelf:m,animation:f,originalSelector:e.selector,options:en(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(Fa());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Fn(e.timings,n.errors,!0);return{type:Z.Stagger,animation:Be(this,bn(e.animation),n),timings:r,options:null}}};function Tu(a){let e=!!a.split(/\s*,\s*/).find(n=>n==pc);return e&&(a=a.replace(Au,"")),a=a.replace(/@\*/g,Ln).replace(/@\w+/g,n=>Ln+"-"+n.slice(1)).replace(/:animating/g,Pr),[a,e]}function Mu(a){return a?it({},a):null}var Li=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 Nu(a){if(typeof a=="string")return null;let e=null;if(Array.isArray(a))a.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(a instanceof Map&&a.has("offset")){let n=a;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function ku(a,e){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number"){let d=Fn(a,e).duration;return Ri(d,0,"")}let n=a;if(n.split(/\s+/).some(d=>d.charAt(0)=="{"&&d.charAt(1)=="{")){let d=Ri(0,0,"");return d.dynamic=!0,d.strValue=n,d}let c=Fn(n,e);return Ri(c.duration,c.delay,c.easing)}function en(a){return a?(a=it({},a),a.params&&(a.params=Mu(a.params))):a={},a}function Ri(a,e,n){return{duration:a,delay:e,easing:n}}function Qi(a,e,n,r,c,d,m=null,f=!1){return{type:1,element:a,keyframes:e,preStyleProps:n,postStyleProps:r,duration:c,delay:d,totalTime:c+d,easing:m,subTimeline:f}}var Un=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Cu=1,Pu=":enter",Ru=new RegExp(Pu,"g"),Ou=":leave",Du=new RegExp(Ou,"g");function yc(a,e,n,r,c,d=new Map,m=new Map,f,g,b=[]){return new Fi().buildKeyframes(a,e,n,r,c,d,m,f,g,b)}var Fi=class{buildKeyframes(e,n,r,c,d,m,f,g,b,k=[]){b=b||new Un;let P=new ji(e,n,b,c,d,k,[]);P.options=g;let K=g.delay?bt(g.delay):0;P.currentTimeline.delayNextStep(K),P.currentTimeline.setStyles([m],null,P.errors,g),Be(this,r,P);let U=P.timelines.filter(x=>x.containsAnimation());if(U.length&&f.size){let x;for(let j=U.length-1;j>=0;j--){let ae=U[j];if(ae.element===n){x=ae;break}}x&&!x.allowOnlyTimelineStyles()&&x.setStyles([f],null,P.errors,g)}return U.length?U.map(x=>x.buildKeyframes()):[Qi(n,[],[],[],0,K,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let c=n.createSubContext(e.options),d=n.currentTimeline.currentTime,m=this._visitSubInstructions(r,c,c.options);d!=m&&n.transformIntoNewTimeline(m)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let c of e){let d=c?.delay;if(d){let m=typeof d=="number"?d:bt(wn(d,c?.params??{},n.errors));r.delayNextStep(m)}}}_visitSubInstructions(e,n,r){let d=n.currentTimeline.currentTime,m=r.duration!=null?bt(r.duration):null,f=r.delay!=null?bt(r.delay):null;return m!==0&&e.forEach(g=>{let b=n.appendInstructionToTimeline(g,m,f);d=Math.max(d,b.duration+b.delay)}),d}visitReference(e,n){n.updateOptions(e.options,!0),Be(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,c=n,d=e.options;if(d&&(d.params||d.delay)&&(c=n.createSubContext(d),c.transformIntoNewTimeline(),d.delay!=null)){c.previousNode.type==Z.Style&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=jr);let m=bt(d.delay);c.delayNextStep(m)}e.steps.length&&(e.steps.forEach(m=>Be(this,m,c)),c.currentTimeline.applyStylesToKeyframe(),c.subContextCount>r&&c.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],c=n.currentTimeline.currentTime,d=e.options&&e.options.delay?bt(e.options.delay):0;e.steps.forEach(m=>{let f=n.createSubContext(e.options);d&&f.delayNextStep(d),Be(this,m,f),c=Math.max(c,f.currentTimeline.currentTime),r.push(f.currentTimeline)}),r.forEach(m=>n.currentTimeline.mergeTimelineCollectedStyles(m)),n.transformIntoNewTimeline(c),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,c=n.params?wn(r,n.params,n.errors):r;return Fn(c,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),c=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),c.snapshotCurrentStyles());let d=e.style;d.type==Z.Keyframes?this.visitKeyframes(d,n):(n.incrementTime(r.duration),this.visitStyle(d,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,c=n.currentAnimateTimings;!c&&r.hasCurrentStyleProperties()&&r.forwardFrame();let d=c&&c.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(d):r.setStyles(e.styles,d,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,c=n.currentTimeline.duration,d=r.duration,f=n.createSubContext().currentTimeline;f.easing=r.easing,e.styles.forEach(g=>{let b=g.offset||0;f.forwardTime(b*d),f.setStyles(g.styles,g.easing,n.errors,n.options),f.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(f),n.transformIntoNewTimeline(c+d),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,c=e.options||{},d=c.delay?bt(c.delay):0;d&&(n.previousNode.type===Z.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=jr);let m=r,f=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!c.optional,n.errors);n.currentQueryTotal=f.length;let g=null;f.forEach((b,k)=>{n.currentQueryIndex=k;let P=n.createSubContext(e.options,b);d&&P.delayNextStep(d),b===n.element&&(g=P.currentTimeline),Be(this,e.animation,P),P.currentTimeline.applyStylesToKeyframe();let K=P.currentTimeline.currentTime;m=Math.max(m,K)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(m),g&&(n.currentTimeline.mergeTimelineCollectedStyles(g),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,c=n.currentTimeline,d=e.timings,m=Math.abs(d.duration),f=m*(n.currentQueryTotal-1),g=m*n.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":g=f-g;break;case"full":g=r.currentStaggerTime;break}let k=n.currentTimeline;g&&k.delayNextStep(g);let P=k.currentTime;Be(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=c.currentTime-P+(c.startTime-r.currentTimeline.startTime)}},jr={},ji=class a{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=jr;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,c,d,m,f,g){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=c,this._leaveClassName=d,this.errors=m,this.timelines=f,this.currentTimeline=g||new Ur(this._driver,n,0),f.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,c=this.options;r.duration!=null&&(c.duration=bt(r.duration)),r.delay!=null&&(c.delay=bt(r.delay));let d=r.params;if(d){let m=c.params;m||(m=this.options.params={}),Object.keys(d).forEach(f=>{(!n||!m.hasOwnProperty(f))&&(m[f]=wn(d[f],m,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(c=>{r[c]=n[c]})}}return e}createSubContext(e=null,n,r){let c=n||this.element,d=new a(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,r||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(e),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(e){return this.previousNode=jr,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let c={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},d=new Ui(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,c,e.stretchStartingKeyframe);return this.timelines.push(d),c}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,c,d,m){let f=[];if(c&&f.push(this.element),e.length>0){e=e.replace(Ru,"."+this._enterClassName),e=e.replace(Du,"."+this._leaveClassName);let g=r!=1,b=this._driver.query(this.element,e,g);r!==0&&(b=r<0?b.slice(b.length+r,b.length):b.slice(0,r)),f.push(...b)}return!d&&f.length==0&&m.push(ja(n)),f}},Ur=class a{_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,n,r,c){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=c,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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 n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new a(this._driver,e,n||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+=Cu,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||ot),this._currentKeyframe.set(n,ot);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,c){n&&this._previousKeyframe.set("easing",n);let d=c&&c.params||{},m=xu(e,this._globalTimelineStyles);for(let[f,g]of m){let b=wn(g,d,r);this._pendingStyles.set(f,b),this._localTimelineStyles.has(f)||this._backFill.set(f,this._globalTimelineStyles.get(f)??ot),this._updateStyle(f,b)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let c=this._styleSummary.get(r);(!c||n.time>c.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,c=[];this._keyframes.forEach((f,g)=>{let b=new Map([...this._backFill,...f]);b.forEach((k,P)=>{k===Dn?e.add(P):k===ot&&n.add(P)}),r||b.set("offset",g/this.duration),c.push(b)});let d=[...e.values()],m=[...n.values()];if(r){let f=c[0],g=new Map(f);f.set("offset",0),g.set("offset",1),c=[f,g]}return Qi(this.element,c,d,m,this.duration,this.startTime,this.easing,!1)}},Ui=class extends Ur{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,c,d,m,f=!1){super(e,n,m.delay),this.keyframes=r,this.preStyleProps=c,this.postStyleProps=d,this._stretchStartingKeyframe=f,this.timings={duration:m.duration,delay:m.delay,easing:m.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:c}=this.timings;if(this._stretchStartingKeyframe&&n){let d=[],m=r+n,f=n/m,g=new Map(e[0]);g.set("offset",0),d.push(g);let b=new Map(e[0]);b.set("offset",ac(f)),d.push(b);let k=e.length-1;for(let P=1;P<=k;P++){let K=new Map(e[P]),U=K.get("offset"),x=n+U*r;K.set("offset",ac(x/m)),d.push(K)}r=m,n=0,c="",e=d}return Qi(this.element,e,this.preStyleProps,this.postStyleProps,r,n,c,!0)}};function ac(a,e=3){let n=Math.pow(10,e-1);return Math.round(a*n)/n}function xu(a,e){let n=new Map,r;return a.forEach(c=>{if(c==="*"){r??=e.keys();for(let d of r)n.set(d,ot)}else for(let[d,m]of c)n.set(d,m)}),n}function cc(a,e,n,r,c,d,m,f,g,b,k,P,K){return{type:0,element:a,triggerName:e,isRemovalTransition:c,fromState:n,fromStyles:d,toState:r,toStyles:m,timelines:f,queriedElements:g,preStyleProps:b,postStyleProps:k,totalTime:P,errors:K}}var Oi={},Gr=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,c){return Iu(this.ast.matchers,e,n,r,c)}buildStyles(e,n,r){let c=this._stateStyles.get("*");return e!==void 0&&(c=this._stateStyles.get(e?.toString())||c),c?c.buildStyles(n,r):new Map}build(e,n,r,c,d,m,f,g,b,k){let P=[],K=this.ast.options&&this.ast.options.params||Oi,U=f&&f.params||Oi,x=this.buildStyles(r,U,P),j=g&&g.params||Oi,ae=this.buildStyles(c,j,P),be=new Set,Ee=new Map,Re=new Map,_e=c==="void",zt={params:vc(j,K),delay:this.ast.options?.delay},Ve=k?[]:yc(e,n,this.ast.animation,d,m,x,ae,zt,b,P),ye=0;return Ve.forEach(Te=>{ye=Math.max(Te.duration+Te.delay,ye)}),P.length?cc(n,this._triggerName,r,c,_e,x,ae,[],[],Ee,Re,ye,P):(Ve.forEach(Te=>{let wt=Te.element,lt=Ge(Ee,wt,new Set);Te.preStyleProps.forEach(je=>lt.add(je));let qn=Ge(Re,wt,new Set);Te.postStyleProps.forEach(je=>qn.add(je)),wt!==n&&be.add(wt)}),cc(n,this._triggerName,r,c,_e,x,ae,Ve,[...be.values()],Ee,Re,ye))}};function Iu(a,e,n,r,c){return a.some(d=>d(e,n,r,c))}function vc(a,e){let n=it({},e);return Object.entries(a).forEach(([r,c])=>{c!=null&&(n[r]=c)}),n}var Gi=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,c=vc(e,this.defaultParams);return this.styles.styles.forEach(d=>{typeof d!="string"&&d.forEach((m,f)=>{m&&(m=wn(m,c,n));let g=this.normalizer.normalizePropertyName(f,n);m=this.normalizer.normalizeStyleValue(f,g,m,n),r.set(f,m)})}),r}};function zu(a,e,n){return new Bi(a,e,n)}var Bi=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(c=>{let d=c.options&&c.options.params||{};this.states.set(c.name,new Gi(c.style,d,r))}),lc(this.states,"true","1"),lc(this.states,"false","0"),n.transitions.forEach(c=>{this.transitionFactories.push(new Gr(e,c,this.states))}),this.fallbackTransition=Lu(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,c){return this.transitionFactories.find(m=>m.match(e,n,r,c))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function Lu(a,e,n){let r=[(m,f)=>!0],c={type:Z.Sequence,steps:[],options:null},d={type:Z.Transition,animation:c,matchers:r,options:null,queryCount:0,depCount:0};return new Gr(a,d,e)}function lc(a,e,n){a.has(e)?a.has(n)||a.set(n,a.get(e)):a.has(n)&&a.set(e,a.get(n))}var Fu=new Un,qi=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],c=[],d=gc(this._driver,n,r,c);if(r.length)throw qa(r);this._animations.set(e,d)}_buildPlayer(e,n,r){let c=e.element,d=_i(this._normalizer,e.keyframes,n,r);return this._driver.animate(c,d,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let c=[],d=this._animations.get(e),m,f=new Map;if(d?(m=yc(this._driver,n,d,ki,Cr,new Map,new Map,r,Fu,c),m.forEach(k=>{let P=Ge(f,k.element,new Map);k.postStyleProps.forEach(K=>P.set(K,null))})):(c.push(Ha()),m=[]),c.length)throw Ka(c);f.forEach((k,P)=>{k.forEach((K,U)=>{k.set(U,this._driver.computeStyle(P,U,ot))})});let g=m.map(k=>{let P=f.get(k.element);return this._buildPlayer(k,new Map,P)}),b=It(g);return this._playersById.set(e,b),b.onDestroy(()=>this.destroy(e)),this.players.push(b),b}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw Wa(e);return n}listen(e,n,r,c){let d=Nr(n,"","","");return Mr(this._getPlayer(e),r,d,c),()=>{}}command(e,n,r,c){if(r=="register"){this.register(e,c[0]);return}if(r=="create"){let m=c[0]||{};this.create(e,n,m);return}let d=this._getPlayer(e);switch(r){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(e);break}}},uc="ng-animate-queued",ju=".ng-animate-queued",Di="ng-animate-disabled",Uu=".ng-animate-disabled",Gu="ng-star-inserted",Bu=".ng-star-inserted",qu=[],Sc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Hu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ct="__ng_removed",Gn=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),c=r?e.value:e;if(this.value=Wu(c),r){let d=e,{value:m}=d,f=ds(d,["value"]);this.options=f}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(c=>{r[c]==null&&(r[c]=n[c])})}}},jn="void",xi=new Gn(jn),Hi=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,tt(n,this._hostClassName)}listen(e,n,r,c){if(!this._triggers.has(n))throw Va(r,n);if(r==null||r.length==0)throw Qa(n);if(!Vu(r))throw Ja(r,n);let d=Ge(this._elementListeners,e,[]),m={name:n,phase:r,callback:c};d.push(m);let f=Ge(this._engine.statesByElement,e,new Map);return f.has(n)||(tt(e,zn),tt(e,zn+"-"+n),f.set(n,xi)),()=>{this._engine.afterFlush(()=>{let g=d.indexOf(m);g>=0&&d.splice(g,1),this._triggers.has(n)||f.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw Ya(e);return n}trigger(e,n,r,c=!0){let d=this._getTrigger(n),m=new Bn(this.id,n,e),f=this._engine.statesByElement.get(e);f||(tt(e,zn),tt(e,zn+"-"+n),this._engine.statesByElement.set(e,f=new Map));let g=f.get(n),b=new Gn(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&g&&b.absorbOptions(g.options),f.set(n,b),g||(g=xi),!(b.value===jn)&&g.value===b.value){if(!Yu(g.params,b.params)){let j=[],ae=d.matchStyles(g.value,g.params,j),be=d.matchStyles(b.value,b.params,j);j.length?this._engine.reportError(j):this._engine.afterFlush(()=>{Bt(e,ae),at(e,be)})}return}let K=Ge(this._engine.playersByElement,e,[]);K.forEach(j=>{j.namespaceId==this.id&&j.triggerName==n&&j.queued&&j.destroy()});let U=d.matchTransition(g.value,b.value,e,b.params),x=!1;if(!U){if(!c)return;U=d.fallbackTransition,x=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:U,fromState:g,toState:b,player:m,isFallbackTransition:x}),x||(tt(e,uc),m.onStart(()=>{$n(e,uc)})),m.onDone(()=>{let j=this.players.indexOf(m);j>=0&&this.players.splice(j,1);let ae=this._engine.playersByElement.get(e);if(ae){let be=ae.indexOf(m);be>=0&&ae.splice(be,1)}}),this.players.push(m),K.push(m),m}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(c=>c.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Ln,!0);r.forEach(c=>{if(c[ct])return;let d=this._engine.fetchNamespacesByElement(c);d.size?d.forEach(m=>m.triggerLeaveAnimation(c,n,!1,!0)):this.clearElementCache(c)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(c=>this.clearElementCache(c)))}triggerLeaveAnimation(e,n,r,c){let d=this._engine.statesByElement.get(e),m=new Map;if(d){let f=[];if(d.forEach((g,b)=>{if(m.set(b,g.value),this._triggers.has(b)){let k=this.trigger(e,b,jn,c);k&&f.push(k)}}),f.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,m),r&&It(f).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let c=new Set;n.forEach(d=>{let m=d.name;if(c.has(m))return;c.add(m);let g=this._triggers.get(m).fallbackTransition,b=r.get(m)||xi,k=new Gn(jn),P=new Bn(this.id,m,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:m,transition:g,fromState:b,toState:k,player:P,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let c=!1;if(r.totalAnimations){let d=r.players.length?r.playersByQueriedElement.get(e):[];if(d&&d.length)c=!0;else{let m=e;for(;m=m.parentNode;)if(r.statesByElement.get(m)){c=!0;break}}}if(this.prepareLeaveAnimationListeners(e),c)r.markElementAsRemoved(this.id,e,!1,n);else{let d=e[ct];(!d||d===Sc)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){tt(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let c=r.player;if(c.destroyed)return;let d=r.element,m=this._elementListeners.get(d);m&&m.forEach(f=>{if(f.name==r.triggerName){let g=Nr(d,r.triggerName,r.fromState.value,r.toState.value);g._data=e,Mr(r.player,f.phase,g,f.callback)}}),c.markedForDestroy?this._engine.afterFlush(()=>{c.destroy()}):n.push(r)}),this._queue=[],n.sort((r,c)=>{let d=r.transition.ast.depCount,m=c.transition.ast.depCount;return d==0||m==0?d-m:this._engine.driver.containsElement(r.element,c.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ki=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,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new Hi(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,c=this.namespacesByHostElement;if(r.length-1>=0){let m=!1,f=this.driver.getParentElement(n);for(;f;){let g=c.get(f);if(g){let b=r.indexOf(g);r.splice(b+1,0,e),m=!0;break}f=this.driver.getParentElement(f)}m||r.unshift(e)}else r.push(e);return c.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let c=this._namespaceLookup[e];c&&c.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let c=this._namespaceList.indexOf(r);c>=0&&this._namespaceList.splice(c,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let c of r.values())if(c.namespaceId){let d=this._fetchNamespace(c.namespaceId);d&&n.add(d)}}return n}trigger(e,n,r,c){if(Ir(n)){let d=this._fetchNamespace(e);if(d)return d.trigger(n,r,c),!0}return!1}insertNode(e,n,r,c){if(!Ir(n))return;let d=n[ct];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;let m=this.collectedLeaveElements.indexOf(n);m>=0&&this.collectedLeaveElements.splice(m,1)}if(e){let m=this._fetchNamespace(e);m&&m.insertNode(n,r)}c&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),tt(e,Di)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$n(e,Di))}removeNode(e,n,r){if(Ir(n)){let c=e?this._fetchNamespace(e):null;c?c.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let d=this.namespacesByHostElement.get(n);d&&d.id!==e&&d.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,c,d){this.collectedLeaveElements.push(n),n[ct]={namespaceId:e,setForRemoval:c,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:d}}listen(e,n,r,c,d){return Ir(n)?this._fetchNamespace(e).listen(n,r,c,d):()=>{}}_buildInstruction(e,n,r,c,d){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,c,e.fromState.options,e.toState.options,n,d)}destroyInnerAnimations(e){let n=this.driver.query(e,Ln,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Pr,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return It(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[ct];if(n&&n.setForRemoval){if(e[ct]=Sc,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Di)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Uu,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,c)=>this._balanceNamespaceList(r,c)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let c=this.collectedEnterElements[r];tt(c,Gu)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let c=0;c<r.length;c++)r[c]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let c=this.collectedLeaveElements[r];this.processLeaveNode(c)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?It(n).onDone(()=>{r.forEach(c=>c())}):r.forEach(c=>c())}}reportError(e){throw Za(e)}_flushAnimations(e,n){let r=new Un,c=[],d=new Map,m=[],f=new Map,g=new Map,b=new Map,k=new Set;this.disabledNodes.forEach(R=>{k.add(R);let z=this.driver.query(R,ju,!0);for(let L=0;L<z.length;L++)k.add(z[L])});let P=this.bodyNode,K=Array.from(this.statesByElement.keys()),U=mc(K,this.collectedEnterElements),x=new Map,j=0;U.forEach((R,z)=>{let L=ki+j++;x.set(z,L),R.forEach(X=>tt(X,L))});let ae=[],be=new Set,Ee=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){let z=this.collectedLeaveElements[R],L=z[ct];L&&L.setForRemoval&&(ae.push(z),be.add(z),L.hasAnimation?this.driver.query(z,Bu,!0).forEach(X=>be.add(X)):Ee.add(z))}let Re=new Map,_e=mc(K,Array.from(be));_e.forEach((R,z)=>{let L=Cr+j++;Re.set(z,L),R.forEach(X=>tt(X,L))}),e.push(()=>{U.forEach((R,z)=>{let L=x.get(z);R.forEach(X=>$n(X,L))}),_e.forEach((R,z)=>{let L=Re.get(z);R.forEach(X=>$n(X,L))}),ae.forEach(R=>{this.processLeaveNode(R)})});let zt=[],Ve=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(n).forEach(L=>{let X=L.player,we=L.element;if(zt.push(X),this.collectedEnterElements.length){let Me=we[ct];if(Me&&Me.setForMove){if(Me.previousTriggersValues&&Me.previousTriggersValues.has(L.triggerName)){let ut=Me.previousTriggersValues.get(L.triggerName),Ue=this.statesByElement.get(L.element);if(Ue&&Ue.has(L.triggerName)){let sn=Ue.get(L.triggerName);sn.value=ut,Ue.set(L.triggerName,sn)}}X.destroy();return}}let qe=!P||!this.driver.containsElement(P,we),ze=Re.get(we),nt=x.get(we),de=this._buildInstruction(L,r,nt,ze,qe);if(de.errors&&de.errors.length){Ve.push(de);return}if(qe){X.onStart(()=>Bt(we,de.fromStyles)),X.onDestroy(()=>at(we,de.toStyles)),c.push(X);return}if(L.isFallbackTransition){X.onStart(()=>Bt(we,de.fromStyles)),X.onDestroy(()=>at(we,de.toStyles)),c.push(X);return}let Kn=[];de.timelines.forEach(Me=>{Me.stretchStartingKeyframe=!0,this.disabledNodes.has(Me.element)||Kn.push(Me)}),de.timelines=Kn,r.append(we,de.timelines);let Vr={instruction:de,player:X,element:we};m.push(Vr),de.queriedElements.forEach(Me=>Ge(f,Me,[]).push(X)),de.preStyleProps.forEach((Me,ut)=>{if(Me.size){let Ue=g.get(ut);Ue||g.set(ut,Ue=new Set),Me.forEach((sn,on)=>Ue.add(on))}}),de.postStyleProps.forEach((Me,ut)=>{let Ue=b.get(ut);Ue||b.set(ut,Ue=new Set),Me.forEach((sn,on)=>Ue.add(on))})});if(Ve.length){let R=[];Ve.forEach(z=>{R.push(Xa(z.triggerName,z.errors))}),zt.forEach(z=>z.destroy()),this.reportError(R)}let ye=new Map,Te=new Map;m.forEach(R=>{let z=R.element;r.has(z)&&(Te.set(z,z),this._beforeAnimationBuild(R.player.namespaceId,R.instruction,ye))}),c.forEach(R=>{let z=R.element;this._getPreviousPlayers(z,!1,R.namespaceId,R.triggerName,null).forEach(X=>{Ge(ye,z,[]).push(X),X.destroy()})});let wt=ae.filter(R=>fc(R,g,b)),lt=new Map;hc(lt,this.driver,Ee,b,ot).forEach(R=>{fc(R,g,b)&&wt.push(R)});let je=new Map;U.forEach((R,z)=>{hc(je,this.driver,new Set(R),g,Dn)}),wt.forEach(R=>{let z=lt.get(R),L=je.get(R);lt.set(R,new Map([...z?.entries()??[],...L?.entries()??[]]))});let rn=[],Hn=[],_n={};m.forEach(R=>{let{element:z,player:L,instruction:X}=R;if(r.has(z)){if(k.has(z)){L.onDestroy(()=>at(z,X.toStyles)),L.disabled=!0,L.overrideTotalTime(X.totalTime),c.push(L);return}let we=_n;if(Te.size>1){let ze=z,nt=[];for(;ze=ze.parentNode;){let de=Te.get(ze);if(de){we=de;break}nt.push(ze)}nt.forEach(de=>Te.set(de,we))}let qe=this._buildAnimation(L.namespaceId,X,ye,d,je,lt);if(L.setRealPlayer(qe),we===_n)rn.push(L);else{let ze=this.playersByElement.get(we);ze&&ze.length&&(L.parentPlayer=It(ze)),c.push(L)}}else Bt(z,X.fromStyles),L.onDestroy(()=>at(z,X.toStyles)),Hn.push(L),k.has(z)&&c.push(L)}),Hn.forEach(R=>{let z=d.get(R.element);if(z&&z.length){let L=It(z);R.setRealPlayer(L)}}),c.forEach(R=>{R.parentPlayer?R.syncPlayerEvents(R.parentPlayer):R.destroy()});for(let R=0;R<ae.length;R++){let z=ae[R],L=z[ct];if($n(z,Cr),L&&L.hasAnimation)continue;let X=[];if(f.size){let qe=f.get(z);qe&&qe.length&&X.push(...qe);let ze=this.driver.query(z,Pr,!0);for(let nt=0;nt<ze.length;nt++){let de=f.get(ze[nt]);de&&de.length&&X.push(...de)}}let we=X.filter(qe=>!qe.destroyed);we.length?Qu(this,z,we):this.processLeaveNode(z)}return ae.length=0,rn.forEach(R=>{this.players.push(R),R.onDone(()=>{R.destroy();let z=this.players.indexOf(R);this.players.splice(z,1)}),R.play()}),rn}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,c,d){let m=[];if(n){let f=this.playersByQueriedElement.get(e);f&&(m=f)}else{let f=this.playersByElement.get(e);if(f){let g=!d||d==jn;f.forEach(b=>{b.queued||!g&&b.triggerName!=c||m.push(b)})}}return(r||c)&&(m=m.filter(f=>!(r&&r!=f.namespaceId||c&&c!=f.triggerName))),m}_beforeAnimationBuild(e,n,r){let c=n.triggerName,d=n.element,m=n.isRemovalTransition?void 0:e,f=n.isRemovalTransition?void 0:c;for(let g of n.timelines){let b=g.element,k=b!==d,P=Ge(r,b,[]);this._getPreviousPlayers(b,k,m,f,n.toState).forEach(U=>{let x=U.getRealPlayer();x.beforeDestroy&&x.beforeDestroy(),U.destroy(),P.push(U)})}Bt(d,n.fromStyles)}_buildAnimation(e,n,r,c,d,m){let f=n.triggerName,g=n.element,b=[],k=new Set,P=new Set,K=n.timelines.map(x=>{let j=x.element;k.add(j);let ae=j[ct];if(ae&&ae.removedBeforeQueried)return new Zt(x.duration,x.delay);let be=j!==g,Ee=Ju((r.get(j)||qu).map(ye=>ye.getRealPlayer())).filter(ye=>{let Te=ye;return Te.element?Te.element===j:!1}),Re=d.get(j),_e=m.get(j),zt=_i(this._normalizer,x.keyframes,Re,_e),Ve=this._buildPlayer(x,zt,Ee);if(x.subTimeline&&c&&P.add(j),be){let ye=new Bn(e,f,j);ye.setRealPlayer(Ve),b.push(ye)}return Ve});b.forEach(x=>{Ge(this.playersByQueriedElement,x.element,[]).push(x),x.onDone(()=>Ku(this.playersByQueriedElement,x.element,x))}),k.forEach(x=>tt(x,Ci));let U=It(K);return U.onDestroy(()=>{k.forEach(x=>$n(x,Ci)),at(g,n.toStyles)}),P.forEach(x=>{Ge(c,x,[]).push(U)}),U}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Zt(e.duration,e.delay)}},Bn=class{namespaceId;triggerName;element;_player=new Zt;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(c=>Mr(e,r,void 0,c))}),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 n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ge(this._queuedCallbacks,e,[]).push(n)}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 n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function Ku(a,e,n){let r=a.get(e);if(r){if(r.length){let c=r.indexOf(n);r.splice(c,1)}r.length==0&&a.delete(e)}return r}function Wu(a){return a??null}function Ir(a){return a&&a.nodeType===1}function Vu(a){return a=="start"||a=="done"}function dc(a,e){let n=a.style.display;return a.style.display=e??"none",n}function hc(a,e,n,r,c){let d=[];n.forEach(g=>d.push(dc(g)));let m=[];r.forEach((g,b)=>{let k=new Map;g.forEach(P=>{let K=e.computeStyle(b,P,c);k.set(P,K),(!K||K.length==0)&&(b[ct]=Hu,m.push(b))}),a.set(b,k)});let f=0;return n.forEach(g=>dc(g,d[f++])),m}function mc(a,e){let n=new Map;if(a.forEach(f=>n.set(f,[])),e.length==0)return n;let r=1,c=new Set(e),d=new Map;function m(f){if(!f)return r;let g=d.get(f);if(g)return g;let b=f.parentNode;return n.has(b)?g=b:c.has(b)?g=r:g=m(b),d.set(f,g),g}return e.forEach(f=>{let g=m(f);g!==r&&n.get(g).push(f)}),n}function tt(a,e){a.classList?.add(e)}function $n(a,e){a.classList?.remove(e)}function Qu(a,e,n){It(n).onDone(()=>a.processLeaveNode(e))}function Ju(a){let e=[];return bc(a,e),e}function bc(a,e){for(let n=0;n<a.length;n++){let r=a[n];r instanceof vr?bc(r.players,e):e.push(r)}}function Yu(a,e){let n=Object.keys(a),r=Object.keys(e);if(n.length!=r.length)return!1;for(let c=0;c<n.length;c++){let d=n[c];if(!e.hasOwnProperty(d)||a[d]!==e[d])return!1}return!0}function fc(a,e,n){let r=n.get(a);if(!r)return!1;let c=e.get(a);return c?r.forEach(d=>c.add(d)):e.set(a,r),n.delete(a),!0}var En=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Ki(e.body,n,r),this._timelineEngine=new qi(e.body,n,r),this._transitionEngine.onRemovalComplete=(c,d)=>this.onRemovalComplete(c,d)}registerTrigger(e,n,r,c,d){let m=e+"-"+c,f=this._triggerCache[m];if(!f){let g=[],b=[],k=gc(this._driver,d,g,b);if(g.length)throw Ba(c,g);f=zu(c,k,this._normalizer),this._triggerCache[m]=f}this._transitionEngine.registerTrigger(n,c,f)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,c){this._transitionEngine.insertNode(e,n,r,c)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,c){if(r.charAt(0)=="@"){let[d,m]=Ai(r),f=c;this._timelineEngine.command(d,n,m,f)}else this._transitionEngine.trigger(e,n,r,c)}listen(e,n,r,c,d){if(r.charAt(0)=="@"){let[m,f]=Ai(r);return this._timelineEngine.listen(m,n,f,d)}return this._transitionEngine.listen(e,n,r,c,d)}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 Zu(a,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ii(e[0]),e.length>1&&(r=Ii(e[e.length-1]))):e instanceof Map&&(n=Ii(e)),n||r?new Xu(a,n,r):null}var Xu=(()=>{class a{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,c){this._element=n,this._startStyles=r,this._endStyles=c;let d=a.initialStylesByElement.get(n);d||a.initialStylesByElement.set(n,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&at(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(at(this._element,this._initialStyles),this._endStyles&&(at(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(Bt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bt(this._element,this._endStyles),this._endStyles=null),at(this._element,this._initialStyles),this._state=3)}}return a})();function Ii(a){let e=null;return a.forEach((n,r)=>{ed(r)&&(e=e||new Map,e.set(r,n))}),e}function ed(a){return a==="display"||a==="position"}var Br=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,n,r,c){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=c,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),n}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){let c=this._convertKeyframesToObject(n);try{return e.animate(c,r)}catch{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(n=>n()),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((r,c)=>{c!=="offset"&&e.set(c,this._finished?r:Or(this.element,c))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},qr=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Ti(e,n)}getParentElement(e){return kr(e)}query(e,n,r){return Mi(e,n,r)}computeStyle(e,n,r){return Or(e,n)}animate(e,n,r,c,d,m=[]){let f=c==0?"both":"forwards",g={duration:r,delay:c,fill:f};d&&(g.easing=d);let b=new Map,k=m.filter(U=>U instanceof Br);rc(r,c)&&k.forEach(U=>{U.currentSnapshot.forEach((x,j)=>b.set(j,x))});let P=tc(n).map(U=>new Map(U));P=ic(e,P,b);let K=Zu(e,P);return new Br(e,P,g,K)}};var zr="@",wc="@.disabled",Hr=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,c){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=c}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,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,c=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,c)}removeChild(e,n,r,c){if(c){this.delegate.removeChild(e,n,r,c);return}this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,c){this.delegate.setAttribute(e,n,r,c)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,c){this.delegate.setStyle(e,n,r,c)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==zr&&n==wc?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,c){return this.delegate.listen(e,n,r,c)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Wi=class extends Hr{factory;constructor(e,n,r,c,d){super(n,r,c,d),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==zr?n.charAt(1)=="."&&n==wc?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,c){if(n.charAt(0)==zr){let d=td(e),m=n.slice(1),f="";return m.charAt(0)!=zr&&([m,f]=nd(m)),this.engine.listen(this.namespaceId,d,m,f,g=>{let b=g._data||-1;this.factory.scheduleListenerCallback(b,r,g)})}return this.delegate.listen(e,n,r,c)}};function td(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}function nd(a){let e=a.indexOf("."),n=a.substring(0,e),r=a.slice(e+1);return[n,r]}var Kr=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(c,d)=>{d?.removeChild(null,c)}}createRenderer(e,n){let c=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let b=this._rendererCache,k=b.get(c);if(!k){let P=()=>b.delete(c);k=new Hr("",c,this.engine,P),b.set(c,k)}return k}let d=n.id,m=n.id+"-"+this._currentId;this._currentId++,this.engine.register(m,e);let f=b=>{Array.isArray(b)?b.forEach(f):this.engine.registerTrigger(d,m,e,b.name,b)};return n.data.animation.forEach(f),new Wi(this,m,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let c=this._animationCallbacksBuffer;c.length==0&&queueMicrotask(()=>{this._zone.run(()=>{c.forEach(d=>{let[m,f]=d;m(f)}),this._animationCallbacksBuffer=[]})}),c.push([n,r])}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 id=(()=>
12{class a extends En{constructor(n,r,c){super(n,r,c)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||a)(Ne(rr),Ne(tn),Ne(nn))};static \u0275prov=ce({token:a,factory:a.\u0275fac})}return a})();function sd(){return new Lr}function od(a,e,n){return new Kr(a,e,n)}var Ec=[{provide:nn,useFactory:sd},{provide:En,useClass:id},{provide:bs,useFactory:od,deps:[xs,En,vs]}],ad=[{provide:tn,useClass:Vi},{provide:oi,useValue:"NoopAnimations"},...Ec],$c=[{provide:tn,useFactory:()=>new qr},{provide:oi,useFactory:()=>"BrowserAnimations"},...Ec],_c=(()=>{class a{static withConfig(n){return{ngModule:a,providers:n.disableAnimations?ad:$c}}static \u0275fac=function(r){return new(r||a)};static \u0275mod=pt({type:a});static \u0275inj=ft({providers:$c,imports:[hr]})}return a})();var Ac=(()=>{let e=class e{constructor(){this.authService=N(Fe)}intercept(r,c){let m=(r.url.includes("/auth/refresh-tokens")||r.url.includes("/auth/logout")||r.url.includes("/settings/update")?this.authService?.refreshToken:this.authService?.jwtToken)||"";return m&&(r=r.clone({setHeaders:{Authorization:m}})),c.handle(r)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var Tc=`/${D.PUBLIC}`,cd=a=>{let e=(a??"").split(/[?#]/)[0];return e===Tc||e.startsWith(`${Tc}/`)},Wr=a=>cd(a.getCurrentNavigation()?.finalUrl?.toString()??a.url);var Mc=(()=>{let e=class e{constructor(r,c,d,m){this.translateService=r,this.notificationService=c,this.authService=d,this.router=m}intercept(r,c){return!r.url.includes(".svg")&&!r.url.includes("icons")&&!r.url.includes("assets")&&(r=r.clone({url:r.url})),c.handle(r).pipe(Qt(d=>{if(r.context.get(ea))return mt(d);if(r.url.startsWith(Dt.PifagorApiAddress)){if(d.status===0&&!this.authService.jwtToken)return mt(d);if(d.status===401&&!r.url.includes("/auth/login"))return Wr(this.router)||this.notificationService.showErrorMessage(this.translateService.instant(We.main.api.session_expired)),mt(d);if(d.status===400){let m=this.translateService.instant(d.error?.errorKey,d.error?.params);(!d.error?.errorKey||m===d.error.errorKey)&&(m=this.translateService.instant(We.main.api.internal)),this.notificationService.showErrorMessage(m)}else if(d.status===500){let m=d.error?.timestamp,f=m?We.main.api.internal_with_timestamp:We.main.api.internal;this.translateService.get(f,{timestamp:m}).subscribe(g=>{this.notificationService.showErrorMessage(g)})}else if(d.status===403)this.notificationService.showErrorMessage(this.translateService.instant(We.main.api.forbidden));else if(this.authService.jwtToken)this.notificationService.showErrorMessage(this.translateService.instant("Unknown Error"));else return mt(d)}else{if(!this.authService.jwtToken)return mt(d);this.notificationService.showErrorMessage("Unknown Error")}return mt(d)}))}};e.\u0275fac=function(c){return new(c||e)(Ne(et),Ne(yn),Ne(Fe),Ne(Ce))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var Nc=(()=>{let e=class e{constructor(r,c,d,m){this.authService=r,this.authApiService=c,this.router=d,this.modalService=m,this.isRefreshing=!1,this.accessTokenSubject=new hs(null)}intercept(r,c){return c.handle(r).pipe(Qt(d=>d.status===401&&!r.url.includes("/auth/login")&&!r.url.includes("/auth/refresh-tokens")?this.handle401Error(r,c):mt(d)))}handle401Error(r,c){return this.isRefreshing?this.accessTokenSubject.pipe(Pt(d=>d!==null),Jt(1),kn(d=>{let m=r.clone({setHeaders:{Authorization:"Bearer "+d}});return c.handle(m)})):(this.isRefreshing=!0,this.accessTokenSubject.next(null),this.authApiService.refreshToken().pipe(kn(({access_token:d,refresh_token:m,user:f})=>{this.isRefreshing=!1,this.authService.setLoggedInData(d,m,f),this.accessTokenSubject.next(d);let g=r.clone({setHeaders:{Authorization:"Bearer "+d}});return c.handle(g)}),Qt(d=>(this.isRefreshing=!1,this.authService.removeToken(),Wr(this.router)||(this.router.navigate(["/login"]),this.modalService.closeAll()),mt(()=>d)))))}};e.\u0275fac=function(c){return new(c||e)(Ne(Fe),Ne(Xs),Ne(Ce),Ne(Gt))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var kc=[{provide:mr,useClass:Ac,multi:!0},{provide:mr,useClass:Mc,multi:!0},{provide:mr,useClass:Nc,multi:!0}];var Cc=(()=>{let e=class e{};e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=pt({type:e}),e.\u0275inj=ft({providers:[...kc]});let a=e;return a})();var Rc=kl(Pc(),1);var ld=new ps("MESSAGE_FORMAT_CONFIG"),ud={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0,throwOnError:!1,fallbackPrefix:void 0},Oc=(()=>{let e=class e extends pr{constructor(r){super(),this.mfCache=new Map;let{formatters:c,biDiSupport:d,strictNumberSign:m,currency:f,strictPluralKeys:g,throwOnError:b,fallbackPrefix:k}=it(it({},ud),r);this.messageFormatOptions={customFormatters:c,biDiSupport:d,strict:m,currency:f,strictPluralKeys:g},this.throwOnError=!!b,this.fallbackPrefix=k}compile(r,c){if(this.fallbackPrefix&&r.startsWith(this.fallbackPrefix))return r.slice(this.fallbackPrefix.length);let d;try{d=this.getMessageFormatInstance(c).compile(r)}catch(m){if(this.throwOnError)throw m;console.error(m),console.error(`[ngx-translate-messageformat-compiler] Could not compile message for lang '${c}': '${r}'`),d=hd(r,c)}return this.throwOnError||(d=dd(d,r)),d}compileTranslations(r,c){return typeof r=="string"?this.compile(r,c):Object.keys(r).reduce((d,m)=>{let f=r[m];return d[m]=this.compileTranslations(f,c),d},{})}getMessageFormatInstance(r){return this.mfCache.has(r)||this.mfCache.set(r,new Rc.default(r,this.messageFormatOptions)),this.mfCache.get(r)}};e.\u0275fac=function(c){return new(c||e)(Ne(ld,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let a=e;return a})();function dd(a,e){return n=>{let r=e;try{r=a(n)}catch(c){console.error(c),console.error(`[ngx-translate-messageformat-compiler] Could not interpolate '${e}' with params '${n}'`)}return r}}function hd(a,e){return()=>(console.warn(`[ngx-translate-messageformat-compiler] Falling back to original invalid message: '${a}' ('${e}')`),String(a))}var md={[yr.UA]:"uk"},Dc=(()=>{let e=class e extends Oc{compile(r,c){return super.compile(r,this.toCldr(c))}compileTranslations(r,c){return super.compileTranslations(r,this.toCldr(c))}toCldr(r){return md[r]??r}};e.\u0275fac=(()=>{let r;return function(d){return(r||(r=si(e)))(d||e)}})(),e.\u0275prov=ce({token:e,factory:e.\u0275fac});let a=e;return a})();var xc=(()=>{let e=class e{constructor(){this.document=N(rr),this.authService=N(Fe),this.router=N(Ce),this.usersApiService=N(aa),this.widgetEventsService=N(na),this.destroyRef=N(Ye),this.helpCrunchWidgetSettings=Dt.helpCrunchWidgetSettings,this.isWidgetInitialized=!1,this.subscribeToWidgetEvents(),Ps(()=>{let r=this.authService.user;if(!(!this.authService.isClient()&&!this.authService.isTeacher())){if(!r&&this.isWidgetInitialized){this.helpCrunch("logout");return}this.isWidgetInitialized?this.updateWidgetUser(r):this.setUpWidgetForUser(r)}})}updateWidgetUser(r){return Vt(this,null,function*(){let c=yield this.getUserForHelpcrunch(r),d={user_id:r.id,name:c.fullName,email:c.email,phone:c.phone,customData:{role:c.role,registrationDate:c.signupDate,market:c.market}};this.helpCrunch("updateUser",d)})}setUpWidgetForUser(r){return Vt(this,null,function*(){let c=yield this.getUserForHelpcrunch(r);window.helpcrunchSettings=us(it({},this.helpCrunchWidgetSettings),{user:{user_id:r.id,name:c.fullName,email:c.email,phone:c.phone,customData:{role:c.role,registrationDate:c.signupDate,market:c.market}}}),this.helpCrunchOriginalInitScript(window,this.document),this.helpCrunch("onReady",()=>{this.router.events.subscribe(this.tryHideHelpCrunchWidget.bind(this)),this.setLanguage(r?.language?.toLowerCase()||yr.EN),this.tryHideHelpCrunchWidget(),this.isWidgetInitialized=!0})})}getUserForHelpcrunch(r){return Vt(this,null,function*(){try{return yield this.usersApiService.getContactInfoForHelpCrunchWidget(r.id).toPromise()}catch(c){throw console.error("Failed to fetch HelpCrunch contact info:",c),c}})}setLanguage(r){this.helpCrunch("setPhraseList",r)}showChatWidget(){this.isWidgetInitialized&&this.helpCrunch("openChat")}subscribeToWidgetEvents(){this.widgetEventsService.events$.subscribe(r=>{r===ta.OPEN_CHAT&&this.showChatWidget()})}tryHideHelpCrunchWidget(){this.authService.isTeacher()||this.authService.isClient()||this.helpCrunch("hideChatWidget")}helpCrunch(r,c){window.HelpCrunch(r,c)}helpCrunchOriginalInitScript(r,c){var d=r.helpcrunchSettings;if(!d||!d.organization)return;var m="https://"+d.organization+".widget.helpcrunch.com/";r.HelpCrunch=function(){r.HelpCrunch.q.push(arguments)},r.HelpCrunch.q=[];function f(){if(!c.querySelector('script[src="'+m+'"')){var g=c.createElement("script");g.async=1,g.type="text/javascript",g.src=m,(c.body||c.head).appendChild(g)}}c.readyState==="complete"||d.loadImmediately?f():r.attachEvent?r.attachEvent("onload",f):r.addEventListener("load",f,!1)}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();function Zi(a){return()=>{Dt.production&&Dt.helpCrunchWidgetSettings&&a.get(xc)}}var Ic=mo,fd=Object.keys(Ic).map(a=>Ic[a]),pd=[{name:"ai-tutor",icon:"assets/icons/ai-tutor.svg"},{name:"ai-tutor-white",icon:"assets/icons/ai-tutor-white.svg"},{name:"math-user",icon:"assets/icons/math-user.svg"},{name:"math-rocket",icon:"assets/icons/rocket.svg"},{name:"math-magic-wand",icon:"assets/icons/magic-wand.svg"},{name:"math-ai-sparkle",icon:"assets/icons/ai-sparkle.svg"},{name:"math-check",icon:"assets/icons/check.svg"}],zc=(()=>
12{let e=class e{constructor(){this.iconService=N(po),pd.forEach(r=>this.iconService.addIcon(r))}};e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=pt({type:e}),e.\u0275inj=ft({providers:[{provide:fo,useValue:fd}]});let a=e;return a})();var Lc=(()=>{let e=class e{constructor(){this.localeMap={en:"en-US",pl:"pl",ua:"uk"},this.translateService=N(et),this.localStorageService=N(Ut)}initializeLuxonLocale(){let r=this.localStorageService.getItem(Ke.UI_LANGUAGE);fr.defaultLocale=this.getLuxonLocale(r),this.translateService.onLangChange.subscribe(c=>{fr.defaultLocale=this.getLuxonLocale(c.lang)})}getLuxonLocale(r){return r&&this.localeMap[r]||"en-US"}getCurrentLuxonLocale(){return fr.defaultLocale||"en-US"}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();var Fc=(()=>{let e=class e{constructor(){this.localeMap={en:"en-US",pl:"pl",ua:"uk"},this.translateService=N(et),this.localStorageService=N(Ut)}initializeLocale(){st(In),this.translateService.onLangChange.subscribe(r=>{this.localStorageService.setItem(Ke.UI_LANGUAGE,r.lang),st(this.getLocale(r.lang))})}getLocale(r){if(!r)return vn;switch(r){case"en":st(vn);break;case"pl":st(Ar);break;case"ua":st(In);break;default:st(vn)}return this.localeMap[r]||"en-US"}};e.\u0275fac=function(c){return new(c||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();function gd(a){return()=>{a.init()}}function yd(a){return()=>{a.initializeLuxonLocale()}}function vd(a){return()=>{a.initializeLocale()}}function Sd(a){return()=>{a.init()}}function bd(a){return()=>{a.init()}}function wd(a){return()=>{a.init()}}var jc=(()=>{let e=class e{};e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=pt({type:e,bootstrap:[Ta]}),e.\u0275inj=ft({providers:[Us(),Ot(()=>gd(N(Xo))()),{provide:ks,useFactory:Ys},{provide:to,useFactory:()=>{let r=N(ir),c=null;switch(dr(r)&&(c=localStorage?.getItem(Ke.UI_LANGUAGE)),c){case"en":return li;case"pl":return ro;case"ua":return io;default:return li}}},zs(Ls(),Fs()),Ot(()=>Zi(N(gs))()),Ot(()=>yd(N(Lc))()),Ot(()=>vd(N(Fc))()),Ot(()=>Sd(N(oo))()),Ot(()=>bd(N(ao))()),Ot(()=>(c=>()=>c.init())(N(oa))()),Ot(()=>wd(N(pn))()),{provide:no,useValue:{firstDayOfWeek:1}},{provide:ho,useValue:Vs},Gt,$o],imports:[hr,hn.forRoot({defaultLanguage:"en",loader:{provide:Qs,useClass:Js},compiler:{provide:pr,useClass:Dc}}),ba,Ds,_c,lo,Cc,js,xo,zc,gn,Sn]});let a=e;return a})();Hs.prototype.midnightEndOf=function(a){return this.endOf(a).plus({millisecond:1})};Dt.production&&void 0;Is().bootstrapModule(jc).catch(a=>console.error(a));
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.